/* 方案页面样式 */

/* 方案分类导航 */
.plan-category-nav {
    background: var(--card-bg);
    padding: 12px 15px;
    position: sticky;
    top: 0;
    z-index: 9;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-nav-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    gap: 15px;
    padding-bottom: 5px;
}

.category-nav-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.category-item i {
    font-size: 18px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.category-item span {
    font-weight: 500;
}

.category-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-item:active {
    transform: scale(0.97);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-item.active {
    background-color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    rotate: 45deg;
}

.category-item.active i {
    color: white;
}

/* 修正内容区域内边距，与首页一致 */
.main-content {
    padding: 12px;
}

/* 方案列表区域 - 确保与首页宽度一致 */
.plan-list-section {
    padding: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* 确保方案页面的标题样式与首页一致 */
.plan-list-section .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plan-list-section .section-title h2 {
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding-left: 10px;
    margin: 0;
}

.plan-list-section .section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 方案推荐区域 - 确保与首页宽度一致 */
#planRecommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* 方案卡片样式 */
#planRecommendations .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;
    position: relative;
    cursor: pointer;
    margin-bottom: 0; /* 移除底部边距，使用gap控制间距 */
}

#planRecommendations .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);
}

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

/* 专家信息 */
.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: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ef4444;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    border: none;
    overflow: hidden;
    flex-shrink: 0;
}

/* 专家详情区域 */
.expert-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0; /* 确保内容不会溢出 */
    overflow: hidden; /* 确保内容不溢出 */
}

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

.expert-name {
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin: 0;
    margin-right: 8px;
    flex-shrink: 0;
}

body[data-theme="dark"] .expert-name {
    color: #f3f4f6;
}

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

/* 专家标签样式 - 调整为更接近首页效果 */
.expert-tag {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    height: 16px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

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

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

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

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

/* 专家命中率徽章 */
.expert-rate-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 8px;
    background-color: #f97316;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: auto;
    text-align: center;
}

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

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

/* 专家点评 */
.expert-comment {
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body[data-theme="dark"] .expert-comment {
    color: #f3f4f6;
}

/* 比赛信息样式优化 - 与首页保持一致 */
.match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    position: relative;
    flex-wrap: nowrap;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 8px 12px;
    border: 0;
    box-sizing: border-box;
    width: 100%;
}

/* 比赛类型和时间布局 */
.match-type-time {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 6px;
    min-width: 60px;
}

.match-type {
    padding: 1px 4px;
    border-radius: 4px;
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 500;
    font-size: 9px;
    line-height: 1.2;
}

.match-time {
    font-weight: 500;
    color: #6b7280;
    font-size: 9px;
}

/* 更新比赛队伍容器样式 */
.match-teams {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    padding: 0;
}

.vs {
    margin: 0 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: normal;
    flex-shrink: 0;
}

.team-name {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 50%;
    display: inline-block;
}

body[data-theme="dark"] .match-teams {
    color: #f3f4f6;
}

body[data-theme="dark"] .match-info {
    background-color: rgba(243, 244, 246, 0.1);
}

/* 买按钮容器 */
.buy-button-container {
    margin-left: 6px;
    flex-shrink: 0;
}

/* 购买按钮样式 */
.buy-button {
    font-size: 11px;
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
    min-width: 60px;
    height: 20px;
}

.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: #ef4444;
}

/* 浅色主题适配 */
body[data-theme="light"] .plan-category-nav {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .category-item {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .category-item:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .category-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

body[data-theme="light"] .match-info {
    background-color: #f9fafb;
    border: none;
}

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;
}

/* 移动设备适配 */
@media (max-width: 360px) {
    .category-item {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .category-item i {
        font-size: 16px;
    }
    
    .plan-list-section {
        padding: 0 10px;
    }
    
    .expert-name {
        font-size: 14px;
    }
    
    .expert-tag {
        font-size: 10px;
    }
    
    .match-teams {
        font-size: 12px;
    }
    
    .match-info {
        padding: 6px 10px;
    }
    
    .match-type-time {
        min-width: 56px;
        margin-right: 4px;
    }
    
    .match-type {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .match-time {
        font-size: 9px;
    }
    
    .buy-button {
        padding: 2px 5px;
        font-size: 10px;
        min-width: 55px;
    }
}

@media (max-width: 320px) {
    .category-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .category-item i {
        font-size: 14px;
    }
    
    .expert-avatar {
        width: 35px;
        height: 35px;
    }
    
    .expert-tag {
        padding: 0 4px;
        font-size: 9px;
    }
    
    .expert-comment {
        font-size: 13px;
    }
    
    .match-info {
        padding: 5px 8px;
        gap: 4px;
    }
    
    .match-teams {
        font-size: 11px;
    }
    
    .match-type-time {
        min-width: 50px;
        margin-right: 3px;
    }
    
    .match-type, .match-time {
        font-size: 8px;
    }
    
    .buy-button {
        min-width: 50px;
        height: 18px;
        font-size: 9px;
    }
}

/* 登录弹窗样式 */
.login-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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* 修改其他样式可以根据需要继续添加 */ 