/* 
 * 夏日狂想曲官方网站样式文件
 * 主色调：白色搭配原木色，日式漫画Q版风格
 * 作者：AI自动生成
 * 更新时间：2024-12-19
 */

/* 全局样式设置 */
:root {
    /* 日式风格色彩配置 */
    --primary-color: #8B4513;        /* 原木棕色 */
    --secondary-color: #DEB887;      /* 浅原木色 */
    --accent-color: #FF6B6B;         /* 温暖粉色 */
    --light-wood: #F5DEB3;          /* 浅木色 */
    --cream-white: #FFF8DC;          /* 奶油白 */
    --soft-brown: #D2B48C;          /* 柔和棕色 */
    --text-dark: #3E2723;           /* 深棕色文字 */
    --text-light: #6D4C41;          /* 浅棕色文字 */
    --shadow-color: rgba(139, 69, 19, 0.1); /* 阴影色 */
    
    /* 字体设置 */
    --font-family-primary: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-family-heading: 'Noto Serif SC', 'SimSun', serif;
    
    /* 间距设置 */
    --section-padding: 80px 0;
    --container-padding: 20px;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px var(--shadow-color);
}

/* 基础样式重置 */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream-white);
    overflow-x: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--light-wood) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 248, 220, 0.95);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-family: var(--font-family-heading);
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.brand-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: var(--light-wood);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--light-wood) 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23D2B48C" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

.hero-title {
    font-family: var(--font-family-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title small {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--box-shadow);
    width: fit-content;
}

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

.rating-stars {
    color: #FFD700;
    font-size: 1.2rem;
}

.rating-text {
    color: var(--text-light);
    font-weight: 500;
}

.language-support .badge {
    background-color: var(--primary-color) !important;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.4);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* 通用区域样式 */
.section-title {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* 关于游戏区域 */
.about-section {
    padding: var(--section-padding);
    background: var(--cream-white);
}

.about-content h3 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.mystery-questions ul li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--light-wood);
}

.mystery-questions ul li:last-child {
    border-bottom: none;
}

/* 特色功能区域 */
.features-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-wood) 0%, var(--cream-white) 100%);
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.2);
    border-color: var(--secondary-color);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

.core-features {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 3rem;
}

.core-feature-item {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.core-feature-item:hover {
    background: var(--light-wood);
    transform: translateY(-5px);
}

.core-feature-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 画廊区域 */
.gallery-section {
    padding: var(--section-padding);
    background: var(--cream-white);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* 角色介绍区域 */
.characters-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-wood) 0%, var(--cream-white) 100%);
}

.character-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
}

.character-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.character-image img:hover {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.character-card h4 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.character-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* FAQ区域 */
.faq-section {
    padding: var(--section-padding);
    background: var(--cream-white);
}

.accordion-item {
    border: 2px solid var(--light-wood);
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

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

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

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

.accordion-body {
    background: white;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 1.5rem;
}

/* 下载区域 */
.download-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: var(--section-padding);
}

.download-section h2 {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    font-weight: 700;
}

.download-section .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.download-section .btn-light:hover {
    background: var(--light-wood);
    transform: translateY(-3px);
}

.download-section .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2C1810 0%, var(--text-dark) 100%);
    color: #E0E0E0;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: #B0B0B0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.footer-meta {
    font-size: 0.9rem;
    color: #888;
}

.seo-status-links a {
    font-size: 0.9rem;
    margin: 0 10px;
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title small {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .character-card {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .rating-badge {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .feature-card,
    .character-card {
        padding: 2rem 1.5rem;
    }
    
    .accordion-button,
    .accordion-body {
        padding: 1rem;
    }
}

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

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

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

/* 滚动动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 图片懒加载效果 */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* 可访问性改进 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --text-dark: #000;
        --text-light: #333;
    }
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    :root {
        --cream-white: #2C1810;
        --light-wood: #3E2723;
        --text-dark: #E0E0E0;
        --text-light: #B0B0B0;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    #backToTop,
    .social-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        background: white !important;
    }
}

