:root {
    --bg-deep: #07111a;
    --bg-mid: #0f2530;
    --mist: rgba(203, 234, 240, 0.18);
    --panel: rgba(7, 18, 25, 0.62);
    --panel-strong: rgba(9, 22, 31, 0.84);
    --line: rgba(196, 230, 220, 0.2);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
    --text-main: #f4efe4;
    --text-soft: rgba(244, 239, 228, 0.74);
    --accent: #d9b36c;
    --accent-strong: #f0ca84;
    --accent-blue: #7aa0b7;
    --accent-mint: #9ecfbc;
    --accent-gold: #f0ca84;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Serif SC", serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 18% 18%, rgba(239, 205, 132, 0.2), transparent 22%),
        radial-gradient(circle at 80% 28%, rgba(110, 152, 173, 0.28), transparent 30%),
        linear-gradient(180deg, #102432 0%, #0a1721 55%, #050b11 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(3, 8, 12, 0.06) 0%, rgba(3, 8, 12, 0.72) 78%, rgba(3, 8, 12, 0.92) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23162d3b'/%3E%3Cstop offset='50%25' stop-color='%230f2430'/%3E%3Cstop offset='100%25' stop-color='%23060d13'/%3E%3C/linearGradient%3E%3CradialGradient id='moonGlow' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23f2d69b' stop-opacity='0.95'/%3E%3Cstop offset='32%25' stop-color='%23e7c487' stop-opacity='0.65'/%3E%3Cstop offset='100%25' stop-color='%23e7c487' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='fog' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%23c6d9d0' stop-opacity='0'/%3E%3Cstop offset='48%25' stop-color='%23d4e5dd' stop-opacity='0.28'/%3E%3Cstop offset='100%25' stop-color='%23c6d9d0' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='1000' fill='url(%23sky)'/%3E%3Ccircle cx='1170' cy='210' r='110' fill='url(%23moonGlow)'/%3E%3Cellipse cx='780' cy='660' rx='760' ry='120' fill='url(%23fog)'/%3E%3Cellipse cx='1040' cy='730' rx='600' ry='110' fill='url(%23fog)' opacity='0.78'/%3E%3Cpath d='M0 540 L150 500 L260 520 L380 450 L460 485 L590 430 L730 470 L880 390 L980 420 L1130 370 L1280 445 L1430 390 L1600 450 L1600 1000 L0 1000 Z' fill='%230b1318'/%3E%3Cpath d='M0 620 L110 565 L210 590 L300 520 L420 572 L520 515 L640 560 L780 492 L910 552 L1030 505 L1180 560 L1310 522 L1420 580 L1600 540 L1600 1000 L0 1000 Z' fill='%23111d21'/%3E%3Cpath d='M150 1000 L175 600 L195 600 L212 1000 Z' fill='%23161f22'/%3E%3Cpath d='M278 1000 L300 650 L320 650 L345 1000 Z' fill='%23162024'/%3E%3Cpath d='M1160 1000 L1188 585 L1207 585 L1235 1000 Z' fill='%23161f22'/%3E%3Cpath d='M1320 1000 L1346 615 L1362 615 L1388 1000 Z' fill='%23151f24'/%3E%3Crect x='742' y='450' width='76' height='230' fill='%231b2226'/%3E%3Cpolygon points='690,520 870,520 800,440 730,440' fill='%2322282b'/%3E%3Crect x='756' y='500' width='13' height='22' fill='%23f0ca84' opacity='0.65'/%3E%3Crect x='780' y='500' width='13' height='22' fill='%23f0ca84' opacity='0.65'/%3E%3Crect x='756' y='535' width='13' height='22' fill='%23f0ca84' opacity='0.55'/%3E%3Crect x='780' y='535' width='13' height='22' fill='%23f0ca84' opacity='0.55'/%3E%3Crect x='756' y='570' width='13' height='22' fill='%23f0ca84' opacity='0.48'/%3E%3Crect x='780' y='570' width='13' height='22' fill='%23f0ca84' opacity='0.48'/%3E%3Cpath d='M20 880 C170 780 300 780 460 860 S790 950 980 875 S1330 770 1580 850 L1600 1000 L0 1000 Z' fill='%23060a0d'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    animation: sceneDrift 18s ease-in-out infinite alternate;
    z-index: -3;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 240, 204, 0.08), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 44%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 90px);
    mix-blend-mode: screen;
    opacity: 0.45;
    z-index: -2;
}

.page-orb,
.page-grid {
    pointer-events: none;
    position: fixed;
}

.page-orb {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.3;
    z-index: -1;
}

.page-orb--pink {
    top: 2%;
    right: -10%;
    background: rgba(217, 179, 108, 0.3);
}

.page-orb--blue {
    bottom: 10%;
    left: -10%;
    background: rgba(134, 176, 196, 0.2);
}

.page-grid {
    inset: 0;
    background-image: linear-gradient(rgba(244, 239, 228, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 228, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 82%);
    z-index: -1;
}

.hero-banner,
.tab-nav,
.tab-panel,
.info-card,
.server-card,
.status-card,
.empty-card {
    backdrop-filter: blur(18px);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.back-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
    background: rgba(7, 18, 25, 0.74);
    border: 1px solid rgba(240, 202, 132, 0.18);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.hero-kicker,
.hero-kicker,
.section-kicker,
.group-kicker,
.server-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.core-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 24px;
    display: grid;
    gap: 20px;
}

.hero-banner {
    padding: 34px;
    border-radius: 30px;
    display: block;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 42%),
        var(--panel-strong);
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: auto auto -60px -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(158, 207, 188, 0.16), transparent 70%);
}

.hero-banner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: linear-gradient(270deg, rgba(240, 202, 132, 0.12), transparent 72%);
    pointer-events: none;
}

.hero-title {
    margin: 10px 0 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    color: var(--accent-strong);
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-text {
    margin: 18px 0 0;
    max-width: 54ch;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-soft);
}

.tab-nav {
    padding: 12px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tab-btn {
    min-height: 58px;
    padding: 0 14px;
    border: 0;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.tab-btn.is-active {
    color: #1f1710;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 16px 30px rgba(240, 202, 132, 0.22);
}

.panel-stack {
    display: grid;
}

.tab-panel {
    padding: 24px;
    border-radius: 28px;
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
    gap: 20px;
    align-items: start;
}

.home-main,
.home-side,
.server-layout {
    display: grid;
    gap: 20px;
}

.home-main {
    grid-template-columns: 1fr;
}

.info-card,
.status-card,
.server-card,
.empty-card {
    padding: 22px;
    border-radius: 24px;
}

.news-card {
    min-height: 100%;
}

.video-card {
    padding: 24px;
}

.section-title,
.group-title {
    margin: 8px 0 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.2;
}

.section-text,
.group-text,
.update-summary,
.server-meta,
.status-meta,
.video-empty {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-soft);
}

.pill-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 202, 132, 0.12);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
}

.update-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.update-item {
    display: grid;
    gap: 6px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 202, 132, 0.08);
}

.update-date {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.update-title,
.server-title,
.status-number {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.video-block {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.video-caption {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 202, 132, 0.08);
}

.video-source {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.video-name {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
}

.video-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-soft);
}

.video-option-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 220px);
    gap: 14px;
    margin-top: 18px;
    padding-bottom: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.video-option {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(240, 202, 132, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    scroll-snap-align: start;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.video-option:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 202, 132, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.video-option.is-active {
    border-color: rgba(240, 202, 132, 0.34);
    background: rgba(240, 202, 132, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.video-option-thumb {
    width: 92px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(10, 22, 30, 0.9);
}

.video-option-thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-strong);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.video-option-copy {
    display: grid;
    min-width: 0;
}

.video-option-title {
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 20px;
    background: rgba(10, 22, 30, 0.8);
    box-shadow: inset 0 0 0 1px rgba(240, 202, 132, 0.08);
    min-height: 420px;
}

.group-shell {
    display: grid;
    gap: 22px;
}

.group-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 20px;
}

.group-text {
    max-width: 54ch;
}

.status-grid,
.server-grid {
    display: grid;
    gap: 16px;
}

.status-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    align-items: stretch;
}

.status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    text-align: center;
}

.status-number {
    margin-top: 12px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.status-meta {
    max-width: 14ch;
    text-align: center;
}

.server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.server-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-soft);
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.server-status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c7cedf;
}

.server-status.is-online::before {
    background: var(--accent-mint);
    box-shadow: 0 0 16px rgba(121, 220, 202, 0.42);
}

.server-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.server-backup-link {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: rgba(97, 112, 141, 0.82);
    text-decoration: none;
}

.server-backup-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.action-link--primary {
    color: #1f1710;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.action-link--ghost {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 202, 132, 0.12);
}

.empty-card {
    text-align: center;
}

.site-footer {
    padding: 0 16px 28px;
}

.site-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 22px;
    border-radius: 22px;
    border: 1px solid rgba(240, 202, 132, 0.14);
    background: rgba(7, 18, 25, 0.56);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.site-footer__line {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(244, 239, 228, 0.64);
}

.site-footer__link {
    color: rgba(244, 239, 228, 0.82);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__link:hover {
    color: var(--accent-strong);
}

.site-footer__line + .site-footer__line {
    margin-top: 4px;
}

@keyframes sceneDrift {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.06) translate3d(-1%, -1%, 0);
    }
}

@media (max-width: 980px) {
    .hero-banner,
    .group-hero,
    .home-grid {
        grid-template-columns: 1fr;
    }

    .status-grid,
    .server-grid,
    .tab-nav {
        grid-template-columns: 1fr 1fr;
    }

    .video-card {
        padding: 22px;
    }
}

@media (max-width: 720px) {
    .core-shell {
        width: min(100%, calc(100% - 20px));
    }

    .hero-banner,
    .tab-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .back-link {
        top: 12px;
        right: 10px;
    }

    .home-main,
    .status-grid,
    .server-grid,
    .tab-nav {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        min-height: 52px;
    }

    .server-actions {
        flex-direction: column;
    }

    .video-frame {
        min-height: 260px;
    }

    .video-option-row {
        grid-auto-columns: minmax(180px, 200px);
    }

    .site-footer {
        padding: 0 10px 20px;
    }

    .site-footer__inner {
        width: min(100%, calc(100% - 20px));
        padding: 16px 18px;
    }
}