/* 全局重置和基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 深色主题变量 */
:root {
    --primary-color: #1e40af;     /* 深蓝色 */
    --primary-light: #3b82f6;     /* 中蓝色 */
    --primary-dark: #1e3a8a;      /* 暗蓝色 */
    --accent-color: #ef4444;      /* 红色强调色 */
    --accent-light: #f87171;      /* 浅红色 */
    --accent-dark: #b91c1c;       /* 深红色 */
    --text-color: #f8fafc;        /* 浅色文本 */
    --text-dark: #e2e8f0;         /* 稍暗文本 */
    --text-light: #94a3b8;        /* 更浅文本 */
    --bg-color: #0c2461;          /* 深蓝色背景 */
    --card-bg: #1e3799;           /* 卡片背景 */
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.15);
    --font-scale: 1;
}

/* 浅色主题变量 */
body[data-theme="light"] {
    --primary-color: #2563eb;     /* 蓝色 */
    --primary-light: #60a5fa;     /* 浅蓝色 */
    --primary-dark: #1d4ed8;      /* 暗蓝色 */
    --accent-color: #ef4444;      /* 红色强调色 */
    --accent-light: #f87171;      /* 浅红色 */
    --accent-dark: #b91c1c;       /* 深红色 */
    --text-color: #1e293b;        /* 深色文本 */
    --text-dark: #334155;         /* 暗文本 */
    --text-light: #64748b;        /* 浅文本 */
    --bg-color: #f8fafc;          /* 更浅的背景色 */
    --card-bg: #ffffff;           /* 白色卡片背景 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 字体大小变体 */
body[data-font-size="normal"] {
    --font-scale: 1;
}

body[data-font-size="large"] {
    --font-scale: 1.1;
}

body[data-font-size="larger"] {
    --font-scale: 1.2;
}

/* 字体大小应用 */
body {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s, color 0.3s;
    overscroll-behavior: none; /* 防止iOS橡皮筋效果 */
    height: 100vh;
    overflow: hidden;
}

.app-container,
.top-header,
.header-top,
.header-menu,
.main-content,
.section-title,
.recommendation-card,
.hot-matches-section,
.match-recommendations,
.loading-container {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 主题切换按钮特殊效果 */
#theme-toggle {
    overflow: hidden;
    position: relative;
}

#theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 0;
}

#theme-toggle:active::before {
    opacity: 0.6;
    transition: opacity 0.1s ease;
}

#theme-toggle i {
    position: relative;
    z-index: 1;
}

/* 日间模式图标样式 */
#theme-toggle .fa-sun {
    color: #eab308; /* 稍微深一点的黄色 */
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

/* 夜间模式图标样式 */
#theme-toggle .fa-moon {
    color: #fde047; /* 黄色调的月亮 */
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
}

a {
    text-decoration: none;
    color: inherit;
}

.app-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* 容器不滚动，内部内容滚动 */
}

/* 顶部导航区样式 */
.top-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

/* 顶部区域 - LOGO和功能按钮 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

/* LOGO样式 */
.logo-container {
    display: flex;
    justify-content: center;
    text-decoration: none;
    padding: 2px 0;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
}

.logo:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.logo:active {
    transform: scale(0.97) translateY(0);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.logo-image {
    max-height: 32px;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* 浅色模式下的LOGO样式 */
body[data-theme="light"] .logo {
    background: var(--primary-color); /* 使用主题蓝色作为背景 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* 添加微妙的渐变效果 */
body[data-theme="light"] .logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(59, 130, 246, 0.3) 0%,
                rgba(37, 99, 235, 0.1) 100%);
    z-index: 1;
}

body[data-theme="light"] .logo:hover {
    background: #1d4ed8; /* 稍深的蓝色 */
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

body[data-theme="light"] .logo:active {
    transform: scale(0.97) translateY(0);
    background: #1e3a8a; /* 更深的蓝色 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .logo-image {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)); /* 添加轻微阴影增加清晰度 */
    position: relative;
    z-index: 2;
    max-height: 32px;
    opacity: 1; /* 确保不透明 */
}

/* 功能按钮样式 */
.function-btns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.function-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    backdrop-filter: blur(2px);
}

.function-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.function-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.function-btn i {
    font-size: 18px;
    color: white;
    transition: all 0.25s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.function-btn:hover i {
    transform: scale(1.1);
}

/* 为不同功能按钮设置不同的高亮颜色 */
#theme-toggle i {
    color: #fde047; /* 黄色调 */
}

#font-size-toggle i {
    color: #ffffff; /* 纯白色 */
}

#login-btn i {
    color: #ffffff; /* 纯白色 */
}

/* 在浅色模式下的颜色调整 */
body[data-theme="light"] .function-btn {
    background: rgba(30, 64, 175, 0.08);
    border-color: rgba(30, 64, 175, 0.15);
}

body[data-theme="light"] .function-btn:hover {
    background: rgba(30, 64, 175, 0.15);
    border-color: rgba(30, 64, 175, 0.25);
}

body[data-theme="light"] .function-btn i {
    color: var(--primary-color);
    text-shadow: none;
}

body[data-theme="light"] #theme-toggle i {
    color: #eab308; /* 稍微深一点的黄色 */
}

/* 黑暗模式中月亮图标的颜色 */
#theme-toggle .fa-moon {
    color: #fde047; /* 黄色调的月亮 */
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
}

/* 日间模式中太阳图标的颜色 */
#theme-toggle .fa-sun {
    color: #eab308; /* 稍微深一点的黄色 */
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.function-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(-5px);
    z-index: 100;
}

.function-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 导航菜单样式 */
.header-menu {
    display: flex;
    justify-content: space-around;
    padding: 8px 5px;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.95), rgba(30, 64, 175, 0.95), rgba(30, 58, 138, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: calc(13.5px * var(--font-scale));
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    text-decoration: none;
    flex: 1;
    text-align: center;
    border-radius: 8px;
    margin: 0 2px;
}

.menu-item i {
    font-size: calc(18px * var(--font-scale));
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.menu-item.active {
    color: var(--accent-light);
    background-color: rgba(30, 58, 138, 0.7);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(255, 255, 255, 0.05);
}

.menu-item.active i {
    transform: translateY(-1px) scale(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--accent-light);
}

.menu-item span {
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.2;
}

.menu-item.active span {
    font-weight: 600;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 1.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-item.active::after {
    width: 40%;
    background-color: var(--accent-light);
}

.menu-item:hover:not(.active) {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-item:active:not(.active) {
    transform: scale(0.97);
    background-color: rgba(255, 255, 255, 0.15);
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    position: relative;
    background-color: var(--bg-color);
}

.main-content::-webkit-scrollbar {
    width: 4px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    z-index: 100;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top: 3px solid var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 13.5px;
}

/* 今日热门推荐部分 */
.hot-recommendations {
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title h2 {
    font-size: calc(16px * var(--font-scale));
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-title h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background-color: var(--accent-color);
    margin-right: 8px;
    border-radius: 1.5px;
}

.more-link {
    color: var(--primary-light);
    font-size: 13.5px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.more-link i {
    margin-left: 3px;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.more-link:hover {
    color: var(--accent-light);
}

.more-link:hover i {
    transform: translateX(2px);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    height: 140px;  /* 减小高度 */
}

.carousel-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.carousel-content {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-expert {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.expert-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
}

.expert-icon i {
    font-size: 12px;
}

.expert-info {
    display: flex;
    margin-bottom: 10px;
    background-color: transparent;
    padding-right: 60px; /* 为徽章腾出空间 */
}

.expert-avatar-name {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.expert-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e74c3c; /* 红色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.expert-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0; /* 确保内容不会溢出 */
}

/* 专家名称和标签一行显示 */
.expert-name-tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.expert-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    margin-right: 2px;
}

/* 专家标签容器 */
.expert-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* 专家标签样式 */
.expert-tag {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    height: 18px;
    line-height: 1;
    white-space: nowrap;
}

/* 标签颜色样式 */
.tag-red {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-orange {
    background-color: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.tag-blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 调整时间信息位置和样式 */
.expert-time {
        font-size: 11px;
    color: #94a3b8;
    display: block;
}

.hit-rate-small {
    font-size: 11px;
    color: var(--accent-light);
    display: inline-block;
    margin-left: 5px;
}

.carousel-description {
    font-size: 13.5px;
    opacity: 0.85;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.carousel-button {
    align-self: flex-start;
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.carousel-button:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.carousel-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.6;
}

.indicator.active {
    width: 16px;
    border-radius: 3px;
    background-color: var(--accent-color);
    opacity: 1;
}

/* 最新比赛推荐部分 */
.latest-matches {
    margin-bottom: 15px;
}

.match-recommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 12px 12px 10px 12px;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.recommendation-card:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* 修改专家命中率徽章，突出显示百分比 */
.expert-rate-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 5px;
    background-color: #f97316; /* 橙色 */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    width: auto;
    text-align: center;
}

.expert-rate-percentage {
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
}

.expert-rate-label {
    color: white;
    font-size: 10px;
    font-weight: normal;
    line-height: 1.2;
}

/* 移除原有的命中率标签样式 */
.expert-rate-badge:after {
    content: none;
}

/* 比赛信息样式优化 */
.match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    position: relative;
    flex-wrap: nowrap;
    background-color: rgba(226, 232, 240, 0.08);
    border-radius: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 减小前缀部分所占空间 */
.match-prefix {
    display: flex;
    align-items: center;
    margin-right: 4px; /* 减小右边距 */
    flex-shrink: 0;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* 更新比赛队伍容器样式 */
.match-teams {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0 4px;
    white-space: nowrap;
    font-size: 14px; /* 减小字体大小 */
    font-weight: 600;
}

/* 购买按钮样式 - 更简约现代 */
.buy-button {
    font-size: 11px; /* 减小字体大小 */
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--accent-light);
    padding: 3px 8px; /* 减小内边距 */
    border-radius: 16px; /* 恢复圆角 */
    margin-left: 2px;
    display: flex;
    align-items: center;
    box-shadow: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
    position: relative;
    flex-shrink: 0;
}

/* 购买按钮悬停效果 */
.buy-button:hover {
    transform: translateY(-1px);
    background-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);
}

.buy-button:active {
    transform: scale(0.97);
    background-color: rgba(239, 68, 68, 0.3);
}

/* 新的金币图标样式 */
.coin-icon {
    margin-right: 4px;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.coin-icon i {
    font-size: 12px;
    color: var(--accent-light);
}

/* 浅色主题适配 */
body[data-theme="light"] .match-info {
    background-color: rgba(226, 232, 240, 0.3); /* 浅色主题背景更明显 */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .buy-button {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

body[data-theme="light"] .buy-button:hover {
    background-color: rgba(239, 68, 68, 0.15);
}

body[data-theme="light"] .coin-icon i {
    color: #ef4444;
}

/* 去掉不再需要的match-prefix浅色主题样式 */
body[data-theme="light"] .match-prefix {
    background-color: transparent;
}

/* 适配移动设备 */
@media (max-width: 360px) {
    .match-info {
        padding: 5px 7px;
    }
    
    .match-prefix {
        margin-right: 4px;
    }
    
    .buy-button {
        padding: 3px 8px;
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .match-info {
        padding: 4px 6px;
    }
    
    .match-prefix {
        margin-right: 3px;
    }
    
    .buy-button {
        padding: 2px 6px;
        font-size: 10px;
    }
}

/* 购买确认对话框样式 */
.buy-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.buy-dialog.show {
    opacity: 1;
    visibility: visible;
}

.buy-dialog-content {
    width: 85%;
    max-width: 320px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.buy-dialog.show .buy-dialog-content {
    transform: scale(1);
}

.buy-dialog-header {
    padding: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.buy-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-dialog {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.close-dialog:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.buy-dialog-body {
    padding: 15px;
}

/* 优化购买弹窗中的项目样式 */
.purchase-item {
    display: flex;
    padding: 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
    position: relative;
}

/* 专家图标 */
.purchase-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.purchase-item .item-icon i {
    font-size: 16px;
    color: white;
}

/* 价格显示调整为右上角 */
.item-price {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.coin-icon {
    margin-right: 2px;
    color: #f59e0b;
}

.price-value {
    font-weight: 600;
    color: #f59e0b;
    font-size: 15px;
}

/* 专家信息区域 */
.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 专家名称容器样式优化 */
.item-name-container {
    display: flex;
    align-items: center;
    padding-right: 50px; /* 为价格让出空间 */
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    max-width: 68%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6px;
}

/* 比赛信息行布局优化 */
.match-info-row {
    display: flex;
    width: 100%;
}

/* 比赛标签和时间容器优化 */
.match-label-time {
    display: flex;
    flex-direction: column;
    min-width: 60px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 队伍容器优化 */
.teams-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

/* 队伍行样式优化 */
.match-teams-row {
    padding-top: 0;
}

.hot-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 4px;
}

/* 队伍名称样式优化 */
.home-team,
.away-team {
    font-size: 14px; /* 字体大小从16px减小到14px */
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%; /* 限制最大宽度 */
}

.home-team {
    text-align: right;
    padding-right: 5px;
}

.away-team {
    text-align: left;
    padding-left: 5px;
}

/* 购买对话框中的专家标签 */
.purchase-tags {
    display: flex;
    flex-wrap: wrap !important; /* 强制换行 */
    gap: 6px; /* 增加标签之间的间距 */
    max-width: 100%; /* 确保不超出容器 */
    margin: 6px 0 8px;
}

/* 专家标签样式优化 */
.purchase-item .expert-tag {
    font-size: 10px;
    padding: 2px 6px;
    height: auto !important; /* 强制高度自适应内容 */
    margin: 0 0 2px 0; /* 提供垂直间距 */
    white-space: nowrap; /* 防止标签内文字换行 */
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    line-height: 1.2;
}

/* 专家标签的包装容器 */
.expert-tags-wrapper {
    display: block;
    width: 100%;
    margin: 8px 0;
}

/* 购买弹窗中专家名称行样式 */
.purchase-item .expert-name-row {
    width: 100%;
    padding-right: 40px; /* 为价格腾出空间 */
    margin-bottom: 5px;
}

/* 购买弹窗中的项目名称样式 */
.purchase-item .item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

/* 响应式适配 */
@media (max-width: 360px) {
    .purchase-tags {
        gap: 4px;
        margin-top: 4px;
        margin-bottom: 6px;
    }
    
    .purchase-item .expert-tag {
        font-size: 9px;
        padding: 1px 5px;
    }
    
    .purchase-item .item-name {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .purchase-tags {
        gap: 3px;
        margin-top: 3px;
        margin-bottom: 5px;
    }
    
    .purchase-item .expert-tag {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .purchase-item .item-name {
        font-size: 13px;
    }
}

.buy-dialog-footer {
    padding: 12px 15px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .cancel-button,
    .confirm-button {
    padding: 8px 16px;
    border-radius: 6px;
        font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
        min-width: 80px;
    text-align: center;
}

.cancel-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirm-button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.confirm-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(217, 119, 6, 0.4);
}

.confirm-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.2);
}

/* 热门比赛部分整体容器 */
.hot-matches-section {
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 标题栏样式优化 */
.hot-matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hot-match-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
}

.hot-match-title i {
    margin-right: 6px;
    color: #f59e0b;
    text-shadow: 0 0 5px rgba(245, 158, 11, 0.5); /* 添加光晕效果 */
}

/* 导航样式优化 */
.hot-matches-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.nav-arrow:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 添加悬停阴影 */
}

.nav-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.match-indicator {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 比赛容器样式优化 */
.hot-matches-container {
    position: relative;
    overflow: hidden;
    height: 84px; /* 稍微增加一点高度 */
    background-color: var(--card-bg);
}

.hot-matches-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.hot-match-item {
    flex: 0 0 100%;
    height: 100%;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--card-bg);
    position: relative;
}

.hot-match-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.hot-match-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px; /* 增加行间间距 */
}

/* 信息行样式优化 */
.match-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.match-league-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-league {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1); /* 添加微妙背景 */
    padding: 2px 8px;
    border-radius: 4px;
}

.match-datetime {
    font-size: 12px;
    color: var(--text-light);
}

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

.match-countdown {
    font-size: 13px;
    color: var(--accent-light);
    font-weight: 500;
    position: relative;
    padding-left: 16px; /* 为图标留空间 */
}

.match-countdown::before {
    content: '\f017'; /* 时钟图标的Unicode */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

/* 比赛状态样式 */
.match-status-live {
    color: #10b981; /* 绿色 */
    font-weight: 600;
    position: relative;
    padding-left: 16px;
}

.match-status-live::before {
    content: '\f144'; /* 播放图标的Unicode */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #10b981;
}

/* 专家数量样式微调 */
.match-experts-count {
    font-size: 12px;
    color: #ffffff;
    background-color: var(--accent-color);
    padding: 3px 8px 3px 6px; /* 左边内边距稍微减少 */
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.match-experts-count i {
    margin-right: 3px;
    font-size: 10px;
}

.match-experts-count small {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.9;
    margin-left: 1px;
}

/* 盘口样式优化 */
.match-handicap {
    font-size: 12px; /* 减小盘口字体 */
    color: var(--primary-light);
    margin: 0 4px; /* 调整边距 */
    padding: 2px 6px; /* 减小内边距 */
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid rgba(59, 130, 246, 0.2);
    min-width: 32px; /* 确保盘口有最小宽度 */
    text-align: center; /* 确保内容居中 */
}

/* 专家评论样式 */
.expert-comment {
        font-size: calc(14px * var(--font-scale));
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多显示2行 */
    -webkit-box-orient: vertical;
}

/* 比赛类型和时间样式 */
.match-type-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-light);
}

.match-type {
    color: var(--text-light);
}

.match-time {
    color: var(--text-light);
}

/* 用户登录弹窗样式 */
.login-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-dialog.show {
    opacity: 1;
    visibility: visible;
}

.login-dialog-content {
    width: 90%;
    max-width: 350px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-dialog.show .login-dialog-content {
    transform: scale(1);
}

.login-dialog-header {
    padding: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.login-dialog-body {
    padding: 15px;
}

/* 登录选项卡样式 */
.login-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.login-tab.active {
    color: var(--accent-color);
    font-weight: 600;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 1px;
}

/* 登录表单样式 */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* 模式切换链接样式 */
.switch-mode-link {
    display: block;
    font-size: 13px;
    color: var(--primary-light);
    margin-top: 8px;
    text-align: right;
    transition: color 0.3s ease;
}

.switch-mode-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* 验证码输入组样式 */
.code-group {
    margin-bottom: 15px;
}

.code-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.code-input-group .form-input {
    flex: 1;
    min-width: 0; /* 确保不会溢出 */
}

.get-code-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    height: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 90px;
}

.get-code-btn:hover:not(:disabled) {
    background-color: var(--primary-light);
}

.get-code-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.get-code-btn:disabled {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

/* 表单选项样式 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: var(--text-light);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 6px;
}

.agreement-link,
.forgot-password {
    color: var(--primary-light);
    transition: color 0.3s ease;
}

.agreement-link:hover,
.forgot-password:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* 登录按钮样式 */
.login-button {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.login-button-phone{
    text-align: center;
    display: block;
    margin-top: 5px;
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(to right, rgb(6, 103, 1), rgb(3, 191, 72));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 社交登录样式 */
.login-dialog-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.social-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.social-btn i {
    font-size: 20px;
}

.social-btn.wechat {
    background-color: #07C160;
}

.social-btn.qq {
    background-color: #12B7F5;
}

.social-btn.weibo {
    background-color: #E6162D;
}

/* 登录消息样式 */
.login-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.login-toast i {
    margin-right: 8px;
}

.login-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 浅色主题适配 */
body[data-theme="light"] .form-input {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

body[data-theme="light"] .form-input:focus {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 360px) {
    .login-dialog-content {
        width: 95%;
    }
    
    .login-tab {
        font-size: 14px;
    }
    
    .form-input,
    .get-code-btn {
        font-size: 13px;
    }
    
    .form-options {
        font-size: 12px;
    }
    
    .login-button {
        font-size: 15px;
        padding: 10px 0;
    }
    
    .social-btn {
        width: 36px;
        height: 36px;
    }
    
    .social-btn i {
        font-size: 18px;
    }
    
    .get-code-btn {
        min-width: 80px;
        padding: 0 8px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .get-code-btn {
        min-width: 75px;
        padding: 0 6px;
        font-size: 11px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .switch-mode-link {
        font-size: 12px;
    }
}

/* 比赛类型和时间样式 */
.match-type-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-light);
}

/* 适配小屏幕 */
@media (max-width: 360px) {
    .home-team,
    .away-team {
        font-size: 13px; /* 更小屏幕下进一步减小字体 */
    }
    
    .match-handicap {
        font-size: 11px;
        padding: 1px 5px;
        margin: 0 3px;
    }
}

@media (max-width: 320px) {
    .home-team,
    .away-team {
        font-size: 12px; /* 最小屏幕下的字体大小 */
    }
    
    .match-handicap {
        font-size: 10px;
        padding: 1px 4px;
        margin: 0 2px;
    }
}

/* 适配屏幕尺寸 */
@media (max-width: 360px) {
    .match-teams {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .match-teams {
        font-size: 12px;
    }
}

/* 用户协议弹窗样式 */
.agreement-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.agreement-dialog-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.agreement-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.agreement-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.agreement-dialog-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.agreement-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.agreement-text h4 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #1e40af;
}

.agreement-text h5 {
    font-size: 15px;
    margin: 15px 0 8px;
    color: #333;
}

.agreement-text p {
    margin: 0 0 12px;
}

.agreement-dialog-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.agree-button {
    background-color: #1e40af;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.agree-button:hover {
    background-color: #1e3a8a;
}

/* 暗色模式下的样式 */
.dark-mode .agreement-dialog-content {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

.dark-mode .agreement-dialog-header {
    border-bottom: 1px solid #333;
}

.dark-mode .agreement-dialog-header h3 {
    color: #eee;
}

.dark-mode .agreement-text {
    color: #ddd;
}

.dark-mode .agreement-text h4 {
    color: #4d80ef;
}

.dark-mode .agreement-text h5 {
    color: #ccc;
}

.dark-mode .agreement-dialog-footer {
    border-top: 1px solid #333;
}

/* 忘记密码弹窗样式 */
.forgot-password-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.forgot-password-dialog.show {
    opacity: 1;
    visibility: visible;
}

.forgot-password-content {
    width: 90%;
    max-width: 350px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forgot-password-dialog.show .forgot-password-content {
    transform: scale(1);
}

.forgot-password-header {
    padding: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forgot-password-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.forgot-password-body {
    padding: 15px;
}

.forgot-step {
    display: none;
}

.forgot-step.active {
    display: block;
}

.next-step-btn,
.submit-btn,
.back-to-login-btn {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

.next-step-btn:hover,
.submit-btn:hover,
.back-to-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.next-step-btn:active,
.submit-btn:active,
.back-to-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.password-strength {
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-light);
}

.strength-bar-bg {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 5px;
}

.strength-bar {
    height: 100%;
    width: 0;
    background-color: #ef4444;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 20px auto;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.success-icon i {
    font-size: 30px;
    color: white;
}

/* 浅色主题适配 */
body[data-theme="light"] .forgot-password-content {
    background-color: white;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .forgot-password-body {
    color: var(--text-color);
}

body[data-theme="light"] .strength-bar-bg {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media (max-width: 360px) {
    .forgot-password-content {
        width: 95%;
    }
    
    .next-step-btn,
    .submit-btn,
    .back-to-login-btn {
        font-size: 15px;
        padding: 10px 0;
    }
}

@media (max-width: 320px) {
    .next-step-btn,
    .submit-btn,
    .back-to-login-btn {
        font-size: 14px;
        padding: 8px 0;
    }
}
  
  