/* 海外Mini管家 · 全站样式
   配色：蓝 / 白 / 金。所有颜色都是变量，深色模式只改变量。 */

:root {
  --blue-900: #0B2A5B;
  --blue-700: #164A9A;
  --blue-500: #2F6FD6;
  --blue-300: #8FB3EE;
  --blue-100: #E6EEFB;
  --gold-700: #A67C12;
  --gold-500: #D4A531;
  --gold-300: #F0D58A;
  --gold-100: #FBF3DC;

  --bg: #F7F9FD;
  --card: #FFFFFF;
  --ink: #16213A;
  --muted: #5A6782;
  --line: #D9E1F0;
  --shadow: 0 10px 30px rgba(11, 42, 91, 0.08);

  --brand: var(--blue-700);
  --brand-strong: var(--blue-900);
  --accent: var(--gold-500);
  --accent-ink: #5A3F00;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --gutter: 20px;
}

:root[data-theme="dark"] {
  --bg: #0E1628;
  --card: #16213A;
  --ink: #E8EDF7;
  --muted: #A4B0C8;
  --line: #2A3752;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --brand: #6E9CE6;
  --brand-strong: #BFD3F5;
  --blue-100: #1B2B4D;
  --gold-100: #3A2F12;
  --accent-ink: #F0D58A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1628;
    --card: #16213A;
    --ink: #E8EDF7;
    --muted: #A4B0C8;
    --line: #2A3752;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --brand: #6E9CE6;
    --brand-strong: #BFD3F5;
    --blue-100: #1B2B4D;
    --gold-100: #3A2F12;
    --accent-ink: #F0D58A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; margin: 0 0 0.5em; color: var(--brand-strong); letter-spacing: 0.01em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
small, .small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- 顶栏 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand-strong); font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-tag { display: none; color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.only-mobile { display: none; }
.theme-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.theme-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; }
@media (min-width: 900px) { .brand-tag { display: inline; } }
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--card); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav-links a { padding: 12px var(--gutter); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; margin-left: auto; }
  .nav .nav-cta { display: none; }
  .nav-links .only-mobile { display: block; font-weight: 600; color: var(--gold-700); }
}

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff; box-shadow: 0 6px 18px rgba(47, 111, 214, 0.3); }
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-300)); color: #3B2A00; box-shadow: 0 6px 18px rgba(212, 165, 49, 0.3); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- 版块 ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--blue-100); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-700); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-500); }
:root[data-theme="dark"] .eyebrow { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--gold-300); } }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }

/* ---------- 首屏 ---------- */
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 85% 0%, rgba(212, 165, 49, 0.18), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(47, 111, 214, 0.14), transparent 60%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .gold { color: var(--gold-700); font-style: normal; }
:root[data-theme="dark"] .hero h1 .gold { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .gold { color: var(--gold-300); } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.hero-facts li::before { content: "◆ "; color: var(--gold-500); font-size: 10px; vertical-align: 2px; }
.hero-art { position: relative; }
.ill { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.ill img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ill-note { position: absolute; right: 12px; bottom: 12px; font-size: 12px; background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px dashed var(--gold-500); color: var(--muted); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* ---------- 机型与价目 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--gold-500); box-shadow: 0 16px 40px rgba(212, 165, 49, 0.22); }
.plan .ribbon { position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, var(--gold-500), var(--gold-300)); color: #3B2A00; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan .chip { display: inline-block; font-family: var(--font-mono); font-size: 13px; color: var(--brand); background: var(--blue-100); padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; }
.plan .ill img { aspect-ratio: 1 / 1; }
.plan h3 { font-size: 24px; margin: 14px 0 4px; }
.plan .price { font-family: var(--font-display); font-size: 36px; color: var(--brand-strong); margin: 8px 0 2px; }
.plan .price small { font-size: 15px; color: var(--muted); font-family: var(--font-body); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; color: var(--muted); font-size: 15px; }
.plan li { padding: 6px 0; border-top: 1px dashed var(--line); }
.plan li::before { content: "✓ "; color: var(--gold-700); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 18px; }
.plan-table th, .plan-table td { padding: 7px 4px; border-top: 1px dashed var(--line); text-align: right; font-weight: 500; }
.plan-table th { text-align: left; color: var(--muted); font-weight: 500; }
.plan-table thead th { border-top: 0; font-size: 12px; color: var(--muted); text-align: right; padding-bottom: 4px; }
.plan-table thead th:first-child { text-align: left; }
.plan-table thead small { font-weight: 400; }
.plan-table td:nth-child(2) { color: var(--brand-strong); font-weight: 600; }
.plan-table td:nth-child(3) { color: var(--gold-700); }
:root[data-theme="dark"] .plan-table td:nth-child(3) { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-table td:nth-child(3) { color: var(--gold-300); } }
.plan-notes { margin-top: 22px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }

/* ---------- 流程 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 28px; color: var(--gold-500); display: block; line-height: 1; margin-bottom: 10px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- 规格表 ---------- */
.spec { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.spec th { width: 32%; color: var(--muted); font-weight: 500; background: color-mix(in srgb, var(--blue-100) 60%, var(--card)); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-wrap .spec { border: 0; }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-700); font-size: 20px; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- 联系 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-tg { grid-column: 1 / -1; }
.contact .qr { width: 128px; height: 128px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.contact-tg .tg-link { font-family: var(--font-mono); font-size: 14px; word-break: break-all; }
@media (max-width: 480px) { .contact-tg { flex-direction: column; align-items: flex-start; } }
.contact { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.contact .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-100), var(--gold-100)); display: grid; place-items: center; color: var(--brand); font-weight: 700; font-size: 20px; flex: none; }
.contact .id { font-family: var(--font-mono); background: var(--blue-100); padding: 2px 8px; border-radius: 6px; font-size: 14px; }
.copy-btn { border: 1px solid var(--line); background: transparent; color: var(--brand); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; margin-left: 6px; }

/* ---------- 文章页 ---------- */
.page-head { padding: 56px 0 24px; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 40px; padding-top: 8px; }
.prose h3 { font-size: 18px; margin-top: 26px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose .callout { background: var(--gold-100); border-left: 4px solid var(--gold-500); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; color: var(--accent-ink); }
.prose .callout p:last-child { margin-bottom: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0 10px; font-size: 15px; }
.toc ol { margin: 6px 0 0; padding-left: 1.3em; columns: 2; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.updated { font-size: 13px; color: var(--muted); }

/* ---------- 表单 ---------- */
.form-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form legend { font-family: var(--font-display); font-size: 20px; color: var(--brand-strong); margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-300); border-color: var(--blue-500); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg); font-size: 15px; cursor: pointer; }
.choice span b { display: block; font-size: 15px; }
.choice span small { display: block; font-size: 12px; color: var(--muted); }
.choice input:checked + span { border-color: var(--blue-500); background: var(--blue-100); box-shadow: inset 0 0 0 1px var(--blue-500); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-300); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }
.check input { margin-top: 4px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.error { color: #B4322E; }
.form-status.ok { color: #1E7A3F; }
.form-success { background: var(--gold-100); border: 1px solid var(--gold-300); border-radius: var(--radius); padding: 24px; color: var(--accent-ink); }
.side-note { position: sticky; top: 88px; }
.side-note .card + .card { margin-top: 16px; }
.side-note ul { padding-left: 1.2em; margin: 0; color: var(--muted); font-size: 14px; }
.side-note li { margin: 6px 0; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 14px; margin-bottom: 8px; color: var(--ink); font-family: var(--font-body); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer .legal-line { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; }
.gold-rule { height: 3px; width: 64px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); border-radius: 2px; margin: 0 0 20px; }
