/* 全局重置 & 基础 */
* {
    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: #fff;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}
a {
    color: #ff6b81;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 导航吸顶 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240, 240, 240, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: background 0.3s;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b81;
    text-shadow: 0 2px 4px rgba(255, 107, 129, 0.15);
}
.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.nav-links a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.nav-links a:hover {
    color: #ff6b81;
    border-bottom-color: #ff6b81;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* 渐变 Banner 轮播 */
.banner {
    position: relative;
    overflow: hidden;
    height: 420px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 30%, #f48fb1 70%, #f06292 100%);
    border-radius: 0 0 24px 24px;
}
.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.banner-slide.active {
    opacity: 1;
}
.banner-content {
    text-align: center;
    max-width: 700px;
}
.banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: #c2185b;
    text-shadow: 0 2px 8px rgba(194, 24, 91, 0.15);
}
.banner-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 24px;
}
.banner-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b81, #e0556a);
    color: #fff;
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 129, 0.3);
}
.banner-btn:hover {
    background: linear-gradient(135deg, #e0556a, #c9445c);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 129, 0.4);
    text-decoration: none;
}
.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.6);
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.banner-dots span.active {
    background: #ff6b81;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 107, 129, 0.5);
}

/* 通用标题 */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 60px 0 20px;
    color: #c2185b;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b81, #f06292);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* 卡片网格 - 毛玻璃效果 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}
.card {
    background: rgba(250, 250, 250, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 240, 240, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
    border-color: rgba(255, 107, 129, 0.2);
}
.card h3 {
    font-size: 1.2rem;
    color: #c2185b;
    margin-bottom: 12px;
}
.card p {
    color: #555;
    font-size: 0.95rem;
}

/* 文章列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}
.article-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(238, 238, 238, 0.6);
    transition: all 0.3s ease;
}
.article-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}
.article-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
}
.article-item .meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}
.article-item p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.article-item .read-more {
    color: #ff6b81;
    font-weight: 500;
    transition: 0.2s;
}
.article-item .read-more:hover {
    color: #e0556a;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 30px auto;
}
.faq-item {
    border-bottom: 1px solid rgba(238, 238, 238, 0.6);
    padding: 16px 0;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    transition: 0.2s;
}
.faq-question:hover {
    color: #ff6b81;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #555;
    font-size: 0.95rem;
    padding-top: 0;
}
.faq-answer.open {
    max-height: 500px;
    padding-top: 12px;
}
.faq-toggle {
    font-size: 1.2rem;
    color: #ff6b81;
    transition: 0.3s;
}

/* HowTo */
.howto-section {
    background: rgba(249, 249, 249, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(240, 240, 240, 0.4);
}
.howto-section ol,
.howto-section ul {
    margin-left: 20px;
    margin-bottom: 16px;
    color: #444;
}
.howto-section li {
    margin-bottom: 8px;
}
.howto-section h3 {
    color: #c2185b;
    margin: 24px 0 12px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #222, #1a1a2e);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.footer h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer a {
    color: #bbb;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    transition: 0.2s;
}
.footer a:hover {
    color: #ff6b81;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(68, 68, 68, 0.6);
    margin-top: 20px;
    font-size: 0.85rem;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b81, #e0556a);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(255, 107, 129, 0.3);
}
.back-top.show {
    opacity: 1;
    visibility: visible;
}
.back-top:hover {
    background: linear-gradient(135deg, #e0556a, #c9445c);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 129, 0.4);
}

/* 暗黑模式 */
body.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}
body.dark .navbar {
    background: rgba(22, 33, 62, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(42, 42, 74, 0.6);
}
body.dark .nav-links a {
    color: #e0e0e0;
}
body.dark .nav-links a:hover {
    color: #ff6b81;
}
body.dark .card {
    background: rgba(30, 42, 58, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(42, 58, 74, 0.6);
}
body.dark .card h3 {
    color: #f48fb1;
}
body.dark .card p {
    color: #bbb;
}
body.dark .article-item {
    background: rgba(30, 42, 58, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-color: rgba(42, 58, 74, 0.6);
}
body.dark .article-item h3 {
    color: #e0e0e0;
}
body.dark .article-item p {
    color: #bbb;
}
body.dark .footer {
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
}
body.dark .banner {
    background: linear-gradient(135deg, #2a1a2a 0%, #3a1a3a 50%, #4a1a3a 100%);
}
body.dark .banner-content h2 {
    color: #f48fb1;
}
body.dark .banner-content p {
    color: #ccc;
}
body.dark .faq-item {
    border-color: rgba(42, 58, 74, 0.6);
}
body.dark .faq-question {
    color: #e0e0e0;
}
body.dark .faq-answer {
    color: #bbb;
}
body.dark .howto-section {
    background: rgba(30, 42, 58, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(42, 58, 74, 0.4);
}
body.dark .howto-section ol,
body.dark .howto-section ul {
    color: #ccc;
}
body.dark .howto-section h3 {
    color: #f48fb1;
}
body.dark .section-title {
    color: #f48fb1;
}
body.dark .section-title::after {
    background: linear-gradient(90deg, #ff6b81, #f06292);
}
body.dark .stat-number {
    color: #f48fb1;
}
body.dark .stat-label {
    color: #bbb;
}
body.dark .breadcrumb a {
    color: #ff6b81;
}
body.dark .breadcrumb span {
    color: #999;
}
.dark-toggle {
    background: none;
    border: 1px solid rgba(221, 221, 221, 0.6);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: 0.2s;
}
.dark-toggle:hover {
    border-color: #ff6b81;
}
body.dark .dark-toggle {
    color: #eee;
    border-color: rgba(85, 85, 85, 0.6);
}
body.dark .dark-toggle:hover {
    border-color: #ff6b81;
}

/* 搜索 */
.search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}
.search-box input {
    border: 1px solid rgba(221, 221, 221, 0.6);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.9rem;
    outline: none;
    width: 160px;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.search-box input:focus {
    border-color: #ff6b81;
    box-shadow: 0 0 0 2px rgba(255, 107, 129, 0.15);
}
body.dark .search-box input {
    background: rgba(30, 42, 58, 0.8);
    border-color: rgba(85, 85, 85, 0.6);
    color: #e0e0e0;
}
.search-box button {
    background: linear-gradient(135deg, #ff6b81, #e0556a);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    transition: 0.2s;
}
.search-box button:hover {
    background: linear-gradient(135deg, #e0556a, #c9445c);
    transform: translateY(-1px);
}

/* 数字动画 */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #c2185b;
    transition: 0.3s;
}
.stat-label {
    color: #666;
    font-size: 0.95rem;
}

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

/* 图片懒加载占位 */
.lazy-placeholder {
    background: rgba(240, 240, 240, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    color: #aaa;
    font-size: 0.9rem;
}
body.dark .lazy-placeholder {
    background: rgba(30, 42, 58, 0.6);
    color: #888;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: #999;
    padding: 16px 0;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: #ff6b81;
    transition: 0.2s;
}
.breadcrumb a:hover {
    color: #e0556a;
}
.breadcrumb span {
    color: #999;
}

/* 响应式 */
@media (max-width: 600px) {
    .banner {
        height: 300px;
    }
    .banner-content h2 {
        font-size: 1.5rem;
    }
    .stats {
        gap: 30px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .article-list {
        grid-template-columns: 1fr;
    }
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .back-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 友情链接区域 */
.fade-in a {
    transition: 0.2s;
}
.fade-in a:hover {
    color: #e0556a;
}