:root {
    --navy: #102b49;
    --navy-deep: #081a2d;
    --red: #b91f3a;
    --ink: #182738;
    --muted: #667789;
    --line: #d9e0e7;
    --paper: #f3f5f7;
    --white: #fff;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.page-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(18px, 3vw, 34px);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 42px);
    border-top: 6px solid var(--red);
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.eyebrow {
    margin: 0 0 8px;
    color: #f0b8c3;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

h1 {
    margin: 0;
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.12;
}

.page-header p:last-child {
    max-width: 760px;
    margin: 12px 0 0;
    color: #dbe5ef;
    line-height: 1.8;
}

.download-panel {
    --download-actions-height: 158px;
    display: flex;
    flex: 0 0 430px;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    transform: translateX(-12px);
}

.download-actions {
    display: grid;
    min-width: 0;
    flex: 0 1 218px;
    gap: 10px;
}

.download-button {
    display: inline-flex;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 8px;
    color: var(--navy-deep);
    background: #fff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .28), inset 0 -4px 0 rgba(185, 31, 58, .16);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.download-button:hover {
    color: #fff;
    background: var(--red);
    box-shadow: 0 22px 42px rgba(0, 0, 0, .32);
    transform: translateY(-2px);
}

.wechat-qr {
    display: block;
    width: auto;
    height: var(--download-actions-height);
    border: 4px solid rgba(255, 255, 255, .95);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .24);
}

.document-view {
    display: grid;
    width: min(100%, 980px);
    gap: 24px;
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
}

.document-page {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(16, 43, 73, .1);
}

.document-page img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

.document-fallback {
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 48px rgba(16, 43, 73, .12);
}

.document-fallback p {
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 800;
}

.document-fallback a {
    color: var(--red);
    font-weight: 900;
}

footer {
    padding: 18px 4px 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 820px) {
    body { background: #fff; }

    .page-shell {
        width: 100%;
        padding: 0;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 22px 16px;
    }

    h1 { font-size: clamp(28px, 8vw, 38px); }

    .download-panel {
        --download-actions-height: 164px;
        width: 100%;
        flex-basis: auto;
        justify-content: flex-start;
        gap: 12px;
        transform: none;
    }

    .download-actions {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        gap: 10px;
    }

    .download-button {
        height: 48px;
        padding: 0 12px;
        font-size: 14px;
    }

    .wechat-qr {
        width: auto;
        height: var(--download-actions-height);
        flex: 0 0 auto;
    }

    @media (max-width: 420px) {
        .download-panel {
            align-items: flex-start;
            flex-direction: column;
        }

        .wechat-qr {
            width: auto;
            height: var(--download-actions-height);
        }
    }

    .document-view {
        width: 100vw;
        gap: 10px;
        margin-top: 10px;
    }

    .document-page {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    footer { padding: 14px 12px 18px; }
}
