/*
Theme Name: RiPro-V5 GitHub Style
Theme URI: https://github.com/
Author: Your Name
Author URI: https://github.com/
Description: RiPro-V5主题的GitHub风格子主题，通过CSS覆盖实现GitHub视觉风格
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ripro-v5
Text Domain: ripro-v5-github
Tags: github-style, modern, clean
*/

/* ========================================
   GitHub精确配色变量 - 覆盖ripro-v5变量
   ======================================== */
:root,
[data-bs-theme=light] {
    /* GitHub主色调 */
    --ri-primary: #0969da !important;
    --ri-blue: #0969da !important;
    --ri-success: #1f883d !important;
    --ri-info: #0969da !important;
    --ri-warning: #9a6700 !important;
    --ri-danger: #cf222e !important;
    
    /* GitHub背景色 */
    --ri-body-bg-rgb: 246, 248, 250 !important;
    --ri-light: #f6f8fa !important;
    --ri-light-rgb: 246, 248, 250 !important;
    --ri-gray-100: #f6f8fa !important;
    --ri-gray-200: #eaeef2 !important;
    --ri-gray-300: #d0d7de !important;
    
    /* GitHub文字色 */
    --ri-body-color-rgb: 31, 35, 40 !important;
    --ri-dark: #24292f !important;
    --ri-dark-rgb: 36, 41, 47 !important;
    --ri-gray-600: #57606a !important;
    --ri-gray-700: #24292f !important;
    --ri-gray-800: #24292f !important;
    --ri-gray-900: #24292f !important;
    
    /* GitHub边框色 */
    --ri-secondary-border-subtle: #d0d7de !important;
    --ri-dark-border-subtle: #d0d7de !important;
    
    /* GitHub字体 */
    --ri-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif !important;
}

/* 暗色模式变量 */
[data-bs-theme=dark] {
    --ri-primary: #2f81f7 !important;
    --ri-blue: #2f81f7 !important;
    --ri-success: #3fb950 !important;
    --ri-info: #2f81f7 !important;
    --ri-warning: #d29922 !important;
    --ri-danger: #f85149 !important;
    
    --ri-body-bg-rgb: 13, 17, 23 !important;
    --ri-light: #161b22 !important;
    --ri-light-rgb: 22, 27, 34 !important;
    --ri-gray-100: #161b22 !important;
    --ri-gray-200: #21262d !important;
    --ri-gray-300: #30363d !important;
    
    --ri-body-color-rgb: 201, 209, 217 !important;
    --ri-dark: #c9d1d9 !important;
    --ri-dark-rgb: 201, 209, 217 !important;
    --ri-gray-600: #8b949e !important;
    --ri-gray-700: #c9d1d9 !important;
    --ri-gray-800: #c9d1d9 !important;
    --ri-gray-900: #f0f6fc !important;
    
    --ri-secondary-border-subtle: #30363d !important;
    --ri-dark-border-subtle: #30363d !important;
}

/* ========================================
   全局基础样式
   ======================================== */
body {
    background-color: #f6f8fa !important;
    color: #24292f !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif !important;
}

[data-bs-theme=dark] body {
    background-color: #0d1117 !important;
    color: #c9d1d9 !important;
}

/* ========================================
   导航栏样式 - GitHub风格
   ======================================== */
.site-header {
    background-color: #24292f !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

[data-bs-theme=dark] .site-header {
    background-color: #161b22 !important;
    border-bottom: 1px solid #30363d !important;
}

.site-header .navbar {
    background-color: transparent !important;
}

/* Logo区域 */
.site-header .logo-wrapper a {
    color: #ffffff !important;
}

.site-header .logo-wrapper .logo {
    filter: brightness(0) invert(1) !important;
}

.site-header .logo-wrapper .logo.text {
    color: #ffffff !important;
}

/* 导航菜单 */
.site-header .main-menu .nav-list > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
}

.site-header .main-menu .nav-list > li > a:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* 操作按钮区域 */
.site-header .actions .action-btn {
    color: #ffffff !important;
}

.site-header .actions .action-btn:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
}

.site-header .actions .action-btn i {
    color: #ffffff !important;
}

/* 搜索框 */
.site-header .navbar-search {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
}

.site-header .navbar-search input {
    background-color: transparent !important;
    color: #ffffff !important;
}

.site-header .navbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-header .navbar-search input:focus {
    background-color: #ffffff !important;
    color: #24292f !important;
}

.site-header .navbar-search input:focus::placeholder {
    color: #57606a !important;
}

/* 用户头像 */
.site-header .actions .avatar-warp {
    color: #ffffff !important;
}

.site-header .actions .avatar-img {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 下拉菜单 */
.site-header .hover-warp {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2) !important;
}

[data-bs-theme=dark] .site-header .hover-warp {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

/* ========================================
   页脚样式 - GitHub风格
   ======================================== */
.site-footer {
    background-color: #f6f8fa !important;
    border-top: 1px solid #d0d7de !important;
    color: #57606a !important;
}

[data-bs-theme=dark] .site-footer {
    background-color: #0d1117 !important;
    border-top-color: #30363d !important;
    color: #8b949e !important;
}

.site-footer a {
    color: #0969da !important;
}

.site-footer a:hover {
    color: #0550ae !important;
}

[data-bs-theme=dark] .site-footer a {
    color: #2f81f7 !important;
}

[data-bs-theme=dark] .site-footer a:hover {
    color: #58a6ff !important;
}

/* ========================================
   卡片/文章项样式 - GitHub Box风格
   ======================================== */
.post-item,
article.post-item,
.item-grid,
.grid-overlay,
.item-list {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease !important;
}

[data-bs-theme=dark] .post-item,
[data-bs-theme=dark] article.post-item,
[data-bs-theme=dark] .item-grid,
[data-bs-theme=dark] .grid-overlay,
[data-bs-theme=dark] .item-list {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

.post-item:hover,
.item-grid:hover,
.grid-overlay:hover,
.item-list:hover {
    border-color: #0969da !important;
    box-shadow: 0 3px 6px rgba(140, 149, 159, 0.2) !important;
}

[data-bs-theme=dark] .post-item:hover,
[data-bs-theme=dark] .item-grid:hover,
[data-bs-theme=dark] .grid-overlay:hover,
[data-bs-theme=dark] .item-list:hover {
    border-color: #2f81f7 !important;
}

/* 文章标题 */
.entry-title,
h2.entry-title {
    color: #24292f !important;
}

[data-bs-theme=dark] .entry-title {
    color: #c9d1d9 !important;
}

.entry-title a {
    color: #24292f !important;
}

.entry-title a:hover {
    color: #0969da !important;
}

[data-bs-theme=dark] .entry-title a {
    color: #c9d1d9 !important;
}

[data-bs-theme=dark] .entry-title a:hover {
    color: #2f81f7 !important;
}

/* 文章描述 */
.entry-desc {
    color: #57606a !important;
}

[data-bs-theme=dark] .entry-desc {
    color: #8b949e !important;
}

/* 文章元信息 */
.entry-meta,
.entry-meta-part {
    color: #57606a !important;
}

[data-bs-theme=dark] .entry-meta,
[data-bs-theme=dark] .entry-meta-part {
    color: #8b949e !important;
}

.entry-meta a,
.entry-meta-part a {
    color: #57606a !important;
}

.entry-meta a:hover,
.entry-meta-part a:hover {
    color: #0969da !important;
}

[data-bs-theme=dark] .entry-meta a,
[data-bs-theme=dark] .entry-meta-part a {
    color: #8b949e !important;
}

[data-bs-theme=dark] .entry-meta a:hover,
[data-bs-theme=dark] .entry-meta-part a:hover {
    color: #2f81f7 !important;
}

/* ========================================
   按钮样式 - GitHub Button风格
   ======================================== */
.btn,
button.btn,
a.btn,
input[type="submit"],
input[type="button"],
.button,
.wp-block-button__link {
    background-color: #1f883d !important;
    color: #ffffff !important;
    border: 1px solid rgba(27, 31, 36, 0.15) !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.wp-block-button__link:hover {
    background-color: #1c8139 !important;
}

/* 主要按钮 */
.btn-primary,
button.btn-primary,
a.btn-primary {
    background-color: #0969da !important;
    border-color: rgba(27, 31, 36, 0.15) !important;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background-color: #0860ca !important;
}

/* ========================================
   链接样式
   ======================================== */
a {
    color: #0969da !important;
    transition: color 0.2s ease !important;
}

a:hover {
    color: #0550ae !important;
}

[data-bs-theme=dark] a {
    color: #2f81f7 !important;
}

[data-bs-theme=dark] a:hover {
    color: #58a6ff !important;
}

/* ========================================
   表单输入框样式
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select,
.form-control {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    color: #24292f !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

[data-bs-theme=dark] input[type="text"],
[data-bs-theme=dark] input[type="email"],
[data-bs-theme=dark] input[type="password"],
[data-bs-theme=dark] input[type="search"],
[data-bs-theme=dark] textarea,
[data-bs-theme=dark] select,
[data-bs-theme=dark] .form-control {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: #0969da !important;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3) !important;
}

[data-bs-theme=dark] input[type="text"]:focus,
[data-bs-theme=dark] input[type="email"]:focus,
[data-bs-theme=dark] input[type="password"]:focus,
[data-bs-theme=dark] input[type="search"]:focus,
[data-bs-theme=dark] textarea:focus,
[data-bs-theme=dark] select:focus,
[data-bs-theme=dark] .form-control:focus {
    border-color: #2f81f7 !important;
    box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.4) !important;
}

/* ========================================
   标签/徽章样式
   ======================================== */
.badge,
.tag,
.label,
.category-badge,
.post-tag {
    background-color: #ddf4ff !important;
    border: 1px solid #54aeff66 !important;
    border-radius: 20px !important;
    color: #0969da !important;
}

[data-bs-theme=dark] .badge,
[data-bs-theme=dark] .tag,
[data-bs-theme=dark] .label,
[data-bs-theme=dark] .category-badge,
[data-bs-theme=dark] .post-tag {
    background-color: #388bfd1a !important;
    border-color: #388bfd66 !important;
    color: #2f81f7 !important;
}

/* ========================================
   侧边栏小工具样式
   ======================================== */
.widget,
.sidebar-box,
.home-widget {
    background-color: #ffffff !important;
    border-radius: 6px !important;
}

[data-bs-theme=dark] .widget,
[data-bs-theme=dark] .sidebar-box,
[data-bs-theme=dark] .home-widget {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

.widget-title,
.widget h3,
.widget h4,
.sidebar-box .widget-title {
    background-color: #f6f8fa !important;
    border-bottom: 1px solid #d0d7de !important;
    color: #24292f !important;
}

[data-bs-theme=dark] .widget-title,
[data-bs-theme=dark] .widget h3,
[data-bs-theme=dark] .widget h4 {
    background-color: #161b22 !important;
    border-bottom-color: #30363d !important;
    color: #c9d1d9 !important;
}

/* ========================================
   分页样式
   ======================================== */
.pagination a,
.page-numbers a,
.page-numbers span,
.nav-links a {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    color: #0969da !important;
}

[data-bs-theme=dark] .pagination a,
[data-bs-theme=dark] .page-numbers a,
[data-bs-theme=dark] .page-numbers span,
[data-bs-theme=dark] .nav-links a {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #2f81f7 !important;
}

.pagination a:hover,
.page-numbers a:hover,
.nav-links a:hover {
    background-color: #f6f8fa !important;
    border-color: #0969da !important;
}

[data-bs-theme=dark] .pagination a:hover,
[data-bs-theme=dark] .page-numbers a:hover,
[data-bs-theme=dark] .nav-links a:hover {
    background-color: #161b22 !important;
    border-color: #2f81f7 !important;
}

.pagination .current,
.page-numbers.current {
    background-color: #0969da !important;
    border-color: #0969da !important;
    color: #ffffff !important;
}

[data-bs-theme=dark] .pagination .current,
[data-bs-theme=dark] .page-numbers.current {
    background-color: #2f81f7 !important;
    border-color: #2f81f7 !important;
}

/* ========================================
   代码块样式
   ======================================== */
code,
pre,
kbd,
samp {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    background-color: #f6f8fa !important;
    border-radius: 6px !important;
}

[data-bs-theme=dark] code,
[data-bs-theme=dark] pre,
[data-bs-theme=dark] kbd,
[data-bs-theme=dark] samp {
    background-color: #161b22 !important;
}

code {
    border: 1px solid #d0d7de !important;
}

[data-bs-theme=dark] code {
    border-color: #30363d !important;
}

pre {
    border: 1px solid #d0d7de !important;
}

[data-bs-theme=dark] pre {
    border-color: #30363d !important;
}

/* ========================================
   表格样式
   ======================================== */
table {
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
}

[data-bs-theme=dark] table {
    border-color: #30363d !important;
}

th, td {
    border-bottom: 1px solid #d0d7de !important;
}

[data-bs-theme=dark] th,
[data-bs-theme=dark] td {
    border-bottom-color: #30363d !important;
}

th {
    background-color: #f6f8fa !important;
    color: #24292f !important;
}

[data-bs-theme=dark] th {
    background-color: #161b22 !important;
    color: #c9d1d9 !important;
}

tr:hover {
    background-color: #f6f8fa !important;
}

[data-bs-theme=dark] tr:hover {
    background-color: #161b22 !important;
}

/* ========================================
   引用块样式
   ======================================== */
blockquote {
    border-left: 4px solid #d0d7de !important;
    color: #57606a !important;
    background-color: #f6f8fa !important;
}

[data-bs-theme=dark] blockquote {
    border-left-color: #30363d !important;
    color: #8b949e !important;
    background-color: #161b22 !important;
}

/* ========================================
   分割线
   ======================================== */
hr {
    border-top: 1px solid #d0d7de !important;
}

[data-bs-theme=dark] hr {
    border-top-color: #30363d !important;
}

/* ========================================
   返回顶部按钮
   ======================================== */
.back-top {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    color: #57606a !important;
}

.back-top:hover {
    background-color: #f6f8fa !important;
    border-color: #0969da !important;
    color: #0969da !important;
}

[data-bs-theme=dark] .back-top {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #8b949e !important;
}

[data-bs-theme=dark] .back-top:hover {
    background-color: #161b22 !important;
    border-color: #2f81f7 !important;
    color: #2f81f7 !important;
}

/* ========================================
   选中文字样式
   ======================================== */
::selection {
    background-color: rgba(9, 105, 218, 0.2) !important;
    color: #24292f !important;
}

[data-bs-theme=dark] ::selection {
    background-color: rgba(47, 129, 247, 0.3) !important;
    color: #c9d1d9 !important;
}

/* ========================================
   页面布局 - Sticky Footer
   ======================================== */
html,
body {
    height: 100% !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    padding-top: 0px !important; /* 为固定导航栏留出空间 */
}

main {
    flex: 1 0 auto !important;
    width: 100% !important;
}

.site-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
}

/* 导航栏固定时的间距 */
.site-header.navbar-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* ========================================
   导航栏布局 - GitHub风格
   ======================================== */
.site-header {
    background-color: #24292f !important;
    border-bottom: none !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1000 !important;
}

[data-bs-theme=dark] .site-header {
    background-color: #161b22 !important;
    border-bottom: 1px solid #30363d !important;
}

.site-header .container {
    max-width: 1280px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.site-header .navbar {
    background-color: transparent !important;
    padding: 16px 0 !important;
    min-height: 64px !important;
}

/* Logo区域 */
.site-header .logo-wrapper {
    display: flex !important;
    align-items: center !important;
}

.site-header .logo-wrapper a {
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
}

.site-header .logo-wrapper .logo.regular {
    filter: brightness(0) invert(1) !important;
    height: 48px !important;
    width: auto !important;
}

.site-header .logo-wrapper .logo.text {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

/* 导航菜单 */
.site-header .main-menu {
    display: flex !important;
    align-items: center !important;
    margin-left: 16px !important;
}

.site-header .main-menu .nav-list {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header .main-menu .nav-list > li {
    margin: 0 !important;
}

.site-header .main-menu .nav-list > li > a {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
    display: block !important;
    line-height: 20px !important;
}

.site-header .main-menu .nav-list > li > a:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.site-header .main-menu .nav-list > li.current-menu-item > a,
.site-header .main-menu .nav-list > li.current_page_item > a {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* 分隔线 */
.site-header .sep {
    display: none !important;
}

/* 操作按钮区域 */
.site-header .actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
}

.site-header .actions .action-btn {
    color: #ffffff !important;
    padding: 8px !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.site-header .actions .action-btn:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

.site-header .actions .action-btn i {
    color: #ffffff !important;
    font-size: 16px !important;
}

/* 搜索框 */
.site-header .navbar-search {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    margin-left: 16px !important;
    display: flex !important;
    align-items: center !important;
}

.site-header .navbar-search input {
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    font-size: 14px !important;
    width: 272px !important;
}

.site-header .navbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-header .navbar-search input:focus {
    background-color: #ffffff !important;
    color: #24292f !important;
    outline: none !important;
}

.site-header .navbar-search input:focus::placeholder {
    color: #57606a !important;
}

/* 用户头像 */
.site-header .actions .avatar-warp {
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.site-header .actions .avatar-img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 下拉菜单 */
.site-header .hover-warp {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2) !important;
}

[data-bs-theme=dark] .site-header .hover-warp {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

/* 导航占位 */
.header-gap {
    height: 0 !important;
    display: none !important;
}

/* ========================================
   页脚布局 - GitHub风格
   ======================================== */
.site-footer {
    background-color: #f6f8fa !important;
    border-top: 1px solid #d0d7de !important;
    color: #57606a !important;
    padding: 48px 0 24px !important;
    margin-top: 48px !important;
}

[data-bs-theme=dark] .site-footer {
    background-color: #0d1117 !important;
    border-top-color: #30363d !important;
    color: #8b949e !important;
}

.site-footer .container {
    max-width: 1280px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.site-footer a {
    color: #0969da !important;
    text-decoration: none !important;
}

.site-footer a:hover {
    color: #0550ae !important;
    text-decoration: underline !important;
}

[data-bs-theme=dark] .site-footer a {
    color: #2f81f7 !important;
}

[data-bs-theme=dark] .site-footer a:hover {
    color: #58a6ff !important;
}

.site-footer .text-center {
    color: #57606a !important;
    font-size: 12px !important;
}

[data-bs-theme=dark] .site-footer .text-center {
    color: #8b949e !important;
}

/* ========================================
   详情页样式 - GitHub风格
   ======================================== */
/* 文章头部Hero区域 */
.archive-hero,
.post-hero {
    background-color: #f6f8fa !important;
    background-image: none !important;
    border-bottom: 1px solid #d0d7de !important;
    padding: 32px 0 !important;
}

[data-bs-theme=dark] .archive-hero,
[data-bs-theme=dark] .post-hero {
    background-color: #161b22 !important;
    border-bottom-color: #30363d !important;
}

.archive-hero .archive-hero-bg,
.post-hero .archive-hero-bg {
    display: none !important;
}

.archive-hero .post-title,
.post-hero .post-title {
    color: #24292f !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
}

[data-bs-theme=dark] .archive-hero .post-title,
[data-bs-theme=dark] .post-hero .post-title {
    color: #c9d1d9 !important;
}

.archive-hero .article-meta,
.post-hero .article-meta {
    color: #57606a !important;
    font-size: 14px !important;
}

[data-bs-theme=dark] .archive-hero .article-meta,
[data-bs-theme=dark] .post-hero .article-meta {
    color: #8b949e !important;
}

/* 面包屑导航 */
.container-full.bg-white {
    background-color: #ffffff !important;
    border-bottom: 1px solid #d0d7de !important;
}

[data-bs-theme=dark] .container-full.bg-white {
    background-color: #0d1117 !important;
    border-bottom-color: #30363d !important;
}

.breadcrumb {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.breadcrumb-item a {
    color: #0969da !important;
}

.breadcrumb-item.active {
    color: #57606a !important;
}

[data-bs-theme=dark] .breadcrumb-item a {
    color: #2f81f7 !important;
}

[data-bs-theme=dark] .breadcrumb-item.active {
    color: #8b949e !important;
}

/* 文章内容区域 */
.container .content-wrapper {
    background-color: transparent !important;
}

.container .card {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

[data-bs-theme=dark] .container .card {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

/* 文章标题 */
.article-header {
    padding: 24px 24px 0 !important;
    border-bottom: none !important;
}

.article-header .post-title {
    color: #24292f !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.33 !important;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

[data-bs-theme=dark] .article-header .post-title {
    color: #c9d1d9 !important;
}

.article-header .article-meta {
    color: #57606a !important;
    font-size: 14px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #d0d7de !important;
}

[data-bs-theme=dark] .article-header .article-meta {
    color: #8b949e !important;
    border-bottom-color: #30363d !important;
}

/* 文章内容 */
.entry-content {
    padding: 24px !important;
    color: #24292f !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

[data-bs-theme=dark] .entry-content {
    color: #c9d1d9 !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #24292f !important;
    font-weight: 600 !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #d0d7de !important;
}

[data-bs-theme=dark] .entry-content h1,
[data-bs-theme=dark] .entry-content h2,
[data-bs-theme=dark] .entry-content h3,
[data-bs-theme=dark] .entry-content h4,
[data-bs-theme=dark] .entry-content h5,
[data-bs-theme=dark] .entry-content h6 {
    color: #c9d1d9 !important;
    border-bottom-color: #30363d !important;
}

.entry-content p {
    margin-bottom: 16px !important;
}

.entry-content a {
    color: #0969da !important;
    text-decoration: none !important;
}

.entry-content a:hover {
    text-decoration: underline !important;
}

[data-bs-theme=dark] .entry-content a {
    color: #2f81f7 !important;
}

.entry-content img {
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    max-width: 100% !important;
    height: auto !important;
}

[data-bs-theme=dark] .entry-content img {
    border-color: #30363d !important;
}

/* 侧边栏 */
.sidebar-wrapper .sidebar {
    background-color: transparent !important;
}

.sidebar-wrapper .widget,
.sidebar-wrapper .sidebar-box {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    margin-bottom: 16px !important;
}

[data-bs-theme=dark] .sidebar-wrapper .widget,
[data-bs-theme=dark] .sidebar-wrapper .sidebar-box {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

/* 评论区域 */
.comments-area {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    margin-top: 16px !important;
    padding: 24px !important;
}

[data-bs-theme=dark] .comments-area {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

.comments-title {
    color: #24292f !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #d0d7de !important;
}

[data-bs-theme=dark] .comments-title {
    color: #c9d1d9 !important;
    border-bottom-color: #30363d !important;
}

.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.comment-list .comment {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    margin-bottom: 16px !important;
    padding: 16px !important;
}

[data-bs-theme=dark] .comment-list .comment {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

.comment-author {
    font-weight: 600 !important;
    color: #24292f !important;
}

[data-bs-theme=dark] .comment-author {
    color: #c9d1d9 !important;
}

.comment-meta,
.comment-metadata {
    color: #57606a !important;
    font-size: 12px !important;
}

[data-bs-theme=dark] .comment-meta,
[data-bs-theme=dark] .comment-metadata {
    color: #8b949e !important;
}

/* 相关文章 */
.entry-related-posts {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    margin-top: 16px !important;
    padding: 24px !important;
}

[data-bs-theme=dark] .entry-related-posts {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

/* 文章导航 */
.entry-navigation {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    margin-top: 16px !important;
    padding: 16px 24px !important;
}

[data-bs-theme=dark] .entry-navigation {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

.entry-navigation a {
    color: #0969da !important;
}

[data-bs-theme=dark] .entry-navigation a {
    color: #2f81f7 !important;
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 991px) {
    .site-header .navbar-search {
        display: none !important;
    }
    
    .site-header .main-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .archive-hero .post-title,
    .post-hero .post-title {
        font-size: 24px !important;
    }
    
    .article-header {
        padding: 16px 16px 0 !important;
    }
    
    .entry-content {
        padding: 16px !important;
    }
    
    .site-footer {
        padding: 32px 0 16px !important;
    }
}
