/* 全局样式 */
:root {
    --primary-color: #9b59b6;
    --secondary-color: #f39c12;
    --background-color: #f5e79e;
    --text-color: #333;
    --accent-color: #e74c3c;
    --card-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    /* 使用纯色背景，因为没有bg-pattern.png文件 */
    background-image: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部样式 */
header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    /* 移除背景色和其他样式，让图片显示 */
}

.logo img {
    height: 50px;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* 使用实际的背景图片 */
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

/* 媒体区域样式 */
.media-section {
    padding: 80px 0;
    background-color: var(--background-color);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.ribbon {
    display: inline-block;
    position: relative;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 40px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.ribbon::before,
.ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    background-color: var(--primary-color);
}

.ribbon::before {
    left: -15px;
    transform: skewX(-20deg);
}

.ribbon::after {
    right: -15px;
    transform: skewX(20deg);
}

.ribbon h2 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.media-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    margin-bottom: 20px;
}

.media-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.media-image {
    height: 200px;
    overflow: hidden;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-item:hover .media-image img {
    transform: scale(1.1);
}

.media-caption {
    display: none;
}

.see-more {
    text-align: center;
}

.btn-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-more:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

/* 关于我们区域样式 */
.about-section {
    padding: 80px 0;
    background-color: #e8d9b0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.team-logo {
    flex: 0 0 200px;
    /* 移除背景色和其他样式，让图片显示 */
}

.team-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.team-info {
    flex: 1;
}

.team-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* 隐私协议按钮样式 */
.privacy-btn {
    margin-left: 20px;
}

.privacy-btn a {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy-btn a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .privacy-btn {
        margin-left: 0;
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .privacy-btn a {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* 添加动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-item.visible {
    opacity: 1;
}

/* 为每个媒体项添加不同的动画延迟 */
.media-item:nth-child(1) { animation-delay: 0.1s; }
.media-item:nth-child(2) { animation-delay: 0.2s; }
.media-item:nth-child(3) { animation-delay: 0.3s; }
.media-item:nth-child(4) { animation-delay: 0.4s; }
.media-item:nth-child(5) { animation-delay: 0.5s; }
.media-item:nth-child(6) { animation-delay: 0.6s; }

/* 添加头部滚动效果 */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 添加菜单切换动画 */
.menu-toggle span.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle span.active:nth-child(2) {
    opacity: 0;
}

.menu-toggle span.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 模态窗口样式更新 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.modal-body {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
}

.modal-body .effective-date, 
.modal-body .last-update {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.modal-body .last-update {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-body h3 {
    color: var(--secondary-color);
    margin: 30px 0 15px;
    font-size: 18px;
    font-weight: bold;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-body strong {
    font-weight: bold;
    color: var(--primary-color);
}

.modal-footer {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-agree {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.btn-agree:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式模态窗口 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
    
    .modal h2 {
        font-size: 1.5rem;
    }
    
    .modal-body h3 {
        font-size: 1.1rem;
    }
}

/* 下载选项区域样式 */
.download-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 48px;
}

.store-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.store-icon i {
    font-size: 28px;
}

.app-store .store-icon i {
    font-size: 32px;
}

.play-icon i {
    background: linear-gradient(to right, #EA4335 0%, #4285F4 25%, #34A853 50%, #FBBC05 75%, #EA4335 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1;
}

.small-text {
    font-size: 9px;
    font-weight: normal;
    opacity: 0.8;
    margin-bottom: 2px;
    text-transform: none;
}

.big-text {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.app-store {
    background-color: #000000;
}

.app-store:hover {
    background-color: #222222;
}

.google-play {
    background-color: #000000;
}

.google-play:hover {
    background-color: #222222;
}

.steam {
    background-color: #000000;
}

.steam:hover {
    background-color: #222222;
}

.steam .store-icon i {
    color: #ffffff;
    font-size: 26px;
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .download-options {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .download-btn {
        width: 80%;
        max-width: 200px;
    }
}

/* App Store Alert Modal 样式 */
.appstore-alert .modal-content {
    max-width: 400px;
    padding: 30px;
    text-align: center;
}

.alert-content {
    background-color: white;
    border-radius: 15px;
}

.alert-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.alert-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.alert-body h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.alert-body p {
    font-size: 16px;
    color: #666;
} 