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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    background: #0d0d1a;
    color: #e6e6e6;
    line-height: 1.7;
    transition: background 0.4s ease, color 0.4s ease;
}

body.light {
    background: #f0f2f8;
    color: #1a1a2e;
}

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700;
}

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    padding: 14px 0;
    transition: background 0.4s ease;
}

body.light .navbar {
    background: rgba(240, 242, 248, 0.82);
    border-bottom-color: rgba(212, 175, 55, 0.25);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af37, #ffd700, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: #c8c8d0;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

body.light .nav-links a {
    color: #333;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d4af37;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 150px 0 90px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(145deg, #0d0d1a 0%, #1a1a30 40%, #0d0d1a 100%);
}

body.light .hero {
    background: linear-gradient(145deg, #f0f2f8 0%, #e2e4f0 50%, #f0f2f8 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle at 25% 45%, rgba(212, 175, 55, 0.10) 0%, transparent 55%),
                radial-gradient(circle at 75% 55%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
    animation: heroGlow 18s ease-in-out infinite;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af37, #ffd700, #f5c842, #d4af37);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 22px;
    animation: fadeInUp 0.9s ease, shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero p {
    font-size: 21px;
    color: #b0b0b8;
    max-width: 720px;
    margin: 0 auto 40px;
    animation: fadeInUp 1.1s ease;
}

body.light .hero p {
    color: #4a4a5a;
}

.hero .btn {
    display: inline-block;
    padding: 15px 48px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0d0d1a;
    font-size: 19px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: fadeInUp 1.3s ease;
}

.hero .btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #888;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.breadcrumb a {
    color: #d4af37;
}

.breadcrumb span {
    color: #888;
}

/* ===== Section ===== */
.section {
    padding: 85px 0;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 55px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    margin: 16px auto 0;
    border-radius: 3px;
}

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 20px;
    padding: 34px 28px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    animation: fadeInUp 0.7s ease both;
}

body.light .card {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(212, 175, 55, 0.25);
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 18px 48px rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.35);
}

.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.2));
}

.card h3 {
    font-size: 23px;
    margin-bottom: 14px;
    color: #d4af37;
    font-weight: 700;
}

.card p {
    color: #b8b8c4;
    font-size: 15px;
    line-height: 1.7;
}

body.light .card p {
    color: #3a3a4a;
}

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 34px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: background 0.3s ease, transform 0.3s ease;
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.04);
    transform: translateY(-4px);
}

body.light .stat-item {
    background: rgba(0, 0, 0, 0.02);
}

.stat-number {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 17px;
    color: #a8a8b4;
    margin-top: 10px;
}

body.light .stat-label {
    color: #4a4a5a;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    padding: 22px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-item:hover {
    background: rgba(212, 175, 55, 0.02);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 19px;
    font-weight: 600;
    color: #d4af37;
}

.faq-question span {
    transition: transform 0.4s ease;
    font-size: 14px;
}

.faq-item.active .faq-question span {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease;
    color: #b8b8c4;
    font-size: 15px;
    line-height: 1.8;
}

body.light .faq-answer {
    color: #3a3a4a;
}

.faq-item.active .faq-answer {
    max-height: 350px;
    padding-top: 14px;
}

/* ===== Footer ===== */
.footer {
    background: rgba(0, 0, 0, 0.25);
    padding: 65px 0 35px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

body.light .footer {
    background: rgba(0, 0, 0, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 35px;
    margin-bottom: 45px;
}

.footer h4 {
    color: #d4af37;
    font-size: 19px;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer p,
.footer a {
    color: #a8a8b4;
    font-size: 14px;
    line-height: 2.2;
}

body.light .footer p,
body.light .footer a {
    color: #4a4a5a;
}

.footer a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    font-size: 13px;
    color: #777;
}

body.light .footer-bottom {
    color: #666;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border: none;
    border-radius: 50%;
    color: #0d0d1a;
    font-size: 26px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.35s ease;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
}

/* ===== Dark Mode Toggle ===== */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 52px;
    height: 52px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    color: #d4af37;
    font-size: 26px;
    cursor: pointer;
    z-index: 999;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.08);
}

/* ===== Search Bar ===== */
.search-bar {
    display: flex;
    max-width: 520px;
    margin: 0 auto 45px;
}

.search-bar input {
    flex: 1;
    padding: 14px 22px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 40px 0 0 40px;
    background: rgba(255, 255, 255, 0.04);
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.search-bar input:focus {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
}

body.light .search-bar input {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a2e;
}

.search-bar button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border: none;
    border-radius: 0 40px 40px 0;
    color: #0d0d1a;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.search-bar button:hover {
    opacity: 0.9;
}

/* ===== News Grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.news-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.light .news-card {
    background: rgba(0, 0, 0, 0.02);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.1);
}

.news-card h4 {
    color: #d4af37;
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 700;
}

.news-card p {
    color: #b8b8c4;
    font-size: 14px;
    line-height: 1.7;
}

body.light .news-card p {
    color: #3a3a4a;
}

.news-card .date {
    color: #888;
    font-size: 12px;
    margin-top: 12px;
}

/* ===== HowTo ===== */
.howto-step {
    display: flex;
    gap: 22px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.howto-step .step-num {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d0d1a;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.howto-step p {
    color: #b8b8c4;
    font-size: 16px;
    line-height: 1.7;
    padding-top: 8px;
}

body.light .howto-step p {
    color: #3a3a4a;
}

/* ===== Link List ===== */
.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.link-list a {
    color: #888;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-list a:hover {
    color: #d4af37;
}

/* ===== Scroll Animation ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Keyframes ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-12%, -8%) scale(1.05);
    }
}

/* ===== Carousel (minimal) ===== */
.carousel {
    position: relative;
    overflow: hidden;
    padding: 45px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.65s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 24px;
    text-align: center;
}

.carousel-slide img {
    width: 100%;
    max-width: 820px;
    border-radius: 24px;
    margin: 0 auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.15);
    border: none;
    color: #d4af37;
    font-size: 34px;
    padding: 12px 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(13, 13, 26, 0.96);
        flex-direction: column;
        padding: 24px 20px;
        gap: 18px;
        backdrop-filter: blur(16px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    body.light .nav-links {
        background: rgba(240, 242, 248, 0.96);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    .section-title {
        font-size: 30px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 120px 0 70px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .dark-mode-toggle {
        bottom: 20px;
        left: 20px;
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}