﻿/**
 * ============================================================
 *  WoW WotLK Server - Icecrown Theme
 *  冰冠王座 · 冰霜暗黑风格
 *  ============================================================
 */

/* ═══ 字体 ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ═══ CSS 变量 ══════════════════════════════════════════════ */
:root {
    /* 冰霜核心色板 */
    --ice-cyan:      #00d4ff;
    --ice-cyan-dim: #00a8cc;
    --ice-gold:      #c8a45e;
    --ice-gold-light:#e8c87a;
    --ice-gold-dark: #8a6f35;

    /* 阵营色 */
    --alliance-blue:  #3a7bd5;
    --alliance-light: #5a9bf8;
    --horde-red:      #c0392b;
    --horde-light:    #e74c3c;

    /* 背景层次 */
    --bg-void:        #060810;
    --bg-deep:        #0a0d18;`n    --bg-dark:        #0a0d18;
    --bg-card:        #0e1424;
    --bg-card-hover:  #111828;
    --bg-elevated:    #151d30;
    --bg-overlay:     rgba(14, 20, 36, 0.92);

    /* 边框与分割线 */
    --border-ice:     rgba(0, 212, 255, 0.15);
    --border-gold:    rgba(200, 164, 94, 0.25);
    --border-dim:     rgba(255, 255, 255, 0.06);

    /* 文字 */
    --text-primary:   #e8edf5;
    --text-secondary: #8896b0;
    --text-muted:     #4a5568;
    --text-ice:       #00d4ff;

    /* 状态 */
    --online:         #00e676;
    --offline:        #ff1744;
    --warn:           #ffab00;
    --success-bg:     rgba(0, 230, 118, 0.08);
    --error-bg:       rgba(255, 23, 68, 0.08);
    --warn-bg:        rgba(255, 171, 0, 0.08);

    /* 阴影 */
    --shadow-ice:     0 0 30px rgba(0, 212, 255, 0.08);
    --shadow-gold:    0 4px 20px rgba(200, 164, 94, 0.12);
    --shadow-card:    0 8px 32px rgba(0, 0, 0, 0.4);

    /* 动效 */
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --transition:     all 0.3s var(--ease-out-expo);
}

/* ═══ 基础重置 ══════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--ice-cyan-dim);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ice-cyan); }

/* 选中文本 */
::selection {
    background: rgba(0, 212, 255, 0.25);
    color: #fff;
}

/* ═══ 容器 ══════════════════════════════════════════════════ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══ 背景纹理 ═════════════════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 100, 180, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(100, 0, 180, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 80% 60%, rgba(0, 60, 120, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ═══ 头部导航 ═════════════════════════════════════════════ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(
        180deg,
        rgba(6, 8, 16, 0.97) 0%,
        rgba(10, 13, 24, 0.93) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    transition: var(--transition);
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ice-gold) 20%,
        var(--ice-gold-light) 50%,
        var(--ice-gold) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 2rem;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(200, 164, 94, 0.3));
    transition: filter 0.3s;
}
.logo-img:hover {
    filter: drop-shadow(0 0 10px rgba(200, 164, 94, 0.5));
}

.logo-emblem {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-emblem svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.logo-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ice-gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 20px rgba(200, 164, 94, 0.3);
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 导航 */
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 1px;
    background: var(--ice-cyan);
    transition: transform 0.3s var(--ease-out-expo);
    border-radius: 2px;
}

.main-nav a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}
.main-nav a:hover::after { transform: translateX(-50%) scaleX(1); }

.main-nav a.active {
    color: var(--ice-gold-light);
}
.main-nav a.active::after { transform: translateX(-50%) scaleX(1); background: var(--ice-gold); }

/* 登录按钮 */
.nav-login-btn {
    background: linear-gradient(135deg, var(--ice-gold-dark) 0%, var(--ice-gold) 100%) !important;
    color: #1a1000 !important;
    font-weight: 700 !important;
    padding: 7px 20px !important;
    border-radius: 6px !important;
    letter-spacing: 1px !important;
    box-shadow: 0 2px 12px rgba(200, 164, 94, 0.25);
    transition: var(--transition) !important;
}
.nav-login-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px rgba(200, 164, 94, 0.4) !important;
    background: linear-gradient(135deg, var(--ice-gold) 0%, var(--ice-gold-light) 100%) !important;
    color: #1a1000 !important;
}
.nav-login-btn::after { display: none !important; }

/* 玩家菜单 */
.nav-player-menu {
    position: relative;
}
.nav-player-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--ice-gold-light) !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    background: rgba(200, 164, 94, 0.1) !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 6px !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
}
.nav-player-btn:hover {
    background: rgba(200, 164, 94, 0.18) !important;
    border-color: var(--ice-gold) !important;
    transform: translateY(-1px) !important;
}
.nav-player-btn::after { display: none !important; }
.nav-avatar {
    font-size: 1rem;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(200, 164, 94, 0.5));
}

/* 下拉菜单 */
.nav-dropdown {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    min-width: 160px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,164,94,0.1);
    z-index: 2000;
    padding: 6px;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s var(--ease-out-expo), visibility 0.2s;
}
.nav-player-menu:hover .nav-dropdown,
.nav-player-menu:focus-within .nav-dropdown {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}
/* 点击展开下拉（JS 切换 .open 类） */
.nav-popover .nav-dropdown {
    right: 0;
    left: auto;
}
.nav-popover.open .nav-dropdown {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown li { margin: 0; }
.nav-dropdown a {
    display: block;
    padding: 9px 14px;
    color: var(--text-secondary) !important;
    font-size: 0.88rem;
    font-weight: 400 !important;
    border-radius: 6px !important;
    background: none !important;
    transition: var(--transition) !important;
}
.nav-dropdown a:hover {
    background: rgba(200, 164, 94, 0.1) !important;
    color: var(--ice-gold-light) !important;
    transform: none !important;
}
.nav-dropdown a::after { display: none !important; }

/* 玩家必看下拉按钮 */
.nav-popover {
    position: relative;
}
.nav-popover-btn {
    display: inline-block;
    padding: 7px 16px;
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    border: none;
    background: none;
}

/* ═══ 主内容区 ═════════════════════════════════════════════ */
.main-content {
    flex: 1;
    padding: 2.5rem 0 3rem;
    position: relative;
    z-index: 1;
}

/* ═══ 卡片系统 ══════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before { opacity: 1; }

.card:hover {
    border-color: var(--border-ice);
    box-shadow: var(--shadow-card), var(--shadow-ice);
    transform: translateY(-2px);
}

/* 卡片头部 */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-dim);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ice-gold-light);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.card-title .icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px rgba(200, 164, 94, 0.5));
}

/* ═══ 首页布局 ═════════════════════════════════════════════ */
/* 英雄Banner */
.hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, #0d1528 50%, #080c18 100%);
    border: 1px solid var(--border-dim);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 280px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 0% 50%, rgba(0, 80, 180, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 100% 50%, rgba(120, 0, 180, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(0, 212, 255, 0.03) 60deg, transparent 120deg);
    animation: heroRotate 30s linear infinite;
    pointer-events: none;
}

@keyframes heroRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-left { position: relative; z-index: 1; flex: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--ice-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero-title .gold { color: var(--ice-gold-light); }
.hero-title .ice { color: var(--ice-cyan); }

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 英雄右侧状态卡 */
.hero-right {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 300px;
}

/* ═══ 按钮系统 ═════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ice-cyan-dim) 0%, var(--ice-cyan) 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
    filter: brightness(1.08);
}

.btn-gold {
    background: linear-gradient(135deg, var(--ice-gold-dark) 0%, var(--ice-gold) 100%);
    color: #1a1000;
    box-shadow: 0 4px 20px rgba(200, 164, 94, 0.2);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 164, 94, 0.35);
    filter: brightness(1.08);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-dim);
}
.btn-outline:hover {
    border-color: var(--border-ice);
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
}

.btn-block { display: flex; width: 100%; }

/* ═══ 服务器状态卡片 ═══════════════════════════════════════ */
.realm-status-card {
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-dim);
}

.realm-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.realm-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.online {
    background: var(--online);
    box-shadow: 0 0 10px var(--online);
    animation: pulse-glow 2s ease-in-out infinite;
}
.status-dot.offline {
    background: var(--offline);
    box-shadow: 0 0 10px var(--offline);
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px var(--online); opacity: 1; }
    50% { box-shadow: 0 0 16px var(--online); opacity: 0.7; }
}

.realm-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.realm-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-online {
    background: rgba(0, 230, 118, 0.12);
    color: var(--online);
    border: 1px solid rgba(0, 230, 118, 0.3);
}
.badge-offline {
    background: rgba(255, 23, 68, 0.12);
    color: var(--offline);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

.online-count {
    text-align: center;
    margin: 0.8rem 0 1.2rem;
}
.online-count .count-num {
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ice-gold) 0%, var(--ice-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
    text-shadow: 0 0 40px rgba(200, 164, 94, 0.3);
}
.online-count .count-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

/* 阵营进度条 */
.faction-bar-wrap { margin-bottom: 1rem; }
.faction-bar {
    display: flex;
    height: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-dim);
}
.faction-bar-alliance {
    background: linear-gradient(90deg, var(--alliance-blue), var(--alliance-light));
    transition: width 0.8s var(--ease-out-expo);
    min-width: 2px;
}
.faction-bar-horde {
    background: linear-gradient(90deg, var(--horde-red), var(--horde-light));
    flex: 1;
    min-width: 2px;
}
.faction-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.82rem;
}
.label-alliance { color: var(--alliance-light); display: flex; align-items: center; gap: 4px; }
.label-horde { color: var(--horde-light); display: flex; align-items: center; gap: 4px; }
.label-alliance small, .label-horde small { color: var(--text-muted); }

/* Realm meta */
.realm-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}
.realm-meta span { display: flex; gap: 6px; }
.realm-meta code {
    color: var(--ice-cyan);
    background: rgba(0, 212, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

/* ═══ 首页双栏 ════════════════════════════════════════════ */
.home-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}
.home-status { margin-bottom: 0; }
.home-news { margin-bottom: 0; }

/* ═══ 公告列表 ═══════════════════════════════════════════ */
.news-list { list-style: none; }

.news-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-dim);
    transition: var(--transition);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item:hover { padding-left: 8px; }

.news-date {
    color: var(--ice-cyan-dim);
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}
.news-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.news-item:hover .news-title { color: var(--ice-gold-light); }
.news-item-first .news-title { font-size: 1.05rem; }
.news-body {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}
.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ═══ 功能卡片网格 ════════════════════════════════════════ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ice-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(200,164,94,0.08);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(200, 164, 94, 0.3));
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ice-gold-light);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ═══ 表单系统 ════════════════════════════════════════════ */
.form-group {
    margin-bottom: 1.4rem;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
}

.form-label .required {
    color: var(--ice-cyan);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--ice-cyan);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ═══ 提示信息 ════════════════════════════════════════════ */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    border-color: rgba(0, 230, 118, 0.2);
    color: #69f0ae;
}
.alert-error {
    background: var(--error-bg);
    border-color: rgba(255, 23, 68, 0.2);
    color: #ff6e80;
}
.alert-warning {
    background: var(--warn-bg);
    border-color: rgba(255, 171, 0, 0.2);
    color: #ffd54f;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ═══ 状态指示器 ══════════════════════════════════════════ */
.server-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-dim);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-online {
    background: var(--online);
    box-shadow: 0 0 12px var(--online);
    animation: pulse 2s ease-in-out infinite;
}
.status-offline {
    background: var(--offline);
    box-shadow: 0 0 12px var(--offline);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-info { flex: 1; }
.status-info h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.status-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.server-online { color: var(--online); }
.server-offline { color: var(--offline); }

/* ═══ 服务器状态页面 ═══════════════════════════════════════ */
.status-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}
.status-table tr {
    border-bottom: 1px solid var(--border-dim);
}
.status-table tr:last-child { border-bottom: none; }
.status-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}
.status-table td:first-child {
    color: var(--text-muted);
    width: 140px;
}
.status-table td:last-child {
    color: var(--text-primary);
}
.status-table code {
    color: var(--ice-cyan);
    background: rgba(0, 212, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

/* 如何连接 */
.how-to-connect ol {
    padding-left: 1.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 2;
}
.how-to-connect li { margin-bottom: 4px; }
.how-to-connect code {
    color: var(--ice-cyan);
    background: rgba(0, 212, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

/* ═══ 注册/登录页面 ════════════════════════════════════════ */
.auth-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .auth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.auth-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ice-gold-light);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-footer a {
    color: var(--ice-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.auth-footer a:hover { color: var(--ice-gold-light); }

/* ═══ 玩家中心 ═════════════════════════════════════════════ */
.player-info-table {
    width: 100%;
    border-collapse: collapse;
}
/* ═══ 玩家中心 ═════════════════════════════════════════════ */
.player-info-table {
    width: 100%;
    border-collapse: collapse;
}: 100%;
    border-collapse: collapse;
}
.player-info-table tr {
    border-bottom: 1px solid var(--border-dim);
}
.player-info-table tr:last-child { border-bottom: none; }
.player-info-table td {
    padding: 0.65rem 0;
    font-size: 0.9rem;
}
.player-info-table td:first-child {
    color: var(--text-muted);
    width: 130px;
    font-weight: 500;
}
.player-info-table td:last-child {
    color: var(--text-primary);
}
.player-info-table tr:hover td { background: rgba(255,255,255,0.01); }
.player-info-table .status-ok {
    color: var(--online);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.player-info-table .status-banned {
    color: var(--offline);
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-direction: column;
}
.ban-detail {
    font-size: 0.82rem;
    color: rgba(255,23,68,0.7);
    font-weight: 400;
    line-height: 1.6;
    margin-top: 4px;
}

/* ═══ 验证页面 ═════════════════════════════════════════════ */
.verify-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2.5rem;
}
.verify-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: verifyPop 0.6s var(--ease-out-expo) both;
}
@keyframes verifyPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.verify-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.verify-success .verify-title { color: var(--online); }
.verify-expired .verify-title { color: var(--warn); }
.verify-error .verify-title { color: var(--offline); }

/* ═══ 公告页面 ═════════════════════════════════════════════ */
.news-page-list { }
.news-page-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-dim);
    transition: var(--transition);
}
.news-page-item:first-child { padding-top: 0; }
.news-page-item:last-child { border-bottom: none; }
.news-page-item:hover { padding-left: 6px; }
.news-page-item:hover .news-title { color: var(--ice-gold-light); }
.news-page-date {
    color: var(--ice-cyan-dim);
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 6px;
}
.news-page-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.news-page-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ═══ Footer ══════════════════════════════════════════════ */
.main-footer {
    position: relative;
    z-index: 1;
    background: var(--bg-void);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ice-gold), transparent);
    opacity: 0.4;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ice-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.footer-section p,
.footer-section li {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 0.25rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-section a:hover { color: var(--ice-gold-light); }

.footer-divider { border: none; border-top: 1px solid var(--border-dim); margin: 0 0 1rem; }
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 1.5rem;
    line-height: 1.6;
}
.footer-bottom a { color: var(--ice-gold); text-decoration: none; }
.footer-bottom a:hover { color: var(--ice-gold-light); }

/* ═══ 页面标题区 ══════════════════════════════════════════ */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
}
.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.page-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ═══ 加载动画 ════════════════════════════════════════════ */
.page-enter {
    animation: pageEnter 0.5s var(--ease-out-expo) both;
}
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .hero-banner, .feature-card {
    animation: fadeInUp 0.5s var(--ease-out-expo) both;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ 响应式 ═════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .hero-banner {
        flex-direction: column;
        padding: 3rem 2rem;
        min-height: auto;
    }
    .hero-right { width: 100%; }
}

@media (max-width: 768px) {
    .main-header .container {
        height: auto;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 16px;
    }
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    .main-nav ul {
        gap: 2px;
        flex-wrap: wrap;
    }
    .main-nav a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .features {
        grid-template-columns: 1fr 1fr;
    }
    .status-page-grid {
        grid-template-columns: 1fr;
    }
    .hero-banner {
        padding: 2rem 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 1.25rem;
    }
    .auth-card {
        padding: 1.5rem;
    }
}
    margin-bottom: 0.4rem;
}

/* ═══ 验证页面 ═════════════════════════════════════════════ */
.verify-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2.5rem;
}
.verify-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: verifyPop 0.6s var(--ease-out-expo) both;
}
@keyframes verifyPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.verify-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.verify-success .verify-title { color: var(--online); }
.verify-expired .verify-title { color: var(--warn); }
.verify-error .verify-title { color: var(--offline); }

/* ═══ 公告页面 ═════════════════════════════════════════════ */
.news-page-list { }
.news-page-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-dim);
    transition: var(--transition);
}
.news-page-item:first-child { padding-top: 0; }
.news-page-item:last-child { border-bottom: none; }
.news-page-item:hover { padding-left: 6px; }
.news-page-item:hover .news-title { color: var(--ice-gold-light); }
.news-page-date {
    color: var(--ice-cyan-dim);
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 6px;
}
.news-page-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.news-page-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ═══ Footer ══════════════════════════════════════════════ */
.main-footer {
    position: relative;
    z-index: 1;
    background: var(--bg-void);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ice-gold), transparent);
    opacity: 0.4;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ice-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.footer-section p,
.footer-section li {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 0.25rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-section a:hover { color: var(--ice-gold-light); }

.footer-divider { border: none; border-top: 1px solid var(--border-dim); margin: 0 0 1rem; }
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 1.5rem;
    line-height: 1.6;
}
.footer-bottom a { color: var(--ice-gold); text-decoration: none; }
.footer-bottom a:hover { color: var(--ice-gold-light); }

/* ═══ 页面标题区 ══════════════════════════════════════════ */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
}
.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.page-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ═══ 加载动画 ════════════════════════════════════════════ */
.page-enter {
    animation: pageEnter 0.5s var(--ease-out-expo) both;
}
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .hero-banner, .feature-card {
    animation: fadeInUp 0.5s var(--ease-out-expo) both;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ 响应式 ═════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .hero-banner {
        flex-direction: column;
        padding: 3rem 2rem;
        min-height: auto;
    }
    .hero-right { width: 100%; }
}

@media (max-width: 768px) {
    .main-header .container {
        height: auto;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 16px;
    }
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    .main-nav ul {
        gap: 2px;
        flex-wrap: wrap;
    }
    .main-nav a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .features {
        grid-template-columns: 1fr 1fr;
    }
    .status-page-grid {
        grid-template-columns: 1fr;
    }
    .hero-banner {
        padding: 2rem 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 1.25rem;
    }
    .auth-card {
        padding: 1.5rem;
    }
}

/* 公众号二维码 */
.gzh-wrap { margin-top: 0.75rem; }
.gzh-qr {
    width: 100px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-dim);
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* 联系方式区：QQ群 + 公众号并排 */
.footer-contact {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.contact-qq { flex: 1; }
.contact-gzh { flex-shrink: 0; }
.contact-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}
.qq-groups {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.qq-group-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dim);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.qq-group-item:hover {
    border-color: var(--ice-gold);
    background: rgba(200,164,94,0.06);
    color: var(--ice-gold-light);
    transform: translateX(4px);
}
.qq-tag {
    font-size: 0.75rem;
    color: var(--ice-gold);
    background: rgba(200,164,94,0.1);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(200,164,94,0.2);
    flex-shrink: 0;
}
.qq-group-item em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}
.qq-note {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.gzh-qr {
    width: 110px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-dim);
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* 服务器运行时间 */
.realm-uptime {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.realm-uptime span {
    color: var(--ice-cyan);
    font-weight: 600;
}

/* ═══ 玩家中心布局 ═══════════════════════════════════════ */
.player-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

/* 侧边栏 */
.player-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.sidebar-avatar {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-dim);
}
.avatar-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(200, 164, 94, 0.4));
}
.avatar-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ice-gold-light);
    margin-bottom: 0.3rem;
}
.avatar-status {
    font-size: 0.78rem;
    font-weight: 500;
}
.avatar-status.status-ok { color: var(--online); }
.avatar-status.status-banned { color: var(--offline); }

.sidebar-nav {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
}
.sidebar-link.active {
    background: rgba(200, 164, 94, 0.1);
    color: var(--ice-gold-light);
    border: 1px solid rgba(200, 164, 94, 0.2);
}
.sidebar-link span { font-size: 1rem; }

.sidebar-bottom {
    padding: 0.5rem;
    border-top: 1px solid var(--border-dim);
}

/* 玩家内容区 */
.player-content { min-width: 0; }

/* 角色信息列表 */
.char-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.char-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    transition: var(--transition);
}
.char-item:hover {
    border-color: var(--border-ice);
    background: rgba(0, 212, 255, 0.03);
    transform: translateX(4px);
}
.char-item.char-online {
    border-color: rgba(0, 230, 118, 0.3);
    background: rgba(0, 230, 118, 0.04);
}
.char-faction {
    width: 4px;
    height: 36px;
    border-radius: 4px;
    flex-shrink: 0;
}
.char-faction.char-alliance { background: var(--alliance-light); }
.char-faction.char-horde { background: var(--horde-light); }

.char-race-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-dim);
}
.char-race-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.char-race-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.char-class-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    width: 52px;
    flex-shrink: 0;
}

.char-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.char-name-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.char-online-badge {
    font-size: 0.7rem;
    color: var(--online);
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    padding: 1px 7px;
    border-radius: 20px;
    flex-shrink: 0;
}

.char-gold {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
    color: var(--ice-gold);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 80px;
    justify-content: flex-end;
}
.gold-icon { font-size: 0.85rem; }

.char-level {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
    min-width: 50px;
    justify-content: flex-end;
}
.char-level-num {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ice-gold) 0%, var(--ice-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.char-level-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 700px) {
    .player-layout {
        grid-template-columns: 1fr;
    }
    .player-sidebar {
        position: static;
    }
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .char-class-name { display: none; }
}

/* 账号信息表格 */
.pi-value { font-size:0.95rem; color:var(--text-primary); }
.pi-ok { color:var(--online); font-weight:600; }
.pi-banned { color:var(--offline); font-weight:600; font-size:0.95rem; }
.pi-ban-detail { margin-top:0.4rem; font-size:0.85rem; color:rgba(255,23,68,0.7); font-weight:400; line-height:1.7; }

/* 种族图标 */
.char-race-icon { width:36px; height:36px; border-radius:8px; overflow:hidden; flex-shrink:0; background:var(--bg-elevated); border:1px solid var(--border-dim); }
.char-race-icon img { width:100%; height:100%; object-fit:cover; }
.char-race-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:0.9rem; font-weight:700; color:var(--text-secondary); background:var(--bg-elevated); }

/* 金银铜颜色 */
.money-amount { display:flex;align-items:center;gap:2px;font-size:0.85rem;color:var(--ice-gold); }
.mc-g { color:#FFD700; }
.mc-s { color:#C0C0C0; }
.mc-c { color:#CD7F32; }

/* 下载页面 */
.download-content {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.download-content a {
    color: var(--ice-cyan);
    text-decoration: none;
    transition: color 0.2s;
}
.download-content a:hover {
    color: var(--ice-gold-light);
    text-decoration: underline;
}
.download-content p { margin-bottom: 0.8rem; }
.download-content strong { color: var(--text-primary); font-weight: 600; }
.download-content ul, .download-content ol { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.download-content li { margin-bottom: 0.4rem; }
.download-content h1,.download-content h2,.download-content h3 { color: var(--ice-gold-light); margin-bottom: 0.5rem; font-family: 'Cinzel', serif; }
.download-content blockquote {
    border-left: 3px solid var(--ice-cyan);
    padding-left: 1rem;
    margin: 0.8rem 0;
    color: var(--text-muted);
    font-style: italic;
}
.download-content code {
    background: rgba(0,212,255,0.08);
    color: var(--ice-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
}
.download-content pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 0.8rem;
}
.download-content .btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--ice-cyan-dim), var(--ice-cyan));
    color: #000;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,212,255,0.2);
    margin: 0.5rem 0.25rem 0.5rem 0;
}
.download-content .btn-dl:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,212,255,0.35);
    filter: brightness(1.08);
    text-decoration: none;
}
.download-content .btn-dl-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    box-shadow: none;
}
.download-content .btn-dl-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--ice-cyan);
    color: var(--ice-cyan);
    box-shadow: 0 4px 16px rgba(0,212,255,0.1);
}

/* ═══ 首页公告折叠 ══════════════════════════════ */
.news-content { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.news-content br { content: ''; display: block; margin: 2px 0; }
.news-content br::after { content: ''; }
.news-clamp {
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
    max-height: calc(1.7em * 5);
}
.news-toggle {
    display: inline-block; margin-top: 4px; font-size: 0.8rem; color: var(--ice-cyan); cursor: pointer; text-decoration: none; transition: color 0.2s;
}
.news-toggle:hover { color: var(--ice-gold-light); }
.news-toggle.expanded { color: var(--ice-gold); }