/* --------------------------------------------------
 * BSC超级联赛 - B超 专属视觉样式文件
 * 设计风格：未来暗黑科技 + 玻璃拟态 + 霓虹渐变
 * -------------------------------------------------- */

:root {
    --bg-dark: #080A0D;
    --bg-card: rgba(18, 22, 28, 0.65);
    --bg-card-hover: rgba(26, 32, 40, 0.85);
    --border-color: rgba(243, 186, 47, 0.15);
    --text-main: #EAECEF;
    --text-muted: #848E9C;
    
    /* 阵营配色 */
    --cz-gold: #F3BA2F;
    --cz-gold-glow: rgba(243, 186, 47, 0.4);
    --heyi-purple: #E10098;
    --heyi-purple-glow: rgba(225, 0, 152, 0.4);
    
    /* 霓虹色 */
    --neon-blue: #00F2FE;
    --neon-green: #00FFCC;
    --neon-red: #FF3860;
    --neon-shadow: 0 0 15px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --------------------------------------------------
 * 背景炫光系统 (Background Glow Effect)
 * -------------------------------------------------- */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--cz-gold) 0%, transparent 70%);
    top: -100px;
    left: -150px;
}

.bg-glow-2 {
    background: radial-gradient(circle, var(--heyi-purple) 0%, transparent 70%);
    bottom: -100px;
    right: -150px;
}

/* --------------------------------------------------
 * 布局容器
 * -------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------
 * 公用卡片样式 (Glassmorphism Card)
 * -------------------------------------------------- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------
 * 顶部导航栏
 * -------------------------------------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 8px var(--neon-blue));
    animation: spin 8s linear infinite;
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--cz-gold) 0%, #FFFFFF 50%, var(--heyi-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-logo {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
}

/* 倒计时面板 */
.countdown-panel {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 8px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.countdown-title {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.countdown-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* 钱包面板 */
.wallet-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.game-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-guest {
    background: rgba(0, 242, 254, 0.15);
    color: var(--neon-blue);
}

.badge-real {
    background: rgba(243, 186, 47, 0.15);
    color: var(--cz-gold);
}

.addr-text {
    font-family: monospace;
    font-size: 13px;
}

.secure-icon {
    color: var(--neon-green);
    font-size: 12px;
}

.real-wallet-connected {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(243, 186, 47, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid rgba(243, 186, 47, 0.2);
}

/* --------------------------------------------------
 * 竞技场栅格系统 (Grid System)
 * -------------------------------------------------- */
.arena-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* 能量进度条横跨整行 */
.arena-vs {
    grid-column: span 12;
    padding: 20px 30px;
}

.vs-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.team-label {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.team-name {
    font-size: 18px;
    font-weight: 800;
}

.team-cz .team-name {
    color: var(--cz-gold);
    text-shadow: 0 0 10px rgba(243, 186, 47, 0.2);
}

.team-heyi .team-name {
    color: var(--heyi-purple);
    text-shadow: 0 0 10px rgba(225, 0, 152, 0.2);
}

.team-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 900;
}

.team-cz .team-score { color: var(--cz-gold); }
.team-heyi .team-score { color: var(--heyi-purple); }

.vs-badge {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* 进度条轨道 */
.progress-container {
    height: 24px;
    background: linear-gradient(90deg, #A8005A 0%, var(--heyi-purple) 100%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 进度条填充（CZ 胜出，为何一的对侧。所以从左向右填充为 CZ 金色，背景是 何一 紫色） */
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #A87E00 0%, var(--cz-gold) 100%);
    position: relative;
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 2px 0 10px rgba(0,0,0,0.5); /* 加个阴影增强区分度 */
}

/* 能量交界处的火花特效 */
.progress-spark {
    position: absolute;
    right: -10px;
    top: 0;
    bottom: 0;
    width: 20px;
    background: #FFF;
    box-shadow: 0 0 15px 5px #FFF, 0 0 30px 10px var(--neon-blue);
    z-index: 2;
}

.team-ratio {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* --------------------------------------------------
 * 核心互动足球场区
 * -------------------------------------------------- */
.match-field {
    grid-column: span 12;
    height: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(16, 46, 37, 0.4) 0%, rgba(8, 10, 13, 0.8) 100%);
    border: 1px solid rgba(0, 255, 204, 0.15);
}

.coach-avatar {
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.coach-avatar:hover {
    transform: scale(1.08);
}

.avatar-svg-container {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.avatar-svg {
    width: 100%;
    height: 100%;
}

/* 眨眼动画 */
.eye-blink {
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); transform-origin: 50% 44%; }
}

/* 气泡对话框 */
.bubble {
    position: absolute;
    top: -45px;
    background: #FFF;
    color: #000;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    animation: bounce 0.5s ease infinite alternate;
    z-index: 10;
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #FFF transparent;
}

.bubble-cz {
    border: 2px solid var(--cz-gold);
}

.bubble-heyi {
    border: 2px solid var(--heyi-purple);
}

/* 足球点击器 */
.football-center {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.stadium-circle {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 2px dashed rgba(0, 255, 204, 0.2);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.football-btn {
    width: 130px;
    height: 130px;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

.football-btn:active {
    transform: scale(0.92);
}

.football-svg {
    width: 100%;
    height: 100%;
}

.glow-ring {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { stroke-width: 2px; stroke-opacity: 0.6; }
    50% { stroke-width: 6px; stroke-opacity: 1; filter: drop-shadow(0 0 8px var(--neon-blue)); }
    100% { stroke-width: 2px; stroke-opacity: 0.6; }
}

/* 飘浮数字动效 */
.floating-num {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    pointer-events: none;
    animation: floatUp 0.8s ease-out forwards;
    z-index: 100;
}

.floating-num.crit {
    font-size: 32px;
    color: var(--cz-gold);
    text-shadow: 0 0 15px var(--cz-gold);
}

@keyframes floatUp {
    0% { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) translateY(-100px) scale(0.8); }
}

/* --------------------------------------------------
 * 特权面板
 * -------------------------------------------------- */
.privilege-panel {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panel-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title i {
    color: var(--cz-gold);
}

.holder-status {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
}

.holder-balance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.holder-balance .value {
    font-weight: 800;
    color: var(--neon-blue);
}

.privilege-badge-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-privilege {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.privilege-none { background: rgba(132, 142, 156, 0.15); color: var(--text-muted); }
.privilege-bronze { background: rgba(205, 127, 50, 0.15); color: #CD7F32; border: 1px solid #CD7F32; }
.privilege-silver { background: rgba(192, 192, 192, 0.15); color: #C0C0C0; border: 1px solid #C0C0C0; }
.privilege-gold { 
    background: rgba(243, 186, 47, 0.15); 
    color: var(--cz-gold); 
    border: 1px solid var(--cz-gold);
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 5px var(--cz-gold-glow); }
    50% { box-shadow: 0 0 15px var(--cz-gold); }
}

.privilege-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.privilege-item {
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.privilege-item.active {
    opacity: 1;
    background: rgba(243, 186, 47, 0.05);
    border-color: rgba(243, 186, 47, 0.25);
}

.priv-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.priv-name {
    font-weight: 800;
    font-size: 13px;
}

.priv-status {
    font-size: 10px;
    text-transform: uppercase;
}

.privilege-item.active .priv-name { color: var(--cz-gold); }
.privilege-item.active .priv-status { color: var(--neon-green); font-weight: 800; }

.priv-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* --------------------------------------------------
 * 绿茵场控制台面板
 * -------------------------------------------------- */
.control-panel {
    grid-column: span 6;
    min-height: 250px;
}

.team-cards-container {
    display: flex;
    gap: 15px;
}

.team-join-card {
    flex: 1;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-join-card:hover {
    transform: translateY(-5px);
}

.join-cz:hover {
    border-color: var(--cz-gold);
    box-shadow: 0 0 20px rgba(243, 186, 47, 0.15);
}

.join-heyi:hover {
    border-color: var(--heyi-purple);
    box-shadow: 0 0 20px rgba(225, 0, 152, 0.15);
}

.team-join-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.join-cz h3 { color: var(--cz-gold); }
.join-heyi h3 { color: var(--heyi-purple); }

.team-join-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 游戏控制台核心视图 */
.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.my-team-indicator {
    font-size: 13px;
    color: var(--text-muted);
}

.my-team-indicator .badge {
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    color: #FFF;
}

.badge-cz { background-color: var(--cz-gold); }
.badge-heyi { background-color: var(--heyi-purple); }

/* 体力槽 */
.energy-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 20px;
}

.energy-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

#energy-text {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(0,255,204,0.4);
}

.energy-bar-bg {
    height: 12px;
    background: #14181F;
    border-radius: 10px;
    overflow: hidden;
}

.energy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00C6FF 0%, var(--neon-green) 100%);
    border-radius: 10px;
    width: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.energy-restore-tips {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
}

.energy-restore-tips i {
    animation: spin 3s linear infinite;
}

/* 燃烧补给 */
.booster-section h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.booster-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booster-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.booster-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.booster-info {
    display: flex;
    flex-direction: column;
}

.booster-title {
    font-size: 13px;
    font-weight: 800;
}

.booster-cost {
    font-size: 11px;
    color: var(--text-muted);
}

.my-stats-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-num {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--neon-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* --------------------------------------------------
 * 联赛金库
 * -------------------------------------------------- */
.treasury-panel {
    grid-column: span 6;
}

.treasury-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.treasury-pot {
    background: linear-gradient(135deg, rgba(243, 186, 47, 0.08) 0%, rgba(225, 0, 152, 0.08) 100%);
    border: 1px solid rgba(243, 186, 47, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.pot-title {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pot-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--cz-gold);
    text-shadow: 0 0 15px rgba(243, 186, 47, 0.4);
    margin-top: 6px;
}

.treasury-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.value-highlight {
    font-weight: 800;
}

/* --------------------------------------------------
 * 排行榜
 * -------------------------------------------------- */
.leaderboard-panel {
    grid-column: span 6;
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #FFF;
}

.tab-btn:first-child.active {
    background: rgba(243, 186, 47, 0.15);
    border-color: var(--cz-gold);
    box-shadow: 0 0 10px var(--cz-gold-glow);
}

.tab-btn:last-child.active {
    background: rgba(225, 0, 152, 0.15);
    border-color: var(--heyi-purple);
    box-shadow: 0 0 10px var(--heyi-purple-glow);
}

.leaderboard-list-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 12px 20px;
    font-size: 13px;
}

.leaderboard-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    font-weight: 800;
}

.leaderboard-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-table tr:last-child {
    border-bottom: none;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------
 * 按钮组件
 * -------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: inherit;
}

.btn-block { width: 100%; display: flex; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-xs { padding: 5px 12px; font-size: 11px; }

.btn-primary {
    background: linear-gradient(90deg, #00C6FF 0%, var(--neon-blue) 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-warning {
    background: var(--cz-gold);
    color: #000;
}

.btn-warning:hover {
    box-shadow: 0 0 15px var(--cz-gold);
}

.btn-danger {
    background: var(--heyi-purple);
    color: #FFF;
}

.btn-danger:hover {
    box-shadow: 0 0 15px var(--heyi-purple);
}

.btn-neon-green {
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.btn-neon-green:hover {
    background: rgba(0, 255, 204, 0.15);
    box-shadow: 0 0 10px var(--neon-green);
}

.btn-neon-gold {
    background: transparent;
    color: var(--cz-gold);
    border: 1px solid var(--cz-gold);
}

.btn-neon-gold:hover {
    background: rgba(243, 186, 47, 0.15);
    box-shadow: 0 0 10px var(--cz-gold);
}

/* --------------------------------------------------
 * 弹窗系统 (Modal System)
 * -------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-card {
    background: #0E1217;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    color: var(--neon-blue);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.security-intro {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.shield-graphic {
    font-size: 28px;
    color: var(--neon-blue);
}

.bind-step-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 13px;
    font-weight: 800;
}

.step-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.input-simulation-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.input-simulation-box label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: #14181F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #FFF;
    font-family: monospace;
    font-size: 12px;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-blue);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 结算弹窗特有 */
.settle-modal-card {
    background: radial-gradient(circle at top, rgba(243, 186, 47, 0.15) 0%, #0E1217 60%);
    border-color: rgba(243, 186, 47, 0.3);
}

.trophy-box {
    font-size: 56px;
    margin-bottom: 10px;
    animation: bounce 0.8s ease infinite alternate;
}

.settle-bill {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
}

.bill-row.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 10px;
}

/* --------------------------------------------------
 * 辅助类
 * -------------------------------------------------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: #FFF; }
.text-yellow { color: var(--cz-gold); }
.text-red { color: var(--neon-red); }
.text-neon-green { color: var(--neon-green); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }

/* 动画集 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

/* --------------------------------------------------
 * 响应式布局适应
 * -------------------------------------------------- */
@media (max-width: 992px) {
    .match-field {
        grid-column: span 12;
    }
    .privilege-panel {
        grid-column: span 12;
    }
    .control-panel {
        grid-column: span 12;
    }
    .treasury-panel {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .wallet-panel {
        align-items: center;
    }
    .match-field {
        height: 320px;
    }
    .football-center {
        width: 180px;
        height: 180px;
    }
    .stadium-circle {
        width: 170px;
        height: 170px;
    }
    .football-btn {
        width: 90px;
        height: 90px;
    }
    .coach-avatar {
        width: 90px;
    }
    .avatar-svg-container {
        width: 70px;
        height: 70px;
    }
    .team-cards-container {
        flex-direction: column;
    }
}

/* --------------------------------------------------
 * 强弹窗：签约加盟阵营大卡片样式
 * -------------------------------------------------- */
.join-team-modal-card {
    max-width: 1000px;
    max-height: 95vh;
    overflow-y: auto;
    background: radial-gradient(circle at center, #141920 0%, #080A0D 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-logo-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: bounce 0.8s ease infinite alternate;
}

.team-cards-large {
    display: flex;
    gap: 20px;
    margin: 25px 0 10px 0;
}

.large-team-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.large-team-card:hover {
    transform: translateY(-8px);
}

/* CZ 大卡片 hover 黄金发光 */
.large-team-card.card-cz:hover {
    border-color: var(--cz-gold);
    box-shadow: 0 0 25px rgba(243, 186, 47, 0.2);
    background: rgba(243, 186, 47, 0.03);
}

/* HeYi 大卡片 hover 紫红发光 */
.large-team-card.card-heyi:hover {
    border-color: var(--heyi-purple);
    box-shadow: 0 0 25px rgba(225, 0, 152, 0.2);
    background: rgba(225, 0, 152, 0.03);
}

.team-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.large-team-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    margin-bottom: 5px;
}

.card-cz h3 { color: var(--cz-gold); }
.card-heyi h3 { color: var(--heyi-purple); }

.large-team-card .slogan {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.large-team-card .desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 58px;
    text-align: center;
}

@media (max-width: 768px) {
    .team-cards-large {
        flex-direction: column;
        gap: 15px;
    }
}

/* --------------------------------------------------
 * SPA 页面视图切换系统
 * -------------------------------------------------- */
.view-page {
    width: 100%;
    min-height: 100vh;
    padding: 30px 10px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.view-page.hidden {
    display: none !important;
}

.join-page-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 覆盖之前可能存在的弹窗多余属性，让签约页面成为完全自然的平铺文档流 */
.join-team-modal-card {
    max-width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    animation: none !important;
}

/* --------------------------------------------------
 * 官方指南与安全声明面板（通用栅格）
 * -------------------------------------------------- */
.rules-panel {
    width: 100%;
    margin-top: 30px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.rules-block {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease;
}

.rules-block:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.08);
}

.rules-block h4 {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-block h4 i {
    color: var(--neon-blue);
}

.rules-block ul {
    padding-left: 15px;
}

.rules-block ul li {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

.rules-block ul li:last-child {
    margin-bottom: 0;
}

/* 适应移动端和窄屏排版 */
@media (max-width: 992px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
