/* 51动漫排行榜页面样式 - 13285168675.com */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --anime-purple: #9c88ff;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --text-muted: #95a5a6;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 35px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--anime-purple));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --gradient-gold: linear-gradient(45deg, #ffd700, #ffed4a);
    --gradient-silver: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    --gradient-bronze: linear-gradient(45deg, #cd7f32, #d4a574);
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.anime-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}

/* 头部样式 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-link {
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.register-btn {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
}

/* 主内容 */
.main-content {
    margin-top: 80px;
}

.ranking-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.ranking-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.3rem;
}

.chart-tab {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chart-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.time-filters {
    display: flex;
    gap: 0.5rem;
}

.time-filter {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-filter:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.time-filter.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* 排行榜展示 */
.top-rankings {
    background: white;
    padding: 3rem 0;
}

.podium-display {
    margin-bottom: 3rem;
}

.rank-podium {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.podium-item {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    transition: all 0.3s ease;
}

.podium-item:hover {
    transform: translateY(-10px);
}

.podium-item.first {
    background: var(--gradient-gold);
    color: var(--text-dark);
    transform: scale(1.1);
    z-index: 3;
}

.podium-item.second {
    background: var(--gradient-silver);
    color: var(--text-dark);
    z-index: 2;
}

.podium-item.third {
    background: var(--gradient-bronze);
    color: var(--text-dark);
    z-index: 1;
}

.crown-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.podium-image {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.podium-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.podium-stats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.champion-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-gold);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.ranking-list {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 1rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 60px 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rank-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.position {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.rank-thumb {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rank-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.score {
    color: var(--warning-color);
    font-weight: 600;
}

.trend {
    font-weight: 600;
}

.trend.up { color: var(--success-color); }
.trend.down { color: var(--danger-color); }
.trend.stable { color: var(--text-muted); }

.category {
    color: var(--text-muted);
}

.rank-stats {
    text-align: right;
    font-size: 0.9rem;
}

.view-count {
    color: var(--text-dark);
    font-weight: 600;
}

.growth {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* 热门讨论 */
.trending-discussions {
    background: var(--bg-secondary);
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.discussion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.discussion-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.discussion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.discussion-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    align-self: flex-start;
}

.discussion-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.discussion-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.latest-reply {
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reply-user {
    color: var(--primary-color);
    font-weight: 600;
}

.reply-preview {
    color: var(--text-dark);
}

.reply-time {
    float: right;
}

/* 数据分析 */
.ranking-analysis {
    background: white;
    padding: 3rem 0;
}

.analysis-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.chart-container {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.preference-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    gap: 1rem;
    align-items: center;
}

.bar-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.bar-track {
    height: 20px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 2s ease;
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shine 3s infinite;
}

.bar-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.trending-metrics {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.metrics-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-card {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateX(10px);
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.metric-card.rising .metric-icon {
    color: var(--success-color);
}

.metric-card.stable .metric-icon {
    color: var(--info-color);
}

.metric-card.falling .metric-icon {
    color: var(--danger-color);
}

/* 用户评价 */
.user-reviews {
    background: var(--bg-secondary);
    padding: 3rem 0;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid var(--warning-color);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.reviewer-level {
    color: var(--warning-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.review-rating {
    color: var(--warning-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-content {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.2rem 0.6rem;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 底部样式 */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--text-light);
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
}

.copyright {
    color: #95a5a6;
    font-size: 0.8rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.6rem;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

.contact-list p {
    margin-bottom: 0.6rem;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .ranking-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chart-tabs, .time-filters {
        justify-content: center;
    }
    
    .rank-podium {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-item.first {
        order: 1;
    }
    
    .podium-item.second {
        order: 2;
    }
    
    .podium-item.third {
        order: 3;
    }
    
    .analysis-dashboard {
        grid-template-columns: 1fr;
    }
    
    .rank-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }
    
    .rank-stats {
        grid-column: span 2;
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}