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

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

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */
header {
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,215,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 48px;
    height: 48px;
}

.logo span {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: #ccc;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box input {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #444;
    background: rgba(255,255,255,0.08);
    color: #fff;
    width: 180px;
    transition: 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #ffd700;
    width: 220px;
}

.dark-toggle {
    background: none;
    border: 1px solid #555;
    color: #ffd700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.3s;
}

.dark-toggle:hover {
    background: rgba(255,215,0,0.15);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
    }
    nav.open {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .search-box input {
        width: 140px;
    }
}

/* Hero Banner */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #2a1a3e 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,215,0,0.06), transparent 60%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-text {
    flex: 1 1 500px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: #bbb;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255,215,0,0.3);
}

.btn-outline {
    border: 2px solid #ffd700;
    color: #ffd700;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,215,0,0.1);
}

.hero-visual {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    color: #888;
    max-width: 700px;
    margin: 0 auto 48px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: 0.4s;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,215,0,0.1);
}

body.dark .card {
    background: rgba(30,30,50,0.8);
    border-color: rgba(255,215,0,0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card p {
    color: #666;
}

body.dark .card p {
    color: #aaa;
}

.glass-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

body.dark .glass-card {
    background: rgba(20,20,40,0.6);
    border-color: rgba(255,255,255,0.08);
}

/* breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a {
    color: #ffd700;
}

.breadcrumb span {
    color: #aaa;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    cursor: pointer;
}

body.dark .faq-item {
    border-color: #333;
}

.faq-q {
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::after {
    content: '+';
    font-size: 1.6rem;
    transition: 0.3s;
}

.faq-item.open .faq-q::after {
    content: '−';
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s;
    color: #666;
}

body.dark .faq-a {
    color: #aaa;
}

.faq-item.open .faq-a {
    max-height: 400px;
    padding-top: 16px;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 48px 0 24px;
}

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

footer h4 {
    color: #ffd700;
    margin-bottom: 16px;
}

footer a {
    color: #aaa;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-qr {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0;
}

.footer-qr svg {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

/* back to top */
#backTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255,215,0,0.3);
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

#backTop.show {
    opacity: 1;
    visibility: visible;
}

#backTop:hover {
    transform: scale(1.08);
}

/* animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s;
}

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

.count-up {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffd700;
}

/* carousel */
.carousel {
    overflow: hidden;
    position: relative;
}

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

.carousel-item {
    min-width: 100%;
    padding: 0 20px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dot.active {
    background: #ffd700;
    width: 32px;
    border-radius: 20px;
}

/* misc */
.badge {
    display: inline-block;
    background: rgba(255,215,0,0.15);
    color: #ffd700;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

body.dark .article-card {
    background: rgba(30,30,50,0.7);
}

.article-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.article-card .meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.article-card p {
    color: #666;
}

body.dark .article-card p {
    color: #aaa;
}

.read-more {
    color: #ffd700;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
}

.placeholder-img {
    background: linear-gradient(135deg, #2a2a4a, #1a1a3e);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #ffd700;
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}