/*
 * Theme Name: Aura Pro (VisionOS 空间毛玻璃版)
 * Description: 边缘清晰中间模糊、自带壁纸切换、全站时间轴、粒子轨迹的高颜值轻量主题
 * Author: Custom & AI
 * Version: 2.0
 */

:root {
    --bg-overlay: rgba(15, 23, 42, 0.35);
    --glass-bg: rgba(15, 23, 42, 0.55);
    --glass-card: rgba(30, 41, 59, 0.48);
    --glass-card-hover: rgba(51, 65, 85, 0.62);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-highlight: rgba(255, 255, 255, 0.32);
    --text-main: #f8fafc;
    --text-sub: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.45);
    --accent-grad: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
}

body.light-mode {
    --bg-overlay: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.58);
    --glass-card: rgba(255, 255, 255, 0.65);
    --glass-card-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-sub: #334155;
    --text-muted: #64748b;
    --accent: #0284c7;
    --accent-glow: rgba(2, 132, 199, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    background-color: #090d16;
}

/* 1. 底层高清壁纸（四周边缘100%清晰可见） */
.wallpaper-layer {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out, transform 0.5s ease;
}

/* 炫彩极光光球（即使壁纸未加载也有绝美透光底色） */
.aurora-orbs {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 25%, rgba(56, 189, 248, 0.25), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(192, 132, 252, 0.25), transparent 45%);
    pointer-events: none;
}

/* 2. 核心视觉：四周边缘清晰、中间一大块模糊的径向遮罩层 */
.center-blur-zone {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-overlay);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    /* 径向遮罩：中心大区域100%触发毛玻璃模糊，向四周屏幕边缘渐变为完全透明清晰 */
    mask-image: radial-gradient(ellipse 72% 80% at 50% 50%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 96%);
    -webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 50%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 96%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* 主空间毛玻璃外框 */
.spatial-shell {
    max-width: 1180px;
    margin: 36px auto 60px;
    padding: 28px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px var(--glass-highlight);
}

/* 顶部导航栏 */
.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 28px;
}

.brand-logo {
    font-size: 1.55rem;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-pill {
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 0.92rem;
    color: var(--text-sub);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    cursor: pointer;
}

.nav-pill:hover, .nav-pill.active {
    color: var(--text-main);
    background: var(--glass-card-hover);
    border-color: var(--glass-highlight);
    box-shadow: 0 4px 15px var(--accent-glow);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 搜索框 */
.search-box {
    position: relative;
}
.search-box input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    width: 160px;
    outline: none;
    transition: all 0.3s;
}
.light-mode .search-box input {
    background: rgba(255, 255, 255, 0.5);
}
.search-box input:focus {
    width: 210px;
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.icon-btn {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
}
.icon-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* 顶部签名轮播横幅 */
.hero-banner {
    text-align: center;
    padding: 26px 20px;
    margin-bottom: 30px;
    border-radius: 22px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.sig-carousel {
    height: 28px;
    position: relative;
    overflow: hidden;
}

.sig-slide {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    color: var(--text-sub);
    font-size: 1.02rem;
}

.sig-slide.active {
    opacity: 1;
    transform: translateY(0);
}

/* 双栏主布局：左侧文章流 + 右侧功能侧边栏 */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 26px;
    align-items: start;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .spatial-shell {
        margin: 15px;
        padding: 20px;
    }
}

/* 卡片通用毛玻璃样式 */
.glass-card {
    background: var(--glass-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    background: var(--glass-card-hover);
    border-color: var(--glass-highlight);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.post-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cat-badge a {
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}

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

.post-card-title a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--text-sub);
    font-size: 0.96rem;
    margin-bottom: 16px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.read-more-btn {
    color: var(--accent);
    font-weight: 600;
}

/* 文章详情页排版 */
.article-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.article-content {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.85;
}
.article-content p { margin-bottom: 1.2em; }
.article-content h1, .article-content h2, .article-content h3 {
    margin: 1.5em 0 0.7em;
    color: var(--accent);
}
.article-content pre, .article-content code {
    background: rgba(0, 0, 0, 0.38);
    border-radius: 8px;
    font-family: Consolas, Monaco, monospace;
}
.article-content pre {
    padding: 16px;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.2em;
}
.article-content code {
    padding: 2px 6px;
}
.article-content blockquote {
    border-left: 4px solid var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 12px 18px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1.2em;
}
.article-content img {
    max-width: 100%;
    border-radius: 14px;
    margin: 10px 0;
}

/* 侧边栏组件 */
.profile-widget {
    text-align: center;
}
.avatar-img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--glass-highlight);
    box-shadow: 0 0 20px var(--accent-glow);
    margin-bottom: 12px;
    object-fit: cover;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}
.stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.cat-list {
    list-style: none;
}
.cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-sub);
    margin-bottom: 4px;
}
.cat-list li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    transform: translateX(4px);
}
.cat-count {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    font-size: 0.82rem;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
}
.tag-item:hover {
    background: var(--accent);
    color: #fff;
}

/* 全站时间轴面板 */
#timeline-panel {
    display: none;
}
#timeline-panel.show {
    display: block;
}
.timeline-box {
    position: relative;
    padding-left: 26px;
    border-left: 2px solid var(--accent);
    margin: 20px 0 10px 10px;
}
.tl-node {
    position: relative;
    margin-bottom: 22px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    transition: all 0.25s;
}
.tl-node:hover {
    transform: translateX(6px);
    border-color: var(--accent);
}
.tl-node::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}
.tl-date {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
}

/* 分页与评论区 */
.page-navigator {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 10px;
    margin: 26px 0;
}
.page-navigator li a {
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
}
.page-navigator li.current a, .page-navigator li a:hover {
    background: var(--accent);
    color: #fff;
}

.comment-input, .comment-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    outline: none;
}
.comment-submit {
    background: var(--accent-grad);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}
.comment-list {
    list-style: none;
    margin-top: 20px;
}
.comment-list li {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    margin-bottom: 12px;
}

/* 炫酷发光鼠标与粒子画布 */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: #38bdf8;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99999;
    box-shadow: 0 0 14px #38bdf8, 0 0 28px #c084fc;
    transition: width 0.2s, height 0.2s;
}
#trail-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;
}

/* 详情页自动隐藏侧边栏，让正文独占宽屏 */
.main-grid.is-single-page {
    grid-template-columns: 1fr !important;
}
.main-grid.is-single-page .sidebar-column {
    display: none !important;
}

