/* 卡片详情页面样式 */

/* 返回链接 */
.back-link {
    margin-bottom: 20px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* 卡片详情容器 */
.card-detail-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
}

.card-detail-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=200&q=80');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transform: rotate(45deg) translate(50px, -100px);
    z-index: 0;
}

/* 卡片详情头部 */
.card-detail-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8f8f8;
    position: relative;
}

.user-profile {
    display: flex;
    gap: 25px;
    align-items: center;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-large {
    flex: 1;
}

.user-name-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-name-status h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: #f0f0f0;
    color: var(--light-text);
}

.status-badge.active {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-badge.active i {
    font-size: 0.7rem;
}

.user-stats-large {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
}

.stat-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.user-actions-large {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 卡片详情内容 */
.card-detail-body {
    padding: 25px;
}

.detail-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
}

.detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-section h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 10px;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.detail-section h3 i {
    color: var(--primary-color);
}

.detail-content {
    padding-left: 10px;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px;
}

.detail-item {
    flex: 1;
    min-width: 200px;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 5px;
    display: block;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.detail-message {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
    color: var(--light-text);
    margin-top: 20px;
}

/* 游戏数据统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.stat-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}

/* 图表容器 */
.chart-container {
    margin-bottom: 30px;
}

.chart-container h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.chart-placeholder {
    height: 200px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    height: 150px;
    gap: 15px;
    justify-content: space-around;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scaleY(1.05);
}

.chart-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.chart-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-color) transparent transparent transparent;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 英雄统计 */
.hero-stats h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.hero-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-info {
    flex: 1;
}

.hero-name {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 5px;
    display: block;
}

.hero-progress {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.progress-value {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 卡片详情底部 */
.card-detail-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background-color: #f8f8f8;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* 推荐玩家 */
.recommended-players {
    margin-bottom: 40px;
}

.recommended-players h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommended-players h3 i {
    color: var(--primary-color);
}

.player-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.player-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.player-info {
    flex: 1;
}

.player-info h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.player-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.player-stats span {
    font-size: 0.9rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.player-stats i {
    color: var(--primary-color);
}

.player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* 中式风格装饰 */
.main-content::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 50px;
    width: 200px;
    height: 200px;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=200&q=80');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transform: rotate(15deg);
    z-index: -1;
}

.main-content::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 150px;
    height: 150px;
    background-image: url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-1.2.1&auto=format&fit=crop&w=150&q=80');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transform: rotate(-15deg);
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .user-profile {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-avatar-large {
        margin-bottom: 15px;
    }
    
    .user-actions-large {
        flex-direction: row;
        margin-top: 15px;
        width: 100%;
    }
    
    .user-actions-large button {
        flex: 1;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .detail-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .player-cards {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions button {
        width: 100%;
    }
} 