/* 全局重置与基础 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; background: #0f0c29; background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); color: #e0e0e0; line-height: 1.7; min-height: 100vh; }
a { color: #9fa8da; text-decoration: none; transition: color 0.3s; }
a:hover { color: #e94560; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding-left: 1.2rem; }
ul li { position: relative; margin-bottom: 0.4rem; }
ul li::before { content: "▸"; position: absolute; left: -1.2rem; color: #e94560; }

/* 导航吸顶毛玻璃 */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(15, 12, 41, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(233, 69, 96, 0.2); padding: 0.6rem 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.navbar .logo { font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, #e94560, #ff6b6b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.navbar .logo span { background: none; -webkit-text-fill-color: #ffd93d; }
.navbar nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.navbar nav a { font-size: 1rem; padding: 0.3rem 0; color: #e0e0e0; font-weight: 500; position: relative; transition: color 0.3s; }
.navbar nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #e94560; transition: width 0.3s; }
.navbar nav a:hover::after { width: 100%; }
.navbar nav a:hover { color: #ffd93d; }
.navbar .search-box { display: flex; align-items: center; background: rgba(255,255,255,0.08); border-radius: 25px; padding: 0.2rem 0.8rem; border: 1px solid rgba(255,255,255,0.1); transition: border 0.3s, background 0.3s; }
.navbar .search-box:focus-within { border-color: #e94560; background: rgba(255,255,255,0.15); }
.navbar .search-box input { border: none; background: transparent; padding: 0.5rem; outline: none; width: 140px; color: #fff; font-size: 0.9rem; }
.navbar .search-box input::placeholder { color: #aaa; }
.navbar .search-box button { background: transparent; border: none; cursor: pointer; font-size: 1rem; color: #e94560; transition: transform 0.2s; }
.navbar .search-box button:hover { transform: scale(1.1); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(233,69,96,0.3); border-radius: 8px; font-size: 1.8rem; cursor: pointer; color: #e94560; padding: 0.2rem 0.6rem; transition: background 0.3s; }
.menu-toggle:hover { background: rgba(233,69,96,0.15); }
@media (max-width: 768px) {
    .navbar { padding: 0.6rem 1rem; }
    .navbar nav { display: none; flex-direction: column; width: 100%; margin-top: 0.5rem; background: rgba(15,12,41,0.95); backdrop-filter: blur(20px); padding: 0.8rem 0; border-radius: 12px; border: 1px solid rgba(233,69,96,0.2); }
    .navbar nav.open { display: flex; }
    .menu-toggle { display: block; }
    .navbar .search-box { margin-top: 0.5rem; width: 100%; }
    .navbar .search-box input { width: 100%; }
}

/* 面包屑 */
.breadcrumb { background: rgba(255,255,255,0.04); backdrop-filter: blur(10px); padding: 0.8rem 2rem; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.breadcrumb span { color: #888; }
.breadcrumb a { color: #9fa8da; transition: color 0.3s; }
.breadcrumb a:hover { color: #ffd93d; }

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

/* 渐变Banner 毛玻璃 */
.banner { position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 2rem; min-height: 300px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); box-shadow: 0 8px 32px rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(233,69,96,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(255,217,61,0.1) 0%, transparent 50%); pointer-events: none; }
.banner-slide { display: none; width: 100%; padding: 2.5rem 2rem; text-align: center; position: relative; z-index: 1; }
.banner-slide.active { display: block; animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.banner h2 { font-size: 2.4rem; margin: 0.5rem 0; text-shadow: 0 2px 20px rgba(0,0,0,0.5); background: linear-gradient(135deg, #fff, #ffd93d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.banner p { font-size: 1.15rem; max-width: 600px; margin: 0.5rem auto; color: #ddd; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.banner .btn { background: linear-gradient(135deg, #e94560, #ff6b6b); color: #fff; padding: 0.7rem 2rem; border-radius: 30px; display: inline-block; margin-top: 1.2rem; border: none; cursor: pointer; font-weight: 600; font-size: 1rem; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 15px rgba(233,69,96,0.4); }
.banner .btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(233,69,96,0.6); }
.banner-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.banner-dots span { width: 14px; height: 14px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.banner-dots span.active { background: #e94560; border-color: #fff; transform: scale(1.2); box-shadow: 0 0 12px rgba(233,69,96,0.6); }
.banner-dots span:hover { background: rgba(255,255,255,0.6); }

/* 通用section 毛玻璃圆角卡片 */
.section { background: rgba(255,255,255,0.05); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 20px; padding: 2rem; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 32px rgba(0,0,0,0.2); transition: transform 0.3s, box-shadow 0.3s; }
.section:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.section h2 { font-size: 1.8rem; background: linear-gradient(135deg, #ffd93d, #e94560); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; border-left: 5px solid #e94560; padding-left: 0.8rem; margin-bottom: 1.5rem; }
.section h3 { font-size: 1.3rem; color: #ffd93d; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.section h4 { font-size: 1.1rem; color: #e0e0e0; margin-top: 1rem; margin-bottom: 0.3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* 卡片hover动画 */
.card { background: rgba(255,255,255,0.06); padding: 1.5rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(233,69,96,0.08), transparent); transition: left 0.5s; }
.card:hover::before { left: 100%; }
.card:hover { transform: translateY(-6px) scale(1.01); border-color: rgba(233,69,96,0.3); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.card h4 { margin-top: 0; color: #ffd93d; }

/* 文章列表 */
.article-list .article-item { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 1rem 0; display: flex; gap: 1rem; align-items: flex-start; transition: background 0.3s; border-radius: 8px; padding: 0.8rem; }
.article-list .article-item:hover { background: rgba(255,255,255,0.04); }
.article-item .art-thumb { width: 100px; height: 70px; border-radius: 10px; flex-shrink: 0; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); transition: transform 0.3s; }
.article-item:hover .art-thumb { transform: scale(1.05); }
.article-item .art-info { flex: 1; }
.article-item .art-info h4 { margin: 0 0 0.3rem; color: #e0e0e0; transition: color 0.3s; }
.article-item:hover .art-info h4 { color: #ffd93d; }
.article-item .art-info .meta { font-size: 0.85rem; color: #888; }
.article-item .art-info p { margin: 0.3rem 0; color: #bbb; }
.article-item .art-info a { color: #e94560; font-weight: 500; }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.8rem 0; transition: background 0.3s; border-radius: 8px; padding: 0.8rem; }
.faq-item:hover { background: rgba(255,255,255,0.03); }
.faq-question { font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #ffd93d; transition: color 0.3s; }
.faq-question:hover { color: #e94560; }
.faq-answer { display: none; padding-top: 0.5rem; color: #ccc; line-height: 1.6; }
.faq-item.open .faq-answer { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* HowTo */
.howto-step { display: flex; gap: 1rem; margin: 0.8rem 0; align-items: center; padding: 0.5rem; border-radius: 10px; transition: background 0.3s; }
.howto-step:hover { background: rgba(255,255,255,0.04); }
.howto-step .step-num { background: linear-gradient(135deg, #e94560, #ff6b6b); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; box-shadow: 0 4px 10px rgba(233,69,96,0.3); }

/* 数字动画区 */
.stats { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem; text-align: center; padding: 1.5rem 0; }
.stats .stat-item { padding: 1rem 1.5rem; background: rgba(255,255,255,0.04); border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); min-width: 150px; transition: transform 0.3s; }
.stats .stat-item:hover { transform: translateY(-4px); }
.stats .stat-item h3 { font-size: 2.2rem; background: linear-gradient(135deg, #e94560, #ffd93d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0; }
.stats .stat-item p { margin: 0.3rem 0 0; color: #aaa; font-size: 0.9rem; }

/* 返回顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #e94560, #ff6b6b); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(233,69,96,0.4); z-index: 999; transition: transform 0.3s, box-shadow 0.3s; }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 30px rgba(233,69,96,0.6); }

/* 页脚 */
footer { background: rgba(0,0,0,0.5); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.06); color: #bbb; padding: 2rem 1rem; text-align: center; }
footer a { color: #9fa8da; transition: color 0.3s; }
footer a:hover { color: #ffd93d; }
footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
footer .footer-links a { font-size: 0.9rem; position: relative; }
footer .footer-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: #e94560; transition: width 0.3s; }
footer .footer-links a:hover::after { width: 100%; }
footer .copyright { font-size: 0.85rem; color: #888; }
footer .copyright p { margin: 0.3rem 0; }

/* 暗黑模式（默认已暗色，但保留切换类） */
.dark-mode { background: #0a0a0a; color: #e0e0e0; }
.dark-mode .navbar, .dark-mode .section, .dark-mode .breadcrumb, .dark-mode .card { background: rgba(20,20,30,0.85); border-color: rgba(255,255,255,0.05); }

/* 滚动动画 */
.scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }

/* 响应式微调 */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .section { padding: 1.2rem; }
    .banner { min-height: 220px; }
    .banner h2 { font-size: 1.6rem; }
    .banner p { font-size: 0.95rem; }
    .banner-slide { padding: 1.5rem 1rem; }
    .article-item { flex-direction: column; }
    .article-item .art-thumb { width: 100%; height: auto; }
    .stats .stat-item { min-width: 120px; }
    .back-to-top { width: 40px; height: 40px; font-size: 1.3rem; bottom: 20px; right: 20px; }
}

/* 选中文本高亮 */
::selection { background: #e94560; color: #fff; }
::-moz-selection { background: #e94560; color: #fff; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #e94560, #ff6b6b); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #ffd93d; }