/* =========================================================
   昊太科技官网 v2.0 · 全局样式
   设计语言：真实企业官网质感 —— 贴顶通栏实底导航、实底细边框卡片、
            克制圆角、清晰的比例与节奏。配色沿用 v1.0 的森绿/深墨/品牌红。
   ========================================================= */
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist.woff") format("woff-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eef2ec;
  --canvas: #f7f8f3;
  --surface: #ffffff;
  --surface-2: #fbfcf8;
  --surface-dark: #111715;
  --ink: #101413;
  --muted: #5f6a62;
  --faint: rgba(16, 20, 19, .5);
  --line: rgba(16, 20, 19, .1);
  --line-strong: rgba(16, 20, 19, .16);
  --accent: #a6bb58;
  --accent-ink: #53611f;
  --brand: #d71f2b;
  --radius-xl: 16px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --max: 1240px;
  --nav-h: 72px;
  --container-pad: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  --font: "Urbanist", "PingFang SC", "Microsoft YaHei", "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slow: 680ms;
  --base: 460ms;
  --fast: 220ms;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #f6f8f2 0%, #eef2ea 100%);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; background-color: var(--surface-2); }
ul { margin: 0; padding: 0; list-style: none; }
/* logo 类图标不需要占位底色（透明 PNG 反相显示） */
.brand-lockup img, .footer-brand img { background: none; }

/* 顶部滚动进度条 */
.progress {
  position: fixed;
  left: 0; top: 0; z-index: 90;
  width: 100%; height: 3px;
  background: transparent;
}
.progress span {
  display: block; width: 0; height: 100%;
  background: var(--accent-ink);
  transform-origin: left center;
}

/* ===================== 导航（贴顶通栏实底条） ===================== */
.site-nav {
  position: fixed;
  top: 0; left: 0;
  z-index: 80;
  width: 100%;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  background: rgba(246, 248, 242, .9);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--base) var(--ease), background var(--base) var(--ease);
}
.site-nav.scrolled {
  background: rgba(246, 248, 242, .97);
  box-shadow: 0 8px 26px rgba(74, 86, 72, .1);
}

.brand-lockup { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-lockup img { width: 34px; height: 34px; object-fit: contain; }
.brand-text { display: grid; gap: 2px; line-height: 1.05; }
.brand-text strong { font-size: 16px; letter-spacing: .01em; font-weight: 700; color: var(--ink); }
.brand-text span { font-size: 10px; letter-spacing: .04em; color: rgba(16,20,19,.55); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  min-height: 36px; display: inline-flex; align-items: center;
  padding: 0 14px; border-radius: 8px;
  color: rgba(16,20,19,.62); font-size: 14.5px; font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(16,20,19,.05); }
.nav-links a.active { color: var(--ink); background: rgba(16,20,19,.07); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 20px; border-radius: 9px;
  background: var(--accent-ink); color: #f6f7ef; font-size: 14.5px; font-weight: 600;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); background: #42501a; }

/* 汉堡菜单（移动端） */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: rgba(16,20,19,.05);
  border-radius: 9px; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ===================== 布局容器 ===================== */
.page { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 92px 0 56px; }
.section.first { padding-top: calc(var(--nav-h) + 44px); }

.section-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 860px; }
.eyebrow { color: var(--accent-ink); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.title {
  margin: 0; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08;
  letter-spacing: -.02em; font-weight: 700; text-wrap: balance;
}
.title.mid { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; }
.lead { margin: 0; max-width: 720px; color: #313b37; font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.7; font-weight: 400; }
.body { margin: 0; color: #36423d; font-size: 15px; line-height: 1.78; font-weight: 400; }
.caption { color: var(--muted); font-size: 13px; line-height: 1.55; font-weight: 400; }
.section-rule { width: 100%; height: 1px; margin: 6px 0 34px;
  background: linear-gradient(90deg, rgba(16,20,19,.16), rgba(16,20,19,.04), transparent); }

/* ===================== Hero ===================== */
.hero { padding-top: calc(var(--nav-h) + 48px); min-height: 84svh; display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; align-content: center; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 15px;
  border-radius: 999px; background: rgba(16,20,19,.06); color: rgba(16,20,19,.72);
  font-size: 13px; line-height: 1; font-weight: 500;
}
.pill.primary { background: rgba(166,187,88,.18); color: var(--accent-ink); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 28px;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: 0;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn.primary { background: var(--accent-ink); color: #f6f7ef; box-shadow: 0 12px 26px rgba(83,97,31,.22); }
.btn.primary:hover { transform: translateY(-2px); background: #42501a; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { transform: translateY(-2px); background: #fbfcf8; }

.visual-stage {
  position: relative; min-height: 480px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(76,86,72,.12);
}
.visual-stage > img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; object-position: center; }

/* ===================== 卡片 / 面板（实底 + 细边框） ===================== */
.panel {
  position: relative; border-radius: var(--radius-lg); padding: 30px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,20,19,.04);
}
.panel.dark { background: var(--surface-dark); color: #f6f7ef; border-color: transparent; }
.panel.dark .body, .panel.dark .caption { color: rgba(246,247,239,.72); }
.panel.dark .eyebrow { color: #d8e7a1; }
.panel.dark .label b { color: #f6f7ef; }

.label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px;
  color: var(--muted); font-size: 13px; font-weight: 500; }
.label b { color: var(--ink); font-size: 15px; font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.mini-card {
  min-height: 168px; padding: 24px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-rows: auto auto 1fr; gap: 10px;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(76,86,72,.12); border-color: var(--line-strong); }
.mini-card.dark { background: var(--surface-dark); color: #f6f7ef; border-color: transparent; }
.mini-card h3 { margin: 0; font-size: 18px; line-height: 1.26; font-weight: 700; }
.mini-card p { margin: 0; color: #44504b; font-size: 13.5px; line-height: 1.6; font-weight: 400; }
.mini-card.dark p { color: rgba(246,247,239,.72); }
.mini-card .index { color: rgba(16,20,19,.34); font-size: 13px; font-weight: 600; }
.mini-card.dark .index { color: rgba(246,247,239,.42); }

.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.icon svg { width: 24px; height: 24px; stroke: var(--accent-ink); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== 双栏 split ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.split.three-two { grid-template-columns: 1.15fr .85fr; }
.panel.image-panel { padding: 0; min-height: 420px; background: var(--surface-2); border: 1px solid var(--line); }
.panel.image-panel > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center; }
.panel.image-panel.fill > img { object-fit: contain; padding: 20px; background: #fff; }

/* ===================== 数据条 ===================== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { display: grid; gap: 8px; min-height: 96px; padding: 20px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); }
.stat strong { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 400; }

/* ===================== 表格 ===================== */
.table { display: grid; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.row > div:last-child { border-right: 0; }
.row strong { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.row span { color: var(--muted); font-size: 13px; line-height: 1.55; font-weight: 400; }

/* ===================== 规格数据表（AIRCLOUD 等） ===================== */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.spec-table th, .spec-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 14px; color: #36423d; }
.spec-table thead th { background: var(--surface-dark); color: #f6f7ef; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.spec-table tbody td:first-child { font-weight: 700; color: var(--accent-ink); }
.spec-table th:last-child, .spec-table td:last-child { border-right: 0; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: rgba(166,187,88,.09); }
.spec-note { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 14px; }

/* ===================== 页脚 ===================== */
.site-footer { position: relative; z-index: 1; margin-top: 56px; padding: 64px 0 40px;
  background: var(--surface-dark); color: #cdd5cb; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(205,213,203,.7); font-size: 13.5px; line-height: 1.65; max-width: 300px; }
.footer-col h4 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: #f6f7ef; }
.footer-col a { display: block; color: rgba(205,213,203,.78); font-size: 13.5px; line-height: 2; transition: color var(--fast); }
.footer-col a:hover { color: #d8e7a1; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(205,213,203,.5); font-size: 12.5px; }

/* ===================== 滚动渐显 ===================== */
/* 默认可见：内容（文字/布局）立即可见，绝不白屏。
   仅当 JS 就绪（html.js，由 <head> 内联脚本同步添加）时才先隐藏再淡入；
   这样即使 JS 执行慢或失败，页面文字也照常显示。 */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(30px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: calc(var(--stagger, 0) * 70ms); will-change: opacity, transform; }
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
html.js .reveal[data-reveal="left"] { transform: translateX(-34px); }
html.js .reveal[data-reveal="right"] { transform: translateX(34px); }
html.js .reveal[data-reveal="scale"] { transform: scale(.98); }
html.js .reveal[data-reveal="left"].in-view, html.js .reveal[data-reveal="right"].in-view { transform: translateX(0); }
html.js .reveal[data-reveal="scale"].in-view { transform: scale(1); }

.floaty { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

/* ===================== 产品卡片（首页矩阵） ===================== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-card { display: grid; gap: 16px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease); }
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(76,86,72,.14); border-color: var(--line-strong); }
.prod-card .tag { display: inline-flex; align-items: center; gap: 8px; align-self: start;
  padding: 6px 14px; border-radius: 999px; background: rgba(166,187,88,.16); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.prod-card h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.22; }
.prod-card p { margin: 0; color: #44504b; font-size: 14px; line-height: 1.62; }
.prod-card .more { color: var(--accent-ink); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.prod-card .more::after { content: "→"; transition: transform var(--fast) var(--ease); }
.prod-card:hover .more::after { transform: translateX(4px); }

/* ===================== CTA 区 ===================== */
.cta-block { display: grid; gap: 22px; padding: 56px 48px; border-radius: var(--radius-lg);
  background: var(--surface-dark); color: #f6f7ef; position: relative; overflow: hidden; }
.cta-block::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; bottom: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166,187,88,.2), transparent 62%); }
.cta-block h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(26px,3vw,42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.cta-block p { position: relative; z-index: 1; color: rgba(246,247,239,.74); font-size: 16.5px; max-width: 640px; margin: 0; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===================== 面包屑 ===================== */
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--accent-ink); }

/* ===================== 详情参数表（产品页） ===================== */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.spec-card { padding: 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.spec-card .k { color: var(--muted); font-size: 13px; }
.spec-card .v { font-size: 16px; font-weight: 600; }
.spec-card .v small { color: var(--muted); font-weight: 400; }

/* 应用标签 */
.use-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.use-tags span { padding: 7px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13px; color: #36423d; }

/* 对比表 */
.compare-board { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { padding: 28px; border-radius: var(--radius-lg); display: grid; gap: 14px; align-content: start; }
.compare-card.bad { background: var(--surface); border: 1px solid var(--line); }
.compare-card.good { background: var(--surface-dark); color: #f6f7ef; }
.compare-card .ctag { font-size: 13px; font-weight: 700; color: var(--muted); }
.compare-card.good .ctag { color: #d8e7a1; }
.compare-card h3 { margin: 0; font-size: 22px; font-weight: 700; }
.compare-card ul { display: grid; gap: 10px; }
.compare-card ul li { font-size: 14px; line-height: 1.6; font-weight: 400; padding-left: 22px; position: relative; }
.compare-card.bad ul li::before { content: "×"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.compare-card.good ul li::before { content: "✓"; position: absolute; left: 0; color: #a6bb58; font-weight: 700; }

/* 流程图 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* 时间线 */
.timeline { display: grid; gap: 16px; }
.tl-item { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 20px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.tl-item .yr { font-size: 18px; font-weight: 700; color: var(--accent-ink); }
.tl-item h4 { margin: 0 0 4px; font-size: 16px; }
.tl-item p { margin: 0; color: #44504b; font-size: 14px; }

/* 联系表单 */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.form-field { display: grid; gap: 7px; margin-bottom: 18px; }
.form-field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font); font-size: 15px; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); width: 100%; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166,187,88,.2); }
.form-note { font-size: 12px; color: var(--faint); margin-top: 8px; }
.form-ok { display: none; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(166,187,88,.18); color: var(--accent-ink); font-size: 14px; margin-top: 14px; }
.form-ok.show { display: block; }

.info-list { display: grid; gap: 14px; }
.info-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.info-row .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(166,187,88,.16); }
.info-row .ic svg { width: 20px; height: 20px; stroke: var(--accent-ink); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.info-row b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.info-row span, .info-row a { font-size: 15px; color: var(--ink); }

/* ===================== 响应式 ===================== */
@media (max-width: 1100px) {
  .hero-grid, .split, .split.reverse, .split.three-two, .compare-board, .contact-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid.three, .prod-grid, .flow { grid-template-columns: repeat(2, 1fr); }
  .visual-stage, .visual-stage > img { min-height: 420px; }
}
@media (max-width: 860px) {
  :root { --container-pad: 20px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .site-nav { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(246,248,242,.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
    padding: 10px 18px 16px; gap: 4px; box-shadow: 0 18px 40px rgba(74,86,72,.12); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 8px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .section { padding-top: 84px; }
  .hero { padding-top: calc(var(--nav-h) + 28px); min-height: auto; }
  .card-grid, .card-grid.three, .prod-grid, .flow, .spec-grid, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; }
  .row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .row > div:last-child { border-bottom: 0; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .panel, .cta-block { padding: 24px; }
  .cta-block { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal[data-reveal] { opacity: 1; transform: none; transition: none; }
  .floaty { animation: none; }
}
