/**
 * 轻蜂加速器主题 - 页面特定样式
 * 从各个HTML文件中提取的内联样式
 * 
 * @package Qingfeng
 * @version 1.0.0
 */

/* ============================================
   通用样式
   ============================================ */
* {
    box-sizing: border-box;
}

/* ============================================
   博客相关页面背景色 (blog.html, blog-post.html, help-list.html)
   使用文件路径或body类名来识别
   ============================================ */
body.blog-page,
body.blog-post-page,
body.help-list-page {
    background-color: #F1F5F9 !important;
    background: #F1F5F9 !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.blog-page,
html.blog-post-page,
html.help-list-page {
    background-color: #F1F5F9 !important;
    background: #F1F5F9 !important;
    min-height: 100vh !important;
}

body.blog-page main,
body.blog-post-page main,
body.help-list-page main,
body.bg-slate-50.blog-page main,
body.bg-background.help-list-page main {
    background-color: #F1F5F9 !important;
    background: #F1F5F9 !important;
    min-height: calc(100vh - 56px) !important;
}

/* 确保内容区域透明，让背景色显示 */
body.blog-page .container,
body.blog-post-page .container,
body.help-list-page .container {
    background-color: transparent !important;
}

/* ============================================
   文章分割线颜色 (blog.html, help-list.html)
   ============================================ */
.article-divider {
    border-bottom-color: #F3F3F3 !important;
}

/* ============================================
   侧边栏文字正常显示 (help-list.html)
   ============================================ */
.help-list-page aside nav a,
.help-list-page aside nav span {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
}

/* ============================================
   Prose 样式 (hlep-post.html, down-windows.html)
   ============================================ */
.prose h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.prose-page .prose h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1.25em;
    line-height: 1.7;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose strong {
    font-weight: 600;
}

/* ============================================
   帮助中心样式 (help.html)
   ============================================ */
html {
    scroll-behavior: smooth;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.07);
    border-color: hsl(var(--primary));
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

details[open] .accordion-content {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

details[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

/* ============================================
   下载页面样式 (download.html)
   ============================================ */
.download-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px -8px rgba(8, 9, 13, 0.07);
    border-color: hsl(var(--primary));
}

.download-page .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.download-page details[open] .accordion-content {
    max-height: 500px;
}

/* ============================================
   测试页面样式 (test-bg.html)
   ============================================ */
.test-box {
    padding: 2rem;
    margin: 2rem;
    background-color: white;
    border: 2px solid #3b82f6;
}

