/* ============ 基础变量 ============ */
:root {
  --ink: #10243a;
  --ink-2: #1c3550;
  --accent: #c7743a;
  --accent-dark: #a65c28;
  --accent-soft: #f6e3d3;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --line: #e4e9ee;
  --text: #1f2d3d;
  --muted: #64748b;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(16, 36, 58, .08);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg { width: 1.25em; height: 1.25em; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
section[id] { scroll-margin-top: 76px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .25s;
  font-size: 15px;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(199,116,58,.35); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-block { width: 100%; justify-content: center; }

/* ============ 导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(16,36,58,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: #fff; display: grid; place-items: center;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; color: var(--ink); }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: .4px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 500; color: #475569; transition: .2s; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--muted); transition: .2s;
}
.lang-btn.active { background: var(--ink); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ============ Hero ============ */
.hero { position: relative; background: #0d1f31; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 32%, rgba(199,116,58,.22), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(72,118,160,.2), transparent 45%),
    linear-gradient(135deg, #0d1f31 0%, #16324f 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 1px, transparent 14px);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 40px; min-height: 580px; padding-block: 70px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px;
  color: #cbd8e6; border: 1px solid rgba(255,255,255,.2);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(199,116,58,.25); }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.2; letter-spacing: -1px; }
.hero-lead { margin-top: 20px; font-size: 16px; color: #b6c4d4; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 24px; color: #fff; letter-spacing: .5px; }
.stat span { font-size: 12px; color: #8fa3b8; margin-top: 2px; }

/* Hero 视觉 */
.hero-visual { position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%; }
.visual-ring { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; inset: 0; }
.ring-2 { inset: 14%; border-style: dashed; border-color: rgba(199,116,58,.3); animation: spin 30s linear infinite; }
.visual-core {
  position: absolute; inset: 30%; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e0955a);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 60px rgba(199,116,58,.45);
}
.visual-core svg { width: 64px; height: 64px; }
.visual-chip {
  position: absolute; padding: 8px 14px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; color: #e2eaf2; backdrop-filter: blur(6px);
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 8%; left: 6%; }
.chip-2 { top: 22%; right: 0; animation-delay: .8s; }
.chip-3 { bottom: 18%; left: 2%; animation-delay: 1.6s; }
.chip-4 { bottom: 6%; right: 8%; animation-delay: 2.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 通用板块 ============ */
.section { padding-block: 88px; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; max-width: 640px; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 12px;
}
.section-head h2, .about-content h2, .contact-intro h2 {
  font-size: clamp(28px, 3.2vw, 38px); color: var(--ink); letter-spacing: -.5px; line-height: 1.3;
}
.section-head p, .contact-intro p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* ============ 免费知识 ============ */
.knowledge { background: var(--bg); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.topic-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .3s; position: relative; overflow: hidden;
}
.topic-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: .3s;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.topic-card:hover::before { transform: scaleX(1); }
.topic-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; color: var(--accent); border: 1px solid var(--line); margin-bottom: 18px;
}
.topic-icon svg { width: 26px; height: 26px; }
.topic-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.topic-card > p { font-size: 14px; color: var(--muted); min-height: 68px; }
.topic-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.topic-list li { font-size: 13.5px; color: #475569; display: flex; align-items: flex-start; gap: 9px; }
.topic-list li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.topic-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer;
  background: none; border: 0; padding: 0;
}
.topic-link svg { width: 16px; height: 16px; transition: transform .2s; }
.topic-link:hover svg { transform: translateX(4px); }

/* ============ 付费服务 ============ */
.services { background: var(--bg-soft); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; transition: .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 20px; color: var(--ink); }
.service-card .service-desc { font-size: 14px; color: var(--muted); margin: 10px 0 18px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.service-list li { font-size: 13.5px; color: #475569; display: flex; gap: 10px; align-items: flex-start; }
.service-list li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.service-card .btn { margin-top: auto; justify-content: center; }
.service-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 30px;
  padding: 18px 22px; background: var(--accent-soft); border-radius: 10px;
  font-size: 13.5px; color: #7a4a24;
}
.service-note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-dark); }

/* ============ 关于 ============ */
.about { background: #fff; }
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.about-visual {
  aspect-ratio: 1; border-radius: 20px; max-width: 360px; width: 100%; margin-inline: auto;
  background:
    radial-gradient(circle at 65% 30%, rgba(199,116,58,.3), transparent 50%),
    linear-gradient(135deg, #16324f, #0d1f31);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.about-visual::after {
  content: ''; position: absolute; inset: 0; opacity: .08;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 1px, transparent 18px);
}
.about-badge {
  position: relative; z-index: 1; text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.about-badge svg { width: 72px; height: 72px; color: var(--accent); }
.about-badge span { font-size: 18px; font-weight: 600; letter-spacing: 2px; }
.about-content p { color: var(--muted); margin-top: 16px; font-size: 15px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-tags span {
  padding: 7px 14px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--ink-2);
}

/* ============ 联系 ============ */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-methods { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.method { display: flex; align-items: center; gap: 14px; }
.method-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center;
}
.method-icon svg { width: 21px; height: 21px; }
.method div { display: flex; flex-direction: column; }
.method small { font-size: 11px; color: var(--muted); }
.method span { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-all; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.contact-form label > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fbfcfd; color: var(--text); font-size: 14px; outline: none; transition: .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(199,116,58,.12); background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ============ 页脚 ============ */
.site-footer { background: #0d1f31; color: #8fa3b8; padding-block: 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: #fff; font-size: 15px; }
.footer-brand p { font-size: 12px; margin-top: 2px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; transition: .2s; }
.footer-nav a:hover { color: var(--accent); }
.copyright { font-size: 12px; width: 100%; text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 56px; }
  .hero-visual { max-width: 320px; order: -1; }
  .topic-grid, .service-grid { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 280px; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 20px;
    gap: 0; display: none; box-shadow: 0 12px 24px rgba(16,36,58,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .section { padding-block: 64px; }
  .brand-text small { display: none; }
  .hero-stats { gap: 22px; }
  .stat strong { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .footer-inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
