/* ============================================================
   main.css（易读版）
   = 基础重置（已剔除头部/导航/搜索/移动菜单规则，这些由 /blog/css/header/style.css 管理）
   + 博客首页样式
   注意：如需改导航样式，请改 /blog/css/header/style.css，不要在这里加回头部规则
   ============================================================ */

/* ===== 基础重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px; line-height: 1.7; color: #1a1a1a; background: #fafafa;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; outline: none; }

/* ===== 容器 ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== Hero 区域 ===== */
.hero {
    padding: 100px 0 80px; text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-bottom: 1px solid #eee;
}
.hero-title {
    font-size: clamp(32px, 5vw, 56px); font-weight: 800;
    letter-spacing: -1.5px; line-height: 1.15; color: #000;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px); color: #666; font-weight: 400;
    max-width: 560px; margin: 0 auto; line-height: 1.6;
}

/* ===== 文章列表 ===== */
.posts-section { padding: 60px 0; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }

.post-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #eee; transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
    border-color: #ddd;
}
.post-card-image {
    width: 100%; height: 200px; object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
    font-size: 12px; color: #999;
}
.post-card-category {
    padding: 4px 10px; background: #f5f5f5; border-radius: 20px;
    font-weight: 600; color: #555; font-size: 11px;
}
.post-card-title {
    font-size: 20px; font-weight: 700; line-height: 1.4; color: #000;
    margin-bottom: 12px; letter-spacing: -0.3px;
}
.post-card-summary {
    font-size: 14px; color: #666; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; flex: 1;
}
.post-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0;
    font-size: 13px; color: #999;
}

/* ===== 文章详情 ===== */
.post-single { padding: 60px 0; }
.post-single-inner { max-width: 720px; margin: 0 auto; }
.post-single-header { margin-bottom: 40px; text-align: center; }
.post-single-category {
    display: inline-block; padding: 6px 14px; background: #000; color: #fff;
    border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 20px;
}
.post-single-title {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800;
    line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px;
}
.post-single-meta {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    font-size: 14px; color: #999;
}
.post-single-meta span { display: flex; align-items: center; gap: 6px; }
.post-single-cover {
    width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px;
    margin-bottom: 40px; background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

/* 文章内容排版 */
.post-content { font-size: 17px; line-height: 1.9; color: #333; }
.post-content h2, .post-content h3, .post-content h4 {
    font-weight: 700; color: #000; margin: 48px 0 20px; line-height: 1.4;
}
.post-content h2 { font-size: 28px; letter-spacing: -0.5px; }
.post-content h3 { font-size: 22px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin-bottom: 20px; padding-left: 28px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { opacity: 0.7; }
.post-content blockquote {
    border-left: 4px solid #000; padding-left: 24px; margin: 32px 0;
    font-style: italic; color: #555; font-size: 18px;
}
.post-content code {
    background: #f4f4f4; padding: 3px 8px; border-radius: 4px;
    font-family: "SF Mono", Monaco, monospace; font-size: 14px;
}
.post-content pre {
    background: #1a1a1a; color: #e8e8e8; padding: 20px; border-radius: 12px;
    overflow-x: auto; margin: 24px 0; font-size: 14px; line-height: 1.6;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img { border-radius: 12px; margin: 24px 0; }
.post-content hr { border: none; border-top: 1px solid #e5e5e5; margin: 40px 0; }
.post-content strong { color: #000; font-weight: 700; }

/* ===== 侧边栏 ===== */
.sidebar { padding: 40px 0; }
.sidebar-inner { max-width: 720px; margin: 0 auto; }
.sidebar-section {
    background: #fff; border-radius: 16px; padding: 28px;
    border: 1px solid #eee; margin-bottom: 24px;
}
.sidebar-title {
    font-size: 16px; font-weight: 700; color: #000; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.sidebar-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-list a {
    font-size: 14px; color: #555; display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #f5f5f5;
}
.sidebar-list a:hover { color: #000; padding-left: 4px; }
.sidebar-list a span { color: #999; font-size: 12px; }

/* 关于卡片 */
.about-card { text-align: center; }
.about-avatar {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
    object-fit: cover; border: 3px solid #f0f0f0;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}
.about-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.about-bio { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== 分页 ===== */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 60px;
}
.page-link {
    min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 14px; font-weight: 500; color: #555;
    border: 1px solid #e5e5e5; background: #fff; transition: all 0.2s;
}
.page-link:hover { border-color: #000; color: #000; }
.page-link.active { background: #000; color: #fff; border-color: #000; }
.page-ellipsis { color: #999; padding: 0 4px; }

/* ===== 页脚 ===== */
.site-footer {
    background: #0a0a0a; color: #888; padding: 60px 0 30px; margin-top: 80px;
}
.footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-logo { font-size: 20px; font-weight: 700; color: #fff; display: block; margin-bottom: 12px; }
.footer-desc { font-size: 15px; line-height: 1.7; color: #777; }
.footer-links h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.footer-links a { display: block; font-size: 15px; color: #888; margin-bottom: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #222; padding-top: 24px;
    text-align: center; font-size: 14px; color: #555;
}
.footer-bottom p { margin-bottom: 4px; }
.icp { color: #444; }

/* ===== 页面通用 ===== */
.page-header {
    padding: 80px 0 40px; text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-bottom: 1px solid #eee;
}
.page-title {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800;
    letter-spacing: -1px; margin-bottom: 12px;
}
.page-desc { font-size: 16px; color: #888; }
.page-content { padding: 60px 0; max-width: 720px; margin: 0 auto; }
.page-content .post-content { margin-top: 0; }

/* 分类标签 */
.category-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; background: #f5f5f5; border-radius: 20px;
    font-size: 13px; font-weight: 600; color: #555;
}

/* ===== 评论 ===== */
.comments-section { max-width: 720px; margin: 60px auto 0; padding-top: 40px; border-top: 1px solid #eee; }
.comments-title { font-size: 20px; font-weight: 700; margin-bottom: 32px; }
.comment-form { margin-bottom: 40px; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.comment-form input, .comment-form textarea {
    width: 100%; padding: 14px 16px; border: 2px solid #e5e5e5; border-radius: 12px;
    font-size: 15px; transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: #000; }
.comment-form textarea { min-height: 120px; resize: vertical; grid-column: 1 / -1; }
.comment-form button {
    padding: 14px 32px; background: #000; color: #fff; border-radius: 12px;
    font-weight: 600; font-size: 14px; transition: all 0.2s;
}
.comment-form button:hover { background: #333; transform: translateY(-1px); }

.comment-item { padding: 24px 0; border-bottom: 1px solid #f0f0f0; }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #333, #666);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px;
}
.comment-author { font-weight: 600; font-size: 15px; }
.comment-time { font-size: 13px; color: #999; }
.comment-body { font-size: 15px; color: #444; line-height: 1.7; padding-left: 52px; }

/* ===== 搜索结果 ===== */
.search-results { padding: 60px 0; }
.search-results-title { font-size: 24px; font-weight: 700; margin-bottom: 32px; }
.search-results-title span { color: #999; font-weight: 400; }
.search-empty { text-align: center; padding: 80px 0; color: #999; }
.search-empty svg { margin-bottom: 20px; opacity: 0.3; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero { padding: 60px 0 40px; }
    .posts-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .post-single-meta { flex-wrap: wrap; gap: 12px; }
    .comment-form-grid { grid-template-columns: 1fr; }
    .sidebar-inner { padding: 0 16px; }
    .post-content { font-size: 16px; }
    .post-content h2 { font-size: 24px; }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.post-card { animation: fadeInUp 0.5s ease forwards; }
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }

/* ========== 博客首页 - 极简黑白 ========== */
.blog-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    padding: 72px 0 36px;
    text-align: center;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 40px;
}
.hero .blog-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 14px;
    letter-spacing: -0.8px;
    line-height: 1.15;
}
.hero-subtitle {
    font-size: 16px;
    color: #888;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* 双栏布局 */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
}

/* 左侧文章列表 */
.blog-layout > .post-list {
    align-self: start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    border: 0px solid #e0e0e0;
    overflow: hidden;
    transition: all .3s ease;
}
.post-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    border-color: #e0e0e0;
}
.post-item.no-image {
    display: block;
    padding: 28px;
}

/* 小卡片：第3~4篇，每排2篇 */
.post-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.post-item-mini {
    flex-direction: column;
}
.post-item-mini .post-thumb {
    width: 100%;
    flex: none;
    height: 170px;
    min-height: 0;
}
.post-item-mini .post-body {
    padding: 18px 20px;
    gap: 8px;
}
.post-item-mini .post-title {
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-item-mini .post-footer {
    font-size: 13px;
    gap: 12px;
    padding-top: 8px;
}
.post-item-mini.no-image {
    padding: 18px 20px;
}

/* 文章封面 */
.post-thumb {
    position: relative;
    display: block;
    width: 300px;
    border-radius: 12px;
    flex: 0 0 300px;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    background: #f4f5f7;
    min-height: 200px;
}
.post-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.post-item:hover .post-thumb img {
    transform: scale(1.05);
}

/* 分类标签 - 图片左上角 */
.thumb-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.4;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* 文章主体 */
.post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px;
    gap: 10px;
}
.post-item.no-image .post-body {
    padding: 0;
}

/* 置顶标签 */
.sticky-badge {
    display: inline-flex;
    align-items: center;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    letter-spacing: .5px;
}

/* 标题 */
.post-title {
    font-size: 21px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
}
.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.post-title a:hover {
    color: #555;
}

/* 摘要 */
.post-summary {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部信息 */
.post-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #999;
    margin-top: auto;
    padding-top: 12px;
    flex-wrap: wrap;
}
.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4f5f7;
}
.author-avatar-text {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.author-name {
    color: #444;
    font-weight: 500;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    background: #fff;
    transition: all .2s;
    padding: 0 14px;
    font-weight: 500;
}
.pagination a:hover {
    background: #111;
    color: #fff;
    border-color: #1a1a1a;
    transform: translateY(-1px);
}
.pagination .current {
    background: #111;
    color: #fff;
    border-color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.pagination .dots {
    border: none;
    background: transparent;
    color: #bbb;
    min-width: 30px;
}

/* 右侧侧边栏 - 完全不动 */
.blog-layout > .sidebar {
    position: sticky;
    top: 0;
    align-self: start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.side-card {
    background: #fff;
    border: 0px solid #e0e0e0;
    border-radius: 14px;
    padding: 24px;
}
.side-card-one {
    background: #fff;
    border: 0px solid #f0f0f0;
    border-radius: 14px;
    padding: 24px;
}
.side-title {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: .8px;
}
/* 标题 + 更多 行 */
.side-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 12px;
}
.side-more {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    transition: color .2s;
}
.side-more:hover {
    color: #1a1a1a;
}
.about-card { text-align: center; }
.about-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #333;
}
.about-name {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.about-bio {
    font-size: 15px;
    color: #777;
    line-height: 1.65;
    margin: 0;
}
.side-btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s;
}
.side-btn-submit:hover {
    opacity: .85;
}
.side-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.side-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: #444;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.45;
    transition: color .2s;
}
.side-list a:hover { color: #000; }
.side-list a span {
    color: #ccc;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 10px;
    font-weight: 500;
}

/* ========== 快讯 - 手风琴样式 ========== */
.flash-list {
    display: flex;
    flex-direction: column;
}
.flash-item {
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 12px;
}
.flash-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}
/* 标题行（可点击） */
.flash-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.flash-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 9px;
    flex-shrink: 0;
    padding-top: 6px;
}
.flash-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #161b22;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #161b22;
    flex-shrink: 0;
}
.flash-title-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.flash-title {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    line-height: 1.5;
    transition: color .2s;
}
.flash-item:hover .flash-title {
    color: #1a1a1a;
}
/* 展开箭头 */
.flash-arrow {
    width: 16px;
    height: 16px;
    color: #ccc;
    transition: transform .25s ease, color .2s;
    flex-shrink: 0;
    margin-top: 2px;
}
.flash-item.active .flash-arrow {
    transform: rotate(90deg);
    color: #1a1a1a;
}
/* 展开内容区 */
.flash-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding-left: 19px; /* 圆点 9px + gap 10px */
}
.flash-item.active .flash-body {
    max-height: 200px;
    padding-top: 8px;
    padding-bottom: 4px;
}
.flash-content {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    margin: 0 0 8px;
}
.flash-time {
    font-size: 13px;
    color: #bbb;
}
.flash-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-top: 6px;
    transition: gap .2s;
}
.flash-link:hover {
    gap: 8px;
}
.flash-link::after {
    content: '→';
}

/* ========== 响应式 ========== */
@media (max-width: 1180px) {
    .blog-layout {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }
    .post-thumb {
        width: 260px;
        flex-basis: 260px;
    }
}
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-layout > .sidebar {
        position: static;
        margin-top: 40px !important;
    }
    .post-thumb {
        width: 240px;
        flex-basis: 240px;
        min-height: 180px;
    }
    .hero { padding: 48px 0 28px; }
    .hero-title { font-size: 28px; }
}
@media (max-width: 640px) {
    .post-item {
        flex-direction: column;
    }
    .post-thumb {
        width: 100%;
        flex: none;
        height: 200px;
        min-height: 0;
    }
    .post-body {
        padding: 20px;
        gap: 8px;
    }
    .post-title {
        font-size: 18px;
    }
    .post-footer {
        gap: 12px;
    }
    .blog-wrap { padding: 0 18px; }
    .hero-title { font-size: 26px; }
    .post-mini-grid { gap: 12px; }
    .post-item-mini .post-thumb { height: 120px; }
}
@media (max-width: 480px) {
    .post-mini-grid { grid-template-columns: 1fr; }
    .post-item-mini .post-thumb { height: 160px; }
}

/* ========== 黑夜模式（主内容与分类页强制一致） ========== */
html.dark body { background: #0a0a0a !important; }

html.dark .hero {
    background: #0a0a0a !important;
    border-bottom-color: #222;
}

html.dark .hero-title { color: #f0f0f0; }
html.dark .hero-subtitle { color: #888; }

html.dark .post-item { background: #111 !important; border-color: #222 !important; }
html.dark .post-item:hover { border-color: #333 !important; box-shadow: 0 8px 30px rgba(0,0,0,.3) !important; }
html.dark .post-thumb { background: #1a1a1a !important; }
html.dark .post-title { color: #f0f0f0 !important; }
html.dark .post-title a:hover { color: #aaa !important; }
html.dark .post-summary { color: #999 !important; }
html.dark .post-footer { color: #666 !important; }
html.dark .thumb-cat { background: rgba(255,255,255,.15) !important; color: #f0f0f0 !important; }
html.dark .sticky-badge { background: #f0f0f0 !important; color: #111 !important; }
html.dark .author-name { color: #aaa !important; }
html.dark .author-avatar-text { background: #f0f0f0 !important; color: #111 !important; }

html.dark .side-card { 
    background: #111 !important; 
    border-color: #222 !important;
    box-shadow: none !important;
}
html.dark .side-card-one { 
    background: #111 !important; 
    border-color: #222 !important;
    box-shadow: none !important;
}
html.dark .sidebar { 
    background: transparent !important; 
}
html.dark .side-title { color: #f0f0f0; }
html.dark .side-more {
    color: #666;
}
html.dark .side-more:hover {
    color: #f0f0f0;
}
html.dark .about-avatar { background: #222; color: #aaa; }
html.dark .about-name { color: #f0f0f0; }
html.dark .about-bio { color: #888; }
html.dark .side-btn-submit { background: #333; color: #f0f0f0; border: 1px solid #444; }
html.dark .side-list a { color: #aaa; }
html.dark .side-list a:hover { color: #f0f0f0; }
html.dark .side-list a span { color: #444; }

/* 快讯手风琴黑夜模式 */
html.dark .flash-item { border-bottom-color: #222; }
html.dark .flash-dot { background: #666; border-color: #111; box-shadow: 0 0 0 1px #666; }
html.dark .flash-title { color: #aaa; }
html.dark .flash-item:hover .flash-title { color: #f0f0f0; }
html.dark .flash-arrow { color: #555; }
html.dark .flash-item.active .flash-arrow { color: #f0f0f0; }
html.dark .flash-content { color: #888; }
html.dark .flash-time { color: #555; }
html.dark .flash-link { color: #f0f0f0; }

html.dark .pagination a,
html.dark .pagination span { background: #111 !important; border-color: #222 !important; color: #aaa !important; }
html.dark .pagination a:hover { background: #f0f0f0 !important; color: #111 !important; border-color: #f0f0f0 !important; }
html.dark .pagination .current { background: #f0f0f0 !important; color: #111 !important; border-color: #f0f0f0 !important; }
html.dark .pagination .dots { color: #555 !important; }

/* ========== 侧边栏 4TAB 文章组件 - 绝对固定高度（切换不跳） ========== */

/* 1. 整个卡片钉死 560px，多一像素都不要 */
.side-card-tab,
.side-card:has(> .tab-widget) {
    height: 560px;
    overflow: hidden;
}

/* 2. 导航栏钉死 40px */
.tab-nav {
    display: flex;
    align-items: center;
    height: 40px;
/*     border-bottom: 1px solid #f0f0f0; */
    margin: -24px -24px 0;
    padding: 0 24px;
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    height: 40px;
    line-height: 40px;
    font-size: 15px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    white-space: nowrap;
    padding: 0;
}
.tab-btn:hover { color: #555; }
.tab-btn.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* 3. 内容面板钉死 504px = 6条 × 84px，超出直接隐藏（不滚动不撑高） */
.tab-panel {
    display: none;
    height: 504px;
    padding-top: 16px;
    overflow: hidden;
}
.tab-panel.active { display: block; }

/* 4. 每条文章钉死 84px（包含边框），像表格行一样 */
.tab-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 83px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    overflow: hidden;
    box-sizing: border-box;
}
.tab-post-item:last-child {
    border-bottom-color: transparent;
}

/* 5. 缩略图钉死 54px，不准变形 */
.tab-post-thumb {
    width: 72px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f5f7;
    line-height: 0;
}
.tab-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.tab-post-item:hover .tab-post-thumb img { transform: scale(1.08); }
.tab-post-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #bbb;
    background: #f4f5f7;
}

/* 6. 文字信息 - 垂直居中分布 */
.tab-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.tab-post-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 20px;
    height: 40px;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}
.tab-post-date {
    font-size: 13px;
    color: #bbb;
    line-height: 16px;
    height: 16px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 7. 空状态占位，保持高度 */
.tab-empty {
    font-size: 13px;
    color: #ccc;
    text-align: center;
    line-height: 504px;
    margin: 0;
    height: 504px;
}

/* Mickey Press 下载按钮 */
.mp-download-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s;
}
.mp-download-btn:hover {
    opacity: .85;
}
/* 黑夜模式：白底黑字 */
html.dark .mp-download-btn {
    background: #222;
    color: #111;
}

/* ========== 黑夜模式 ========== */
html.dark .tab-nav { border-bottom-color: #222; }
html.dark .tab-btn { color: #666; }
html.dark .tab-btn:hover { color: #aaa; }
html.dark .tab-btn.active { color: #f0f0f0; border-bottom-color: #f0f0f0; }
html.dark .tab-post-item { border-bottom-color: #1a1a1a; }
html.dark .tab-post-item:last-child { border-bottom-color: transparent; }
html.dark .tab-post-title { color: #ccc; }
html.dark .tab-post-item:hover .tab-post-title { color: #f0f0f0; }
html.dark .tab-post-date { color: #555; }
html.dark .tab-post-thumb { background: #1a1a1a; }
html.dark .tab-post-noimg { background: #1a1a1a; color: #555; }
html.dark .tab-empty { color: #444; }

/* ========== Hero 2 · 代码窗口风格（后台「英雄版样式」切换） ========== */
.hero2 {
    padding: 46px 0 8px;
    margin-bottom: 24px;
}

/* 英雄区与文章列表之间的渐变分割线（若隐若现，两端渐隐） */
.hero2-divider {
    height: 1px;
    margin-top: 36px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, .12) 18%, rgba(0, 0, 0, .12) 82%, transparent);
}
html.dark .hero2-divider {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .14) 18%, rgba(255, 255, 255, .14) 82%, transparent);
}
.hero2-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 左侧 */
.hero2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f5f7;
    border: 1px solid #e8e8e8;
    color: #555;
    font-size: 12.5px;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 26px;
}
.hero2-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex: none;
}
.hero2-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
}
.hero2-sub {
    font-size: 15.5px;
    color: #888;
    line-height: 1.9;
    margin: 0 0 30px;
}
.hero2-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero2-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}
.hero2-btn-dark {
    background: #111;
    color: #fff;
    border: 1px solid #111;
}
.hero2-btn-dark:hover { background: #333; border-color: #333; color: #fff; }
.hero2-btn-light {
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
}
.hero2-btn-light:hover { border-color: #1a1a1a; color: #1a1a1a; }

/* 右侧代码窗口（各层背景显式锁定，防止主题 pre/code 样式渗入） */
.hero2-window {
    /* 白天：窗口整体白底，内容区由 .hero2-slides 涂深色。
       这样圆角边缘的抗锯齿渗色渗的是白色，白底白边不可见 */
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.10);
}
.hero2-slides { background: #2e2e2e !important; }
.hero2-slide { background: #2e2e2e !important; }
.hero2-window pre.hero2-slide > code,
html.dark .hero2-window pre.hero2-slide > code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
/* 语法高亮 span 只清背景，保留着色 */
.hero2-window pre.hero2-slide > code span,
html.dark .hero2-window pre.hero2-slide > code span {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}
/* 顶栏 · iPhone 质感：细腻渐变 + 顶部高光 + 发丝分隔线 */
.hero2-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    background: linear-gradient(to bottom, #ffffff 0%, #f5f5f7 100%) !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, .07) !important;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
    background-clip: padding-box;
}
/* 黑夜模式：深色磨砂渐变 */
html.dark .hero2-window-bar {
    background: linear-gradient(to bottom, #2c2c2c 0%, #242424 100%) !important;
    border-bottom-color: #3a3a3a !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hw-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    flex: none;
}
/* 标签名做成 iOS 分段控件风格的小胶囊 */
.hero2-window-tab {
    margin-left: auto;
    font-size: 12px;
    color: #6e6e73 !important;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    background: rgba(0, 0, 0, .05) !important;
    padding: 4px 11px;
    border-radius: 999px;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.dark .hero2-window-tab {
    color: #9a9aa0 !important;
    background: rgba(255, 255, 255, .09) !important;
}
.hero2-slides {
    position: relative;
    min-height: 300px;
}
/* 文章轮播模式：容器高度完全跟随滑块，杜绝底部露出黑带 */
.hero2-slides.hero2-slides-posts { min-height: 0; }
.hero2-slide {
    display: none;
    margin: 0;
    padding: 24px 26px;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 13.5px;
    line-height: 1.8;
    color: #e6edf3;
    white-space: pre-wrap;
    word-break: break-all;
}
.hero2-slide.active { display: block; }

/* ===== Classic：置顶文章轮播（封面 + 标题） ===== */
.hero2-window a.hero2-post-slide,
html.dark .hero2-window a.hero2-post-slide {
    display: none;
    position: relative;
    height: 340px;
    overflow: hidden;
    text-decoration: none !important;
    border: none !important;
    background: linear-gradient(135deg, #3a3a3a 0%, #1e1e1e 100%);
}
.hero2-window a.hero2-post-slide.active,
html.dark .hero2-window a.hero2-post-slide.active { display: block !important; }
.hero2-post-cover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    transition: transform .6s ease;
}
.hero2-post-slide:hover .hero2-post-cover { transform: scale(1.045); }
.hero2-post-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, 0) 72%);
}
.hero2-post-info {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.hero2-post-badge {
    font-size: 12px;
    line-height: 1;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero2-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 无封面时的占位渐变上淡淡的品牌字感 */
.hero2-post-slide.no-cover .hero2-post-mask {
    background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 40%),
                linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, 0) 100%);
}

/* 语法着色 */
.hero2-slide .tk-k { color: #ff7b72; }   /* 关键字 */
.hero2-slide .tk-s { color: #a5d6ff; }   /* 字符串 */
.hero2-slide .tk-c { color: #7d8590; }   /* 注释 */
.hero2-slide .tk-n { color: #ffa657; }   /* 数字 */
.hero2-slide .tk-f { color: #d2a8ff; }   /* 函数名 */

/* 轮播圆点 */
.hero2-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.hero2-dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: #d4d4d4;
    cursor: pointer;
    transition: all .3s ease;
}
.hero2-dot.active {
    width: 22px;
    background: #111;
}

/* 黑夜模式 */
html.dark .hero2-badge { background: #1c1c1c; border-color: #333; color: #bbb; }
html.dark .hero2-title { color: #f0f0f0; }
html.dark .hero2-sub { color: #9aa4b2; }
html.dark .hero2-btn-dark { background: #f0f0f0 !important; border-color: #f0f0f0 !important; color: #111 !important; }
html.dark .hero2-btn-dark:hover { background: #fff !important; border-color: #fff !important; color: #111 !important; }
html.dark .hero2-btn-light { background: #161616 !important; border-color: #333 !important; color: #e8e8e8 !important; }
html.dark .hero2-btn-light:hover { border-color: #888 !important; color: #fff !important; }
html.dark .hero2-window,
html.dark .hero2-slides,
html.dark .hero2-slide { background: #2e2e2e !important; }
html.dark .hero2-window { background: #2e2e2e !important; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
html.dark .hero2-dot { background: #444; }
html.dark .hero2-dot.active { background: #e8e8e8; }

/* 移动端适配 */
@media (max-width: 960px) {
    .hero2 { padding: 44px 0 4px; margin-bottom: 20px; }
    .hero2-divider { margin-top: 28px; }
    .hero2-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .hero2-title { font-size: 34px; }
    .hero2-slides { min-height: 260px; }
    .hero2-window a.hero2-post-slide,
    html.dark .hero2-window a.hero2-post-slide { height: 260px; }
    .hero2-post-title { font-size: 16px; }
}
@media (max-width: 560px) {
    .hero2-title { font-size: 28px; }
    .hero2-sub { font-size: 14.5px; }
    .hero2-btn { padding: 12px 20px; font-size: 14px; }
    .hero2-slide { font-size: 12.5px; padding: 18px 20px; }
    .hero2-window a.hero2-post-slide,
    html.dark .hero2-window a.hero2-post-slide { height: 220px; }
    /* 容器最小高度同步为 220px，否则比滑块高出的部分会露出一条黑带 */
    .hero2-slides { min-height: 220px; }
    .hero2-post-info { left: 16px; right: 16px; bottom: 16px; }
    .hero2-post-title { font-size: 16px; }
}

/* 锚点跳转平滑滚动（如主按钮 #post-list 跳到文章列表） */
html { scroll-behavior: smooth; }

/* ============================================================
   置顶推荐轮播 · 立体感增强
   分层柔和阴影 + 悬浮抬升 + 封面呼吸感 + 徽章/圆点精修
   （本块置于文件末尾，专门覆盖上方旧规则，黑夜模式用 !important）
   ============================================================ */

/* 吸顶导航层级钉死：防止任何 3D 变换元素盖住菜单 */
.site-header { z-index: 1200 !important; }

/* 窗口：与文章卡片同一套悬浮语言——轻浮起 + 柔阴影 + 边框变深
   调强度：translateY 控制浮起高度，rgba 最后的透明度控制阴影浓度 */
.hero2-window {
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05) !important;
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.hero2-window:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .10) !important;
    border-color: #e0e0e0 !important;
}

/* 滑块内侧一圈高光 + 四角暗角，图片像嵌在玻璃框里 */
.hero2-window a.hero2-post-slide,
html.dark .hero2-window a.hero2-post-slide {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14),
                inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.hero2-post-slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .28) 100%);
}

/* 封面：缩放更慢更顺，同时提亮提饱和，像呼吸一样 */
.hero2-post-cover {
    transition: transform 1.1s cubic-bezier(.22, 1, .36, 1), filter 1.1s cubic-bezier(.22, 1, .36, 1) !important;
}
.hero2-post-slide:hover .hero2-post-cover {
    transform: scale(1.06);
    filter: brightness(1.06) saturate(1.1);
}

/* 底部渐变加深一档，标题更稳地"坐"在图上 */
.hero2-post-mask {
    background: linear-gradient(to top, rgba(0, 0, 0, .80) 0%, rgba(0, 0, 0, .34) 46%, rgba(0, 0, 0, 0) 74%);
}

/* 徽章：磨砂玻璃上加一点内高光和外投影，浮在图上 */
.hero2-post-badge {
    background: rgba(20, 20, 20, .32);
    border: 1px solid rgba(255, 255, 255, .34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22),
                0 4px 14px rgba(0, 0, 0, .30);
    backdrop-filter: blur(10px) saturate(1.4);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    letter-spacing: .04em;
}

/* 标题：更立体的投影 */
.hero2-post-title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 6px 22px rgba(0, 0, 0, .45);
}

/* 轮播圆点：激活态加长胶囊 + 投影 */
.hero2-dot { transition: all .35s cubic-bezier(.22, 1, .36, 1); box-shadow: inset 0 1px 1px rgba(0,0,0,0.06); }
.hero2-dot.active { width: 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }

/* 顶栏分类胶囊：加一点投影，更像浮起的小标签 */
.hero2-window-tab {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* 黑夜模式适配（!important 覆盖上方旧规则） */
html.dark .hero2-window {
    border-color: #222 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4) !important;
}
html.dark .hero2-window:hover {
    border-color: #333 !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .5) !important;
}
html.dark .hero2-post-badge {
    background: rgba(0, 0, 0, .45) !important;
    border-color: rgba(255, 255, 255, .22) !important;
}
html.dark .hero2-window-tab {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}
html.dark .hero2-dot.active { box-shadow: 0 2px 8px rgba(0, 0, 0, .55); }

/* 触屏设备没有悬浮，不给悬浮阴影增强也无妨；倾斜效果由 JS 控制，仅在鼠标设备启用 */

/* ============================================================
   Hero 2 · 2026 居中大字版（Stacker / Linear 风格）
   本块在文件末尾，覆盖上方旧版 hero2 布局样式
   ============================================================ */
.hero2 {
    position: relative;
    overflow: hidden;
    padding: 104px 0 72px;
    margin-bottom: 24px;
}
/* 点阵纹理：中心可见、四周渐隐 */
.hero2::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 0%, transparent 72%);
    pointer-events: none;
}
/* 顶部柔光晕 */
.hero2::after {
    content: "";
    position: absolute;
    top: -180px; left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 420px;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .05), transparent);
    pointer-events: none;
}
.hero2-center {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 公告条：Linear 风格 "New xxx →" */
.hero2-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555 !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, .7);
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 5px 14px 5px 5px;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hero2-notice:hover { border-color: #bbb; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.hero2-notice-tag {
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 9px;
    border-radius: 999px;
}
.hero2-notice svg { color: #999; transition: transform .2s ease; }
.hero2-notice:hover svg { transform: translateX(2px); }

/* 徽章沿用旧样式，微调为玻璃感 */
.hero2-badge {
    background: rgba(255, 255, 255, .7);
    border-color: #e0e0e0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 0;
}

/* 超大紧凑标题 */
.hero2-title {
    font-size: clamp(40px, 7vw, 58px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 26px 0 0;
}
.hero2-sub {
    font-size: 16px;
    color: #888;
    line-height: 1.9;
    margin: 22px auto 0;
    max-width: 620px;
}
.hero2-actions {
    justify-content: center;
    margin-top: 38px;
}
.hero2-btn { border-radius: 999px; padding: 14px 30px; }

/* 入场动画：元素依次浮现上移 */
@keyframes hero2Rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero2-center > * { animation: hero2Rise .7s cubic-bezier(.22, 1, .36, 1) both; }
.hero2-center > *:nth-child(1) { animation-delay: .02s; }
.hero2-center > *:nth-child(2) { animation-delay: .08s; }
.hero2-center > *:nth-child(3) { animation-delay: .14s; }
.hero2-center > *:nth-child(4) { animation-delay: .20s; }
.hero2-center > *:nth-child(5) { animation-delay: .26s; }
@media (prefers-reduced-motion: reduce) {
    .hero2-center > * { animation: none; }
}

/* 黑夜模式 */
html.dark .hero2::before {
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px);
}
html.dark .hero2::after {
    background: radial-gradient(closest-side, rgba(255, 255, 255, .05), transparent);
}
html.dark .hero2-notice {
    background: rgba(22, 22, 22, .7) !important;
    border-color: #333 !important;
    color: #bbb !important;
}
html.dark .hero2-notice:hover { border-color: #666 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
html.dark .hero2-notice-tag { background: #f0f0f0 !important; color: #111 !important; }
html.dark .hero2-badge { background: rgba(22, 22, 22, .7) !important; border-color: #333 !important; }
html.dark .hero2-sub { color: #9aa4b2 !important; }

/* 手机端间距收紧 */
@media (max-width: 768px) {
    .hero2 { padding: 72px 0 52px; }
    .hero2-title { letter-spacing: -0.025em; }
    .hero2-actions .hero2-btn { width: auto; }
}

/* ===== Hero 3 Styles ===== */
.hero3-wrap{width:100%;max-width:1140px;margin:0 auto;padding:24px 16px 20px;}
.hero3-grid{display:grid;grid-template-columns:280px 1fr 280px;gap:16px;align-items:stretch;}
.hero3-left,.hero3-right{display:flex;flex-direction:column;height:100%;gap:16px;}
.hero3-left .h3-card:last-child,.hero3-right .h3-card:last-child{flex:1;}

.h3-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,0.06);transition:box-shadow .2s;}
.h3-card:hover{box-shadow:0 4px 12px rgba(0,0,0,0.08);}
.h3-card-inner{padding:20px;}
.h3-card-icon{width:48px;height:48px;border-radius:12px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;}
.h3-card-icon img{width:100%;height:100%;object-fit:cover;}
.h3-card-icon svg{width:24px;height:24px;display: block;}
.h3-card-title{font-size:16px;font-weight:700;color:#1a1a1a;margin:0 0 4px;line-height:1.4;}
.h3-card-desc{font-size:13px;color:#999;margin:0;line-height:1.5;}

/* 左中：热门文章 — 碎片拼合轮播（20秒自动，从中向四周扩散） */
.h3-carousel{position:relative;border-radius:14px;overflow:hidden;background:#f5f5f5;aspect-ratio:16/10;}
.h3-carousel-item{position:absolute;inset:0;display:block;opacity:0;visibility:hidden;transition:opacity .15s ease,visibility .15s ease;z-index:1;}
.h3-carousel-item.active{opacity:1;visibility:visible;z-index:2;}

/* 四块碎片 - 紧密拼合，中间无缝 */
.h3-carousel-item .h3-fragment{position:absolute;top:0;left:0;width:50%;height:50%;background-image:var(--frag-img);background-size:200% 200%;background-repeat:no-repeat;transition:all .9s cubic-bezier(.22,1,.36,1);opacity:0;will-change:transform,opacity;}

/* 碎片初始状态：全部堆在中心，缩小+旋转+模糊 */
.h3-fragment[data-pos="tl"]{background-position:0% 0%;border-radius:14px 0 0 0;transform:translate(25%,25%) scale(.25) rotate(-22deg);filter:blur(10px);}
.h3-fragment[data-pos="tr"]{background-position:100% 0%;border-radius:0 14px 0 0;transform:translate(25%,25%) scale(.25) rotate(22deg);filter:blur(10px);}
.h3-fragment[data-pos="bl"]{background-position:0% 100%;border-radius:0 0 0 14px;transform:translate(25%,25%) scale(.25) rotate(18deg);filter:blur(10px);}
.h3-fragment[data-pos="br"]{background-position:100% 100%;border-radius:0 0 14px 0;transform:translate(25%,25%) scale(.25) rotate(-18deg);filter:blur(10px);}

/* 激活：碎片从中心向四周扩散，紧密贴合无缝 */
.h3-carousel-item.active .h3-fragment{opacity:1;filter:blur(0);}
.h3-carousel-item.active .h3-fragment[data-pos="tl"]{transform:translate(0,0) scale(1) rotate(0deg);transition-delay:0s;}
.h3-carousel-item.active .h3-fragment[data-pos="tr"]{transform:translate(100%,0) scale(1) rotate(0deg);transition-delay:.1s;}
.h3-carousel-item.active .h3-fragment[data-pos="bl"]{transform:translate(0,100%) scale(1) rotate(0deg);transition-delay:.2s;}
.h3-carousel-item.active .h3-fragment[data-pos="br"]{transform:translate(100%,100%) scale(1) rotate(0deg);transition-delay:.3s;}

/* 退出：向中心收缩渐隐 */
.h3-carousel-item:not(.active) .h3-fragment{transition-delay:0s!important;transition-duration:.45s;opacity:0;}

/* 拼合完成后光泽扫过 */
.h3-carousel-item.active::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.18) 45%,rgba(255,255,255,.32) 50%,rgba(255,255,255,.18) 55%,transparent 62%);transform:translateX(-100%);animation:fragShine 1s ease .6s forwards;pointer-events:none;z-index:3;border-radius:14px;}
@keyframes fragShine{from{transform:translateX(-100%);}to{transform:translateX(100%);}}

/* 圆点：左侧垂直 */
.h3-carousel-dots{position:absolute;left:10px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:8px;z-index:10;}
.h3-carousel-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.45);cursor:pointer;transition:all .3s ease;backdrop-filter:blur(2px);}
.h3-carousel-dot.active{background:#fff;height:18px;border-radius:3px;box-shadow:0 2px 8px rgba(0,0,0,.25);}

.h3-qa-item{position:relative;display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #f0f0f0;}
.h3-qa-item:first-child{padding-top:0;}
.h3-qa-item:last-child{border-bottom:none;padding-bottom:0;}
.h3-qa-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.h3-qa-avatar-placeholder{width:32px;height:32px;border-radius:50%;background:#f0f0f0;display:flex;align-items:center;justify-content:center;font-size:12px;color:#999;flex-shrink:0;}

/* 问答卡片左上角图标 */
.h3-qa-card{position:relative;}
.h3-qa-badge{position:absolute;top:12px;left:12px;z-index:3;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;background:#111;color:#fff;}
.h3-qa-badge svg{width:14px;height:14px;}
html.dark .h3-qa-badge{background:#f0f0f0;color:#111;}

/* 问答项右下角头像：hover 从左滚入 + 旋转 360° */
.h3-qa-avatar-img{position:absolute;right:0;bottom:-10px;width:28px;height:28px;border-radius:50%;object-fit:cover;opacity:0;pointer-events:none;z-index:2;}
.h3-qa-avatar-text{display:flex;align-items:center;justify-content:center;background:#111;color:#fff;font-size:11px;font-weight:700;}
.h3-qa-item:hover .h3-qa-avatar-img{animation:qaAvatarSpin .55s cubic-bezier(.22,1,.36,1) forwards;}
@keyframes qaAvatarSpin{0%{opacity:0;transform:translateX(-40px) rotate(0deg);}100%{opacity:1;transform:translateX(0) rotate(360deg);}}
.h3-qa-title{font-size:16px;color:#333;line-height:1.5;font-weight:700;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;position:relative;}
.h3-qa-arrow{display:inline-block;vertical-align:-1px;margin-left:20px;opacity:0;transform:translate(-2px,2px);transition:all .2s ease;color:#999;width:16px;height:16px;}
.h3-qa-item:hover .h3-qa-arrow{opacity:1;transform:translate(0,0);}

html.dark .h3-qa-arrow{color:#888;}
.h3-qa-excerpt{font-size:13.5px;color:#999;line-height:1.5;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
html.dark .h3-qa-excerpt{color:#888;}

.hero3-center{display:flex;flex-direction:column;min-height:0;}
/* ===== 中列：大图轮播 — 柔和渐隐切换 ===== */
.h3-center{position:relative;border-radius:24px;overflow:hidden;background:#000;width:100%;height:100%;flex:1;}
.h3-center-track{position:relative;width:100%;height:100%;}

/* 每张图绝对定位叠在一起，默认透明 */
.h3-center-item{position:absolute;inset:0;width:100%;height:100%;opacity:0;visibility:hidden;transform:scale(1.08);transition:opacity 1.8s cubic-bezier(.22,1,.36,1),transform 2.2s cubic-bezier(.22,1,.36,1),visibility 1.8s;z-index:1;}
.h3-center-item.active{opacity:1;visibility:visible;transform:scale(1);z-index:2;}
.h3-center-item img{width:100%;height:100%;object-fit:cover;display:block;}

/* 底部渐变遮罩 */
.h3-center-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.1) 50%,transparent 100%);z-index:1;}

/* 文字信息：延迟上浮浮现 */
.h3-center-info{position:absolute;bottom:0;left:0;right:0;padding:24px;color:#fff;z-index:2;opacity:0;transform:translateY(20px);transition:opacity 1s ease .55s,transform 1s ease .55s;}
.h3-center-item.active .h3-center-info{opacity:1;transform:translateY(0);}

.h3-center-tag{display:inline-block;padding:3px 10px;border-radius:4px;background:rgba(255,255,255,0.15);backdrop-filter:blur(4px);font-size:11px;font-weight:600;margin-bottom:10px;letter-spacing:0.5px;opacity:0;transform:translateY(10px);transition:opacity .8s ease .35s,transform .8s ease .35s;}
.h3-center-item.active .h3-center-tag{opacity:1;transform:translateY(0);}

.h3-center-title{font-size:22px;font-weight:700;margin:0 0 6px;line-height:1.3;opacity:0;transform:translateY(14px);transition:opacity .9s ease .65s,transform .9s ease .65s;}
.h3-center-item.active .h3-center-title{opacity:1;transform:translateY(0);}

.h3-center-subtitle{font-size:14px;color:rgba(255,255,255,0.75);margin:0;opacity:0;transform:translateY(12px);transition:opacity .9s ease .8s,transform .9s ease .8s;}
.h3-center-item.active .h3-center-subtitle{opacity:1;transform:translateY(0);}
/* 顶部计数器 + 进度条 */
.h3-center-topbar{position:absolute;top:0;left:0;right:0;z-index:4;padding:16px 20px;display:flex;flex-direction:column;gap:10px;pointer-events:none;}
.h3-center-progress{width:100%;height:3px;background:rgba(255,255,255,.18);border-radius:2px;overflow:hidden;}
.h3-progress-bar{height:100%;width:0%;background:#fff;border-radius:2px;box-shadow:0 0 8px rgba(255,255,255,.4);transition:width .1s linear;}

/* dots 隐藏保留 */
.h3-center-dots{display:none;}

.h3-stat-img{width:100%;height:auto;border-radius:10px;margin-bottom:12px;display:block;}
.h3-stat-count{font-size:24px;font-weight:700;color:#1a1a1a;margin:0;text-align:center;}
.h3-stat-label{font-size:13.5px;color:#999;margin:4px 0 0;text-align:center;}

/* ===== 站点统计左右排列 ===== */
.h3-stat-row{display:flex;align-items:center;justify-content:center;gap:24px;}
.h3-stat-col{flex:1;text-align:center;position:relative;}
.h3-stat-col + .h3-stat-col::before{content:"";position:absolute;left:-12px;top:50%;transform:translateY(-50%);width:1px;height:60%;background:rgba(0,0,0,0.08);}
html.dark .h3-stat-col + .h3-stat-col::before{background:rgba(255,255,255,0.08);}

.h3-latest{display:block;text-decoration:none;color:inherit;}
.h3-latest:hover .h3-latest-arrow{opacity:1;transform:translate(0,0);}
.h3-latest-thumb{border-radius:10px;overflow:hidden;margin-bottom:10px;aspect-ratio:16/9;background:#f5f5f5;}
.h3-latest-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.h3-latest:hover .h3-latest-thumb img{transform:scale(1.03);}

.h3-plugin{font-size:13px;color:#555;line-height:1.6;}

.h3-empty{text-align:center;padding:30px;color:#bbb;font-size:13px;}

.hero3-divider{height:1px;background:linear-gradient(90deg,transparent 0%,rgba(0,0,0,0.08) 20%,rgba(0,0,0,0.12) 50%,rgba(0,0,0,0.08) 80%,transparent 100%);margin:20px 0 0;}

html.dark .h3-card{background:#1a1a1a;box-shadow:0 1px 3px rgba(0,0,0,0.3);}
html.dark .h3-card:hover{box-shadow:0 4px 12px rgba(0,0,0,0.5);}
html.dark .h3-card-title{color:#f0f0f0;}
html.dark .h3-card-desc{color:#888;}
html.dark .h3-card-icon{background:#2a2a2a;}
html.dark .h3-carousel{background:#2a2a2a;}
html.dark .h3-qa-title{color:#ddd;}
html.dark .h3-qa-item{border-color:#333;}
html.dark .h3-stat-count{color:#f0f0f0;}

html.dark .h3-latest-thumb{background:#2a2a2a;}
html.dark .h3-plugin{color:#bbb;}
html.dark .h3-empty{color:#555;}
html.dark .hero3-divider{background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.08) 20%,rgba(255,255,255,0.12) 50%,rgba(255,255,255,0.08) 80%,transparent 100%);}

/* 右中：最新文章卡片 */
.h3-latest-card{position:relative;overflow:hidden;min-height:148px;}
.h3-latest-link{display:block;padding:20px 18px;text-decoration:none;color:inherit;height:100%;box-sizing:border-box;}
.h3-latest-title{margin:0 0 4px;font-size:16px;font-weight:600;color:#1a1a1a;line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;max-width:calc(100% - 90px);word-break:break-all;}
.h3-latest-meta{font-size:13px;color:#999;line-height:1.4;}

.h3-latest-img-wrap{position:absolute;right:14px;bottom:14px;width:84px;height:84px;border-radius:12px;overflow:hidden;background:#f5f5f5;box-shadow:0 4px 14px rgba(0,0,0,0.12);transform:rotate(8deg) translateZ(0);transition:transform .35s cubic-bezier(.34,1.56,.64,1);transform-origin:center center;}
.h3-latest-img-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
.h3-latest-card:hover .h3-latest-img-wrap{transform:rotate(0deg) scale(1.06) translateZ(0);}
html.dark .h3-latest-title{color:#f0f0f0;}
html.dark .h3-latest-arrow{color:#888;}
html.dark .h3-latest-img-wrap{background:#2a2a2a;box-shadow:0 4px 14px rgba(0,0,0,0.4);}

/* 右下：插件字段卡片 */

/* 文档图标 — 与按钮同高同圆角 */
.h3-plugin-doc-icon{display:inline-flex;align-items:center;justify-content:center;padding:9px 9px;border-radius:10px;background:#ff6600;color:#fff;margin-left:0px;transition:all .2s;text-decoration:none !important;position:absolute;top:14px;right:20px;z-index:2;}
.svg{width:16px;height:16px;}
html.dark .h3-plugin-doc-icon{background:#ff6600;color:#aaa;}

/* ===== AI 写作助手推广卡 ===== */
.ai-pro-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.ai-pro-icon{flex:none;width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#111,#3a3a3a);display:flex;align-items:center;justify-content:center;color:#fff;overflow:hidden;}
.ai-pro-icon svg{width:20px;height:20px;display:block;}
.ai-pro-icon svg[fill]:not([fill="none"]),.ai-pro-icon svg [fill]:not([fill="none"]){fill:currentColor;}
.ai-pro-head h3{margin:0;font-size:15.5px;font-weight:700;color:#111;}
.ai-pro-head p{margin:2px 0 0;font-size:12px;color:#999;}
.ai-pro-feats{list-style:none;margin:0 0 14px;padding:0;}
.ai-pro-feats li{position:relative;padding:5px 0 5px 20px;font-size:13px;color:#555;line-height:1.5;}
.ai-pro-feats li::before{content:"";position:absolute;left:2px;top:11px;width:6px;height:6px;border-radius:50%;background:#111;}
.ai-pro-btn{display:block;text-align:center;padding:10px;border-radius:10px;background:#111;color:#fff !important;font-size:13.5px;font-weight:600;text-decoration:none !important;transition:opacity .2s;}
.ai-pro-btn:hover{opacity:.85;color:#fff !important;}
html.dark .ai-pro-icon{background:linear-gradient(135deg,#2a2a2a,#1a1a1a) !important;border:1px solid #333;}
html.dark .ai-pro-head h3{color:#f0f0f0 !important;}
html.dark .ai-pro-head p{color:#888 !important;}
html.dark .ai-pro-feats li{color:#bbb !important;}
html.dark .ai-pro-feats li::before{background:#888;}
html.dark .ai-pro-btn{background:#333 !important;color:#f0f0f0 !important;border:1px solid #444;}
html.dark .ai-pro-btn:hover{background:#444 !important;opacity:1;}

/* ===== 分类标签 ===== */
.cat-pills{display:flex;flex-wrap:wrap;gap:8px;}
.cat-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:999px;background:#f4f4f4;font-size:13px;color:#333 !important;text-decoration:none !important;transition:background .2s;}
.cat-pill:hover{background:#e8e8e8;color:#111 !important;}
.cat-pill em{font-style:normal;font-size:11px;color:#999;}
html.dark .cat-pill{background:#2a2a2a !important;color:#ddd !important;}
html.dark .cat-pill:hover{background:#383838 !important;color:#fff !important;}
html.dark .cat-pill em{color:#888 !important;}

/* ===== 侧边栏导航卡片 ===== */
.nav-card{padding:18px 20px;}
.nav-card-header{display:flex;align-items:center;gap:8px;margin-bottom:16px;}
.nav-card-header svg{width:20px;height:20px;color:#1a1a1a;stroke-width:2;flex-shrink:0;}
.nav-card-title{font-size:15px;font-weight:700;color:#1a1a1a;}
.nav-card-list{list-style:none;margin:0;padding:0;}
.nav-card-list li + li{margin-top:14px;}
.nav-card-list a{display:flex;align-items:center;gap:10px;font-size:14px;color:#888;text-decoration:none;transition:color .2s;}
.nav-card-list a:hover{color:#1a1a1a;}
.nav-card-list a svg{width:18px;height:18px;color:#bbb;flex-shrink:0;stroke-width:2;transition:color .2s;}
.nav-card-list a:hover svg{color:#999;}
html.dark .nav-card-title{color:#f0f0f0;}
html.dark .nav-card-header svg{color:#f0f0f0;}
html.dark .nav-card-list a{color:#888;}
html.dark .nav-card-list a:hover{color:#f0f0f0;}
html.dark .nav-card-list a svg{color:#666;}
html.dark .nav-card-list a:hover svg{color:#999;}

/* ===== 右上：关于我 - 投稿按钮 ===== */
.h3-about-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap;min-width:0;}
.h3-submit-btn{display:inline-flex;align-items:center;padding:2px 10px;border-radius:6px;background:#ff6600;color:#fff !important;font-size:14px;font-weight:700;text-decoration:none !important;white-space:nowrap;transition:opacity .2s;flex-shrink:0;line-height:1.5;}
.h3-submit-btn:hover{opacity:.8;}
html.dark .h3-submit-btn{background:#ff6600 !important;color:#fff !important;}
html.dark .h3-submit-btn:hover{background:#ff66 !important;color:#fff !important;}

/* ===== Hero3 移动端适配 ===== */
@media (max-width:1024px){
    .hero3-grid{grid-template-columns:1fr;}
    .hero3-wrap{padding:16px 12px 12px;}
    .h3-center{aspect-ratio:16/10;min-height:220px;flex:none;}
    .h3-center-title{font-size:18px;}
    .h3-center-subtitle{font-size:13px;}
    .h3-center-info{padding:16px;}
    .h3-carousel{aspect-ratio:16/9;}
    .h3-card-inner{padding:16px;}
    .h3-latest-card{min-height:auto;}
    .h3-latest-title{max-width:calc(100% - 80px);font-size:16px;}
    .h3-latest-img-wrap{width:72px;height:72px;}
    .h3-qa-item{padding:12px 0;}
    .h3-stat-row{gap:20px;}
    .h3-stat-col + .h3-stat-col::before{left:-10px;}
}
@media (max-width:640px){
    .hero3-wrap{padding:12px 10px 10px;}
    .hero3-grid{gap:12px;}
    .h3-center{aspect-ratio:4/3;min-height:200px;flex:none;}
    .h3-center-title{font-size:16px;}
    .h3-center-subtitle{font-size:12px;}
    
    .h3-carousel{aspect-ratio:16/10;}
    .h3-stat-count{font-size:20px;}
    .h3-card-title{font-size:16px;}
    .h3-latest-title{max-width:100%;}
    .h3-latest-img-wrap{display:none;}
    .h3-latest-arrow{display:none;}
    .h3-qa-avatar,.h3-qa-avatar-placeholder{width:28px;height:28px;}
    .h3-qa-title{font-size:16px;}
    .h3-plugin-card{padding:16px;}
    .h3-plugin-btn{padding:5px 8px;font-size:11px;}
    .h3-submit-btn{padding:2px 8px;font-size:14px;border-radius:5px;}
    .nav-card{padding:14px 16px;}
    .nav-card-list li + li{margin-top:10px;}
}

@media (max-width:1024px){
    
    
    
    
    
    
    /* 暗黑模式 */
    html.dark 
    html.dark 
}
.h3-latest-go{position:absolute;left:18px;bottom:20px;font-size:14px;font-weight:600;color:#999;opacity:0;transform:translate(-4px,4px);transition:all .25s ease;pointer-events:none;line-height:16px;}
.h3-latest-arrow{position:absolute;left:85px;bottom:20px;width:16px;height:16px;color:#999;opacity:0;transform:translate(-4px,4px);transition:all .25s ease;pointer-events:none;}
.h3-latest-card:hover .h3-latest-go{opacity:1;transform:translate(0,0);}
.h3-latest-card:hover .h3-latest-arrow{opacity:1;transform:translate(0,0);}

/* ============================================================
   右下插件卡片 — iPhone 风格渐变（覆盖旧样式，置于文件最末尾）
   ============================================================ */

.h3-plugin-card {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    gap: 10px;

    /* iPhone 白天：白 → 银灰 线性渐变 */
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f7 40%, #e8e8ed 100%);

    /* 玻璃边框 + 顶部高光 + 外阴影 */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    z-index: 1;
}

/* 装饰光球：左上紫 */
.h3-plugin-card::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* 装饰光球：右下蓝粉 */
.h3-plugin-card::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.10) 0%, rgba(255, 55, 95, 0.06) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 内容层置顶 */
.h3-plugin-card > * {
    position: relative;
    z-index: 1;
}

/* 标题 / 描述保持原有间距 */
.h3-plugin-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
    width: 100%;
    box-sizing: border-box;
}
.h3-plugin-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

/* 按钮区域：左对齐，紧凑排列 */
.h3-plugin-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 8px;
    width: 100%;
}

/* 按钮：缩小 padding 确保 280px 卡片内能并排 */
.h3-plugin-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 浅色按钮：毛玻璃 */
.h3-plugin-btn-light {
    background: rgba(255, 255, 255, 0.7);
    color: #333 !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.h3-plugin-btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 深色按钮 */
.h3-plugin-btn-dark {
    background: #1a1a1a;
    color: #fff !important;
    border: 1px solid #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.h3-plugin-btn-dark:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ===== 黑夜模式：iPhone 深色渐变 ===== */
html.dark .h3-plugin-card {
    background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 50%, #0a0a0c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 黑夜光球更明显 */
html.dark .h3-plugin-card::before {
    background: radial-gradient(circle, rgba(88, 86, 214, 0.25) 0%, transparent 65%);
}
html.dark .h3-plugin-card::after {
    background: radial-gradient(circle, rgba(10, 132, 255, 0.18) 0%, rgba(255, 55, 95, 0.10) 50%, transparent 70%);
}

/* 黑夜文字 */
html.dark .h3-plugin-name { color: #f0f0f0; }
html.dark .h3-plugin-desc { color: #aaa; }

/* 黑夜按钮 */
html.dark .h3-plugin-btn-light {
    background: rgba(255, 255, 255, 0.08);
    color: #f0f0f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
html.dark .h3-plugin-btn-light:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark .h3-plugin-btn-dark {
    background: #f0f0f0;
    color: #1a1a1a !important;
    border-color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.10);
}
html.dark .h3-plugin-btn-dark:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

/* ============================================================
   右上关于我卡片 — iPhone 风格渐变（蓝紫色调，与右下区分）
   ============================================================ */

/* 右上第一个卡片（关于我） */
.hero3-right .h3-card:first-child {
    position: relative;
    overflow: hidden;
    border-radius: 20px;

    /* 白天：蓝紫 → 银白 渐变 */
    background: linear-gradient(145deg, #f0f4ff 0%, #f8f9ff 40%, #f0f2f8 100%);

    /* 玻璃边框 + 顶部高光 + 外阴影 */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    z-index: 1;
}

/* 装饰光球：左上蓝 */
.hero3-right .h3-card:first-child::before {
    content: "";
    position: absolute;
    top: -70px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* 装饰光球：右下紫 */
.hero3-right .h3-card:first-child::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.10) 0%, rgba(10, 132, 255, 0.06) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 内容层置顶 */
.hero3-right .h3-card:first-child > * {
    position: relative;
    z-index: 1;
}

/* 投稿按钮在渐变背景上的微调 */
.hero3-right .h3-card:first-child .h3-submit-btn {
    background: #ff6600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}
.hero3-right .h3-card:first-child .h3-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* ===== 黑夜模式：右上关于我卡片深色渐变 ===== */
html.dark .hero3-right .h3-card:first-child {
    background: linear-gradient(145deg, #1a1a2e 0%, #16161e 50%, #0a0a12 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* 黑夜光球 */
html.dark .hero3-right .h3-card:first-child::before {
    background: radial-gradient(circle, rgba(10, 132, 255, 0.22) 0%, transparent 65%);
}
html.dark .hero3-right .h3-card:first-child::after {
    background: radial-gradient(circle, rgba(88, 86, 214, 0.18) 0%, rgba(10, 132, 255, 0.10) 50%, transparent 70%);
}

/* 黑夜投稿按钮 */
html.dark .hero3-right .h3-card:first-child .h3-submit-btn {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
}
html.dark .hero3-right .h3-card:first-child .h3-submit-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}

/* ===== 黑夜模式 ===== */
html.dark .hero3-left > .h3-card:last-child {
    background: #161618;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.dark .hero3-left > .h3-card:last-child::before {
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1.2px);
}

html.dark .hero3-left > .h3-card:last-child .h3-qa-item {
    border-bottom-color: #2a2a2c;
}
html.dark .hero3-left > .h3-card:last-child .h3-qa-item:last-child {
    border-bottom-color: transparent;
}

/* ============================================================
   左下问答卡片 — iPhone 风格纯色背景（明显区别于默认白色）
   ============================================================ */

/* 用 last-of-type 确保只匹配最后一个 h3-card（问答卡片） */
.hero3-left > .h3-card:last-of-type {
    position: relative;
    overflow: hidden;
    border-radius: 20px;

    /* 白天：浅冷灰，明显区别于纯白 #fff */
    background: #eceef3;

    /* 玻璃质感边框 + 多层阴影 */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    z-index: 1;
}

/* 细腻点阵纹理 */
.hero3-left > .h3-card:last-of-type::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(0, 0, 0, .06) 1px, transparent 1.2px);
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 0;
}

/* 右下角装饰光斑 */
.hero3-left > .h3-card:last-of-type::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 内容层置顶 */
.hero3-left > .h3-card:last-of-type > * {
    position: relative;
    z-index: 1;
}

/* 问答项边框适配新背景 */
.hero3-left > .h3-card:last-of-type .h3-qa-item {
    border-bottom-color: #d5d7dc;
}
.hero3-left > .h3-card:last-of-type .h3-qa-item:last-child {
    border-bottom-color: transparent;
}

/* ===== 黑夜模式 ===== */
html.dark .hero3-left > .h3-card:last-of-type {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html.dark .hero3-left > .h3-card:last-of-type::before {
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px);
}

html.dark .hero3-left > .h3-card:last-of-type::after {
    background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, transparent 70%);
}

html.dark .hero3-left > .h3-card:last-of-type .h3-qa-item {
    border-bottom-color: #2c2c2e;
}
html.dark .hero3-left > .h3-card:last-of-type .h3-qa-item:last-child {
    border-bottom-color: transparent;
}

/* ============================================================
   Hero3 右上投稿按钮 · 黑夜模式与白天保持一致（橙底白字）
   本块置于文件最末尾，覆盖上方旧规则
   ============================================================ */
html.dark .hero3-right .h3-card:first-child .h3-submit-btn {
    background: #ff6600 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
html.dark .hero3-right .h3-card:first-child .h3-submit-btn:hover {
    background: #ff6600 !important;
    color: #fff !important;
    opacity: .8;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}