/* ============================================================
   TLS.happy — CS 战队官网 全局样式 (Enhanced)
   暗色主题 + 橙色强调 + 现代设计手法
   ============================================================ */

/* ------------------------------------------------------------
   CSS 变量 & 全局重置
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 */
    --primary-orange: #ff6600;
    --dark-orange: #cc5200;
    --light-orange: #ff8833;
    --pale-orange: #ffaa66;

    /* 背景层级 */
    --black: #060606;
    --dark-gray: #111111;
    --medium-gray: #1c1c1c;
    --light-gray: #282828;
    --lighter-gray: #333333;

    /* 卡片 */
    --bg-card: #1a1a1a;
    --bg-dark: #0f0f0f;
    --border-color: #2a2a2a;
    --border-light: #353535;

    /* 文字 */
    --text-primary: #f5f5f5;
    --text-secondary: #c0c0c0;
    --text-muted: #777777;

    /* 光晕 / 特效 */
    --orange-glow: rgba(255, 102, 0, 0.25);
    --orange-glow-strong: rgba(255, 102, 0, 0.45);
    --orange-glow-subtle: rgba(255, 102, 0, 0.10);
    --card-glow: rgba(255, 255, 255, 0.03);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--orange-glow);
    --shadow-glow-sm: 0 0 12px var(--orange-glow-subtle);
}

/* ------------------------------------------------------------
   基础排版 & 全局
   ------------------------------------------------------------ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
    background-color: var(--black);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    /* 细微背景纹理 */
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(255, 102, 0, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 102, 0, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-gray);
}
::-webkit-scrollbar-thumb {
    background: var(--lighter-gray);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* 文字选中 */
::selection {
    background: rgba(255, 102, 0, 0.3);
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.25s;
}
a:hover {
    color: var(--light-orange);
}

/* ------------------------------------------------------------
   导航栏 — 玻璃拟态
   ------------------------------------------------------------ */
header {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 102, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.navbar {
    padding: 0.85rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.65rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo .highlight {
    color: var(--primary-orange);
    position: relative;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary-orange);
    border-radius: 1px;
    transition: transform 0.25s;
}

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

.nav-links a.active {
    color: var(--primary-orange);
    background: rgba(255, 102, 0, 0.1);
}
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ------------------------------------------------------------
   Hero 区域
   ------------------------------------------------------------ */
.hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 102, 0, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    padding: 6rem 0 5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 102, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* Hero 装饰光斑 */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--pale-orange) 50%, var(--primary-orange) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroShimmer 4s ease-in-out infinite;
    letter-spacing: -0.03em;
}

@keyframes heroShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.team-logo-large {
    display: inline-block;
    margin-top: 2rem;
}

.logo-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 40px var(--orange-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   分区标题
   ------------------------------------------------------------ */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    position: relative;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-orange);
    border-radius: 1px;
}

/* ------------------------------------------------------------
   战队信息区
   ------------------------------------------------------------ */
.team-overview {
    padding: 5rem 0;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
        var(--medium-gray);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* 统计卡片顶部光条 */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.stat-card:hover {
    border-color: rgba(255, 102, 0, 0.4);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--orange-glow-subtle);
}
.stat-card:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 2.6rem;
    color: var(--primary-orange);
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px var(--orange-glow-subtle);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.team-description {
    background:
        linear-gradient(135deg, rgba(255, 102, 0, 0.04) 0%, transparent 100%),
        var(--dark-gray);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary-orange);
    position: relative;
}

.team-description h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.team-description p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.9;
    font-size: 1.02rem;
}

/* ------------------------------------------------------------
   选手卡片
   ------------------------------------------------------------ */
.players-preview {
    padding: 5rem 0;
    background-color: var(--dark-gray);
    position: relative;
}
.players-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 102, 0, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.players-full {
    padding: 3rem 0 5rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.player-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
        var(--bg-card);
    padding: 2rem 1.5rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 卡片顶部光斑 */
.player-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 102, 0, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.player-card:hover {
    border-color: rgba(255, 102, 0, 0.45);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px var(--orange-glow-subtle);
}
.player-card:hover::after {
    opacity: 1;
}

.player-avatar {
    margin-bottom: 1rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background:
        linear-gradient(135deg, rgba(255, 102, 0, 0.15) 0%, rgba(255, 102, 0, 0.05) 100%),
        var(--medium-gray);
    border: 2px solid rgba(255, 102, 0, 0.35);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-orange);
    transition: all 0.35s;
    box-shadow: 0 0 20px var(--orange-glow-subtle);
}
.player-card:hover .avatar-placeholder {
    border-color: var(--primary-orange);
    box-shadow: 0 0 30px var(--orange-glow);
}

.player-nickname {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.player-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.player-stats-mini {
    display: flex;
    justify-content: space-around;
    font-size: 0.82rem;
    color: var(--text-secondary);
    gap: 0.25rem;
}

.view-all {
    text-align: center;
    margin-top: 2.5rem;
}

/* ------------------------------------------------------------
   按钮
   ------------------------------------------------------------ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transition: opacity 0.3s;
    opacity: 0;
}
.btn-primary:hover::after {
    opacity: 1;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.4);
    color: #fff;
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.25s;
}
.btn-outline:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: rgba(255, 102, 0, 0.06);
}

.btn-danger {
    background: rgba(255, 68, 68, 0.1);
    color: #ff5555;
    border: 1px solid rgba(255, 68, 68, 0.25);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.25s;
}
.btn-danger:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff5555;
    box-shadow: 0 0 16px rgba(255, 68, 68, 0.15);
}

/* ------------------------------------------------------------
   比赛卡片
   ------------------------------------------------------------ */
.recent-matches {
    padding: 5rem 0;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--medium-gray);
    padding: 1.4rem 1.75rem;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-light);
    border-radius: 4px 0 0 4px;
    transition: background 0.3s;
}

.match-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}
.match-card.win::before {
    background: linear-gradient(180deg, #4CAF50, #2E7D32);
}
.match-card.loss::before {
    background: linear-gradient(180deg, #f44336, #b71c1c);
}
.match-card.win {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.06) 0%, transparent 100%), var(--medium-gray);
}
.match-card.loss {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.06) 0%, transparent 100%), var(--medium-gray);
}

.match-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.match-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.match-details .team {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}
.match-details .team:first-child {
    text-align: right;
}
.match-details .opponent {
    text-align: left;
    color: var(--text-secondary);
}
.match-details .score {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-orange);
    text-align: center;
    text-shadow: 0 0 12px var(--orange-glow-subtle);
}

.match-tournament {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
    font-weight: 500;
}

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
footer {
    background: var(--dark-gray);
    border-top: 1px solid rgba(255, 102, 0, 0.12);
    padding: 2.5rem 0;
    margin-top: 5rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s;
    font-weight: 500;
    font-size: 0.9rem;
}
.social-link:hover {
    color: var(--primary-orange);
}

/* ------------------------------------------------------------
   页面头部 (子页面标题横幅)
   ------------------------------------------------------------ */
.page-header {
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    padding: 3.5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 102, 0, 0.12);
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

/* ------------------------------------------------------------
   选手详情页
   ------------------------------------------------------------ */
.player-profile {
    padding: 3rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.25s;
    font-size: 0.92rem;
    font-weight: 500;
}
.back-link:hover {
    color: var(--primary-orange);
    transform: translateX(-3px);
}

.profile-header {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 102, 0, 0.04) 0%, transparent 100%),
        var(--medium-gray);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    transition: border-color 0.3s;
}
.profile-header:hover {
    border-color: rgba(255, 102, 0, 0.2);
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-placeholder-large {
    width: 160px;
    height: 160px;
    background:
        linear-gradient(135deg, rgba(255, 102, 0, 0.15) 0%, rgba(255, 102, 0, 0.03) 100%),
        var(--medium-gray);
    border: 3px solid rgba(255, 102, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    box-shadow: 0 0 35px var(--orange-glow-subtle);
    transition: box-shadow 0.3s;
}
.profile-header:hover .avatar-placeholder-large {
    box-shadow: 0 0 50px var(--orange-glow);
}

.profile-info {
    flex: 1;
}
.profile-nickname {
    font-size: 2.6rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.profile-realname {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.meta-item {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all 0.25s;
}
.meta-item:hover {
    border-color: rgba(255, 102, 0, 0.3);
    background: rgba(255, 102, 0, 0.06);
}

/* 选手详情统计网格 */
.profile-stats {
    margin-bottom: 2.5rem;
}
.stats-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.2rem;
}
.stat-detail-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--medium-gray);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.stat-detail-card:hover {
    border-color: rgba(255, 102, 0, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px var(--orange-glow-subtle);
}
.stat-detail-value {
    font-size: 2rem;
    color: var(--primary-orange);
    font-weight: 800;
    margin-bottom: 0.35rem;
    text-shadow: 0 0 16px var(--orange-glow-subtle);
}
.stat-detail-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* 选手简介 & 成就 */
.profile-bio {
    background:
        linear-gradient(135deg, rgba(255, 102, 0, 0.03) 0%, transparent 100%),
        var(--medium-gray);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-orange);
    margin-bottom: 2rem;
}
.profile-bio p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.9;
}

.profile-achievements {
    margin-bottom: 2rem;
}
.achievement-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.achievement-list li {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--medium-gray);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s;
}
.achievement-list li:hover {
    border-color: rgba(255, 102, 0, 0.25);
    transform: translateX(6px);
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.04) 0%, transparent 100%), var(--medium-gray);
}
.achievement-list.large li {
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
}

/* ------------------------------------------------------------
   数据统计页
   ------------------------------------------------------------ */
.stats-section {
    padding: 2.5rem 0;
}
.stats-section:nth-child(even) {
    background-color: var(--dark-gray);
}

.stats-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--medium-gray);
}
.stats-table thead {
    background: var(--dark-gray);
}
.stats-table th {
    padding: 1rem 1.2rem;
    text-align: left;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid rgba(255, 102, 0, 0.3);
    white-space: nowrap;
}
.stats-table td {
    padding: 1rem 1.2rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    font-size: 0.95rem;
}
.stats-table tbody tr {
    transition: background 0.2s;
}
.stats-table tbody tr:hover {
    background: rgba(255, 102, 0, 0.05);
}
.player-name-cell {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1rem !important;
}
.highlight-cell {
    color: var(--primary-orange) !important;
    font-weight: 700;
    font-size: 1rem !important;
}

/* 地图胜率 */
.map-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.map-stat-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--medium-gray);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.map-stat-card:hover {
    border-color: rgba(255, 102, 0, 0.25);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}
.map-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.map-winrate-bar {
    width: 100%;
    height: 10px;
    background: var(--dark-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.winrate-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--light-orange) 100%);
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px var(--orange-glow-subtle);
}
.map-record {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ------------------------------------------------------------
   关于页面
   ------------------------------------------------------------ */
.about-section {
    padding: 3rem 0 1rem;
}
.about-content h3 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
    color: var(--primary-orange);
    font-weight: 700;
}
.about-content h3:first-child {
    margin-top: 0;
}
.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.9;
    font-size: 1.02rem;
}

/* 理念卡片网格 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}
.philosophy-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
        var(--medium-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.philosophy-card:hover {
    border-color: rgba(255, 102, 0, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--orange-glow-subtle);
}
.philosophy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s;
}
.philosophy-card:hover .philosophy-icon {
    transform: scale(1.15);
}
.philosophy-card h4 {
    color: var(--primary-orange);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* 联系信息 */
.contact-info {
    background:
        linear-gradient(135deg, rgba(255, 102, 0, 0.04) 0%, transparent 100%),
        var(--medium-gray);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-orange);
    margin-top: 1rem;
}
.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.contact-info p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   Logo 图片
   ------------------------------------------------------------ */
.logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: var(--radius-md);
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 25px rgba(255, 102, 0, 0.5)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s, filter 0.3s;
}
.logo-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 40px rgba(255, 102, 0, 0.6)) drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4));
}

.logo-img-small {
    height: 40px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
}

/* ------------------------------------------------------------
   导航栏 - 登录区域
   ------------------------------------------------------------ */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}
.nav-auth .btn-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* 用户菜单 */
.user-menu {
    position: relative;
}
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 102, 0, 0.08);
    border: 1px solid rgba(255, 102, 0, 0.2);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.25s;
}
.user-menu-btn:hover {
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.4);
}

.avatar-placeholder-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.25s;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown a {
    display: block;
    padding: 0.7rem 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
    font-weight: 500;
}
.user-dropdown a:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--primary-orange);
}

/* ------------------------------------------------------------
   登录/注册页面
   ------------------------------------------------------------ */
.auth-section {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.auth-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* 登录卡片顶部光条 */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-header .logo-placeholder {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin: 0 auto;
}
.auth-header h2 {
    margin: 1rem 0 0.3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 0.7rem 0.9rem 0.7rem 2.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s;
}
.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--orange-glow-subtle);
}
.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.input-icon {
    position: absolute;
    left: 0.85rem;
    font-size: 1rem;
    pointer-events: none;
    opacity: 0.6;
}

.toggle-password {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.toggle-password:hover {
    color: var(--text-primary);
}

.field-error {
    font-size: 0.8rem;
    color: #ef4444;
    display: none;
}

.form-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: none;
}

.btn-block {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.btn-spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.auth-footer p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}
.back-home {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
}
.back-home:hover {
    color: var(--text-primary) !important;
}

/* ------------------------------------------------------------
   Toast 通知
   ------------------------------------------------------------ */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    padding: 0.8rem 1.3rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    max-width: 380px;
}
.toast-visible {
    opacity: 1;
    transform: translateX(0);
}
.toast-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
}
.toast-error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.toast-info {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.toast-warning {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* ------------------------------------------------------------
   管理后台
   ------------------------------------------------------------ */
.admin-section {
    padding: 2rem 0 5rem;
}

.admin-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}
.admin-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s;
    font-family: inherit;
    font-weight: 500;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.admin-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 102, 0, 0.04);
}
.admin-tab.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
    background: rgba(255, 102, 0, 0.06);
}

.admin-tab-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}
.admin-tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    margin-bottom: 1rem;
    transition: border-color 0.25s;
}
.admin-card:hover {
    border-color: rgba(255, 102, 0, 0.15);
}
.admin-card h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}
.admin-card h4 small {
    color: var(--text-muted);
    font-weight: 400;
}

.admin-card-sm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.admin-form label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-weight: 500;
}
.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 0.55rem 0.7rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px var(--orange-glow-subtle);
}
.admin-form select {
    cursor: pointer;
}
.admin-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* ------------------------------------------------------------
   评论系统
   ------------------------------------------------------------ */
.comments-section-wrapper {
    padding: 2rem 0 4rem;
}

/* 评论区整体加橙色左边框 */
.comments-section-wrapper {
    border-left: 3px solid rgba(255, 102, 0, 0.2);
    padding-left: 1.5rem;
}
.comments-section {
    border-left: 3px solid rgba(255, 102, 0, 0.2);
    padding-left: 1.5rem;
}

/* 评论标题 */
.comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 0 0 1rem;
}

.comment-form {
    margin-bottom: 1.5rem;
}

.comment-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.25s;
}
.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--orange-glow-subtle);
}
.comment-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.comment-form .btn {
    margin-top: 0.5rem;
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 单个评论 */
.comment-item {
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding: 1.1rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.comment-item:hover {
    border-color: rgba(255, 102, 0, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.comment-avatar {
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-orange);
}
.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.comment-content {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    word-break: break-word;
}

/* ------------------------------------------------------------
   评论三点菜单 (⋮)
   ------------------------------------------------------------ */
.comment-menu {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
}
.comment-menu-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.comment-menu-btn:hover,
.comment-menu-btn:focus {
    background: rgba(255, 102, 0, 0.15);
    color: var(--primary-orange);
}

/* 桌面端：悬停评论项才显示菜单按钮 */
@media (hover: hover) {
    .comment-item .comment-menu {
        opacity: 0;
        transition: opacity 0.2s;
    }
    .comment-item:hover .comment-menu {
        opacity: 1;
    }
}
/* 移动端：始终显示 */
@media (hover: none) {
    .comment-item .comment-menu {
        opacity: 1;
    }
}

.comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    min-width: 100px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    overflow: hidden;
}
.comment-menu-dropdown button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: #ff5555;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}
.comment-menu-dropdown button:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* ------------------------------------------------------------
   评论回复
   ------------------------------------------------------------ */
.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.2s;
}
.comment-reply-btn:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    background: rgba(255, 102, 0, 0.08);
}

/* 内联回复表单 */
.comment-reply-form {
    margin-top: 0.75rem;
    padding: 0.85rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-orange);
}
.comment-reply-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.comment-reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px var(--orange-glow-subtle);
}
.comment-reply-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

/* 子评论缩进 */
.comment-replies {
    margin-left: 2.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 102, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ------------------------------------------------------------
   社区帖子
   ------------------------------------------------------------ */
.posts-section {
    padding: 2rem 0 4rem;
}
.posts-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

/* 发帖表单 */
.post-form-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.3s ease;
}
.post-form-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 0.75rem;
    transition: all 0.25s;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--orange-glow-subtle);
}
.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.25s;
    box-sizing: border-box;
}
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--orange-glow-subtle);
}
.form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* 帖子卡片列表 */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.post-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.6rem;
    cursor: pointer;
    transition: all 0.3s;
}
.post-card:hover {
    border-color: rgba(255, 102, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.03) 0%, transparent 100%), var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.post-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.post-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.post-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-orange);
}
.post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}
.post-card-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

/* ------------------------------------------------------------
   帖子详情页
   ------------------------------------------------------------ */
.post-detail-section {
    padding: 2rem 0 4rem;
}

.post-detail-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}
.post-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.post-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.post-detail-content {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.85;
    word-break: break-word;
}
.post-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ------------------------------------------------------------
   首页社区预览
   ------------------------------------------------------------ */
.community-preview {
    padding: 5rem 0;
    background-color: var(--dark-gray);
    position: relative;
}
.community-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 102, 0, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.community-preview .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.community-preview .section-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.community-preview .section-header .section-title::after {
    display: none;
}
.community-preview .view-all-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.community-preview .view-all-link:hover {
    color: var(--light-orange);
    transform: translateX(3px);
}

.community-posts-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
}

.post-mini-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.post-mini-card:hover {
    border-color: rgba(255, 102, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.03) 0%, transparent 100%), var(--bg-card);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.post-mini-card .post-mini-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.post-mini-card .post-mini-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0.75rem;
    word-break: break-word;
}
.post-mini-card .post-mini-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.post-mini-card .post-mini-author {
    color: var(--primary-orange);
    font-weight: 600;
}

/* ------------------------------------------------------------
   汉堡菜单 (移动端)
   ------------------------------------------------------------ */
.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: all 0.25s;
}
.hamburger-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* ------------------------------------------------------------
   通用状态
   ------------------------------------------------------------ */
.loading-placeholder {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.no-data {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.empty-state p {
    font-size: 1rem;
    margin: 0;
}

.error-state {
    text-align: center;
    padding: 3rem 1rem;
}
.error-state h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.error-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* 完美世界段位 */
.pwp-rank {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.85rem;
    background: rgba(255, 102, 0, 0.08);
    border: 1px solid rgba(255, 102, 0, 0.25);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--primary-orange);
    font-weight: 600;
}

/* 文本工具 */
.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.text-error {
    color: #ff5555;
    font-size: 0.95rem;
}

/* ============================================================
   响应式设计
   ============================================================ */

/* --- 平板 & 小屏幕 (< 768px) --- */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hamburger-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
        overflow: hidden;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: left;
        border-radius: 0;
    }
    .nav-links a::after {
        display: none;
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 102, 0, 0.08);
    }

    .nav-auth {
        margin-left: 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    .hero {
        padding: 4rem 0 3rem;
    }

    .players-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .match-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    .match-card::before {
        width: 100%;
        height: 3px;
        top: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .match-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .match-details .team:first-child {
        text-align: center;
    }
    .match-details .opponent {
        text-align: center;
    }
    .match-tournament {
        text-align: center;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .profile-nickname {
        font-size: 2rem;
    }
    .profile-meta {
        justify-content: center;
    }
    .stats-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-header h2 {
        font-size: 1.8rem;
    }
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        width: 100px;
        height: 100px;
    }
    .logo-img-small {
        height: 35px;
    }

    .auth-card {
        padding: 1.5rem;
    }
    .admin-tabs {
        flex-wrap: wrap;
    }
    .admin-tab {
        font-size: 0.85rem;
        padding: 0.5rem 0.85rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    /* 帖子 */
    .post-card {
        padding: 1.1rem;
    }
    .post-card-title {
        font-size: 1rem;
    }
    .post-detail-card {
        padding: 1.25rem;
    }
    .post-detail-title {
        font-size: 1.25rem;
    }

    /* 评论 */
    .comment-replies {
        margin-left: 1.5rem;
        padding-left: 0.75rem;
    }
    .comments-section-wrapper,
    .comments-section {
        padding-left: 0.75rem;
    }

    .community-posts-mini {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- 手机 (< 480px) --- */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .tagline {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .section-title::after {
        width: 40px;
    }

    .team-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-card {
        padding: 1.25rem 1rem;
    }
    .stat-value {
        font-size: 1.8rem;
    }

    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .player-card {
        padding: 1.25rem 0.75rem;
    }
    .avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    .player-nickname {
        font-size: 1.05rem;
    }

    .container {
        padding: 0 12px;
    }

    .post-detail-card {
        padding: 1rem;
    }
    .comment-item {
        padding: 0.85rem;
    }
    .comment-replies {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }

    .page-header {
        padding: 2rem 0;
    }
    .page-header h2 {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }
}
