/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量 */
:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-tertiary-rgb: 37, 37, 37;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --ui-select-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    --ui-select-bg-solid: #202020;
    --ui-select-border: rgba(255, 255, 255, 0.12);
    --ui-select-border-hover: rgba(255, 107, 53, 0.4);
    --ui-select-text: var(--text-primary);
    --ui-select-option-bg: #171717;
    --ui-select-option-text: #f3f4f6;
    --ui-select-radius: 12px;
    --ui-select-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    --ui-scrollbar-size: 10px;
    --ui-scrollbar-size-thin: 8px;
    --ui-scrollbar-track: rgba(255, 255, 255, 0.04);
    --ui-scrollbar-thumb: rgba(255, 107, 53, 0.36);
    --ui-scrollbar-thumb-hover: rgba(255, 107, 53, 0.56);
    --ui-scrollbar-thumb-border: rgba(15, 15, 15, 0.68);
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--ui-scrollbar-thumb) var(--ui-scrollbar-track);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--ui-scrollbar-thumb) var(--ui-scrollbar-track);
}

*::-webkit-scrollbar {
    width: var(--ui-scrollbar-size);
    height: var(--ui-scrollbar-size);
}

*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ui-scrollbar-thumb), rgba(255, 107, 53, 0.28));
    border-radius: 999px;
    border: 2px solid var(--ui-scrollbar-thumb-border);
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--ui-scrollbar-thumb-hover), rgba(255, 107, 53, 0.4));
}

.ui-select,
select:not([multiple]):not([size]),
.select-wrapper select {
    min-height: 44px;
    padding: 0.75rem 2.8rem 0.75rem 1rem;
    padding-right: 2.8rem !important;
    border: 1px solid var(--ui-select-border) !important;
    border-radius: var(--ui-select-radius);
    background-color: var(--ui-select-bg-solid) !important;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23ffb28f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        var(--ui-select-bg) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: right 14px center, center !important;
    background-size: 14px 14px, 100% 100% !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--ui-select-shadow);
    color: var(--ui-select-text) !important;
    font: inherit;
    line-height: 1.4;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    color-scheme: dark;
}

.ui-select:hover,
select:not([multiple]):not([size]):hover,
.select-wrapper select:hover {
    border-color: var(--ui-select-border-hover) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px rgba(255, 107, 53, 0.12);
}

.ui-select:focus,
.ui-select:focus-visible,
select:not([multiple]):not([size]):focus,
select:not([multiple]):not([size]):focus-visible,
.select-wrapper select:focus,
.select-wrapper select:focus-visible {
    outline: none;
    border-color: var(--ui-select-border-hover) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(255, 107, 53, 0.12),
        0 16px 34px rgba(255, 107, 53, 0.14);
}

.ui-select:disabled,
select:not([multiple]):not([size]):disabled,
.select-wrapper select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ui-select option,
.ui-select optgroup,
select:not([multiple]):not([size]) option,
select:not([multiple]):not([size]) optgroup,
.select-wrapper select option,
.select-wrapper select optgroup {
    background: var(--ui-select-option-bg);
    color: var(--ui-select-option-text);
}

input[type="date"],
input[type="datetime-local"] {
    min-height: 44px;
    padding: 0.75rem 1rem;
    padding-right: 2.8rem;
    border: 1px solid var(--ui-select-border) !important;
    border-radius: var(--ui-select-radius);
    background-color: var(--ui-select-bg-solid) !important;
    background-image: var(--ui-select-bg) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--ui-select-shadow);
    color: var(--ui-select-text) !important;
    font: inherit;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    color-scheme: dark;
    cursor: pointer;
}

input[type="date"]:hover,
input[type="datetime-local"]:hover {
    border-color: var(--ui-select-border-hover) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px rgba(255, 107, 53, 0.12);
}

input[type="date"]:focus,
input[type="date"]:focus-visible,
input[type="datetime-local"]:focus,
input[type="datetime-local"]:focus-visible {
    outline: none;
    border-color: var(--ui-select-border-hover) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(255, 107, 53, 0.12),
        0 16px 34px rgba(255, 107, 53, 0.14);
}

input[type="date"]:disabled,
input[type="datetime-local"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2);
    cursor: pointer;
    opacity: 0.9;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value,
input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="date"]::-webkit-datetime-edit-minute-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
    color: var(--ui-select-text);
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-text {
    opacity: 0.72;
}

select::-ms-expand {
    display: none;
}

body.policy-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 107, 53, 0.18), transparent 34%),
        linear-gradient(180deg, #111114 0%, #0b0b0d 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-main {
    position: relative;
    padding: 7rem 0 4rem;
}

.policy-main::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 78%);
    pointer-events: none;
    z-index: 0;
}

.policy-hero,
.policy-content-section {
    position: relative;
    z-index: 1;
}

.policy-hero-card,
.policy-sidebar-card,
.policy-content-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
}

.policy-hero-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 28px;
}

.policy-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.14);
    border: 1px solid rgba(255, 107, 53, 0.22);
    color: #ffb28f;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.policy-hero-card h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.policy-hero-card p {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    margin-top: 1.5rem;
    color: #d8d8d8;
    font-size: 0.95rem;
}

.policy-content-section {
    padding-top: 2rem;
}

.policy-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.policy-sidebar {
    position: sticky;
    top: 6.5rem;
}

.policy-sidebar-card {
    padding: 1.4rem;
    border-radius: 24px;
}

.policy-sidebar-card h2 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.policy-sidebar-card a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
}

.policy-sidebar-card a:hover {
    color: var(--text-primary);
    background: rgba(255, 107, 53, 0.1);
}

.policy-content-card {
    padding: 2rem;
    border-radius: 28px;
}

.policy-section-block + .policy-section-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-section-block h2 {
    margin-bottom: 0.85rem;
    font-size: 1.4rem;
}

.policy-section-block p {
    color: #d3d3d8;
}

.policy-section-block p + p {
    margin-top: 0.9rem;
}

.policy-list {
    margin: 0.9rem 0 0;
    padding-left: 1.25rem;
    color: #d3d3d8;
}

.policy-list li + li {
    margin-top: 0.6rem;
}

.policy-inline-link {
    color: #ffb28f;
    text-decoration: none;
}

.policy-inline-link:hover {
    color: #ffd0b6;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: none;
    color: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.logout-btn {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.logout-btn:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(138, 138, 255, 0.15) 0%, rgba(138, 138, 255, 0.05) 100%);
    border: 1px solid rgba(138, 138, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.user-avatar-btn:hover {
    background: linear-gradient(135deg, rgba(138, 138, 255, 0.25) 0%, rgba(138, 138, 255, 0.15) 100%);
    border-color: rgba(138, 138, 255, 0.5);
    box-shadow: 0 4px 16px rgba(138, 138, 255, 0.3);
    transform: translateY(-1px);
}

.user-avatar-btn:active {
    transform: translateY(0);
}

.user-avatar-btn .username {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.user-avatar-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 4px rgba(138, 138, 255, 0.5));
}

.user-avatar-btn:hover svg {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    padding: 0.6rem 0;
    background: linear-gradient(135deg, rgba(26, 28, 31, 0.98) 0%, rgba(20, 22, 25, 0.98) 100%);
    border: 1px solid rgba(138, 138, 255, 0.2);
    border-radius: 16px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 1.8rem;
    width: 12px;
    height: 12px;
    background: rgba(26, 28, 31, 0.98);
    border: 1px solid rgba(138, 138, 255, 0.2);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    border-radius: 8px;
    margin: 0.2rem 0.6rem;
}

.user-dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(138, 138, 255, 0.15) 0%, rgba(138, 138, 255, 0.05) 100%);
    color: #fff;
    transform: translateX(4px);
}

.user-dropdown-menu a svg {
    flex-shrink: 0;
}

.user-dropdown-menu a.logout-link {
    color: #ff6b6b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.9rem;
    margin-top: 0.6rem;
}

.user-dropdown-menu a.logout-link:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    animation: fadeInRight 1s ease-out;
}

.hero-game-preview {
    perspective: 1000px;
}

.game-window {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: rotateY(5deg);
    transition: transform 0.3s ease;
}

.game-window:hover {
    transform: rotateY(0deg);
}

.window-header {
    background: var(--bg-tertiary);
    padding: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close { background: #ff5f56; }
.control-minimize { background: #ffbd2e; }
.control-maximize { background: #27c93f; }

.game-content {
    padding: 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../assets/cs2-map/de_dust2.png') center/cover no-repeat;
}

.game-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.game-content > * {
    position: relative;
    z-index: 2;
}

.crosshair {
    font-size: 48px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.game-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 107, 53, 0.8);
    margin-bottom: 4px;
    text-shadow: 0 0 4px rgba(255, 107, 53, 0.3);
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 训练工具区域 */
.training {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.35);
    color: #ffb28f;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.training-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.training-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.training-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* 统计区域 */
.stats {
    padding: 80px 0;
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* 会员区别 */
.membership-section {
    padding: 100px 0;
    background: radial-gradient(circle at top, rgba(255, 107, 53, 0.2), transparent 45%),
        linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(7, 7, 7, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.membership-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

.membership-section .container,
.membership-section .membership-header,
.membership-overview,
.membership-plan-grid,
.membership-footer {
    position: relative;
    z-index: 1;
}

.membership-header .section-subtitle {
    max-width: 720px;
    margin: 0 auto;
}

.link-underline {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 107, 53, 0.5);
    padding-bottom: 2px;
}

.membership-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.membership-pill {
    background: rgba(37, 37, 37, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.membership-pill.pro {
    border-color: rgba(255, 107, 53, 0.4);
    background: linear-gradient(160deg, rgba(255, 107, 53, 0.18), rgba(26, 26, 46, 0.9));
}

.pill-label {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.pill-label.accent {
    border-color: rgba(255, 107, 53, 0.4);
    color: var(--primary-color);
}

.membership-pill h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.pill-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #eaeaea;
}

.pill-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pill-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
}

.membership-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.5rem;
}

.membership-plan {
    background: rgba(26, 26, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.membership-plan:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
}

.membership-plan.featured {
    border-color: rgba(255, 107, 53, 0.6);
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.12), rgba(26, 26, 31, 0.95));
    box-shadow: 0 24px 50px rgba(255, 107, 53, 0.2);
}

.membership-plan .plan-tier {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.membership-plan h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.plan-price {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-price strong {
    font-size: 2rem;
    color: var(--text-primary);
    margin-right: 0.25rem;
}

.membership-plan ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.membership-plan ul li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.membership-plan ul li:last-child {
    border-bottom: none;
}

.membership-footer {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.membership-note {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 服务器预览区域 */
.servers-preview {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.servers-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.server-preview-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.server-preview-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.15);
}

.server-preview-card:hover::before {
    transform: scaleX(1);
}

.server-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.server-preview-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.server-preview-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #00c851;
}

.status-dot.maintenance {
    background: #ff8800;
}

.status-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.server-preview-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preview-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.preview-label {
    color: var(--text-secondary);
}

.preview-value {
    color: var(--text-primary);
    font-weight: 500;
}

.players-count {
    color: var(--primary-color);
}

.server-preview-actions {
    display: flex;
    gap: 0.75rem;
}

.join-preview-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-preview-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.servers-preview-more {
    text-align: center;
    margin-top: 2rem;
}

/* 排行榜区域 */
.ranking {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.ranking-container {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.ranking-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.ranking-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #333; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #333; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #e4a853); color: #333; }

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.player-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.player-level {
    font-size: 12px;
    color: var(--text-secondary);
}

.player-stats {
    display: flex;
    gap: 2rem;
}

.player-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 页脚 */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-secondary);
}

.beian-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: var(--primary-color);
}

.icp-badge {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.icp-badge a {
    color: inherit;
    text-decoration: none;
}

.icp-badge a:hover {
    color: var(--primary-color);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .policy-main {
        padding-top: 6rem;
    }

    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .policy-hero-card,
    .policy-content-card,
    .policy-sidebar-card {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .policy-hero-card h1 {
        font-size: 2rem;
    }
}

/* 动画 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    /* 在移动端也显示用户下拉菜单 */
    .nav-actions .btn {
        display: none;
    }

    .user-dropdown {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .membership-overview,
    .membership-plan-grid {
        grid-template-columns: 1fr;
    }

    .membership-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .ranking-item {
        grid-template-columns: 40px 1fr;
        gap: 0.5rem;
    }

    .player-stats,
    .player-score {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .membership-footer {
        padding: 1.5rem;
    }

    .section-kicker {
        font-size: 0.8rem;
    }
    
    .ranking-tabs {
        flex-wrap: wrap;
    }
}
