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

:root {
    /* 大地色调配色方案 */
    --primary-color: #8B4513; /* 马鞍棕色 */
    --secondary-color: #D2691E; /* 巧克力色 */
    --accent-color: #CD853F; /* 秘鲁色 */
    --light-accent: #DEB887; /* 结实的木色 */
    --dark-brown: #654321; /* 深棕色 */
    --cream: #F5F5DC; /* 米色 */
    --light-cream: #FAF8F3; /* 浅米色 */
    --text-dark: #2C1810; /* 深咖啡色 */
    --text-medium: #5D4037; /* 中咖啡色 */
    --text-light: #8D6E63; /* 浅咖啡色 */
    --white: #FFFFFF;
    --shadow: rgba(139, 69, 19, 0.15);
    --shadow-hover: rgba(139, 69, 19, 0.25);
    --gradient-primary: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    --gradient-secondary: linear-gradient(135deg, #CD853F 0%, #DEB887 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #FAF8F3 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #FAF8F3 0%, #F5F5DC 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: var(--gradient-primary);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
.main-content {
    margin-top: 80px;
}

/* 欢迎区域 */
.welcome-section {
    padding: 4rem 0 2rem;
    text-align: center;
    background: var(--gradient-secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.welcome-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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.welcome-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 游戏区域 */
.games-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* 游戏网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 游戏卡片 */
.game-card {
    background: var(--gradient-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(205, 133, 63, 0.1);
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-hover);
    border-color: var(--accent-color);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.game-image-container {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-content {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.game-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-play-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--cream);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light-accent);
}

.footer-description {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-accent);
}

.footer-contact {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--gradient-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-content {
        padding: 1.2rem;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
}

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

.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 页面头部样式 */
.page-header {
    padding: 3rem 0;
    text-align: center;
    background: var(--gradient-secondary);
    color: var(--white);
    margin-top: 80px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 关于页面样式 */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-heading {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.features-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
}

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

.feature-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--text-medium);
    line-height: 1.6;
}

.team-section {
    padding: 4rem 0;
    background: var(--light-cream);
}

.mission-text {
    font-size: 1.3rem;
    text-align: center;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

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

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--text-medium);
    line-height: 1.6;
}

/* 联系页面样式 */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-heading {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
}

.method-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.method-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.method-description {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.method-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.method-link:hover {
    text-decoration: underline;
}

.form-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(205, 133, 63, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.form-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
}

.faq-section {
    padding: 4rem 0;
    background: var(--light-cream);
}

.faq-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
}

.faq-question {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--text-medium);
    line-height: 1.7;
}

/* 政策页面样式 */
.policy-content {
    padding: 4rem 0;
}

.policy-text {
    max-width: 900px;
    margin: 0 auto;
}

.policy-intro {
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-accent);
}

.policy-paragraph {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.policy-list {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.policy-list li {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.policy-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-list a:hover {
    text-decoration: underline;
}

/* 游戏详情页样式 */
.game-detail-section {
    padding: 4rem 0;
    min-height: calc(100vh - 80px);
}

.game-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.game-detail-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-button {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3);
}

.game-detail-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.game-detail-image-container {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px var(--shadow);
}

.game-detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.game-detail-description {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
    margin-bottom: 2rem;
}

.description-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.description-text {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.1rem;
}

.game-detail-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.play-now-button {
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.play-now-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.4);
}

.share-button {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3);
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(210, 105, 30, 0.4);
}

.game-detail-sidebar {
    position: sticky;
    top: 120px;
}

.related-games {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
    margin-bottom: 2rem;
}

.related-games-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-games-grid {
    display: grid;
    gap: 1rem;
}

.related-game-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.related-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.related-game-link {
    text-decoration: none;
    display: block;
    padding: 1rem;
}

.related-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.related-game-title {
    font-size: 1rem;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
}

.game-info {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
}

.game-info-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.game-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(205, 133, 63, 0.1);
}

.game-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
}

.info-value {
    color: var(--text-medium);
    font-weight: 500;
}

/* 响应式设计增强 */
@media screen and (max-width: 1024px) {
    .game-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-detail-sidebar {
        position: static;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .game-detail-title {
        font-size: 2.5rem;
        word-break: break-all;
    }
    
    .game-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .game-detail-actions {
        flex-direction: column;
    }
    
    .play-now-button,
    .share-button {
        width: 100%;
        justify-content: center;
    }
    
    .about-heading,
    .contact-heading {
        font-size: 2rem;
    }
    
    .policy-heading {
        font-size: 1.8rem;
    }
}