/* 基础变量与全局 */
:root {
    --primary: rgb(70,139,223);
    --primary-deep: #245fba;
    --primary-soft: #eef6ff;
    --primary-mist: #f6faff;
    --ink: #142033;
    --muted: #5d6b82;
    --line: #dfeaf6;
    --paper: #ffffff;
    --soft-gray: #f7f9fc;
    --radius: 22px;
    --shadow: 0 18px 55px rgba(43, 94, 155, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(70,139,223,0.10), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 52%, #ffffff 100%);
    line-height: 1.75;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.35rem, 11vw, 5.8rem);
    font-weight: 760;
}

h2 {
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    font-weight: 730;
}

h3 {
    font-size: clamp(1.18rem, 3.8vw, 1.8rem);
    font-weight: 700;
}

.section,
.page-section {
    padding: 4.8rem 1.15rem;
}

.content-container,
.header-inner,
.footer-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.narrow-container {
    width: min(860px, calc(100% - 2rem));
    margin: 0 auto;
}

.eyebrow,
.chapter-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .76rem;
    border: 1px solid rgba(70,139,223,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: var(--primary-deep);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-kicker {
    color: var(--primary-deep);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-head {
    margin-bottom: 2.2rem;
}

.section-head p {
    max-width: 680px;
    margin-top: 1rem;
}

.muted {
    color: var(--muted);
}

/* header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(223,234,246,.8);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 760;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 25px rgba(70,139,223,.17);
}

.site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    padding: .75rem;
    background: rgba(255,255,255,.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.site-nav a {
    display: block;
    padding: .75rem .9rem;
    color: var(--muted);
    border-radius: 12px;
    font-size: .96rem;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--primary-deep);
    background: var(--primary-soft);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    cursor: pointer;
}

.nav-toggle-label span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    display: block;
}

.nav-toggle:checked ~ .site-nav {
    display: block;
}

/* button */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .88rem 1.35rem;
    border-radius: 999px;
    background: rgb(70,139,223);
    color: #fff;
    font-weight: 760;
    letter-spacing: .02em;
    box-shadow: 0 16px 34px rgba(70,139,223,.24);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    touch-action: manipulation;
}

.download-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-deep);
    box-shadow: 0 20px 42px rgba(70,139,223,.30);
}

/* magazine hero */
.magazine-hero {
    padding: 4rem 1.15rem 3.4rem;
}

.hero-grid {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 2.3rem;
    align-items: center;
}

.hero-copy {
    position: relative;
}

.hero-copy .eyebrow {
    margin-bottom: 1.1rem;
}

.hero-copy h1 {
    max-width: 860px;
}

.hero-copy p {
    max-width: 680px;
    margin: 1.15rem 0 1.35rem;
    font-size: clamp(1.02rem, 2.3vw, 1.2rem);
}

.security-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.2rem;
}

.security-tags span {
    padding: .56rem .82rem;
    border-radius: 999px;
    background: rgba(70,139,223,.09);
    color: #2f5f9b;
    border: 1px solid rgba(70,139,223,.14);
    font-size: .86rem;
    font-weight: 700;
}

.product-visual {
    position: relative;
    min-height: 470px;
    border-radius: 34px;
    overflow: hidden;
    padding: 1.4rem;
    background:
        linear-gradient(150deg, rgba(70,139,223,.18), rgba(255,255,255,.92) 45%, rgba(232,243,255,.95));
    border: 1px solid rgba(70,139,223,.18);
    box-shadow: var(--shadow);
}

.app-frame {
    width: min(285px, 76vw);
    margin: 0 auto;
    border-radius: 32px;
    padding: .8rem;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 24px 60px rgba(24,64,110,.18);
}

.app-frame img {
    width: 100%;
    border-radius: 24px;
}

.float-card {
    position: absolute;
    display: grid;
    gap: .1rem;
    min-width: 170px;
    padding: .85rem .95rem;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(223,234,246,.95);
    box-shadow: 0 18px 45px rgba(24,64,110,.12);
    backdrop-filter: blur(14px);
}

.float-card strong {
    font-size: .92rem;
}

.float-card span {
    color: var(--muted);
    font-size: .78rem;
}

.float-card.status {
    top: 1.4rem;
    left: 1rem;
}

.float-card.backup {
    right: 1rem;
    top: 42%;
}

.float-card.assets {
    left: 1.1rem;
    bottom: 1.4rem;
}

/* brand statement */
.brand-statement {
    padding: 3.8rem 1.15rem;
}

.statement-box {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.6rem, 5vw, 4.2rem);
    border-radius: 32px;
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
    border: 1px solid rgba(70,139,223,.16);
    box-shadow: var(--shadow);
}

.statement-quote {
    font-size: clamp(1.7rem, 5.5vw, 4.2rem);
    line-height: 1.16;
    color: #17253b;
    max-width: 980px;
    margin-bottom: 1.4rem;
    letter-spacing: -.055em;
}

.statement-grid {
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
}

.statement-grid p {
    margin: 0;
}

/* split sections */
.split-section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 1.4rem;
    display: grid;
    gap: 1.4rem;
    align-items: center;
    padding: clamp(1.4rem, 4vw, 3rem);
    border-radius: 30px;
    border: 1px solid rgba(223,234,246,.95);
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 50px rgba(33,78,130,.07);
}

.split-section.alt {
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.info-panel {
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(70,139,223,.12), rgba(255,255,255,.86));
    border: 1px solid rgba(70,139,223,.16);
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .95rem 0;
    border-bottom: 1px solid rgba(70,139,223,.13);
}

.panel-row:last-child {
    border-bottom: 0;
}

.panel-row span {
    color: var(--muted);
}

.panel-row strong {
    color: var(--primary-deep);
}

/* story timeline */
.story-timeline {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    position: relative;
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    gap: .65rem;
    padding: 1.25rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 45px rgba(36,95,186,.06);
}

.timeline-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
}

.timeline-item a,
.text-link {
    color: var(--primary-deep);
    font-weight: 760;
}

/* chapter index */
.chapter-index {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.chapter-lead {
    position: sticky;
    top: 100px;
    align-self: start;
}

.chapter-list {
    display: grid;
    gap: .75rem;
}

.chapter-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.chapter-row:last-child {
    border-bottom: 1px solid var(--line);
}

.chapter-no {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 800;
}

.chapter-row p {
    margin: .2rem 0 .45rem;
}

/* scenario cards */
.scenario-story-grid {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.scenario-card {
    padding: 1.25rem;
    min-height: 210px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 52px rgba(36,95,186,.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scenario-card.large {
    background: linear-gradient(135deg, #fff, #edf6ff);
}

/* risk panel */
.risk-panel {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.35rem, 4vw, 3rem);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(70,139,223,.14), rgba(255,255,255,.9)),
        #f3f8ff;
    border: 1px solid rgba(70,139,223,.16);
}

.risk-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.6rem;
}

.risk-item {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(70,139,223,.13);
}

.risk-item strong {
    display: block;
    margin-bottom: .35rem;
}

/* FAQ */
.faq-list {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: .9rem;
}

.faq-item {
    padding: 1.25rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(36,95,186,.05);
}

.faq-item h3 {
    font-size: 1.08rem;
    margin-bottom: .5rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* CTA */
.cta-section {
    padding: 4.8rem 1.15rem;
}

.cta-box {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
    text-align: center;
    padding: clamp(1.8rem, 5vw, 4rem);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(70,139,223,.20), transparent 16rem),
        linear-gradient(135deg, #ffffff, #edf6ff);
    border: 1px solid rgba(70,139,223,.16);
    box-shadow: var(--shadow);
}

.cta-box p {
    max-width: 640px;
    margin: 1rem auto 1.4rem;
}

/* page */
.page-hero {
    padding: 4rem 1.15rem 2.5rem;
}

.page-hero-inner {
    width: min(1040px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
}

.page-hero p {
    max-width: 760px;
    font-size: 1.05rem;
}

.guide-layout {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 1.4rem;
    align-items: start;
}

.article-panel,
.side-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(36,95,186,.06);
}

.article-panel h2 {
    font-size: clamp(1.45rem, 4vw, 2.4rem);
    margin: 1.5rem 0 .8rem;
}

.article-panel h2:first-child {
    margin-top: 0;
}

.number-list,
.check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: .75rem;
}

.number-list li,
.check-list li {
    padding: .9rem 1rem;
    border-radius: 18px;
    background: var(--primary-mist);
    border: 1px solid rgba(70,139,223,.12);
    color: #33445f;
}

.number-list li strong,
.check-list li strong {
    color: var(--ink);
}

.tip-box {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(70,139,223,.11), rgba(255,255,255,.92));
    border: 1px solid rgba(70,139,223,.18);
    color: #33445f;
    margin: 1.2rem 0;
}

.side-panel {
    display: grid;
    gap: .9rem;
}

.side-panel h3 {
    font-size: 1.12rem;
}

.side-card {
    padding: .95rem;
    border-radius: 18px;
    border: 1px solid rgba(70,139,223,.13);
    background: #fff;
}

.side-card p {
    margin-bottom: .3rem;
}

.download-only-area {
    margin-top: 1.5rem;
}

/* download page */
.download-steps {
    counter-reset: step;
    display: grid;
    gap: .8rem;
    margin: 1.4rem 0;
}

.download-step {
    position: relative;
    padding: 1rem 1rem 1rem 3.2rem;
    border-radius: 20px;
    background: var(--primary-mist);
    border: 1px solid rgba(70,139,223,.12);
}

.download-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
}

/* footer */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.82);
}

.footer-inner {
    padding: 2.2rem 0;
    display: grid;
    gap: 1.4rem;
}

.footer-brand {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.footer-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.footer-brand p {
    margin: .3rem 0 0;
    max-width: 560px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1rem;
}

.footer-links a {
    color: var(--muted);
    font-weight: 650;
}

.footer-links a:hover {
    color: var(--primary-deep);
}

.footer-bottom {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 1.5rem;
    color: #7a8798;
    font-size: .86rem;
    border-top: 1px solid var(--line);
}

/* tablet / desktop */
@media (min-width: 720px) {
    .statement-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .scenario-story-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .scenario-card.large {
        grid-column: span 2;
    }

    .risk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (min-width: 900px) {
    .nav-toggle-label {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex;
        align-items: center;
        gap: .18rem;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .site-nav a {
        padding: .58rem .82rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.04fr) minmax(360px, .78fr);
        gap: 3rem;
    }

    .magazine-hero {
        padding-top: 6.4rem;
    }

    .product-visual {
        min-height: 590px;
        transform: translateY(10px);
    }

    .float-card.status {
        left: -1rem;
        top: 3rem;
    }

    .float-card.backup {
        right: -1.2rem;
    }

    .float-card.assets {
        left: 1.5rem;
        bottom: 2.2rem;
    }

    .split-section {
        grid-template-columns: 1fr .88fr;
        gap: 3rem;
    }

    .split-section.reverse {
        grid-template-columns: .88fr 1fr;
    }

    .split-section.reverse .split-copy {
        order: 2;
    }

    .split-section.reverse .info-panel {
        order: 1;
    }

    .story-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem 4rem;
    }

    .story-timeline::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background: linear-gradient(180deg, transparent, rgba(70,139,223,.35), transparent);
    }

    .timeline-item:nth-child(even) {
        transform: translateY(3.4rem);
    }

    .chapter-index {
        grid-template-columns: .8fr 1.2fr;
        gap: 4rem;
    }

    .chapter-row {
        grid-template-columns: 80px 1fr;
        padding: 1.25rem 0;
    }

    .guide-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 1.6rem;
    }

    .side-panel {
        position: sticky;
        top: 96px;
    }
}

@media (min-width: 1180px) {
    .section,
    .page-section {
        padding-top: 6.2rem;
        padding-bottom: 6.2rem;
    }
}

@media (max-width: 420px) {
    .content-container,
    .header-inner,
    .footer-inner,
    .page-hero-inner,
    .guide-layout,
    .chapter-index,
    .story-timeline,
    .scenario-story-grid,
    .risk-panel,
    .faq-list,
    .split-section,
    .statement-box,
    .cta-box,
    .hero-grid {
        width: calc(100% - 1.2rem);
    }

    .product-visual {
        min-height: 430px;
        padding: .9rem;
    }

    .float-card {
        min-width: 145px;
        padding: .72rem .8rem;
    }

    .float-card.backup {
        top: 45%;
    }

    .download-btn {
        width: 100%;
    }
}
