@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../../static/vendor/font-awesome/webfonts/fa-brands-400.woff2") format("woff2"),
       url("../../static/vendor/font-awesome/webfonts/fa-brands-400.ttf") format("truetype");
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../../static/vendor/font-awesome/webfonts/fa-regular-400.woff2") format("woff2"),
       url("../../static/vendor/font-awesome/webfonts/fa-regular-400.ttf") format("truetype");
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../../static/vendor/font-awesome/webfonts/fa-solid-900.woff2") format("woff2"),
       url("../../static/vendor/font-awesome/webfonts/fa-solid-900.ttf") format("truetype");
}

:root {
  --brand-50: 244 247 250;
  --brand-100: 230 237 244;
  --brand-200: 199 214 230;
  --brand-300: 155 183 209;
  --brand-400: 100 144 180;
  --brand-500: 61 106 147;
  --brand-600: 47 90 128;
  --brand-700: 41 77 110;
  --brand-800: 35 64 91;
  --brand-900: 28 51 72;
  --accent-50: 250 247 234;
  --accent-100: 244 236 206;
  --accent-200: 232 215 156;
  --accent-300: 215 188 100;
  --accent-400: 191 156 51;
  --accent-500: 139 105 20;
  --accent-600: 117 87 17;
  --accent-700: 95 70 15;
  --accent-800: 76 56 12;
  --accent-900: 61 45 10;
}

html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fbfcfe;
  color: #17252e;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgb(var(--brand-200) / .7); color: rgb(var(--brand-900)); }

body.dv-heavy h1, body.dv-heavy h2, body.dv-heavy h3, body.dv-heavy h4 { letter-spacing: -0.02em; }
body.dv-heavy h1, body.dv-heavy h2 { font-weight: 900; }
body.dv-white { background-color: #fbfcfe; }

.ym-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.nav-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.hover-lift { transition: transform .22s ease, box-shadow .22s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(23, 37, 46, .38); }

/* ── 顶栏 / 导航 ───────────────────────────────── */
.ym-topbar { background: #101a24; color: #9aa8b5; font-size: 12px; padding: 7px 0; }
.ym-topbar i { color: rgb(var(--accent-300)); }

.ym-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid #e8eef3;
  box-shadow: 0 6px 18px -16px rgba(23, 37, 46, .5);
}
.ym-nav-link {
  padding: .55rem .85rem; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #4b5b67;
  transition: color .15s, background .15s; white-space: nowrap;
}
.ym-nav-link:hover { color: rgb(var(--brand-700)); background: rgb(var(--brand-50)); }
.ym-nav-link.is-active { color: rgb(var(--brand-700)); background: rgb(var(--brand-50)); }

/* ── 按钮 ────────────────────────────────────── */
.ym-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.55rem; border-radius: 9999px;
  font-size: 14px; font-weight: 700; line-height: 1.2;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
  cursor: pointer; border: 1px solid transparent;
}
.ym-btn:active { transform: translateY(1px); }
.ym-btn-primary { background: rgb(var(--brand-700)); color: #fff; box-shadow: 0 10px 22px -12px rgb(var(--brand-700) / .8); }
.ym-btn-primary:hover { background: rgb(var(--brand-800)); }
.ym-btn-warm { background: rgb(var(--accent-700)); color: #fff; box-shadow: 0 10px 22px -12px rgb(var(--accent-700) / .8); }
.ym-btn-warm:hover { background: rgb(var(--accent-800)); }
.ym-btn-ghost { background: #fff; color: rgb(var(--brand-700)); border-color: rgb(var(--brand-200)); }
.ym-btn-ghost:hover { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-300)); }
.ym-btn-sm { padding: .5rem 1rem; font-size: 13px; }
.ym-btn-block { width: 100%; }

/* ── 首屏 ────────────────────────────────────── */
.ym-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(980px 420px at 86% -14%, rgb(var(--accent-100) / .62), transparent 62%),
    radial-gradient(900px 480px at 6% -6%, rgb(var(--brand-100) / .95), transparent 58%),
    linear-gradient(180deg, #fbfcfe 0%, #f6f9fc 100%);
  border-bottom: 1px solid #e8eef3;
}
.ym-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(23, 37, 46, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 37, 46, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 65% at 50% 20%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 65% at 50% 20%, #000 30%, transparent 100%);
}
.ym-hero > * { position: relative; z-index: 1; }

.ym-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .8rem; border-radius: 9999px;
  background: rgb(var(--accent-50)); border: 1px solid rgb(var(--accent-200));
  color: rgb(var(--accent-700)); font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.ym-title { font-size: clamp(30px, 4vw, 47px); font-weight: 900; line-height: 1.16; letter-spacing: -.025em; color: #101a24; }
.ym-title em { font-style: normal; color: rgb(var(--brand-700)); position: relative; white-space: nowrap; }
.ym-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: rgb(var(--accent-300) / .55); border-radius: 2px; z-index: -1;
}
.ym-lead { color: #55626e; font-size: 15px; line-height: 1.95; max-width: 62ch; }

.ym-facts { display: flex; flex-wrap: wrap; gap: .9rem 2.1rem; margin-top: 1.6rem; }
.ym-facts div { display: flex; align-items: baseline; gap: .45rem; }
.ym-facts i { font-style: normal; font-size: 11px; letter-spacing: .08em; color: #6b7a87; }
.ym-facts b { font-size: 23px; font-weight: 900; color: rgb(var(--brand-700)); font-variant-numeric: tabular-nums; }

/* ── 卡片 / 图标 ──────────────────────────────── */
.ym-card {
  background: #fff; border: 1px solid rgb(var(--brand-100));
  border-radius: 18px;
  box-shadow: 0 14px 30px -24px rgba(23, 37, 46, .5), 0 2px 6px -4px rgba(23, 37, 46, .08);
}
.ym-card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ym-card-hover:hover { transform: translateY(-4px); border-color: rgb(var(--brand-200)); box-shadow: 0 22px 40px -26px rgba(23, 37, 46, .55); }

.ym-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--brand-50)); color: rgb(var(--brand-700));
  border: 1px solid rgb(var(--brand-100)); font-size: 19px;
}
.ym-icon.warm { background: rgb(var(--accent-50)); color: rgb(var(--accent-700)); border-color: rgb(var(--accent-100)); }

.ym-chip {
  display: inline-flex; align-items: center; gap: .32rem;
  padding: .22rem .62rem; border-radius: 9999px;
  font-size: 11.5px; font-weight: 700;
  background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); border: 1px solid rgb(var(--brand-100));
}
.ym-chip.warm { background: rgb(var(--accent-50)); color: rgb(var(--accent-700)); border-color: rgb(var(--accent-200)); }

/* ── 章节标题 ─────────────────────────────────── */
.ym-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.9rem; }
.ym-sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: #101a24; line-height: 1.25; }
.ym-sec-head p { margin-top: .5rem; color: #6b7a87; font-size: 14px; line-height: 1.8; max-width: 62ch; }
.ym-sec-head .ym-more { font-size: 13px; font-weight: 700; color: rgb(var(--brand-700)); white-space: nowrap; }
.ym-sec-head .ym-more:hover { color: rgb(var(--brand-800)); }

/* ── 办理流程 ─────────────────────────────────── */
.ym-step { position: relative; padding: 1.35rem 1.1rem 1.2rem; }
.ym-step .num {
  width: 38px; height: 38px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums;
  background: rgb(var(--brand-700)); color: #fff;
  box-shadow: 0 0 0 5px rgb(var(--brand-50));
}
.ym-step .num.warm { background: rgb(var(--accent-700)); box-shadow: 0 0 0 5px rgb(var(--accent-50)); }
.ym-step h3 { margin-top: 1rem; font-size: 15.5px; font-weight: 800; color: #1a2730; }
.ym-step p { margin-top: .4rem; font-size: 12.8px; line-height: 1.8; color: #6b7a87; }

/* ── 价格卡 ───────────────────────────────────── */
.ym-price { position: relative; padding: 1.7rem 1.5rem 1.55rem; display: flex; flex-direction: column; }
.ym-price .amount { font-size: 34px; font-weight: 900; color: #101a24; line-height: 1; font-variant-numeric: tabular-nums; }
.ym-price .amount small { font-size: 14px; font-weight: 700; color: #6b7a87; margin-right: .2rem; }
.ym-price .amount span { font-size: 13px; font-weight: 600; color: #8b98a3; margin-left: .35rem; }
.ym-price ul { margin: 1.1rem 0 1.4rem; display: grid; gap: .58rem; }
.ym-price li { display: flex; gap: .5rem; align-items: flex-start; font-size: 13px; line-height: 1.65; color: #4b5b67; }
.ym-price li i { color: rgb(var(--brand-500)); font-size: 12px; margin-top: .3rem; }
.ym-price .ribbon {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  padding: .24rem .6rem; border-radius: 9999px;
  background: rgb(var(--accent-700)); color: #fff;
}
.ym-price.featured { background: linear-gradient(160deg, rgb(var(--brand-800)), rgb(var(--brand-700) 55%, rgb(var(--brand-600)))); border-color: transparent; color: #fff; box-shadow: 0 26px 46px -26px rgb(var(--brand-900) / .85); }
.ym-price.featured .amount, .ym-price.featured h3 { color: #fff; }
.ym-price.featured .amount small, .ym-price.featured .amount span { color: rgba(255, 255, 255, .66); }
.ym-price.featured li { color: rgba(255, 255, 255, .82); }
.ym-price.featured li i { color: rgb(var(--accent-300)); }
.ym-price.featured .ym-chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }
.ym-price.featured .ym-btn-warm { background: rgb(var(--accent-500)); }
.ym-price.featured .ym-btn-warm:hover { background: rgb(var(--accent-600)); }

/* ── 表单 ─────────────────────────────────────── */
.ym-label { display: block; font-size: 13px; font-weight: 600; color: #3f4d58; margin-bottom: .42rem; }
.ym-label .req { color: #dc2626; margin-left: .15rem; }
.ym-input, .ym-select, .ym-textarea {
  width: 100%; border: 1px solid #dfe7ee; border-radius: 12px;
  background: #fff; padding: .68rem .9rem; font-size: 14px; color: #1a2730;
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}
.ym-input::placeholder, .ym-textarea::placeholder { color: #a4b0ba; }
.ym-input:focus, .ym-select:focus, .ym-textarea:focus {
  border-color: rgb(var(--brand-400));
  box-shadow: 0 0 0 3px rgb(var(--brand-200) / .5);
}
.ym-textarea { min-height: 110px; resize: vertical; }
.ym-hint { margin-top: .35rem; font-size: 11.5px; color: #8b98a3; }
.ym-error { display: none; margin-top: .5rem; padding: .55rem .8rem; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12.5px; }
.ym-error.is-show { display: block; }

/* ── 登录 / 注册 ──────────────────────────────── */
.ym-auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 620px; }
.ym-auth-aside {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, rgb(var(--brand-900)), rgb(var(--brand-700)) 58%, rgb(var(--brand-600)));
  color: #fff; padding: 2.6rem 2.4rem;
}
.ym-auth-aside::after {
  content: ''; position: absolute; right: -90px; bottom: -110px; width: 320px; height: 320px;
  border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .16);
  background: radial-gradient(circle at 30% 30%, rgb(var(--accent-400) / .28), transparent 62%);
}
.ym-auth-aside::before {
  content: ''; position: absolute; left: -120px; top: -120px; width: 300px; height: 300px;
  border-radius: 9999px; border: 1px dashed rgba(255, 255, 255, .18);
}
.ym-auth-aside > * { position: relative; z-index: 1; }
.ym-auth-body { padding: 2.6rem 2.4rem; background: #fff; }

.demo-box {
  border: 1px dashed rgb(var(--accent-300)); border-radius: 14px;
  background: rgb(var(--accent-50) / .7); padding: .9rem 1rem;
}
.demo-box code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; font-weight: 700; color: rgb(var(--accent-800)); }

/* ── 会员中心 ─────────────────────────────────── */
.ym-status { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .68rem; border-radius: 9999px; font-size: 11.5px; font-weight: 700; }
.ym-status::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.st-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.st-doing { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.st-done { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.ym-timeline { position: relative; padding-left: 1.7rem; }
.ym-timeline::before { content: ''; position: absolute; left: 6px; top: .4rem; bottom: .4rem; width: 2px; background: rgb(var(--brand-100)); }
.ym-timeline .tl-item { position: relative; padding-bottom: 1.15rem; }
.ym-timeline .tl-item:last-child { padding-bottom: 0; }
.ym-timeline .tl-item::before {
  content: ''; position: absolute; left: -1.7rem; top: .28rem; width: 14px; height: 14px;
  border-radius: 9999px; background: #fff; border: 2px solid rgb(var(--brand-300));
}
.ym-timeline .tl-item.done::before { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); box-shadow: 0 0 0 4px rgb(var(--brand-50)); }
.ym-timeline .tl-item.current::before { background: rgb(var(--accent-500)); border-color: rgb(var(--accent-500)); box-shadow: 0 0 0 4px rgb(var(--accent-100)); }

.ym-table { width: 100%; border-collapse: collapse; }
.ym-table th { text-align: left; font-size: 12px; font-weight: 700; color: #6b7a87; letter-spacing: .04em; padding: .7rem .9rem; background: #f7fafc; border-bottom: 1px solid #e8eef3; }
.ym-table td { padding: .85rem .9rem; font-size: 13px; color: #3f4d58; border-bottom: 1px solid #eef3f7; vertical-align: middle; }
.ym-table tr:last-child td { border-bottom: 0; }

/* ── FAQ ──────────────────────────────────────── */
.ym-faq details { border-bottom: 1px dashed rgb(var(--accent-200)); }
.ym-faq details:first-child { border-top: 1px dashed rgb(var(--accent-200)); }
.ym-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .2rem; font-size: 14.5px; font-weight: 700; color: #1a2730;
}
.ym-faq summary::-webkit-details-marker { display: none; }
.ym-faq summary .plus { color: rgb(var(--brand-500)); transition: transform .2s ease; font-size: 13px; }
.ym-faq details[open] summary .plus { transform: rotate(45deg); }
.ym-faq details p { padding: 0 .2rem 1.15rem; font-size: 13.5px; line-height: 1.9; color: #5c6a76; max-width: 78ch; }

/* ── 文章正文 ─────────────────────────────────── */
.doc-prose { color: #374151; font-size: .95rem; line-height: 1.95; word-break: break-word; }
.doc-prose > :first-child { margin-top: 0 !important; }
.doc-prose h3 { font-size: 1.08rem; font-weight: 700; color: #111827; margin: 2rem 0 .85rem; padding-left: .7rem; border-left: 3px solid rgb(var(--brand-500)); line-height: 1.5; }
.doc-prose h4 { font-size: .97rem; font-weight: 700; color: #1f2937; margin: 1.4rem 0 .55rem; }
.doc-prose p { margin: 0 0 .9rem; }
.doc-prose strong, .doc-prose b { color: #111827; font-weight: 600; }
.doc-prose a { color: rgb(var(--brand-600)); text-decoration: underline; text-underline-offset: 2px; }
.doc-prose ul, .doc-prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.doc-prose ul { list-style: disc; }
.doc-prose ol { list-style: decimal; }
.doc-prose li { margin-bottom: .45rem; }
.doc-prose li::marker { color: rgb(var(--brand-500)); }
.doc-prose hr { border: 0; border-top: 1px dashed #e5e7eb; margin: 1.7rem 0; }
.doc-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.15rem; font-size: .9rem; }
.doc-prose th, .doc-prose td { border: 1px solid #eef0f3; padding: .6rem .8rem; text-align: left; vertical-align: top; }
.doc-prose th { background: rgb(var(--brand-50)); font-weight: 600; color: #374151; }
.doc-prose blockquote { border-left: 3px solid rgb(var(--brand-300)); background: rgb(var(--brand-50) / .5); padding: .7rem 1rem; margin: 0 0 1rem; color: #4b5563; border-radius: 0 .5rem .5rem 0; }

/* ── 页脚 ─────────────────────────────────────── */
.ym-footer { background: #101a24; color: #93a2af; }
.ym-footer h3 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 1rem; }
.ym-footer a { color: #93a2af; font-size: 13px; transition: color .15s; }
.ym-footer a:hover { color: #fff; }
.ym-footer .col { display: grid; gap: .62rem; }

/* ── Toast ────────────────────────────────────── */
#ymToast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: #101a24; color: #fff; font-size: 13px; font-weight: 600;
  padding: .72rem 1.2rem; border-radius: 9999px; z-index: 90;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
#ymToast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ── 窄屏 ─────────────────────────────────────── */
@media (max-width: 1023.98px) {
  .ym-auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .ym-auth-aside { padding: 2rem; }
}
@media (max-width: 767.98px) {
  .ym-title { font-size: 27px; }
  .ym-facts b { font-size: 19px; }
  .ym-table thead { display: none; }
  .ym-table tr { display: grid; gap: .25rem; padding: .85rem 0; border-bottom: 1px solid #eef3f7; }
  .ym-table td { border: 0; padding: .12rem 0; display: flex; justify-content: space-between; gap: 1rem; }
  .ym-table td::before { content: attr(data-label); font-size: 11.5px; color: #8b98a3; font-weight: 600; }
}
