/* ============================================
   CreativeSpace - 前台样式
   简洁现代风格
   ============================================ */
:root {
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: rgba(59,130,246,0.1);
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   全屏进入加载动画
   ============================================ */
.loader-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* 页面渲染前已经决定跳过动画 → 强制隐藏 */
html.cs-no-loader .loader-overlay {
    display: none !important;
}
html.cs-no-loader body {
    overflow: auto !important;
}

/* --- 渐变背景 + 缓慢移动的模糊图形 --- */
.loader-bg {
    position: absolute;
    inset: -100px;
    pointer-events: none;
}
.loader-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: blobFloat 12s ease-in-out infinite alternate;
}
.loader-bg-blob-1 {
    width: 600px; height: 600px;
    top: -20%; left: -10%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.loader-bg-blob-2 {
    width: 500px; height: 500px;
    bottom: -15%; right: -10%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    animation-delay: -4s;
}
.loader-bg-blob-3 {
    width: 400px; height: 400px;
    top: 40%; left: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    animation-delay: -8s;
}
@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(40px, -10px) scale(1.05); }
}

/* --- 浮动几何图形 --- */
.loader-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.shape {
    position: absolute;
    opacity: 0.15;
    animation: shapeFloat 20s ease-in-out infinite;
}
.shape-1 {
    width: 40px; height: 40px;
    border: 2px solid rgba(59,130,246,0.4);
    border-radius: 50%;
    top: 12%; left: 8%;
    animation-duration: 18s;
}
.shape-2 {
    width: 0; height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 34px solid rgba(139,92,246,0.3);
    top: 65%; right: 10%;
    animation-duration: 22s;
    animation-delay: -3s;
}
.shape-3 {
    width: 60px; height: 2px;
    background: rgba(6,182,212,0.3);
    top: 30%; right: 20%;
    animation-duration: 16s;
    animation-delay: -6s;
    transform: rotate(30deg);
}
.shape-4 {
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    top: 50%; left: 15%;
    animation-duration: 14s;
    animation-delay: -2s;
}
.shape-5 {
    width: 30px; height: 30px;
    border: 2px solid rgba(245,158,11,0.3);
    border-radius: 50%;
    bottom: 20%; left: 30%;
    animation-duration: 20s;
    animation-delay: -5s;
}
@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(90deg); }
    50% { transform: translate(-10px, 20px) rotate(180deg); }
    75% { transform: translate(30px, 10px) rotate(270deg); }
}

/* --- 粒子/星星 --- */
.loader-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* --- 内容 --- */
.loader-content {
    text-align: center;
    position: relative;
    z-index: 10;
    animation: loaderContentIn 0.8s ease-out;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.loader-content.exit {
    transform: translateY(-60px);
    opacity: 0;
}
@keyframes loaderContentIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Logo 打字机效果 --- */
.loader-logo {
    font-size: 2.8rem;
    font-weight: 800;
    min-height: 1.2em;
    letter-spacing: 2px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGradient 3s ease-in-out infinite;
}
@keyframes logoGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.loader-logo .cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    margin-left: 2px;
    animation: cursorBlink 0.7s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes cursorBlink {
    50% { opacity: 0; }
}

/* --- 进度环 --- */
.loader-circle-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 28px;
}
/* 外圈旋转光环 */
.loader-halo {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4, transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: haloSpin 2s linear infinite;
}
@keyframes haloSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.loader-circle-bg {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 6;
}
.loader-circle-progress {
    fill: none;
    stroke: url(#loaderGradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.15s ease-out;
    filter: drop-shadow(0 0 8px rgba(59,130,246,0.5)) drop-shadow(0 0 16px rgba(139,92,246,0.3));
}
.loader-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f0f5;
    text-shadow: 0 0 20px rgba(59,130,246,0.3);
    transition: color 0.3s;
}

/* --- 动态提示文字 --- */
.loader-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 3px;
    min-height: 1.4em;
    transition: opacity 0.4s;
}
.loader-sub .dot-anim {
    display: inline-block;
    animation: dotJump 1.4s ease-in-out infinite;
}
.loader-sub .dot-anim:nth-child(2) { animation-delay: 0.2s; }
.loader-sub .dot-anim:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotJump {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* 重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   底部导航栏
   ============================================ */
.bottom-nav {
    background: white;
    border-top: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 1000;
    box-shadow: 0 -1px 8px rgba(0,0,0,0.06);
}
.bottom-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}
.bottom-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text) !important;
    text-decoration: none;
    white-space: nowrap;
}
.bottom-nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.bottom-nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    white-space: nowrap;
}
.bottom-nav-links a:hover,
.bottom-nav-links a.active { color: var(--primary) !important; background: var(--primary-light); }
.bottom-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bottom-search {
    display: flex;
    align-items: center;
    position: relative;
}
.bottom-search-input {
    padding: 6px 32px 6px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    width: 160px;
    transition: 0.2s;
}
.bottom-search-input:focus { border-color: var(--primary); width: 200px; }
.bottom-search button {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}
.nav-icon-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary) !important;
    transition: 0.2s;
    font-size: 1.05rem;
}
.nav-icon-btn:hover { background: var(--bg); color: var(--primary) !important; }

/* body 添加底部边距，避免被固定底部栏遮挡 */
body { padding-bottom: 64px; }

/* 底部导航栏 - 手机模式 */
@media (max-width: 768px) {
    .bottom-nav { height: 56px; padding: 0 12px; }
    body { padding-bottom: 56px; }
    .bottom-nav-brand .brand-text { display: none; }
    .bottom-nav-links { flex: 1; justify-content: space-around; }
    .bottom-nav-links a { 
        flex-direction: column; gap: 2px; padding: 4px 8px; 
        font-size: 0.7rem; border-radius: 0; background: none !important;
    }
    .bottom-nav-links a i { font-size: 1.1rem; }
    .bottom-nav-links a.active { color: var(--primary) !important; }
    .bottom-nav-right { display: none; }
}

/* ============================================
   按钮
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white !important; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-secondary) !important; }
.btn-ghost:hover { background: var(--bg); color: var(--text) !important; }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============================================
   Hero
   ============================================ */
.hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #f0f5ff, #f5f0ff);
}
.hero-content { max-width: 640px; margin: 0 auto; }
.hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 16px; }
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; }
.hero-search form {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-lg);
}
.hero-search i { padding: 0 16px; color: var(--text-muted); }
.hero-search input {
    flex: 1;
    padding: 14px 0;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 1rem;
}
.hero-search button {
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin: 4px;
    transition: var(--transition);
}
.hero-search button:hover { background: var(--primary-dark); }

/* ============================================
   博客布局
   ============================================ */
.blog-section { padding: 60px 0 80px; }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }

/* ============================================
   文章卡片
   ============================================ */
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 28px;
    transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-cover img { width: 100%; height: 240px; object-fit: cover; }
.post-body { padding: 28px; }
.post-body.no-cover { padding: 28px; }
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.post-category {
    padding: 2px 10px;
    background: var(--primary-light);
    border-radius: 50px;
    color: var(--primary) !important;
    font-weight: 500;
}
.post-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.post-title a { color: var(--text) !important; }
.post-title a:hover { color: var(--primary) !important; }
.post-excerpt { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.7; }
.post-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag {
    font-size: 0.8rem;
    color: var(--text-muted) !important;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg);
}
.post-tag:hover { color: var(--primary) !important; }
.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.read-more i { transition: var(--transition); }
.read-more:hover i { transform: translateX(4px); }

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.filter-tag {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.filter-tag:hover, .filter-tag.active { border-color: var(--primary); color: var(--primary) !important; background: var(--primary-light); }
.filter-tag.clear { color: var(--error) !important; border-color: transparent; }
.filter-tag.clear:hover { background: rgba(239,68,68,0.1); }

/* ============================================
   侧栏
   ============================================ */
.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.sidebar-categories { list-style: none; }
.sidebar-categories li { margin-bottom: 8px; }
.sidebar-categories a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    transition: var(--transition);
}
.sidebar-categories a:hover { background: var(--primary-light); color: var(--primary) !important; }
.sidebar-recent { list-style: none; }
.sidebar-recent li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sidebar-recent li:last-child { border: none; }
.sidebar-recent a { color: var(--text) !important; font-size: 0.9rem; font-weight: 500; display: block; margin-bottom: 4px; }
.sidebar-recent a:hover { color: var(--primary) !important; }
.recent-date { font-size: 0.8rem; color: var(--text-muted); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag {
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
}
.sidebar-tag:hover { background: var(--primary-light); color: var(--primary) !important; }
.sidebar-about { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   文章详情页
   ============================================ */
.post-article { padding: 120px 0 60px; }
.post-article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.post-header { margin-bottom: 32px; }
.post-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.post-article .post-title { font-size: 2.2rem; line-height: 1.3; }
.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.author-avatar i { font-size: 2rem; color: var(--text-muted); }
.author-name { font-size: 0.95rem; font-weight: 500; }
.post-cover-image { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.post-cover-image img { width: 100%; max-height: 500px; object-fit: cover; }
.post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 32px;
}
.post-content h2 { font-size: 1.6rem; margin: 32px 0 16px; }
.post-content h3 { font-size: 1.3rem; margin: 24px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin-bottom: 16px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content code {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}
.post-content pre {
    background: #1a1a2e;
    color: #e5e7eb;
    padding: 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 24px 0;
}
.post-content pre code { background: none; padding: 0; }
.post-content img { border-radius: var(--radius-sm); margin: 16px 0; }
.post-tags-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}
.post-nav-label { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.post-nav a { font-weight: 600; color: var(--text) !important; }
.post-nav a:hover { color: var(--primary) !important; }
.post-nav-next { text-align: right; }

/* 评论 */
.comments-section { padding: 32px 0; }
.comments-title { font-size: 1.3rem; margin-bottom: 24px; }
.comment-form { margin-bottom: 32px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea.form-input { min-height: 100px; resize: vertical; }
.comments-list { margin-top: 24px; }
.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border: none; }
.comment-item.comment-reply { margin-left: 40px; }
.comment-avatar i { font-size: 2rem; color: var(--text-muted); }
.comment-body { flex: 1; }
.comment-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.comment-name { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.8rem; color: var(--text-muted); }
.comment-content { font-size: 0.95rem; color: var(--text-secondary); }
.comments-closed, .no-comments { color: var(--text-muted); font-size: 0.9rem; padding: 16px 0; }

/* ============================================
   归档页
   ============================================ */
.archive-section { padding: 120px 0 60px; }
.archive-header {
    margin-bottom: 40px;
    text-align: center;
}
.archive-header h1 { font-size: 2rem; }
.archive-header p { color: var(--text-secondary); margin-top: 8px; }
.tag-name { color: var(--primary); }

/* ============================================
   关于页面
   ============================================ */
.page-section { padding: 120px 0 60px; }
.page-content { max-width: 800px; margin: 0 auto; }
.page-content h1 { font-size: 2.2rem; margin-bottom: 32px; }
.about-content { background: var(--bg-card); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-content h2 { font-size: 1.3rem; margin: 24px 0 12px; }
.about-content p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.8; }
.about-content ul { padding-left: 20px; margin-bottom: 16px; }
.about-content li { color: var(--text-secondary); margin-bottom: 8px; }

/* ============================================
   错误页
   ============================================ */
.error-page { padding: 160px 0 80px; text-align: center; }
.error-content { max-width: 500px; margin: 0 auto; }
.error-code { font-size: 8rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 16px; }
.error-content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.error-content p { color: var(--text-secondary); margin-bottom: 32px; }

/* ============================================
   空状态
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); }

/* ============================================
   分页
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.page-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-card);
}
.page-btn.active, .page-btn:hover { background: var(--primary); color: white !important; border-color: var(--primary); }

/* ============================================
   认证页面
   ============================================ */
.auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f5ff, #f5f0ff);
}
.auth-container { width: 100%; max-width: 420px; padding: 24px; }
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 700; color: var(--text) !important; margin-bottom: 20px; }
.auth-header h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }
.auth-form .form-group { margin-bottom: 20px; }
.auth-form label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.input-group { position: relative; }
.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-group input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}
.input-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.auth-form .btn-block { margin-top: 8px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-secondary); }
.auth-footer a { font-weight: 600; }
.auth-footer p { margin-bottom: 12px; }

/* 提示 */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #dc2626; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #059669; }

/* ============================================
   页脚
   ============================================ */
.footer {
    background: #1a1a2e;
    color: #e5e7eb;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-about .nav-brand { margin-bottom: 16px; color: white !important; }
.footer-about p { color: #9ca3af; font-size: 0.9rem; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #9ca3af !important;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white !important; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: white; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #9ca3af !important; font-size: 0.85rem; }
.footer-col a:hover { color: white !important; }
.footer-bottom { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: #6b7280; }

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px; height: 42px;
    display: none;
    align-items: center; justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--primary); color: white; }

/* ============================================
   轮播图
   ============================================ */
.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}
.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 24px;
    max-width: 700px;
    animation: carouselContentIn 0.8s ease-out;
}
@keyframes carouselContentIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.carousel-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.carousel-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 箭头按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: rgba(255,255,255,0.3); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* 圆点指示器 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}
.carousel-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* 轮播图响应式 */
@media (max-width: 1024px) {
    .carousel { height: 420px; }
    .carousel-content h2 { font-size: 2.2rem; }
    .carousel-content p { font-size: 1rem; }
}
@media (max-width: 768px) {
    .carousel { height: 300px; }
    .carousel-content h2 { font-size: 1.6rem; margin-bottom: 10px; }
    .carousel-content p { font-size: 0.9rem; }
    .carousel-btn { width: 36px; height: 36px; font-size: 0.9rem; }
    .carousel-btn:hover { opacity: 1; }
    .carousel-dots { bottom: 16px; }
    .carousel-dot { width: 10px; height: 10px; }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    .post-article-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero { padding: 120px 0 40px; }
    .post-article .post-title { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-next { text-align: left; }
    /* 加载动画手机适配 */
    .loader-logo { font-size: 1.8rem; margin-bottom: 30px; }
    .loader-circle-wrap { width: 100px; height: 100px; }
    .loader-halo { inset: -6px; }
    .loader-percent { font-size: 1.1rem; }
    .loader-sub { font-size: 0.8rem; letter-spacing: 2px; }
    .loader-bg-blob-1 { width: 300px; height: 300px; }
    .loader-bg-blob-2 { width: 250px; height: 250px; }
    .loader-bg-blob-3 { width: 200px; height: 200px; }
    .shape { display: none; }
    .shape-1, .shape-4 { display: block; transform: scale(0.7); }
}
