:root {
    --deep-space-blue: #0B1B3D;
    --midnight-blue: #08102A;
    --steel-blue: #1D3A6E;
    --electric-blue: #2563EB;
    --cyan-glow: #00E5FF;
    --gold-bright: #F5B301;
    --gold-light: #FFD75E;
    --text-primary: #F0F4F8;
    --text-secondary: #B8C6D6;
    --surface-glass: rgba(255, 255, 255, 0.08);
    --font-heading: 'Arial Black', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --space-section: clamp(4rem, 8vw, 8rem);
    --space-section-sm: clamp(2rem, 4vw, 4rem);
    --container-width: 1280px;
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    background-color: var(--deep-space-blue);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 80% 10%, rgba(0, 229, 255, 0.12), transparent 30%),
        radial-gradient(circle at 15% 85%, rgba(245, 179, 1, 0.06), transparent 25%),
        linear-gradient(135deg, rgba(11, 27, 61, 0.98), rgba(8, 16, 42, 0.95));
}

::selection {
    background-color: var(--gold-bright);
    color: var(--midnight-blue);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
    letter-spacing: 0.02em;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--electric-blue);
    text-decoration: none;
}

a:hover {
    color: var(--gold-light);
}

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

ul, ol {
    margin: 0;
    padding: 0;
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

.section {
    padding-block: var(--space-section);
}

.section-sm {
    padding-block: var(--space-section-sm);
}

.glass-panel {
    background: var(--surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--cyan-glow);
    padding: 1.5rem;
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
    border-top-color: var(--gold-bright);
    background: rgba(255, 255, 255, 0.06);
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--surface-glass);
    border-left: 3px solid var(--cyan-glow);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--cyan-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 700;
}

.rotated-note {
    display: inline-block;
    transform: rotate(90deg) translateX(-100%);
    transform-origin: top left;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    background-color: var(--gold-bright);
    color: var(--midnight-blue);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus-visible {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-light));
    color: var(--midnight-blue);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    box-shadow: 0 0 20px rgba(245, 179, 1, 0.3);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
    box-shadow: 0 0 30px rgba(245, 179, 1, 0.5);
    color: var(--midnight-blue);
    transform: translateY(-2px);
}

.btn-ghost {
    border-color: var(--cyan-glow);
    color: var(--cyan-glow);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan-glow);
    transform: translateY(-2px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(8, 16, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 179, 1, 0.25);
}

.site-header::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), var(--gold-bright), transparent);
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1rem;
    position: relative;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-mark {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-light));
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(245, 179, 1, 0.5);
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.brand-text em {
    font-style: normal;
    color: var(--gold-bright);
}

.brand-slogan {
    font-size: 0.625rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-masthead {
    position: static;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding-block: 0.5rem;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover {
    color: var(--gold-bright);
}

.nav-list a[aria-current="page"] {
    color: var(--gold-bright);
    border-bottom-color: var(--gold-bright);
}

.nav-index {
    font-size: 0.65rem;
    color: var(--cyan-glow);
    font-weight: 700;
    font-family: monospace;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-cs {
    padding: 0.65rem 1.25rem;
    font-size: 0.8125rem;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.nav-toggle:hover {
    border-color: var(--gold-bright);
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan-glow), var(--gold-bright));
    z-index: 1100;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--steel-blue);
    color: var(--gold-bright);
    border: 1px solid var(--gold-light);
    font-size: 1.25rem;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: var(--gold-bright);
    color: var(--midnight-blue);
}

.fab-cs {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-light));
    color: var(--midnight-blue);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: 0 0 30px rgba(245, 179, 1, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fab-cs:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(245, 179, 1, 0.5);
    color: var(--midnight-blue);
}

.fab-cs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--midnight-blue);
    color: var(--gold-bright);
    font-weight: 900;
}

.site-footer {
    background-color: var(--midnight-blue);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    position: relative;
    margin-top: var(--space-section);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.8), rgba(245, 179, 1, 0.8), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 32rem;
}

.footer-icp {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 1.5rem;
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-left: 3px solid var(--gold-bright);
    background: rgba(255, 255, 255, 0.04);
}

.footer-col-title {
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links-col ul,
.footer-contact-col ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links-col a:hover {
    color: var(--cyan-glow);
    padding-left: 0.35rem;
}

.footer-contact-col li {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.footer-bottom p {
    color: var(--text-secondary);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

:focus-visible {
    outline: 3px solid var(--cyan-glow);
    outline-offset: 3px;
}

@media (min-width: 992px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .brand-block {
        justify-self: start;
    }

    .nav-masthead {
        justify-self: center;
    }

    .header-actions {
        justify-self: end;
    }

    .nav-toggle {
        display: none;
    }
}

@media (max-width: 991px) {
    .nav-masthead {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 380px);
        height: 100vh;
        background-color: var(--midnight-blue);
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 1005;
        border-left: 1px solid rgba(0, 229, 255, 0.2);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav-masthead[data-open] {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-list a {
        font-size: 1.25rem;
        padding-block: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .brand-slogan {
        display: none;
    }

    .header-actions .btn-cs {
        display: none;
    }
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1.25rem;
    }

    .header-inner {
        padding-block: 0.75rem;
    }

    .fab-cs {
        padding: 0.75rem;
    }

    .fab-cs-text {
        display: none;
    }

    .back-to-top {
        bottom: 1.25rem;
        left: 1.25rem;
        width: 42px;
        height: 42px;
    }

    .footer-grid {
        gap: 2rem;
        padding: 3rem 0 2rem;
    }
}

@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;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .back-to-top,
    .fab-cs,
    .btn {
        transition: none !important;
    }
}
