/* 
 * 少女弹珠汽水 官方网站样式表
 * 版本: 2.0.0
 * 最后更新: 2026年2月
 */

/* ========================================
   基础重置与变量定义
   ======================================== */
:root {
    --primary-color: #e50914;
    --secondary-color: #b81d24;
    --accent-color: #f5c518;
    --bg-dark: #141414;
    --bg-darker: #0a0a0a;
    --bg-card: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #e50914 0%, #b81d24 100%);
    --gradient-dark: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,1) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    --container-width: 1400px;
    --header-height: 70px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   容器与布局
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ========================================
   顶部导航
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transition: background var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.main-nav {
    height: var(--header-height);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: 40px;
    width: auto;
}

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

.nav-link {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

.nav-link.cta-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.nav-link.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

.menu-icon {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    bottom: -7px;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
    padding: 100px 20px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 10px;
    color: var(--text-muted);
}

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

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

/* ========================================
   主内容区域
   ======================================== */
.main-content {
    min-height: calc(100vh - var(--header-height));
}

/* ========================================
   首页横幅
   ======================================== */
.hero-banner {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    padding: 0 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.hero-btn.primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.hero-btn.primary:hover {
    transform: scale(1.05);
}

.hero-btn.secondary {
    background: rgba(109, 109, 110, 0.7);
    color: var(--text-primary);
}

.hero-btn.secondary:hover {
    background: rgba(109, 109, 110, 0.9);
}

/* ========================================
   作品展示区
   ======================================== */
.works-section {
    padding: 60px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.work-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.work-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.work-card figure {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.work-card:hover .work-card-overlay {
    opacity: 1;
}

.work-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-normal);
}

.work-card:hover .work-card-info {
    transform: translateY(0);
    opacity: 1;
}

.work-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.work-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.work-card-rating::before {
    content: "★";
    color: var(--accent-color);
}

/* ========================================
   作品详情页
   ======================================== */
.work-header {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.work-hero {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.work-poster {
    flex-shrink: 0;
    width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.work-poster img {
    width: 100%;
    height: auto;
}

.work-info {
    flex: 1;
}

.work-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

.work-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.rating-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.rating-stars {
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.work-summary {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.work-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.work-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

/* ========================================
   视频播放区域
   ======================================== */
.video-section {
    padding: 60px 0;
    background: var(--bg-darker);
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   剧情介绍
   ======================================== */
.plot-section {
    padding: 60px 0;
}

.plot-content {
    max-width: 900px;
    margin: 0 auto;
}

.plot-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 20px;
    text-indent: 2em;
}

/* ========================================
   演员阵容
   ======================================== */
.cast-section {
    padding: 60px 0;
    background: var(--bg-darker);
}

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

.cast-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.cast-card:hover {
    transform: translateY(-5px);
}

.cast-photo {
    flex-shrink: 0;
    width: 100px;
    height: 125px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.cast-info {
    flex: 1;
}

.cast-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cast-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cast-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   服务介绍
   ======================================== */
.service-section {
    padding: 60px 0;
}

.service-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 20px;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ========================================
   关于我们
   ======================================== */
.about-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   统计数据
   ======================================== */
.stats-section {
    padding: 60px 0;
    background: var(--gradient-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   服务卡片
   ======================================== */
.services-section {
    padding: 80px 0;
}

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

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-main {
    padding: 60px 0 40px;
}

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

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-nav h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-legal {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.legal-content {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.age-restriction {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--radius-md);
}

.age-restriction img {
    width: 40px;
    height: 40px;
}

.age-restriction span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .work-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .work-poster {
        width: 250px;
    }
    
    .work-meta {
        justify-content: center;
    }
    
    .work-rating {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .hero-banner {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .work-title {
        font-size: 1.8rem;
    }
    
    .rating-score {
        font-size: 2rem;
    }
    
    .cast-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav {
        text-align: center;
    }
    
    .age-restriction {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .work-poster {
        width: 200px;
    }
    
    .work-cta {
        width: 100%;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

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

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

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

.slide-in {
    animation: slideIn 0.6s ease forwards;
}

/* ========================================
   实用工具类
   ======================================== */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-20 {
    padding-bottom: 20px;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .hero-banner,
    .video-section {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .main-content {
        padding-top: 0;
    }
}
