/* 全局重置与基础 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); 
    color: #2c3e50; 
    line-height: 1.6; 
    transition: background 0.3s, color 0.3s; 
    min-height: 100vh;
}
body.dark { 
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); 
    color: #e0e0e0; 
}

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

/* 头部 - 渐变玻璃效果 */
header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
}
.logo { 
    font-size: 28px; 
    font-weight: bold; 
    color: #fff; 
    text-decoration: none; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}
.logo span { color: #ffd700; }
nav { display: flex; gap: 25px; flex-wrap: wrap; }
nav a { 
    color: #fff; 
    text-decoration: none; 
    font-size: 16px; 
    padding: 8px 20px; 
    border-radius: 50px; 
    transition: all 0.3s; 
    position: relative;
    overflow: hidden;
}
nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s;
    border-radius: 50px;
}
nav a:hover::before { left: 0; }
nav a:hover { 
    background: rgba(255,255,255,0.15); 
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}
.menu-toggle { 
    display: none; 
    background: rgba(255,255,255,0.15); 
    border: 1px solid rgba(255,255,255,0.3); 
    color: #fff; 
    font-size: 28px; 
    cursor: pointer; 
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.3s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.25); }

/* 英雄区 - 渐变Banner */
.hero { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); 
    padding: 100px 0; 
    text-align: center; 
    color: #fff; 
    border-radius: 0 0 50px 50px; 
    margin-bottom: 50px; 
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}
.hero h1 { 
    font-size: 52px; 
    margin-bottom: 25px; 
    text-shadow: 3px 3px 12px rgba(0,0,0,0.3); 
    position: relative;
    z-index: 1;
}
.hero p { 
    font-size: 22px; 
    max-width: 700px; 
    margin: 0 auto 35px; 
    opacity: 0.95; 
    position: relative;
    z-index: 1;
}
.hero .btn { 
    background: linear-gradient(135deg, #ffd700, #ffaa00); 
    color: #333; 
    padding: 18px 50px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 20px; 
    transition: all 0.3s; 
    display: inline-block; 
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}
.hero .btn:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(255,215,0,0.5); 
    background: linear-gradient(135deg, #ffaa00, #ff8800);
}

/* 通用区块 */
.section { margin: 60px 0; }
.section h2 { 
    font-size: 36px; 
    margin-bottom: 35px; 
    text-align: center; 
    position: relative; 
    padding-bottom: 20px; 
    color: #2c3e50;
}
body.dark .section h2 { color: #e0e0e0; }
.section h2::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100px; 
    height: 5px; 
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb); 
    border-radius: 3px; 
}

/* 卡片 - 毛玻璃效果 + 圆角 */
.card { 
    background: rgba(255,255,255,0.7); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px; 
    padding: 30px; 
    margin-bottom: 30px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    transition: all 0.4s; 
    border: 1px solid rgba(255,255,255,0.3);
}
body.dark .card { 
    background: rgba(30,30,60,0.6); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); 
    border: 1px solid rgba(255,255,255,0.05);
}
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); 
    border-color: rgba(102,126,234,0.3);
}
body.dark .card:hover { 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
    border-color: rgba(102,126,234,0.2);
}

/* 网格布局 */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

/* 面包屑 */
.breadcrumb { 
    background: rgba(255,255,255,0.7); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px; 
    border-radius: 15px; 
    margin-bottom: 30px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    border: 1px solid rgba(255,255,255,0.3);
}
body.dark .breadcrumb { 
    background: rgba(42,42,78,0.6); 
    border: 1px solid rgba(255,255,255,0.05);
}
.breadcrumb a { color: #667eea; text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: #764ba2; }
.breadcrumb span { color: #999; }

/* FAQ */
.faq-item { 
    border-bottom: 1px solid rgba(0,0,0,0.08); 
    padding: 18px 0; 
    transition: background 0.3s;
}
body.dark .faq-item { border-color: rgba(255,255,255,0.08); }
.faq-item:hover { background: rgba(102,126,234,0.03); }
body.dark .faq-item:hover { background: rgba(102,126,234,0.05); }
.faq-question { 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 18px;
    color: #2c3e50;
}
body.dark .faq-question { color: #e0e0e0; }
.faq-question span { 
    font-size: 24px; 
    transition: transform 0.3s; 
    color: #667eea;
}
.faq-item.active .faq-question span { transform: rotate(45deg); }
.faq-answer { 
    padding-top: 15px; 
    display: none; 
    color: #555;
    line-height: 1.8;
}
body.dark .faq-answer { color: #bbb; }
.faq-item.active .faq-answer { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HowTo 步骤 */
.howto-step { 
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
    margin-bottom: 25px; 
    padding: 15px;
    border-radius: 15px;
    transition: background 0.3s;
}
.howto-step:hover { background: rgba(102,126,234,0.05); }
body.dark .howto-step:hover { background: rgba(102,126,234,0.08); }
.howto-step .step-num { 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    color: #fff; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    flex-shrink: 0; 
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(102,126,234,0.3);
}

/* 文章卡片 */
.article-card { 
    background: rgba(255,255,255,0.7); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px; 
    overflow: hidden; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    transition: all 0.4s; 
    border: 1px solid rgba(255,255,255,0.3);
}
body.dark .article-card { 
    background: rgba(42,42,78,0.6); 
    border: 1px solid rgba(255,255,255,0.05);
}
.article-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); 
}
.article-card img { width: 100%; height: 220px; object-fit: cover; }
.article-card .content { padding: 25px; }
.article-card h3 { 
    margin-bottom: 12px; 
    font-size: 22px;
    color: #2c3e50;
}
body.dark .article-card h3 { color: #e0e0e0; }
.article-card p { 
    color: #555; 
    font-size: 15px; 
    line-height: 1.7;
}
body.dark .article-card p { color: #bbb; }

/* 相关链接 */
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a { 
    background: rgba(240,240,240,0.7); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 20px; 
    border-radius: 50px; 
    text-decoration: none; 
    color: #333; 
    font-size: 14px; 
    transition: all 0.3s; 
    border: 1px solid rgba(0,0,0,0.05);
}
body.dark .related-links a { 
    background: rgba(58,58,94,0.6); 
    color: #e0e0e0; 
    border: 1px solid rgba(255,255,255,0.05);
}
.related-links a:hover { 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

/* 页脚 */
footer { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    color: #ccc; 
    padding: 60px 0 30px; 
    margin-top: 80px; 
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #1a1a2e);
}
footer a { color: #aaa; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: #ffd700; }
footer .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer h3 { 
    color: #fff; 
    margin-bottom: 20px; 
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}
footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 25px; 
    margin-top: 40px; 
    text-align: center; 
    font-size: 14px; 
}
.footer-bottom p { margin-bottom: 8px; }

/* 回到顶部 */
.back-to-top { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    color: #fff; 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); 
    transition: all 0.3s; 
    z-index: 999; 
    display: none; 
    font-size: 24px;
    border: 2px solid rgba(255,255,255,0.2);
}
.back-to-top:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 30px rgba(102,126,234,0.5); 
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* 暗黑模式切换按钮 */
.dark-toggle { 
    position: fixed; 
    top: 100px; 
    right: 20px; 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    color: #fff; 
    border: none; 
    padding: 12px 18px; 
    border-radius: 50px; 
    cursor: pointer; 
    z-index: 999; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); 
    transition: all 0.3s;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.2);
}
.dark-toggle:hover { 
    transform: scale(1.1); 
    box-shadow: 0 6px 25px rgba(102,126,234,0.4);
}

/* 搜索框 */
.search-box { display: flex; gap: 12px; margin: 25px 0; }
.search-box input { 
    flex: 1; 
    padding: 15px 25px; 
    border: 2px solid rgba(0,0,0,0.1); 
    border-radius: 50px; 
    font-size: 16px; 
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s;
}
body.dark .search-box input { 
    background: rgba(42,42,78,0.6); 
    border-color: rgba(255,255,255,0.1); 
    color: #e0e0e0; 
}
.search-box input:focus { 
    border-color: #667eea; 
    outline: none; 
    box-shadow: 0 0 20px rgba(102,126,234,0.2);
}
.search-box button { 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    color: #fff; 
    border: none; 
    padding: 15px 35px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-size: 16px; 
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}
.search-box button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

/* 图片占位符 */
.img-placeholder { 
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #999; 
    font-size: 14px; 
    min-height: 220px; 
    border-radius: 20px; 
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
body.dark .img-placeholder { 
    background: linear-gradient(135deg, #2a2a4e, #3a3a5e); 
    color: #666; 
}
.img-placeholder.loaded { 
    background-size: cover; 
    background-position: center; 
}
.img-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translate(-30%, -30%); }
    100% { transform: translate(30%, 30%); }
}

/* 滚动动画 */
.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.7s, transform 0.7s; 
}
.animate-on-scroll.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* 数字滚动 */
.number-scroll { 
    font-size: 42px; 
    font-weight: bold; 
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 轮播 */
.carousel { 
    position: relative; 
    overflow: hidden; 
    border-radius: 25px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
body.dark .carousel {
    background: rgba(30,30,60,0.4);
}
.carousel-inner { display: flex; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.carousel-item { min-width: 100%; padding: 30px; }
.carousel-controls { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.carousel-controls button { 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    color: #fff; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 50px; 
    cursor: pointer; 
    transition: all 0.3s;
    font-size: 16px;
}
.carousel-controls button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

/* 懒加载 */
.lazy { opacity: 0; transition: opacity 0.5s; }
.lazy.loaded { opacity: 1; }

/* 响应式 */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        margin-top: 15px; 
        background: rgba(0,0,0,0.2);
        border-radius: 15px;
        padding: 10px;
    }
    nav.active { display: flex; }
    nav a { 
        padding: 12px 15px; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        border-radius: 10px;
    }
    nav a:last-child { border-bottom: none; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero { padding: 60px 0; }
    .section h2 { font-size: 28px; }
    .grid { grid-template-columns: 1fr; }
    .back-to-top { width: 45px; height: 45px; font-size: 20px; bottom: 20px; right: 20px; }
    .dark-toggle { top: 80px; right: 15px; padding: 10px 14px; font-size: 16px; }
    .card { padding: 20px; }
    .article-card .content { padding: 15px; }
    .article-card h3 { font-size: 18px; }
    .breadcrumb { padding: 10px 15px; }
    .search-box { flex-direction: column; }
    .search-box button { width: 100%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .hero .btn { padding: 14px 30px; font-size: 16px; }
    .section h2 { font-size: 24px; }
    .logo { font-size: 22px; }
    .container { padding: 0 15px; }
    .faq-question { font-size: 16px; }
    .howto-step .step-num { width: 35px; height: 35px; font-size: 14px; }
}