/*============================================================
  畅畅博客 (ChangChang Blog) - 主样式表 style.css
  设计: 极光暗色主题 | 毛玻璃 | 渐变流光
  兼容: Win7+ / IE11+ / 低配降级
============================================================*/

/* ============ CSS 变量 (主题系统) ============ */
:root {
    /* 暗色主题 (默认) */
    --bg-primary: #0a0a14;
    --bg-secondary: #111122;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --border-color: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    
    --text-primary: #e8e8ef;
    --text-secondary: #9090a8;
    --text-muted: #5a5a78;
    
    --accent-1: #60a5fa;
    --accent-2: #a78bfa;
    --accent-3: #f472b6;
    --accent-gradient: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    --accent-gradient-hover: linear-gradient(135deg, #93c5fd, #c4b5fd, #f9a8d4);
    
    --success: #4ecb71;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'Segoe UI', sans-serif;
    
    --blur-bg: 20px;
    --max-width: 1200px;
    --header-height: 64px;
    
    /* 导航栏背景 (跟随主题) */
    --nav-bg: rgba(10,10,20,0.75);
    --nav-bg-scrolled: rgba(10,10,20,0.92);

    /* 设备标识码胶囊 (暗色: 橙色) */
    --uid-chip-color: #ffd700;
    --uid-chip-border: rgba(255,215,0,0.35);
    --uid-chip-bg: rgba(255,215,0,0.06);
}

/* 亮色主题 */
[data-theme="light"] {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(0,0,0,0.02);
    --bg-card-hover: rgba(0,0,0,0.04);
    --border-color: rgba(0,0,0,0.06);
    --border-hover: rgba(0,0,0,0.12);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a78;
    --text-muted: #9090a8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
    
    /* 导航栏背景 (亮色主题: 浅色毛玻璃) */
    --nav-bg: rgba(245,245,250,0.85);
    --nav-bg-scrolled: rgba(250,250,252,0.95);

    /* 设备标识码胶囊 (亮色: 黑色) */
    --uid-chip-color: #111111;
    --uid-chip-border: rgba(0,0,0,0.25);
    --uid-chip-bg: rgba(0,0,0,0.04);
}

/* ============ 低配设备降级 ============ */
.low-spec {
    --blur-bg: 0px;
}
.low-spec .particles-canvas { display: none !important; }
.low-spec .card-3d { transform: none !important; }
.low-spec .shimmer { animation: none !important; }
/* 低配设备: scroll-reveal 元素直接可见(否则会被 opacity:0 永久隐藏, 只占位不可见) */
.low-spec .scroll-reveal { opacity: 1 !important; transform: none !important; }
.low-spec * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }

/* ============ 全局重置 ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;font-size:16px}
body{
    background:var(--bg-primary);
    color:var(--text-primary);
    font-family:var(--font-sans);
    line-height:1.7;
    min-height:100vh;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}
a{color:var(--accent-1);text-decoration:none;transition:color var(--transition-fast)}
a:hover{color:var(--accent-2)}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
input,textarea,select,button{font-family:inherit;font-size:inherit}
/* 下拉选择框跟随主题 (亮色主题下文字保持可读) */
select{
    color:var(--text-primary);
    background-color:var(--bg-secondary);
    border:1px solid var(--border-color);
}
select option{
    color:var(--text-primary);
    background-color:var(--bg-secondary);
}
::-moz-selection{background:rgba(96,165,250,0.3);color:#fff}
::selection{background:rgba(96,165,250,0.3);color:#fff}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:var(--bg-primary)}
::-webkit-scrollbar-thumb{background:var(--border-hover);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}

/* ============ 粒子背景 ============ */
#particles-bg{
    position:fixed;top:0;left:0;width:100%;height:100%;
    z-index:0;pointer-events:none;opacity:0.4;
}

/* ============ 主容器 ============ */
.app-container{
    position:relative;z-index:1;
    max-width:var(--max-width);
    margin:0 auto;
    padding:0 20px;
}

/* ============ 导航栏 ============ */
.navbar{
    position:fixed;top:0;left:0;right:0;z-index:100;
    height:var(--header-height);
    background:var(--nav-bg);
    backdrop-filter:blur(var(--blur-bg));
    -webkit-backdrop-filter:blur(var(--blur-bg));
    border-bottom:1px solid var(--border-color);
    transition:all var(--transition-normal);
}
.navbar.scrolled{
    background:var(--nav-bg-scrolled);
    box-shadow:var(--shadow-md);
}
.navbar .nav-inner{
    max-width:var(--max-width);
    margin:0 auto;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
}
.nav-brand{
    font-size:20px;font-weight:700;
    background:var(--accent-gradient);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    letter-spacing:-0.5px;
}
.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{
    color:var(--text-secondary);
    padding:8px 16px;
    border-radius:var(--radius-md);
    font-size:14px;
    font-weight:500;
    transition:all var(--transition-fast);
}
.nav-links a:hover,.nav-links a.active{
    color:var(--text-primary);
    background:var(--bg-card-hover);
}
.nav-links .nav-btn{
    background:var(--accent-gradient);
    color:#fff !important;
    padding:8px 20px;
    font-weight:600;
}
.nav-links .nav-btn:hover{
    box-shadow:0 4px 16px rgba(96,165,250,0.4);
    transform:translateY(-1px);
}
.theme-toggle{
    width:36px;height:36px;
    border-radius:50%;
    border:1px solid var(--border-color);
    background:var(--bg-card);
    color:var(--text-secondary);
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    font-size:16px;
    transition:all var(--transition-fast);
}
.theme-toggle:hover{
    border-color:var(--border-hover);
    color:var(--text-primary);
    transform:rotate(30deg);
}

/* 移动端菜单 */
.mobile-menu-btn{
    display:none;
    width:40px;height:40px;
    border-radius:var(--radius-md);
    border:1px solid var(--border-color);
    background:var(--bg-card);
    color:var(--text-primary);
    cursor:pointer;
    font-size:20px;
    align-items:center;justify-content:center;
}

/* ============ 页面头部 ============ */
.page-hero{
    padding:calc(var(--header-height) + 60px) 0 60px;
    text-align:center;
    position:relative;
}
.page-hero h1{
    font-size:clamp(28px, 5vw, 48px);
    font-weight:800;
    margin-bottom:12px;
    background:var(--accent-gradient);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    letter-spacing:-1px;
    line-height:1.3;
}
.page-hero p{
    color:var(--text-secondary);
    font-size:clamp(14px, 2vw, 16px);
    max-width:560px;
    margin:0 auto 24px;
}
.page-hero .hero-stats{
    display:flex;gap:32px;
    justify-content:center;
    color:var(--text-muted);
    font-size:13px;
}
.page-hero .hero-stats span{
    color:var(--text-secondary);
    font-weight:600;
}
.hero-divider{
    width:60px;height:3px;
    margin:0 auto 24px;
    border-radius:2px;
    background:var(--accent-gradient);
}

/* ============ 文章卡片网格 ============ */
.posts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
    gap:24px;
    padding:20px 0 60px;
}

/* ============ 文章卡片 ============ */
.post-card{
    background:var(--bg-card);
    backdrop-filter:blur(var(--blur-bg));
    -webkit-backdrop-filter:blur(var(--blur-bg));
    border:1px solid var(--border-color);
    border-radius:var(--radius-lg);
    overflow:hidden;
    transition:all var(--transition-normal);
    position:relative;
    cursor:pointer;
}
.post-card:hover{
    transform:translateY(-4px);
    border-color:var(--border-hover);
    box-shadow:var(--shadow-lg);
    background:var(--bg-card-hover);
}
.post-card .card-cover{
    width:100%;height:200px;
    background:var(--bg-secondary);
    position:relative;
    overflow:hidden;
}
.post-card .card-cover img{
    width:100%;height:100%;
    object-fit:cover;
    transition:transform var(--transition-slow);
}
.post-card:hover .card-cover img{
    transform:scale(1.05);
}
.post-card .card-cover .card-category{
    position:absolute;top:12px;left:12px;
    padding:4px 12px;
    background:rgba(0,0,0,0.6);
    backdrop-filter:blur(8px);
    border-radius:20px;
    color:#fff;
    font-size:12px;
    font-weight:600;
}
.post-card .card-cover .card-top{
    position:absolute;top:12px;right:12px;
    background:var(--accent-gradient);
    color:#fff;
    padding:4px 12px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
}
.post-card .card-body{
    padding:20px;
}
.post-card .card-body h3{
    font-size:18px;font-weight:700;
    margin-bottom:8px;
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    max-height:2.9em; /* 兼容不支持 line-clamp 的浏览器 */
    transition:color var(--transition-fast);
}
.post-card:hover .card-body h3{
    background:var(--accent-gradient);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}
.post-card .card-excerpt{
    color:var(--text-muted);
    font-size:13px;
    line-height:1.6;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin-bottom:16px;
}
.post-card .card-meta{
    display:flex;align-items:center;
    justify-content:space-between;
    color:var(--text-muted);
    font-size:12px;
    padding-top:12px;
    border-top:1px solid var(--border-color);
}
.post-card .card-meta span{
    display:flex;align-items:center;gap:4px;
}

/* ============ 置顶轮播 ============ */
.featured-slider{
    position:relative;
    margin-bottom:40px;
    border-radius:var(--radius-xl);
    overflow:hidden;
    height:380px;
    background:var(--bg-secondary);
}
.featured-slider .slide{
    position:absolute;top:0;left:0;width:100%;height:100%;
    opacity:0;transition:opacity 0.8s ease;
}
.featured-slider .slide.active{opacity:1}
.featured-slider .slide img{
    width:100%;height:100%;object-fit:cover;
}
.featured-slider .slide-overlay{
    position:absolute;bottom:0;left:0;right:0;
    padding:40px;
    background:linear-gradient(transparent, rgba(0,0,0,0.85));
}
.featured-slider .slide-overlay h2{
    font-size:28px;font-weight:700;color:#fff;
    margin-bottom:8px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    max-height:2.4em; /* 兼容不支持 line-clamp 的浏览器 */
}
.featured-slider .slide-overlay p{
    color:rgba(255,255,255,0.7);font-size:14px;
}
.featured-slider .slider-dots{
    position:absolute;bottom:16px;right:40px;
    display:flex;gap:8px;z-index:2;
}
.featured-slider .slider-dots button{
    width:10px;height:10px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,0.5);
    background:transparent;
    cursor:pointer;
    padding:0;
    transition:all var(--transition-fast);
}
.featured-slider .slider-dots button.active{
    background:#fff;border-color:#fff;
}

/* ============ 文章详情页 ============ */
.article-container{
    max-width:800px;
    margin:calc(var(--header-height) + 40px) auto 60px;
    padding:0 20px;
}
.article-header{
    text-align:center;
    margin-bottom:32px;
    padding-bottom:32px;
    border-bottom:1px solid var(--border-color);
}
.article-header h1{
    font-size:clamp(24px, 4vw, 36px);
    font-weight:800;
    line-height:1.4;
    margin-bottom:16px;
    letter-spacing:-0.5px;
}
.article-meta{
    color:var(--text-muted);
    font-size:13px;
    display:flex;gap:16px;
    justify-content:center;
    flex-wrap:wrap;
}
.article-meta span{display:flex;align-items:center;gap:4px}

/* 文章内容 */
.article-content{
    font-size:16px;
    line-height:1.9;
    color:var(--text-primary);
}
.article-content h2{
    font-size:24px;font-weight:700;
    margin:40px 0 16px;
    padding-bottom:8px;
    border-bottom:1px solid var(--border-color);
}
.article-content h3{font-size:20px;margin:32px 0 12px}
.article-content p{margin-bottom:16px}
.article-content ul,.article-content ol{
    margin:12px 0 16px 24px;
}
.article-content li{margin-bottom:6px}
.article-content ul li{list-style:disc}
.article-content ol li{list-style:decimal}
.article-content blockquote{
    border-left:3px solid var(--accent-1);
    margin:20px 0;
    padding:12px 20px;
    background:var(--bg-card);
    border-radius:0 var(--radius-md) var(--radius-md) 0;
    color:var(--text-secondary);
}
.article-content pre{
    background:#0d1117;
    border:1px solid var(--border-color);
    border-radius:var(--radius-md);
    padding:20px;
    margin:16px 0;
    overflow-x:auto;
    font-family:var(--font-mono);
    font-size:13px;
    line-height:1.6;
    position:relative;
}
.article-content pre .copy-btn{
    position:absolute;top:8px;right:8px;
    padding:4px 12px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
    border-radius:var(--radius-sm);
    color:var(--text-muted);
    font-size:12px;
    cursor:pointer;
    transition:all var(--transition-fast);
}
.article-content pre .copy-btn:hover{
    background:rgba(255,255,255,0.15);
    color:#fff;
}
.article-content code{
    background:rgba(96,165,250,0.1);
    color:var(--accent-1);
    padding:2px 6px;
    border-radius:4px;
    font-family:var(--font-mono);
    font-size:0.9em;
}
.article-content pre code{
    background:none;
    color:var(--text-primary);
    padding:0;
}
.article-content img{
    border-radius:var(--radius-md);
    margin:16px auto;
}
.article-content a{text-decoration:underline}
.article-content table{
    width:100%;
    border-collapse:collapse;
    margin:16px 0;
}
.article-content th,.article-content td{
    padding:10px 14px;
    border:1px solid var(--border-color);
    text-align:left;
}
.article-content th{
    background:var(--bg-card);
    font-weight:600;
    font-size:13px;
}

/* 标签 */
.article-tags{
    display:flex;gap:8px;flex-wrap:wrap;
    margin:32px 0;
    padding:20px 0;
    border-top:1px solid var(--border-color);
}
.article-tags a{
    padding:6px 14px;
    background:var(--bg-card);
    border:1px solid var(--border-color);
    border-radius:20px;
    font-size:13px;
    color:var(--text-secondary);
    transition:all var(--transition-fast);
}
.article-tags a:hover{
    border-color:var(--accent-1);
    color:var(--accent-1);
    background:rgba(96,165,250,0.08);
}

/* 上一篇/下一篇 */
.article-nav{
    display:grid;grid-template-columns:1fr 1fr;
    gap:20px;
    margin:40px 0;
}
.article-nav a{
    padding:20px;
    background:var(--bg-card);
    border:1px solid var(--border-color);
    border-radius:var(--radius-lg);
    transition:all var(--transition-normal);
    display:block;
}
.article-nav a:hover{
    border-color:var(--border-hover);
    box-shadow:var(--shadow-md);
}
.article-nav .nav-label{
    font-size:12px;color:var(--text-muted);
    margin-bottom:4px;
}
.article-nav .nav-title{
    font-size:15px;font-weight:600;
    color:var(--text-primary);
}

/* ============ 阅读进度条 ============ */
.reading-progress{
    position:fixed;top:0;left:0;
    height:3px;
    background:var(--accent-gradient);
    z-index:200;
    transition:width 0.1s linear;
    border-radius:0 2px 2px 0;
}

/* ============ 回到顶部 ============ */
.back-to-top{
    position:fixed;bottom:32px;right:32px;
    width:44px;height:44px;
    border-radius:50%;
    background:var(--bg-card);
    backdrop-filter:blur(12px);
    border:1px solid var(--border-color);
    color:var(--text-secondary);
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    font-size:18px;
    z-index:50;
    opacity:0;
    transform:translateY(20px);
    transition:all var(--transition-normal);
    pointer-events:none;
}
.back-to-top.visible{
    opacity:1;transform:translateY(0);
    pointer-events:auto;
}
.back-to-top:hover{
    border-color:var(--accent-1);
    color:var(--accent-1);
    box-shadow:0 4px 20px rgba(96,165,250,0.3);
}

/* ============ 评论区域 ============ */
.comments-section{
    margin-top:48px;
    padding-top:32px;
    border-top:1px solid var(--border-color);
}
.comments-section h3{
    font-size:20px;font-weight:700;
    margin-bottom:24px;
}
.comment-form textarea{
    width:100%;
    min-height:100px;
    padding:14px 18px;
    background:var(--bg-card);
    border:1px solid var(--border-color);
    border-radius:var(--radius-md);
    color:var(--text-primary);
    resize:vertical;
    transition:all var(--transition-fast);
    outline:none;
}
.comment-form textarea:focus{
    border-color:var(--accent-1);
    box-shadow:0 0 0 3px rgba(96,165,250,0.1);
}
.comment-item{
    padding:20px;
    margin-bottom:12px;
    background:var(--bg-card);
    border:1px solid var(--border-color);
    border-radius:var(--radius-lg);
}
.comment-item .comment-header{
    display:flex;align-items:center;
    gap:12px;
    margin-bottom:8px;
}
.comment-item .comment-author{
    font-weight:600;font-size:14px;
}
.comment-item .comment-time{
    color:var(--text-muted);font-size:12px;
}
.comment-item .comment-content{
    color:var(--text-secondary);
    font-size:14px;line-height:1.7;
}
.comment-item.comment-reply{
    margin-left:40px;
    border-left:2px solid var(--accent-1);
}

/* ============ 搜索栏 ============ */
.search-bar{
    max-width:600px;
    margin:0 auto 40px;
    position:relative;
}
.search-bar input{
    width:100%;
    padding:14px 20px 14px 48px;
    background:var(--bg-card);
    border:1px solid var(--border-color);
    border-radius:50px;
    color:var(--text-primary);
    font-size:15px;
    outline:none;
    transition:all var(--transition-fast);
}
.search-bar input:focus{
    border-color:var(--accent-1);
    box-shadow:0 0 0 3px rgba(96,165,250,0.1);
}
.search-bar .search-icon{
    position:absolute;left:18px;top:50%;
    transform:translateY(-50%);
    color:var(--text-muted);
    font-size:16px;
}

/* ============ 分页 ============ */
.pagination{
    display:flex;justify-content:center;
    gap:6px;
    padding:32px 0;
}
.pagination a,.pagination span{
    min-width:40px;height:40px;
    display:flex;align-items:center;justify-content:center;
    border-radius:var(--radius-md);
    font-size:14px;
    border:1px solid var(--border-color);
    background:var(--bg-card);
    color:var(--text-secondary);
    transition:all var(--transition-fast);
    font-weight:500;
}
.pagination a:hover{
    border-color:var(--accent-1);
    color:var(--accent-1);
}
.pagination .current{
    background:var(--accent-gradient);
    border-color:transparent;
    color:#fff;
    font-weight:700;
}

/* ============ 页脚 ============ */
.site-footer{
    text-align:center;
    padding:40px 20px;
    border-top:1px solid var(--border-color);
    color:var(--text-muted);
    font-size:13px;
    margin-top:80px;
}
.site-footer a{color:var(--text-secondary)}
.site-footer a:hover{color:var(--accent-1)}

/* ============ 通知Toast ============ */
.toast-container{
    position:fixed;top:80px;right:20px;
    z-index:300;
    display:flex;flex-direction:column;
    gap:8px;
}
.toast{
    padding:14px 20px;
    background:var(--bg-card);
    backdrop-filter:blur(var(--blur-bg));
    border:1px solid var(--border-color);
    border-radius:var(--radius-md);
    color:var(--text-primary);
    font-size:14px;
    box-shadow:var(--shadow-lg);
    animation:toastIn 0.3s ease;
    max-width:360px;
    display:flex;align-items:center;gap:10px;
}
.toast.success{border-left:3px solid var(--success)}
.toast.error{border-left:3px solid var(--danger)}
.toast.warning{border-left:3px solid var(--warning)}
.toast.info{border-left:3px solid var(--info)}
.toast.removing{animation:toastOut 0.3s ease forwards}

@keyframes toastIn{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)}}
@keyframes toastOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(40px)}}

/* ============ 骨架屏 ============ */
.skeleton{
    background:linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size:200% 100%;
    animation:shimmer 1.5s ease-in-out infinite;
    border-radius:var(--radius-md);
}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.skeleton-text{height:16px;margin-bottom:8px}
.skeleton-title{height:24px;width:70%;margin-bottom:12px}
.skeleton-cover{height:200px;border-radius:var(--radius-lg) var(--radius-lg) 0 0}

/* ============ 表单样式 ============ */
.form-container{
    max-width:420px;
    margin:calc(var(--header-height) + 40px) auto 60px;
    padding:0 20px;
}
.form-card{
    background:var(--bg-card);
    backdrop-filter:blur(var(--blur-bg));
    border:1px solid var(--border-color);
    border-radius:var(--radius-xl);
    padding:40px 32px;
    box-shadow:var(--shadow-lg);
}
.form-card h2{
    font-size:24px;font-weight:700;
    margin-bottom:8px;
    text-align:center;
}
.form-card .form-subtitle{
    color:var(--text-muted);
    text-align:center;
    margin-bottom:28px;
    font-size:14px;
}
.form-group{margin-bottom:18px}
.form-group label{
    display:block;
    margin-bottom:6px;
    color:var(--text-secondary);
    font-size:13px;
    font-weight:600;
}
.form-group input{
    width:100%;
    padding:12px 16px;
    background:rgba(255,255,255,0.04);
    border:1px solid var(--border-color);
    border-radius:var(--radius-md);
    color:var(--text-primary);
    font-size:14px;
    outline:none;
    transition:all var(--transition-fast);
}
.form-group input:focus{
    border-color:var(--accent-1);
    box-shadow:0 0 0 3px rgba(96,165,250,0.1);
    background:rgba(255,255,255,0.06);
}
.btn-primary{
    display:block;width:100%;
    padding:14px 24px;
    background:var(--accent-gradient);
    color:#fff;
    border:none;
    border-radius:var(--radius-md);
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:all var(--transition-fast);
}
.btn-primary:hover{
    box-shadow:0 8px 24px rgba(96,165,250,0.35);
    transform:translateY(-1px);
}
.form-footer{
    text-align:center;
    margin-top:20px;
    color:var(--text-muted);
    font-size:13px;
}
.form-footer a{
    color:var(--accent-1);
    font-weight:600;
}

/* ============ 黑名单公示区 ============ */
.ban-board{
    background:rgba(239,68,68,0.05);
    border:1px solid rgba(239,68,68,0.15);
    border-radius:var(--radius-lg);
    padding:20px;
    margin:24px 0;
}
.ban-board h3{
    color:var(--danger);
    font-size:16px;
    margin-bottom:12px;
    display:flex;align-items:center;gap:8px;
}
.ban-board h3 .ban-count{
    font-size:11px;
    font-weight:400;
    color:var(--text-muted);
    background:rgba(239,68,68,0.1);
    border:1px solid rgba(239,68,68,0.2);
    padding:1px 8px;
    border-radius:10px;
}
/* 公示轮播: 固定高度只显示一条, 其余自动滚动, 不挤压下方内容 */
.ban-carousel{
    overflow:hidden;
    position:relative;
    min-height:76px;
}
.ban-track{
    will-change:transform;
}
.ban-item{
    padding:12px 0;
    border-bottom:1px solid rgba(239,68,68,0.08);
    font-size:13px;
    color:var(--text-secondary);
}
.ban-item:last-child{border-bottom:none}
.ban-item .ban-line{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:2px 14px;
}
.ban-item .ban-label{
    color:var(--text-muted);
    margin-right:8px;
}
.ban-item .ban-value{
    color:var(--danger);
    font-weight:600;
    font-family:var(--font-mono);
    font-size:12px;
}
.ban-item .ban-reason{
    background:rgba(239,68,68,0.08);
    padding:6px 12px;
    border-radius:var(--radius-sm);
    margin-top:6px;
    font-size:12px;
    color:var(--text-secondary);
}

/* ============ 分类标签云 ============ */
.category-cloud{
    display:flex;flex-wrap:wrap;
    gap:8px;
    justify-content:center;
    margin-bottom:32px;
}
.category-cloud a{
    padding:8px 20px;
    background:var(--bg-card);
    border:1px solid var(--border-color);
    border-radius:20px;
    font-size:14px;
    color:var(--text-secondary);
    transition:all var(--transition-fast);
    font-weight:500;
}
.category-cloud a:hover,.category-cloud a.active{
    background:var(--accent-gradient);
    border-color:transparent;
    color:#fff;
}

/* ============ 区块标题 (首页原创软件等) ============ */
.section-header{
    display:flex;align-items:center;justify-content:space-between;
    margin:8px 0 24px;
}
.section-header h2{
    font-size:22px;font-weight:800;
    background:var(--accent-gradient);
    -webkit-background-clip:text;background-clip:text;
    -webkit-text-fill-color:transparent;
    margin:0;
}
.section-more{
    font-size:14px;color:var(--text-secondary);
    border:1px solid var(--border-color);
    padding:6px 16px;border-radius:20px;
    background:var(--bg-card);
    transition:all var(--transition-fast);
    white-space:nowrap;
}
.section-more:hover{
    background:var(--accent-gradient);
    border-color:transparent;color:#fff;
}

/* 首页原创软件区块: 紧凑模式 (占位小, 一眼扫完, 不喧宾夺主) */
.products-compact .post-card .card-cover{height:130px}
.products-compact .post-card .card-body{padding:14px 16px}
.products-compact .post-card .card-body h3{font-size:16px;margin-bottom:6px}
.products-compact .post-card .card-excerpt{
    -webkit-line-clamp:2;
    line-height:1.5;
    margin-bottom:10px;
}
.products-compact .post-card .card-meta{padding-top:8px;font-size:11px}
.products-compact .section-header{margin:8px 0 16px}

/* ============ 空状态 ============ */
.empty-state{
    text-align:center;
    padding:60px 20px;
    color:var(--text-muted);
}
.empty-state .empty-icon{font-size:48px;margin-bottom:16px}
.empty-state h3{font-size:18px;color:var(--text-secondary);margin-bottom:8px}
.empty-state p{font-size:14px}

/* ============ 安全性装饰 ============ */
.security-badge{
    display:inline-flex;align-items:center;
    gap:6px;
    padding:4px 12px;
    background:rgba(78,203,113,0.08);
    border:1px solid rgba(78,203,113,0.2);
    border-radius:20px;
    font-size:11px;
    color:var(--success);
    font-weight:600;
}

/* ============ 打字机效果 ============ */
.typewriter{
    display:inline-block;
    border-right:2px solid var(--accent-1);
    animation:blink 0.7s step-end infinite;
}
@keyframes blink{50%{border-color:transparent}}
