/*
Theme Name: Digital Mind (数字觉察)
Theme URI: https://your-domain.com
Author: 李不言
Author URI: https://your-domain.com
Description: 字不言，文自远。专注于探讨人文底线与数字生存论的极简 WordPress 主题。
Version: 6.0
Text Domain: digital-mind
*/

/* ==========================================================================
   全局变量与基础设定 (Global Variables & Reset)
   ========================================================================== */
:root {
    --black: #1a1a1a;
    --gray: #666;
    --light-border: #e8e8e8;
    --ads-border: #e0e0e0;
    --accent: #007AFF;
    --container-width: 1300px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", serif; 
    background-color: #f5f5f7; 
    color: var(--black); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    padding: 40px 0; 
}

.site-wrapper { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    background-color: #fff; 
    border-left: 1px solid var(--light-border); 
    border-right: 1px solid var(--light-border); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
}

.container { padding: 0 50px; }

/* ==========================================================================
   WordPress 核心样式
   ========================================================================== */
.aligncenter { display: block; margin: 0 auto 20px; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
figure.wp-caption { max-width: 100%; margin-bottom: 20px; }
figcaption.wp-caption-text { font-size: 13px; color: var(--gray); text-align: center; margin-top: 8px; }

/* ==========================================================================
   公共头部与导航 (Header & Navigation) - 包含 Logo 对齐，删除了导航搜索
   ========================================================================== */
.site-header { border-bottom: 1px solid var(--light-border); }
.header-inner { height: 100px; display: flex; justify-content: space-between; align-items: center; }

/* Logo 上下结构与强制两端对齐 */
.logo a { display: inline-flex; flex-direction: column; text-decoration: none !important; }
.site-title { font-size: 28px; font-weight: 800; letter-spacing: 2px; line-height: 1; color: var(--black); }
.site-subtitle { 
    font-size: 11px; 
    font-weight: 500; 
    color: #999; 
    margin-top: 6px; 
    text-transform: uppercase; 
    /* 核心魔法：强制拉伸英文字间距以对齐中文字宽 */
    letter-spacing: 3.5px; 
    margin-right: -3.5px; /* 抵消最后一个字母多出来的空白间距 */
    text-align: center;
}

/* 导航链接 */
.main-nav { display: flex !important; align-items: center !important; }
.main-nav ul { display: flex !important; flex-direction: row !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.main-nav li { list-style: none !important; display: inline-block !important; margin: 0 !important; padding: 0 !important; }
.main-nav li::before, .main-nav li::after { display: none !important; content: none !important; } 
.main-nav a { text-decoration: none !important; color: var(--black) !important; margin-left: 35px !important; font-size: 15px; font-weight: 500; transition: 0.3s; border: none !important; }
.main-nav a:hover, .main-nav a.active { color: var(--accent) !important; }

/* ==========================================================================
   首页 (Homepage - Index) 专属样式
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr; 
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    row-gap: 25px;
    padding: 60px 0;
    border-bottom: 1px solid #f9f9f9;
}

/* 跨栏大标题 & 分类标签防变色 */
.hero-headline { grid-column: 1 / 3; grid-row: 1; border-bottom: 2px solid var(--black); padding-bottom: 15px; }
.category-tag, .category-tag a, .feed-category, .feed-category a { color: var(--accent) !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 1px !important; text-transform: uppercase !important; display: block; margin-bottom: 8px; text-decoration: none !important; border: none !important; box-shadow: none !important; }
.hero-headline h1 { font-size: 38px; line-height: 1.3; font-weight: 700; letter-spacing: -0.5px; }
.hero-headline a { color: inherit !important; text-decoration: none !important; transition: color 0.3s; }
.hero-headline a:hover { color: var(--accent) !important; }

/* 左侧幻灯片栏 - 高度锁定为宽银幕 280px */
.hero-left-column { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; }
.hero-image-frame { position: relative; padding: 6px; background: #fff; border: 1px solid #eee; border-radius: 2px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); height: 280px !important; overflow: hidden; }
.slide-img { position: absolute; top: 6px; left: 6px; right: 6px; bottom: 6px; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out; overflow: hidden; }
.slide-img.active { opacity: 1; visibility: visible; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 4s ease; }
.slide-img.active img { transform: scale(1.02); }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin: 15px 0; }
.dot { width: 25px; height: 3px; background-color: #eee; cursor: pointer; transition: 0.3s; }
.dot.active { background-color: var(--black); }

.hero-caption-frame { position: relative; height: 130px; border: 1px dashed var(--ads-border); background-color: #fafafa; border-radius: 2px; }
.slide-cap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px; text-align: center; opacity: 0; visibility: hidden; transition: opacity 0.6s ease; }
.slide-cap.active { opacity: 1; visibility: visible; }
.caption-tag { font-size: 10px; color: #ccc; letter-spacing: 3px; margin-bottom: 8px; display: block; }
.slide-cap h4 { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--black); }
.slide-cap h4 a { text-decoration: none !important; color: inherit !important; }

/* 中间栏：摘要 + 实验项目 + 广告 */
.hero-middle-column { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; }
.hero-excerpt p { font-size: 16px; color: var(--gray); margin-bottom: 20px; line-height: 1.8; }
.middle-project-widget { margin-top: auto; margin-bottom: 25px; padding-left: 15px; border-left: 3px solid var(--black); }
.middle-project-widget h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--black); }
.middle-project-widget p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.hero-ad-box { border: 1px dashed var(--ads-border); background-color: #fafafa; height: 100px; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 13px; border-radius: 2px; }

/* 右侧次文 */
.hero-article-secondary { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.secondary-item { padding-bottom: 5px; }
.secondary-item h3 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.secondary-item h3 a { text-decoration: none !important; color: inherit !important; }
.secondary-item p { font-size: 13px; color: var(--gray); margin-bottom: 12px; line-height: 1.6; }
.mini-divider { border: 0; border-top: 1px solid #eee; margin: 15px 0; }
.meta { font-size: 12px; color: #aaa; }

/* 三域卡片与列表通用 */
.realms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 60px 0; border-bottom: 1px solid #f9f9f9; }
.realm-card { padding: 35px; background: #fcfcfc; border: 1px solid #f5f5f5; border-radius: 4px; transition: 0.3s; }
.realm-card:hover { background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transform: translateY(-3px); }
.realm-card h3 { margin-bottom: 12px; font-size: 20px; }
.realm-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.more-link { display: inline-block; margin-top: 20px; color: var(--accent); text-decoration: none; font-size: 13px; }

.horizontal-ad-container { padding: 50px 0; text-align: center; border-bottom: 1px solid #f9f9f9; }
.ads-mock-horizontal { background: #fafafa; border: 1px dashed var(--ads-border); height: 120px; line-height: 120px; color: #bbb; font-size: 14px; }

/* 底部文章流 */
.article-feed-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; padding: 60px 0 80px; align-items: start; }
.section-title { font-size: 24px; margin-bottom: 40px; font-weight: 700; border-left: 4px solid var(--black); padding-left: 15px; line-height: 1; color: var(--gray); }
.feed-list { display: flex; flex-direction: column; gap: 40px; }
.feed-item { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid #f0f0f0; }
.feed-category { font-size: 13px; color: var(--accent); font-weight: 600; padding-top: 5px; }
.feed-content h2 { font-size: 24px; margin-bottom: 12px; transition: color 0.3s; cursor: pointer; }
.feed-content h2:hover, .feed-content h2 a:hover { color: var(--accent) !important; }
.feed-content h2 a { color: inherit !important; text-decoration: none !important; }
.feed-content p { font-size: 15px; color: var(--gray); margin-bottom: 15px; line-height: 1.8; }
.load-more-container { text-align: center; margin-top: 20px; }
.load-more-btn { display: inline-block; padding: 12px 30px; border: 1px solid var(--black); color: var(--black); text-decoration: none; font-size: 14px; transition: 0.3s; }
.load-more-btn:hover { background: var(--black); color: #fff; }

.feed-sidebar { display: flex; flex-direction: column; gap: 40px; padding-top: 10px; }

/* ... (后续详情页、关于页、响应式样式保持不变，不影响首页核心布局) ... */
.single-main-content { padding-top: 60px; padding-bottom: 80px; }
.post-header { max-width: 900px; margin: 0 auto 40px; text-align: center; }
.post-header .category-tag { display: inline-block; margin-bottom: 15px; }
.post-title { font-size: 40px; line-height: 1.35; font-weight: 700; color: var(--black); margin: 0 0 20px; letter-spacing: -0.5px; }
.post-meta { font-size: 13px; color: var(--gray); display: flex; justify-content: center; align-items: center; gap: 15px; }
.meta-author { font-weight: 600; color: var(--black); }
.meta-separator { color: #ddd; }
.post-hero-image-narrow { width: 100%; margin-bottom: 50px; }
.post-hero-image-narrow img { width: 100%; height: 320px; object-fit: cover; border-radius: 2px; }
.image-credit { display: block; text-align: right; font-size: 11px; color: #ccc; margin-top: 10px; letter-spacing: 1px; }
.post-content-layout { display: grid; grid-template-columns: 1fr auto 320px; gap: 0; align-items: start; }
.post-body { padding-right: 50px; font-size: 17px; line-height: 2; color: #2c2c2e; }
.lead-paragraph::first-letter { font-size: 3.2em; float: left; line-height: 1; margin-right: 12px; margin-top: 6px; color: var(--black); font-weight: 700; font-family: "Source Han Serif SC", "Noto Serif SC", serif; }
.post-body p { margin-bottom: 30px; }
.post-body h2 { font-size: 26px; font-weight: 700; margin: 60px 0 25px; color: var(--black); position: relative; }
.post-body h2::before { content: ''; position: absolute; left: -15px; top: 6px; bottom: 6px; width: 4px; background-color: var(--black); }
.post-body ul { margin-bottom: 30px; padding-left: 20px; }
.post-body li { margin-bottom: 15px; }
.post-body blockquote { margin: 40px 0; padding: 25px 30px; background-color: #fafafa; border-left: 1px dashed var(--gray); font-size: 18px; line-height: 1.8; color: #555; }
.post-body img { max-width: 100%; height: auto; border-radius: 2px; }
.post-copyright-box { display: flex; align-items: center; gap: 20px; padding: 25px; background-color: #f9f9fb; border: 1px solid #f0f0f0; border-radius: 2px; margin-top: 30px; }
.copyright-icon { width: 45px; height: 45px; background-color: var(--black); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; font-family: serif; flex-shrink: 0; }
.copyright-info h4 { font-size: 16px; margin-bottom: 8px; color: var(--black); }
.copyright-info p { font-size: 13px; color: var(--gray); line-height: 1.6; margin: 0; }
.post-tags { margin-top: 50px; padding-top: 30px; border-top: 1px solid #f0f0f0; }
.post-tags a { display: inline-block; padding: 5px 12px; background-color: #f5f5f7; color: var(--gray); text-decoration: none; font-size: 12px; border-radius: 2px; margin-right: 10px; transition: 0.3s; }
.post-tags a:hover { background-color: var(--black); color: #fff; }
.in-article-ad { margin: 50px 0; text-align: center; }
.in-article-ad-box { border: 1px dashed var(--ads-border); background-color: #fafafa; min-height: 200px; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 13px; border-radius: 2px; }
.vertical-divider { width: 1px; border-left: 1px dashed var(--gray); grid-column: 2; height: 100%; margin: 0 10px; }
.post-sidebar { padding-left: 40px; display: flex; flex-direction: column; gap: 40px; }
.sidebar-widget { padding-bottom: 30px; border-bottom: 1px solid #f0f0f0; }
.sidebar-widget:last-child { border-bottom: none; }
.widget-author { padding: 25px; background-color: #f9f9fb; border: 1px solid #f0f0f0; border-radius: 2px; }
.widget-author-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.author-avatar-small { width: 45px; height: 45px; background-color: var(--black); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; font-family: serif; }
.author-name { font-size: 16px; margin-bottom: 3px; }
.author-title { font-size: 11px; color: var(--gray); }
.author-desc { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 15px; }
.widget-action-link { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; }
.widget-title { font-size: 14px; text-transform: uppercase; color: #aaa; letter-spacing: 2px; margin-bottom: 20px; }
.toc-list { list-style: none; padding-left: 10px; border-left: 1px solid #eee; }
.toc-list li { margin-bottom: 12px; }
.toc-list a { text-decoration: none; color: var(--gray); font-size: 14px; transition: 0.3s; display: block; position: relative; }
.toc-list a::before { content: ''; position: absolute; left: -13px; top: 8px; width: 5px; height: 1px; background-color: #ccc; }
.toc-list a:hover { color: var(--accent); }
.widget-sticky-ad { position: sticky; top: 120px; }
.sidebar-ad-box { border: 1px dashed var(--ads-border); background-color: #fafafa; height: 250px; display: flex; align-items: center; justify-content: center; text-align: center; color: #bbb; font-size: 13px; border-radius: 2px; line-height: 1.6; }
.bottom-multiplex-ad { margin: 60px 0; text-align: center; }
.multiplex-ad-box { border: 1px dashed var(--ads-border); background-color: #fafafa; height: 150px; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 13px; border-radius: 2px; }
.category-hero-box { text-align: center; padding: 20px 0 50px; margin-bottom: 60px; border-bottom: 2px solid var(--black); }
.category-subtitle { font-size: 11px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 15px; }
.category-title { font-size: 42px; font-weight: 700; margin-bottom: 25px; color: var(--black); letter-spacing: 2px; }
.category-title span { display: block; font-size: 12px; color: #ccc; letter-spacing: 6px; font-weight: 400; margin-top: 10px; }
.category-desc { max-width: 650px; margin: 0 auto; font-size: 15px; color: var(--gray); line-height: 1.8; }
.archive-feed-list { display: flex; flex-direction: column; padding-right: 50px; }
.archive-item { display: grid; grid-template-columns: 240px 1fr; gap: 35px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid #f0f0f0; }
.archive-img { width: 100%; height: 160px; border-radius: 2px; overflow: hidden; }
.archive-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.archive-item:hover .archive-img img { transform: scale(1.05); }
.archive-text { display: flex; flex-direction: column; justify-content: center; }
.archive-text h2 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; font-weight: 700; }
.archive-text h2 a { color: var(--black); text-decoration: none; transition: color 0.3s; }
.archive-text h2 a:hover { color: var(--accent); }
.archive-text p { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 15px; }
.archive-in-feed-ad { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #f0f0f0; }
.in-feed-ad-box { border: 1px dashed var(--ads-border); background-color: #fafafa; height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; color: #bbb; font-size: 13px; border-radius: 2px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.page-numbers { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 15px; border: 1px solid #eee; color: var(--black); text-decoration: none; font-size: 14px; border-radius: 2px; transition: 0.3s; }
.page-numbers:hover { border-color: var(--black); }
.page-numbers.current { background-color: var(--black); color: #fff; border-color: var(--black); }
.page-numbers.dots { border: none; background: transparent; }
.category-link-list li { display: flex; justify-content: space-between; align-items: center; }
.category-link-list a.active { color: var(--accent); font-weight: 600; }
.category-link-list span { font-size: 12px; color: #ccc; }
.about-hero-box { text-align: center; padding: 40px 0 80px; }
.about-title { font-size: 46px; font-weight: 700; color: var(--black); letter-spacing: 2px; margin-bottom: 20px; font-family: "Source Han Serif SC", "Noto Serif SC", serif; }
.about-subtitle { font-size: 16px; color: var(--gray); letter-spacing: 1px; }
.about-content-layout { display: grid; grid-template-columns: 1fr auto 380px; gap: 0; align-items: start; border-top: 2px solid var(--black); padding-top: 60px; }
.about-biography { padding-right: 60px; }
.bio-avatar { width: 100%; margin-bottom: 50px; }
.bio-img { width: 100%; height: 380px; object-fit: cover; border-radius: 2px; filter: grayscale(20%); }
.about-bottom-ad { margin-top: 60px; padding-top: 60px; border-top: 1px dashed #eee; }
.about-sidebar { padding-left: 50px; }
.project-card { padding: 25px; background-color: #fafafa; border: 1px dashed #ccc; border-radius: 2px; margin-bottom: 20px; transition: 0.3s; }
.project-card:hover { border-color: var(--black); background-color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.project-card h5 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--black); }
.project-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.timeline-list { list-style: none; padding-left: 0; position: relative; }
.timeline-list::before { content: ''; position: absolute; left: 4px; top: 5px; bottom: 0; width: 1px; background-color: #eee; }
.timeline-list li { position: relative; padding-left: 30px; margin-bottom: 35px; }
.timeline-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; background-color: #fff; border: 2px solid var(--black); border-radius: 50%; }
.timeline-date { display: block; font-size: 11px; color: var(--accent); font-family: monospace; letter-spacing: 1px; margin-bottom: 5px; }
.timeline-content strong { display: block; font-size: 16px; color: var(--black); margin-bottom: 8px; }
.timeline-content p { font-size: 13px; color: var(--gray); line-height: 1.6; }

@media screen and (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero-section { grid-template-columns: 1fr 1fr; }
    .hero-article-secondary { grid-column: 1 / 3; grid-row: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
    .hero-headline { grid-column: 1 / 3; }
    .mini-divider { display: none; } 
    .post-content-layout { grid-template-columns: 1fr auto 280px; }
    .about-content-layout { grid-template-columns: 1fr auto 300px; }
}
@media screen and (max-width: 768px) {
    body { padding: 0; } 
    .site-wrapper { border: none; box-shadow: none; } 
    .container { padding: 0 20px; }
    .header-inner { flex-direction: column; height: auto; padding: 20px 0; align-items: flex-start; gap: 15px; }
    .main-nav { width: 100%; overflow-x: auto; white-space: nowrap; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
    .main-nav::-webkit-scrollbar { display: none; } 
    .main-nav a { margin-left: 0; margin-right: 25px; font-size: 14px; }
    .hero-section { display: flex; flex-direction: column; gap: 30px; padding: 30px 0; }
    .hero-headline { padding-bottom: 10px; }
    .hero-headline h1 { font-size: 26px; line-height: 1.4; }
    .hero-slider { min-height: 300px; }
    .hero-image-container { height: 220px; }
    .hero-caption-frame { height: auto; min-height: 100px; }
    .hero-article-secondary { display: flex; flex-direction: column; margin-top: 0; }
    .hero-article-secondary .secondary-item { padding: 15px 0; }
    .mini-divider { display: block; margin: 0; }
    .realms-grid { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
    .realm-card { padding: 25px; }
    .article-feed-grid { grid-template-columns: 1fr; gap: 50px; padding: 40px 0; }
    .feed-item { grid-template-columns: 1fr; gap: 10px; padding-bottom: 30px; }
    .feed-content h2 { font-size: 20px; }
    .feed-category { padding-top: 0; margin-bottom: 5px; }
    .single-main-content { padding-top: 30px; padding-bottom: 40px; }
    .post-header { margin-bottom: 30px; text-align: left; } 
    .post-title { font-size: 26px; margin: 15px 0; }
    .post-meta { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
    .post-hero-image-narrow { margin-bottom: 30px; }
    .post-hero-image-narrow img { height: 200px; }
    .vertical-divider { display: none; }
    .post-content-layout { display: flex; flex-direction: column; gap: 40px; }
    .post-body { padding-right: 0; font-size: 16px; line-height: 1.8; }
    .post-body h2 { font-size: 22px; margin: 40px 0 20px; }
    .post-sidebar { padding-left: 0; border-top: 2px solid var(--black); padding-top: 40px; }
    .widget-sticky-ad { position: static; } 
    .post-copyright-box, .widget-author { flex-direction: column; text-align: left; align-items: flex-start; padding: 20px; gap: 15px; }
    .hero-ad-box, .in-article-ad-box, .sidebar-ad-box, .ads-mock-horizontal { height: auto; min-height: 100px; padding: 20px; }
    .category-hero-box { padding: 10px 0 30px; margin-bottom: 40px; }
    .archive-feed-list { padding-right: 0; }
    .archive-item { grid-template-columns: 1fr; gap: 15px; } 
    .archive-img { height: 200px; }
    .about-hero-box { padding: 20px 0 40px; }
    .about-title { font-size: 32px; }
    .about-content-layout { display: flex; flex-direction: column; padding-top: 40px; }
    .about-biography { padding-right: 0; }
    .bio-img { height: 250px; }
    .about-sidebar { padding-left: 0; margin-top: 40px; border-top: 2px solid var(--black); padding-top: 40px; }
}
@media screen and (max-width: 375px) {
    .post-title { font-size: 24px; }
    .hero-headline h1 { font-size: 24px; }
    .category-title { font-size: 32px; }
    .lead-paragraph::first-letter { font-size: 2.8em; }
}

.site-footer { border-top: 1px solid var(--light-border); padding: 60px 0; text-align: center; font-size: 13px; color: #999; }
.author-info { margin-top: 8px; color: #ccc; }

/* ==========================================================================
   修正：宽银幕幻灯片、控制横线与淡入淡出文字框
   ========================================================================== */

/* 1. 宽银幕图片框 */
.hero-image-frame { 
    position: relative; 
    padding: 6px; 
    background: #fff; 
    border: 1px solid #eee; 
    height: 280px !important; /* 强制匹配设计稿的宽扁比例 */
    overflow: hidden; 
}
.slide-img { 
    position: absolute; top: 6px; left: 6px; right: 6px; bottom: 6px; 
    opacity: 0; visibility: hidden; 
    transition: opacity 1s ease-in-out, visibility 1s; /* 丝滑的淡入淡出 */
}
.slide-img.active { 
    opacity: 1; visibility: visible; 
}
.slide-img img { width: 100%; height: 100%; object-fit: cover; }

/* 2. 控制器：还原设计稿中的三条横线 */
.slider-lines { 
    display: flex; justify-content: center; gap: 8px; margin: 15px 0; 
}
.slider-lines .line { 
    width: 30px; height: 2px; background-color: #e0e0e0; transition: 0.4s ease; 
}
.slider-lines .line.active { 
    background-color: var(--black); 
}

/* 3. 虚线文字框：绝不能用 display:none，必须用 opacity 才能实现动画 */
.hero-caption-frame { 
    position: relative; height: 130px; border: 1px dashed var(--ads-border); background-color: #fafafa; 
}
.slide-cap { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    padding: 15px; text-align: center;
    opacity: 0; visibility: hidden; /* 默认隐藏 */
    transition: all 0.8s ease-in-out; /* 文字也跟随图片同步淡入淡出 */
}
.slide-cap.active { 
    opacity: 1; visibility: visible; /* 激活时浮现 */
}
.caption-tag { 
    font-size: 10px; color: #ccc; letter-spacing: 3px; margin-bottom: 8px; text-transform: uppercase; 
}
.slide-cap h4 { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--black); margin: 0; }
.slide-cap h4 a { text-decoration: none !important; color: inherit !important; }

/* ==========================================================================
   侧边栏虚线搜索框专属样式
   ========================================================================== */
.sidebar-search-widget { 
    background: #fafafa; 
    border: 1px dashed #ccc; 
    padding: 25px; 
    margin-bottom: 30px; 
    border-radius: 2px; 
}
.sidebar-search-form { 
    display: flex; 
    width: 100%; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); 
}
.sidebar-search-input { 
    flex-grow: 1; 
    padding: 12px 15px; 
    border: 1px solid #eee; 
    border-right: none; 
    outline: none; 
    font-size: 13px; 
    color: var(--black); 
    background: #fff; 
    transition: 0.3s;
}
.sidebar-search-input:focus { 
    border-color: #ddd; 
}
.sidebar-search-btn { 
    background: var(--black); 
    color: #fff; 
    border: none; 
    padding: 0 20px; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 600; 
    letter-spacing: 1px;
    transition: background 0.3s; 
}
.sidebar-search-btn:hover { 
    background: var(--accent); 
}

/* ==========================================================================
   分类页侧边栏精准定制 (基于自定义 category.php)
   ========================================================================== */

/* ---------- 1. 全域导航 (树状结构) ---------- */
.widget-categories ul.category-link-list {
    list-style: none !important;
    padding: 0 0 0 10px !important; /* 左侧留空画主干 */
    margin: 0 !important;
    border-left: 1px solid #e8e8e8 !important; /* 连贯的垂直主干线 */
}

.widget-categories ul.category-link-list li {
    position: relative;
    margin: 0 0 15px 0 !important;
    padding: 0 0 0 15px !important;
    border-bottom: none !important; /* 绝对禁止底横线 */
    list-style: none !important;
    display: flex;
    align-items: center;
}

/* 魔法：画出连接主干的小分枝 */
.widget-categories ul.category-link-list li::before {
    content: '';
    position: absolute;
    left: -11px; /* 穿过去连上主干 */
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1px;
    background-color: #ccc !important;
}

.widget-categories ul.category-link-list li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: color 0.3s;
}

/* 激活状态和悬停变为主题蓝 */
.widget-categories ul.category-link-list li a:hover,
.widget-categories ul.category-link-list li a.active {
    color: #007AFF !important;
}

/* 分类数量文字变灰 */
.widget-categories ul.category-link-list li a span {
    color: #ccc !important;
    font-size: 12px !important;
    margin-left: 5px !important;
    font-weight: normal !important;
}

/* ---------- 2. 智域 · 精读 (文章列表) ---------- */
.widget-popular ul.sidebar-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget-popular ul.sidebar-list li {
    list-style: none !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eee !important; /* 这里的列表必须有底横线 */
    display: flex;
    flex-direction: column;
}

.widget-popular ul.sidebar-list li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 文章标题去下划线、加粗 */
.widget-popular ul.sidebar-list li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    margin-bottom: 6px !important;
    line-height: 1.5 !important;
    border: none !important;
    box-shadow: none !important;
    transition: color 0.3s;
}

.widget-popular ul.sidebar-list li a:hover {
    color: #007AFF !important;
}

/* 发布时间变灰 */
.widget-popular ul.sidebar-list li .sidebar-meta {
    font-size: 12px !important;
    color: #999 !important;
}

/* ---------- 3. 侧边栏标题与广告标签 (极简风) ---------- */
.post-sidebar .widget-title,
.post-sidebar .ads-label {
    font-size: 10px !important; /* 强制调小字号 */
    color: #999 !important;
    letter-spacing: 2px !important; /* 拉开字间距增加高级感 */
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    display: block !important;
    border-bottom: none !important;
}

/* ==========================================================================
   文章详情页 (single.php) 专属像素级调优
   ========================================================================== */

/* 1. 压低头图高度，并在底部增加分隔线 */
.post-hero-image-narrow {
    width: 100%;
    margin-bottom: 40px !important;
    padding-bottom: 40px !important;
    border-bottom: 1px solid #e8e8e8 !important; /* 新增的底部分隔线 */
}

/* 2. 让版权文字悬浮在图片右下角 */
.hero-image-inner {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.hero-image-inner img {
    width: 100%;
    height: 240px !important; /* 从320px压低到240px，更显宽银幕质感 */
    object-fit: cover;
    display: block;
}

.hero-image-inner .image-credit {
    position: absolute;
    bottom: 15px;
    right: 15px;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.8) !important; /* 改为白色半透明以适应复杂背景 */
    font-size: 10px !important;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.4); /* 加一层深色遮罩保证文字清晰 */
    padding: 4px 8px;
    border-radius: 2px;
    text-align: right;
    z-index: 10;
}

/* 3. 底部广告区：文字居左上，缩小整体留白 */
.bottom-multiplex-ad {
    margin: 30px 0 0 0 !important; /* 大幅缩小上下留白 */
    text-align: left !important; /* 强制内容整体靠左对齐 */
    padding-top: 30px !important;
    border-top: 1px dashed #e8e8e8 !important; /* 加一条虚线与正文隔开，更有层次 */
}

.bottom-multiplex-ad .ads-label {
    text-align: left !important;
    margin-bottom: 10px !important;
}

.bottom-multiplex-ad .multiplex-ad-box {
    min-height: 120px;
}

/* ==========================================================================
   404 页面 (数字深海的诗意迷航) 专属样式
   ========================================================================== */
.error-404-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 120px 0 150px;
    text-align: center;
}

/* 巨型水印 404 */
.error-code {
    font-size: 150px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #f0f0f0 !important; /* 极浅的灰色，作为背景存在 */
    letter-spacing: 10px !important;
    margin-bottom: 20px !important;
    font-family: "Source Han Serif SC", "Noto Serif SC", serif !important; /* 衬线体增加人文感 */
    user-select: none; /* 防止用户选中文本 */
}

/* 标题排版 */
.error-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--black) !important;
    margin-bottom: 30px !important;
    letter-spacing: 2px !important;
    border-bottom: none !important;
}

.error-title span {
    font-size: 14px !important;
    color: #999 !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

/* 描述文字段落 */
.error-desc p {
    font-size: 15px !important;
    color: var(--gray) !important;
    line-height: 1.8 !important;
    margin-bottom: 10px !important;
}

/* 操作区布局 */
.error-actions {
    margin-top: 50px;
}

/* 返回主页的线框按钮 */
.back-home-btn {
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--black) !important;
    text-decoration: none !important;
    padding: 12px 30px !important;
    border: 1px solid var(--black) !important;
    transition: all 0.3s !important;
    margin-bottom: 60px !important;
    border-radius: 2px !important;
}

.back-home-btn:hover {
    background-color: var(--black) !important;
    color: #fff !important;
}

/* 底部搜索引导文字 */
.error-search p {
    font-size: 13px !important;
    color: #999 !important;
    margin-bottom: 20px !important;
    letter-spacing: 1px !important;
}

/* 限制搜索框在 404 页面的宽度并居中 */
.error-search .sidebar-search-form {
    max-width: 450px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   移动端 (Mobile) 专属优化：Logo居中与导航紧凑排版
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 1. 头部容器改为垂直居中对齐，并缩小上下间距 */
    .header-inner { 
        flex-direction: column !important; 
        align-items: center !important; 
        padding: 25px 0 15px !important; 
        gap: 12px !important; 
        height: auto !important;
    }
    
    /* 2. 确保 Logo 内部的文字完美居中 */
    .logo, .logo a { 
        align-items: center !important; 
        text-align: center !important; 
    }

    /* 3. 导航栏居中，取消横向滚动限制 */
    .main-nav { 
        width: 100% !important; 
        justify-content: center !important; 
        overflow: visible !important; 
        padding-bottom: 0 !important;
    }
    
    /* 4. 菜单项紧凑排列 */
    .main-nav ul { 
        justify-content: center !important; 
        flex-wrap: wrap !important; /* 防止屏幕太窄时重叠 */
        gap: 22px !important; /* 核心：用 22px 的合适间距替代原本松散的排版 */
    }
    
    /* 5. 清除电脑端遗留的宽边距 */
    .main-nav a { 
        margin: 0 !important; 
        font-size: 14px !important; 
    }
}

/* ==========================================================================
   移动端 (Mobile) 专属优化 2：中部三域卡片强制单列上下排列
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 强制覆盖 HTML 中的内联 3 列排版，改为 1 列 */
    .realms-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
        padding: 40px 0 !important;
    }
    
    /* 卡片内部间距稍微收紧一点，适应手机屏幕 */
    .realms-grid .realm-card {
        padding: 25px !important;
    }
}