/**
 * B2 Theme - Minimal Style Customizations
 * 极简风美化样式
 * Author: Custom
 * Version: 1.0
 */

/* ====================
   1. 全局排版优化
==================== */
body {
    color: #333;
    line-height: 1.8;
    background-color: #fafbfc;
}

/* 更优雅的字体栈 */
body,
input,
textarea,
button,
select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
}

/* 全局链接颜色更克制 */
a {
    color: #333;
    transition: color 0.2s ease;
}

a:hover {
    color: #000;
}

/* ====================
   2. 头部导航简化
==================== */
.site-header {
    height: auto;
}

.site .site-header-in {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-banner-content {
    height: 56px;
}

.logo-top.header {
    height: auto;
}

.header {
    height: 52px;
}

/* 导航链接更简洁 */
.header-banner-left .menu li a {
    padding: 16px 0;
    font-weight: 400;
    font-size: 14px;
    color: #444;
}

.header-banner-left .menu li a:hover {
    color: #000;
}

/* 移除导航下划线指示器，改用文字颜色变化 */
.header-banner-left .menu > li.current-menu-item > a:after {
    display: none;
}

.header-banner-left .menu > li.current-menu-item > a {
    color: #000;
    font-weight: 500;
}

/* 顶部阴影更淡 */
.header .top-style.animateIn,
.header .top-style.animateOut {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* ====================
   3. 内容区域布局优化
==================== */
.site-content {
    padding-bottom: 60px;
}

.wrapper {
    max-width: 1200px;
}

/* ====================
   4. 卡片/文章列表极简化
==================== */
.box,
.side-fixed {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 移除圆角或减至极小 */
.b2-radius,
.box,
.widget,
.post-list-item,
button,
.button,
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    border-radius: 2px !important;
}

/* 文章卡片间距增大 */
.post-list-item {
    margin-bottom: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 文章标题更优雅 */
.post-info h2 {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
}

/* 列表底部信息更淡 */
.list-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    color: #999;
    font-size: 12px;
}

/* 分类标签更简洁 */
.post-list-cats a span {
    border-radius: 2px !important;
    background-color: #f5f5f5 !important;
    color: #666 !important;
    font-weight: 400;
    height: 28px;
    line-height: 28px;
    padding: 0 12px;
}

.post-list-cats a span:hover {
    background-color: #eee !important;
    color: #333 !important;
}

/* ====================
   5. 按钮极简化
==================== */
button,
.button {
    border-radius: 2px !important;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

button:hover,
.button:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

button:active,
.button:active {
    transform: translateY(0);
}

/* 空按钮 */
button.empty,
.button.empty {
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #555;
}

/* ====================
   6. 侧边栏小工具简化
==================== */
.widget {
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 16px;
}

.widget-title {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* ====================
   7. 文章正文排版优化
==================== */
.single-article {
    padding: 40px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.entry-content p,
.content-show-roles > p,
.entry-content > pre,
.content-show-roles > pre,
.entry-content > ul,
.content-show-roles > ul,
.entry-content > ol,
.content-show-roles > ol,
.entry-content > blockquote,
.content-show-roles > blockquote {
    margin-bottom: 1.8em;
}

.entry-content > p {
    line-height: 1.9;
}

/* 标题层级更清晰 */
.entry-content > h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.entry-content > h2,
.content-show-roles > h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #1a1a1a;
}

.entry-content > h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: #222;
}

.entry-content > h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    color: #333;
}

/* 引用块更优雅 */
.entry-content blockquote {
    background: #f8f9fa;
    border-left: 3px solid #ddd;
    border-radius: 0 !important;
    padding: 16px 20px !important;
    color: #555;
    font-family: inherit;
}

.entry-content blockquote:before {
    display: none;
}

/* 代码块更干净 */
.entry-content pre {
    background: #f8f9fa;
    border-radius: 2px !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 16px;
}

.entry-content p > code {
    background-color: #f1f1f1;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.9em;
}

/* 链接更克制 */
.entry-content > p a,
.content-show-roles > p a {
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.entry-content > p a:hover,
.content-show-roles > p a:hover {
    color: #000;
    border-bottom-color: #000;
    text-decoration: none;
}

/* 表格更简洁 */
.entry-content table td {
    border: 1px solid #eee;
    padding: 10px 16px;
}

.entry-content table tbody tr:nth-child(odd) {
    background: #fafafa;
}

/* 列表间距 */
.entry-content > ol li + li,
.entry-content > ul li + li {
    margin-top: 8px;
}

/* ====================
   8. 评论区优化
==================== */
.com-form > .b2-radius {
    border-radius: 2px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

/* ====================
   9. 底部简化
==================== */
.site-footer {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.site-footer-nav {
    background-color: #fafbfc;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-left,
.footer-bottom-right {
    font-size: 12px;
    color: #999;
}

/* 移除 footer 中的推广链接样式 */
.footer-bottom-right p a {
    color: inherit;
    text-decoration: none;
}

/* ====================
   10. 搜索和表单简化
==================== */
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2px !important;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.02);
}

/* ====================
   11. 加载更多按钮
==================== */
.post-load-button {
    border-radius: 2px !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #666;
    font-weight: 400;
    transition: all 0.2s ease;
}

.post-load-button:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.12);
    color: #333;
}

/* ====================
   12. 幻灯片/轮播简化
==================== */
.slider-in.box,
.slider-in .box {
    border-radius: 2px !important;
    overflow: hidden;
}

/* ====================
   13. 移动端底部导航简化
==================== */
.mobile-footer-menu {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
    border-top: none;
}

/* ====================
   14. 面包屑简化
==================== */
.post-breadcrumb {
    color: #bbb;
    font-size: 12px;
}

/* ====================
   15. 标签云/分类简化
==================== */
.post-list-cats {
    margin-bottom: 4px;
}

/* ====================
   16. 用户头像圆角微调
==================== */
img.avatar {
    border-radius: 2px !important;
}

.post-list-meta-avatar img {
    border-radius: 2px !important;
}

/* ====================
   17. 首页模块标题简化
==================== */
.modules-title-box {
    margin-bottom: 16px;
}

.modules-title-box h2 {
    font-weight: 500;
    font-size: 16px;
    color: #333;
}

/* ====================
   18. 文章摘要卡片
==================== */
.content-excerpt {
    background: #f8f9fa;
    border-radius: 2px !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #666;
    font-family: inherit;
}

/* ====================
   19. 通用间距优化
==================== */
.mg-b {
    margin-bottom: 16px;
}

/* 减小一些过大的间距 */
.b2_gap {
    gap: 12px;
}

/* ====================
   20. 选中文字颜色更克制
==================== */
::selection {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

::-moz-selection {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

/* ====================
   21. 滚动条美化（Webkit）
==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ====================
   22. 减少装饰性元素
==================== */
/* 隐藏一些花哨的装饰 */
.post-module-thumb .post-status {
    border-radius: 2px !important;
    font-weight: 400;
    padding: 2px 6px;
}

/* 投票等模块边框简化 */
.vote-pk-left,
.vote-pk-right {
    border-radius: 2px !important;
}

/* 下载框简化 */
.download-box {
    border-radius: 2px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* 社交分享按钮简化 */
.baiduyun-protection-widget {
    border-radius: 2px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #f8f9fa;
}

/* ====================
   23. 悬停效果统一
==================== */
/* 所有链接和按钮的悬停过渡统一 */
a,
button,
.button,
.post-list-item,
.widget,
.box {
    transition: all 0.2s ease;
}

/* ====================
   24. 深色模式兼容
==================== */
@media (prefers-color-scheme: dark) {
    /* 如果主题支持深色模式，这里可以添加对应的极简深色样式 */
}
