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

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #222;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

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

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.dark .glass {
    background: rgba(20, 20, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #0a0a1a 0%, #101030 50%, #0a1a3a 100%);
}

.card {
    border-radius: 24px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark .card {
    background: #1a1a2e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #e94560;
}

.nav-logo svg {
    width: 40px;
    height: 40px;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.dark .nav-menu a {
    color: #ccc;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e94560;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e94560;
    border-radius: 2px;
}

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

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px 16px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px 4px;
    outline: none;
    color: #333;
    width: 140px;
}

.dark .search-box input {
    color: #eee;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: #e94560;
    font-size: 18px;
}

.dark-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

.dark .dark-toggle {
    color: #f0c040;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.dark .mobile-menu-btn {
    color: #eee;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 0 0 20px 20px;
}

.dark .mobile-menu {
    background: rgba(20, 20, 40, 0.95);
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.dark .mobile-menu a {
    color: #ddd;
    border-color: #333;
}

.banner {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 20px 0;
    height: 500px;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s;
    padding: 40px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: #fff;
    z-index: 2;
}

.banner-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #e94560;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s;
}

.banner-btn:hover {
    transform: scale(1.05);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.banner-dots span.active {
    background: #e94560;
    width: 30px;
    border-radius: 6px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
}

.dark .section-title h2 {
    color: #f0f0f0;
}

.section-title p {
    color: #666;
    margin-top: 8px;
    font-size: 18px;
}

.dark .section-title p {
    color: #aaa;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.article-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
}

.dark .article-card {
    background: #1a1a2e;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card .content {
    padding: 20px;
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.article-card .meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

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

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

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

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 18px 0;
    cursor: pointer;
}

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

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

.faq-question span {
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
    padding-top: 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 16px;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.howto-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #e94560;
}

footer {
    margin-top: 60px;
    padding: 40px 0 20px;
    border-top: 1px solid #e0e0e0;
}

.dark footer {
    border-color: #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-grid h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-grid a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 8px;
}

.dark .footer-grid a {
    color: #aaa;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #999;
}

.dark .footer-bottom {
    border-color: #333;
}

.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #e94560;
    text-decoration: none;
}

.back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

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

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu.open {
        display: flex;
    }
    .banner {
        height: 350px;
    }
    .banner-content h1 {
        font-size: 32px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .search-box input {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 280px;
    }
    .banner-content h1 {
        font-size: 24px;
    }
    .container {
        padding: 0 12px;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

.svg-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #f0f0f5;
}

.dark .svg-img {
    background: #2a2a3e;
}