/* ============================================================
   易汇通客户官网 — 视觉系统 v2「白底信任型」
   基准：中/俄/英汽车交易与跨境金融站点公约数
   （白底深字 · 蓝色信任主色 · 橙红仅做重点强调 · 信息密集卡片 · 事实型信任条）
   零外部依赖：系统字体栈，无 CDN、无 webfont
   ============================================================ */

:root {
  --ink: #16213a;        /* 墨青：标题/正文 */
  --body: #3d4759;       /* 正文次级 */
  --muted: #6b7488;
  --bg: #ffffff;
  --surface: #f5f7fa;    /* 浅灰分隔带 */
  --card: #ffffff;
  --line: #e4e9f1;
  --blue: #2563eb;       /* 品牌蓝，与 /pc/ 登录页同源 */
  --blue-deep: #1d4ed8;
  --blue-tint: #eaf1ff;  /* 图标底/悬停 */
  --accent: #e8571f;     /* 橙红：重点强调（汽车圈价签色系），克制使用 */
  --seal: #d0452c;       /* 印章红 */
  --navy: #0d1830;       /* 深底只留页脚 */
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(22, 33, 58, 0.05), 0 4px 14px rgba(22, 33, 58, 0.06);
  --shadow-md: 0 6px 24px rgba(22, 33, 58, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

.mono { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em; }

/* ---------- 顶栏：白底，行业通用形态 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { border-radius: 8px; }
.brand-name { font-size: 1.18rem; font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }

.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav a {
  color: var(--body); font-size: 0.93rem; font-weight: 500;
  padding: 10px 12px; border-radius: 8px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.topnav a:hover { color: var(--blue); background: var(--blue-tint); }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
}
.lang-switch a {
  display: inline-flex; align-items: center;
  color: var(--muted); font-size: 0.82rem;
  padding: 0 11px; min-height: 38px;
}
.lang-switch a:hover { color: var(--blue); }
.lang-switch a.is-active { background: var(--blue-tint); color: var(--blue-deep); font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; font-weight: 600; font-size: 0.95rem;
  padding: 0 20px; min-height: 44px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 1.02rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid #c9d3e4; background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

:is(a, button, summary):focus-visible {
  outline: 3px solid #93b4ff; outline-offset: 2px; border-radius: 6px;
}

/* ---------- Hero：白底 + 浅蓝渐染 ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, #f0f5ff 0%, #ffffff 78%);
  border-bottom: 1px solid var(--line);
  padding: 64px 24px 56px;
}

.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center;
}

.eyebrow {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em;
  color: var(--blue-deep); text-transform: uppercase; margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 16px;
}

.hero-sub { color: var(--body); font-size: 1.04rem; max-width: 33em; margin-bottom: 18px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; box-shadow: var(--shadow-sm);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 签名元素：回款单据（白底环境） ---------- */
.receipt {
  position: relative;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  border-top: 5px solid var(--blue);
  padding: 22px 24px 16px;
  box-shadow: var(--shadow-md);
}

.receipt-head {
  color: var(--muted); border-bottom: 1px dashed var(--line);
  padding-bottom: 10px; margin-bottom: 4px;
}

.receipt-steps { list-style: none; counter-reset: step; }
.receipt-steps li {
  counter-increment: step;
  position: relative; padding: 11px 0 11px 42px;
  border-bottom: 1px dashed var(--line);
}
.receipt-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  color: var(--blue-deep); background: var(--blue-tint);
  border-radius: 6px; padding: 3px 6px;
}
.step-title { display: block; font-weight: 700; font-size: 0.95rem; }
.step-note { display: block; color: var(--muted); margin-top: 1px; }

.receipt-foot { color: var(--muted); padding-top: 12px; text-align: right; }

.stamp {
  position: absolute; right: 16px; bottom: 40px;
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px double var(--seal); color: var(--seal);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transform: rotate(-12deg);
  font-weight: 800; font-size: 1.1rem;
  background: rgba(208, 69, 44, 0.04);
  pointer-events: none;
}
.stamp .stamp-en { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; font-weight: 600; }

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-12deg) scale(1.55); }
  to   { opacity: 1; transform: rotate(-12deg) scale(1); }
}

/* ---------- 事实型信任条 ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; }
.trust-list {
  max-width: 1120px; margin: 0 auto; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.trust-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust-icon {
  flex: 0 0 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-deep); background: var(--blue-tint);
}
.trust-text { display: flex; flex-direction: column; min-width: 0; }
.trust-text b { font-size: 0.9rem; font-weight: 700; }
.trust-text .mono { color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 章节骨架 ---------- */
.section { padding: 64px 24px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1120px; margin: 0 auto; }

/* 档案编号：小标签（去掉文件夹舌头造型） */
.dossier-tab { margin-bottom: 10px; }
.tab-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-deep); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.tab-label::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }

.section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.section-lead { color: var(--body); font-size: 0.99rem; max-width: 46em; margin-bottom: 32px; }

/* ---------- 功能卡：密集四联排 + 图标 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 20px 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c7d7f8; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--blue-deep); background: var(--blue-tint);
  margin-bottom: 12px;
}
.card h3 { font-size: 0.99rem; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.87rem; line-height: 1.6; }

/* ---------- FAQ：双列 ---------- */
.faq { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faq-title { grid-column: 1 / -1; font-size: 1.22rem; font-weight: 800; margin-bottom: 6px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 0.94rem;
  padding: 14px 44px 14px 16px;
  list-style: none; position: relative; min-height: 44px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px;
  font-family: var(--font-mono); font-size: 1.1rem; color: var(--blue);
}
.faq details[open] { border-color: #c7d7f8; box-shadow: var(--shadow-sm); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 14px; color: var(--muted); font-size: 0.9rem; }

/* ---------- AI 板块 ---------- */
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.card-col { display: grid; gap: 16px; }

.chat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.chat-head { color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.chat-msg { max-width: 92%; margin-bottom: 14px; }
.chat-in  { margin-right: auto; }
.chat-out { margin-left: auto; text-align: right; }
.chat-text {
  display: inline-block; padding: 10px 13px; border-radius: 12px; font-size: 0.92rem; text-align: left;
}
.chat-in  .chat-text { background: var(--surface); border-top-left-radius: 4px; }
.chat-out .chat-text { background: var(--blue-tint); border-top-right-radius: 4px; }
.chat-trans { color: var(--muted); margin-top: 5px; font-size: 0.73rem; }

.ai-proof { margin-top: 34px; text-align: center; color: var(--blue-deep); font-weight: 700; }

/* ---------- 公示：公司与联络 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }

.contact-company, .contact-channels { padding: 22px 22px 18px; }
.contact-company:hover, .contact-channels:hover { transform: none; box-shadow: var(--shadow-sm); }

.company-rows { margin-bottom: 14px; }
.company-row {
  display: flex; gap: 16px; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 0.93rem;
}
.company-row dt { flex: 0 0 7em; color: var(--muted); }
.company-row dd { font-weight: 700; }

.company-advantage { color: var(--muted); font-size: 0.88rem; padding-top: 4px; }

.channel-list { list-style: none; }
.channel-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem;
}
.channel-label { flex: 0 0 9em; color: var(--blue-deep); font-weight: 700; }
.channel-value { font-weight: 700; word-break: break-all; }

.pending { color: var(--muted); font-weight: 400; font-style: italic; }
.channel-note { color: var(--accent); padding-top: 12px; }

/* ---------- CTA 带：品牌蓝渐变 ---------- */
.cta-band {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff; padding: 64px 24px; text-align: center;
}
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-bottom: 8px; }
.cta-inner > p { color: #dbe6ff; margin-bottom: 24px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-deep); box-shadow: 0 8px 22px rgba(9, 25, 66, 0.3); }
.cta-band .btn-primary:hover { background: #f0f5ff; }
.cta-note { margin-top: 14px; font-size: 0.84rem; color: #b9cdfb; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: #97a4bd; padding: 36px 24px; font-size: 0.87rem; }
.footer-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #dbe3f2; font-weight: 600; }
.footer-brand img { border-radius: 6px; }
.footer-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a {
  color: #97a4bd; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; color: #5d6b87; }
.footer-icp a { color: #5d6b87; }
.footer-icp a:hover { color: #97a4bd; }

/* ---------- 滚动浮现（渐进增强，无 JS 时静态呈现） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .stamp { animation: stamp-in 0.5s ease 0.5s backwards; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 960px) {
  .hero-inner, .ai-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px; }
  .topnav { display: none; }
}

@media (max-width: 720px) {
  .card-grid, .trust-list, .faq { grid-template-columns: 1fr; }
  .section { padding: 48px 20px; }
  .topbar { gap: 10px; padding: 8px 12px; }
  .brand-name { display: none; }
  .btn-login { padding: 0 14px; }
  .stamp { width: 88px; height: 88px; font-size: 0.95rem; right: 10px; }
}
