﻿/* ============================
   GLOBAL RESET
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6;
    background-image: url('assets/images/Lanterns over mounta.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

/* ============================
   NAVIGATION
============================ */
.navbar {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b22222;
}

.nav-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-right a:hover {
    color: #b22222;
}

/* ============================
   HAMBURGER MENU - CRITICAL FIX
============================ */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #b22222;
    position: relative;
    z-index: 1001;
}

/* Mobile Menu - Overlays content from the top */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    z-index: 999;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    padding: 14px 0;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: #b22222;
}

/* ============================
   HERO SECTION - ADJUSTED FOR FIXED NAVBAR
============================ */
.hero {
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-logo {
    width: 150px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c1810;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin: 20px 0;
    color: #555;
}

.hero-btn {
    padding: 12px 28px;
    background: #b22222;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #8b1a1a;
}

/* ============================
   DIVIDERS
============================ */
.sichuan-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #b22222, transparent);
    margin: 40px 20px;
    opacity: 0.4;
}

/* ============================
   SCREENSHOTS
============================ */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.shot img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

/* ============================
   MODULES
============================ */
.modules-heading {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: #2c1810;
}

.modules-heading:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #b22222;
    margin: 15px auto 0;
    border-radius: 2px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.module-card {
    text-align: center;
    transition: transform 0.3s ease;
    background: transparent;
}

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

.module-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.module-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #b22222;
}

.module-card p {
    font-size: 0.75rem;
    color: #666;
}

/* ============================
   FEATURES
============================ */
.features-panel {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px 20px;
    background: rgba(245,235,220,0.85);
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

.features-panel h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c1810;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkmark {
    color: #b22222;
    font-size: 1.2rem;
    font-weight: bold;
}

.feature-item p {
    font-size: 0.85rem;
}

/* ============================
   WHY, ABOUT, FAQ, DOWNLOAD, CONTACT
============================ */
#why, #about, #faq, #download, #contact {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

#why p, .faq-item p {
    text-align: left;
}

.about-logo {
    width: 150px;
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 20px;
    text-align: left;
}

.faq-item h3 {
    color: #b22222;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* ============================
   FORM
============================ */
.form-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.form-group input[type="email"] {
    padding: 12px 18px;
    width: 260px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #b22222;
}

.notify-btn {
    padding: 12px 24px;
    background: #b22222;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.notify-btn:hover {
    background: #8b1a1a;
}

.form-note {
    font-size: 0.7rem;
    margin-top: 12px;
    opacity: 0.6;
}

/* ============================
   SOCIAL LINKS
============================ */
.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a,
.social-links span {
    color: #b22222;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.social-links a:hover,
.social-links span:hover {
    background: #b22222;
    color: white;
}

/* WeChat Popup */
.wechat-info {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.copy-btn {
    background: #b22222;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 8px;
}

.copy-btn:hover {
    background: #8b1a1a;
}

/* ============================
   FOOTER
============================ */
footer {
    text-align: center;
    padding: 30px 20px;
    opacity: 0.8;
}

.footer-logo {
    width: 100px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.75rem;
    margin: 0 5px;
}

.footer-links a:hover {
    color: #b22222;
}

/* ============================
   LEGAL PAGES
============================ */
.page-container {
    max-width: 800px;
    margin: 100px auto 40px;
    padding: 20px;
    line-height: 1.6;
}

.page-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c1810;
}

/* ============================
   ANIMATIONS
============================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

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

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 900px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .image-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-right {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .modules-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 100px 15px 40px;
    }
}

@media (max-width: 550px) {
    .form-group {
        flex-direction: column;
        align-items: center;
    }
    .form-group input {
        width: 90%;
    }
    .image-showcase {
        gap: 20px;
    }
}