/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #e94560;
}

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

/* 导航 */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

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

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

.navbar .nav-links a {
    color: #fff;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
}

.navbar .nav-links a:hover {
    color: #e94560;
    text-decoration: none;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #e94560;
    color: #e94560;
    padding: 6px 12px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.menu-toggle:hover {
    background: #e94560;
    color: #fff;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 12px;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb span {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0066cc;
    transition: color 0.2s;
}

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

/* 首屏 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20%, 20%); }
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    color: #e94560;
    text-shadow: 0 0 20px rgba(233,69,96,0.5);
}

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

.hero .btn {
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 1.1rem;
    display: inline-block;
    transition: 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.hero .btn:hover {
    background: linear-gradient(135deg, #c23152, #a01a3a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,69,96,0.4);
    text-decoration: none;
}

/* 通用区块 */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: #1a1a2e;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #c23152);
    margin: 12px auto 0;
    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: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

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

.card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.card h3 {
    color: #1a1a2e;
    margin-bottom: 12px;
}

.card p {
    color: #555;
}

/* FAQ */
.faq-item {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(233,69,96,0.05);
}

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

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

.faq-answer {
    padding: 0 20px 16px;
    display: none;
    background: rgba(250,250,250,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.faq-answer.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 文章列表 */
.article-list {
    list-style: none;
}

.article-list li {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    transition: padding-left 0.2s;
}

.article-list li:hover {
    padding-left: 10px;
    border-bottom-color: #e94560;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #1a1a2e;
    transition: color 0.2s;
}

.article-list li:hover h4 {
    color: #e94560;
}

.article-list .meta {
    color: #888;
    font-size: 0.85rem;
}

.article-list a {
    color: #0066cc;
    transition: color 0.2s;
}

.article-list a:hover {
    color: #e94560;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
    color: #ccc;
    padding: 40px 0 20px;
}

.footer a {
    color: #aaa;
    transition: color 0.2s;
}

.footer a:hover {
    color: #e94560;
}

.footer .grid-4 h4 {
    color: #e94560;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

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

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    display: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

body.dark-mode .card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ddd;
    border-color: rgba(255,255,255,0.05);
}

body.dark-mode .navbar {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
}

body.dark-mode .breadcrumb {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #333;
}

body.dark-mode .faq-question {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #eee;
}

body.dark-mode .faq-answer {
    background: rgba(37, 37, 37, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0d0d1a, #1a1a2e, #0f3460);
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .article-list h4 {
    color: #e0e0e0;
}

body.dark-mode .article-list li:hover h4 {
    color: #e94560;
}

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

body.dark-mode .article-list li {
    border-bottom-color: #333;
}

body.dark-mode .article-list li:hover {
    border-bottom-color: #e94560;
}

.dark-toggle {
    background: none;
    border: 1px solid #e94560;
    color: #e94560;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.dark-toggle:hover {
    background: #e94560;
    color: #fff;
}

/* SVG占位 */
.svg-placeholder {
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #666;
    font-size: 0.9rem;
}

body.dark-mode .svg-placeholder {
    background: #333;
    color: #aaa;
}

/* 滚动动画 */
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
}