/* 专家专栏页面专有样式 */

/* 整体容器优化 */
.app-container {
    max-width: 100%;
    overflow-x: hidden;
}

.detail-content {
    padding: 15px 12px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 专家头像和信息区域优化 */
.expert-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #f87171);
    border-radius: 4px 4px 0 0;
}

.expert-header-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    width: 100%;
}

.expert-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #4187f7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-right: 12px;
}

.expert-brief {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.expert-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
    width: 100%;
}

.expert-name-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.expert-name-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 4px;
    flex-wrap: nowrap;
    gap: 8px;
}

.expert-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 专家统计数据优化 */
.expert-stats {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.expert-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.expert-stat-divider {
    color: var(--text-muted, rgba(255, 255, 255, 0.3));
    font-size: 12px;
}

.expert-stats .stat-value {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 15px;
}

.expert-rate {
    display: flex;
    align-items: center;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    color: #ef4444;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-left: 6px;
}

.rate-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-right: 2px;
    color: #ef4444;
}

.rate-label {
    font-size: 12px;
    opacity: 0.9;
    color: #ef4444;
}

.follow-button {
    background-color: #f87171;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    flex-shrink: 0;
    height: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.follow-button:hover {
    background-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.follow-button:active {
    transform: translateY(0);
    background-color: #dc2626;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 专家标签样式 */
.expert-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.expert-tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    color: white;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expert-tag-red {
    background-color: #ef4444;
}

.expert-tag-blue {
    background-color: #3b82f6;
}

.expert-tag-purple {
    background-color: #8b5cf6;
}

.expert-tag-green {
    background-color: #10b981;
}

.expert-tag-orange {
    background-color: #f59e0b;
}

/* 近10推荐走势样式优化 */
.expert-trend-container {
    margin-bottom: 12px;
    position: relative;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.trend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0 10px;
}

.trend-label {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    flex: 1;
    font-weight: 500;
}

.trend-left, .trend-right {
    font-size: 11px;
    color: var(--text-light);
    opacity: 0.8;
    width: 24px;
    text-align: center;
}

.trend-items {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
}

.trend-item {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.trend-win {
    background-color: #ef4444;
}

.trend-loss {
    background-color: #22c55e;
}

/* 添加走水样式 */
.trend-draw {
    background-color: #f59e0b;
}

/* 专家介绍样式 */
.expert-description {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.expert-description i {
    color: #f59e0b;
    font-size: 16px;
    flex-shrink: 0;
}

/* 专家方案选项卡 */
.plans-tabs-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.plans-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.plans-tab.active {
    color: var(--text-color);
}

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

.plans-tab i {
    margin-right: 6px;
}

/* 方案内容区域 */
.plans-content {
    display: none;
    padding: 12px 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.plans-content.active {
    display: block;
}

/* 赛事筛选区域 */
.plans-filter-section {
    margin-bottom: 15px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-tags-scroll {
    display: flex;
    overflow-x: auto;
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    white-space: nowrap;
    margin: 0 -2px;
}

.filter-tags-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tag:first-child {
    margin-left: 0;
}

.filter-tag.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.filter-tag:active {
    transform: scale(0.95);
}

/* 方案列表样式优化 */
.plans-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 8px 0;
}

.plan-item {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 14px 14px 0;
    transition: all 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

.plan-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3b82f6, #f87171);
    border-radius: 2px 0 0 2px;
}

.plan-item:active {
    transform: scale(0.98);
    background-color: rgba(0, 0, 0, 0.15);
}

/* 方案标题样式优化 */
.plan-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.plan-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    height: 22px;
    min-width: 40px;
}

.plan-main-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 方案信息行样式优化 */
.plan-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
}

/* 优化match-info区域布局 */
.plan-match-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
    position: relative;
    padding-right: 30px;
}

.league-tag {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    height: 20px;
    display: flex;
    align-items: center;
}

.match-time {
    color: var(--text-light);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.plan-teams-compact {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 100px);
}

.plan-match-info .trend-item {
    position: absolute;
    right: 0;
    margin-right: 0;
    width: 22px;
    height: 22px;
    font-size: 12px;
}

.plan-result-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* 方案底部行样式优化 */
.plan-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
    padding: 12px 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.plan-publish {
    color: var(--text-light);
    font-size: 12px;
    white-space: nowrap;
    flex: 1;
    min-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 14px;
}

.plan-guarantee {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.plan-price {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #F59E0B;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    justify-content: flex-end;
    min-width: 60px;
    padding-right: 14px;
}

.plan-price i {
    color: #F2B342;
    font-size: 14px;
}

/* 加载更多按钮 */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.load-more-button {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-light);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    justify-content: center;
    font-weight: 500;
}

.load-more-button:active {
    transform: scale(0.98);
    background-color: rgba(59, 130, 246, 0.2);
}

.load-more-button i {
    font-size: 14px;
    margin-right: 2px;
}

/* 适配浅色模式 */
body[data-theme="light"] .expert-trend-container {
    background-color: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .expert-stats .stat-value {
    color: var(--primary-color);
}

body[data-theme="light"] .filter-tag {
    background-color: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .filter-tag.active {
    background-color: var(--primary-color);
}

body[data-theme="light"] .plan-item {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .plan-footer-row {
    background-color: rgba(0, 0, 0, 0.02);
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .plans-list {
        gap: 16px;
    }
    
    .plan-item {
        padding: 12px 12px 0;
    }

    .plan-category {
        padding: 2px 8px;
        font-size: 11px;
        height: 20px;
        min-width: 36px;
    }
    
    .plan-main-title {
        font-size: 14px;
    }
    
    .plan-match-row {
        padding: 8px 0;
    }
    
    .plan-match-info {
        gap: 8px;
        padding-right: 26px;
    }
    
    .league-tag {
        padding: 2px 6px;
        font-size: 11px;
        height: 18px;
    }
    
    .match-time {
        font-size: 11px;
    }
    
    .plan-teams-compact {
        font-size: 13px;
        max-width: calc(100% - 90px);
    }
    
    .plan-match-info .trend-item {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .plan-footer-row {
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0;
        padding: 10px 0;
    }
    
    .plan-publish {
        flex: 1;
        font-size: 11px;
        min-width: auto;
        padding-left: 10px;
    }
    
    .plan-guarantee {
        flex: 1;
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .plan-price {
        min-width: 50px;
        padding-right: 10px;
    }
}

@media (max-width: 360px) {
    .plans-list {
        gap: 14px;
    }
    
    .expert-name {
        font-size: 16px;
    }
    
    .expert-rate {
        padding: 2px 6px;
    }
    
    .rate-value {
        font-size: 14px;
    }
    
    .rate-label {
        font-size: 10px;
    }
    
    .follow-button {
        padding: 3px 10px;
        height: 24px;
        font-size: 12px;
    }
    
    .expert-trend-container {
        gap: 6px;
    }
    
    .trend-label {
        font-size: 12px;
    }
    
    .trend-left, .trend-right {
        font-size: 10px;
        width: 22px;
    }
    
    .trend-item {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .plans-tab {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .filter-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .plan-item {
        padding: 10px 10px 0;
    }
    
    .plan-category {
        padding: 2px 6px;
        font-size: 10px;
        height: 18px;
        min-width: 32px;
    }
    
    .plan-main-title {
        font-size: 13px;
    }
    
    .plan-match-info .trend-item {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .plan-footer-row {
        padding: 8px 0;
    }
    
    .plan-guarantee {
        font-size: 11px;
        padding: 2px 4px;
    }
}

@media (max-width: 320px) {
    .plans-list {
        gap: 12px;
    }
    
    .expert-name-container {
        gap: 5px;
    }
    
    .expert-name {
        font-size: 14px;
    }
    
    .expert-rate {
        padding: 1px 5px;
    }
    
    .rate-value {
        font-size: 13px;
    }
    
    .rate-label {
        font-size: 9px;
    }
    
    .follow-button {
        padding: 2px 8px;
        height: 22px;
        font-size: 11px;
    }
    
    .expert-stats {
        font-size: 11px;
        gap: 4px;
    }
    
    .expert-stats .stat-value {
        font-size: 13px;
    }
    
    .expert-trend-container {
        gap: 4px;
    }
    
    .trend-label {
        font-size: 11px;
    }
    
    .trend-left, .trend-right {
        font-size: 9px;
        width: 18px;
    }
    
    .trend-item {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .filter-tag {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .plan-title-row {
        gap: 5px;
    }
    
    .plan-main-title {
        font-size: 12px;
    }
    
    .plan-match-info {
        gap: 5px;
    }
    
    .plan-teams-compact {
        font-size: 12px;
    }
    
    .plan-guarantee {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .plan-item {
        padding: 8px 8px 0;
    }
}

/* 修复浅色模式匹配行边框 */
body[data-theme="light"] .plan-match-row {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* 最大屏幕适配 */
@media screen and (min-width: 768px) {
    .detail-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .expert-card,
    .plans-tabs-section,
    .load-more-container {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 确保样式比recommendation-detail.css优先级更高 */
.expert-card *,
.plans-tabs-section *,
.plans-content *,
.plan-item * {
    box-sizing: border-box;
    max-width: 100%;
} 