/* Corrupted World 腐败世界 - 主样式文件 */
/* 此CSS文件为content.txt内容自动生成的游戏主题样式 */

/* 基础样式重置和变量定义 */
:root {
    /* 主题配色 - 基于游戏亚洲风特色设计 */
    --primary-color: #6f42c1;
    --secondary-color: #e83e8c;
    --accent-color: #fd7e14;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --light-bg: #f8f9fa;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-strong: 0 20px 60px rgba(0,0,0,0.3);
    --border-radius: 10px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式优化 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 字体异步加载优化 */
@font-face {
    font-family: 'Noto Sans SC';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
}

/* 导航栏样式增强 */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 46, 0.95) !important;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero区域样式 - 首屏核心展示 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.8;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(0) translateX(-10px); }
    75% { transform: translateY(20px) translateX(5px); }
    100% { transform: translateY(0) translateX(0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInLeft 1s ease-out;
}

.hero-content .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.hero-buttons .btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: white;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    color: white;
}

.hero-stats {
    animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-stats .stat-item {
    text-align: center;
    margin: 1rem 0;
}

.hero-stats h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-stats p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: slideInRight 1s ease-out 0.3s both;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    transition: var(--transition-smooth);
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* 特色功能区域样式 */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-align: center;
    border: none;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 隐藏feature-icon内的字体图标，显示背景图片 */
.feature-icon i {
    display: none;
}

.feature-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-image {
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-image:hover {
    transform: scale(1.03);
}

/* 剧情介绍区域样式 */
#story {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.story-content {
    padding: 2rem 0;
}

.story-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.story-content p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.story-content .blockquote {
    background: rgba(255,255,255,0.8);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

/* 修改blockquote-footer的margin-top */
.blockquote-footer {
    margin-top: 0rem !important;
    color: #ffffff !important;
}

.story-gallery img {
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.story-gallery img:hover {
    transform: scale(1.02);
}

/* 画廊区域样式 */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.gallery-item img {
    transition: var(--transition-smooth);
    width: 100%;
    height: auto;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* FAQ区域样式 */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background: rgba(247, 250, 252, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

/* 下载区域样式 */
#download {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

#download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    animation: float 15s infinite linear reverse;
}

.info-item {
    text-align: center;
    padding: 1rem;
}

.info-item i {
    font-size: 2rem;
    display: block;
}

.info-item h5 {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
footer {
    background: var(--darker-bg) !important;
    border-top: 3px solid var(--primary-color);
}

footer h5, footer h6 {
    color: var(--accent-color);
    font-weight: 600;
}

/* 修复页脚链接颜色问题 */
footer ul li a {
    color: #cbd5e1 !important;
    transition: var(--transition-smooth);
    text-decoration: none;
}

footer ul li a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

footer .text-muted {
    color: #94a3b8 !important;
}

footer .text-muted a {
    color: #cbd5e1 !important;
    transition: var(--transition-smooth);
}

footer .text-muted a:hover {
    color: var(--accent-color) !important;
}

footer .social-links a {
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    color: #e2e8f0 !important;
}

footer .social-links a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-3px);
}

/* 年龄验证提醒条 */
.age-verification-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    animation: slideInUp 0.5s ease-out;
}

/* 动画定义 */
@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);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .hero-stats .row {
        margin: 1rem 0;
    }
    
    .hero-stats .stat-item {
        margin: 0.5rem 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .story-content {
        padding: 1rem 0;
    }
    
    .story-content .blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    #download .col-lg-4 {
        margin-top: 2rem;
        text-align: center;
    }
    
    .age-verification-notice {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .story-content p {
        font-size: 1rem;
    }
    
    .info-item {
        padding: 0.5rem;
    }
    
    .info-item i {
        font-size: 1.5rem;
    }
}

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

/* 加载动画 */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

/* 滚动优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800080;
        --accent-color: #ff4500;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    #download,
    footer,
    .age-verification-notice {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-bg {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
} 