* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: bold;
    color: #2d3748;
    margin: 0;
}

.logo-text span {
    font-size: 12px;
    color: #718096;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    padding: 10px 0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.nav-badge {
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 300px;
    padding: 10px 45px 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a67d8;
    transform: translateY(-50%) scale(1.05);
}

.user-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 主要内容 */
.main-content {
    min-height: calc(100vh - 70px);
}

/* 平台介绍横幅 */
.platform-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.platform-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.banner-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.banner-text h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.platform-features {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 16px;
}

.banner-actions {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 13px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 论坛版块 */
.forum-sections {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #718096;
}

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

.section-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.5s ease;
}

.section-card:hover::before {
    left: 100%;
}

.section-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.section-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.section-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.section-info h3 {
    font-size: 20px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 12px;
}

.section-info p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.section-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #4a5568;
    flex-wrap: wrap;
}

.latest-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
}

.topic-title {
    color: #4a5568;
    font-weight: 500;
    flex: 1;
    margin-right: 10px;
}

.topic-time {
    color: #a0aec0;
    white-space: nowrap;
}

/* 热门话题 */
.hot-topics {
    padding: 60px 0;
    background: white;
}

.hot-topics .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-bottom: 40px;
}

.topic-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.topic-item {
    display: flex;
    gap: 20px;
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.topic-item:hover {
    background: white;
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.topic-item.featured {
    background: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.topic-avatar {
    position: relative;
    flex-shrink: 0;
}

.topic-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-level {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #667eea;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.topic-content {
    flex: 1;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.topic-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #2d3748;
    line-height: 1.4;
    flex: 1;
}

.topic-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag.hot {
    background: #fed7d7;
    color: #c53030;
}

.topic-preview {
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #a0aec0;
    flex-wrap: wrap;
}

.author {
    color: #667eea;
    font-weight: 500;
}

/* 精华影评 */
.featured-reviews {
    padding: 60px 0;
    background: #f7fafc;
}

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

.review-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.review-card.featured {
    border-color: #667eea;
}

.review-poster {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.review-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card:hover .review-poster img {
    transform: scale(1.05);
}

.review-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.rating-score {
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.rating-stars {
    font-size: 12px;
    margin-top: 2px;
}

.review-content {
    padding: 25px;
}

.review-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
}

.review-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #718096;
    flex-wrap: wrap;
}

.review-excerpt {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #718096;
    flex-wrap: wrap;
}

.review-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 社区活动 */
.community-activities {
    padding: 60px 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.activity-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.activity-card.ongoing {
    border-color: #48bb78;
}

.activity-card.upcoming {
    border-color: #ed8936;
}

.activity-card.completed {
    border-color: #a0aec0;
}

.activity-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.activity-card.ongoing .activity-status {
    background: #c6f6d5;
    color: #22543d;
}

.activity-card.upcoming .activity-status {
    background: #fbd38d;
    color: #7b341e;
}

.activity-card.completed .activity-status {
    background: #e2e8f0;
    color: #4a5568;
}

.activity-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 12px;
    margin-top: 10px;
}

.activity-content p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.activity-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #4a5568;
}

.activity-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-btn:not(.secondary):not(.disabled) {
    background: #667eea;
    color: white;
}

.activity-btn:not(.secondary):not(.disabled):hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.activity-btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.activity-btn.secondary:hover {
    background: #cbd5e0;
}

.activity-btn.disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

/* 底部 */
.footer {
    background: #2d3748;
    color: #a0aec0;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: #a0aec0;
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 30px;
    text-align: center;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    font-size: 14px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .main-nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    
    .search-input {
        width: 250px;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .banner-text h2 {
        font-size: 32px;
    }
    
    .platform-features {
        justify-content: center;
    }
    
    .community-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .topic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 10px;
    }
}