/* ========== 明星介绍页 - 时间线布局 ========== */

/* 明星英雄卡片 */
.star-hero-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    text-align: center;
    max-width: 600px;
    margin: 24px auto;
}
.star-hero-card .star-photo-lg {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: 0 4px 20px rgba(239, 37, 95, 0.3);
    margin-bottom: 14px;
    background: #e8ecf1;
}
.star-hero-card h2 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}
.star-hero-card .star-bio {
    font-size: var(--font-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto 14px;
}
.star-hero-card .star-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.star-hero-card .star-stat {
    text-align: center;
}
.star-hero-card .star-stat .stat-num {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.star-hero-card .star-stat .stat-label {
    font-size: var(--font-xs);
    color: #999;
    margin-top: 4px;
}

/* 垂直时间线 */
.timeline-section {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 16px;
}
.timeline-section h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-dark);
}
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-teal));
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    position: relative;
}
.timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 30px);
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 30px);
}
.timeline-item .timeline-dot {
    position: absolute;
    left: 50%;
    top: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translateX(-50%);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--color-primary);
    z-index: 2;
}
.timeline-item .timeline-year {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #3d2a00;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    white-space: nowrap;
}
.timeline-item .timeline-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    flex: 1;
    transition: var(--transition-fast);
}
.timeline-item .timeline-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #d4f0ee;
}
.timeline-item .timeline-card h4 {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}
.timeline-item .timeline-card p {
    font-size: var(--font-xs);
    color: #888;
    line-height: 1.5;
}
.timeline-item .timeline-card .timeline-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-bottom: 8px;
    background: #e8ecf1;
}

/* 作品集轮播 */
.filmography-section {
    margin: 32px 0;
}
.filmography-section h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 14px;
    padding-left: 14px;
    position: relative;
}
.filmography-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 3px;
}
.filmography-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 0;
}
.filmography-carousel::-webkit-scrollbar {
    display: none;
}
.filmography-item {
    flex-shrink: 0;
    width: 160px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
}
.filmography-item .filmography-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #e8ecf1;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}
.filmography-item:hover .filmography-poster {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}
.filmography-item .filmography-title {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--color-text);
    margin-top: 6px;
    text-align: center;
    line-height: 1.3;
}
.filmography-item .filmography-year {
    font-size: 10px;
    color: #aaa;
    text-align: center;
}

/* 标签页切换 */
.tab-container {
    margin: 28px 0;
}
.tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 16px;
}
.tab-nav-item {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 600;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-fast);
}
.tab-nav-item:hover {
    color: var(--color-primary);
}
.tab-nav-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* 分隔线 */
.star-divider {
    max-width: 200px;
    margin: 40px auto;
    text-align: center;
    position: relative;
    height: 20px;
}
.star-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--color-border);
}
.star-divider::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg);
    padding: 0 12px;
    color: var(--color-primary);
    font-size: 10px;
}

/* 响应式 */
@media (max-width: 599px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
        padding-right: 0;
    }
    .timeline-item .timeline-dot {
        left: 20px;
    }
    .timeline-item .timeline-year {
        left: 20px;
        top: -8px;
        transform: translateX(-50%);
    }
    .star-hero-card {
        padding: 20px 16px;
    }
    .star-hero-card .star-photo-lg {
        width: 120px;
        height: 120px;
    }
    .filmography-item {
        width: 130px;
    }
}