/* ==================== CSS 变量定义 ==================== */
:root {
    --primary-color: #ff6b35;
    --primary-hover: #e55a2b;
    --secondary-color: #D2691E;
    --text-primary: #5D4037;
    --text-secondary: #8B4513;
    --text-dark: #333;
    --text-light: #666;
    --text-gray: #999;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-color: #FFF8F0;
    --bg-dark: #1a1a1a;
    --bg-overlay: rgba(0, 0, 0, 0.3);
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== Hero 区域 ==================== */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: url('../background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.game-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.game-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.08"/></svg>'),
        rgba(255, 245, 235, 0.15);
    z-index: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    padding: var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

.logo-container {
    margin-bottom: var(--spacing-lg);
}

.logo {
    width: 200px;
    height: auto;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-white);
    background-color: var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    animation: bounce 2s infinite;
}

.scroll-text {
    display: block;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--bg-white);
    border-bottom: 2px solid var(--bg-white);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: arrowDown 1.5s infinite;
}

/* ==================== 特色展示区 ==================== */
.features-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== 二维码区域 ==================== */
.qrcode-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.qrcode-container {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
}

.qrcode-text {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==================== 页脚区域 ==================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-compliance {
    flex: 1;
    min-width: 300px;
}

.compliance-text {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-link {
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--bg-white);
}

.footer-separator {
    color: var(--text-gray);
}

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

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes arrowDown {
    0% {
        opacity: 1;
        transform: rotate(45deg) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

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

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* 手机设备 (480px 及以下) */
@media (max-width: 480px) {
    .logo {
        width: 150px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 36px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

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

    .feature-card {
        padding: var(--spacing-md);
    }

    .qrcode {
        width: 180px;
        height: 180px;
    }

    .compliance-text,
    .footer-text {
        font-size: 0.8rem;
    }
}

/* 大屏幕设备 (1024px 及以上) */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 超大屏幕优化 (1440px 及以上) */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 5rem;
    }

    .container {
        max-width: 1400px;
    }
}

/* ===================================
   Navigation Bar (已移除)
   =================================== */

/* 适龄图标悬浮样式 */
.age-icon-float {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 99;
    transition: all 0.3s ease;
}

.age-icon {
    width: 70px;
    height: 94px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 3px;
}

.age-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.age-top {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    height: 67px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
}

.age-number {
    font-size: 24px;
    color: #fff;
    line-height: 1;
    font-weight: 900;
}

.age-cadpa {
    font-size: 10px;
    color: #fff;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.age-bottom {
    background-color: #fff;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

.age-label {
    font-size: 12px;
    color: #000;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0px;
}

/* ===================================
   Download Section (BeaverHomePage Style)
   =================================== */

.download-section {
    position: relative;
    z-index: 2;
    flex: 0 0 122px;
    max-width: 122px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 50px;
    align-items: center;
}

/* 二维码盒子样式 */
.qr-box {
    width: 100%;
    background: white;
    border: 3px solid var(--text-brown);
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

.qr-img {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.qr-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-brown);
    margin-bottom: 2px;
}

.qr-subtitle {
    font-size: 10px;
    color: #999;
    margin: 0;
}

/* 下载按钮样式 */
.download-btn {
    width: 100%;
    padding: 12px;
    color: white;
    border: 3px solid var(--text-brown);
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 3px 3px 0 var(--text-brown);
    transition: transform 0.1s;
    font-size: 1rem;
    background: var(--primary-orange);
}

.download-btn i {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    line-height: 1;
}

.download-btn span {
    line-height: 1;
}

.download-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--text-brown);
}

/* 不同平台的配色 */
.download-btn.android {
    background: #0bc15f;
    color: white;
}

.download-btn.android:hover {
    background: #0ad957;
}

.download-btn.ios {
    background: #333;
    color: white;
}

.download-btn.ios:hover {
    background: #2a2a2a;
}

/* ===================================
   Character Buttons
   =================================== */

.characters-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.character-btn {
    position: absolute;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

.character-btn:nth-child(2) {
    animation-delay: 0.5s;
}

.character-btn:nth-child(3) {
    animation-delay: 1s;
}

.character-btn:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.character-btn:hover {
    transform: scale(1.2) translateY(-10px);
}

.character-btn:hover .character-avatar {
    transform: rotate(10deg) scale(1.1);
}

.character-avatar {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.character-avatar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 3px dashed var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-btn:hover .character-avatar::after {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.character-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    background: white;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(93, 64, 55, 0.15);
    white-space: nowrap;
}

/* ===================================
   Character Modal
   =================================== */

.character-modal-content {
    max-width: 500px;
}

.character-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.character-avatar-large {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 8px 24px rgba(93, 64, 55, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(93, 64, 55, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(93, 64, 55, 0.3);
    }
}

.character-info {
    text-align: center;
}

.character-info h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.character-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   Responsive Styles for New Features
   =================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-logo .logo {
        width: 40px;
        height: 40px;
    }

    .age-icon {
        width: 35px;
        height: 35px;
    }

    .download-card {
        padding: 1.5rem;
    }

    .download-header i {
        font-size: 1.5rem;
    }

    .download-header h3 {
        font-size: 1.25rem;
    }

    .character-avatar {
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }

    .character-name {
        font-size: 0.8rem;
        padding: 0.25rem 0.65rem;
    }

    .character-btn:nth-child(1) {
        top: 10%;
        left: 2%;
    }

    .character-btn:nth-child(2) {
        top: 20%;
        right: 3%;
    }

    .character-btn:nth-child(3) {
        top: 55%;
        left: 2%;
    }

    .character-btn:nth-child(4) {
        top: 65%;
        right: 3%;
    }

    .character-avatar-large {
        width: 120px;
        height: 120px;
        font-size: 4rem;
    }

    .character-info h3 {
        font-size: 1.5rem;
    }

    .character-info p {
        font-size: 1rem;
    }

    /* Footer responsive styles */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .footer-title {
        font-size: 0.95rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }

    .age-info-list li {
        font-size: 0.9rem;
        padding: 0.85rem 0;
        padding-left: 1.5rem;
        line-height: 1.7;
    }

    .age-modal-content {
        max-height: 85vh;
    }
}

/* ===================================
   Hero Section Layout (Updated)
   =================================== */

.hero-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px 5% 20px;
    position: relative;
    min-height: 100vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--bg-white);
    padding: 1.5rem;
    animation: fadeInUp 1s ease-out;
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 1);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.08"/></svg>'),
        rgba(255, 245, 235, 0.15);
    z-index: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ===================================
   Download Section
   =================================== */

.download-section {
    position: relative;
    z-index: 2;
    flex: 0 0 350px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.intro-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.intro-btn:hover {
    background: var(--primary-color);
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* ===================================
   Info Buttons Container
   =================================== */

.info-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.info-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.95) 100%);
    color: rgb(146, 83, 44);
    border: 3px solid var(--text-brown);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 3px 3px 0 rgba(93, 64, 55, 0.3);
    flex: 0 0 auto;
    min-width: 120px;
    width: auto;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.98) 0%, rgba(230, 230, 230, 0.98) 100%);
    color: rgb(146, 83, 44);
    border: 3px solid var(--text-brown);
    transform: none;
    box-shadow: 3px 3px 0 rgba(93, 64, 55, 0.3);
}

.info-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 rgba(93, 64, 55, 0.3);
}

/* 内联社交媒体图标 */
.social-icon-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-icon-inline:hover {
    transform: scale(1.1);
    opacity: 1;
}

.social-icon-inline .social-logo {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===================================
   Modal Styles
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    /* 隐藏滚动条但保持可滚动 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-close {
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

.intro-section {
    margin-bottom: 1.5rem;
}

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

/* 游戏截图容器 */
.screenshots-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-top: 1rem;
    padding: 8px 4px;
    justify-content: flex-start;
}

.screenshot-img {
    width: 168px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
    background: #f5f5f5;
}

.screenshot-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 图片查看器模态框 */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-viewer-overlay.active {
    display: flex;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.image-viewer-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.intro-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intro-section h3 i {
    color: var(--primary-color);
}

.intro-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.intro-section ul {
    list-style: none;
    padding: 0;
}

.intro-section ul li {
    padding: 0.6rem 0;
    color: var(--text-light);
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    margin: 1rem 0;
}

/* ===================================
   Updated Footer Styles
   =================================== */

.footer {
    background: var(--bg-dark);
    color: var(--text-gray);
    padding: 2rem 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1rem;
    color: var(--bg-white);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link-item {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link-item:hover {
    color: var(--bg-white);
}

.footer-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    opacity: 0.7;
    margin-top: 0.5rem;
    font-style: italic;
}

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

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

.footer-warning {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.footer-links-section {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

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

.footer .separator {
    color: var(--text-gray);
}

.footer .copyright {
    font-size: 0.85rem;
    margin: 0;
}

/* ===================================
   Age Rating Modal Styles
   =================================== */

.age-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    /* 隐藏滚动条但保持可滚动 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.age-modal-content::-webkit-scrollbar {
    display: none;
}

.age-info-section {
    padding: 0.5rem 0;
}

.age-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.age-info-list li {
    padding: 1rem 0;
    color: var(--text-light);
    line-height: 1.8;
    border-bottom: 1px solid var(--bg-light);
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
}

.age-info-list li:last-child {
    border-bottom: none;
}

.age-info-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* ===================================
   Producer Letter Modal Styles
   =================================== */

.producer-modal-content {
    max-width: 700px;
}

.producer-letter {
    padding: 0.5rem 0;
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.letter-greeting {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.letter-date {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

.letter-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.letter-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.letter-list li {
    padding: 0.75rem 0;
    color: var(--text-light);
    line-height: 1.8;
    border-bottom: 1px dashed var(--bg-light);
    position: relative;
    padding-left: 1.5rem;
}

.letter-list li:last-child {
    border-bottom: none;
}

.letter-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0.6rem;
    font-size: 1rem;
}

.letter-list li strong {
    color: var(--primary-color);
}

.letter-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bg-light);
    text-align: center;
}

.signature-text {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.signature-name {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* ===================================
   Fade In Animation Class
   =================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

/* ===================================
   Toast Animations
   =================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* ===================================
   Responsive Design Updates
   =================================== */

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 50px 5% 100px;
        min-height: auto;
    }

    .game-logo {
        top: 20px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        margin-bottom: 2rem;
        margin-top: 100px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .info-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .download-section {
        flex: 0 0 auto;
        max-width: 147px;
        width: 100%;
        align-items: center;
        padding-top: 0;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

@media (max-width: 768px) {
    .game-logo {
        top: 15px;
    }

    .game-logo img {
        height: 60px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .subtitle {
        font-size: 0.95rem;
    }

    .info-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }

    .info-btn {
        min-width: 108px;
        padding: 0.55rem 0.84rem;
        font-size: 0.85rem;
    }

    /* 适龄图标响应式 */
    .age-icon-float {
        top: 15px;
        left: 15px;
    }

    .age-icon {
        width: 50px;
        height: auto;
        padding: 2px;
    }

    .age-top {
        height: auto;
        padding: 2px 0;
    }

    .age-number {
        font-size: 18px;
    }

    .age-cadpa {
        font-size: 7px;
        margin-top: 2px;
    }

    .age-bottom {
        height: auto;
        padding: 0 1px;
    }

    .age-label {
        font-size: 8px;
    }

    .download-section {
        max-width: 137px;
    }

    .qr-img {
        height: 120px;
    }

    .download-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .download-btn i {
        font-size: 1.1rem;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }

    .hero-content .subtitle {
        font-size: 0.9rem;
    }

    .info-buttons {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
    }

    .info-btn {
        min-width: 96px;
        padding: 0.5rem 0.78rem;
        font-size: 0.8rem;
    }

    .info-btn i {
        font-size: 0.9rem;
    }

    .download-section {
        max-width: 127px;
    }

    .qr-img {
        height: 110px;
    }

    .qr-title {
        font-size: 11px;
    }

    .qr-subtitle {
        font-size: 9px;
    }

    .download-btn {
        padding: 8px;
        font-size: 0.85rem;
    }

    .download-btn i {
        font-size: 1rem;
    }

    .character-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .character-name {
        font-size: 0.65rem;
    }

    /* 适龄图标进一步缩小 */
    .age-icon {
        width: 45px;
    }

    .age-number {
        font-size: 16px;
    }

    .age-cadpa {
        font-size: 6px;
    }

    .age-label {
        font-size: 7px;
    }

    .modal-content {
        width: 98%;
        border-radius: 15px;
    }

    .modal-header,
    .modal-body {
        padding: 0.8rem;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .intro-section h3 {
        font-size: 1rem;
    }

    .age-info-list li {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    /* Producer letter responsive styles */
    .producer-modal-content {
        max-width: 95%;
    }

    .letter-greeting {
        font-size: 1.1rem;
    }

    .letter-content p {
        font-size: 0.9rem;
    }

    .letter-list li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }

    .signature-name {
        font-size: 1rem;
    }

    /* 游戏截图响应式 */
    .screenshots-container {
        gap: 8px;
        padding: 4px;
    }

    .screenshot-img {
        width: 112px;
        height: auto;
    }
}
