/* 智澜报关官网 — 与 /hs-classify 同视觉语言：深色底 + 蓝紫渐变 + 玻璃拟态 */
:root {
  --bg: #0b0a1c;
  --bg-2: #12102a;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --text-dim: rgba(238, 240, 255, 0.62);
  --text-faint: rgba(238, 240, 255, 0.4);
  --c1: #6366f1;
  --c2: #a855f7;
  --grad: linear-gradient(135deg, var(--c1), var(--c2));
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 背景光斑 ─────────────────────────────────────────────── */
.bg-blob {
  position: fixed; border-radius: 50%; filter: blur(110px);
  opacity: 0.16; z-index: -1; pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
.b1 { width: 44vmax; height: 44vmax; left: -12vmax; top: -14vmax; background: var(--c1); }
.b2 { width: 38vmax; height: 38vmax; right: -12vmax; top: 22vh; background: var(--c2); animation-delay: -7s; }
.b3 { width: 40vmax; height: 40vmax; left: 18vw; bottom: -18vmax; background: #3b82f6; animation-delay: -14s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } }

/* ── 顶栏 ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(11, 10, 28, 0.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  font-size: 22px; width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--grad); box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.brand-txt h1 { font-size: 17px; font-weight: 700; }
.brand-txt p { font-size: 11px; color: var(--text-faint); }

.nav { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }

/* 移动端抽屉导航 */
.nav.open {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; inset: 72px 14px auto 14px; z-index: 49;
  padding: 10px; border-radius: var(--radius);
  background: rgba(18, 16, 42, 0.92); backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.nav.open a {
  padding: 12px 14px; border-radius: 12px; font-size: 15px; color: var(--text-dim);
}
.nav.open a:active { background: var(--card-strong); color: var(--text); }
.nav-cta {
  background: var(--grad) !important; color: #fff !important; font-weight: 600;
  text-align: center;
}
.nav-login {
  border: 1px solid var(--line) !important; text-align: center;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-band { padding: 56px 20px 48px; position: relative; }
.hero-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.badge {
  display: inline-block; font-size: 12px; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 999px; color: #c7c9ff;
  border: 1px solid rgba(99, 102, 241, 0.4); background: rgba(99, 102, 241, 0.12);
}
.hero-band h2 {
  font-size: clamp(30px, 7.5vw, 52px); font-weight: 800;
  margin: 20px 0 14px; line-height: 1.25; letter-spacing: 0.5px;
}
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sub { color: var(--text-dim); font-size: 15px; max-width: 640px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 0; cursor: pointer; transition: transform 0.15s, box-shadow 0.25s;
  min-height: 44px;
}
.btn.primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45); }
.btn.primary:active { transform: translateY(0); }
.btn.ghost {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn.lg { width: 100%; padding: 15px 24px; font-size: 16px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  max-width: 760px; margin: 0 auto;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 8px; backdrop-filter: blur(10px);
}
.stat b { display: block; font-size: clamp(18px, 4.5vw, 26px); font-weight: 800; }
.stat b em { font-style: normal; font-size: 0.6em; margin-left: 2px; }
.stat span { font-size: 11px; color: var(--text-faint); }

/* ── 通用 section ─────────────────────────────────────────── */
.section { padding: 52px 20px; max-width: 1080px; margin: 0 auto; }
.section.alt { max-width: none; }
.section.alt > *:not(.sec-head) { max-width: 1080px; margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 28px; }
.sec-tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  padding: 3px 12px; border-radius: 8px; margin-bottom: 10px;
  background: var(--grad); color: #fff;
}
.sec-head h3 { font-size: clamp(22px, 5.5vw, 30px); font-weight: 800; }
.sec-head p { color: var(--text-dim); margin-top: 6px; font-size: 14px; }

/* ── 功能卡片 ─────────────────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.card, .tile, .dl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover, .tile:hover, .dl-card:hover { border-color: rgba(139, 92, 246, 0.45); background: var(--card-strong); }
.cards { grid-template-columns: 1fr; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.card h4, .tile b, .dl-card b { font-size: 16px; font-weight: 700; }
.card > p { color: var(--text-dim); font-size: 13.5px; margin: 8px 0 4px; }
.card ul { margin-top: 10px; }
.card ul li {
  font-size: 13px; color: var(--text-dim); padding: 4px 0 4px 20px; position: relative;
}
.card ul li::before {
  content: "✓"; position: absolute; left: 0; font-size: 11px;
  color: #34d399; background: rgba(52, 211, 153, 0.12);
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; top: 8px;
}

/* ── 流程线 ───────────────────────────────────────────────── */
.flow {
  margin-top: 26px; padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px);
}
.flow-title { font-weight: 700; margin-bottom: 16px; }
.flow-line {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none;
}
.flow-line::-webkit-scrollbar { display: none; }
.flow-node {
  flex: 1 0 auto; min-width: 108px; text-align: center;
  padding: 12px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); position: relative;
}
.fn-dot {
  width: 26px; height: 26px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--grad); color: #fff;
}
.flow-node b { display: block; font-size: 13.5px; }
.flow-node span { font-size: 11px; color: var(--text-faint); }

/* ── 归类智能体 ───────────────────────────────────────────── */
.section.alt {
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05) 30%, 70%, transparent);
}
.split { display: grid; gap: 22px; align-items: center; }
.point { display: flex; gap: 14px; margin-bottom: 18px; }
.pt-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.point b { font-size: 15px; }
.point p { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.classify-copy .btn.lg { margin: 8px 0 10px; }
.hint { font-size: 12px; color: var(--text-faint); }
.hint a { color: #a5b4fc; }

/* 对话 mock */
.mock {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(18, 16, 42, 0.85); border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; font-size: 12px; color: var(--text-faint);
  border-bottom: 1px solid var(--line);
}
.mock-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.mock-titlebar span:nth-child(1) { background: #f87171; }
.mock-titlebar span:nth-child(2) { background: #fbbf24; }
.mock-titlebar span:nth-child(3) { background: #34d399; }
.mock-titlebar { gap: 7px; }
.mock-titlebar span:last-of-type { margin-right: 10px; }
.mock-body { padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.m-msg { max-width: 88%; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; }
.m-msg.user { align-self: flex-end; background: var(--grad); border-bottom-right-radius: 4px; }
.m-msg.ai {
  align-self: flex-start; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); border-bottom-left-radius: 4px; width: 88%; max-width: 88%;
}
.m-progress { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); padding: 2px 0; }
.p-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #34d399; }
.m-bubble { margin-top: 4px; }
.m-result {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex; flex-direction: column; gap: 4px;
}
.m-result code { font-size: 16px; font-weight: 800; color: #c7d2fe; letter-spacing: 1px; }
.m-result span { font-size: 11.5px; color: var(--text-dim); }

/* ── 训练中心 ─────────────────────────────────────────────── */
.tiles { grid-template-columns: 1fr; }
.tile-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tile-icon { font-size: 20px; }
.tile-level {
  margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.tile-level.入门 { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.tile-level.进阶 { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.tile-level.实战 { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.tile > p { font-size: 13px; color: var(--text-dim); }
.tile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tile-meta span {
  font-size: 11px; color: var(--text-faint);
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.learn-path {
  margin-top: 26px; padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px);
}
.lp-title { font-weight: 700; margin-bottom: 16px; }
.lp-steps { display: grid; gap: 10px; }
.lp-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.lp-day {
  grid-row: span 2; font-weight: 800; font-size: 13px; color: #c7d2fe;
  width: 52px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.3);
}
.lp-step b { font-size: 14px; }
.lp-step p { font-size: 12px; color: var(--text-dim); }

/* ── 下载 ─────────────────────────────────────────────────── */
.dl-wrap { display: grid; gap: 14px; }
.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dl-icon {
  width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center;
  font-size: 26px; background: var(--grad); box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}
.dl-ver { display: block; font-size: 12px; color: var(--text-faint); font-weight: 400; }
.dl-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.dl-meta span { font-size: 12px; color: var(--text-faint); }
.dl-meta span::before { content: "·"; margin-right: 6px; color: rgba(255, 255, 255, 0.2); }
.dl-meta span:first-child::before { content: ""; margin: 0; }
.dl-btn { width: 100%; }
.dl-note h4 { font-size: 15px; margin-bottom: 10px; }
.dl-note ul li { font-size: 13px; color: var(--text-dim); padding: 5px 0 5px 20px; position: relative; }
.dl-note ul li::before {
  content: "›"; position: absolute; left: 2px; color: #a855f7; font-weight: 800;
}
.dl-note .hint { margin-top: 12px; }

/* ── 页脚 ─────────────────────────────────────────────────── */
.footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 40px 20px calc(28px + var(--safe-b)); }
.foot-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 28px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand .logo { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
.foot-brand b { font-size: 15px; }
.foot-brand p { font-size: 12px; color: var(--text-faint); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col b { font-size: 13px; margin-bottom: 2px; }
.foot-col a { font-size: 12.5px; color: var(--text-dim); }
.foot-col a:hover, .foot-col a:active { color: var(--text); }
.foot-bar {
  max-width: 1080px; margin: 28px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-faint); text-align: center;
}

/* ── toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-b)); transform: translateX(-50%);
  background: rgba(18, 16, 42, 0.95); border: 1px solid var(--line);
  color: var(--text); font-size: 13px; padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); z-index: 99; white-space: nowrap;
  backdrop-filter: blur(12px);
}
.fade-enter-active, .fade-leave-active { transition: opacity 0.25s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ── 桌面 ≥900px ──────────────────────────────────────────── */
@media (min-width: 900px) {
  .bg-blob { filter: blur(150px); opacity: 0.18; }
  .topbar { padding: 14px 32px; }
  .nav {
    display: flex !important; position: static; flex-direction: row;
    gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none;
  }
  .nav a {
    padding: 9px 16px; border-radius: 10px; font-size: 14px; color: var(--text-dim);
    transition: color 0.2s, background 0.2s;
  }
  .nav a:hover { color: var(--text); background: var(--card-strong); }
  .nav-cta { padding: 9px 20px; }
  .nav-toggle { display: none; }
  .hero-band { padding: 84px 20px 72px; }
  .hero-stats { gap: 14px; grid-template-columns: repeat(4, 1fr); }
  .stat:hover { border-color: rgba(139, 92, 246, 0.45); }
  .section { padding: 72px 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card.wide { grid-column: span 1; }
  .flow-node { min-width: 0; flex: 1; }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .dl-wrap { grid-template-columns: repeat(2, 1fr); }
  .dl-note { grid-column: span 2; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .flow-line { overflow: visible; }
}

.logo-img { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.85); padding: 4px; box-shadow: 0 4px 14px rgba(99,102,241,.28); }
.foot-brand .logo-img { width: 36px; height: 36px; background: rgba(255,255,255,.9); }
.section-summary { margin: 18px auto 0; max-width: 760px; text-align: center; font-size: 14px; line-height: 1.7; color: var(--text-faint); padding: 14px 20px; border-top: 1px dashed rgba(148,163,184,.3); }

/* ── 小屏 ≤480px 收紧 ──────────────────────────────────────── */
@media (max-width: 480px) {
  .topbar { padding: 10px 14px; }
  .brand { gap: 9px; }
  .logo-img { width: 34px; height: 34px; padding: 3px; }
  .brand-txt h1 { font-size: 15px; }
  .brand-txt p { display: none; }              /* 极窄屏隐藏副标题，避免挤压 */
  .hero-band { padding: 40px 16px 36px; }
  .hero-band h2 { font-size: clamp(26px, 8vw, 34px); margin: 16px 0 12px; }
  .sub { font-size: 14px; }
  .hero-actions { gap: 10px; margin: 22px 0 28px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .section { padding: 40px 16px; }
  .sec-head { margin-bottom: 20px; }
  .card, .tile, .dl-card, .learn-path, .flow { padding: 16px; }
  .stat { padding: 12px 6px; }
  .stat b { font-size: 20px; }
  .lp-step { grid-template-columns: 40px 1fr; padding: 10px 12px; }
  .lp-day { width: 40px; height: 30px; font-size: 12px; }
  .lp-step b { font-size: 13px; }
  .lp-step p { font-size: 11.5px; }
  .m-msg { font-size: 13px; padding: 9px 12px; }
  .mock-body { padding: 14px 10px; }
  .footer { padding: 32px 16px calc(24px + var(--safe-b)); }
  .foot-bar { font-size: 11px; }
  .section-summary { font-size: 13px; padding: 12px 14px; }
}
