/* 惠航独立站样式 —— 手写轻量 CSS，无框架依赖 */
:root {
  --primary: #0e6ba8;
  --primary-dark: #0a4f80;
  --dark: #0b2e4f;
  --accent: #ff8a3d;
  --bg: #f6f9fc;
  --card: #ffffff;
  --text: #22333f;
  --muted: #5c7080;
  --line: #dde7ef;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 46, 79, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hidden { display: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 99; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--dark); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav-link {
  padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 14.5px; font-weight: 500;
}
.nav-link:hover { background: #eef5fa; text-decoration: none; }
.nav-link.active { color: var(--primary); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.lang-pill { padding: 3px 10px; font-size: 12px; color: var(--muted); }
.lang-pill.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(160deg, rgba(10, 79, 128, 0.92), rgba(18, 163, 184, 0.82)),
    repeating-linear-gradient(45deg, #0b5f8a 0 24px, #0d6c99 24px 48px);
  color: #fff; padding: 84px 0 72px;
}
.hero h1 { font-size: clamp(26px, 4vw, 42px); max-width: 720px; line-height: 1.25; }
.hero .lead { margin: 18px 0 28px; max-width: 640px; font-size: 17px; opacity: 0.95; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; opacity: 0.8; }

/* ---------- trust strip ---------- */
.trust-strip { background: var(--dark); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 26px 0; }
.trust-item { text-align: center; }
.trust-item b { display: block; font-size: 26px; color: #7fd6e8; }
.trust-item span { font-size: 13px; opacity: 0.85; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); color: var(--dark); }
.section-head p { color: var(--muted); margin-top: 8px; }
.alt { background: #fff; }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: var(--text); display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(11, 46, 79, 0.14); text-decoration: none; }
.card-body { padding: 16px 18px 20px; }
.card h3 { font-size: 17px; margin: 6px 0; color: var(--dark); }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--primary); background: #e8f2f9; border-radius: 4px; padding: 2px 8px;
  text-transform: uppercase;
}
.icon-circle {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 14px;
  background: #e8f2f9; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* ---------- placeholder blocks（上线前替换为真实照片）---------- */
.ph {
  background: repeating-linear-gradient(135deg, #e3ecf3 0 18px, #d8e5ef 18px 36px);
  color: #607890; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 14px; border-bottom: 1px dashed #b9cbd9;
}
.ph span { padding: 10px; }
.ph-4-3 { aspect-ratio: 4 / 3; }
.ph-1-1 { aspect-ratio: 1 / 1; }
.ph-wide { aspect-ratio: 21 / 9; margin-top: 26px; border: 1px dashed #b9cbd9; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; margin-bottom: 6px; color: var(--dark); }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- page head (inner pages) ---------- */
.page-head { background: linear-gradient(135deg, var(--dark), var(--primary)); color: #fff; padding: 48px 0; }
.page-head h1 { font-size: clamp(24px, 3.4vw, 34px); }
.page-head .lead { margin-top: 10px; max-width: 680px; opacity: 0.92; }
.breadcrumb { font-size: 13px; opacity: 0.75; margin-bottom: 12px; }
.breadcrumb a { color: #bfe3f2; }

/* ---------- tables / lists ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table th { width: 38%; color: var(--muted); background: #f2f7fb; font-weight: 600; }
.check-list { list-style: none; margin: 12px 0 20px; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #12a3b8; font-weight: 800; }
.product-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: start; }
.product-detail h2 { margin: 14px 0 10px; color: var(--dark); font-size: 19px; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--dark); list-style: none; position: relative; padding-right: 40px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }

/* ---------- forms ---------- */
.inquiry-form {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--dark); }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select {
  border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px;
  font-size: 14.5px; font-family: inherit; color: var(--text); background: #fbfdfe;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.form-note { font-size: 12.5px; color: var(--muted); }
.form-status { padding: 10px 14px; border-radius: 7px; font-size: 14px; }
.form-status.ok { background: #e6f7ee; color: #14735a; }
.form-status.err { background: #fdecec; color: #b13a3a; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--dark), var(--primary)); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.cta-inner p { opacity: 0.9; margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #c8d8e4; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 30px; padding: 46px 0 34px; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #c8d8e4; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.f-brand .brand-name { font-weight: 800; letter-spacing: 3px; color: #fff; font-size: 18px; margin-bottom: 10px; }
.f-brand p { font-size: 13.5px; line-height: 1.7; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; padding: 16px 0; font-size: 12.5px; color: #8fa8bc; }

/* ---------- 右下角联系按钮组（WhatsApp + 微信） ---------- */
.contact-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.float-btn {
  background: #25d366; color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 30px; border: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); font-family: inherit;
}
.float-btn:hover { text-decoration: none; filter: brightness(1.05); }
.float-wx { background: #07c160; }
.wechat-modal {
  position: fixed; inset: 0; z-index: 70; background: rgba(11, 46, 79, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wechat-modal[hidden] { display: none; }
.wechat-card {
  background: #fff; border-radius: 14px; padding: 22px 22px 18px;
  max-width: 300px; text-align: center; position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.wechat-card img { width: 230px; height: auto; border-radius: 8px; margin: 0 auto; }
.wechat-close {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1;
}
.wx-name { font-weight: 700; color: var(--dark); margin-top: 12px; font-size: 15px; }
.wx-tip { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }

/* ---------- misc ---------- */
.translate-notice { background: #fff7e8; color: #92600a; padding: 10px 20px; font-size: 13.5px; text-align: center; border-bottom: 1px solid #f3dfb6; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: #25d366; color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 30px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.wa-float:hover { text-decoration: none; filter: brightness(1.05); }
.note-tbd {
  display: inline-block; background: #fff3cd; color: #8a6d00;
  font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-left: 6px;
}

/* ---------- blog ---------- */
.post-card h3 { font-size: 18px; }
.post-card .tag { margin-bottom: 2px; }
.blog-meta { font-size: 12.5px; color: var(--muted); letter-spacing: 0.3px; }
.page-head .blog-meta { color: #bfe3f2; margin-top: 8px; }
.article { max-width: 840px; }
.article h2 { margin: 30px 0 12px; font-size: 21px; color: var(--dark); }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 6px; }
.article table { margin: 6px 0 18px; }

/* ---------- 图片位：真图替换占位后的样式 ---------- */
img.ph {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  background: #e3ecf3;
  border-bottom: none;
}
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.4;
}
.hero .container { position: relative; z-index: 1; }

/* ---------- Google 地图 ---------- */
.gmap {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  margin-top: 4px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail, .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none; width: 100%; flex-direction: column; padding-bottom: 12px;
  }
  .main-nav.open { display: flex; }
  .header-actions { width: 100%; justify-content: flex-end; padding-bottom: 12px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
}
