:root {
    --primary: #1a5d1a;
    --primary-dark: #0e3d0e;
    --primary-light: #2a7a2a;
    --secondary: #d32f2f;
    --secondary-dark: #9a0007;
    --secondary-light: #ff6659;
    --light: #f5f5dc;
    --dark: #2c2926;
    --accent: #e8c39e;
    --accent-dark: #d9af82;
    --text: #333333;
    --text-light: #5a5a5a;
    --background: #f8f8f8;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    transition: var(--transition);
}
.logo-img {
    max-height: 48px;
    width: auto;
    margin-right: 8px;
    transition: transform var(--transition);
}
.logo i { margin-right: 12px; color: var(--accent); transition: var(--transition); }
.logo:hover { transform: translateY(-3px); }
.logo:hover i { transform: rotate(15deg); color: var(--secondary-light); }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 25px; position: relative; }
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 10px 15px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: block;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--accent);
    transition: width 0.4s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
}
.hamburger span {
    display: block;
    width: 30px; height: 3px;
    background: var(--accent);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Language switcher */
.language-switcher {
    display: flex;
    margin-left: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.lang-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-btn.active { background: var(--accent); color: var(--primary-dark); }
.lang-btn:hover:not(.active) { background: rgba(255,255,255,0.25); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a { display: flex; align-items: center; }
.dropdown > a i { margin-left: 5px; font-size: 0.8rem; transition: transform 0.3s ease; }
.dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    background: var(--primary-dark);
    min-width: 220px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { margin: 0; padding: 0; }
.dropdown-menu a {
    padding: 12px 20px;
    border-radius: 0;
    transition: background 0.3s;
    display: block;
    font-size: 0.95rem;
    position: relative;
}
.dropdown-menu a::after { content: none; }
.dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%),
                url('static/bg.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    z-index: 1;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Image slider */
.about-image.slider {
    position: relative;
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}
.about-image.slider .slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.about-image.slider .slide.active { opacity: 1; }
.about-image.slider .control {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.4);
    color: #fff; border: none; border-radius: 50%;
    cursor: pointer; z-index: 3;
    transition: background .3s;
}
.about-image.slider .control:hover { background: rgba(0,0,0,.6); }
.about-image.slider .prev { left: 12px; }
.about-image.slider .next { right: 12px; }

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4); }
.btn:hover::after { transform: translateX(100%); }
.btn i { margin-left: 8px; transition: var(--transition); }
.btn:hover i { transform: translateX(5px); }

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; color: var(--primary); position: relative; }
.section-title h2 { font-size: 2.2rem; display: inline-block; position: relative; padding-bottom: 15px; }
.section-title h2::after {
    content: '';
    display: block;
    width: 80px; height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 15px auto 0;
    border-radius: 3px;
}

/* About */
.about-content { display: flex; gap: 40px; align-items: center; }
.about-text { flex: 1; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary-dark); }
.about-text p { margin-bottom: 20px; font-size: 1rem; line-height: 1.8; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.feature-item { display: flex; align-items: flex-start; }
.feature-item i { font-size: 1.5rem; color: var(--secondary); margin-right: 15px; min-width: 40px; }
.feature-text h4 { margin-bottom: 8px; color: var(--primary); }
.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    height: auto;
}
.about-image img { width: 100%; height: auto; display: block; transition: transform 0.8s ease; }
.about-image:hover img { transform: scale(1.05); }

/* Rules */
.rules { background-color: var(--light); position: relative; overflow: hidden; }
.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}
.rule-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--secondary);
}
.rule-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.rule-card h3 { color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; font-size: 1.4rem; }
.rule-card h3 i { margin-right: 10px; color: var(--secondary); font-size: 1.5rem; }
.rule-card ul { padding-left: 20px; }
.rule-card li { margin-bottom: 8px; position: relative; padding-left: 15px; }
.rule-card li::before { content: '•'; color: var(--secondary); font-weight: bold; position: absolute; left: 0; top: 0; }

/* Contact */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.contact-item {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}
.contact-item:hover { transform: translateY(-5px); }
.contact-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; transition: var(--transition); }
.contact-item h3 { margin-bottom: 15px; color: var(--primary-dark); font-size: 1.4rem; }
.contact-item p { margin-bottom: 25px; color: var(--text-light); font-size: 1rem; }

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark), #1e1b18);
    color: white;
    padding: 60px 0 30px;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h3 { margin-bottom: 20px; position: relative; padding-bottom: 10px; font-size: 1.3rem; }
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}
.footer-column p { color: #bbb; margin-bottom: 20px; line-height: 1.8; font-size: 0.95rem; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; display: flex; align-items: center; }
.footer-column ul li i { color: var(--accent); margin-right: 10px; width: 24px; font-size: 1rem; }
.footer-column a { color: #ddd; text-decoration: none; transition: all 0.3s ease; display: inline-block; font-size: 0.95rem; }
.footer-column a:hover { color: var(--accent); transform: translateX(5px); }

.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1rem;
}
.social-icons a:hover { background: var(--secondary); transform: translateY(-5px); }

.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #aaa; }

/* WeChat modal */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.wechat-modal.active { display: flex; opacity: 1; }
.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%; max-width: 800px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.modal-content.active { transform: translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #888; cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: var(--secondary); }
.modal-title { text-align: center; margin-bottom: 30px; color: var(--primary); font-size: 1.8rem; font-family: 'Noto Serif SC', serif; }
.qr-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.qr-item { text-align: center; flex: 1; min-width: 300px; }
.qr-title { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-dark); font-weight: 600; }
.qr-image {
    width: 220px; height: 220px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-image img { max-width: 200px; max-height: 200px; }
.qr-name { margin-top: 15px; font-size: 1.1rem; color: var(--text); font-weight: 500; }
.qr-note { text-align: center; margin-top: 30px; font-size: 0.95rem; color: var(--text-light); font-style: italic; }

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .about-content { flex-direction: column; }
    .about-image { width: 100%; max-width: 600px; margin-top: 40px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s ease;
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links li { margin: 0; width: 100%; }
    .nav-links a { display: block; padding: 15px 30px; border-radius: 0; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 1.8rem; }
    .features { grid-template-columns: 1fr; }

    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1; visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown > a i { transform: rotate(0); }
    .dropdown.active > a i { transform: rotate(180deg); }
    .dropdown-menu li { padding-left: 20px; }
    .dropdown-menu a { padding: 10px 30px; font-size: 0.95rem; }
    .language-switcher { margin: 15px auto; width: 100px; }

    .qr-container { flex-direction: column; align-items: center; }
    .qr-item { min-width: auto; }
    .modal-content { padding: 20px; }
    .modal-title { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 1.8rem; }
    .btn { padding: 12px 25px; font-size: 0.9rem; }
}
