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

:root {
    --sakura-pink: #ffb7c5;
    --deep-pink: #e91e63;
    --light-bg: #fff5f8;
    --purple-text: #4a148c;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-600: #757575;
    --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.1);
    --shadow-md: 0 4px 16px rgba(233, 30, 99, 0.15);
    --shadow-lg: 0 8px 32px rgba(233, 30, 99, 0.2);
    --radius: 12px;
    --font-serif: 'Noto Serif SC', serif;
    --font-display: 'ZCOOL XiaoWei', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--light-bg);
    color: var(--purple-text);
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 樱花飘落动画 */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.sakura {
    position: absolute;
    top: -10px;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #ffd1dc, var(--sakura-pink));
    border-radius: 50% 0 50% 50%;
    opacity: 0.8;
    animation: sakura-fall linear infinite;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--purple-text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--deep-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--purple-text);
}

.logo-text span {
    color: var(--deep-pink);
}

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

.nav a {
    padding: 8px 18px;
    text-decoration: none;
    color: var(--purple-text);
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(135deg, var(--sakura-pink), var(--deep-pink));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

/* 主内容区 */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--sakura-pink) 0%, var(--deep-pink) 100%);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.banner p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.banner-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--white);
    color: var(--deep-pink);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 区块标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--sakura-pink);
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--purple-text);
}

.section-title .icon {
    font-size: 28px;
}

/* 番剧卡片网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

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

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

.card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--deep-pink));
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--purple-text);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-600);
}

.card-meta .rating {
    color: var(--deep-pink);
    font-weight: 600;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--light-bg);
    color: var(--deep-pink);
    border-radius: 10px;
    font-size: 12px;
}

/* 分类导航 */
.category-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--purple-text);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    border-color: var(--sakura-pink);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 42px;
    margin-bottom: 12px;
    display: block;
}

.category-item h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 6px;
}

.category-item p {
    font-size: 13px;
    color: var(--gray-600);
}

/* 筛选器 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    padding: 8px 20px;
    background: var(--light-bg);
    border: none;
    color: var(--purple-text);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--sakura-pink), var(--deep-pink));
    color: var(--white);
}

/* 资讯列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--purple-text);
}

.news-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.news-thumb {
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--light-bg);
    color: var(--deep-pink);
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-title {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--purple-text);
}

.news-desc {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 13px;
    color: var(--gray-600);
}

/* 新番档期表格 */
.season-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.season-table th {
    background: linear-gradient(135deg, var(--sakura-pink), var(--deep-pink));
    color: var(--white);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.season-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
}

.season-table tr:hover td {
    background: var(--light-bg);
}

/* 角色卡片 */
.character-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

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

.character-photo {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.character-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-info {
    padding: 16px;
}

.character-name {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--purple-text);
}

.character-role {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.voice-actor {
    display: inline-block;
    padding: 3px 12px;
    background: var(--light-bg);
    color: var(--deep-pink);
    border-radius: 10px;
    font-size: 13px;
}

/* 页面标题横幅 */
.page-banner {
    background: linear-gradient(135deg, var(--sakura-pink), var(--deep-pink));
    border-radius: var(--radius);
    padding: 50px 40px;
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.page-banner h1 {
    font-family: var(--font-display);
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* 信息卡片 */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.info-card h2 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--purple-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    color: var(--gray-600);
    line-height: 2;
    margin-bottom: 12px;
}

/* 团队成员 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.team-member {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.team-name {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--purple-text);
    margin-bottom: 6px;
}

.team-role {
    color: var(--deep-pink);
    font-size: 14px;
    margin-bottom: 10px;
}

.team-desc {
    color: var(--gray-600);
    font-size: 13px;
}

/* 联系表单 */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 15px;
    transition: border-color 0.3s ease;
    background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--deep-pink);
    background: var(--white);
}

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

.submit-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--deep-pink));
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 版权声明 */
.copyright-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--deep-pink);
}

.copyright-box h3 {
    color: var(--deep-pink);
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.copyright-box ul {
    list-style: none;
    padding: 0;
}

.copyright-box li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-600);
}

.copyright-box li::before {
    content: '🌸';
    position: absolute;
    left: 0;
    color: var(--sakura-pink);
}

/* 页脚 */
.footer {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    box-shadow: 0 -4px 20px rgba(233, 30, 99, 0.1);
    margin-top: 60px;
    padding-top: 50px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-col h4 {
    font-family: var(--font-display);
    color: var(--purple-text);
    margin-bottom: 18px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.8;
}

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

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

.footer-col ul li a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

.footer-social a {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--deep-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 20px 0;
    text-align: center;
    color: var(--gray-600);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .nav.open {
        display: flex;
    }

    .nav a {
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .banner {
        padding: 40px 20px;
    }

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

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

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .card-image {
        height: 200px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 180px;
    }

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

    .season-table {
        font-size: 13px;
    }

    .season-table th,
    .season-table td {
        padding: 10px 8px;
    }

    .contact-form {
        padding: 24px;
    }

    .page-banner {
        padding: 36px 20px;
    }

    .page-banner h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 60px;
    }

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

    main {
        padding: 24px 16px;
    }

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

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