/* ====== 2026世界杯 AI预测工具 - 炫酷黑金世界杯风格 ====== */

/* ---- CSS Variables & Color System ---- */
:root {
    --bg-dark: #0a0b12;
    --bg-card: rgba(20, 22, 40, 0.85);
    --bg-card-hover: rgba(30, 35, 60, 0.95);
    --gold: #f0b90b;
    --gold-light: #ffd700;
    --gold-gradient: linear-gradient(135deg, #f0b90b, #ff8c00);
    --accent-red: #e63946;
    --accent-blue: #457bff;
    --accent-green: #00e676;
    --text: #e8e8f0;
    --text-light: #8888aa;
    --text-muted: #555577;
    --border: rgba(240, 185, 11, 0.2);
    --border-glow: rgba(240, 185, 11, 0.4);
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 20px rgba(240, 185, 11, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Animated Background Particle Canvas ---- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 18, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
    opacity: 0.6;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: logo-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
}

@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(240, 185, 11, 0.3); }
    50% { box-shadow: 0 0 40px rgba(240, 185, 11, 0.6); }
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.logo-text-sub {
    font-size: 13px;
    color: var(--text-light);
    margin-left: 8px;
    font-weight: 400;
    -webkit-text-fill-color: var(--text-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-radius: 20px;
    font-size: 12px;
    color: var(--gold);
    white-space: nowrap;
}

.header-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: dot-blink 1.5s ease-in-out infinite;
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.hero-content {
    background: linear-gradient(135deg, 
        rgba(240, 185, 11, 0.08) 0%, 
        rgba(69, 123, 255, 0.05) 50%, 
        rgba(230, 57, 70, 0.08) 100%
    );
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(240,185,11,0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(69,123,255,0.03) 0%, transparent 50%);
    animation: hero-shimmer 8s ease-in-out infinite;
}

@keyframes hero-shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(240, 185, 11, 0.12);
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--gold);
    width: fit-content;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-title-line1 {
    display: block;
    color: var(--text);
}

.hero-title-line2 {
    display: block;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-card {
    background: rgba(10, 11, 18, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 320px;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.countdown-numbers {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-num {
    font-size: 40px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-venue {
    font-size: 13px;
    color: var(--text-light);
}

/* ---- Main Content ---- */
.main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ---- Section ---- */
.section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.section:hover {
    border-color: var(--border-glow);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-gradient);
    opacity: 0.3;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.section-title-icon {
    font-size: 22px;
}

.section-title-glow {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Tab Bar ---- */
.tab-bar {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.tab {
    padding: 8px 18px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.tab.active {
    background: var(--gold-gradient);
    color: #1a1a2e;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

/* ---- Filters ---- */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.filter-input {
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}

.filter-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(240, 185, 11, 0.15);
}

.filter-input option {
    background: var(--bg-dark);
    color: var(--text);
}

/* ---- Match Cards ---- */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-card-wrapper {
    display: flex;
    flex-direction: column;
}

.match-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.match-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateX(4px);
    box-shadow: var(--shadow-gold);
}

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

.match-card.is-live {
    border-color: rgba(0, 230, 118, 0.3);
}

.match-card.is-live::before {
    opacity: 1;
    background: var(--accent-green);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.match-round-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.match-round-dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 700;
}
.score-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    min-width: 24px;
    text-align: center;
}
.score-colon {
    color: var(--text-muted);
    font-weight: 300;
}
.match-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}
.match-status {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}
.match-status.finished {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
}
.match-status.upcoming {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.06);
}
.match-status.live {
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(230, 57, 70, 0.2);
    animation: dot-blink 1s ease-in-out infinite;
}
.btn-result {
    padding: 8px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}

.team-name {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.team-name.away {
    text-align: right;
}

    color: var(--gold);
    flex-shrink: 0;
}

.match-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-muted);
}

.match-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-predict-sm {
    padding: 8px 16px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 8px;
    color: #0a0b12;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-predict-sm:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.4);
}

/* ---- Predict Box ---- */
.predict-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.predict-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-select-wrapper {
    position: relative;
}

.team-select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s;
}

.team-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(240, 185, 11, 0.15);
}

.team-select option {
    background: var(--bg-dark);
    color: var(--text);
    padding: 10px;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
    font-size: 10px;
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4px;
}

.vs-circle {
    width: 44px;
    height: 44px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #0a0b12;
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.btn-predict {
    width: 100%;
    padding: 16px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #0a0b12;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-predict:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.4);
}

.btn-predict:active {
    transform: translateY(0);
}

.btn-predict:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-predict.loading {
    color: transparent;
}

.btn-predict.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(10, 11, 18, 0.3);
    border-top: 3px solid #0a0b12;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ---- Predict Result ---- */
.predict-result {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    animation: result-in 0.5s ease;
}

@keyframes result-in {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.97); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.result-showdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(10, 11, 18, 0.4);
    border-radius: var(--radius-sm);
}

.result-team-block {
    text-align: center;
    flex: 1;
}

.result-team-flag {
    font-size: 36px;
    margin-bottom: 6px;
}

.result-team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.result-team-prob {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.prob-num {
    font-size: 28px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.prob-num-sm {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}


.result-vs-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-vs-big {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
}

.result-vs-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.result-prob-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
}

.bar-home { 
    background: linear-gradient(90deg, #e63946, #ff6b6b);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-draw { 
    background: linear-gradient(90deg, #f0b90b, #ffd700);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-away { 
    background: linear-gradient(90deg, #457bff, #00e676);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.result-analysis {
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-light);
    white-space: pre-wrap;
    padding: 16px;
    background: rgba(10, 11, 18, 0.3);
    border-radius: var(--radius-sm);
}

/* ---- Groups Grid ---- */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.group-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.3s;
}

.group-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-gold);
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.group-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

.group-card-desc {
    font-size: 10px;
    color: var(--text-muted);
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.group-table th {
    text-align: left;
    padding: 4px 6px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-table td {
    padding: 6px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

.group-table .rank { 
    color: var(--text-muted); 
    width: 22px;
    text-align: center;
}

.group-table .rank-1, .group-table .rank-2 {
    font-weight: 700;
    color: var(--gold);
}

.group-table .team-cell {
    color: var(--text);
    font-weight: 500;
}

.group-table .pts {
    color: var(--gold);
    font-weight: 700;
    text-align: center;
}

/* ---- Champion Grid ---- */
.champion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.champion-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.champion-item:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.2);
}

.champion-item:active {
    transform: translateY(-2px);
}

.champion-rank {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.champion-flag {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.champion-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.champion-odds {
    font-size: 11px;
    color: var(--gold);
}

.champion-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.champion-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: width 1s ease;
}

.champion-item.top-3 {
    border-color: rgba(240, 185, 11, 0.3);
    background: rgba(240, 185, 11, 0.05);
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-title-icon {
    margin-right: 8px;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.modal-body {
    padding: 20px 24px 24px;
}

.pricing-card {
    text-align: center;
}

.pricing-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(240, 185, 11, 0.12);
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 20px;
    font-size: 11px;
    color: var(--gold);
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
}

.pricing-feature-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.btn-pay {
    width: 100%;
    padding: 16px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #0a0b12;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.4);
}

.pricing-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ---- 支付二维码区域 ---- */
.pay-qr-section {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.pay-tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.pay-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.pay-tab.active {
    border-color: var(--gold);
    background: rgba(240, 185, 11, 0.08);
    color: var(--gold);
}

.pay-tab-icon {
    margin-right: 4px;
}

.pay-qr-content {
    text-align: center;
}

.pay-qr-box {
    padding: 8px;
}

.pay-qr-img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid var(--border);
}

.pay-qr-img:hover {
    transform: scale(1.05);
}

.pay-qr-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.pay-after-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(240, 185, 11, 0.06);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pay-after-note strong {
    color: var(--gold);
}

/* ---- 激活码输入区域 ---- */
.activate-section {
    margin-top: 12px;
    text-align: center;
}

.activate-divider {
    font-size: 11px;
    color: #555;
    margin-bottom: 8px;
    position: relative;
}
.activate-divider::before,
.activate-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #2a2a3a;
}
.activate-divider::before { left: 0; }
.activate-divider::after { right: 0; }

.activate-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.activate-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.activate-input {
    background: #1e1f2e;
    border: 1px solid #2a2a3a;
    color: #e8e6e3;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    width: 180px;
    text-align: center;
}
.activate-input:focus {
    outline: none;
    border-color: var(--gold);
}

.activate-btn {
    padding: 10px 20px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.activate-btn:hover {
    background: #27ae60;
}

.activate-msg {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-small {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-desc {
        max-width: 100%;
    }
    .hero-stats {
        gap: 16px;
    }
    .hero-stat-value {
        font-size: 22px;
    }
    .countdown-card {
        max-width: 100%;
    }
    .countdown-num {
        font-size: 32px;
    }
    .section {
        padding: 18px;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .vs-divider {
        flex-direction: row;
        padding: 0;
    }
    .match-card {
        padding: 12px 14px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .match-actions {
        width: 100%;
    }
    .btn-predict-sm {
        width: 100%;
        text-align: center;
    }
    .match-teams {
        font-size: 13px;
    }
    .team-name {
        max-width: 80px;
    }
    .result-showdown {
        flex-direction: column;
        gap: 12px;
    }
    .groups-grid {
        grid-template-columns: 1fr;
    }
    .champion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tab-bar {
        overflow-x: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-content {
        padding: 24px 16px;
    }
    .champion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====== 多玩法投注卡片 ====== */
.bet-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.bet-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: all 0.3s;
}
.bet-card:hover {
    border-color: var(--border-glow);
    background: rgba(255,255,255,0.04);
}
.bet-card-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bet-card-body {
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-light);
}
.bet-line {
    padding: 2px 0;
}
.bet-pct {
    display: inline-block;
    background: rgba(240, 185, 11, 0.12);
    color: var(--gold);
    padding: 0 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
}
.bet-rec {
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(240, 185, 11, 0.08);
    border-radius: 6px;
    font-size: 12px;
}
.bet-rec strong {
    color: var(--gold);
}

@media (max-width: 640px) {
    .bet-cards {
        grid-template-columns: 1fr;
    }
}

/* ====== Inline预测结果（比赛卡片下方展开） ====== */
.match-predict-result {
    margin: -1px 0 10px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: rgba(10, 11, 18, 0.6);
    overflow: hidden;
    animation: slide-down 0.3s ease;
}
@keyframes slide-down {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 3000px; }
}
.inline-result {
    padding: 16px;
}
.inline-showdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.inline-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.inline-flag {
    font-size: 22px;
}
.inline-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.inline-name.away {
    text-align: right;
}
.inline-rate {
    font-size: 20px;
    font-weight: 700;
}
.inline-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.inline-vs-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.inline-winner {
    font-size: 15px;
    font-weight: 800;
}
.inline-draw {
    font-size: 11px;
    color: var(--text-muted);
}
.inline-prob-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.03);
}
.inline-analysis {
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-light);
    white-space: pre-wrap;
    padding: 12px;
    background: rgba(10, 11, 18, 0.3);
    border-radius: var(--radius-sm);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

/* 推荐标签醒目 */
.bet-rec {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid rgba(240, 185, 11, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}
.bet-rec strong {
    color: var(--gold);
    font-size: 13px;
}
.bet-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 0;
}
.rec-sep {
    color: rgba(255,255,255,0.15);
    margin: 0 4px;
    font-weight: 300;
}
