/* 全局重置与基础样式 */
* { 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: #f8f9fa; color: #1a1a2e; line-height: 1.8; transition: background 0.3s, color 0.3s; }
a { color: #e94560; text-decoration: none; transition: color 0.3s; }
a:hover { color: #c23152; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* 暗黑模式 */
body.dark { background: #0f0f1a; color: #e0e0e0; }
body.dark a { color: #ff6b81; }
body.dark header { background: #1a1a2e; }
body.dark .nav-menu { background: #1a1a2e; }
body.dark .card { background: #2a2a3e; }
body.dark footer { background: #0a0a14; }
/* 头部导航 */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; transition: background 0.3s; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.8rem; font-weight: 900; background: linear-gradient(135deg, #e94560, #0f3460); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-menu a { font-size: 1rem; color: #1a1a2e; padding: 8px 0; border-bottom: 3px solid transparent; transition: border-color 0.3s; }
.nav-menu a:hover { border-bottom-color: #e94560; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #1a1a2e; }
.search-box { display: flex; align-items: center; gap: 8px; }
.search-box input { padding: 8px 12px; border: 2px solid #ddd; border-radius: 30px; font-size: 0.9rem; outline: none; width: 180px; transition: border-color 0.3s; }
.search-box input:focus { border-color: #e94560; }
.search-box button { background: #e94560; border: none; color: #fff; padding: 8px 16px; border-radius: 30px; cursor: pointer; font-size: 0.9rem; transition: background 0.3s; }
.search-box button:hover { background: #c23152; }
.dark-toggle { background: none; border: 2px solid #1a1a2e; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: all 0.3s; }
.dark-toggle:hover { background: #1a1a2e; color: #fff; }
/* 面包屑 */
.breadcrumb { padding: 15px 20px; font-size: 0.9rem; color: #666; max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: #e94560; }
.breadcrumb span { margin: 0 5px; }
/* Banner轮播 */
.banner { position: relative; overflow: hidden; height: 450px; margin: 20px auto; max-width: 1200px; border-radius: 20px; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; text-align: center; padding: 40px; }
.banner-slide.active { opacity: 1; }
.banner-slide h2 { font-size: 2.8rem; margin-bottom: 20px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.banner-slide p { font-size: 1.2rem; max-width: 700px; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.banner-dots span { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.banner-dots span.active { background: #fff; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: #fff; border: none; font-size: 2rem; padding: 10px 18px; cursor: pointer; border-radius: 50%; transition: background 0.3s; }
.banner-arrow:hover { background: rgba(0,0,0,0.6); }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }
/* 主内容区 */
main { padding: 40px 0; }
section { margin-bottom: 60px; }
h1 { font-size: 2.5rem; margin-bottom: 30px; text-align: center; color: #0f3460; }
h2 { font-size: 2rem; margin-bottom: 25px; color: #0f3460; border-left: 5px solid #e94560; padding-left: 15px; }
h3 { font-size: 1.5rem; margin: 20px 0 15px; color: #1a1a2e; }
h4 { font-size: 1.2rem; margin: 15px 0 10px; color: #333; }
.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: 25px; }
.card { background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card h3 { margin-top: 0; }
.card svg { margin-bottom: 15px; }
.btn { display: inline-block; background: #e94560; color: #fff; padding: 12px 32px; border-radius: 30px; font-size: 1rem; border: none; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.btn:hover { background: #c23152; transform: scale(1.05); }
.text-center { text-align: center; }
/* 文章列表 */
.article-list { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.article-item { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.article-item h3 { font-size: 1.3rem; }
.article-item .meta { font-size: 0.85rem; color: #888; margin: 8px 0; }
.article-item p { margin: 10px 0; }
.read-more { color: #e94560; font-weight: 600; }
/* FAQ */
.faq-item { border-bottom: 1px solid #ddd; padding: 18px 0; }
.faq-question { font-weight: 700; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.6rem; transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding-top: 0; }
.faq-item.open .faq-answer { max-height: 600px; padding-top: 15px; }
/* HowTo */
.howto-step { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: flex; gap: 20px; align-items: flex-start; }
.howto-step .step-num { background: #e94560; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
/* 联系方式 */
.contact-info { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.contact-info .card svg { margin: 0 auto 10px; }
/* 页脚 */
footer { background: #1a1a2e; color: #ccc; padding: 50px 0 30px; margin-top: 60px; }
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; margin-bottom: 20px; }
footer a { color: #aaa; display: block; margin-bottom: 8px; }
footer a:hover { color: #e94560; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; margin-top: 30px; text-align: center; font-size: 0.85rem; }
/* 返回顶部 */
.back-top { position: fixed; bottom: 40px; right: 40px; 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; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: opacity 0.3s, transform 0.3s; opacity: 0; visibility: hidden; border: none; }
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover { transform: scale(1.1); }
/* 数字动画 */
.number-item { text-align: center; }
.number-item .num { font-size: 3rem; font-weight: 900; color: #e94560; }
/* 滚动动画 */
.scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }
/* 毛玻璃效果增强 */
.card, .article-item, .howto-step, .faq-item, .banner { backdrop-filter: blur(2px); }
/* 响应式 */
@media (max-width: 768px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: #fff; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-menu.open { display: flex; }
    .menu-toggle { display: block; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .article-list { grid-template-columns: 1fr; }
    .banner { height: 280px; }
    .banner-slide h2 { font-size: 1.8rem; }
    footer .container { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .search-box input { width: 120px; }
}
/* SVG 占位颜色 */
.svg-placeholder { background: linear-gradient(135deg, #e94560, #0f3460); border-radius: 12px; padding: 20px; display: inline-flex; align-items: center; justify-content: center; }