/* ===== CSS Variables ===== */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #f43f5e;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --text: #1e293b;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Background ===== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 10%, rgba(14, 165, 233, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 80% 90%, rgba(244, 63, 94, 0.03) 0%, transparent 40%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 60%);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo-text:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    transition: var(--transition);
    border-radius: 1px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 68px;
}

.hero-compact {
    min-height: auto;
    padding: 130px 0 60px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-avatar {
    margin-bottom: 32px;
}

.avatar-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.25);
}

.avatar-letter {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 700;
    color: #fff;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.hero-compact .hero-title {
    font-size: clamp(26px, 3.5vw, 42px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.8;
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 0 0 100px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.search-box {
    position: relative;
    width: 240px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), var(--shadow-sm);
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-dim);
    pointer-events: none;
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Post Card with Cover */
.post-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.15);
}

.post-cover {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

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

.post-card:hover .post-cover img {
    transform: scale(1.05);
}

.post-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.post-cover-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.post-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.post-date {
    font-size: 13px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.post-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
    line-height: 1.35;
    transition: var(--transition);
}

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

.post-card-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.post-tags-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    font-size: 12px;
    color: var(--text-dim);
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.post-tag:hover {
    color: var(--primary);
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.05);
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.post-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.page-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    box-shadow: var(--shadow-sm);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-num.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ===== Sidebar ===== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Profile Card */
.profile-card {
    text-align: center;
}

.profile-avatar {
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.profile-bio {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.p-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.p-num {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.p-label {
    font-size: 12px;
    color: var(--text-dim);
}

/* Hot Posts */
.hot-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hot-posts li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    transition: var(--transition);
}

.hot-posts li a:hover {
    color: var(--primary);
}

.hot-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg-hover);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
    margin-top: 1px;
}

.hot-posts li:first-child .hot-num {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.hot-posts li:nth-child(2) .hot-num {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.05) 100%);
    color: var(--primary);
}

.hot-posts li:nth-child(3) .hot-num {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.02) 100%);
    color: var(--primary);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag-item {
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    box-shadow: var(--shadow-sm);
}

.tag-cloud .tag-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Archive List */
.archive-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archive-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.archive-list li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.archive-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 100px;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.02) 50%, transparent 100%);
}

.about-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-left .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.about-left p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

/* ===== Post Page ===== */
.post-hero {
    padding: 120px 0 0;
}

/* Post Featured Image */
.post-featured-image {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.post-category {
    padding: 6px 16px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.post-date {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-dim);
}

.post-hero-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-heading);
    text-align: center;
}

.post-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
    background: var(--bg-card);
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.post-readtime {
    font-size: 13px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* Post Content */
.post-content-section {
    padding: 40px 0 80px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 50px;
}

.post-article {
    min-width: 0;
}

.article-body {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}

.article-body .lead {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    font-style: italic;
}

.article-body h2 {
    font-family: var(--font-main);
    font-size: 26px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--text-heading);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.article-body h2:first-of-type {
    margin-top: 0;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ol,
.article-body ul {
    margin-bottom: 20px;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-hover);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.article-body blockquote p {
    margin: 0;
    color: var(--text-muted);
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    color: var(--secondary);
    border: 1px solid var(--border-light);
}

.article-body pre {
    margin: 24px 0;
    padding: 20px 24px;
    background: #1e293b;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
    border: none;
}

/* Post Footer */
.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Post Nav */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
}

.post-nav-prev,
.post-nav-next {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-prev:hover,
.post-nav-next:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.nav-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
}

/* Post Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc li a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    line-height: 1.5;
}

.toc li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-page);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-dim);
}

.footer-domain a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--primary);
    transition: var(--transition);
}

.footer-domain a:hover {
    color: var(--secondary);
}

/* ===== Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        display: none;
    }
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-sidebar {
        display: none;
    }
    .about-compact {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .post-card {
        grid-template-columns: 1fr;
    }
    .post-cover {
        height: 220px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-light);
        color: var(--text-heading);
    }
    .menu-toggle {
        display: flex;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        width: 100%;
    }
    .post-card-body {
        padding: 20px;
    }
    .post-card-title {
        font-size: 18px;
    }
    .pagination {
        flex-wrap: wrap;
    }
    .post-hero-title {
        font-size: 22px;
    }
    .post-featured-image {
        height: 220px;
        border-radius: 0;
        margin-bottom: 28px;
    }
    .article-body {
        font-size: 16px;
    }
    .article-body h2 {
        font-size: 22px;
    }
    .post-nav {
        grid-template-columns: 1fr;
    }
    .post-nav-next {
        text-align: left;
        align-items: flex-start;
    }
    .hero-compact {
        padding: 110px 0 40px;
    }
}

@media (max-width: 480px) {
    .post-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-meta-top {
        flex-direction: column;
        gap: 8px;
    }
    .page-num {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .post-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
