/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffffff, #f8f9fa, #e9ecef);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #6b8e23, #556b2f);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid rgba(107, 142, 35, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #6b8e23, #556b2f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #6b8e23, #556b2f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6b8e23;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6b8e23;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: transparent;
    color: #6b8e23;
    border: 2px solid #6b8e23;
}

.btn-login:hover {
    background: #6b8e23;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 142, 35, 0.3);
}

.btn-register {
    background: linear-gradient(45deg, #6b8e23, #556b2f);
    color: #ffffff;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 142, 35, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #6b8e23, #556b2f);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 142, 35, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #6b8e23;
    border: 2px solid #6b8e23;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.btn-secondary:hover {
    background: #6b8e23;
    color: #ffffff;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #6b8e23;
    border: 2px solid #6b8e23;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.btn-outline:hover {
    background: #6b8e23;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #6b8e23, #556b2f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #6c757d;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image {
    flex: 1;
    text-align: center;
    animation: fadeInRight 1s ease 0.6s both;
}

.hero-img {
    max-width: 100%;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

/* 轮播图片样式优化 */
.hero-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-slider-dot.active {
    background: #6b8e23;
    border-color: #6b8e23;
    transform: scale(1.2);
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-slider-nav:hover {
    background: rgba(107, 142, 35, 0.8);
    transform: scale(1.1);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

.hero-slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(248, 249, 250, 0.8);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #6b8e23;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 142, 35, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #6b8e23;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
}

.feature-icon::after {
    content: attr(data-icon);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #6b8e23;
    font-weight: bold;
    white-space: nowrap;
}

.feature-card h3 {
    color: #6b8e23;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #495057;
    line-height: 1.6;
}

/* Games Preview */
.games-preview {
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Game Recommendations Section */
.game-recommendations {
    padding: 80px 0;
    background: rgba(248, 249, 250, 0.6);
}

.recommendations-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.recommendations-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommendation-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 222px;
    height: 300px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    cursor: pointer;
}

.recommendation-slide.active {
    opacity: 1;
}

.recommendation-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(107, 142, 35, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.recommendation-nav:hover {
    background: rgba(107, 142, 35, 1);
    transform: translateY(-50%) scale(1.1);
}

.recommendation-prev {
    left: 0;
}

.recommendation-next {
    right: 0;
}

.recommendation-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recommendation-controls {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.recommendation-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(107, 142, 35, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(107, 142, 35, 0.2);
}

.recommendation-dot.active {
    background: #6b8e23;
    border-color: #6b8e23;
    transform: scale(1.2);
}

.recommendation-dot:hover {
    background: rgba(107, 142, 35, 0.6);
}

.game-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 142, 35, 0.2);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border: 2px solid #6b8e23;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
}

.game-image::after {
    content: attr(data-game);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #6b8e23;
    font-weight: bold;
}

.game-card h3 {
    color: #6b8e23;
    padding: 1rem;
    margin: 0;
}

.game-card p {
    padding: 0 1rem 1rem;
    color: #495057;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: rgba(248, 249, 250, 0.9);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #6b8e23;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #495057;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 0 20px;
    border-top: 2px solid rgba(107, 142, 35, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #6b8e23;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: #495057;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #6b8e23;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 142, 35, 0.1);
    color: #6c757d;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile slider adjustments */
    .hero-slide-title {
        font-size: 2rem;
    }
    
    .hero-slide-subtitle {
        font-size: 1rem;
    }
    
    .hero-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .hero-slider-prev {
        left: 10px;
    }
    
    .hero-slider-next {
        right: 10px;
    }
    
    .hero-slider-controls {
        bottom: 15px;
    }
    
    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Mobile game recommendations adjustments */
    .recommendations-slider {
        padding: 0 40px;
    }
    
    .recommendation-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .recommendation-controls {
        bottom: -30px;
    }
    
    .recommendation-dot {
        width: 8px;
        height: 8px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.footer-section a:focus {
    outline: 2px solid #6b8e23;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000000;
        color: #ffffff;
    }
    
    .btn {
        border: 2px solid #ffffff;
    }
}

/* Additional Page Styles */
.main-content {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

.content-section {
    padding: 60px 0;
}

.page-title {
    font-size: 3rem;
    color: #6b8e23;
    margin-bottom: 1rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 3rem;
}

.last-updated {
    text-align: center;
    color: #888888;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Policy and Terms Content */
.policy-content,
.terms-content,
.disclaimer-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 142, 35, 0.1);
}

.policy-content h2,
.terms-content h2,
.disclaimer-content h2 {
    color: #6b8e23;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

.policy-content h2:first-child,
.terms-content h2:first-child,
.disclaimer-content h2:first-child {
    margin-top: 0;
}

.policy-content p,
.terms-content p,
.disclaimer-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #495057;
}

.policy-content ul,
.terms-content ul,
.disclaimer-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-content li,
.terms-content li,
.disclaimer-content li {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2 {
    color: #6b8e23;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(107, 142, 35, 0.2);
}

.contact-method h3 {
    color: #6b8e23;
    margin-bottom: 1rem;
}

.contact-method p {
    margin-bottom: 0.5rem;
    color: #495057;
}

.support-features {
    margin-top: 2rem;
}

.support-features h3 {
    color: #6b8e23;
    margin-bottom: 1rem;
}

.support-features ul {
    padding-left: 1.5rem;
}

.support-features li {
    margin-bottom: 0.8rem;
    color: #495057;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 142, 35, 0.1);
}

.contact-form-container h2 {
    color: #6b8e23;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid rgba(107, 142, 35, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6b8e23;
    box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #495057;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    color: #6b8e23;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(107, 142, 35, 0.1);
}

.faq-item h3 {
    color: #6b8e23;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #495057;
    line-height: 1.6;
}

/* 404 Error Page */
.error-section {
    text-align: center;
    padding: 100px 0;
}

.error-number {
    font-size: 8rem;
    font-weight: bold;
    color: #6b8e23;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(107, 142, 35, 0.5);
}

.error-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.helpful-links {
    margin-top: 3rem;
}

.helpful-links h2 {
    color: #6b8e23;
    margin-bottom: 2rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.helpful-link {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(107, 142, 35, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.helpful-link:hover {
    transform: translateY(-5px);
    border-color: #6b8e23;
}

.helpful-link h3 {
    color: #6b8e23;
    margin-bottom: 0.5rem;
}

.helpful-link p {
    color: #495057;
    font-size: 0.9rem;
}

.search-section {
    margin-top: 2rem;
}

.search-section h2 {
    color: #6b8e23;
    margin-bottom: 1rem;
}

.search-section p {
    color: #495057;
    margin-bottom: 1rem;
}

.search-section ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    color: #495057;
}

.search-section li {
    margin-bottom: 0.5rem;
}

/* Responsive Design for Additional Pages */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .policy-content,
    .terms-content,
    .disclaimer-content,
    .contact-form-container {
        padding: 1.5rem;
    }
}
