:root {
    --primary: #2563eb;
    --accent: #0f8f83;
    --page-bg: #f5f7fa;
    --ink: #182230;
    --muted: #667085;
    --line: #dfe4ea;
    --paper: #ffffff;
    --soft-green: #eef4ff;
    --soft-gold: #eaf7f5;
    --danger-soft: #fff1ee;
    --shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    letter-spacing: 0;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .1s linear; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 68px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 5px; background: var(--primary); color: white; flex: 0 0 auto; }
.brand-mark svg { width: 27px; height: 27px; }
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand strong { font-size: 16px; line-height: 1.3; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.header-help { color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none; padding: 9px 0; border-bottom: 2px solid var(--primary); }
.header-links { display: flex; align-items: center; gap: 24px; }
.header-links a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.header-links a:hover, .header-links .header-help { color: var(--primary); }

.hero {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    background-color: #eef3fa;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-image);
    background-repeat: no-repeat;
    background-size: auto 92%;
    background-position: calc(50% + 330px) bottom;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(238, 243, 250, .44);
}
.hero-inner { min-height: 440px; display: flex; align-items: center; }
.hero-copy { width: min(630px, 60%); padding: 48px 0 54px; }
.eyebrow { display: inline-flex; align-items: center; min-height: 24px; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--primary); font-size: 13px; font-weight: 700; }
.hero h1 { margin: 16px 0; max-width: 630px; font-size: clamp(36px, 4.2vw, 52px); line-height: 1.16; letter-spacing: 0; }
.hero-copy > p { max-width: 590px; margin: 0; color: #475467; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 9px 18px; border-radius: 4px; color: white; background: var(--primary); font-weight: 700; text-decoration: none; }
.primary-button:hover { filter: brightness(.94); transform: translateY(-1px); }
.step-count { color: var(--muted); font-size: 14px; }
.step-count strong { color: var(--ink); font-size: 22px; margin-right: 4px; }

.notice-band { border-top: 1px solid #dbe5f4; border-bottom: 1px solid #dbe5f4; color: #344054; background: #f7f9fc; }
.notice-inner { min-height: 70px; display: flex; align-items: center; gap: 14px; }
.notice-inner p { margin: 0; font-size: 14px; }
.notice-icon { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; color: var(--primary); }
.notice-icon svg { width: 23px; height: 23px; }

.accounts-section { padding: 64px 0 70px; border-bottom: 1px solid var(--line); background: white; scroll-margin-top: 78px; }
.accounts-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.accounts-heading span { color: var(--primary); font-size: 13px; font-weight: 700; }
.accounts-heading h2 { margin: 4px 0 6px; font-size: 30px; line-height: 1.3; }
.accounts-heading p { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; }
.accounts-heading > strong { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.account-list { border-top: 1px solid var(--line); }
.account-item { display: grid; grid-template-columns: 42px minmax(200px, 1.2fr) 54px minmax(150px, .8fr) 116px minmax(110px, .7fr); align-items: center; gap: 14px; min-height: 84px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-index { color: #98a2b3; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.account-field { min-width: 0; }
.account-field > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.account-field code { display: block; overflow: hidden; color: var(--ink); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-field code.empty-value { color: #98a2b3; font-family: inherit; font-weight: 400; }
.copy-button, .reveal-button { height: 32px; padding: 0 10px; border: 1px solid #cfd6df; border-radius: 4px; color: #344054; background: white; font-size: 12px; font-weight: 600; cursor: pointer; }
.copy-button:hover, .reveal-button:hover { border-color: var(--primary); color: var(--primary); background: #f7f9ff; }
.copy-button.copied { border-color: var(--accent); color: var(--accent); background: #edf9f7; }
.password-actions { display: flex; align-items: center; gap: 6px; }
.account-note { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-caution { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 0; color: #475467; font-size: 13px; }
.account-caution svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--primary); margin-top: 2px; }

.guide-section { padding: 72px 0 92px; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }
.step-nav { position: sticky; top: 110px; }
.step-nav-inner { border-left: 2px solid var(--line); padding-left: 18px; }
.nav-title { display: block; margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.step-nav nav { display: grid; gap: 4px; }
.step-nav a { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; gap: 8px; padding: 8px 0; color: #6e7875; font-size: 13px; line-height: 1.35; text-decoration: none; }
.step-nav a span { color: #9ca6a3; font-variant-numeric: tabular-nums; }
.step-nav a:hover, .step-nav a.active { color: var(--primary); font-weight: 700; }
.step-nav a.active span { color: var(--accent); }

.section-heading { margin-bottom: 42px; }
.section-heading > span { color: var(--primary); font-size: 13px; font-weight: 800; }
.section-heading h2 { margin: 6px 0 8px; font-size: 30px; line-height: 1.3; letter-spacing: 0; }
.section-heading p { margin: 0; color: var(--muted); }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: stretch; scroll-margin-top: 100px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--page-bg); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; transition: all .2s ease; }
.step-line { width: 1px; min-height: 40px; flex: 1; background: var(--line); }
.step:last-child .step-line { background: transparent; }
.step.is-visible .step-number { border-color: var(--primary); color: white; background: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
.step-panel { min-width: 0; margin: 0 0 32px 18px; padding: 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.step-header { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px; color: var(--primary); background: var(--soft-green); }
.step-icon svg { width: 25px; height: 25px; }
.step-header h3 { margin: 0 0 5px; font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.step-header p { margin: 0; color: var(--muted); font-size: 14px; }
.mobile-step-label { display: none; color: var(--primary); font-size: 12px; font-weight: 800; }
.step-image { margin: 24px 0 0 66px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #f3f5f8; }
.step-image img { width: 100%; max-height: 520px; object-fit: contain; }
.rich-content { margin: 24px 0 0 66px; color: #344054; }
.rich-content > :first-child { margin-top: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content h2, .rich-content h3, .rich-content h4 { color: var(--ink); line-height: 1.4; letter-spacing: 0; }
.rich-content a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rich-content blockquote { margin: 18px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--primary); color: var(--muted); }
.rich-content img { max-height: 560px; margin: 20px auto; border: 1px solid var(--line); border-radius: 6px; object-fit: contain; }
.rich-content .tip, .rich-content .warning { margin: 20px 0; padding: 14px 16px; border-left: 4px solid var(--primary); border-radius: 4px; background: var(--soft-green); }
.rich-content .warning { border-left-color: #d16a4b; background: var(--danger-soft); }

.finish-block { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 18px; margin: 14px 0 0 80px; padding: 24px 26px; border-radius: 4px; color: white; background: #172554; }
.finish-block > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.finish-block svg { width: 29px; height: 29px; }
.finish-block h2, .finish-block p { margin: 0; }
.finish-block h2 { font-size: 20px; }
.finish-block p { opacity: .8; font-size: 13px; }
.finish-block a { font-size: 13px; font-weight: 800; text-decoration: none; }
.empty-state { padding: 64px 24px; border: 1px dashed #bcc9c5; border-radius: 8px; text-align: center; background: white; }
.empty-state svg { width: 36px; margin: 0 auto 10px; color: var(--primary); }
.empty-state h2, .empty-state p { margin: 0; }
.empty-state p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; color: var(--ink); font-weight: 700; }

@media (max-width: 920px) {
    .hero { min-height: 460px; }
    .hero::before { opacity: .32; background-position: calc(50% + 260px) bottom; }
    .hero::after { background: rgba(238, 243, 250, .62); }
    .hero-copy { width: min(680px, 82%); }
    .guide-layout { grid-template-columns: 1fr; gap: 0; }
    .step-nav { display: none; }
    .account-item { grid-template-columns: 32px minmax(180px, 1fr) 54px minmax(130px, .8fr) 116px; }
    .account-note { display: none; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 28px, 1160px); }
    .site-header { height: 66px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand small { display: none; }
    .header-help { font-size: 13px; }
    .header-links { gap: 14px; }
    .header-links a { font-size: 12px; }
    .hero, .hero-inner { min-height: 470px; }
    .hero::before { background-size: auto 70%; background-position: calc(50% + 150px) bottom; opacity: .42; }
    .hero::after { background: rgba(238, 243, 250, .56); }
    .hero-copy { width: 100%; padding: 38px 0 44px; align-self: flex-start; }
    .hero h1 { margin-top: 14px; font-size: 36px; }
    .hero-copy > p { font-size: 16px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
    .primary-button { width: 100%; }
    .notice-inner { padding: 14px 0; align-items: flex-start; }
    .accounts-section { padding: 46px 0 50px; }
    .accounts-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 20px; }
    .accounts-heading h2 { font-size: 26px; }
    .account-list { display: grid; gap: 12px; border-top: 0; }
    .account-item { grid-template-columns: 1fr auto; gap: 12px; min-height: 0; padding: 16px; border: 1px solid var(--line); border-radius: 4px; }
    .account-index { display: none; }
    .account-field { min-width: 0; }
    .password-field { padding-top: 12px; border-top: 1px solid #edf0f4; }
    .password-actions { align-self: end; padding-top: 12px; border-top: 1px solid #edf0f4; }
    .account-note { display: block; grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #edf0f4; }
    .guide-section { padding: 58px 0 72px; }
    .section-heading { margin-bottom: 32px; }
    .section-heading h2 { font-size: 27px; }
    .step { display: block; }
    .step-rail { display: none; }
    .step-panel { margin: 0 0 18px; padding: 22px 18px; }
    .step-header { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; }
    .step-icon { width: 42px; height: 42px; }
    .step-header h3 { font-size: 19px; }
    .mobile-step-label { display: block; margin-bottom: 2px; }
    .step-image, .rich-content { margin-left: 0; }
    .finish-block { grid-template-columns: 45px 1fr; margin-left: 0; padding: 20px; }
    .finish-block > span { width: 45px; height: 45px; }
    .finish-block > a { grid-column: 2; }
    .footer-inner { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
