*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* 品牌色板 */
    --ink: #0A1128;
    --ink-1: #16264D;
    --ink-2: #1E3A6E;
    --orange: #FF7A00;
    --neon: #39FF88;
    --paper: #FFFFFF;
    --warm-gray: #F3F4F6;
    --deep-green: #0E2F1D;

    /* 字体 */
    --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
    --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", monospace;

    /* 几何 */
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow: 0 12px 40px rgba(10, 17, 40, 0.12);
    --container: 1440px;
    --header-size: 220px;

    /* 动效 */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration: 0.3s;

    /* 滚动进度 */
    --scroll-progress: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-left: var(--header-size);
}

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

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--ink-2);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
    border-radius: 4px;
}

::selection {
    background: var(--orange);
    color: var(--paper);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 24px;
    z-index: 9999;
    background: var(--orange);
    color: var(--paper);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: top 0.3s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

/* ---------- 头部导航（悬浮胶囊浮岛） ---------- */
.site-header {
    position: fixed;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 180px;
    background: var(--ink);
    border-radius: var(--radius-pill);
    padding: 24px 16px;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(10, 17, 40, 0.35);
    transition: transform var(--duration) var(--ease),
        width var(--duration) var(--ease),
        left var(--duration) var(--ease),
        top var(--duration) var(--ease);
}

.site-header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    height: 100%;
}

/* 品牌标识 */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    transition: background 0.3s var(--ease);
}

.brand:hover {
    background: rgba(255, 255, 255, 0.06);
}

.brand__mark {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: var(--ink);
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 18px;
    border-radius: 50%;
}

.brand__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__name {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 18px;
    color: var(--paper);
}

.brand__sub {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

/* 导航 */
.site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-nav__link {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 15px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.site-nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--paper);
}

.site-nav__link[aria-current="page"] {
    background: var(--orange);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.3);
}

/* 移动端导航开关 */
.nav-toggle {
    display: none;
    position: absolute;
    top: 24px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--paper);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* 实时比分滚动条 */
.score-ribbon {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    padding: 12px 14px;
    overflow: hidden;
    white-space: nowrap;
}

.score-ribbon__indicator {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.6);
    animation: pulse 2s infinite;
}

.score-ribbon__text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-ribbon__text em {
    font-style: normal;
    color: var(--orange);
    margin-left: 4px;
    font-weight: 700;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(57, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(57, 255, 136, 0);
    }
}

/* ---------- 页脚 ---------- */
.site-footer {
    position: relative;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 80px;
    overflow: hidden;
}

.site-footer__clip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--paper);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.site-footer__inner {
    padding-top: 64px;
    padding-bottom: 24px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand__name {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--paper);
    margin-bottom: 12px;
}

.footer-brand__summary {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand__trust {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--neon);
    padding-left: 16px;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 4px;
}

.footer-contact__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer-contact__list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-contact__list a:hover {
    color: var(--orange);
}

.footer-contact__note {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    will-change: transform;
}

.btn--primary {
    background: var(--orange);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.25);
}

.btn--primary:hover {
    background: #ff8c1a;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 122, 0, 0.35);
    color: var(--ink);
}

.btn--outline {
    background: transparent;
    color: var(--paper);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

/* ---------- 通用基础组件 ---------- */
.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--warm-gray);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-1);
}

.tag--active {
    background: var(--ink);
    color: var(--paper);
}

.tag--score {
    background: var(--orange);
    color: var(--ink);
    font-weight: 700;
}

/* 编辑感衬线标题 */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-title__en {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

/* 档案夹资料卡 */
.data-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--warm-gray);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(10, 17, 40, 0.16);
}

.data-card__tab {
    display: inline-block;
    padding: 8px 20px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    border-radius: 0 0 var(--radius-lg) 0;
}

.data-card__body {
    padding: 24px;
}

.data-card__score {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
}

.data-card__score span {
    color: var(--orange);
}

.data-card__meta {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-2);
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
    transform: scaleX(var(--scroll-progress));
    transform-origin: 0 0;
    background: var(--orange);
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.4);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--orange);
    font-size: 22px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    z-index: 900;
}

.back-to-top[data-visible] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--orange);
    color: var(--ink);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-2);
    padding: 16px 0;
}

.breadcrumb a {
    color: var(--ink-2);
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb__separator::after {
    content: "/";
    color: rgba(10, 17, 40, 0.3);
    margin-left: 8px;
}

/* ---------- 页面布局骨架 ---------- */
.page-hero {
    padding: 80px 0 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
}

.page-hero__copy {
    max-width: 640px;
}

.page-hero__display {
    font-family: var(--font-serif);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.page-hero__description {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-1);
    max-width: 480px;
}

.content-section {
    padding: 48px 0;
}

.grid-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 32px;
    align-items: start;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.clip-cut {
    clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
    background: var(--warm-gray);
    padding: 48px 0;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1280px) {
    :root {
        --header-size: 200px;
    }

    .site-header {
        width: 156px;
        left: 12px;
    }

    .site-header__inner {
        gap: 16px;
    }

    .brand__mark {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .brand__name {
        font-size: 15px;
    }

    .brand__sub {
        font-size: 9px;
    }

    .site-nav__link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-size: 72px;
    }

    body {
        padding-left: 0;
        padding-top: 72px;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 72px;
        transform: none;
        border-radius: 0;
        padding: 0;
        box-shadow: 0 4px 24px rgba(10, 17, 40, 0.2);
    }

    .site-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        max-width: var(--container);
        margin-inline: auto;
    }

    .brand {
        padding: 0;
    }

    .nav-toggle {
        display: flex;
        position: static;
        margin-left: auto;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--ink);
        padding: 16px;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 24px 48px rgba(10, 17, 40, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    }

    .site-nav[data-open] {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav__list {
        flex-direction: column;
    }

    .score-ribbon {
        margin-top: 0;
        display: none;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .page-hero {
        grid-template-columns: 1fr;
        padding: 48px 0 32px;
    }

    .grid-asymmetric {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ---------- 动效与无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .score-ribbon__indicator {
        animation: none;
    }

    .btn--primary:hover,
    .btn--outline:hover,
    .data-card:hover {
        transform: none;
    }
}
