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

/* 全局变量 */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e0c8d6;
    --accent-color: #c45a7d;
    --light-color: #f8f4f7;
    --dark-color: #121212;
    --text-color: #333;
    --text-light: #777;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 基础样式 */
body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

/* 导航栏样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo .exhibit {
    color: var(--accent-color);
}

.logo .of {
    font-size: 1.2rem;
    margin: 0 5px;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    margin-top: 0;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* 游戏区域样式 */
.game-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.game-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* 游戏访问选项容器 */
.game-access-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.game-option {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.game-option h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.game-container {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* 正确设置iframe样式 */
.game-iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* 全屏按钮样式 */
.fullscreen-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    background-color: rgba(196, 90, 125, 0.9);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.fullscreen-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.fullscreen-button svg {
    width: 16px;
    height: 16px;
}

/* 直接访问区域 */
.direct-access {
    text-align: center;
    padding: 40px 20px;
}

.direct-access p {
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* 大型按钮样式 */
.btn-large {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    margin-top: 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 90, 125, 0.3);
}

.game-notice {
    text-align: center;
    background-color: rgba(196, 90, 125, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 0 auto;
}

/* 加载指示器样式 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(196, 90, 125, 0.3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 隐藏备用iframe */
.backup-iframe {
    display: none !important;
}

/* 关于游戏区域样式 */
.about-section {
    padding: 100px 0;
    background-color: white;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

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

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 游戏控制区域样式 */
.controls-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.controls-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

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

.control-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.control-item:hover {
    transform: translateY(-10px);
}

.control-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(196, 90, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.control-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* 联系我们区域样式 */
.contact-section {
    padding: 100px 0;
    background-color: white;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--accent-color);
    transition: var(--transition);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(196, 90, 125, 0.1);
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.footer-logo .exhibit {
    color: var(--accent-color);
}

.footer-links,
.footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-links h3,
.footer-legal h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-legal h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .game-section h2,
    .about-section h2,
    .controls-section h2,
    .contact-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .game-section h2,
    .about-section h2,
    .controls-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .game-section,
    .about-section,
    .controls-section,
    .contact-section {
        padding: 80px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

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

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

/* 隐私条款和用户协议页面样式 */
.privacy-section,
.terms-section {
    padding: 100px 0;
    background-color: white;
}

.privacy-section h1,
.terms-section h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.privacy-content,
.terms-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.privacy-content p:first-of-type,
.terms-content p:first-of-type {
    text-align: right;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.privacy-content h2,
.terms-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(196, 90, 125, 0.2);
}

.privacy-content h3,
.terms-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.privacy-content p,
.terms-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.privacy-content ul,
.terms-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
}

.privacy-content li::before,
.terms-content li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .privacy-section h1,
    .terms-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .privacy-section,
    .terms-section {
        padding: 80px 0;
    }
    
    .privacy-section h1,
    .terms-section h1 {
        font-size: 2rem;
    }
    
    .privacy-content,
    .terms-content {
        padding: 30px;
    }
    
    .privacy-content h2,
    .terms-content h2 {
        font-size: 1.6rem;
    }
    
    .privacy-content h3,
    .terms-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .privacy-section,
    .terms-section {
        padding: 60px 0;
    }
    
    .privacy-section h1,
    .terms-section h1 {
        font-size: 1.8rem;
    }
    
    .privacy-content,
    .terms-content {
        padding: 20px;
    }
}