/*
ThemeName = 全新首页
Description = 极简商务风全新首页模板（Linear 风格）
Version = V1.2.0
*/
:root {
  --primary: #16baaa;
  --primary-dark: #12a094;
  --primary-soft: #e6f8f6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --hero-bg: #f0fdfa;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.08), 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
}
html[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: #334155;
  --hero-bg: #0b1220;
  --primary-soft: #123a37;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
html[data-theme="dark"] .topbar { background: rgba(15, 23, 42, 0.85); }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow); }
.topbar-inner {
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #16baaa 0%, #12a094 100%);
  display: block; flex: none;
}
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.3px; }
.main-nav { flex: 1; display: flex; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: var(--radius-md);
  color: var(--muted); font-weight: 500; font-size: 0.9375rem;
  transition: color 150ms ease, background 150ms ease;
}
.nav-list a:hover { color: var(--ink); background: var(--primary-soft); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--card); color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 150ms ease, transform 150ms ease;
}
.theme-toggle:hover { color: var(--primary); }
.theme-toggle:active { transform: scale(0.98); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:active { transform: scale(0.98); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit;
  border-radius: var(--radius-md); font-size: 0.9375rem; font-weight: 600;
  padding: 10px 20px; line-height: 1.4;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(22, 186, 170, 0.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-md); }

/* ============ 主视觉 Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 48px;
  padding-top: 88px; padding-bottom: 88px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 0.875rem; font-weight: 600;
}
.hero-title {
  font-size: 3rem; font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  margin: 20px 0 16px;
}
.hero-desc { font-size: 1.125rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 1rem; font-weight: 700; color: var(--ink); }
.trust-item span { font-size: 0.8125rem; color: var(--muted); }
.trust-sep { width: 1px; height: 32px; background: var(--line); }

/* Hero 视觉卡片 */
.hero-visual { position: relative; min-height: 340px; }
.visual-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.vc-main {
  position: absolute; top: 12px; left: 8px; right: 8px;
  background: var(--card); padding: 28px;
}
.vc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vc-label { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.vc-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--primary-dark); font-weight: 600; }
.vc-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
.vc-amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.5px; }
.vc-sub { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.vc-bar { height: 8px; border-radius: 999px; background: var(--primary-soft); margin: 20px 0; overflow: hidden; }
.vc-bar span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.vc-row { display: flex; gap: 20px; font-size: 0.8125rem; color: var(--muted); }
.vc-row .vc-strong { font-weight: 700; color: var(--ink); margin-left: 4px; }
.vc-mini {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: var(--card); color: var(--primary);
}
.vc-mini strong { display: block; font-size: 0.9375rem; color: var(--ink); }
.vc-mini span { font-size: 0.8125rem; color: var(--muted); }
.vc-a { bottom: 16px; left: -8px; }
.vc-b { bottom: 16px; right: -8px; }

/* ============ 通用区块 ============ */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 0.8125rem; font-weight: 600;
}
.section-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; margin: 16px 0 12px; }
.section-desc { color: var(--muted); font-size: 1rem; }

/* ============ 特性卡片 ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform 150ms ease, box-shadow 150ms ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ============ 官方动态 ============ */
.section-news { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.news-head { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.news-head h3 { font-size: 1.125rem; font-weight: 700; }
.news-head span { font-size: 0.8125rem; opacity: 0.85; }
.news-a { background: var(--primary); }
.news-b { background: #0284c7; }
.news-c { background: var(--accent); }
.news-more {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms ease;
}
.news-more:hover { background: rgba(255, 255, 255, 0.32); }
.news-list { padding: 8px 22px; flex: 1; }
.news-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.news-list li:last-child { border-bottom: none; }
.news-title {
  flex: 1; font-size: 0.875rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 150ms ease;
}
.news-title:hover { color: var(--primary); }
.news-date { flex: none; font-size: 0.8125rem; color: var(--muted); }
.news-foot {
  display: block; text-align: center; padding: 12px; font-size: 0.875rem;
  color: var(--primary); font-weight: 600; border-top: 1px solid var(--line);
  transition: background 150ms ease;
}
.news-foot:hover { background: var(--primary-soft); }

/* ============ CTA ============ */
.cta-band { padding: 64px 0; background: var(--primary); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; }
.cta-inner h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.3px; }
.cta-inner p { color: rgba(255, 255, 255, 0.85); margin-top: 6px; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand .brand-dot { width: 20px; height: 20px; border-radius: 6px; }
.footer-copy { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--muted); }
.footer-copy a:hover { color: var(--primary); }

/* ============ 弹窗公告 ============ */
.popup-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.4);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade-in 400ms ease both;
}
.popup-card {
  width: 420px; max-width: 100%; background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 32px; animation: pop-in 400ms ease both;
}
.popup-head { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.popup-head h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.popup-body {
  font-size: 0.9375rem; line-height: 1.7; color: var(--muted);
  margin: 20px 0 24px; white-space: pre-wrap;
}
.popup-close { width: 100%; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .hero-visual { min-height: 0; margin-top: 24px; }
  .vc-main { position: static; }
  .vc-a { bottom: auto; left: auto; right: auto; position: static; margin-top: 12px; align-self: flex-start; }
  .vc-b { bottom: auto; left: auto; right: auto; position: static; margin-top: 12px; align-self: flex-end; }
  .features-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 12px 24px 20px;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 12px 8px; }
  .hero-title { font-size: 2.25rem; }
  .hero-trust { flex-wrap: wrap; }
  .features-grid, .news-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
  .hero-actions { flex-wrap: wrap; }
  .hero-visual { display: flex; flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
