@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=ZCOOL+XiaoWei&display=swap');

:root {
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --accent: #ff5722;
    --accent-dark: #e64a19;
    --bg: #f5f5f5;
    --text: #212121;
    --text-secondary: #616161;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --max-width: 1200px;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 6px 14px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 180px;
    color: var(--text);
}

.search-box button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

/* ========== Hero / Banner ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    color: var(--white);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
}

/* ========== Section ========== */
.section {
    padding: 50px 0;
}

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

.section-title {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 28px;
    color: var(--text);
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: var(--accent);
    border-radius: 2px;
}

.section-more {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

/* ========== Category Grid ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    color: white;
}

.cat-movie { background: linear-gradient(135deg, #1976d2, #42a5f5); }
.cat-tv { background: linear-gradient(135deg, #ff5722, #ff8a65); }
.cat-variety { background: linear-gradient(135deg, #7b1fa2, #ba68c8); }
.cat-anime { background: linear-gradient(135deg, #00796b, #4db6ac); }
.cat-action { background: linear-gradient(135deg, #c62828, #ef5350); }
.cat-comedy { background: linear-gradient(135deg, #f9a825, #ffd54f); }
.cat-scifi { background: linear-gradient(135deg, #283593, #5c6bc0); }
.cat-romance { background: linear-gradient(135deg, #ad1457, #ec407a); }

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.category-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== Poster Card Grid ========== */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.poster-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.poster-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.poster-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--bg);
}

.poster-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.poster-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.poster-info {
    padding: 14px;
}

.poster-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.poster-meta span {
    display: inline-flex;
    align-items: center;
}

/* ========== Ranking List ========== */
.ranking-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 14px;
    transition: background 0.2s;
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: var(--bg);
}

.ranking-num {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: var(--bg);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-num { background: #ffd700; color: #7a5c00; }
.ranking-item:nth-child(2) .ranking-num { background: #c0c0c0; color: #555; }
.ranking-item:nth-child(3) .ranking-num { background: #cd7f32; color: #5a3410; }

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.ranking-score {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========== Filter Bar ========== */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    width: 80px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    padding-top: 4px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-option {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.filter-option:hover,
.filter-option.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ========== Content Layout ========== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

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

.sidebar {
    min-width: 0;
}

/* ========== Sidebar Modules ========== */
.sidebar-module {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

.update-list {
    list-style: none;
}

.update-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.update-list li:last-child {
    border-bottom: none;
}

.update-title {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.update-time {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* ========== Variety / Anime specific ========== */
.update-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.frequency-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 6px;
}

/* ========== About Page ========== */
.about-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.about-hero h1 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 40px;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.about-section {
    padding: 50px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.about-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 32px;
    color: white;
}

.about-card h3 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.team-member {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.team-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== Contact Page ========== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25,118,210,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.copyright-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.copyright-box strong {
    color: var(--text);
}

/* ========== Footer ========== */
.site-footer {
    background: #1a237e;
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-secondary);
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

/* ========== Page Title ========== */
.page-title-bar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
}

.page-title-bar h1 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 28px;
    color: var(--text);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.pagination a:hover,
.pagination .active {
    background: var(--primary);
    color: var(--white);
}

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

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

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

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        padding: 12px 16px;
    }

    .nav-toggle {
        display: block;
    }

    .search-box {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 15px;
    }

    .poster-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

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

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

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

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .filter-group {
        flex-direction: column;
        gap: 10px;
    }

    .filter-label {
        width: auto;
        padding-top: 0;
    }
}

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

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

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .header-inner {
        height: 60px;
    }

    .logo {
        font-size: 18px;
    }
}