/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #0d0d1a;
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 16px;
    transition: background 0.4s ease, color 0.4s ease;
}

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

a:hover {
    color: #99ccff;
}

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

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a40;
    transition: background 0.4s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #ffcc66;
    letter-spacing: 2px;
}

.logo span {
    color: #ffaa33;
}

.nav {
    display: flex;
    gap: 25px;
    font-size: 15px;
}

.nav a {
    color: #ccc;
    transition: color 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffcc66;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #ffcc66;
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #555;
    color: #ccc;
    font-size: 24px;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

.menu-toggle:hover {
    background: #2a2a40;
    color: #ffcc66;
}

/* Breadcrumb */
.breadcrumb {
    background: #1a1a30;
    padding: 12px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #aaa;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ffcc66;
}

.breadcrumb span {
    margin: 0 8px;
}

/* Banner */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

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

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

.banner-content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
    border: 1px solid rgba(255, 204, 102, 0.15);
}

.banner-content h1 {
    font-size: 48px;
    color: #ffcc66;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 20px;
    color: #ddd;
    margin-bottom: 30px;
}

.banner-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffaa33, #ffcc66);
    color: #1a1a2e;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 170, 51, 0.3);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 170, 51, 0.5);
    color: #111;
}

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

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

.banner-indicators span.active {
    background: #ffcc66;
    transform: scale(1.3);
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 32px;
    color: #ffcc66;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffaa33, #ffcc66);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
}

/* Cards */
.card {
    background: rgba(30, 30, 54, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(42, 42, 80, 0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffcc66, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background: rgba(40, 40, 70, 0.9);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    color: #ffcc66;
    margin-bottom: 15px;
    font-size: 20px;
}

.card h4 {
    color: #ffaa33;
    margin: 10px 0;
    font-size: 17px;
}

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

/* About */
.about-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-box p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.9;
}

.info-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.info-item {
    background: rgba(42, 42, 69, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, color 0.3s;
}

.info-item:hover {
    background: #3a3a55;
    color: #ffcc66;
}

/* EEAT */
.eeat-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(30, 30, 54, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(42, 42, 80, 0.6);
    margin-top: 30px;
}

.eeat-info div {
    flex: 1;
    min-width: 180px;
}

.eeat-info strong {
    color: #ffcc66;
    display: block;
    margin-bottom: 5px;
}

.eeat-info span {
    color: #bbb;
    font-size: 14px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #2a2a50;
    padding: 20px 0;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #ffcc66;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #ffaa33;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding-top: 15px;
    color: #bbb;
    line-height: 1.8;
    display: none;
    animation: fadeIn 0.4s ease;
}

.faq-item.open .faq-answer {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HowTo */
.howto-steps {
    list-style: none;
    counter-reset: step;
}

.howto-steps li {
    counter-increment: step;
    padding: 15px 0 15px 50px;
    position: relative;
    border-left: 2px solid #ffaa33;
    margin-left: 20px;
    transition: background 0.3s;
}

.howto-steps li:hover {
    background: rgba(255, 170, 51, 0.05);
}

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: -15px;
    top: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffaa33, #ffcc66);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(255, 170, 51, 0.3);
}

.howto-steps li strong {
    color: #ffcc66;
}

/* Articles */
.article-item {
    padding: 20px 0;
    border-bottom: 1px solid #2a2a50;
    transition: background 0.3s, padding-left 0.3s;
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 10px;
}

.article-item h4 {
    color: #ffcc66;
    font-size: 18px;
    margin-bottom: 8px;
}

.article-item .meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
}

.article-item p {
    color: #bbb;
    font-size: 15px;
    line-height: 1.8;
}

.article-item .read-more {
    color: #ffaa33;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    transition: color 0.3s, transform 0.3s;
}

.article-item .read-more:hover {
    color: #ffcc66;
    transform: translateX(5px);
}

/* Search */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid #444;
    background: rgba(30, 30, 54, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #eee;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    border-color: #ffaa33;
    box-shadow: 0 0 0 3px rgba(255, 170, 51, 0.2);
}

.search-box button {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #ffaa33, #ffcc66);
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 170, 51, 0.4);
}

/* Newsletter */
.newsletter {
    background: rgba(30, 30, 54, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(42, 42, 80, 0.6);
    margin-top: 50px;
}

.newsletter h3 {
    color: #ffcc66;
    margin-bottom: 15px;
}

.newsletter form {
    display: flex;
    max-width: 450px;
    margin: 20px auto 0;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid #444;
    background: #0d0d1a;
    color: #eee;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter input:focus {
    border-color: #ffaa33;
}

.newsletter button {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #ffaa33, #ffcc66);
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.newsletter button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 170, 51, 0.4);
}

/* Footer */
.footer {
    background: #111128;
    padding: 50px 0 30px;
    border-top: 1px solid #2a2a50;
}

.footer .grid-4 {
    color: #bbb;
    font-size: 14px;
}

.footer h4 {
    color: #ffcc66;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer a {
    color: #999;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s, padding-left 0.3s;
}

.footer a:hover {
    color: #ffcc66;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a2a50;
    margin-top: 30px;
    color: #777;
    font-size: 13px;
}

/* Back to Top */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffaa33, #ffcc66);
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}

.back-top.show {
    display: flex;
}

.back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 170, 51, 0.5);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(42, 42, 69, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffcc66;
    border: 1px solid #444;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background 0.3s, transform 0.3s;
}

.dark-mode-toggle:hover {
    background: #3a3a55;
    transform: rotate(20deg);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(13, 13, 26, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid #2a2a40;
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .banner {
        height: 350px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

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

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

    .eeat-info {
        flex-direction: column;
    }

    .newsletter form {
        flex-direction: column;
    }

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

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

/* Scroll Animation Base */
.card,
.article-item,
.faq-item,
.eeat-info,
.howto-steps li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}