/* ============================================
   世界杯直播平台 - 多皮肤样式系统
   支持: default(默认红金), dark(暗黑), blue(蓝白), green(清新绿), purple(紫金)
   ============================================ */

/* CSS 变量 - 默认主题 */
:root {
    /* 主色调 */
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #ff6b6b;
    
    /* 辅助色 */
    --secondary: #f39c12;
    --secondary-dark: #d68910;
    
    /* 背景色 */
    --bg-primary: #f5f6fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --bg-tab: #ffffff;
    
    /* 文字色 */
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --text-white: #ffffff;
    
    /* 边框色 */
    --border-color: #e9ecef;
    
    /* 功能色 */
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;
    
    /* 过渡 */
    --transition: all 0.3s ease;
}

/* 深色主题 - Dark */
[data-theme="dark"] {
    --primary: #ff6b6b;
    --primary-dark: #ee5a5a;
    --primary-light: #ff8787;
    
    --secondary: #feca57;
    
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1e2746;
    --bg-header: linear-gradient(135deg, #1e2746 0%, #16213e 100%);
    --bg-tab: #1e2746;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-light: #606060;
    --text-white: #ffffff;
    
    --border-color: #2d3a5a;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

/* 蓝白主题 - Blue */
[data-theme="blue"] {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    
    --secondary: #1abc9c;
    
    --bg-primary: #ecf0f3;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --bg-tab: #ffffff;
    
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #bdc3c7;
    --text-white: #ffffff;
    
    --border-color: #dfe6e9;
    
    --success: #1abc9c;
    --danger: #e74c3c;
}

/* 清新绿主题 - Green */
[data-theme="green"] {
    --primary: #27ae60;
    --primary-dark: #229954;
    --primary-light: #58d68d;
    
    --secondary: #f1c40f;
    
    --bg-primary: #f0fdf4;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    --bg-tab: #ffffff;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #cbd5e0;
    --text-white: #ffffff;
    
    --border-color: #c6f6d5;
    
    --success: #27ae60;
    --danger: #e74c3c;
}

/* 紫金主题 - Purple */
[data-theme="purple"] {
    --primary: #9b59b6;
    --primary-dark: #8e44ad;
    --primary-light: #bb8fce;
    
    --secondary: #f39c12;
    
    --bg-primary: #f8f4fc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    --bg-tab: #ffffff;
    
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #bdc3c7;
    --text-white: #ffffff;
    
    --border-color: #e8daef;
    
    --success: #27ae60;
    --danger: #e74c3c;
}

/* ============================================
   基础重置与全局样式
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
}

/* ============================================
   页面容器
   ============================================ */

.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
    flex: 1;
    padding-bottom: 60px;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* ============================================
   头部样式
   ============================================ */

.app-header {
    background: var(--bg-header);
    color: var(--text-white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.app-header h1 {
    font-size: 18px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 8px;
}

/* Logo样式 */
.header-logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-logo img {
    max-height: 36px;
    max-width: 140px;
    object-fit: contain;
}

.theme-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* 皮肤选择器 */
.theme-picker {
    position: absolute;
    top: 60px;
    right: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    z-index: 200;
    display: none;
    min-width: 160px;
}

.theme-picker.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.theme-picker h4 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.theme-option:hover {
    background: var(--bg-primary);
}

.theme-option.active {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.theme-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 4px;
    box-shadow: var(--shadow-sm);
}

.theme-option span {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 主题颜色 */
.theme-default .theme-color { background: linear-gradient(135deg, #e74c3c, #f39c12); }
.theme-dark .theme-color { background: linear-gradient(135deg, #1e2746, #ff6b6b); }
.theme-blue .theme-color { background: linear-gradient(135deg, #3498db, #1abc9c); }
.theme-green .theme-color { background: linear-gradient(135deg, #27ae60, #f1c40f); }
.theme-purple .theme-color { background: linear-gradient(135deg, #9b59b6, #f39c12); }

/* ============================================
   轮播广告
   ============================================ */

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 10px 14px 0;
    perspective: 1000px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.banner-slider .slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slider .slide {
    min-width: 100%;
    height: 130px;
    position: relative;
    overflow: hidden;
}

.banner-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease-out;
}

/* 当前幻灯片图片缓慢缩放(Ken Burns效果) */
.banner-slider .slide.active img {
    transform: scale(1.08);
}

.banner-slider .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.banner-slider .slide-overlay h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.banner-slider .slide-overlay p {
    font-size: 12px;
    opacity: 0.9;
}

/* 轮播指示器 - 进度条样式 */
.banner-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 3px;
    padding: 0;
    z-index: 5;
}

.banner-dots .dot {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.banner-dots .dot.active {
    background: rgba(255,255,255,0.3);
}

.banner-dots .dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    animation: dotProgress 4s linear forwards;
    border-radius: 0 2px 2px 0;
}

@keyframes dotProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 更多玩法卡片动效 */
.live-section a[href] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.live-section a[href]:active {
    transform: scale(0.95);
}

/* 赛事卡片入场动画 */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-match-card,
.wc-preview-card {
    animation: slideUp 0.4s ease-out backwards;
}
.home-match-card:nth-child(1) { animation-delay: 0s; }
.home-match-card:nth-child(2) { animation-delay: 0.08s; }
.home-match-card:nth-child(3) { animation-delay: 0.16s; }
.home-match-card:nth-child(4) { animation-delay: 0.24s; }

/* ============================================
   直播赛事卡片
   ============================================ */

.live-section {
    padding: 16px;
}

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

.section-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title .live-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.more-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
}

.live-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid var(--danger);
}

.live-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.live-card .teams {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 12px;
}

.live-card .team {
    text-align: center;
    flex: 1;
}

.live-card .team-logo {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.live-card .team-name {
    font-size: 13px;
    font-weight: 600;
}

.live-card .vs {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 300;
}

.live-card .score {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.live-card .match-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.live-card .match-time {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}

.status-tag.live {
    background: var(--danger);
    color: white;
    animation: pulse 1.5s infinite;
}

.status-tag.upcoming {
    background: var(--info);
    color: white;
}

.status-tag.finished {
    background: var(--text-light);
    color: white;
}

/* ============================================
   赛事列表
   ============================================ */

.match-list {
    padding: 0 16px 16px;
}

.match-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.match-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.match-card:hover {
    box-shadow: var(--shadow-md);
}

.match-card .teams-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.match-card .team-logo {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.match-card .match-detail {
    flex: 1;
}

.match-card .match-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.match-card .match-time-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.match-card .match-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    text-align: right;
}

/* ============================================
   底部导航
   ============================================ */

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    border-top: 1px solid var(--border-color);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.tab-item .icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.tab-item span {
    font-size: 10px;
}

.tab-item.active {
    color: var(--primary);
}

.tab-item.active .icon {
    transform: scale(1.1);
}

/* ============================================
   用户中心
   ============================================ */

.user-header {
    background: var(--bg-header);
    padding: 30px 16px;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.user-info .user-detail {
    flex: 1;
}

.user-info .username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-info .coins {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info .coins::before {
    content: '💰';
}

.user-menu {
    padding: 16px;
}

.menu-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.menu-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.menu-icon {
    font-size: 20px;
}

.menu-item span:nth-child(2) {
    flex: 1;
    font-size: 14px;
}

.menu-item .arrow {
    color: var(--text-light);
}

/* ============================================
   模态框
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 340px;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
}

/* 表单元素 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

/* ============================================
   空状态
   ============================================ */

.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty p {
    font-size: 14px;
}

/* ============================================
   Toast 提示
   ============================================ */

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   加载动画
   ============================================ */

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   竞猜相关
   ============================================ */

.guess-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

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

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

.guess-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.guess-option {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.guess-option:hover {
    border-color: var(--primary);
}

.guess-option.selected {
    border-color: var(--primary);
    background: rgba(231, 76, 60, 0.1);
}

.guess-option.win {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.1);
}

.guess-option.lose {
    border-color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
    opacity: 0.6;
}

.guess-option h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.guess-option p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   直播页样式
   ============================================ */

.video-container {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.match-live-info {
    color: white;
}

.match-live-info .teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.match-live-info .team {
    text-align: center;
}

.match-live-info .team-logo {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 4px;
}

.match-live-info .team-name {
    font-size: 12px;
}

.match-live-info .score {
    font-size: 24px;
    font-weight: 700;
}

.match-live-info .match-time {
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
}

/* 弹幕 */
.danmu-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    overflow: hidden;
    pointer-events: none;
}

.danmu-item {
    position: absolute;
    white-space: nowrap;
    color: white;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    animation: danmuMove 8s linear forwards;
}

@keyframes danmuMove {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

/* ============================================
   任务中心 & 排行榜
   ============================================ */

.task-list, .rank-list {
    padding: 16px;
}

.task-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.task-card.completed {
    opacity: 0.6;
}

.task-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.task-info {
    flex: 1;
}

.task-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.task-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.task-reward {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
}

.task-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.task-btn.active {
    background: var(--primary);
    color: white;
}

.task-btn:disabled {
    background: var(--bg-primary);
    color: var(--text-light);
    cursor: not-allowed;
}

/* 排行榜 */
.rank-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.rank-item.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: white;
}

.rank-item.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333;
}

.rank-item.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa06d 100%);
    color: white;
}

.rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.rank-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-size: 14px;
    font-weight: 600;
}

.rank-value {
    font-size: 12px;
    opacity: 0.8;
}

.rank-medal {
    font-size: 24px;
}

/* 邀请页面 */
.invite-content {
    padding: 20px 16px;
}

.invite-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.invite-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.invite-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.invite-card p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.invite-code {
    background: rgba(255,255,255,0.2);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.btn-share {
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share:hover {
    transform: scale(1.05);
}

/* 登录/注册按钮样式 */
.login-btns {
    display: flex;
    gap: 12px;
    padding: 16px;
}

.btn-login, .btn-register {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login {
    background: var(--primary);
    color: white;
}

.btn-register {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-register:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.login-tip {
    text-align: center;
    padding: 20px 16px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 竞猜表单 */
.guess-form {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.guess-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-primary);
}

/* 视频播放页 */
.video-lines {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    overflow-x: auto;
}

.line-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.line-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.video-actions {
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: none;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.action-btn span {
    font-size: 14px;
}

.match-detail {
    padding: 16px;
    background: var(--bg-secondary);
}

.match-detail h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.detail-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.danmu-input {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.danmu-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
}

.back-home {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--bg-secondary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* 赢/输状态 */
.match-score.win {
    color: var(--success);
}

.match-score.lose {
    color: var(--danger);
}

/* 投注明细 */
.guess-section {
    padding: 16px;
    background: var(--bg-secondary);
}

.guess-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

/* 过滤器标签 */
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* 返回按钮 */
.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    cursor: pointer;
}

.page-header {
    background: var(--bg-header);
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.page-header h1 {
    font-size: 18px;
}

/* ============================================
   响应式优化
   ============================================ */

@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .live-card .team-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .live-card .score {
        font-size: 24px;
    }
}

/* 暗色主题下的额外优化 */
[data-theme="dark"] .form-input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .menu-item,
[data-theme="dark"] .match-card,
[data-theme="dark"] .task-card,
[data-theme="dark"] .rank-item {
    background: var(--bg-card);
}

/* 深色模式下的视频播放器 */
[data-theme="dark"] .video-container {
    background: #000;
}

/* ============================================
   新增优化样式 v2.0
   ============================================ */

/* 下拉刷新指示器 */
.pull-refresh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.pull-refresh.active {
    transform: translateY(0);
}

.pull-refresh .refresh-icon {
    font-size: 18px;
    animation: bounce 0.5s infinite;
}

.pull-refresh.refreshing .refresh-icon {
    animation: spin 1s infinite linear;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

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

/* 骨架屏加载动画 */
.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #2d3a5a 25%, #3d4a6a 50%, #2d3a5a 75%);
    background-size: 200% 100%;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-row {
    display: flex;
    align-items: center;
}

.skeleton-circle {
    border-radius: 50%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.empty-state .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state .empty-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.empty-tip {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 赛事卡片优化 */
.match-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.match-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.match-card.live-match {
    border-left: 4px solid var(--danger);
    background: linear-gradient(to right, rgba(231, 76, 60, 0.05), transparent);
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.live {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.status-badge.upcoming {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
}

.status-badge.finished {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
}

/* 倒计时样式 */
.countdown {
    font-size: 12px;
    color: var(--info);
    font-weight: 600;
    font-family: monospace;
    background: rgba(52, 152, 219, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

/* 通知徽章 */
.notice-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 600;
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 页面切换动画 */
.page {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.page:not(.active) {
    display: none;
}

.page.active {
    animation: fadeIn 0.3s ease;
}

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

/* 按钮点击反馈 */
.btn:active,
.match-card:active,
.menu-item:active,
.tab-item:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Tab导航优化 */
.tab-bar {
    background: var(--bg-tab);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.tab-item {
    transition: all 0.3s ease;
    position: relative;
}

.tab-item.active {
    color: var(--primary);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Toast动画优化 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 登录/注册弹窗动画 */
.modal {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    animation: modalIn 0.3s ease;
}

.modal.show {
    display: flex;
}

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

.modal-content {
    animation: slideUp 0.3s ease;
}

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

/* 暗色主题优化 */
[data-theme="dark"] .match-card,
[data-theme="dark"] .skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .toast {
    background: rgba(255,255,255,0.9);
    color: #333;
}

[data-theme="dark"] .modal-content {
    background: var(--bg-secondary);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-input {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-input::placeholder {
    color: var(--text-secondary);
}

/* 暗色主题下的Tab栏 */
[data-theme="dark"] .tab-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-left: 8px;
    vertical-align: middle;
}

/* ============================================
   赛程页面优化 v2.0
   ============================================ */

/* 阶段筛选 */
.stage-filter {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stage-filter::-webkit-scrollbar {
    display: none;
}

/* ========== 美化全局滚动条 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.2);
    border-radius: 3px;
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(231, 76, 60, 0.45);
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* 深色主题滚动条 */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.25);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.45);
}

/* Firefox */
:root {
    scrollbar-width: thin;
    scrollbar-color: rgba(231, 76, 60, 0.2) transparent;
}
[data-theme="dark"] {
    scrollbar-color: rgba(255, 107, 107, 0.25) transparent;
}

.stage-btn {
    flex: 1;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: none;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stage-btn:active {
    transform: scale(0.95);
}

.stage-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.stage-btn .stage-icon {
    font-size: 18px;
}

/* 状态筛选 */
.status-filter {
    display: flex;
    padding: 10px 16px;
    gap: 8px;
    background: var(--bg-primary);
}

.status-filter .filter-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-filter .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 赛程容器 */
.schedule-container {
    padding: 16px;
    min-height: 60vh;
}

/* 加载动画 */
.schedule-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.schedule-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 12px;
}

/* 日期分组 */
.date-group {
    margin-bottom: 24px;
}

.date-group:last-child {
    margin-bottom: 0;
}

.date-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.date-header .date-day {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.date-header .date-weekday {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 2px 8px;
    background: var(--bg-primary);
    border-radius: 10px;
}

.date-header .match-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
}

/* 赛程卡片 */
.schedule-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-card:active {
    transform: scale(0.98);
}

.schedule-card:hover {
    box-shadow: var(--shadow-md);
}

.schedule-card.live {
    border-left: 4px solid var(--danger);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, var(--bg-card) 30%);
}

.schedule-card.upcoming {
    border-left: 4px solid var(--info);
}

.schedule-card.finished {
    border-left: 4px solid var(--success);
    opacity: 0.85;
}

/* 卡片头部：阶段+状态 */
.schedule-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stage-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.stage-tag.group {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.stage-tag.knockout {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.stage-tag.quarter {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}

.stage-tag.semi {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.stage-tag.final {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), rgba(230, 126, 34, 0.3));
    color: #e67e22;
    font-weight: 600;
}

.stage-tag.third {
    background: rgba(192, 57, 43, 0.15);
    color: #c0392b;
}

/* 直播状态 */
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: var(--danger);
    color: white;
    animation: pulse 1.5s infinite;
}

.live-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

/* 球队对阵 */
.match-teams-schedule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.team-schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 35%;
}

.team-schedule.winner .team-logo-wrap {
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(243, 156, 18, 0.4);
}

.team-logo-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 6px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-logo-placeholder {
    font-size: 24px;
}

.team-schedule .team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-schedule.away {
    text-align: center;
}

/* 比分区域 */
.match-score-schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    min-width: 80px;
}

.match-score-schedule .score {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 2px;
}

.match-score-schedule .vs {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.match-score-schedule .status-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 比赛信息 */
.match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}

.match-info .time-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-info .venue-info {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 快捷操作按钮 */
.schedule-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-card:hover .schedule-actions {
    opacity: 1;
}

.action-btn-schedule {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn-schedule:active {
    transform: scale(0.9);
}

.action-btn-schedule.primary {
    background: var(--primary);
    color: white;
}

/* 小组赛积分预览 */
.group-preview {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 12px;
}

.group-preview-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-standings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.standing-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.standing-rank {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-light);
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.standing-item:nth-child(1) .standing-rank,
.standing-item:nth-child(2) .standing-rank {
    background: var(--success);
}

.standing-team {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

/* 空状态 */
.schedule-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.schedule-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.schedule-empty .empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.schedule-empty .empty-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 赛程时间线 */
.timeline-line {
    position: relative;
    padding-left: 24px;
}

.timeline-line::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--border-color));
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-secondary);
    z-index: 1;
}

.timeline-dot.live {
    background: var(--danger);
    animation: pulse 1.5s infinite;
}

.timeline-dot.past {
    background: var(--text-light);
}

/* 暗色主题优化 */
[data-theme="dark"] .schedule-card {
    border-color: var(--border-color);
}

[data-theme="dark"] .stage-btn {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .group-preview {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .match-info {
    border-top-color: rgba(255,255,255,0.1);
}

/* 响应式优化 */
@media (max-width: 375px) {
    .team-logo-wrap {
        width: 40px;
        height: 40px;
    }
    
    .match-score-schedule .score {
        font-size: 24px;
    }
    
    .team-schedule .team-name {
        font-size: 12px;
    }
}

/* ============================================
   世界杯2026专版样式
   ============================================ */

/* 世界杯头部 */
.worldcup-header {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #1565c0 100%);
    color: #fff;
    margin: -16px -16px 16px;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
}

.worldcup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.worldcup-header .wc-badge {
    font-size: 48px;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.worldcup-header h2 {
    font-size: 24px;
    margin: 0 0 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.worldcup-header .wc-date {
    font-size: 14px;
    opacity: 0.9;
    margin: 4px 0;
}

.worldcup-header .wc-host {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* 世界杯统计 */
.worldcup-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

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

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 世界杯筛选器 */
.worldcup-filter {
    margin-bottom: 16px;
}

/* 世界杯赛事卡片 */
.worldcup-match-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.worldcup-match-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.worldcup-match-card.live::before {
    background: #e74c3c;
    animation: livePulse 1s infinite;
}

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

.worldcup-match-card.finished::before {
    background: #27ae60;
}

.worldcup-match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.worldcup-match-card:active {
    transform: scale(0.98);
}

/* 阶段标签 */
.match-stage-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.match-stage-badge.group {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.match-stage-badge.final16 {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.match-stage-badge.quarter {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}

.match-stage-badge.semi {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.match-stage-badge.third {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.match-stage-badge.final {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff;
}

/* 直播状态 */
.live-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.live-status.pulse {
    animation: pulse 1.5s infinite;
}

/* 倒计时徽章 */
.countdown-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 8px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* 队伍行 */
.teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
}

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

.team-block.away {
    text-align: center;
}

.team-block.winner .team-name-cn {
    font-weight: 700;
    color: var(--primary);
}

.team-flag {
    font-size: 32px;
    margin-bottom: 4px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-match-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-primary);
    margin: 0 auto 4px;
    display: block;
    flex-shrink: 0;
}

.team-name-cn {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.team-name-en {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

/* 比分块 */
.score-block {
    text-align: center;
    min-width: 80px;
}

.score-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.time-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-label {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    margin-top: 2px;
}

/* 场馆信息 */
.match-info-row {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.match-info-row .venue {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 暗色主题世界杯样式 */
[data-theme="dark"] .worldcup-header {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}

[data-theme="dark"] .worldcup-match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .match-info-row {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .worldcup-stats {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* 响应式优化 */
@media (max-width: 375px) {
    .worldcup-header h2 {
        font-size: 20px;
    }
    
    .teams-row {
        flex-wrap: wrap;
    }
    
    .team-block {
        flex: 0 0 35%;
    }
    
    .score-block {
        flex: 0 0 30%;
        order: -1;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .team-flag {
        font-size: 24px;
    }
    
    .score-text {
        font-size: 20px;
    }
}

/* ============================================
   首页倒计时卡片 & 小标签
   ============================================ */

/* 开幕倒计时卡片 */
.live-countdown-card {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #1565c0 100%);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.live-countdown-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.countdown-header {
    font-size: 16px;
    margin-bottom: 12px;
    position: relative;
}

.countdown-icon {
    font-size: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.countdown-timer {
    position: relative;
    margin: 16px 0;
}

.cd-block {
    display: inline-block;
    text-align: center;
    margin: 0 2px;
}

.cd-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cd-label {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.cd-sep {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    opacity: 0.6;
    vertical-align: top;
    margin-top: 4px;
}

.cd-started {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    animation: pulse 1.5s infinite;
}

.countdown-date {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 8px;
    position: relative;
}

.countdown-link {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    position: relative;
    transition: var(--transition);
}

.countdown-link:hover {
    background: rgba(255,255,255,0.3);
}

/* 阶段小标签 */
.stage-tag-small {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    margin-right: 4px;
}

/* 国旗小标签 */
.team-flag-small {
    font-size: 20px;
    margin-right: 4px;
    vertical-align: middle;
}

.match-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-primary);
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

.team-name-short {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    vertical-align: middle;
}

/* 首页赛事卡片优化 */
.match-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.match-card:active {
    transform: scale(0.98);
}

.match-card .match-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.match-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-card .team {
    flex: 1;
    text-align: center;
}

.match-card .match-score {
    min-width: 60px;
    text-align: center;
}

.match-card .match-score .vs {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.match-card .match-score .score {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.match-card .guess-btn {
    position: absolute;
    right: 12px;
    bottom: 8px;
    padding: 2px 8px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
}

/* 暗色主题 */
[data-theme="dark"] .live-countdown-card {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

[data-theme="dark"] .stage-tag-small {
    background: rgba(52, 152, 219, 0.25);
}

/* ============================================
   竞猜页 V2 样式
   ============================================ */

/* 竞猜头部 */
.guess-header-bar {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1565c0 100%);
    color: #fff;
    padding: 20px 16px 24px;
    position: relative;
    overflow: hidden;
}

.guess-header-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.guess-header-content {
    position: relative;
    margin-bottom: 16px;
}

.guess-header-content h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.guess-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

.guess-stats-row {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 8px;
    position: relative;
    backdrop-filter: blur(10px);
}

.gs-item {
    text-align: center;
    flex: 1;
}

.gs-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.gs-label {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    margin-top: 2px;
}

/* 竞猜分类Tab */
.guess-tabs {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.guess-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.guess-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.guess-tab:active {
    transform: scale(0.96);
}

/* 竞猜列表容器 */
.guess-list-container {
    padding: 12px 16px 80px;
}

/* 骨架屏 */
.guess-skeleton .gs-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

/* 竞猜卡片V2 */
.guess-card-v2 {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guess-card-v2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.guess-card-v2.active::before {
    background: var(--danger);
    animation: livePulse 1.5s infinite;
}

.guess-card-v2.settled::before {
    background: var(--success);
}

.guess-card-v2:active {
    transform: scale(0.98);
}

/* 卡片头部 */
.gc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gc-stage {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.gc-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
}

.gc-status.live {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.gc-status.done {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

.gc-status.pending {
    background: rgba(230, 126, 34, 0.12);
    color: #e67e22;
}
.gc-status.closed {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

/* 封盘卡片样式 */
.guess-card-v2.pan {
    opacity: 0.7;
}
.guess-card-v2.pan .gc-opt {
    pointer-events: none;
    filter: grayscale(0.5);
}

/* 封盘倒计时 */
.gc-countdown {
    font-size: 11px;
    color: #e67e22;
    font-weight: 600;
    animation: gc-countdown-pulse 1.5s ease-in-out infinite;
}
@keyframes gc-countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.gc-match-countdown {
    font-size: 11px;
    color: #3498db;
    font-weight: 600;
    background: rgba(52, 152, 219, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 快速投注按钮 */
.quick-bet-btn:hover {
    background: var(--primary) !important;
    color: #fff;
    border-color: var(--primary) !important;
}

/* 多玩法按钮 */
.gc-extra-plays {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.gc-play-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}
.gc-play-ttg {
    color: #e67e22;
    border-color: #e67e22;
}
.gc-play-ttg:hover {
    background: #e67e22;
    color: #fff;
}
.gc-play-crs {
    color: #9b59b6;
    border-color: #9b59b6;
}
.gc-play-crs:hover {
    background: #9b59b6;
    color: #fff;
}

/* 球队对阵 */
.gc-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

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

.gc-flag {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-primary);
    display: block;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.gc-team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    max-width: 90px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-vs {
    min-width: 60px;
    text-align: center;
    padding: 0 8px;
}

.gc-vs-text {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
}

.gc-bet-cost {
    display: block;
    font-size: 11px;
    color: var(--secondary);
    margin-top: 4px;
    font-weight: 600;
}

/* 结果 */
.gc-result {
    text-align: center;
    padding: 8px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
}

/* 我的投注标签（已结束卡片） */
.gc-my-bets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    justify-content: center;
}
.gc-bet-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
}
.gc-bet-tag.won {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}
.gc-bet-tag.lost {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* 投注选项 */
.gc-options {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.gc-opt {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    cursor: default;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gc-opt.bettable {
    cursor: pointer;
}

.gc-opt.bettable:active {
    transform: scale(0.95);
}

.gc-opt.bettable:hover {
    border-color: var(--primary);
    background: rgba(231, 76, 60, 0.05);
}

.gc-opt.bettable:active {
    border-color: var(--primary);
    background: rgba(231, 76, 60, 0.15);
}

.gc-opt.selected {
    border-color: var(--primary);
    background: rgba(231, 76, 60, 0.12);
}

.gc-opt-check {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    z-index: 1;
}

.gc-opt-pct {
    font-size: 10px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.gc-opt.result-win {
    border-color: var(--success) !important;
    background: rgba(39, 174, 96, 0.1) !important;
}

.gc-opt.result-win .gc-opt-odds {
    color: var(--success);
}

.gc-total-bet {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 500;
}

.gc-opt:disabled {
    opacity: 0.65;
}

.gc-opt-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.gc-opt-odds {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.gc-opt-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.4;
    transition: width 0.5s ease;
}

/* 卡片底部 */
.gc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.gc-tip {
    color: var(--primary);
    font-weight: 500;
}

/* 空状态 */
.guess-empty {
    text-align: center;
    padding: 50px 20px;
}

.guess-empty-icon {
    font-size: 56px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.guess-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.guess-empty-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.guess-empty-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* 投注确认弹窗 */
.bet-confirm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.bet-confirm-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 280px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.bet-confirm-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.bet-confirm-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bet-confirm-box strong {
    color: var(--primary);
}

.bcb-detail {
    margin-bottom: 20px;
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 12px;
}

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

.bcb-row span {
    color: var(--text-secondary);
}

.bcb-row strong {
    font-weight: 600;
}

.bcb-win-row {
    border-top: 1px dashed var(--border-color);
    margin-top: 4px;
    padding-top: 10px;
}

.bet-confirm-btns {
    display: flex;
    gap: 10px;
}

.bcb-cancel, .bcb-confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bcb-cancel {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.bcb-confirm {
    background: var(--primary);
    color: #fff;
}

.bcb-confirm:active {
    transform: scale(0.95);
}

/* 暗色主题竞猜 */
[data-theme="dark"] .guess-header-bar {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

[data-theme="dark"] .guess-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .gc-opt {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .bet-confirm-box {
    background: var(--bg-secondary);
}

/* ============================================
   用户页 V2 样式
   ============================================ */

.user-header-v2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 28px 16px 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.user-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.user-info-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    position: relative;
}

.user-avatar-wrap {
    position: relative;
}

.avatar-v2 {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.4);
    object-fit: cover;
    background: rgba(255,255,255,0.15);
}

.user-level-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.user-detail-v2 {
    flex: 1;
}

.username-v2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-id-v2 {
    font-size: 12px;
    opacity: 0.7;
}

/* 用户统计网格 */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
}

.us-card {
    text-align: center;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 4px;
    backdrop-filter: blur(10px);
}

.us-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.us-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.us-label {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 2px;
}

/* 用户内容区 */
.user-content {
    padding: 8px 0 20px;
}

/* 快捷操作 - 旧版保留兼容 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 20px;
}

/* ========== 用户页 小方块网格 ========== */
.user-grid-section {
    margin-bottom: 16px;
    padding: 0 12px;
}

.user-grid-title {
    font-size: 12px;
    color: var(--text-light, #999);
    font-weight: 600;
    padding: 0 4px 8px;
    letter-spacing: 0.5px;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.user-grid.ug-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.ug-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 6px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.ug-card:active {
    transform: scale(0.93);
}

.ug-card.ug-sm {
    padding: 12px 4px 10px;
    min-height: 64px;
    border-radius: 12px;
    gap: 4px;
}

.ug-icon {
    font-size: 26px;
    line-height: 1;
}

.ug-sm .ug-icon {
    font-size: 22px;
}

.ug-text {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.ug-sm .ug-text {
    font-size: 10px;
}

.ug-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    background: #e74c3c;
    color: #fff;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    animation: pulse-tag 1.5s ease-in-out infinite;
}

@keyframes pulse-tag {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 方块配色 - 渐变背景 */
.ug-red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}
.ug-gold {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 15px rgba(243,156,18,0.3);
}
.ug-orange {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}
.ug-blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}
.ug-purple {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 4px 15px rgba(155,89,182,0.3);
}
.ug-cyan {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    box-shadow: 0 4px 15px rgba(26,188,156,0.3);
}
.ug-green {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 15px rgba(46,204,113,0.3);
}
.ug-indigo {
    background: linear-gradient(135deg, #6c5ce7 0%, #5b4cdb 100%);
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}
.ug-teal {
    background: linear-gradient(135deg, #00b894 0%, #00a381 100%);
    box-shadow: 0 4px 15px rgba(0,184,148,0.3);
}
.ug-amber {
    background: linear-gradient(135deg, #fdcb6e 0%, #f0b429 100%);
    box-shadow: 0 4px 15px rgba(253,203,110,0.3);
    color: #333 !important;
}
.ug-amber .ug-text { text-shadow: none; color: #333; }
.ug-violet {
    background: linear-gradient(135deg, #a29bfe 0%, #7c6df0 100%);
    box-shadow: 0 4px 15px rgba(162,155,254,0.3);
}
.ug-lime {
    background: linear-gradient(135deg, #badc58 0%, #6ab04c 100%);
    box-shadow: 0 4px 15px rgba(106,176,76,0.3);
    color: #333 !important;
}
.ug-lime .ug-text { text-shadow: none; color: #333; }

.ug-logout {
    background: linear-gradient(135deg, #636e72 0%, #4a5568 100%);
    box-shadow: 0 4px 15px rgba(99,110,114,0.2);
}

/* "更多"小方块柔和配色 */
.ug-gold-sm {
    background: linear-gradient(135deg, #f0932b 0%, #d68910 100%);
    box-shadow: 0 3px 10px rgba(240,147,43,0.25);
}
.ug-cyan-sm {
    background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
    box-shadow: 0 3px 10px rgba(0,206,201,0.25);
}
.ug-green-sm {
    background: linear-gradient(135deg, #55efc4 0%, #2ecc71 100%);
    box-shadow: 0 3px 10px rgba(85,239,196,0.25);
    color: #1a3a2a !important;
}
.ug-green-sm .ug-text { text-shadow: none; color: #1a3a2a; }
.ug-indigo-sm {
    background: linear-gradient(135deg, #6c5ce7 0%, #5f27cd 100%);
    box-shadow: 0 3px 10px rgba(108,92,231,0.25);
}

[data-theme="dark"] .ug-green-sm {
    background: linear-gradient(135deg, #2ecc71 0%, #1fa855 100%);
    color: #fff !important;
}
[data-theme="dark"] .ug-green-sm .ug-text { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* 深色主题适配 */
[data-theme="dark"] .ug-amber {
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #fff !important;
}
[data-theme="dark"] .ug-amber .ug-text { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
[data-theme="dark"] .ug-lime {
    background: linear-gradient(135deg, #5a9e3e 0%, #3d7a2a 100%);
    color: #fff !important;
}
[data-theme="dark"] .ug-lime .ug-text { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.qa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12px;
    transition: all 0.3s ease;
}

.qa-item:active {
    transform: scale(0.94);
}

.qa-icon {
    font-size: 24px;
}

/* 菜单组 */
.menu-group {
    margin-bottom: 16px;
}

.menu-group-title {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    padding: 8px 16px 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.menu-item-v2:first-of-type {
    border-top: 1px solid var(--border-color);
}

.menu-item-v2:active {
    background: var(--bg-primary);
}

.mi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mi-icon.blue { background: rgba(52, 152, 219, 0.12); }
.mi-icon.green { background: rgba(39, 174, 96, 0.12); }
.mi-icon.purple { background: rgba(155, 89, 182, 0.12); }
.mi-icon.red { background: rgba(231, 76, 60, 0.12); }

.mi-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.mi-badge {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 600;
    background: rgba(243, 156, 18, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.mi-arrow {
    color: var(--text-light);
    font-size: 18px;
}

/* 登录推广 */
.login-promo {
    text-align: center;
    padding: 30px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 0 16px 20px;
    box-shadow: var(--shadow-sm);
}

.promo-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.login-promo h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-promo p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.promo-list {
    list-style: none;
    text-align: left;
    padding: 0;
}

.promo-list li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.promo-list li:last-child {
    border-bottom: none;
}

.promo-list strong {
    color: var(--primary);
}

/* 登录按钮V2 */
.login-btns-v2 {
    display: flex;
    gap: 12px;
    padding: 0 16px;
}

.btn-login-v2, .btn-register-v2 {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-v2 {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-register-v2 {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-login-v2:active {
    transform: scale(0.96);
}

.btn-register-v2:active {
    transform: scale(0.96);
    border-color: var(--primary);
}

/* 暗色主题用户页 */
[data-theme="dark"] .user-header-v2 {
    background: linear-gradient(135deg, #1e2746 0%, #16213e 100%);
}

[data-theme="dark"] .qa-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .menu-item-v2 {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .login-promo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .promo-list li {
    border-color: var(--border-color);
}

/* ============================================
   投注记录卡片 V2
   ============================================ */

.bet-card-v2 {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bet-card-v2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.bet-card-v2.pending::before { background: var(--info); }
.bet-card-v2.win::before { background: var(--success); }
.bet-card-v2.lose::before { background: var(--text-light); }
.bet-card-v2.refund::before { background: var(--secondary); }

.bet-card-v2.win {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.06), var(--bg-card) 40%);
}

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

.bcv-match {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.bcv-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
}

.bcv-status.pending { background: rgba(52,152,219,0.12); color: var(--info); }
.bcv-status.win { background: rgba(39,174,96,0.12); color: var(--success); }
.bcv-status.lose { background: rgba(149,165,166,0.12); color: var(--text-secondary); }
.bcv-status.refund { background: rgba(243,156,18,0.12); color: var(--secondary); }

.bcv-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bcv-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bcv-opt-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.bcv-opt-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.bcv-opt-odds {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
}

.bcv-amounts {
    text-align: right;
}

.bcv-bet-amount {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.bcv-win-amount {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
}

.bcv-potential-win {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--info);
}

.bcv-result {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}

/* 暗色主题投注卡片 */
[data-theme="dark"] .bet-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .bet-card-v2.win {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), var(--bg-card) 40%);
}

/* ============================================
   首页赛事卡片（紧凑版）
   ============================================ */

.home-match-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.home-match-card:active {
    transform: scale(0.98);
}

.hmc-stage {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.hmc-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hmc-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hmc-flag {
    font-size: 22px;
    line-height: 1;
}

.hmc-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-primary);
    flex-shrink: 0;
}

.hmc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmc-center {
    min-width: 60px;
    text-align: center;
    padding: 0 8px;
}

.hmc-live {
    display: inline-block;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    animation: pulse 1.5s infinite;
}

.hmc-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.hmc-vs {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.hmc-time {
    text-align: center;
    margin-top: 6px;
}

.hm-countdown {
    display: inline-block;
    font-size: 11px;
    color: var(--info);
    background: rgba(52, 152, 219, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.hm-countdown.hm-soon {
    color: var(--danger);
    background: rgba(231, 76, 60, 0.08);
}

.hm-date {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 世界杯预告卡 */
.wc-preview-card {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.wc-preview-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.wcp-icon {
    font-size: 36px;
    position: relative;
}

.wcp-info {
    flex: 1;
    position: relative;
}

.wcp-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wcp-info p {
    font-size: 12px;
    opacity: 0.8;
}

.wcp-link {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.wcp-link:active {
    transform: scale(0.95);
}

/* 暗色主题 */
[data-theme="dark"] .home-match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .wc-preview-card {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

/* ============================================
   客服聊天组件
   ============================================ */

/* 浮窗按钮 */
.chat-float-btn {
    position: fixed;
    bottom: 90px;
    right: 15px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
}

.chat-float-btn:active {
    transform: scale(0.9);
}

.chat-icon {
    font-size: 26px;
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f44336;
    color: #fff;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: 600;
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 聊天窗口 */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 15px;
    width: 320px;
    height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.chat-widget-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header-icon {
    font-size: 22px;
}

.chat-header-title {
    font-size: 16px;
    font-weight: 600;
}

.chat-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.chat-widget-body {
    flex: 1;
    overflow: hidden;
    background: #f5f7fa;
}

/* 未登录提示 */
.chat-not-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.chat-not-login-icon {
    font-size: 50px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.chat-not-login p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.chat-login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-login-btn:active {
    transform: scale(0.95);
}

/* 消息列表 */
.chat-messages-area {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.chat-message-item {
    display: flex;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

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

.chat-message-item.user {
    flex-direction: row-reverse;
}

.chat-message-item.service {
    flex-direction: row;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-message-item.service .chat-message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-message-content {
    max-width: 70%;
    margin: 0 8px;
}

.chat-message-bubble {
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.chat-message-item.user .chat-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message-item.service .chat-message-bubble {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chat-message-time {
    font-size: 10px;
    color: #bbb;
    margin-top: 4px;
}

.chat-message-item.user .chat-message-time {
    text-align: right;
}

.chat-message-item.service .chat-message-time {
    text-align: left;
}

/* 聊天输入 */
.chat-widget-footer {
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.chat-widget-footer .chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-widget-footer .chat-input:focus {
    border-color: #667eea;
}

.chat-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* 消息时间分割线 */
.chat-time-divider {
    text-align: center;
    margin: 15px 0;
    font-size: 11px;
    color: #999;
}

.chat-time-divider span {
    background: #f5f7fa;
    padding: 3px 10px;
    border-radius: 10px;
}

/* 空消息提示 */
.chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.chat-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.3;
}

/* 暗色主题 */
[data-theme="dark"] .chat-widget {
    background: #1e1e2e;
}

[data-theme="dark"] .chat-widget-body {
    background: #181825;
}

[data-theme="dark"] .chat-widget-footer {
    background: #1e1e2e;
    border-color: #313244;
}

[data-theme="dark"] .chat-widget-footer .chat-input {
    background: #313244;
    border-color: #45475a;
    color: #cdd6f4;
}

[data-theme="dark"] .chat-message-item.user .chat-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

[data-theme="dark"] .chat-message-item.service .chat-message-bubble {
    background: #313244;
    color: #cdd6f4;
}

/* 响应式 */
@media (max-width: 380px) {
    .chat-widget {
        width: calc(100% - 30px);
        right: 15px;
        left: 15px;
    }
}
