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

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

:root {
    --sakura-pink: #f48fb1;
    --light-pink: #fce4ec;
    --bg-pink: #fff5f8;
    --deep-purple: #880e4f;
    --white: #ffffff;
    --shadow: rgba(244, 143, 177, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
    background-color: var(--bg-pink);
    color: var(--deep-purple);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Sakura Petal Falling Animation */
.sakura-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -10px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--light-pink));
    border-radius: 50% 0 50% 50%;
    opacity: 0.7;
    animation: petal-fall linear infinite;
}

@keyframes petal-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, var(--sakura-pink) 0%, var(--light-pink) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.8rem;
    color: var(--deep-purple);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '🌸';
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

nav ul li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--deep-purple);
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--deep-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(136, 14, 79, 0.3);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Banner Section */
.banner {
    background: linear-gradient(135deg, var(--sakura-pink) 0%, var(--light-pink) 50%, var(--bg-pink) 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px var(--shadow);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.banner h1 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 3rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.banner p {
    font-size: 1.2rem;
    color: var(--deep-purple);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.banner .banner-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--deep-purple), var(--sakura-pink));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(136, 14, 79, 0.4);
    position: relative;
    z-index: 1;
}

.banner .banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(136, 14, 79, 0.5);
}

/* Section Titles */
.section-title {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 2rem;
    color: var(--deep-purple);
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 5px solid var(--sakura-pink);
    position: relative;
}

.section-title::after {
    content: '🌸';
    margin-left: 0.5rem;
}

/* Video Cards Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.video-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-pink) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(244, 143, 177, 0.4);
}

.video-card .card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.video-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.video-card .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(244, 143, 177, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.video-card .play-overlay::after {
    content: '▶';
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 4px;
}

.video-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--deep-purple);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-card .card-body {
    padding: 1.2rem;
}

.video-card .card-body h3 {
    font-size: 1.1rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.video-card .card-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--sakura-pink);
}

.video-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: linear-gradient(135deg, var(--sakura-pink), var(--light-pink));
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--deep-purple);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(244, 143, 177, 0.5);
}

.category-card .cat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--deep-purple);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--deep-purple);
    opacity: 0.8;
}

/* Filter Tags */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow);
}

.filter-tag {
    padding: 0.5rem 1.2rem;
    background: var(--light-pink);
    color: var(--deep-purple);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--sakura-pink);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Ranking Table */
.ranking-section {
    margin-bottom: 3rem;
}

.ranking-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--light-pink);
    padding-bottom: 0.5rem;
}

.ranking-tab {
    padding: 0.8rem 1.8rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 700;
    color: var(--sakura-pink);
    cursor: pointer;
    border-radius: 15px 15px 0 0;
    transition: all 0.3s ease;
}

.ranking-tab.active {
    background: var(--sakura-pink);
    color: var(--white);
}

.ranking-list {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-pink);
    transition: background 0.3s ease;
}

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

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

.ranking-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin-right: 1.2rem;
    flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-num { background: linear-gradient(135deg, #ff6b9d, #ff4081); }
.ranking-item:nth-child(2) .ranking-num { background: linear-gradient(135deg, #ffa6c9, #ff6b9d); }
.ranking-item:nth-child(3) .ranking-num { background: linear-gradient(135deg, #ffd4e5, #ffa6c9); color: var(--deep-purple); }
.ranking-item:nth-child(n+4) .ranking-num { background: var(--light-pink); color: var(--deep-purple); }

.ranking-info {
    flex: 1;
}

.ranking-info h4 {
    font-size: 1.1rem;
    color: var(--deep-purple);
    margin-bottom: 0.3rem;
}

.ranking-info p {
    font-size: 0.85rem;
    color: var(--sakura-pink);
}

.ranking-score {
    font-weight: 700;
    color: var(--sakura-pink);
    font-size: 1.1rem;
}

/* About Section */
.about-hero {
    background: linear-gradient(135deg, var(--sakura-pink), var(--light-pink));
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px var(--shadow);
}

.about-hero h1 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 2.8rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--deep-purple);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-card {
    background: linear-gradient(145deg, var(--white), var(--light-pink));
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 20px var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(244, 143, 177, 0.4);
}

.feature-card .feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--deep-purple);
    opacity: 0.85;
    line-height: 1.8;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 20px var(--shadow);
    border-top: 4px solid var(--sakura-pink);
}

.contact-card h2 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.6rem;
    color: var(--deep-purple);
    margin-bottom: 1.2rem;
}

.contact-card p,
.contact-card li {
    color: var(--deep-purple);
    opacity: 0.9;
    line-height: 1.9;
}

.contact-card ul {
    list-style: none;
    padding: 0;
}

.contact-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--light-pink);
}

.contact-card ul li:last-child {
    border-bottom: none;
}

.contact-card a {
    color: var(--sakura-pink);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Video Player Page */
.player-container {
    background: var(--deep-purple);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(136, 14, 79, 0.3);
}

.player-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #2d1b3d, #4a2545);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.player-placeholder::before {
    content: '▶';
    font-size: 5rem;
    color: var(--sakura-pink);
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-placeholder:hover::before {
    transform: scale(1.1);
    opacity: 1;
}

.player-info {
    padding: 1.5rem;
    background: var(--white);
}

.player-info h1 {
    font-size: 1.6rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
}

.player-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--sakura-pink);
    font-size: 0.95rem;
}

/* Varietiy Page */
.variety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.variety-card {
    background: linear-gradient(145deg, var(--white), var(--light-pink));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow);
    transition: all 0.3s ease;
}

.variety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(244, 143, 177, 0.4);
}

.variety-card .card-header {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--light-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.variety-card .card-content {
    padding: 1.5rem;
}

.variety-card h3 {
    font-size: 1.3rem;
    color: var(--deep-purple);
    margin-bottom: 0.8rem;
}

.variety-card .update-info {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--sakura-pink);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.variety-card p {
    color: var(--deep-purple);
    opacity: 0.85;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--deep-purple) 0%, #4a0028 100%);
    color: var(--light-pink);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

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

.footer-col h4 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.2rem;
    color: var(--sakura-pink);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

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

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

.footer-col ul li a {
    color: var(--light-pink);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--sakura-pink);
}

.footer-col p {
    color: var(--light-pink);
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 143, 177, 0.2);
    border-radius: 50%;
    color: var(--sakura-pink);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--sakura-pink);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(244, 143, 177, 0.3);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .banner h1 {
        font-size: 2.4rem;
    }

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

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li a {
        padding: 0.5rem 0.9rem;
        font-size: 0.88rem;
    }

    .banner {
        padding: 2.5rem 1.2rem;
    }

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

    .banner p {
        font-size: 1rem;
    }

    .video-grid,
    .category-grid,
    .feature-grid,
    .contact-grid,
    .variety-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }

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

    .ranking-tabs {
        flex-wrap: wrap;
    }

    .ranking-item {
        padding: 0.8rem 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.8rem;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.6rem;
    }

    .video-grid,
    .category-grid,
    .feature-grid,
    .contact-grid,
    .variety-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.5rem;
    }

    .video-card .card-body {
        padding: 1rem;
    }

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