/* ====== 苏青青的博客 — 暗夜樱花风 ====== */

/* === CSS 变量 === */
:root {
    --bg: #05050f;
    --bg2: #0a0a1a;
    --card: rgba(14,14,30,0.7);
    --card-hover: rgba(20,20,45,0.85);
    --card-solid: #0e0e1e;
    --primary: #FF6B9D;
    --primary-light: #FF8DB5;
    --primary-dim: rgba(255,107,157,0.12);
    --primary-glow: rgba(255,107,157,0.35);
    --accent: #7B68EE;
    --accent-dim: rgba(123,104,238,0.12);
    --text: #e8e8f0;
    --text2: #9090b0;
    --text3: #555575;
    --border: rgba(255,255,255,0.06);
    --border2: rgba(255,255,255,0.12);
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
    --glass: saturate(180%) blur(20px);
}

[data-theme="light"] {
    --bg: #f5f0f6;
    --bg2: #ebe5ee;
    --card: rgba(255,255,255,0.8);
    --card-hover: rgba(255,255,255,0.95);
    --card-solid: #ffffff;
    --primary: #e05585;
    --primary-light: #f070a0;
    --primary-dim: rgba(224,85,133,0.08);
    --primary-glow: rgba(224,85,133,0.2);
    --accent: #6a5acd;
    --accent-dim: rgba(106,90,205,0.08);
    --text: #1a1a2e;
    --text2: #555575;
    --text3: #8888a8;
    --border: rgba(0,0,0,0.06);
    --border2: rgba(0,0,0,0.1);
    --shadow: 0 8px 32px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
    --glass: saturate(180%) blur(20px);
}

/* === 基础重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 600px 600px at 15% 20%, rgba(255,107,157,0.08), transparent),
        radial-gradient(ellipse 500px 500px at 85% 80%, rgba(123,104,238,0.06), transparent),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(255,107,157,0.03), transparent);
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1;
    background-image:
        radial-gradient(1px 1px at 10% 30%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.12), transparent),
        radial-gradient(1px 1px at 70% 50%, rgba(255,255,255,0.08), transparent),
        radial-gradient(1px 1px at 90% 90%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1.5px 1.5px at 20% 80%, rgba(255,107,157,0.2), transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(123,104,238,0.15), transparent);
    pointer-events: none;
    animation: starsTwinkle 8s ease-in-out infinite alternate;
}
@keyframes starsTwinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; display: block; }

/* === 加载屏 === */
#loadingScreen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loadingScreen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loading-ring {
    position: absolute; width: 90px; height: 90px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--accent);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-icon {
    font-size: 2.2rem; position: relative; z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--primary-glow)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 20px var(--primary-glow)); }
}

.loading-text {
    margin-top: 24px; font-size: 1rem; color: var(--text2);
    letter-spacing: 4px; font-weight: 300;
}

/* === 阅读进度条 === */
#readingProgress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 999;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary-glow);
    width: 0;
}

/* === 顶部导航 === */
#topNav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; height: 64px;
    background: var(--card);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    white-space: nowrap;
    transition: all var(--transition);
}
.nav-logo:hover { color: var(--primary); filter: drop-shadow(0 0 8px var(--primary-glow)); }

.nav-center { flex: 1; max-width: 420px; margin: 0 24px; }

.search-box {
    position: relative; width: 100%;
}
.search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--text3);
}
.search-box input {
    width: 100%; padding: 9px 14px 9px 40px;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem;
    outline: none; transition: all var(--transition);
}
.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.search-kbd {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    padding: 2px 8px; background: var(--border2); border-radius: 5px;
    font-size: 0.7rem; color: var(--text3); pointer-events: none;
    font-family: inherit;
}

.search-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--card-solid); border: 1px solid var(--border2);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    max-height: 340px; overflow-y: auto; z-index: 200;
    backdrop-filter: var(--glass);
}
.search-item {
    padding: 12px 16px; cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--primary-dim); }
.search-item-title { font-size: 0.95rem; color: var(--text); }
.search-item-summary { font-size: 0.8rem; color: var(--text2); margin-top: 3px; }
.highlight { color: var(--primary); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 6px; }

.nav-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.2rem; padding: 8px 10px; border-radius: 10px;
    color: var(--text2); transition: all var(--transition);
    text-decoration: none;
}
.nav-btn:hover {
    background: var(--primary-dim); color: var(--primary);
    transform: translateY(-1px);
}

/* === Hero 区域 === */
.hero {
    display: flex; align-items: center; gap: 40px;
    padding: 56px 28px 32px; max-width: 800px; margin: 0 auto;
}

.hero-avatar-wrap {
    position: relative; flex-shrink: 0;
}
.hero-avatar {
    width: 110px; height: 110px; border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
               linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    box-shadow: 0 0 40px var(--primary-dim), 0 0 80px rgba(123,104,238,0.06);
    animation: avatarBreathe 5s ease-in-out infinite;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
@keyframes avatarBreathe {
    0%, 100% { box-shadow: 0 0 40px var(--primary-dim), 0 0 80px rgba(123,104,238,0.06); }
    50% { box-shadow: 0 0 60px var(--primary-glow), 0 0 100px rgba(123,104,238,0.12); }
}

/* 头像光环 */
.hero-avatar-wrap::after {
    content: '';
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 1px dashed var(--primary);
    opacity: 0.3;
    animation: ringRotate 20s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.hero-name {
    font-size: 2rem; margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-slogan {
    color: var(--text2); font-size: 1rem; margin-bottom: 16px;
    font-weight: 300; letter-spacing: 1px;
}
.hero-stats { display: flex; gap: 24px; }
.hero-stat {
    color: var(--text2); font-size: 0.9rem;
    display: flex; align-items: center; gap: 4px;
}
.hero-stat strong {
    color: var(--primary); font-size: 1.2rem; font-weight: 700;
}

/* === 分类标签栏 === */
.category-bar {
    display: flex; gap: 10px; padding: 8px 28px 20px;
    max-width: 800px; margin: 0 auto;
    overflow-x: auto; scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.cat-btn {
    padding: 7px 20px; border: 1px solid var(--border2);
    border-radius: 24px; background: var(--card);
    color: var(--text2); font-size: 0.85rem; cursor: pointer;
    white-space: nowrap; transition: all var(--transition);
    backdrop-filter: var(--glass);
}
.cat-btn:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 16px var(--primary-dim);
}
.cat-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 20px var(--primary-glow);
    font-weight: 500;
}

/* === 文章列表 === */
.post-grid {
    display: grid; gap: 20px; padding: 0 28px;
    max-width: 800px; margin: 0 auto;
}

.post-card {
    position: relative; overflow: hidden;
    background: var(--card); backdrop-filter: var(--glass);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; cursor: pointer;
    transition: all var(--transition);
}
/* 左侧渐变条 */
.post-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0); transform-origin: top;
    transition: transform var(--transition);
    border-radius: 0 2px 2px 0;
}
/* 背景光晕 */
.post-card::after {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, var(--primary-dim), transparent 70%);
    opacity: 0; transition: opacity var(--transition);
    pointer-events: none;
}

.post-card:hover {
    background: var(--card-hover); border-color: var(--border2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.post-card:hover::before { transform: scaleY(1); }
.post-card:hover::after { opacity: 1; }

.post-card-title {
    font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4;
    transition: color var(--transition); font-weight: 600;
    position: relative; z-index: 1;
}
.post-card:hover .post-card-title {
    background: linear-gradient(90deg, var(--text), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-card-summary {
    color: var(--text2); font-size: 0.9rem; line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative; z-index: 1;
}

.post-card-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.8rem; color: var(--text3);
    position: relative; z-index: 1;
}
.post-card-tag {
    padding: 3px 10px; background: var(--primary-dim);
    border-radius: 6px; color: var(--primary); font-size: 0.75rem;
    border: 1px solid rgba(255,107,157,0.15);
}
.post-card-category {
    padding: 3px 10px; background: var(--accent-dim);
    border-radius: 6px; font-size: 0.75rem;
    border: 1px solid rgba(123,104,238,0.15);
    color: var(--accent);
}

.post-card-pin {
    display: inline-block; padding: 3px 10px; margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-dim), var(--accent-dim));
    color: var(--primary); border-radius: 6px; font-size: 0.75rem;
    font-weight: 600; position: relative; z-index: 1;
    border: 1px solid rgba(255,107,157,0.2);
}
.post-card.pinned { border-color: rgba(255,107,157,0.2); }

/* === 分页 === */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 36px 28px;
}
.page-btn {
    padding: 9px 16px; border: 1px solid var(--border2);
    border-radius: var(--radius-sm); background: var(--card);
    color: var(--text2); cursor: pointer; font-size: 0.9rem;
    transition: all var(--transition);
    backdrop-filter: var(--glass);
}
.page-btn:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 16px var(--primary-dim);
}
.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 16px var(--primary-glow);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* === 文章页 === */
.article-container {
    display: grid; grid-template-columns: 1fr 280px;
    gap: 36px; max-width: 1000px; margin: 0 auto; padding: 36px 28px;
}

.article-main { min-width: 0; }

.article-back {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 20px; color: var(--text2); font-size: 0.9rem;
    padding: 6px 14px; border-radius: 8px;
    transition: all var(--transition);
}
.article-back:hover {
    color: var(--primary); background: var(--primary-dim);
}

.article-meta {
    color: var(--text3); font-size: 0.85rem; margin-bottom: 10px;
}

.article-title {
    font-size: 2rem; line-height: 1.3; margin-bottom: 28px;
    background: linear-gradient(135deg, var(--text) 30%, var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.article-content {
    font-size: 1rem; line-height: 1.9;
}
.article-content h2 {
    font-size: 1.4rem; margin: 36px 0 16px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
    position: relative;
}
.article-content h2::before {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 40px; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}
.article-content h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--primary-light); }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin-bottom: 18px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 3px solid var(--primary); padding: 14px 18px;
    background: var(--primary-dim); border-radius: 0 12px 12px 0;
    margin-bottom: 18px; color: var(--text2);
    position: relative;
}
.article-content blockquote::before {
    content: '"'; position: absolute; left: 10px; top: -4px;
    font-size: 2rem; color: var(--primary); opacity: 0.3;
}
.article-content code {
    padding: 2px 8px; background: var(--primary-dim); border-radius: 5px;
    font-size: 0.88em; color: var(--primary);
    border: 1px solid rgba(255,107,157,0.1);
}
.article-content pre {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px; overflow-x: auto;
    margin-bottom: 18px; position: relative;
}
.article-content pre code {
    padding: 0; background: none; color: var(--text);
    border: none;
}
.article-content table {
    width: 100%; border-collapse: collapse; margin-bottom: 18px;
}
.article-content th, .article-content td {
    padding: 10px 16px; border: 1px solid var(--border);
    text-align: left;
}
.article-content th { background: var(--bg2); font-weight: 600; color: var(--primary-light); }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { border-radius: var(--radius-sm); }

.article-footer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }

.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.article-tag {
    padding: 5px 14px; background: var(--primary-dim); border-radius: 24px;
    color: var(--primary); font-size: 0.82rem;
    border: 1px solid rgba(255,107,157,0.15);
    transition: all var(--transition);
}
.article-tag:hover {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.article-nav {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 20px;
}
.article-nav-btn {
    padding: 12px 20px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text2); font-size: 0.85rem;
    transition: all var(--transition); text-decoration: none;
    backdrop-filter: var(--glass);
}
.article-nav-btn:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 16px var(--primary-dim);
}

/* 侧边栏 */
.article-sidebar { position: sticky; top: 84px; align-self: start; }

.sidebar-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; margin-bottom: 18px;
    backdrop-filter: var(--glass);
}
.sidebar-card h3 {
    font-size: 0.88rem; color: var(--text2); margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
    letter-spacing: 1px;
}

.toc-list a {
    display: block; padding: 5px 0 5px 14px;
    color: var(--text2); font-size: 0.85rem; line-height: 1.6;
    border-left: 2px solid var(--border);
    transition: all var(--transition);
}
.toc-list a:hover, .toc-list a.active {
    color: var(--primary); border-left-color: var(--primary);
    background: var(--primary-dim);
    border-radius: 0 6px 6px 0;
}

/* === 关于页 === */
.about-card {
    max-width: 520px; margin: 56px auto; text-align: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 56px 40px;
    backdrop-filter: var(--glass);
    position: relative; overflow: hidden;
}
/* 装饰光晕 */
.about-card::before {
    content: ''; position: absolute; width: 200px; height: 200px;
    background: radial-gradient(circle, var(--primary-dim), transparent 70%);
    top: -60px; right: -60px; pointer-events: none;
}
.about-card::after {
    content: ''; position: absolute; width: 150px; height: 150px;
    background: radial-gradient(circle, var(--accent-dim), transparent 70%);
    bottom: -40px; left: -40px; pointer-events: none;
}

.about-avatar {
    width: 130px; height: 130px; border-radius: 50%;
    overflow: hidden; margin: 0 auto 24px;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
               linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    box-shadow: 0 0 50px var(--primary-dim);
    position: relative; z-index: 1;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }

.about-card h2 {
    font-size: 1.8rem; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; position: relative; z-index: 1;
}
.about-slogan {
    color: var(--text2); margin-bottom: 24px; font-weight: 300;
    letter-spacing: 1px; position: relative; z-index: 1;
}
.about-desc {
    color: var(--text2); line-height: 1.9; margin-bottom: 28px;
    text-align: left; position: relative; z-index: 1;
}
.about-links { display: flex; gap: 14px; justify-content: center; position: relative; z-index: 1; }
.about-links a {
    padding: 10px 24px; border: 1px solid var(--border2);
    border-radius: var(--radius-sm); color: var(--text2);
    transition: all var(--transition);
    backdrop-filter: var(--glass);
}
.about-links a:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 20px var(--primary-dim);
    transform: translateY(-2px);
}

/* === 底部 === */
#footer {
    text-align: center; padding: 36px 28px;
    border-top: 1px solid var(--border);
    color: var(--text3); font-size: 0.85rem;
}
.footer-links {
    display: flex; gap: 18px; justify-content: center;
    margin-top: 10px;
}
.footer-links a { color: var(--text3); transition: all var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* === 返回顶部 === */
#backToTop {
    position: fixed; bottom: 28px; right: 28px; z-index: 90;
    width: 44px; height: 44px;
    background: var(--card); border: 1px solid var(--border2);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text2); font-size: 1.2rem;
    backdrop-filter: var(--glass);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    opacity: 0; visibility: hidden; transform: translateY(10px);
}
#backToTop.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
#backToTop:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* === 页面切换动画 === */
.page {
    animation: pageIn 0.4s ease-out;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 卡片渐显动画 === */
.post-card {
    animation: cardIn 0.5s ease-out both;
}
.post-card:nth-child(1) { animation-delay: 0s; }
.post-card:nth-child(2) { animation-delay: 0.06s; }
.post-card:nth-child(3) { animation-delay: 0.12s; }
.post-card:nth-child(4) { animation-delay: 0.18s; }
.post-card:nth-child(5) { animation-delay: 0.24s; }
.post-card:nth-child(6) { animation-delay: 0.30s; }
.post-card:nth-child(7) { animation-delay: 0.36s; }
.post-card:nth-child(8) { animation-delay: 0.42s; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 空状态 === */
.empty-state {
    text-align: center; padding: 72px 20px; color: var(--text3);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 14px; }
.empty-state-text { font-size: 1rem; }

/* === 滚动条 === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border2); border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* === 选中颜色 === */
::selection {
    background: var(--primary-dim); color: var(--primary);
}

/* === 响应式 === */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; gap: 20px; padding: 40px 20px 24px; }
    .hero-avatar { width: 90px; height: 90px; }
    .hero-stats { justify-content: center; }
    .article-container { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .nav-center { display: none; }
    .search-kbd { display: none; }
    .post-card { padding: 20px; }
    .about-card { padding: 36px 24px; margin: 36px auto; }
    .category-bar { padding: 8px 20px 16px; }
    .post-grid { padding: 0 20px; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 1.5rem; }
    .article-title { font-size: 1.5rem; }
    .hero-avatar { width: 80px; height: 80px; }
}
