/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #f5f7fa;
    color: #222;
    line-height: 1.6;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    text-decoration: underline;
}

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

/* ===== 导航吸顶 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e94560;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(233, 69, 96, 0.4);
}

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

.nav-links a {
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
}
.nav-links a:hover {
    background: #e94560;
    text-decoration: none;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.6);
    font-size: 0.9rem;
}
.breadcrumb span {
    color: #666;
}
.breadcrumb a {
    color: #1a73e8;
    font-weight: 500;
}

/* ===== 首屏 Hero ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15), transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #e94560;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(233, 69, 96, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.35);
    position: relative;
    z-index: 1;
}
.hero .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(233, 69, 96, 0.5);
    text-decoration: none;
}

/* ===== Banner轮播 ===== */
.banner-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0f3460, #1a1a2e);
    color: #fff;
    padding: 30px 0;
    min-height: 220px;
}

.slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    padding: 50px 20px 60px;
    text-align: center;
}
.slide h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slide p {
    font-size: 1.1rem;
    opacity: 0.85;
}

.slider-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.2s;
}
.slider-dot.active {
    opacity: 1;
    transform: scale(1.2);
}
.slider-dot:hover {
    opacity: 0.7;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    z-index: 2;
}
.slider-btn:hover {
    background: rgba(233, 69, 96, 0.7);
    transform: translateY(-50%) scale(1.05);
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* ===== 通用 Section ===== */
section {
    padding: 50px 0;
}

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

.section-title h2 {
    font-size: 2rem;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-weight: 700;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    border-radius: 2px;
}

/* ===== 网格布局 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== 卡片 (毛玻璃 + 圆角 + hover) ===== */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.card h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}
.card .date {
    color: #999;
    font-size: 0.85rem;
    margin-top: 12px;
}
.card .read-more {
    color: #e94560;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
    transition: color 0.2s;
}
.card .read-more:hover {
    color: #d63851;
    text-decoration: underline;
}

/* ===== SVG图片样式 ===== */
.svg-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}
.card:hover .svg-img {
    transform: scale(1.05);
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid rgba(224, 224, 224, 0.6);
    padding: 16px 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.faq-question:hover {
    color: #e94560;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: #e94560;
    font-weight: 300;
}
.faq-question.open::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding-top: 0;
    color: #444;
    line-height: 1.7;
}
.faq-answer.show {
    max-height: 500px;
    padding-top: 12px;
}

/* ===== HowTo ===== */
.howto-step {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #e94560;
    transition: transform 0.2s, box-shadow 0.2s;
}
.howto-step:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.howto-step h4 {
    color: #1a1a2e;
    margin-bottom: 6px;
    font-size: 1.05rem;
}
.howto-step p {
    color: #444;
    line-height: 1.7;
}

/* ===== 联系方式 ===== */
.contact-info {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.contact-info h2 {
    color: #e94560;
    margin-bottom: 20px;
}
.contact-info p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.6;
}
.contact-info a {
    color: #e94560;
    font-weight: 500;
}

/* ===== 页脚 ===== */
footer {
    background: #0f3460;
    color: #ccc;
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}
footer a {
    color: #e94560;
    transition: color 0.2s;
}
footer a:hover {
    color: #ff6b81;
}
footer .links {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}
footer .links a {
    font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}
#back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(233, 69, 96, 0.5);
}

/* ===== 暗黑模式 ===== */
.dark-mode {
    background: #121212;
    color: #e0e0e0;
}
.dark-mode .card,
.dark-mode .howto-step,
.dark-mode .breadcrumb {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.05);
}
.dark-mode .card h3,
.dark-mode .howto-step h4 {
    color: #f0f0f0;
}
.dark-mode .card p,
.dark-mode .howto-step p,
.dark-mode .faq-answer {
    color: #bbb;
}
.dark-mode .section-title h2 {
    color: #f0f0f0;
}
.dark-mode .navbar {
    background: rgba(13, 13, 26, 0.95);
}
.dark-mode .contact-info {
    background: #0d0d1a;
}
.dark-mode footer {
    background: #0a0a14;
}
.dark-mode .faq-item {
    border-color: rgba(255,255,255,0.08);
}
.dark-mode .breadcrumb span {
    color: #aaa;
}

/* 暗黑模式切换按钮 */
.dark-mode-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.dark-mode-toggle:hover {
    background: #e94560;
    transform: scale(1.05);
}

/* ===== 搜索 ===== */
.search-box {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}
.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(204, 204, 204, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}
.search-box button {
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.search-box button:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 12px rgba(233, 69, 96, 0.3);
}

/* ===== 滚动动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 数字动画 ===== */
.number-animate {
    font-size: 2rem;
    font-weight: 700;
    color: #e94560;
    display: inline-block;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(12px);
        padding: 12px 0;
        border-radius: 0 0 12px 12px;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a {
        padding: 10px 20px;
        border-radius: 0;
    }
    .menu-toggle {
        display: block;
    }

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

    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }

    .slide h2 {
        font-size: 1.5rem;
    }
    .slide p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .dark-mode-toggle {
        top: 70px;
        right: 10px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .search-box input {
        width: 120px !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    .card {
        padding: 18px;
    }
    .banner-slider {
        min-height: 180px;
    }
    .slide {
        padding: 30px 15px 50px;
    }
}