:root {
    --color-bg: #0f1221;
    --color-bg-2: #1a1f3a;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-border: rgba(255, 255, 255, 0.08);
    --color-text: #f5f7ff;
    --color-text-muted: rgba(245, 247, 255, 0.6);
    --color-primary: #7c9cff;
    --color-primary-2: #b388ff;
    --gradient-primary: linear-gradient(135deg, #7c9cff 0%, #b388ff 100%);
    --gradient-bg: radial-gradient(circle at 20% 20%, #2b3566 0%, #0f1221 50%), radial-gradient(circle at 80% 80%, #3a2964 0%, #0f1221 50%);
    --radius-md: 10px;
    --radius-lg: 20px;
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--color-text);
    min-height: 100vh;
    font-size: 15px;
    overflow-x: hidden;
}

body.is-player-mode {
    background: #000;
}

a {
    color: inherit;
    text-decoration: none;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.site-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* 引导页卡片 */
.welcome {
    text-align: center;
    width: 100%;
    max-width: 520px;
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 70px 40px;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 156, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome h1 {
    position: relative;
    font-size: 2.8em;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.welcome .sub {
    position: relative;
    color: var(--color-text-muted);
    font-size: 0.95em;
    margin-bottom: 40px;
}

.play-box {
    position: relative;
    display: inline-block;
}

.play-btn {
    padding: 16px 56px;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(124, 156, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.play-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(124, 156, 255, 0.5);
}

.play-btn:hover::after {
    opacity: 1;
}

.play-btn:active {
    transform: translateY(0);
}

/* 点击进入后的纯播放器模式 */
body.is-player-mode .site {
    padding: 0;
    max-width: none;
}

body.is-player-mode .site-main {
    padding: 0;
}

.player-stage {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
    padding: 24px;
}

.player-wrap {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-wrap video {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    object-fit: contain;
}

.site-footer {
    padding: 20px 0 30px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8em;
    opacity: 0.6;
}

.site-footer p + p {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .welcome {
        padding: 50px 24px;
    }

    .welcome h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .play-btn {
        padding: 14px 40px;
        font-size: 1em;
    }

    .player-stage {
        padding: 12px;
    }
}
