/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #a855f7;
    --primary-dark: #9333ea;
    --primary-light: #c084fc;
    --secondary: #ec4899;
    --accent: #f472b6;
    --bg-dark: #0f0a1a;
    --bg-darker: #080510;
    --bg-card: #1a1325;
    --bg-hover: #251a35;
    --text-primary: #ffffff;
    --text-secondary: #e9d5ff;
    --text-muted: #c084fc;
    --border-color: #2d1b3d;
    --shadow-sm: 0 2px 12px rgba(168, 85, 247, 0.15);
    --shadow-md: 0 4px 24px rgba(168, 85, 247, 0.2);
    --shadow-lg: 0 8px 48px rgba(168, 85, 247, 0.25);
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-hero: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部导航栏 - 动漫风格 */
.top-header {
    background: rgba(26, 19, 37, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

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

.main-logo {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-card);
}

.top-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.15);
}

.nav-item:hover::before {
    width: 65%;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(168, 85, 247, 0.2);
}

.nav-item.active::before {
    width: 65%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* 主横幅 - 动漫风格 */
.hero-section {
    background: linear-gradient(135deg, #1a1325 0%, #0f0a1a 50%, #1a1325 100%);
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
    margin-bottom: 90px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-info {
    animation: slideInLeft 0.9s ease-out;
}

.hero-heading {
    font-size: 70px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 22px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-slogan {
    font-size: 26px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-muted);
}

.hero-poster {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.9s ease-out;
    position: relative;
}

.hero-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.1) 100%);
    pointer-events: none;
}

.hero-poster img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 主内容区 */
.main-content {
    padding: 0;
    background: var(--bg-dark);
}

/* 介绍区块 */
.intro-area {
    padding: 100px 0;
    background: var(--bg-card);
    position: relative;
}

.intro-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.intro-layout {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 60px;
    align-items: start;
}

.intro-poster {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.intro-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.1) 100%);
    pointer-events: none;
}

.intro-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.intro-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.area-title {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
}

.intro-text p {
    margin-bottom: 24px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* 排行榜区块 - 动漫特色 */
.ranking-area {
    padding: 100px 0;
    background: var(--bg-dark);
}

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

.view-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-more:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s;
    position: relative;
}

.rank-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s;
}

.rank-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.rank-item:hover::before {
    transform: scaleY(1);
}

.rank-number {
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 50px;
    text-align: center;
}

.rank-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.rank-poster {
    width: 140px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.rank-info {
    flex: 1;
}

.rank-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.rank-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.rank-tags {
    display: flex;
    gap: 8px;
}

.rank-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary);
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* 内容区块 */
.content-area {
    padding: 100px 0;
    background: var(--bg-card);
    position: relative;
}

.content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 30px;
}

.anime-card {
    background: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
}

.anime-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.anime-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.anime-card:hover::after {
    opacity: 0.08;
}

.anime-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 1;
}

.anime-thumb {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.anime-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.anime-card:hover .anime-thumb img {
    transform: scale(1.15);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

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

.anime-details {
    padding: 24px;
}

.anime-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-summary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-meta {
    display: flex;
    gap: 8px;
}

.anime-label {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary);
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* 平台优势区块 */
.features-area {
    padding: 100px 0;
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 38px 28px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-image {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.4s;
}

.feature-card:hover .feature-image {
    border-color: var(--primary);
    transform: scale(1.1);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-heading {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* 页面标题 */
.page-header {
    background: var(--bg-card);
    padding: 80px 0;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.3;
    pointer-events: none;
}

.page-title {
    font-size: 54px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* 内容详情 */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-title {
    font-size: 46px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    line-height: 1.2;
}

.content-image {
    margin: 50px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.content-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.1) 100%);
    pointer-events: none;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.content-text h2 {
    font-size: 34px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 40px 0 24px;
}

.content-text p {
    margin-bottom: 24px;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* 页脚 */
.site-footer {
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 3px solid var(--primary);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-bottom: 50px;
}

.footer-info {
    max-width: 600px;
}

.footer-title {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

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

.menu-section {
    flex: 1;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.menu-items {
    list-style: none;
}

.menu-items li {
    margin-bottom: 12px;
}

.menu-items a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.menu-items a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }

    .intro-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        z-index: 999;
        border-top: 2px solid var(--primary);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item {
        display: block;
        padding: 16px 0;
        border-radius: 0;
    }

    .nav-item::before {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero-heading {
        font-size: 48px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-poster {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .area-title {
        font-size: 32px;
    }

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

    .rank-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-poster {
        width: 100%;
        height: 200px;
    }

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

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

@media (max-width: 480px) {
    .hero-heading {
        font-size: 36px;
    }

    .page-title {
        font-size: 38px;
    }

    .content-title {
        font-size: 32px;
    }

    .area-title {
        font-size: 28px;
    }
}
