:root {
    --bg: #05080d;
    --bg-soft: #09111a;
    --panel: rgba(10, 15, 23, 0.92);
    --panel-strong: rgba(12, 19, 30, 0.98);
    --card: rgba(14, 22, 34, 0.92);
    --line: rgba(122, 154, 196, 0.16);
    --line-strong: rgba(122, 154, 196, 0.28);
    --text: #eef5ff;
    --text-soft: #9eafc6;
    --text-faint: #6f8098;
    --cyan: #5fd5ff;
    --green: #46efad;
    --amber: #ffbf66;
    --rose: #ff7f8f;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-color: rgba(95, 213, 255, 0.32) rgba(7, 12, 18, 0.94);
}

body.xywe-latest-page {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Bahnschrift", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    background:
        radial-gradient(900px 520px at 10% 0%, rgba(95, 213, 255, 0.14), transparent 58%),
        radial-gradient(760px 460px at 100% 12%, rgba(70, 239, 173, 0.10), transparent 56%),
        linear-gradient(145deg, #04070b 0%, #09111a 48%, #04070b 100%);
}

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 100% 4px, 4px 100%;
    opacity: 0.18;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

.hero-panel,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.98), rgba(9, 14, 22, 0.98));
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 28px 30px 32px;
    margin-bottom: 18px;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(95, 213, 255, 0.16), transparent 28%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
}

.hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.nav-link,
.btn,
.timeline-download {
    text-decoration: none;
}

.nav-link {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(8, 14, 22, 0.88);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover,
.btn:hover,
.timeline-download:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.nav-link:hover {
    border-color: var(--line-strong);
    background: rgba(13, 21, 31, 0.96);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
    gap: 22px;
    align-items: stretch;
}

.eyebrow,
.panel-kicker,
.hero-highlight-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(95, 213, 255, 0.16);
    background: rgba(10, 18, 28, 0.82);
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.02;
    letter-spacing: 0.02em;
}

.hero-desc {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-stat {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(122, 154, 196, 0.12);
    background: rgba(8, 13, 21, 0.76);
}

.hero-stat-label {
    display: block;
    color: var(--text-faint);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.hero-stat-value {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1;
}

.hero-highlight {
    position: relative;
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(95, 213, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(12, 22, 33, 0.98), rgba(7, 11, 18, 0.98)),
        radial-gradient(circle at top, rgba(95, 213, 255, 0.16), transparent 52%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.hero-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.hero-highlight-version {
    margin-top: 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    font-weight: 700;
}

.hero-highlight-meta {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    margin-bottom: 18px;
}

.panel {
    padding: 24px;
}

.panel-head,
.section-head,
.timeline-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-head h2,
.section-head h2 {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 1.1;
}

.status-pill,
.section-summary {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(70, 239, 173, 0.24);
    background: rgba(12, 28, 22, 0.68);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-card {
    margin-top: 22px;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(122, 154, 196, 0.12);
    background: rgba(8, 14, 22, 0.76);
}

.download-file {
    font-size: 18px;
    line-height: 1.6;
    word-break: break-all;
}

.download-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.meta-item {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(122, 154, 196, 0.10);
    background: rgba(12, 18, 29, 0.88);
}

.meta-item span {
    display: block;
    color: var(--text-faint);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.meta-item strong {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(23, 114, 101, 0.98), rgba(18, 76, 68, 0.96));
    color: #effff9;
    box-shadow: 0 16px 28px rgba(19, 92, 80, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 18px 34px rgba(19, 92, 80, 0.34);
}

.btn-secondary,
.timeline-download {
    border-color: rgba(122, 154, 196, 0.16);
    background: rgba(12, 18, 28, 0.88);
    color: var(--text);
}

.btn-secondary:hover,
.timeline-download:hover {
    border-color: rgba(95, 213, 255, 0.26);
    background: rgba(15, 23, 35, 0.96);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.note-list,
.timeline-notes {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.note-item,
.timeline-note {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(122, 154, 196, 0.12);
    background: rgba(8, 14, 22, 0.8);
    color: var(--text-soft);
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.is-feature {
    border-color: rgba(70, 239, 173, 0.24);
    background: linear-gradient(180deg, rgba(11, 29, 23, 0.88), rgba(8, 16, 14, 0.88));
    color: #d8ffef;
}

.is-fix {
    border-color: rgba(255, 127, 143, 0.22);
    background: linear-gradient(180deg, rgba(34, 15, 21, 0.86), rgba(18, 9, 13, 0.88));
    color: #ffe5ea;
}

.is-optimize {
    border-color: rgba(95, 213, 255, 0.22);
    background: linear-gradient(180deg, rgba(11, 24, 35, 0.86), rgba(8, 13, 20, 0.88));
    color: #e1f8ff;
}

.is-warning {
    border-color: rgba(255, 191, 102, 0.24);
    background: linear-gradient(180deg, rgba(39, 24, 11, 0.86), rgba(24, 14, 7, 0.88));
    color: #fff0d6;
}

.history-panel {
    margin-top: 0;
}

.timeline {
    position: relative;
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
}

.timeline-line {
    position: absolute;
    top: 10px;
    left: 0;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(180deg, rgba(95, 213, 255, 0.46), rgba(122, 154, 196, 0.04));
}

.timeline-item:last-child .timeline-line {
    bottom: 12px;
}

.timeline-card {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(122, 154, 196, 0.12);
    background: rgba(9, 15, 23, 0.84);
}

.timeline-card::before {
    content: "";
    position: absolute;
    top: 24px;
    left: -31px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--cyan), var(--green));
    box-shadow: 0 0 0 6px rgba(13, 20, 32, 0.92), 0 0 18px rgba(95, 213, 255, 0.24);
}

.timeline-version {
    font-size: 22px;
    line-height: 1.1;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    color: var(--text-faint);
    font-size: 13px;
}

.timeline-download {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.empty-block,
.empty-inline {
    border: 1px dashed rgba(122, 154, 196, 0.18);
    border-radius: var(--radius-md);
    background: rgba(8, 13, 21, 0.74);
    color: var(--text-soft);
}

.empty-block {
    margin-top: 22px;
    padding: 22px 20px;
    line-height: 1.8;
}

.empty-inline {
    margin-top: 16px;
    padding: 14px 16px;
    line-height: 1.7;
}

.empty-panel {
    margin-top: 18px;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(12px);
    min-width: 180px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(95, 213, 255, 0.22);
    background: rgba(8, 14, 22, 0.96);
    color: var(--text);
    text-align: center;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.26);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1100px) {
    .hero-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-highlight {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 100%);
        padding-top: 20px;
        padding-bottom: 32px;
    }

    .hero-panel,
    .panel {
        border-radius: 22px;
        padding: 20px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .panel-head,
    .section-head,
    .timeline-head {
        flex-direction: column;
    }

    .download-meta-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 18px;
    }

    .timeline-card::before {
        left: -25px;
    }

    .download-actions {
        flex-direction: column;
    }

    .btn,
    .timeline-download,
    .nav-link {
        width: 100%;
    }
}
