/* 推荐详情页面样式 */

/* 页面基础样式 */
.detail-header {
    background: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.back-button,
.share-button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 16px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

/* 主要内容区域 */
.detail-content {
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 100px;
    height: calc(100vh - 60px);
}

/* 卡片通用样式 */
.expert-card,
.match-card,
.recommendation-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);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 专家信息卡片 - 优化设计 */
.expert-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    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: 10px;
}

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

.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: 6px;
    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: 18px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expert-plans {
    font-size: 13px;
    color: var(--secondary-text);
    white-space: nowrap;
}

.expert-rate {
    display: flex;
    align-items: center;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    color: #ef4444;
    flex-shrink: 0;
    white-space: nowrap;
}

.rate-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-right: 4px;
}

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

.follow-button {
    background-color: #f87171;
    color: white;
    border: none;
    padding: 4px 10px;
    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;
}

.expert-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expert-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

.expert-tag-red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

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

.expert-tag-purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.expert-tag-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.expert-tag-orange {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.expert-tag-teal {
    background-color: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.expert-tag-pink {
    background-color: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.expert-tag-gray {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.expert-description {
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
}

.expert-description i {
    color: #f87171;
    margin-right: 6px;
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* 比赛信息卡片 - 紧凑型设计 */
.match-card {
    padding: 12px;
    margin-bottom: 12px;
}

.match-info-compact {
    display: flex;
    flex-direction: column;
}

.match-league-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.match-league-info {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.league-logo {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.match-bet-type {
    font-size: 12px;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 8px;
    display: none; /* 隐藏让球标识 */
}

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

.match-teams-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 5px;
}

.team-name-left, .team-name-right {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.team-name-left {
    text-align: right;
    padding-right: 10px;
}

.team-name-right {
    text-align: left;
    padding-left: 10px;
}

.vs-compact {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    min-width: 30px;
    text-align: center;
}

/* 推荐内容卡片 - 优化滚动和显示 */
.recommendation-card {
    padding: 16px;
    margin-bottom: 15px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-left: 3px solid var(--accent-color);
    overflow: visible;
    position: relative;
}

.recommendation-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 14px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.recommendation-title i {
    margin-right: 8px;
    color: var(--accent-color);
    font-size: 18px;
}

.recommendation-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    overflow: visible;
    max-height: none;
}

.visible-content {
    margin-bottom: 15px;
}

.hidden-content-wrapper {
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    background-color: rgba(245, 158, 11, 0.05);
    overflow: hidden;
    margin-bottom: 15px;
}

.hidden-content-label {
    background-color: #F2B342;
    padding: 8px 0;
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.locked-content {
    position: relative;
    padding: 15px;
}

.blur-box {
    border-radius: 8px;
    overflow: visible;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: none;
}

.blur-content {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    opacity: 0.8;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    max-height: none;
    overflow: visible;
}

[data-theme="light"] .blur-content {
    color: rgba(0, 0, 0, 0.8);
}

.unlock-button {
    background-color: #F2594B;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(242, 89, 75, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unlock-button i {
    margin-right: 6px;
}

.unlock-button:active {
    transform: scale(0.98);
}

.content-disclaimer {
    text-align: center;
    color: var(--secondary-text);
    font-size: 12px;
    opacity: 0.8;
    margin-top: 10px;
}

.recommendation-content p {
    margin-bottom: 12px;
    text-align: justify;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 500;
    background-color: rgba(249, 115, 22, 0.08);
    padding: 2px 0;
}

.recommendation-tags {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* 购买按钮区域 */
.buy-action {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-top: 1px solid var(--border-color);
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 13px;
    color: var(--secondary-text);
}

.price-value {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.price-value i {
    font-size: 16px;
    margin-right: 4px;
}

.buy-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.buy-button:hover {
    background-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.buy-button:active {
    transform: scale(0.95);
}

/* 内容底部边距，确保不被购买按钮遮挡 */
.content-bottom-padding {
    height: 150px;
}

/* 响应式调整 */
@media screen and (max-width: 380px) {
    .expert-card {
        padding: 12px;
    }
    
    .expert-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .expert-name {
        font-size: 16px;
        margin-right: 0;
    }
    
    .expert-plans {
        font-size: 12px;
    }
    
    .expert-rate {
        padding: 2px 8px;
    }
    
    .expert-rate .rate-value {
        font-size: 14px;
    }
    
    .expert-rate .rate-label {
        font-size: 11px;
    }
    
    .follow-button {
        font-size: 12px;
        padding: 3px 8px;
        height: 24px;
    }
    
    .expert-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .recommendation-content {
        font-size: 14.5px;
        line-height: 1.55;
    }
    
    .lock-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .lock-icon i {
        font-size: 20px;
    }
    
    .purchase-tip {
        font-size: 15px;
    }
    
    .purchase-tip span {
        font-size: 13px;
    }
    
    .match-teams-compact {
        padding: 6px 0;
    }
    
    .team-name-left, .team-name-right {
        font-size: 15px;
    }
    
    .team-name-left {
        padding-right: 8px;
    }
    
    .team-name-right {
        padding-left: 8px;
    }
    
    .vs-compact {
        font-size: 15px;
        min-width: 26px;
    }
    
    .match-bet-type {
        font-size: 11px;
        padding: 1px 5px;
        margin-left: 6px;
    }
    
    .hidden-content-label {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .locked-content {
        padding: 12px;
    }
    
    .blur-content {
        padding: 8px;
    }
    
    .unlock-button {
        padding: 10px;
        font-size: 15px;
        margin: 12px 0;
    }
}

/* 适配暗色/亮色主题 */
[data-theme="light"] .content-mask {
    background: linear-gradient(rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.9) 100%);
}

[data-theme="light"] .purchase-tip {
    color: var(--text-color);
}

/* 购买成功提示 */
.purchase-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 40px;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    display: none;
}

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

.purchase-success {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.purchase-success i {
    margin-right: 8px;
    color: #10b981;
}

/* 按钮动画效果 */
.follow-button:active {
    transform: scale(0.95);
}

/* 移动设备触摸优化 */
@media (hover: none) {
    .follow-button:active {
        background-color: #f97316;
        transform: scale(0.95);
    }
    
    .buy-button:active {
        background-color: #f97316;
        transform: scale(0.95);
    }
    
    .back-button:active,
    .share-button:active {
        background-color: rgba(255, 255, 255, 0.25);
        transform: scale(0.95);
    }
    
    .expert-card, .match-card, .recommendation-card {
        -webkit-tap-highlight-color: transparent;
    }
}

/* 更多响应式调整 */
@media screen and (max-width: 360px) {
    .expert-primary-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .expert-rate-badge {
        margin-left: 0;
        margin-top: 5px;
        align-self: flex-start;
    }
    
    .match-teams {
        padding: 5px 0;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .vs-text {
        font-size: 16px;
    }
}

/* 修复iPhone SE等小屏设备的布局 */
@media screen and (max-width: 320px) {
    .detail-content {
        padding: 10px;
    }
    
    .expert-card, .match-card, .recommendation-card {
        padding: 12px;
    }
    
    .expert-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .expert-name {
        font-size: 15px;
    }
    
    .expert-stat {
        font-size: 11px;
    }
    
    .team-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .team-name {
        font-size: 14px;
    }
}

/* 超窄屏幕的特别优化 */
@media screen and (max-width: 300px) {
    .expert-avatar {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .expert-name-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .expert-name {
        margin-bottom: 4px;
        margin-right: 0;
    }
    
    .follow-button {
        font-size: 10px;
        padding: 2px 5px;
        height: 20px;
    }
    
    .expert-tag {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .expert-tags-container {
        gap: 4px;
    }
    
    .expert-rate {
        margin-bottom: 5px;
    }
    
    .follow-button {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .expert-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    .follow-button:active {
        transform: scale(0.95);
        background-color: #ef4444;
    }
    
    .expert-tag:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
    
    .buy-button:active {
        background-color: #f97316;
        transform: scale(0.97);
    }
    
    .cancel-button:active {
        background-color: var(--border-color);
    }
    
    .confirm-button:active {
        transform: scale(0.97);
    }
}

@media screen and (max-width: 320px) {
    .match-teams-compact {
        font-size: 15px;
    }
    
    .vs-compact {
        font-size: 14px;
        width: 30px;
    }
} 