@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cinzel-500.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cinzel-700.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/cinzel-800.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel Decorative'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cinzel-decorative-700.ttf') format('truetype'); }

html { 
    overflow-y: scroll;
    overflow-x: hidden;
}

/* --- 设计系统变量 --- */
:root {
    --bg-dark: #0c1017;
    --bg-panel: #131c26;
    --bg-panel-light: #1c2736;
    --primary: #dcb265;
    --primary-light: #f1cb87;
    --primary-dark: #a67f3c;
    --accent: #3da8f5;
    --accent-light: #6fc3ff;
    --accent-dark: #1a5e8c;
    --text: #d1d1d6;
    --text-light: #ffffff;
    --text-muted: #8e8e93;
    --gold-glow: 0 0 10px rgba(220, 178, 101, 0.3);
    --gold-glow-strong: 0 0 20px rgba(220, 178, 101, 0.6);
    --red-glow: 0 0 10px rgba(61, 168, 245, 0.35);
    
    --font-gothic: 'Cinzel', serif;
    --font-gothic-deco: 'Cinzel Decorative', serif;
    --font-sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    
    --border-gold: 1px solid rgba(201, 160, 84, 0.4);
    --border-gold-bright: 1px solid rgba(201, 160, 84, 0.8);
    --border-dark: 1px solid #232328;
}

/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    background-image: radial-gradient(circle at top center, rgba(61, 168, 245, 0.12) 0%, var(--bg-dark) 80%);
    background-attachment: fixed;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

/* --- 容器与布局 --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 复古金色边框装饰组件 --- */
.retro-border {
    position: relative;
    border: var(--border-gold);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6), var(--red-glow);
}

.retro-border::before, .retro-border::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary);
    z-index: 2;
    pointer-events: none;
}

.retro-border::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.retro-border::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* --- 导航栏 --- */
.header-nav {
    background: rgba(13, 13, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: var(--font-gothic-deco);
    font-size: 22px;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(201, 160, 84, 0.5);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--text-muted);
    letter-spacing: 0;
    font-weight: normal;
    border-left: 1px solid var(--primary-dark);
    padding-left: 8px;
    margin-left: 4px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links a {
    font-family: var(--font-gothic);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    position: relative;
    color: var(--text);
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: var(--gold-glow);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-light);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 80%;
}

/* --- 百科下拉菜单 --- */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle i {
    font-size: 12px;
    margin-left: 3px;
    transition: transform 0.3s;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(19, 28, 38, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-dark);
    border-radius: 4px;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    z-index: 200;
    flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: flex;
}

.nav-links .nav-dropdown-menu a {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    display: block;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links .nav-dropdown-menu a::after {
    display: none;
}

.nav-links .nav-dropdown-menu a:hover {
    background-color: var(--bg-panel-light);
    color: var(--primary-light);
}

.nav-links .nav-dropdown.active .nav-dropdown-toggle {
    color: var(--primary-light);
}

.nav-links .nav-dropdown.active .nav-dropdown-toggle::after {
    width: 80%;
}

.nav-admin-btn {
    border: 1px solid var(--accent);
    padding: 6px 16px !important;
    background: linear-gradient(135deg, var(--accent-dark), rgba(20, 10, 10, 0.7));
    border-radius: 4px;
}
.nav-admin-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    border-color: var(--primary) !important;
}

/* --- Hero横幅区 --- */
.hero-section {
    width: 100%;
    margin: 0 auto;
    height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 2px solid var(--primary-dark);
    box-shadow: inset 0 -30px 40px var(--bg-dark);
    overflow: hidden; /* CRITICAL: prevent Ken Burns and particles overflow */
}

/* Pseudo-element for optimized Ken Burns zoom/pan background banner.jpg */
.hero-section::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('../images/banner.png') no-repeat center 62%;
    background-size: cover;
    z-index: 0;
    animation: ken-burns-zoom 35s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    position: relative;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

.hero-tag {
    font-family: var(--font-gothic);
    color: var(--primary-light);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    width: fit-content;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}

.hero-title {
    font-family: var(--font-gothic);
    font-size: 52px;
    background: linear-gradient(to bottom, #ffffff 15%, #ffe699 40%, #c9a054 75%, #8e6c31 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    width: fit-content;
    animation: gold-breathe 4s ease-in-out infinite;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    margin-bottom: 15px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.hero-title:hover {
    animation-play-state: paused;
    transform: scale(1.03);
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.95)) 
            drop-shadow(0 0 25px rgba(201, 160, 84, 0.8));
}

.hero-desc {
    font-size: 16px;
    color: #c8c7cc;
    margin-bottom: 20px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- 复古按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), #664f22);
    border: var(--border-gold-bright);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), var(--gold-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #0c0c0e;
    box-shadow: 0 6px 20px rgba(201, 160, 84, 0.5), var(--gold-glow-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-dark), #0f3a58);
    border: 1px solid var(--accent);
    color: #e5e5ea;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 6px 20px rgba(61, 168, 245, 0.4);
    transform: translateY(-2px);
}

/* --- 主体网格布局 --- */
.main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin: 40px auto;
}

/* --- 侧边栏 --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-panel {
    background: var(--bg-panel);
    border-radius: 6px;
    padding: 20px;
}

.panel-title {
    font-family: var(--font-gothic);
    font-size: 18px;
    color: var(--primary-light);
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 服务器状态指示灯 */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--text-muted);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #34c759;
    box-shadow: 0 0 10px #34c759;
    display: inline-block;
}

.pulse-dot.offline {
    background-color: #ff3b30;
    box-shadow: 0 0 10px #ff3b30;
}

.pulse-dot.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 15px rgba(52, 199, 89, 0.8); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* 服务器倍率 */
.rate-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: var(--border-dark);
    font-size: 14px;
}

.rate-item span:first-child {
    color: var(--text-muted);
}

.rate-item span:last-child {
    color: var(--primary-light);
    font-weight: bold;
}

/* 侧边栏大按钮 */
.side-download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: var(--border-gold);
    color: #fff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.side-download-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 25px rgba(61, 168, 245, 0.4), var(--gold-glow);
}

.side-download-btn h3 {
    font-family: var(--font-gothic);
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.side-download-btn p {
    font-size: 12px;
    color: #e5e5ea;
}

/* 联系信息列表 */
.contact-list li {
    font-size: 14px;
    padding: 10px 0;
    border-bottom: var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-list li strong {
    color: var(--primary);
}

/* --- 主内容区 --- */
.main-content {
    background: var(--bg-panel);
    border-radius: 6px;
    padding: 30px;
}

/* 首页新闻选项卡 */
.news-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    background: var(--bg-panel-light);
    border: var(--border-dark);
    color: var(--text-muted);
    padding: 10px 22px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.tab-btn:hover, .tab-btn.active {
    background: linear-gradient(135deg, var(--primary-dark), rgba(20, 10, 10, 0.8));
    border-color: var(--primary-light);
    color: var(--primary-light);
    box-shadow: var(--gold-glow);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-panel-light);
    border-radius: 4px;
    border-left: 3px solid var(--primary-dark);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
    border-left-color: var(--primary-light);
    background: #222228;
    box-shadow: var(--gold-glow);
}

.news-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

.news-badge.news { background-color: rgba(201, 160, 84, 0.2); color: var(--primary-light); border: 1px solid var(--primary-dark); }
.news-badge.event { background-color: rgba(61, 168, 245, 0.2); color: #6fc3ff; border: 1px solid var(--accent); }
.news-badge.guide { background-color: rgba(48, 144, 247, 0.2); color: #64d2ff; border: 1px solid #0056b3; }

.news-item-title {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-light);
}

.news-item-date {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-gothic);
}

/* 新闻详情弹窗及页 */
.news-detail-container {
    margin-top: 20px;
}
.news-detail-header {
    border-bottom: 1px dashed var(--primary-dark);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.news-detail-title {
    font-family: var(--font-gothic);
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 10px;
}
.news-detail-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
}
.news-detail-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}
.news-detail-body br {
    margin-bottom: 10px;
}

/* --- 排行榜表格 --- */
.rank-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.rank-table th {
    background-color: var(--bg-panel-light);
    font-family: var(--font-gothic);
    color: var(--primary-light);
    padding: 15px;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-dark);
    font-size: 15px;
}

.rank-table td {
    padding: 15px;
    border-bottom: var(--border-dark);
    font-size: 14px;
    color: var(--text);
}

.rank-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* 职业标识 */
.class-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}
.class-badge.prince { background-color: #d2a100; color: #121214; } /* 王族 */
.class-badge.knight { background-color: #8c8c8c; } /* 骑士 */
.class-badge.elf { background-color: #2ea84e; } /* 妖精 */
.class-badge.wizard { background-color: #794bc4; } /* 法师 */
.class-badge.darkelf { background-color: #ab1f22; } /* 黑暗妖精 */

.rank-number {
    font-family: var(--font-gothic);
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.rank-top1 { color: #ffd700; background: rgba(255, 215, 0, 0.1); border: 1px solid #ffd700; }
.rank-top2 { color: #c0c0c0; background: rgba(192, 192, 192, 0.1); border: 1px solid #c0c0c0; }
.rank-top3 { color: #cd7f32; background: rgba(205, 127, 50, 0.1); border: 1px solid #cd7f32; }

/* --- 注册表单页面 --- */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: var(--bg-panel);
    padding: 40px;
    border-radius: 8px;
}

.auth-title {
    font-family: var(--font-gothic);
    font-size: 28px;
    color: var(--primary-light);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: var(--gold-glow);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-panel-light);
    border: var(--border-dark);
    color: #fff;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--gold-glow);
}

/* 验证码排列 */
.captcha-group {
    display: flex;
    gap: 15px;
}

.captcha-img-box {
    display: flex;
    align-items: center;
    background-color: #26262b;
    border: var(--border-dark);
    border-radius: 4px;
    padding: 0 15px;
    cursor: pointer;
    user-select: none;
    font-family: var(--font-gothic);
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-light);
    letter-spacing: 2px;
}

.form-alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.form-alert.success {
    background-color: rgba(52, 199, 89, 0.15);
    border: 1px solid #34c759;
    color: #30d158;
}
.form-alert.error {
    background-color: rgba(255, 69, 58, 0.15);
    border: 1px solid #ff453a;
    color: #ff453a;
}

/* --- 下载页面样式 --- */
.download-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.download-card {
    background: var(--bg-panel-light);
    border: var(--border-dark);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--gold-glow);
}

.download-card-icon {
    font-size: 40px;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.download-card-title {
    font-family: var(--font-gothic);
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.download-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- 游戏指南卡片 --- */
.guide-class-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.class-intro-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    background: var(--bg-panel-light);
    border: var(--border-dark);
    border-radius: 6px;
    padding: 25px;
}

.class-intro-visual {
    background-color: #242429;
    border-radius: 4px;
    border: var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    height: 180px;
}

.class-intro-detail h3 {
    font-family: var(--font-gothic);
    color: var(--primary-light);
    font-size: 22px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.class-intro-detail p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 15px;
}

.class-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.stat-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.stat-label {
    color: var(--text-muted);
    width: 65px;
    white-space: nowrap;
}

.stat-bar {
    height: 6px;
    background-color: #2a2a30;
    border-radius: 3px;
    flex: 1;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-light));
}

/* --- 底部区 --- */
.site-footer {
    background-color: #08080a;
    border-top: 1px solid var(--primary-dark);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-logo {
    font-family: var(--font-gothic-deco);
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- 响应式断点 --- */
@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    /* 导航栏容器在移动端纵向堆叠，使Logo与栏位自适应 */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 0 6px;
        gap: 12px;
    }

    /* 移动端 Logo 居中对齐，缩小字体以防溢出 */
    .logo a {
        font-size: 20px;
        justify-content: center;
        width: 100%;
    }

    .logo span {
        font-size: 12px;
        padding-left: 8px;
        margin-left: 4px;
        border-left: 1px solid var(--primary-dark);
    }

    /* 移动端开启极速横向滑动 Tab 导航，极其顺滑且一览无余 */
    .nav-links {
        display: flex !important; /* 覆盖原本的 none */
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; /* iOS 惯性滚动 */
        padding: 2px 10px 12px;
        gap: 12px;
        justify-content: flex-start;
        scrollbar-width: none; /* Firefox 隐藏滚动条 */
    }

    /* 隐藏 Chrome/Safari 滚动条 */
    .nav-links::-webkit-scrollbar {
        display: none;
    }

    /* 将滑动项改为精致的扁平圆角 Tab 药丸，增强移动端点击手感 */
    .nav-links a {
        font-size: 13px;
        padding: 6px 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(201, 160, 84, 0.18);
        transition: all 0.2s;
    }

    .nav-links a::after {
        display: none; /* 移动端移除原本的底部横线 */
    }

    .nav-links a:hover, .nav-links a.active {
        background: linear-gradient(135deg, var(--primary-dark), rgba(20, 10, 10, 0.6));
        border-color: var(--primary-light);
        color: var(--primary-light) !important;
        box-shadow: var(--gold-glow);
    }
    
    /* 百科下拉菜单在移动端直接点击跳转，简化交互 */
    .nav-dropdown-menu {
        display: none !important; /* 移动端屏蔽 hover 浮窗以防遮挡 */
    }
    .hero-section {
        height: 400px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    .download-card-grid {
        grid-template-columns: 1fr;
    }
    .class-intro-card {
        grid-template-columns: 1fr;
    }
}

/* ================= Lineage 1 Royal Amber/Crimson Embers 特效 ================= */
.ember-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Positioned between background (0) and text content (10) */
    pointer-events: none;
    overflow: hidden;
}

.ember {
    position: absolute;
    bottom: -20px;
    /* Rich royal fantasy ember color: gold, hot yellow, deep orange, crimson red gradient */
    background: radial-gradient(circle, #ffffff 15%, #bbf0ff 45%, #3da8f5 80%, rgba(26, 94, 140, 0.95) 100%);
    border-radius: 50%;
    opacity: 0;
    /* High-saturation glow to create strong presence on dark backgrounds */
    box-shadow: 0 0 5px #ffffff, 
                0 0 12px #9de2ff, 
                0 0 20px #3da8f5, 
                0 0 35px #1a5e8c;
    animation: float-up-ember linear infinite;
    pointer-events: none;
}

@keyframes float-up-ember {
    0% {
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    50% {
        transform: translateY(-220px) translateX(25px) scale(1.25) rotate(180deg);
        opacity: 0.9;
    }
    80% {
        opacity: 0.45;
    }
    100% {
        transform: translateY(-460px) translateX(55px) scale(0.65) rotate(360deg);
        opacity: 0;
    }
}

/* Premium Glassmorphic Promo Badges */
.hero-badges {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out;
}

.hero-badge {
    background: linear-gradient(135deg, rgba(20, 28, 38, 0.85) 0%, rgba(26, 94, 140, 0.3) 100%);
    border: 1px solid rgba(201, 160, 84, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 0 6px rgba(201, 160, 84, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px #000;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-badge i {
    color: var(--primary-light);
    font-size: 13px;
}

.hero-badge.highlight {
    background: linear-gradient(135deg, rgba(26, 94, 140, 0.65) 0%, rgba(15, 60, 92, 0.85) 100%);
    border-color: rgba(220, 178, 101, 0.85);
    box-shadow: 0 0 12px rgba(61, 168, 245, 0.45), inset 0 0 4px rgba(255, 255, 255, 0.2);
}

.hero-badge.highlight i {
    color: #ffd479;
}

.hero-badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 6px 18px rgba(201, 160, 84, 0.5), var(--gold-glow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ken Burns background zoom animation */
@keyframes ken-burns-zoom {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    50% {
        transform: scale(1.05) translate(-1%, -0.5%);
    }
    100% {
        transform: scale(1.02) translate(1%, 0.5%);
    }
}

/* Title golden breathe animation */
@keyframes gold-breathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.95)) 
                drop-shadow(0px 0px 10px rgba(201, 160, 84, 0.4));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.95)) 
                drop-shadow(0px 0px 20px rgba(230, 184, 100, 0.7));
    }
}

/* --- 首页下部板块主题三列布局 --- */
.home-forum-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.forum-col {
    background: var(--bg-panel);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.forum-col .col-title {
    font-family: var(--font-gothic);
    font-size: 16px;
    color: var(--primary-light);
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-col .col-title a {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    font-family: var(--font-sans);
}

.forum-col .col-title a:hover {
    color: var(--primary-light);
}

.col-thread-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.col-thread-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.col-thread-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.col-thread-list li a {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 15px;
    min-width: 0;
}

.col-thread-list li a:hover {
    color: var(--primary-light);
}

.col-thread-list li span {
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-gothic);
}

.col-thread-list .empty-col {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px 0;
    justify-content: center;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .home-forum-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .home-forum-columns {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Essence & Sticky Highlight Styles
   ========================================== */
.badge-ess-1 {
    background: linear-gradient(135deg, #2ecc71, #1abc9c) !important;
    color: #fff !important;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5) !important;
}
.badge-ess-2 {
    background: linear-gradient(135deg, #e67e22, #f39c12) !important;
    color: #fff !important;
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.5) !important;
}
.badge-ess-3 {
    background: linear-gradient(135deg, #ff3366, #ff00cc) !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.8) !important;
    border: 1px solid #ff7675;
}

.essence-title-1 {
    color: #2ecc71 !important;
    font-weight: bold !important;
}
.essence-title-1:hover {
    color: #55efc4 !important;
}

.essence-title-2 {
    color: #ff9f43 !important;
    font-weight: bold !important;
    text-shadow: 0 0 4px rgba(255, 159, 67, 0.3) !important;
}
.essence-title-2:hover {
    color: #ffd2b3 !important;
}

.essence-title-3 {
    font-weight: bold !important;
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ff0080) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block !important;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.3) !important;
    animation: gold-glow-pulse 2s infinite alternate !important;
}
.essence-title-3:hover {
    filter: brightness(1.2) !important;
}

@keyframes gold-glow-pulse {
    0% {
        text-shadow: 0 0 2px rgba(255, 215, 0, 0.3);
    }
    100% {
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 140, 0, 0.4);
    }
}
