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

:root {
    --primary-red: #FF1744;
    --primary-dark: #D50000;
    --bg-black: #000000;
    --bg-dark: #0f0f0f;
    --bg-darker: #181818;
    --bg-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #aaaaaa;
    --text-light-gray: #666666;
    --border-color: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s;
}

.header.scrolled {
    background: rgba(0,0,0,0.95);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    background: linear-gradient(135deg, #FF1744 0%, #FF4569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    padding: 0.5rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-radius: 4px;
}

.nav-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--text-white);
    background: rgba(255, 23, 68, 0.15);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 280px;
    padding: 0.5rem 3rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-white);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-red);
    width: 320px;
}

.search-input::placeholder {
    color: var(--text-light-gray);
}

.search-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s;
}

.search-btn:hover {
    color: var(--primary-red);
}

.vip-btn {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 20px;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.vip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.main {
    margin-top: 60px;
}

.banner-section {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.banner-container {
    height: 100%;
    position: relative;
}

.swiper-slide {
    display: none;
    height: 100%;
}

.swiper-slide.active {
    display: block;
}

.banner-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-content {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 4rem 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.banner-tag {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.banner-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.rating {
    color: #FFD700;
    font-weight: 600;
}

.banner-desc {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.banner-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary-red);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 23, 68, 0.4);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

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

.banner-nav {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
}

.banner-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.banner-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.content-main {
    min-width: 0;
}

.section {
    margin-bottom: 3rem;
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.section-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-item {
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-gray);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-item:hover {
    border-color: var(--primary-red);
    color: var(--text-white);
}

.tab-item.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.section-more {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.section-more:hover {
    color: var(--primary-red);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.video-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-8px);
}

.video-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--bg-card);
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 23, 68, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-red);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-score {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFD700;
}

.video-info {
    padding: 0 0.25rem;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-red);
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
    cursor: pointer;
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rank-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rank-number.top {
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
    border-radius: 4px;
    color: white;
}

.rank-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item:hover .rank-text {
    color: var(--text-white);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    padding: 0.4rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.category-tag:hover {
    background: rgba(255, 23, 68, 0.15);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.seo-content {
    background: var(--bg-darker);
    padding: 3rem 0;
}

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

.seo-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2rem;
    text-align: center;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.seo-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.seo-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 23, 68, 0.2);
}

.seo-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(255, 23, 68, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.seo-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-red);
}

.seo-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.seo-card-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.seo-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.seo-tag:hover {
    background: rgba(255, 23, 68, 0.15);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.app-download-section {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.1), rgba(213, 0, 0, 0.05));
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    border: 1px solid rgba(255, 23, 68, 0.2);
}

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

.app-download-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.app-download-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qr-code svg {
    width: 100%;
    height: 100%;
}

.qr-code-text {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 280px;
}

.download-btn:hover {
    background: rgba(255, 23, 68, 0.1);
    border-color: var(--primary-red);
    transform: translateX(4px);
}

.download-btn svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.app-feature {
    text-align: center;
}

.app-feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 23, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.app-feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-red);
}

.app-feature-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.app-feature-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer {
    background: var(--bg-black);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light-gray);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

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

    .sidebar {
        position: static;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .app-download-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-left {
        gap: 1rem;
    }

    .nav {
        display: none;
    }

    .search-input {
        width: 180px;
    }

    .search-input:focus {
        width: 220px;
    }

    .banner-section {
        height: 400px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-desc {
        font-size: 0.95rem;
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

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

    .section-tabs {
        display: none;
    }

    .seo-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        display: none;
    }

    .vip-btn {
        display: none;
    }

    .search-input {
        width: 140px;
    }

    .search-input:focus {
        width: 180px;
    }

    .banner-section {
        height: 350px;
    }

    .banner-content {
        padding: 2rem 1rem;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .seo-grid {
        grid-template-columns: 1fr;
    }

    .app-features {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        width: 100%;
    }

    .download-btn {
        min-width: 100%;
    }
}
