/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f8f9fa; color: #333; line-height: 1.8; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* 头部导航 */
.header { background: #1a1a2e; color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.logo { font-size: 1.8rem; font-weight: 700; color: #e94560; }
.logo span { color: #fff; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: #ddd; font-size: 0.95rem; padding: 5px 0; border-bottom: 2px solid transparent; transition: all 0.3s; }
.nav a:hover, .nav a.active { color: #e94560; border-bottom-color: #e94560; text-decoration: none; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
/* 面包屑 */
.breadcrumb { background: #f1f1f1; padding: 10px 0; font-size: 0.9rem; }
.breadcrumb a { color: #555; }
.breadcrumb span { color: #999; }
/* 页面主体 */
.main { padding: 40px 0; }
/* 标题 */
h1 { font-size: 2.5rem; margin-bottom: 20px; color: #1a1a2e; }
h2 { font-size: 2rem; margin: 40px 0 20px; color: #1a1a2e; border-left: 5px solid #e94560; padding-left: 15px; }
h3 { font-size: 1.5rem; margin: 30px 0 15px; color: #2d2d44; }
h4 { font-size: 1.2rem; margin: 20px 0 10px; color: #444; }
p { margin-bottom: 15px; }
/* 首屏 */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 80px 0; text-align: center; border-radius: 12px; margin-bottom: 40px; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; color: #ccc; }
.hero .cta { display: inline-block; background: #e94560; color: #fff; padding: 15px 40px; border-radius: 50px; font-size: 1.1rem; font-weight: 600; transition: background 0.3s; }
.hero .cta:hover { background: #d63851; text-decoration: none; }
/* 模块通用 */
.section { background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.section-dark { background: #1a1a2e; color: #eee; }
.section-dark h2, .section-dark h3 { color: #fff; }
/* 网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin: 20px 0; }
.card { background: #f8f9fa; border-radius: 10px; padding: 25px; transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card h3 { margin-top: 0; }
.card-icon { width: 60px; height: 60px; margin-bottom: 15px; }
/* 文章列表 */
.article-list { list-style: none; padding: 0; }
.article-list li { border-bottom: 1px solid #eee; padding: 20px 0; }
.article-list li:last-child { border-bottom: none; }
.article-list .date { color: #999; font-size: 0.85rem; }
.article-list h4 { margin: 5px 0; }
.article-list p { color: #666; }
.read-more { color: #e94560; font-weight: 600; }
/* FAQ */
.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; cursor: pointer; }
.faq-question { font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: "+"; font-size: 1.5rem; color: #e94560; }
.faq-item.active .faq-question::after { content: "-"; }
.faq-answer { display: none; padding-top: 10px; color: #555; }
.faq-item.active .faq-answer { display: block; }
/* HowTo */
.howto-step { background: #f1f1f1; border-radius: 8px; padding: 20px; margin-bottom: 15px; }
.howto-step h4 { color: #e94560; }
/* 联系信息 */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 20px 0; }
.contact-info div { background: #f1f1f1; padding: 15px; border-radius: 8px; }
.contact-info strong { display: block; color: #1a1a2e; margin-bottom: 5px; }
/* 页脚 */
.footer { background: #1a1a2e; color: #ccc; padding: 40px 0 20px; margin-top: 40px; }
.footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer h4 { color: #fff; margin-bottom: 15px; }
.footer a { color: #aaa; }
.footer a:hover { color: #e94560; }
.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: #e94560; color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; border: none; }
.back-to-top.show { opacity: 1; visibility: visible; }
/* 数字动画 */
.stat-number { font-size: 2.5rem; font-weight: 700; color: #e94560; }
/* 移动端适配 */
@media (max-width: 768px) {
    .nav { display: none; width: 100%; flex-direction: column; gap: 10px; margin-top: 15px; }
    .nav.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}
/* 暗黑模式 */
body.dark-mode { background: #121212; color: #e0e0e0; }
body.dark-mode .section { background: #1e1e1e; color: #e0e0e0; }
body.dark-mode .card { background: #2d2d2d; }
body.dark-mode .breadcrumb { background: #222; }
body.dark-mode .breadcrumb a { color: #aaa; }
body.dark-mode .faq-item { border-color: #333; }
body.dark-mode .howto-step { background: #2d2d2d; }
body.dark-mode .contact-info div { background: #2d2d2d; }
.dark-toggle { background: none; border: none; color: #ddd; font-size: 1.2rem; cursor: pointer; margin-left: 15px; }