﻿/* ==================== 双宇服务 · 全新样式 ==================== */
:root {
  --navy: #0a2540;
  --navy-2: #0f2f52;
  --blue: #1f5faa;
  --blue-dark: #174a86;
  --gold: #c9a227;
  --gold-light: #e6c65c;
  --gold-deep: #a8861a;
  --blue-light: #e8f0fa;
  --cream: #f6f8fb;
  --ink: #10202f;
  --text: #40506a;
  --muted: #71809a;
  --line: #e5e9f0;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 37, 64, 0.14);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部信息条 ===== */
.topbar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dce6f2;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar a { color: #f0e6c8; font-weight: 600; }
.topbar a:hover { color: var(--gold-light); }
.lang-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: all .2s;
}
.lang-btn:hover, .lang-btn.active { background: #fff; color: var(--blue-dark); }
.lang-btn { display: none; }

/* ===== 导航栏 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 37, 64, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
  flex-shrink: 0;
}
.logo span:last-child { display: flex; flex-direction: column; justify-content: center; font-weight: 700; font-size: 17px; color: #fff; line-height: 1.25; }
.logo .sub { font-size: 10px; letter-spacing: 1.5px; color: var(--gold-light); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; color: #cbd8e8; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #1a1a1a;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
.nav-links a.nav-cta:hover { color: #fff; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; padding: 4px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(31, 95, 170, 0.35), transparent 60%),
    linear-gradient(160deg, #0a2540 0%, #0f2f52 55%, #123a63 100%);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 { font-size: 48px; line-height: 1.25; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lead { font-size: 18px; color: #b9c9dd; margin: 20px 0 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.hero-stat .num { font-size: 26px; font-weight: 800; color: var(--gold-light); }
.hero-stat .num .unit { font-size: 13px; font-weight: 500; }
.hero-stat .lbl { font-size: 13px; color: #a9bcd2; margin-top: 4px; }
.hero-visual { display: flex; justify-content: center; }
.hero-img {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(201, 162, 39, 0.3);
}
.hero-img img { width: 100%; height: 440px; object-fit: cover; }
.hero-img.placeholder, .product-img.placeholder, .farm-img.placeholder {
  background: linear-gradient(135deg, #1a3a5e, #0f2f52);
}
.hero-live-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10, 37, 64, 0.85);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.hero-live-badge .dot {
  width: 8px; height: 8px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: #1a1a1a; font-weight: 700; }
.btn-primary:hover { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 39, 0.4); }
.btn-ghost { background: transparent; color: var(--gold-light); border: 2px solid var(--gold-light); }
.btn-ghost:hover { background: var(--gold-light); color: #0a2540; }
.btn-lg { padding: 15px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section.alt { background: var(--cream); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-deep));
  border-radius: 2px;
  margin: 16px auto 0;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ===== 特性 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold);
}
.feature-card .ic { font-size: 36px; display: block; margin-bottom: 16px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ===== 产品卡 ===== */
.product-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}
.product-img { position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.product-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gold);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.product-info { padding: 40px 36px; }
.product-tags { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.product-tags span {
  background: var(--gold-light);
  color: var(--gold-deep);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.product-info h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.product-desc { color: var(--text); font-size: 15px; margin-bottom: 20px; }
.product-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.meta-item { display: flex; gap: 12px; font-size: 14px; }
.meta-item .k { color: var(--muted); min-width: 60px; }
.meta-item .v { font-weight: 600; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.product-price .price { font-size: 40px; font-weight: 800; color: var(--gold); }
.product-price .unit { color: var(--muted); font-size: 15px; }
.product-price .stock { margin-left: auto; color: var(--muted); font-size: 13px; }

/* ===== 云监控 ===== */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.live-feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.live-feature .ic { font-size: 40px; display: block; margin-bottom: 16px; }
.live-feature h3 { font-size: 19px; margin-bottom: 10px; }
.live-feature p { color: var(--muted); font-size: 14px; }

/* ===== 流程 ===== */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #1a1a1a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}
.flow-step h3 { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.flow-step p { color: var(--muted); font-size: 14px; }

/* ===== 农场 ===== */
.farm-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.farm-visual { position: relative; }
.farm-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.farm-img img { width: 100%; height: 380px; object-fit: cover; }
.farm-badge {
  position: absolute;
  bottom: -20px;
  right: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.farm-badge .n { font-size: 32px; font-weight: 800; color: var(--gold); }
.farm-badge .t { font-size: 13px; color: var(--muted); line-height: 1.4; }
.farm-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.farm-text p { color: var(--text); margin-bottom: 14px; }
.farm-points { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.farm-point { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.farm-point .ic { font-size: 20px; }

/* ===== 下单 ===== */
.order-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; max-width: 900px; margin: 0 auto; align-items: start; }
.summary-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.summary-title { font-size: 15px; opacity: 0.85; margin-bottom: 16px; }
.summary-product { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.summary-product .emoji { font-size: 40px; }
.summary-product .name { font-weight: 700; font-size: 18px; color: var(--gold-light); }
.summary-product .price { color: #f0e6c8; font-size: 15px; margin-top: 4px; }
.summary-note { font-size: 13px; opacity: 0.8; line-height: 1.6; }
.order-form {
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--gold-deep); min-height: 20px; }
.form-note.error { color: #e05a5a; }

/* ===== 页脚 ===== */
.footer { background: linear-gradient(160deg, #081b2e 0%, #0a2540 100%); color: #b9c9dd; padding: 64px 0 30px; border-top: 3px solid var(--gold-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer .brand .mark { font-size: 26px; }
.footer p { font-size: 14px; opacity: 0.8; }
.footer h4 { color: var(--gold-light); font-size: 15px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9c9dd; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ===== 常见问题 ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.faq-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.faq-item p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ===== 页面级 Hero（业务页/内页顶部） ===== */
.page-hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(160deg, #0a2540 0%, #0f2f52 60%, #123a63 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
  padding: 6px 16px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
}
.page-hero h1 { font-size: 44px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.page-hero h1 .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-lead { font-size: 18px; color: #b9c9dd; max-width: 640px; margin: 0 auto 28px; }
.page-hero .hero-actions { justify-content: center; }

/* ===== 导航激活状态 ===== */
.nav-links a.active { color: var(--gold-light); font-weight: 700; }

/* ===== 导航下拉菜单 ===== */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #0f2f52;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: #cbd8e8;
  border-radius: 8px;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(201, 162, 39, 0.15); color: var(--gold-light); }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== 响应式补充 ===== */
@media (max-width: 600px) {
  .page-hero { padding: 48px 0; }
  .page-hero h1 { font-size: 30px; }
  .page-lead { font-size: 16px; }
}
@media (max-width: 900px) {
  .hero-inner, .product-card, .farm-grid, .order-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: 1fr; }
  .product-img img { min-height: 260px; }
  .product-info { padding: 28px 24px; }
  .farm-badge { right: 12px; bottom: -16px; }
  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 { font-size: 36px; }
  .hero-img img { height: 340px; }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #0a2540;
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-bottom: 2px solid rgba(201, 162, 39, 0.4);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-dropdown > a {
    padding: 12px 8px;
    font-size: 16px;
    color: #cbd8e8;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links > a:hover, .nav-dropdown > a:hover { color: var(--gold-light); }
  .nav-toggle { display: block; }

  /* 移动端下拉菜单：直接展开显示，不用 hover */
  .nav-dropdown { position: static; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: flex;
    flex-direction: column;
  }
  .dropdown-menu a {
    padding: 10px 8px;
    font-size: 15px;
    color: #a9bcd2;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: normal;
  }
  .dropdown-menu a:hover { background: transparent; color: var(--gold-light); }

  .hero { padding: 48px 0; }
  .hero h1 { font-size: 26px; line-height: 1.35; }
  .lead { font-size: 16px; }
  .feature-grid, .flow-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .page-hero .hero-actions { flex-direction: column; align-items: center; }
  .page-hero .hero-actions .btn { width: 100%; max-width: 320px; }

  /* 移动端顶部信息条：隐藏 tagline，只留电话，避免折行拥挤 */
  .topbar .tagline { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar { font-size: 14px; }

  /* 移动端 Hero 数据卡：改 2 列，均衡视觉 */
  .hero-stats { gap: 10px; margin-top: 32px; }
  .hero-stat { padding: 14px 10px; }
  .hero-stat .num { font-size: 22px; }

  /* 移动端首屏呼吸感 */
  .hero-badge { margin-bottom: 18px; }
  .hero h1 { margin-bottom: 16px; font-size: 25px; letter-spacing: -0.3px; }
  .lead { margin: 0 0 24px; line-height: 1.8; }
}
