/* 基础重置与布局 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; line-height: 1.8; color: #e0e0e0; background: #121212; }
a { color: #ff6b6b; text-decoration: none; }
a:hover { color: #ff4757; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* 导航吸顶 */
.navbar { position: sticky; top: 0; z-index: 1000; background: #1a1a2e; border-bottom: 1px solid #333; padding: 10px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.navbar .logo { font-size: 1.8rem; font-weight: bold; color: #ff6b6b; }
.navbar .nav-links { display: flex; gap: 20px; list-style: none; }
.navbar .nav-links a { color: #ccc; padding: 5px 10px; border-radius: 4px; transition: background 0.3s; }
.navbar .nav-links a:hover { background: #333; color: #fff; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
/* 移动菜单 */
@media (max-width: 768px) {
    .navbar .nav-links { display: none; flex-direction: column; width: 100%; margin-top: 10px; }
    .navbar .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
}
/* 面包屑导航 */
.breadcrumb { background: #1c1c2e; padding: 10px 0; font-size: 0.9rem; }
.breadcrumb a { color: #aaa; }
.breadcrumb span { color: #ff6b6b; }
/* Banner轮播 */
.banner { position: relative; overflow: hidden; height: 400px; background: #1a1a2e; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; opacity: 0; transition: opacity 1s ease; }
.banner-slide.active { opacity: 1; }
.banner-slide:nth-child(1) { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.banner-slide:nth-child(2) { background: linear-gradient(135deg, #16213e, #0f3460); }
.banner-slide:nth-child(3) { background: linear-gradient(135deg, #0f3460, #1a1a2e); }
.banner-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.banner-controls button { background: rgba(255,255,255,0.3); border: none; width: 12px; height: 12px; border-radius: 50%; cursor: pointer; }
.banner-controls button.active { background: #ff6b6b; }
/* 通用标题 */
h1 { font-size: 2.5rem; margin-bottom: 20px; color: #ff6b6b; text-align: center; }
h2 { font-size: 2rem; margin: 40px 0 20px; border-left: 5px solid #ff6b6b; padding-left: 15px; color: #f0f0f0; }
h3 { font-size: 1.5rem; margin: 30px 0 15px; color: #ddd; }
h4 { font-size: 1.2rem; margin: 20px 0 10px; color: #ccc; }
p { margin-bottom: 15px; text-align: justify; }
/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
/* 卡片 */
.card { background: #1e1e30; border-radius: 8px; padding: 20px; margin-bottom: 20px; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
/* 文章列表 */
.article-item { padding: 15px 0; border-bottom: 1px solid #333; }
.article-item h4 { margin-bottom: 5px; }
.article-item .meta { font-size: 0.85rem; color: #888; }
/* FAQ */
.faq-item { margin-bottom: 15px; border: 1px solid #333; border-radius: 6px; overflow: hidden; }
.faq-question { background: #1e1e30; padding: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 15px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: #252540; }
.faq-item.open .faq-answer { max-height: 500px; padding: 15px; }
/* HowTo */
.howto-step { background: #1e1e30; padding: 15px; margin-bottom: 10px; border-radius: 6px; }
.howto-step strong { color: #ff6b6b; }
/* 页脚 */
footer { background: #0f0f1a; padding: 40px 0; margin-top: 50px; }
footer .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) { footer .grid-4 { grid-template-columns: 1fr 1fr; } }
footer h4 { color: #ff6b6b; margin-bottom: 15px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #aaa; }
footer ul li a:hover { color: #fff; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #333; margin-top: 20px; color: #888; font-size: 0.9rem; }
/* 返回顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; background: #ff6b6b; 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; transition: opacity 0.3s; border: none; }
.back-to-top.show { opacity: 1; }
/* 数字动画 */
.counter { font-size: 2.5rem; font-weight: bold; color: #ff6b6b; }
/* 暗黑模式 */
.dark-mode { background: #fff; color: #222; }
.dark-mode .navbar { background: #f5f5f5; }
.dark-mode .card { background: #f0f0f0; }
.dark-mode footer { background: #e0e0e0; }
/* 滚动动画 */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* SVG占位 */
.svg-placeholder { width: 100%; height: 200px; background: #2a2a40; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #888; }
/* 搜索框 */
.search-box { display: flex; gap: 10px; margin: 20px 0; }
.search-box input { flex: 1; padding: 10px; border: 1px solid #444; background: #1e1e30; color: #fff; border-radius: 4px; }
.search-box button { padding: 10px 20px; background: #ff6b6b; border: none; color: #fff; border-radius: 4px; cursor: pointer; }