/* =========================================================
   Six Nav · 玫瑰风自媒体博客主题
   配色灵感来自「玫瑰克隆 - 自媒体创作神器」布局
   ========================================================= */

:root {
    --rose-1: #ff6a88;
    --rose-2: #ff99ac;
    --purple-1: #a06cd5;
    --purple-2: #6a5acd;
    --primary: #ff6a88;
    --primary-soft: rgba(255, 106, 136, 0.12);
    --grad: linear-gradient(135deg, #ff6a88 0%, #ff99ac 45%, #a06cd5 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 106, 136, 0.10), rgba(160, 108, 213, 0.10));

    --bg: #fff5f7;
    --bg-2: #fdeef2;
    --card: #ffffff;
    --text: #2d2a32;
    --muted: #8a8593;
    --border: rgba(0, 0, 0, 0.06);
    --shadow: 0 6px 22px rgba(255, 106, 136, 0.10);
    --shadow-hover: 0 12px 34px rgba(255, 106, 136, 0.20);
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1120px;
}

[data-theme="dark"] {
    --bg: #1c1620;
    --bg-2: #241c2a;
    --card: #2a2230;
    --text: #f3eef5;
    --muted: #a89eb2;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 12px 34px rgba(0, 0, 0, 0.45);
    --primary-soft: rgba(255, 106, 136, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background .3s ease, color .3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rose-2); }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------------- 顶部导航 ---------------- */
.sn-header {
    position: relative;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .sn-header { background: rgba(28, 22, 32, 0.82); }

.sn-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 64px;
}

.sn-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sn-logo img { height: 38px; width: auto; border-radius: 10px; }
.sn-logo-text { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.sn-logo-text small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }

.blog-header-nav { margin-left: auto; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list .list-item { position: relative; }
.nav-list .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: all .25s ease;
}
.nav-list .nav-link:hover,
.nav-list .nav-link[aria-current="page"] {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 4px 14px rgba(255, 106, 136, 0.30);
}
.dropdown-menus {
    position: absolute;
    z-index: 60;
    top: 110%;
    left: 0;
    min-width: 140px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 6px;
    list-style: none;
    margin: 0;
    display: none;
}
.list-menu:hover .dropdown-menus { display: block; }
.dropdown-menus .nav-link { width: 100%; border-radius: 8px; }
.dropdown-menus .nav-link:hover { background: var(--primary-soft); color: var(--primary); box-shadow: none; }

.blog-header-toggle {
    display: none;
    margin-left: auto;
    cursor: pointer;
    padding: 8px;
}
.blog-header-toggle svg { width: 26px; height: 26px; }

/* ---------------- Hero 海报区 ---------------- */
.sn-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: transparent;
    color: #fff;
    padding: 20px 16px 24px;
    text-align: center;
}

.sn-hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

/* 轮播图 */
.sn-hero-carousel {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.sn-hero-track { display: flex; transition: transform .5s ease; }
.sn-hero-slide { flex: 0 0 100%; display: block; }
.sn-hero-slide img { width: 100%; height: auto; display: block; }
.sn-hero-dots {
    position: absolute; left: 0; right: 0; bottom: 10px;
    display: flex; justify-content: center; gap: 6px;
    z-index: 3;
}
.sn-hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 4px rgba(0, 0, 0, .35);
    cursor: pointer; transition: all .3s ease;
}
.sn-hero-dot.active { background: #fff; width: 18px; border-radius: 4px; }

/* 首页滚动公告 */
.sn-notice-wrap { padding-bottom: 18px; }
.sn-notice-bar {
    display: flex; align-items: center; height: 42px; overflow: hidden;
    background: var(--card); border: 1px solid var(--border); border-radius: 999px;
    box-shadow: var(--shadow); color: var(--text);
}
.sn-notice-label {
    position: relative; z-index: 2; align-self: stretch; flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px; padding: 0 16px;
    color: var(--text); background: transparent; font-size: 13px;
}
.sn-notice-label .ri { color: #ff8a3d; font-size: 18px; }
.sn-notice-window { flex: 1; min-width: 0; height: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 96%, transparent); }
.sn-notice-track { display: flex; align-items: center; width: max-content; height: 100%; animation: snNoticeScroll var(--sn-notice-duration, 16s) linear infinite; }
.sn-notice-bar:hover .sn-notice-track { animation-play-state: paused; }
.sn-notice-group { display: inline-flex; align-items: center; flex: 0 0 auto; height: 100%; }
.sn-notice-group > a, .sn-notice-group > span {
    display: inline-flex; align-items: center; height: 100%; padding: 0 28px;
    color: var(--sn-notice-color, var(--text)); font-size: 13px; white-space: nowrap;
}
.sn-notice-group > a:hover { color: var(--primary); }
.sn-notice-rainbow .sn-notice-group > a,
.sn-notice-rainbow .sn-notice-group > span {
    color: transparent;
    background-image: linear-gradient(90deg, #ff6a88, #ff9f43, #ffe66d, #43e0c0, #5b9dff, #a06cd5, #ff6a88);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: snNoticeRainbow 4s linear infinite;
}
.sn-notice-group > a::after, .sn-notice-group > span::after { content: "•"; margin-left: 28px; color: #ff8a3d; opacity: .7; }
@keyframes snNoticeScroll { to { transform: translateX(-50%); } }
@keyframes snNoticeRainbow { to { background-position: 300% 0; } }

.sn-search {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.sn-search-wrap { padding-top: 18px; }
.sn-search .ri-search-line { color: var(--muted); font-size: 18px; align-self: center; margin-right: 9px; }
.sn-search button .ri-search-line { color: #fff; margin: 0; }
.sn-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
}
.sn-search button {
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------- 主体布局 ---------------- */
.sn-main { display: flex; gap: 26px; align-items: flex-start; padding: 30px 24px 10px; }
.sn-content { flex: 1; min-width: 0; }
.sn-main.sn-no-sidebar { width: 100%; }
.sn-main.sn-no-sidebar > .sn-content { width: 100%; flex-basis: 100%; }
.sn-sidebar { width: 320px; flex-shrink: 0; }

/* ---------------- 文章卡片网格（与工具卡同款视觉） ---------------- */
.sn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.sn-post {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
}
.sn-post:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.sn-post-glow {
    display: none;
    position: absolute; inset: -8px;
    border-radius: 32px;
    background: var(--grad);
    opacity: 0; filter: blur(16px);
    transition: opacity .35s ease; z-index: -1;
}
.sn-post:hover .sn-post-glow { opacity: .42; }

/* 文章图标区（与工具卡 .tool-icon 同款） */
.sn-post-icon {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--primary);
    z-index: 1;
}
.sn-post-icon-svg { width: 22px; height: 22px; }
.sn-post-title { width: 100%; margin: 0; padding: 0 4px; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-post-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.sn-post-title a { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-post-title a:hover { color: var(--primary); }
.sn-post-date { font-size: 12px; color: var(--muted); margin-top: -6px; }

/* 列表分页 */
.sn-pagination { display: flex; justify-content: center; gap: 8px; margin: 26px 0 10px; flex-wrap: wrap; }
.sn-pagination a, .sn-pagination span {
    min-width: 38px; height: 38px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--card);
    border: 1px solid var(--border); color: var(--text); font-size: 14px;
}
.sn-pagination .active, .sn-pagination a:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------------- 侧边栏 ---------------- */
.widget { background: var(--card); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.widget-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.widget-title::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--grad); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget .unstyle-li li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.widget .unstyle-li li:last-child { border-bottom: none; }
.tag-container a { display: inline-block; margin: 3px 4px 3px 0; }
.bloggerinfo { text-align: center; }
.bloggerinfo-img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; box-shadow: var(--shadow); }
.side-cover-image { background-size: cover; background-position: center; border-radius: 12px; min-height: 70px; display: flex; align-items: flex-end; }
.side-title-container { background: linear-gradient(transparent, rgba(0,0,0,.6)); width: 100%; border-radius: 0 0 12px 12px; padding: 18px 10px 8px; }
.side-title-container a { color: #fff; font-weight: 600; }
.comment-info_img { width: 36px; height: 36px; border-radius: 50%; float: left; margin-right: 8px; }
.comm-lates-name { font-weight: 600; }
.logcom-latest-time { color: var(--muted); font-size: 12px; }

/* ---------------- 文章详情 ---------------- */
.sn-article { background: var(--card); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 22px; }
.sn-article-head { margin-bottom: 14px; }
.sn-article-title { font-size: 26px; font-weight: 800; margin: 6px 0 12px; line-height: 1.4; }
.sn-article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; align-items: center; }
.sn-article-meta a { color: var(--muted); }
.sn-article-cover { margin: 8px 0 18px; border-radius: var(--radius-sm); overflow: hidden; }
.sn-article-cover img { width: 100%; }
.log-topflg { background: var(--grad); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px; margin-right: 6px; }

/* markdown 正文 */
.markdown { font-size: 16px; line-height: 1.9; word-break: break-word; }
.markdown h1, .markdown h2, .markdown h3 { margin: 1.4em 0 .6em; line-height: 1.4; }
.markdown h2 { border-left: 4px solid var(--primary); padding-left: 10px; }
.markdown img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.markdown pre { background: var(--bg-2); padding: 14px; border-radius: 10px; overflow: auto; }
.markdown code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.markdown blockquote { margin: 12px 0; padding: 8px 16px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; color: var(--muted); }
.markdown a { text-decoration: underline; }

/* 上一篇/下一篇 */
.neighbor-log { display: flex; justify-content: space-between; gap: 14px; margin: 18px 0; }
.neighbor-log a { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); }
.neighbor-log .next-log a { text-align: right; }
.neighbor-dir { display: block; color: var(--muted); font-size: 12px; }
.neighbor-title { font-weight: 600; }

/* ---------------- 评论 ---------------- */
.sn-comments { background: var(--card); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.comment-header { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment .avatar img { width: 42px; height: 42px; border-radius: 50%; }
.comment-infos { flex: 1; }
.comment-content { margin: 4px 0; }
.comment-time { color: var(--muted); font-size: 12px; margin-left: 6px; }
.com-reply { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; padding: 0; }
.comment-children { margin-left: 40px; }
.commentform { margin-top: 16px; }
.commentform textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px; font: inherit; resize: vertical; background: var(--bg); color: var(--text); }
.comment-info { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.comment-info input { flex: 1; min-width: 160px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg); color: var(--text); }
.btn { background: var(--grad); color: #fff; border: none; border-radius: 10px; padding: 10px 22px; cursor: pointer; font-size: 15px; font-weight: 600; }
.btn:hover { opacity: .92; }

/* ---------------- 页脚 ---------------- */
.sn-footer { background: var(--card); border-top: 1px solid var(--border); margin-top: auto; padding: 26px 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.sn-footer a { color: var(--muted); }
.sn-footer a:hover { color: var(--primary); }

/* 移动端底部导航 */
.sn-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: none;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
[data-theme="dark"] .sn-bottom-nav { background: rgba(28,22,32,.92); }
.sn-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; padding: 4px 0; }
.sn-bottom-nav a .ri { font-size: 21px; }
.sn-bottom-nav a:hover, .sn-bottom-nav a.active { color: var(--primary); }

/* 侧边工具按钮 */
.sn-toolbar { position: fixed; right: 18px; bottom: 86px; z-index: 55; display: flex; flex-direction: column; gap: 10px; }
.sn-toolbar button {
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--card); color: var(--primary); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sn-toolbar button:hover { background: var(--grad); color: #fff; }

/* ---------------- 登录/注册 弹窗 ---------------- */
.sn-modal-mask, .sn-modal { display: none; }
.sn-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }
.sn-modal {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 360px; max-width: calc(100vw - 32px); z-index: 91;
    background: var(--card); border-radius: var(--radius); padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.sn-modal-head { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.sn-modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.sn-modal-close { position: absolute; top: 12px; right: 14px; font-size: 22px; background: none; border: none; cursor: pointer; color: var(--muted); }
.sn-form-row { margin-bottom: 12px; }
.sn-form-row input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font: inherit; background: var(--bg); color: var(--text); }
.sn-form-row.auth-inline-row { display: flex; gap: 8px; }
.sn-form-row.auth-inline-row input { flex: 1; }
.sn-form-row.auth-inline-row .btn { width: auto; padding: 0 14px; }
.auth-captcha-row { display: flex; gap: 8px; align-items: center; }
.auth-captcha-row input { flex: 1; }
.auth-captcha-row img { height: 42px; border-radius: 8px; cursor: pointer; }
.sn-auth-switch { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; }
.sn-auth-switch a { color: var(--primary); }
.sn-auth-alert { display: none; margin-bottom: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: #ffe9ec; color: #d23b53; }
.sn-auth-alert.show { display: block; }
.sn-auth-alert.success { background: #e7f8ee; color: #1f9d57; }
.sn-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* ---------------- 404 / 加密页 ---------------- */
.sn-center-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
.sn-center-page h1 { font-size: 88px; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sn-pw-box { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); width: 360px; max-width: 100%; }
.sn-pw-box input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-bottom: 12px; font: inherit; background: var(--bg); color: var(--text); }

/* ---------------- 首页 AI 工具卡片网格 ---------------- */
.tools-section { margin: 28px 0 6px; }
.tools-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tools-section-head h2 { margin: 0; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.tools-section-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--grad); }
.tools-section-head .more { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; }
.tools-section-head .more:hover { color: var(--primary); }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.ai-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 24px 14px 18px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
}
.ai-tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.tool-icon {
    position: relative;
    width: 56px; height: 56px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-soft);
    color: var(--primary);
    z-index: 1;
}
.tool-svg-icon { width: 30px; height: 30px; }
.icon-glow {
    position: absolute; inset: -8px;
    border-radius: 24px;
    background: var(--grad);
    opacity: 0; filter: blur(14px);
    transition: opacity .35s ease; z-index: -1;
}
.ai-tool-card:hover .icon-glow { opacity: .5; }
.tool-content h3 { margin: 0; font-size: 15px; font-weight: 700; }

/* 每个工具卡的强调色 */
.ai-tool-card.t-rose   .tool-icon { background: linear-gradient(135deg, #ff6a88, #ff99ac); color: #fff; }
.ai-tool-card.t-purple .tool-icon { background: linear-gradient(135deg, #a06cd5, #6a5acd); color: #fff; }
.ai-tool-card.t-blue   .tool-icon { background: linear-gradient(135deg, #5b9dff, #6a5acd); color: #fff; }
.ai-tool-card.t-mint   .tool-icon { background: linear-gradient(135deg, #43e0c0, #5b9dff); color: #fff; }
.ai-tool-card.t-amber  .tool-icon { background: linear-gradient(135deg, #ffb24d, #ff6a88); color: #fff; }
.ai-tool-card.t-pink   .tool-icon { background: linear-gradient(135deg, #ff7eb3, #a06cd5); color: #fff; }

/* 列表标题 */
.sn-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 16px; }
.sn-list-title { margin: 0; font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sn-list-title::before { content: ""; width: 4px; height: 17px; border-radius: 4px; background: var(--grad); }
.sn-result-count { flex-shrink: 0; color: var(--muted); font-size: 13px; }
.sn-empty-state { padding: 64px 20px; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.sn-empty-state .ri { display: block; margin-bottom: 10px; color: var(--primary); font-size: 42px; }
.sn-empty-state h2 { margin: 0 0 6px; font-size: 19px; }
.sn-empty-state p { margin: 0; color: var(--muted); font-size: 14px; }

/* 分类目录区块 */
.sn-cat-block { margin-top: 30px; }
.sn-cat-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 16px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}
.sn-cat-title {
    margin: 0; font-size: 17px; font-weight: 800;
    display: flex; align-items: center; gap: 8px;
}
.sn-cat-title::before {
    content: ""; width: 4px; height: 16px; border-radius: 4px;
    background: var(--grad, linear-gradient(135deg, #5b9dff, #a06cd5));
}
.sn-cat-title a { color: var(--text); }
.sn-cat-title a:hover { color: var(--primary); }
.sn-cat-count {
    font-size: 12px; font-weight: 700; color: var(--muted, #9aa4b2);
    background: rgba(255,255,255,.06); border-radius: 999px;
    padding: 1px 9px;
}
.sn-cat-more {
    font-size: 13px; color: var(--muted, #9aa4b2); white-space: nowrap;
}
.sn-cat-more:hover { color: var(--primary); }
.sn-cat-empty { color: var(--muted, #9aa4b2); font-size: 14px; padding: 6px 0 4px; }
.sn-category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sn-category-nav a, .sn-subcategories a { border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font-size: 13px; }
.sn-category-nav a { padding: 7px 14px; }
.sn-category-nav a:hover, .sn-subcategories a:hover { border-color: var(--primary); color: var(--primary); }
.sn-cat-description { margin: 4px 0 0 12px; color: var(--muted); font-size: 13px; }
.sn-subcategories { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.sn-subcategories a { padding: 5px 10px; }
.sn-subcategories span { margin-left: 6px; color: var(--muted); font-size: 11px; }
.sn-home-category { margin-top: 34px; scroll-margin-top: 20px; }
.sn-content > .sn-home-category:first-of-type { margin-top: 8px; }
.sn-home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sn-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.sn-category-grid .sn-post {
    min-width: 0;
    padding: 22px 14px 18px;
}
.sn-category-grid .sn-post-icon { width: 48px; height: 48px; }
.sn-category-grid .sn-post-title { font-size: 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .sn-main { flex-direction: column; align-items: stretch; }
    .sn-sidebar { display: none; }
    .sn-grid { grid-template-columns: repeat(4, 1fr); }
    .sn-category-grid, .sn-home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .sn-main { padding: 12px 10px 8px; }
    .sn-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .sn-post { min-width: 0; gap: 7px; padding: 14px 4px 12px; border-radius: 16px; }
    .sn-post-icon { width: 32px; height: 32px; border-radius: 9px; }
    .sn-post-icon-svg { width: 18px; height: 18px; }
    .sn-post-title { font-size: 11px; }
    .sn-post-date { font-size: 11px; margin-top: -4px; }
    .sn-category-grid, .sn-home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .sn-category-grid .sn-post { padding: 16px 8px 14px; border-radius: 16px; }
    .sn-category-grid .sn-post-icon { width: 40px; height: 40px; }
    .sn-category-grid .sn-post-title { font-size: 12px; }
    .sn-cat-head { align-items: flex-start; gap: 10px; }
    .sn-cat-description { margin-left: 0; }
    .sn-category-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
    .sn-category-nav::-webkit-scrollbar { display: none; }
    .sn-category-nav a { flex: 0 0 auto; }
    .sn-notice-wrap { padding:10px; }
    .sn-notice-bar { height: 38px; }
    .sn-notice-label { padding: 0 11px; }
    .sn-notice-label b { display: none; }
    .sn-notice-group > a, .sn-notice-group > span { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .sn-notice-track { animation: none; }
    .sn-notice-rainbow .sn-notice-group > a,
    .sn-notice-rainbow .sn-notice-group > span { animation: none; }
}
@media (max-width: 768px) {
    .blog-header-nav { display: none; }
    .blog-header-nav.show {
        display: block; position: absolute; top: 64px; left: 0; right: 0;
        z-index: 60;
        background: var(--card); border-bottom: 1px solid var(--border); padding: 10px 16px;
        box-shadow: var(--shadow);
    }
    .blog-header-nav.show .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .blog-header-nav.show .nav-link { width: 100%; }
    .blog-header-toggle { display: inline-flex; }
    .sn-bottom-nav { display: flex; }
    .sn-toolbar { bottom: 76px; }
    .sn-hero { padding: 10px 6px 10px; }
    .sn-article, .sn-comments { padding: 18px 16px; }
}
