/* ========================================
   有渔网络 官网样式
   ======================================== */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #7C3AED;
  --dark: #0F172A;
  --gray-900: #1E293B;
  --gray-800: #334155;
  --gray-600: #64748B;
  --gray-400: #94A3B8;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  transition: color var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 1px;
  transition: var(--transition);
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 40%, #1D4ED8 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 60%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 6px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #34D399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* === Slideshow === */

.hero-slideshow {
  position: relative;
  min-height: 300px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-slide.exit {
  opacity: 0;
  transform: translateX(-40px);
}

.hero-slide h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-slide h1 span {
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slide p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  line-height: 1.85;
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 48px;
}

.hero-stat h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* === Hero Dots === */

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.15);
}

.hero-dot.active {
  width: 28px;
  border-radius: 10px;
  border-color: var(--white);
  background: var(--white);
}

/* ========================================
   Section Common
   ======================================== */

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

/* ========================================
   Services
   ======================================== */

.services {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.service-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon.s-ai       { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #2563EB; }
.service-icon.s-dev      { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: #7C3AED; }
.service-icon.s-redev    { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #D97706; }
.service-icon.s-ops      { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: #059669; }
.service-icon.s-consult  { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); color: #DB2777; }
.service-icon.s-maintain { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); color: #4F46E5; }

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.service-tags span {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all var(--transition);
}

.service-card:hover .service-tags span {
  background: var(--primary-light);
  color: var(--primary);
}

/* ========================================
   Products Grid
   ======================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.product-card:hover::before {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 50px;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.product-card:nth-child(1) .product-icon { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.product-card:nth-child(2) .product-icon { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.product-card:nth-child(3) .product-icon { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); }
.product-card:nth-child(4) .product-icon { background: linear-gradient(135deg, #FEE2E2, #FECACA); }

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-card .domain {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 14px;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.product-card .desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-card .features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--gray-100);
  color: var(--gray-800);
}

/* ========================================
   Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 48px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.modal-close:hover {
  background: var(--white);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-hero {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: var(--gray-100);
}

.modal-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.modal-body {
  padding: 40px;
}

.modal-header {
  margin-bottom: 32px;
}

.modal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-domain {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.modal-domain:hover {
  text-decoration: underline;
}

.modal-section {
  margin-bottom: 28px;
}

.modal-section:last-of-type {
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.modal-section p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mf-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mf-item:hover {
  background: var(--primary-light);
}

.mf-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.mf-item strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.mf-item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tags span {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.modal-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
  color: var(--white);
}

/* ========================================
   About Section
   ======================================== */

.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  padding: 40px;
}

.about-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.about-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-box p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-box p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-text p {
  font-size: 14px;
  color: var(--gray-600);
}

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-qr img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.contact-qr p {
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--dark);
  padding: 40px 0;
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.footer-left span {
  color: rgba(255,255,255,0.4);
}

.footer-right {
  font-size: 13px;
}

.footer-right a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-right a:hover {
  color: var(--white);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .hero-slide h1 { font-size: 40px; }
  .hero-slideshow { min-height: 270px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-features { grid-template-columns: 1fr; }
  .modal-body { padding: 28px; }
}

@media (max-width: 768px) {
  .hero { padding: 130px 0 70px; }
  .hero h1 { font-size: 32px; }
  .hero-slide h1 { font-size: 32px; }
  .hero-slide p { font-size: 16px; }
  .hero-slideshow { min-height: 250px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-stat h3 { font-size: 26px; }

  .section { padding: 64px 0; }
  .section-header h2 { font-size: 28px; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav-toggle { display: flex; }

  .product-card { padding: 28px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { flex-direction: column; gap: 8px; }
  .services-grid { grid-template-columns: 1fr; }

  .modal-overlay { padding: 20px 12px; align-items: flex-start; }
  .modal-body { padding: 24px 20px; }
  .modal-header h2 { font-size: 22px; }
  .modal-features { gap: 10px; }
}

@media (max-width: 480px) {
  .hero { padding: 130px 0 50px; }
  .hero h1 { font-size: 28px; }
  .hero-slide h1 { font-size: 28px; }
  .hero-slide p { font-size: 15px; }
  .hero-slideshow { min-height: 240px; }
  .hero-stats { gap: 16px; }
  .hero-stat h3 { font-size: 22px; }
  .product-card { padding: 24px; }
}
