/*
Theme Name: Rxz Theme
Theme URI: https://www.ruixiaozi.com
Author: Ruixiaozi
Author URI: https://www.ruixiaozi.com
Description: A custom WordPress theme based on the VuePress design of ruixiaozi.com
Version: 1.0.1
Text Domain: rxz-theme
*/

:root {
  /* Brand colors - Anime Blue */
  --c-brand: #7aa2f7;
  --c-brand-dark: #5e8df7;

  /* Background colors - Dark Theme */
  --c-bg: #1a1b26;
  --c-bg-light: #24283b;
  --c-bg-lighter: #414868;
  --c-bg-transparent: rgba(26, 27, 38, 0.8);
  --c-bg-navbar: var(--c-bg-transparent);
  --c-bg-footer: #15161e;
  
  /* Text colors */
  --c-text: #c0caf5;
  --c-text-accent: var(--c-brand);
  --c-text-sub: #9aa5ce;
  --c-text-footer: #565f89;

  /* Border colors */
  --c-border: rgba(255, 255, 255, 0.1);
  --c-border-sub: rgba(255, 255, 255, 0.05);

  /* Shadows */
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);

  /* Font vars */
  --font-family: "Nunito", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout vars */
  --navbar-height: 3.6rem;
  --content-width: 900px;
  --homepage-width: 1126px;
}

html {
    margin-top: 0 !important;
}

body {
    font-family: var(--font-family);
    color: var(--c-text);
    background-color: var(--c-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--c-text-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Reset */
* {
    box-sizing: border-box;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Common Layout */
.common {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.common.not-full {
    background-color: var(--c-bg-light);
}

.common.not-full header.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1);
    z-index: 2900;
}

.common.not-full .common-container {
    padding-top: 72px; /* --navbar-height approx */
    min-height: calc(100vh - 72px);
    padding-bottom: 60px; /* Space for footer */
}

/* Navbar */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 0.7rem 1.5rem; /* --navbar-padding-v/h */
    height: var(--navbar-height);
    box-shadow: var(--box-shadow);
    background-color: var(--glass-bg);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-bar.transparent {
    box-shadow: none;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2900;
}

.nav-bar.dark {
    color: #fff;
}

.nav-bar.dark a {
    color: #fff;
}

.nav-bar-left {
    flex: 1;
    font-weight: 600;
    font-family: var(--font-family-code, monospace);
}

.nav-bar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Menu */
.main-navigation ul.rxz-menu {
    display: flex;
    gap: 20px;
}

.main-navigation ul.rxz-menu li {
    position: relative;
}

.main-navigation ul.rxz-menu li a {
    display: block;
    padding: 0 10px;
    font-weight: 600;
    text-decoration: none;
}

.nav-bar.dark .main-navigation ul.rxz-menu li a {
    color: #fff;
}

.nav-bar:not(.dark) .main-navigation ul.rxz-menu li a {
    color: var(--c-text);
}

/* Submenus */
.main-navigation ul.rxz-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(20, 20, 35, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 160px;
    z-index: 2901;
}

.main-navigation ul.rxz-menu li:hover > ul {
    display: block;
    animation: fadeInUp 0.2s ease-out;
}

.main-navigation ul.rxz-menu ul li {
    display: block;
    width: 100%;
}

.main-navigation ul.rxz-menu ul li a {
    padding: 10px 20px;
    color: var(--text-secondary) !important;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.2s;
}

.main-navigation ul.rxz-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color) !important;
    text-decoration: none;
    transform: translateX(5px);
}

/* Footer */
.site-footer {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(10, 10, 20, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Home Page Styles */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.home-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-container-logo {
    width: 120px;
    height: 120px;
    border-radius: 120px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    background-size: 80% 80%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    cursor: pointer;
    transition: all ease 0.8s;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(122, 162, 247, 0.3);
}

.home-container-logo:hover {
    transform: rotate(360deg);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(122, 162, 247, 0.6);
}

.home-container-info {
    width: 500px;
    max-width: 90%;
    padding: 20px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-container-info-author {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: bold;
}

.home-container-info-desc {
    font-size: 16px;
    line-height: 1.5;
}

.home-footer {
    width: 100%;
    position: absolute;
    bottom: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.home-footer a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* =========================================
   Anime Premium Dark Style (Redesign)
   ========================================= */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Base Variables for this style */
:root {
    --glass-bg: rgba(20, 20, 35, 0.85); /* Increased opacity since blur is gone */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 0px; /* Removed blur */
    --card-hover-bg: rgba(30, 30, 50, 0.95);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #7aa2f7; /* Soft blue anime accent */
    --accent-glow: 0 0 15px rgba(122, 162, 247, 0.5);
}

/* Global Overrides for Dark Pages */
.article-page, .category-page, .blog-page, .archive-page, .search-page {
    color: var(--text-primary);
    font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
}

.article-page-overlay, .category-page-overlay, .blog-page-overlay, .archive-page-overlay, .search-page-overlay {
    background: radial-gradient(circle at center, rgba(15, 15, 25, 0.6) 0%, rgba(10, 10, 20, 0.9) 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* New Fixed Background Pattern */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.fixed-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 15, 25, 0.6) 0%, rgba(10, 10, 20, 0.9) 100%);
    z-index: 0;
}

/* Ensure content sits above background */
.article-page, .category-page, .blog-page, .archive-page, .search-page {
    position: relative;
    z-index: 1;
    background: transparent !important;
    min-height: 100vh; /* Ensure full height scroll */
}

/* Navbar adjustments for fixed bg */
.nav-bar.transparent {
    z-index: 10;
}

/* Site Footer overrides for dark theme pages */
.common.full .site-footer {
    background: rgba(10, 10, 20, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* =========================================
   Hero Section (Category & Article)
   ========================================= */
.category-hero, .article-header {
    position: relative;
    padding: 80px 5% 10px; /* Increased padding */
    text-align: center; /* Center alignment */
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
    min-height: auto;
}

.category-hero-content, .article-header-warp {
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    position: relative;
    display: block; /* Stack vertically */
}

/* Remove shine from simplified hero */
.category-hero-content::before, .article-header-warp::before {
    display: none;
}

.category-hero-text, .article-header-text {
    display: block;
}

.category-hero-title, .article-header-title {
    font-size: 1.5rem; /* Reduced font size */
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(120deg, #fff, #a5c9ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.4;
}

.category-hero-desc, .article-header-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.article-header-info, .category-hero-meta {
    display: flex;
    justify-content: center; /* Center align */
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.article-header-info span, .category-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.2);
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

/* Remove icon styles as they are no longer used */
.category-hero-icon {
    display: none;
}

@media (max-width: 768px) {
    .category-hero, .article-header {
        padding: 80px 5% 20px;
    }
    
    .category-hero-title, .article-header-title {
        font-size: 1.3rem;
    }
}

/* =========================================
   Grid Layout for Posts (Category/Index)
   ========================================= */
.category-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
    position: relative;
    z-index: 2;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out backwards;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Staggered animation delays for grid items (up to 10) */
.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }
/* ... more can be added via JS loop if needed, but CSS covers basics */

.post-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--accent-glow);
    border-color: rgba(122, 162, 247, 0.3);
    background: var(--card-hover-bg);
}

.post-card-thumb {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.1);
}

.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(90deg, var(--accent-color), #fff);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
    padding-bottom: 2px;
}

.post-card:hover .post-card-title a {
    background-size: 100% 2px;
    color: #fff;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: rgba(224, 224, 224, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.post-card:hover .read-more-btn {
    gap: 10px;
    text-shadow: 0 0 8px rgba(122, 162, 247, 0.4);
}

/* =========================================
   Article Content Styling (Glassmorphism)
   ========================================= */
.rxz-content {
    max-width: 960px; /* Optimal reading width */
    margin: 40px auto;
    background: var(--glass-bg);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #d0d0d0;
    font-size: 1.1rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.rxz-content h1, .rxz-content h2, .rxz-content h3, .rxz-content h4 {
    color: #fff;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    position: relative;
}

.rxz-content h2 {
    padding-left: 15px;
    border-left: 4px solid var(--accent-color);
}

.rxz-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed rgba(122, 162, 247, 0.5);
    transition: all 0.3s;
}

.rxz-content a:hover {
    color: #fff;
    border-bottom-style: solid;
    text-shadow: 0 0 10px var(--accent-color);
}

.article-toc::-webkit-scrollbar {
    width: 4px;
}

.article-toc::-webkit-scrollbar-thumb {
    background: var(--c-border);
    border-radius: 2px;
}

.article-toc-title {
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
    font-size: 14px;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc li {
    margin-bottom: 6px;
}

.article-toc a {
    color: var(--c-text-sub);
    text-decoration: none;
    display: block;
    padding: 4px 0;
    line-height: 1.4;
    transition: color 0.2s;
    border-left: 2px solid transparent;
    padding-left: 8px;
}

.article-toc a:hover {
    color: var(--c-brand);
}

.article-toc a.active {
    color: var(--c-brand);
    border-left-color: var(--c-brand);
    font-weight: 500;
}

/* TOC 层级缩进 */
.article-toc .toc-h2 { padding-left: 8px; }
.article-toc .toc-h3 { padding-left: 20px; font-size: 12px; }
.article-toc .toc-h4 { padding-left: 32px; font-size: 12px; }
.article-toc .toc-h5 { padding-left: 44px; font-size: 11px; }
.article-toc .toc-h6 { padding-left: 56px; font-size: 11px; }

/* 小屏幕隐藏TOC */
@media (max-width: 1200px) {
    .article-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .rxz-content {
        padding: 20px;
    }
    
    .home-container-info {
        width: 90%;
    }
}

/* Article Portal (Blog List) Styles - 二次元卡片风格 */
.article-portal-body {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 8%;
    display: flex;
    gap: 24px;
    margin-top: 0;
}

.article-portal-body h3 {
    margin: 0 0 20px 0;
    padding: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    position: relative;
}

.article-portal-body h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.article-portal-body-news {
    flex: 3;
    background: var(--glass-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 24px;
    min-height: 400px;
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--glass-border);
}

.article-portal-body-news:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(122, 162, 247, 0.3);
}

.article-portal-body-news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-portal-body-news li {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.article-portal-body-news li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent-color);
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.article-portal-body-news li:last-child {
    margin-bottom: 0;
}

.article-portal-body-news p {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.article-portal-body-news p a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.article-portal-body-news p a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.article-portal-body-news-info {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-portal-body-news-info > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-portal-body-news-info svg {
    opacity: 0.7;
    fill: var(--text-secondary);
}

.article-portal-body-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-portal-body-side-item {
    background: var(--glass-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--glass-border);
}

.article-portal-body-side-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(122, 162, 247, 0.3);
}

.article-portal-body-side-item h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-portal-body-side-item ul {
    list-style: none;
    padding: 0;
}

.article-portal-body-side-item li {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.article-portal-body-side-item li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.article-portal-body-side-item li a {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-portal-body-side-item li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* 分类计数标签 */
.article-portal-body-side-item li .count,
.article-portal-body-side-item li a::after {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.pagination {
    margin-top: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--c-bg-light);
    color: var(--c-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: var(--c-brand);
    color: #fff;
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--c-brand), var(--c-brand-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(55, 123, 181, 0.3);
}

@media (max-width: 768px) {
    .article-portal-body {
        flex-direction: column;
        padding: 16px;
    }
    
    .article-portal-body-side {
        width: 100%;
    }
    
    .article-portal-body-news li {
        padding: 12px;
    }
}

/* Markdown / Content Styles */
.rxz-content {
    font-family: var(--font-family);
    color: var(--c-text);
    line-height: 1.7;
}

.rxz-content h1,
.rxz-content h2,
.rxz-content h3,
.rxz-content h4,
.rxz-content h5,
.rxz-content h6 {
    color: var(--c-text);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.rxz-content h1 { font-size: 2.2rem; }
.rxz-content h2 { 
    font-size: 1.5rem; 
    border-bottom: 4px solid var(--c-bg-lighter);
    padding-bottom: 0.3rem;
}
.rxz-content h3 { 
    font-size: 1.25rem; 
    position: relative;
    padding-left: 12px;
}
.rxz-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    border-left: 4px solid #ff5f56;
}
.rxz-content h4 { font-size: 1.1rem; }
.rxz-content h5 { font-size: 1rem; }
.rxz-content h6 { font-size: 0.875rem; }

.rxz-content p, 
.rxz-content ul, 
.rxz-content ol {
    margin-bottom: 1.2em;
}

.rxz-content ul, 
.rxz-content ol {
    padding-left: 1.2em;
    list-style: disc;
}

.rxz-content ol {
    list-style: decimal;
}

.rxz-content li::marker {
    color: #e83e8c;
    font-weight: bold;
}

.rxz-content a {
    color: var(--c-brand);
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: break-word;
}

.rxz-content a:hover {
    text-decoration: underline;
}

.rxz-content blockquote {
    font-size: 1rem;
    color: var(--c-text);
    background-color: #fbf1db; /* $blockQuoteBgColor */
    border-left: 4px solid #ffbd2e; /* $borderColorBlockQuote */
    margin: 1rem 0;
    padding: 16px 16px;
    border-top-right-radius: 16px;
}

.rxz-content blockquote > p {
    margin: 0;
}

.rxz-content img {
    max-width: 100%;
    height: auto;
}

.rxz-content hr {
    border: 0;
    border-top: 1px solid var(--c-border);
    margin: 2rem 0;
}

.rxz-content table {
    border-collapse: collapse;
    margin: 1rem 0;
    display: block;
    overflow-x: auto;
    width: 100%;
}

.rxz-content tr {
    border-top: 1px solid var(--c-border);
}

.rxz-content th, 
.rxz-content td {
    padding: 0.6em 1em;
    border: 1px solid var(--c-border);
}

/* Code Styles */
.rxz-content code {
    font-family: var(--font-family-code, monospace);
    font-size: 0.875em;
    color: #e83e8c;
    background-color: #f9f2f4; /* $inlineCodeBg */
    padding: 0.1em 0.3em;
    border-radius: 0.3em;
    word-wrap: break-word;
}

.rxz-content pre {
    background: #282c34; /* --code-bg-color */
    color: #ccc;
    padding: 1.5rem;
    margin: 0.85rem 0;
    border-radius: 6px;
    overflow: auto;
    line-height: 1.4;
}

.rxz-content pre code {
    color: #fff;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
}

/* Basic Syntax Highlighting fallback */
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #999;
}

.token.punctuation {
    color: #ccc;
}

.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
    color: #ec5975;
}

.token.function-name {
    color: #6196cc;
}

.token.boolean,
.token.number,
.token.function {
    color: #f08d49;
}

.token.property,
.token.class-name,
.token.constant,
.token.symbol {
    color: #f8c555;
}

.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
    color: #cc99cd;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
    color: #7ec699;
}

.token.operator,
.token.entity,
.token.url {
    color: #67cdcc;
}

/* Search Form Styles - 二次元风格 */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0 12px;
    max-width: 180px;
    transition: all 0.3s ease;
}

.search-form:hover,
.search-form:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.search-field {
    border: none;
    outline: none;
    padding: 8px 0;
    width: 100%;
    font-size: 13px;
    color: #fff;
    background: transparent;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-submit:hover {
    color: #fff;
    transform: scale(1.1);
}

/* 非透明导航栏下的搜索框样式 */
.nav-bar:not(.dark) .search-form {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--c-border);
}

.nav-bar:not(.dark) .search-form:hover,
.nav-bar:not(.dark) .search-form:focus-within {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--c-brand);
    box-shadow: 0 0 10px rgba(55, 123, 181, 0.15);
}

.nav-bar:not(.dark) .search-field {
    color: var(--c-text);
}

.nav-bar:not(.dark) .search-field::placeholder {
    color: var(--c-text-sub);
}

.nav-bar:not(.dark) .search-submit {
    color: var(--c-text-sub);
}

.nav-bar:not(.dark) .search-submit:hover {
    color: var(--c-brand);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Comments Section Styles - 深色风格 */
.comments-area {
    position: relative;
    z-index: 1;
    padding: 30px 10%;
    margin: 20px 5%;
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--c-text);
}

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

.comment {
    margin-bottom: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-border);
}

.comment:last-child {
    border-bottom: none;
}

.comment .children {
    list-style: none;
    margin-top: 12px;
    padding-left: 40px;
}

.comment .children .comment {
    margin-bottom: 8px;
    padding: 12px 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--c-text);
    font-size: 14px;
}

.comment-author .fn a {
    color: var(--c-brand);
    text-decoration: none;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 12px;
    color: var(--c-text-sub);
    margin-bottom: 8px;
}

.comment-metadata a {
    color: var(--c-text-sub);
    text-decoration: none;
}

.comment-content {
    color: var(--c-text);
    line-height: 1.6;
    font-size: 14px;
}

.comment-content p {
    margin: 0;
}

.reply {
    margin-top: 8px;
}

.reply a {
    color: var(--c-text-sub);
    font-size: 12px;
    text-decoration: none;
}

.reply a:hover {
    color: var(--c-brand);
}

/* Comment Form */
.comment-respond {
    position: relative;
    z-index: 1;
    padding: 30px 10%;
    margin: 20px 5% 40px 5%;
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--c-text);
}

.comment-reply-title small {
    font-size: 0.8rem;
    margin-left: 8px;
}

.comment-reply-title small a {
    color: var(--c-text-sub);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form label {
    font-weight: 500;
    color: var(--c-text);
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.comment-form .required {
    color: #e74c3c;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(122, 162, 247, 0.2);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--c-text-sub);
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
}

.comment-form .form-submit {
    margin-top: 8px;
}

.comment-form .submit {
    padding: 10px 24px;
    background: var(--c-brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: var(--c-brand-dark);
}

.logged-in-as {
    font-size: 12px;
    color: var(--c-text-sub);
    margin-bottom: 12px;
}

.logged-in-as a {
    color: var(--c-brand);
}

/* Category Page Styles - 二次元暗色风格 */
.category-hero {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 80px 5% 10px;
}

.category-hero-overlay {
    display: none;
}

.category-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.category-hero-icon {
    display: none;
}

.category-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    background: linear-gradient(120deg, #fff, #a5c9ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.category-hero-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.category-hero-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.category-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.2);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-hero-count svg {
    width: 14px;
    height: 14px;
    opacity: 0.9;
    color: inherit;
}

.category-body {
    background: transparent;
    padding-bottom: 40px;
}

.category-body .article-portal-body {
    padding-top: 30px;
}

/* Archive page (tag, date) similar styles */
.archive-hero {
    position: relative;
    width: 100%;
    min-height: 280px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px 20px;
}

.archive-hero-content {
    text-align: center;
    color: #fff;
}

.archive-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .category-hero {
        min-height: auto;
        padding: 80px 16px 20px 16px;
    }
    
    .category-hero-title {
        font-size: 1.3rem;
    }
    
    .category-hero-icon {
        display: none;
    }
}

/* 404 Page Styles - Updated to match new structure */
.error-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px;
}

/* Site Footer */
.site-footer {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(10, 10, 20, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0;
}

.site-footer a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Pagination Dark Styles */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination .page-numbers:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(122, 162, 247, 0.4);
    border-color: var(--accent-color);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--accent-color), #5e8df7);
    color: #fff;
    box-shadow: 0 4px 12px rgba(122, 162, 247, 0.3);
    border-color: transparent;
}

.error-404 h1 {
    font-size: 6rem;
    margin: 0;
    color: var(--c-brand);
}

.error-404 p {
    font-size: 1.5rem;
    color: var(--c-text-sub);
}

.error-actions {
    margin-top: 30px;
}

.btn-home {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--c-brand);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-home:hover {
    background-color: var(--c-brand-dark);
    text-decoration: none;
    color: #fff;
}


