/* ==========================================================
   Gigafactory China (枣庄巨涛电子商务有限公司) — 响应式展示站样式
   设计令牌：品牌深蓝 #1B2A6B + 青蓝 #1FB6C9（取自 LOGO 星球配色）
   ========================================================== */
:root {
  --navy: #1B2A6B;        /* 品牌深蓝（LOGO 轨道/文字） */
  --navy-2: #2a3d8f;
  --gold: #1FB6C9;        /* 品牌青蓝（LOGO 星球） */
  --gold-soft: #5fd2de;
  --ink: #1d2733;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-alt: #f2f7fb;
  --line: #e0e8f2;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(27, 42, 107, 0.10);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 92%); margin-inline: auto; }

/* 无障碍：跳转链接 + 焦点可见 */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .7em; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-name { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.brand-name-main { font-weight: 800; color: var(--navy); font-size: 1.18rem; letter-spacing: .01em; }
.brand-name-sub { font-size: .68rem; color: var(--muted); letter-spacing: .02em; font-weight: 500; }
.brand-name-only { font-size: .92rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.brand-text { font-weight: 700; color: var(--navy); font-size: 1.12rem; }
.brand-text em, .footer-brand em { font-style: normal; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 1.6em; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--gold); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: .55em 1.1em; border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-2); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(18, 28, 70, .90) 0%, rgba(27, 42, 107, .68) 42%, rgba(27, 42, 107, .18) 100%),
    url("assets/hero-bg.jpg") center / 100% 100% no-repeat,
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eaf1f8;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 182, 201, .6), transparent);
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.1rem); text-shadow: 0 2px 18px rgba(10, 16, 45, .5); }
.hero-sub { text-shadow: 0 1px 10px rgba(10, 16, 45, .45); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; max-width: 760px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .9em;
}
.hero-sub { font-size: 1.08rem; color: #c9d6e4; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9em; margin: 1.6em 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.4em; list-style: none; padding: 0; margin: 0; color: #b9c9da; font-size: .92rem; }
.hero-points li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease;
  cursor: pointer; font-size: .98rem;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }

.hero-card {
  background: rgba(20, 32, 80, .30);
  border: 1px solid rgba(95, 210, 222, .22);
  border-radius: 16px; padding: 1.1rem 1.3rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 1.4rem;
}
.hero-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hc-item {
  background: rgba(255, 255, 255, .06); border-radius: 10px;
  padding: .85em .5em; text-align: center;
}
.hc-item strong { display: block; font-size: 1.7rem; color: var(--gold-soft); }
.hc-item span { font-size: .85rem; color: #c9d6e4; }

/* ---------- 信任条 ---------- */
.trustbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1em 2.4em;
  padding: 1em 0; color: var(--muted); font-weight: 600; font-size: .9rem;
}

/* ---------- 通用板块 ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background:
    radial-gradient(900px 400px at 50% -20%, rgba(31, 182, 201, .16), transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, #14204f 100%);
  color: #dbe6f1;
}
.section-dark h2 { color: #fff; }
.eyebrow-light { color: var(--gold-soft); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #b9c9da; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* 数字统计 */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4em; text-align: center; box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 2rem; color: var(--gold); }
.stat strong::after { content: "+"; font-size: 1.1rem; }
.stat span { color: var(--muted); font-size: .9rem; }

/* 产品卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6em; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--navy-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(27, 42, 107, .18);
  border-color: rgba(31, 182, 201, .5);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(31, 182, 201, .14), rgba(27, 42, 107, .10));
  border: 1px solid rgba(31, 182, 201, .28);
  color: var(--gold);
  margin-bottom: .8em;
  transition: transform .2s ease, background .2s ease;
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { transform: scale(1.06) rotate(-2deg); background: linear-gradient(135deg, rgba(31, 182, 201, .22), rgba(27, 42, 107, .16)); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* 优势 */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.adv { border-left: 3px solid var(--gold); padding: .4em 0 .4em 1.2em; }
.adv h3 { font-size: 1.05rem; }
.adv p { color: var(--muted); font-size: .93rem; margin: 0; }

/* 全球覆盖 */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.region {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 1.2em 1.3em;
}
.region strong { display: block; color: var(--gold-soft); margin-bottom: .25em; }
.region span { font-size: .88rem; color: #b9c9da; }

/* ERP 平台对接 */
.platform-grid {
  list-style: none; margin: 0 0 2.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem;
}
.platform-grid-5 { grid-template-columns: repeat(5, 1fr); }
.platform-grid-5 .platform { padding: 1.15em .6em; }
.platform-grid-5 .plogo { width: 26px; height: 26px; }
.platform-grid-5 .pname { font-size: .95rem; }
/* 图片Logo平台墙 */
.platform-grid-6 { grid-template-columns: repeat(6, 1fr); }
.platform.has-img { padding: .9em .6em; display: grid; place-items: center; }
.pimg { max-height: 34px; width: auto; max-width: 100%; display: block; }
.platform {
  --pc: var(--navy);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .95em .5em; text-align: center;
  font-weight: 700; font-size: .92rem; color: var(--pc);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.platform::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--pc); opacity: .85;
}
.platform:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 42, 107, .14);
  border-color: var(--pc);
}
.platform.has-logo { display: flex; align-items: center; justify-content: center; gap: .5em; }
.plogo { width: 22px; height: 22px; flex: 0 0 auto; }
.pname { font-size: .86rem; }

.erp-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }

/* 支付平台墙：6个一行，Wise浅绿用深色文字保证对比度 */
.payment-grid { grid-template-columns: repeat(6, 1fr); }
.platform[style*="#9FE870"] { color: #2f5b1e; }
.platform[style*="#9FE870"]::after { background: #9FE870; }.erp-benefit {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5em 1.3em; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.erp-benefit:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(27, 42, 107, .14); }
.erp-ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold); margin-bottom: .8em;
}
.erp-ic svg { width: 24px; height: 24px; }
.erp-benefit h3 { font-size: 1.02rem; }
.erp-benefit p { font-size: .88rem; color: var(--muted); margin: 0; }

/* 流程步骤 */
#process {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(242, 247, 251, .90) 100%),
    url("assets/process-bg.jpg") center / cover no-repeat fixed;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4em 1.2em; position: relative;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 20px rgba(27, 42, 107, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(27, 42, 107, .16); }
.step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: .7em;
}
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: .88rem; margin: 0; }

/* 联系 */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4em 0 .4em; }
.contact-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1em 1.2em; box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.contact-person { font-weight: 700; color: var(--navy); font-size: 1.02rem; margin-bottom: .5em; }
.contact-person span { font-weight: 500; color: var(--muted); font-size: .82rem; margin-left: .3em; }
.contact-line { display: flex; align-items: center; gap: .6em; font-size: .88rem; margin: .45em 0; color: var(--ink); word-break: break-all; }
.contact-line a { text-decoration: none; color: var(--ink); }
.contact-line a:hover { color: var(--gold); }
.contact-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.contact-ic .ci { width: 17px; height: 17px; }
.contact-ic.mail { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.contact-ic.wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.contact-line strong { color: var(--navy); margin-right: .3em; }
.contact-list { list-style: none; padding: 0; margin: 1.2em 0 0; }
.contact-list li { padding: .45em 0; border-bottom: 1px dashed var(--line); }
.contact-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8em; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1em; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35em; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: .7em .9em; font: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe;
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(217, 164, 65, .45); border-color: var(--gold); }
.form-status { margin: .9em 0 0; font-weight: 600; color: var(--navy); min-height: 1.4em; }
.form-note { font-size: .8rem; color: var(--muted); margin: .8em 0 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #b9c9da; padding-top: 2.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.6rem; }
.footer-brand { font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: .3em; }
.footer-nav { display: flex; gap: 1.6em; align-items: center; }
.footer-nav a { color: #b9c9da; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 0 1.4rem; font-size: .86rem; }
.footer-bottom a { color: var(--gold-soft); text-decoration: none; }

/* ---------- 进场动画（尊重减少动态偏好） ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式断点 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid, .adv-grid, .region-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .platform-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .platform-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .payment-grid { grid-template-columns: repeat(3, 1fr); }
  .erp-benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .6em 4%; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .85em .2em; border-top: 1px solid var(--line); }
  .nav-cta { text-align: center; margin: .6em 0; border-top: 0 !important; }
  .card-grid, .adv-grid, .region-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-card-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .brand-name-only { font-size: .7rem; }
  .brand-logo { height: 38px; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .platform-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .platform-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .platform { font-size: .78rem; padding: .8em .3em; }
  .erp-benefits { grid-template-columns: 1fr; }
}
