/* 全局重置与基础样式 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #222; background: #f8f9fa; }
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; }

/* 导航吸顶 */
.navbar { position: sticky; top: 0; z-index: 1000; background: #1a1a2e; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.navbar .logo { font-size: 1.5rem; font-weight: 700; color: #e94560; }
.navbar .nav-links { display: flex; gap: 1.2rem; list-style: none; }
.navbar .nav-links a { color: #eee; font-size: 0.95rem; padding: 0.4rem 0.2rem; transition: color 0.3s; }
.navbar .nav-links a:hover { color: #e94560; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* 移动菜单 */
@media (max-width: 768px) {
    .navbar .nav-links { display: none; flex-direction: column; background: #1a1a2e; position: absolute; top: 60px; left: 0; width: 100%; padding: 1rem; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
    .navbar .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
}

/* 面包屑 */
.breadcrumb { background: #e9ecef; padding: 0.6rem 1.5rem; font-size: 0.9rem; }
.breadcrumb a { color: #0066cc; }
.breadcrumb span { color: #555; }

/* 主体容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }

/* Banner - 渐变 & 毛玻璃效果 */
.banner { position: relative; overflow: hidden; background: linear-gradient(135deg, #0f3460, #1a1a2e, #16213e); color: #fff; text-align: center; padding: 4rem 1.5rem; min-height: 300px; }
.banner::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(233,69,96,0.2) 0%, transparent 60%); animation: bannerGlow 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes bannerGlow { 0% { transform: translate(0, 0); } 100% { transform: translate(10%, 10%); } }
.banner h1 { font-size: 2.8rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.banner p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 1.5rem; position: relative; z-index: 1; }
.banner .cta-btn { display: inline-block; background: #e94560; color: #fff; padding: 0.8rem 2rem; border-radius: 40px; font-weight: 600; transition: 0.3s; position: relative; z-index: 1; }
.banner .cta-btn:hover { background: #c23152; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(233,69,96,0.4); }

/* 轮播指示器 */
.carousel-indicators { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.carousel-indicators span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.carousel-indicators span.active { background: #e94560; transform: scale(1.3); }

/* 区块通用 */
section { margin-bottom: 3rem; }
h2 { font-size: 2rem; color: #1a1a2e; border-left: 5px solid #e94560; padding-left: 1rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; color: #0f3460; margin: 1.2rem 0 0.8rem; }
h4 { font-size: 1.15rem; color: #333; margin: 0.8rem 0 0.5rem; }

/* 圆角卡片 - 毛玻璃效果 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 1.8rem; transition: 0.3s; border: 1px solid rgba(255,255,255,0.3); }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-4px); }
.card h3 { margin-top: 0; }
.card .meta { font-size: 0.85rem; color: #888; margin-bottom: 0.5rem; }

/* FAQ 展开 */
.faq-item { border-bottom: 1px solid #ddd; padding: 1rem 0; }
.faq-question { font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.faq-question:hover { color: #e94560; }
.faq-question::after { content: "+"; font-size: 1.5rem; color: #e94560; transition: transform 0.3s; }
.faq-question.open::after { content: "−"; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-top: 0.5rem; color: #444; }
.faq-item.open .faq-answer { max-height: 400px; }

/* HowTo 步骤 */
.howto-step { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-left: 4px solid #e94560; padding: 1rem 1.5rem; margin-bottom: 1rem; border-radius: 0 8px 8px 0; transition: 0.3s; }
.howto-step:hover { transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.howto-step h4 { margin-top: 0; }

/* 文章列表 */
.article-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.article-item { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: 0.3s; }
.article-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.article-item h3 { font-size: 1.2rem; }
.article-item .meta { color: #777; font-size: 0.85rem; }
.article-item p { margin: 0.5rem 0; }
.article-item .read-more { color: #e94560; font-weight: 500; transition: color 0.3s; }
.article-item .read-more:hover { color: #c23152; }

/* 评价 */
.testimonial { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 12px; border-left: 4px solid #0f3460; margin-bottom: 1rem; transition: 0.3s; }
.testimonial:hover { transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.testimonial cite { display: block; margin-top: 0.5rem; font-style: normal; color: #555; }

/* 联系方式/EEAT */
.contact-info { background: #1a1a2e; color: #eee; padding: 2rem 1.5rem; border-radius: 12px; }
.contact-info a { color: #e94560; }
.contact-info h3 { color: #fff; }

/* 友情链接 */
.friend-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1rem 0; }
.friend-links a { color: #0066cc; padding: 0.3rem 0.8rem; background: #e9ecef; border-radius: 20px; font-size: 0.9rem; transition: 0.3s; }
.friend-links a:hover { background: #d0d7de; transform: translateY(-2px); }

/* 页脚 */
footer { background: #0f3460; color: #ccc; text-align: center; padding: 2rem 1rem; font-size: 0.9rem; }
footer a { color: #e94560; }
footer .copyright { margin-top: 1rem; }

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

/* 站内搜索 */
.search-box { display: flex; max-width: 400px; margin: 1rem auto; }
.search-box input { flex: 1; padding: 0.6rem; border: 1px solid #ccc; border-radius: 30px 0 0 30px; outline: none; transition: border-color 0.3s; }
.search-box input:focus { border-color: #e94560; }
.search-box button { background: #e94560; color: #fff; border: none; padding: 0.6rem 1.2rem; border-radius: 0 30px 30px 0; cursor: pointer; transition: background 0.3s; }
.search-box button:hover { background: #c23152; }

/* 暗黑模式切换按钮 */
.dark-mode-toggle { background: none; border: 1px solid #ccc; color: #fff; padding: 0.3rem 0.8rem; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: 0.3s; }
.dark-mode-toggle:hover { border-color: #e94560; color: #e94560; }

/* 暗黑模式 */
body.dark-mode { background: #121212; color: #e0e0e0; }
body.dark-mode .card, body.dark-mode .article-item, body.dark-mode .testimonial, body.dark-mode .howto-step, body.dark-mode .faq-item { background: rgba(30, 30, 30, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #ddd; border-color: rgba(255,255,255,0.1); }
body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 { color: #e94560; }
body.dark-mode .breadcrumb { background: #222; }
body.dark-mode .friend-links a { background: #333; color: #aaa; }
body.dark-mode .friend-links a:hover { background: #444; }
body.dark-mode .navbar { background: #0d0d1a; }
body.dark-mode .banner { background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #0f3460); }
body.dark-mode .contact-info { background: #0d0d1a; }
body.dark-mode footer { background: #0a0a1a; }
body.dark-mode .search-box input { background: #333; color: #eee; border-color: #555; }
body.dark-mode .search-box input:focus { border-color: #e94560; }

/* 滚动动画 */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* SVG 占位图样式 */
.svg-placeholder { background: #e9ecef; border-radius: 8px; margin-bottom: 1rem; }

/* 响应式微调 */
@media (max-width: 768px) {
    .banner h1 { font-size: 2rem; }
    .banner p { font-size: 1rem; }
    h2 { font-size: 1.6rem; }
    .container { padding: 1rem; }
    .card-grid { grid-template-columns: 1fr; }
    .article-list { grid-template-columns: 1fr; }
    .back-to-top { width: 40px; height: 40px; font-size: 1.4rem; bottom: 1rem; right: 1rem; }
}