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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

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

.mushroom-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.platform-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-menu a {
    text-decoration: none;
    color: #5a6c7d;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 8px 0;
}

.main-menu a:hover {
    color: #667eea;
}

.main-menu a.active {
    color: #667eea;
}

.main-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

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

.search-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.search-btn:hover {
    border-color: #667eea;
    background: #667eea;
}

.login-btn {
    padding: 10px 25px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.main-wrapper {
    flex: 1;
}

.banner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
}

.banner-slider {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.banner-item {
    text-align: center;
    color: #fff;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-btn {
    padding: 15px 40px;
    border: none;
    background: #fff;
    color: #667eea;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s;
}

.banner-btn:hover {
    transform: scale(1.05);
}

.page-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
}

.page-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    color: #fff;
}

.page-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.filter-section {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: #5a6c7d;
    font-weight: 500;
}

.filter-link {
    color: #5a6c7d;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.filter-link:hover {
    background: #e9ecef;
}

.filter-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.view-all:hover {
    color: #764ba2;
}

.section-tabs {
    display: flex;
    gap: 15px;
}

.tab-item {
    color: #5a6c7d;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.tab-item:hover {
    background: #e9ecef;
}

.tab-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.video-cover {
    height: 160px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.video-info {
    padding: 18px;
}

.video-info h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.video-tag {
    display: inline-block;
    background: #e9ecef;
    color: #5a6c7d;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 10px;
}

.video-score {
    display: inline-block;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
}

.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 30px;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #a8edea;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.copyright {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 20px 30px;
        gap: 20px;
    }

    .main-menu ul {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 15px;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .main-menu ul {
        gap: 15px;
    }
}