/* 
 * 里番动漫网站样式表
 * 独特的深紫色渐变配色方案
 * 移动优先响应式设计
 */

/* CSS变量定义 */
:root {
    --primary-gradient: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #4a2c6a 100%);
    --accent-color: #ff6b9d;
    --accent-secondary: #c084fc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --card-bg: rgba(45, 27, 78, 0.85);
    --border-color: rgba(192, 132, 252, 0.3);
    --shadow-color: rgba(255, 107, 157, 0.2);
    --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--primary-gradient);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 性能优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 导航栏 - 非sticky */
.site-header {
    background: linear-gradient(180deg, rgba(26, 10, 46, 0.98) 0%, rgba(45, 27, 78, 0.95) 100%);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.site-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航菜单 */
.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
    background: rgba(255, 107, 157, 0.1);
    border-color: var(--accent-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 157, 0.5);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-color);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 107, 157, 0.1);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.9rem;
}

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

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

/* 内容区域 */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* 动漫卡片网格 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.anime-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.anime-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.anime-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.anime-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

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

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

.play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.anime-card-content {
    padding: 1.25rem;
}

.anime-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.anime-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 视频播放模块 */
.video-section {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.9), rgba(74, 44, 106, 0.9));
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
}

.video-player-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 28px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    margin-left: 8px;
}

/* 影评模块 */
.review-section {
    margin: 4rem 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(192, 132, 252, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.review-author {
    flex: 1;
}

.review-name {
    font-weight: 600;
    font-size: 1rem;
}

.review-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-rating {
    color: #ffd700;
    font-size: 1.1rem;
}

.review-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

/* 授权认证模块 */
.license-section {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.95), rgba(74, 44, 106, 0.9));
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    border: 2px solid var(--accent-secondary);
}

.license-badge {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #ffd700, #ff9500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.license-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.license-number {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: monospace;
}

.license-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* FAQ模块 */
.faq-section {
    margin: 4rem 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 107, 157, 0.1);
}

.faq-icon {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
}

.faq-icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 关于我们 */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 4rem 0;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

/* 支付方式 */
.payment-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    border: 1px solid var(--border-color);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.payment-icon {
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon img {
    height: 40px;
    width: auto;
}

/* 客户支持 */
.support-section {
    margin: 4rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.support-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.support-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.support-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.support-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, rgba(26, 10, 46, 0.98), #0a0412);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

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

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

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

.footer-payment {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-payment img {
    height: 30px;
    width: auto;
    background: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.85rem;
}

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

/* 内页样式 */
.page-header {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.95), rgba(74, 44, 106, 0.9));
    padding: 4rem 1.5rem;
    text-align: center;
}

.page-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 文章内容 */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--accent-color);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.article-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

/* APP下载页面 */
.app-download-section {
    text-align: center;
    padding: 4rem 1.5rem;
}

.app-preview {
    max-width: 300px;
    margin: 2rem auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.download-btn-text {
    text-align: left;
}

.download-btn-text small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.download-btn-text strong {
    display: block;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(26, 10, 46, 0.98);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .anime-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 懒加载占位 */
.lazy-placeholder {
    background: linear-gradient(90deg, var(--card-bg) 25%, rgba(74, 44, 106, 0.5) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
