/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: #f8f9fa;
    color: #222;
    line-height: 1.7;
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
}

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

/* 导航栏 - 毛玻璃+渐变 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 0;
    transition: box-shadow 0.3s, background 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.nav-links a {
    color: #eee;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-links a:hover {
    background: rgba(233, 69, 96, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding-top: 10px;
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* 面包屑 */
.breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #666;
    transition: background 0.3s;
}

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

.breadcrumb span {
    color: #999;
}

/* 通用标题 */
h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #1a1a2e;
    border-left: 5px solid #e94560;
    padding-left: 15px;
    transition: color 0.3s;
}

h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #16213e;
}

h4 {
    font-size: 1.15rem;
    margin: 20px 0 10px;
    color: #333;
}

/* Banner - 渐变+毛玻璃装饰 */
.banner {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 60%);
    animation: bannerGlow 8s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

.banner h1 {
    color: #fff;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 15px auto 30px;
    color: #ccc;
    position: relative;
    z-index: 1;
}

.banner .btn {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.banner .btn:hover {
    background: #c23152;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.banner-slide {
    display: none;
    animation: fadeSlide 0.6s ease;
}

.banner-slide.active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片 - 毛玻璃效果+圆角+悬停 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.card svg {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    fill: #e94560;
    transition: transform 0.3s;
}

.card:hover svg {
    transform: rotate(10deg) scale(1.1);
}

.card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.card p {
    color: #555;
    font-size: 0.95rem;
}

/* 文章列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.article-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.article-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

.article-item p {
    color: #555;
    font-size: 0.95rem;
}

.article-item a {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.article-item a:hover {
    color: #c23152;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    transition: border-color 0.3s;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    color: #1a1a2e;
    transition: color 0.3s;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: #e94560;
    transition: transform 0.3s, content 0.3s;
}

.faq-item.open .faq-question::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: #555;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 10px;
}

/* HowTo */
.howto-step {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.howto-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.howto-step:hover .step-num {
    transform: scale(1.1);
}

.howto-step .step-content {
    flex: 1;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 50px;
    transition: background 0.3s;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

footer h4 {
    color: #fff;
    margin-bottom: 12px;
}

footer a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
}

footer a:hover {
    color: #e94560;
    transform: translateX(3px);
}

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

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e94560;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

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

.back-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

/* 数字动画 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
    margin: 30px 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e94560;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

/* 暗黑模式 */
.dark-mode {
    background: #121212;
    color: #eee;
}

.dark-mode .card,
.dark-mode .article-item,
.dark-mode .howto-step,
.dark-mode .stat-item {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .breadcrumb {
    background: #1e1e1e;
    border-color: #333;
    color: #bbb;
}

.dark-mode .breadcrumb a {
    color: #e94560;
}

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

.dark-mode .faq-question {
    color: #eee;
}

.dark-mode .faq-answer {
    color: #bbb;
}

.dark-mode .navbar {
    background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark-mode footer {
    background: #0d0d1a;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
    color: #eee;
}

.dark-mode .banner {
    background: linear-gradient(135deg, #0a0a1a, #111);
}

.dark-mode .banner::before {
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 60%);
}

.dark-mode-toggle {
    background: transparent;
    border: 2px solid #e94560;
    color: #e94560;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    background: #e94560;
    color: #fff;
    transform: scale(1.05);
}

/* 站内搜索 */
.search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-box input {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    width: 180px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: border-color 0.3s, width 0.3s;
}

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

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box button {
    background: #e94560;
    color: #fff;
    border: 0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.search-box button:hover {
    background: #c23152;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-box input {
        width: 120px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .banner h1 {
        font-size: 1.8rem;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 图片懒加载占位 */
.lazy-placeholder {
    background: #e9ecef;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 友情链接样式增强 */
section a[style*="color: #e94560"] {
    transition: color 0.2s, transform 0.2s;
}

section a[style*="color: #e94560"]:hover {
    color: #c23152;
    transform: translateY(-1px);
}

/* 联系我们卡片内文字 */
.card h4 + p,
.card p {
    margin-bottom: 6px;
}

/* 响应式微调 */
@media (max-width: 480px) {
    .banner {
        padding: 40px 0;
    }
    .banner h1 {
        font-size: 1.5rem;
    }
    .banner p {
        font-size: 1rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .howto-step {
        flex-direction: column;
        align-items: flex-start;
    }
}