/* ==========================================================================
   sinsiu2 单文件样式表 —— 前台 / 后台 / 用户中心
   无任何外部依赖，变量化便于改色
   ========================================================================== */

:root {
    /* 主色系 */
    --c-primary: #2563eb;
    --c-primary-dark: #1d4ed8;
    --c-primary-light: #dbeafe;

    /* 中性色 */
    --c-text: #1f2937;
    --c-text-2: #4b5563;
    --c-text-3: #6b7280;
    --c-text-4: #9ca3af;
    --c-border: #e5e7eb;
    --c-border-2: #d1d5db;
    --c-bg: #ffffff;
    --c-bg-soft: #f8fafc;
    --c-bg-mute: #f1f5f9;

    /* 状态色 */
    --c-success: #16a34a;
    --c-success-bg: #dcfce7;
    --c-error: #dc2626;
    --c-error-bg: #fee2e2;
    --c-warning: #d97706;
    --c-warning-bg: #fef3c7;
    --c-info: #0891b2;
    --c-info-bg: #cffafe;
    --c-vip: #b45309;
    --c-vip-bg: #fef3c7;

    /* 尺寸 */
    --w-container: 1120px;
    --w-sidebar: 300px;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .04);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, .10);

    /* 字号与行高 */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --lh-body: 1.9;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: var(--lh-body);
    color: var(--c-text);
    background: var(--c-bg-soft);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--c-primary);
    text-decoration: none;
}

a:hover {
    color: var(--c-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.35;
    font-weight: 600;
    color: var(--c-text);
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.mono {
    font-family: var(--font-mono);
    font-size: 13px;
}

/* 无障碍：跳转链接 */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 999;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* ---------- 通用容器 ---------- */
.container {
    width: 100%;
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    padding: 28px 0 56px;
}

.section {
    margin-bottom: 36px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid var(--c-primary);
    line-height: 1.2;
}

.section-hint {
    color: var(--c-text-3);
    font-size: 14px;
    margin: 8px 0 12px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--c-bg-mute);
    color: var(--c-text);
    font-size: 15px;
    line-height: 1.4;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--c-border);
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--c-primary-dark);
    color: #fff;
}

.btn-ghost {
    background: #fff;
    border-color: var(--c-border-2);
    color: var(--c-text-2);
}

.btn-ghost:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: #fff;
}

.btn-danger {
    background: var(--c-error);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ---------- 徽章 / 状态 ---------- */
.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.7;
    background: var(--c-bg-mute);
    color: var(--c-text-2);
    vertical-align: middle;
}

.badge-vip {
    background: var(--c-vip-bg);
    color: var(--c-vip);
}

.badge-top {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
}

.status {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.status-paid {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.status-pending {
    background: var(--c-warning-bg);
    color: var(--c-warning);
}

.status-closed {
    background: var(--c-bg-mute);
    color: var(--c-text-3);
}

.status-published {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.status-draft {
    background: var(--c-warning-bg);
    color: var(--c-warning);
}

/* ---------- flash 提示 ---------- */
.flash-list {
    margin-bottom: 20px;
}

.flash {
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 14px;
    border: 1px solid transparent;
}

.flash-success {
    background: var(--c-success-bg);
    color: #15803d;
    border-color: #bbf7d0;
}

.flash-error {
    background: var(--c-error-bg);
    color: #b91c1c;
    border-color: #fecaca;
}

.flash-warning {
    background: var(--c-warning-bg);
    color: #b45309;
    border-color: #fde68a;
}

.flash-info {
    background: var(--c-info-bg);
    color: #0e7490;
    border-color: #a5f3fc;
}

/* ---------- 头部 ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.site-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    max-height: 34px;
}

.logo-text {
    font-size: 19px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: .3px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
}

.nav-link {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--c-text-2);
    font-size: 15px;
}

.nav-link:hover {
    background: var(--c-bg-mute);
    color: var(--c-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}

.search-form input {
    border: 0;
    outline: 0;
    padding: 7px 10px;
    width: 160px;
    font-size: 14px;
    background: transparent;
}

.search-form button {
    border: 0;
    background: var(--c-bg-mute);
    padding: 7px 12px;
    font-size: 14px;
    color: var(--c-text-2);
}

.search-form button:hover {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
}

.search-form-lg {
    max-width: 460px;
    margin: 12px 0 6px;
}

.search-form-lg input {
    flex: 1;
    width: auto;
    padding: 11px 14px;
    font-size: 15px;
}

.search-form-lg button {
    padding: 11px 22px;
    background: var(--c-primary);
    color: #fff;
}

.search-form-lg button:hover {
    background: var(--c-primary-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;
    height: 26px;
    border: 0;
    background: transparent;
    padding: 3px 4px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--c-text-2);
    border-radius: 2px;
}

/* ---------- 首页 hero ---------- */
.hero {
    padding: 30px 0 26px;
    margin-bottom: 26px;
    border-bottom: 1px dashed var(--c-border);
}

.hero-title {
    font-size: 30px;
    letter-spacing: .5px;
}

.hero-sub {
    margin-top: 10px;
    color: var(--c-text-3);
    font-size: 15px;
}

/* 置顶卡片 */
.top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.top-card {
    display: block;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: box-shadow .15s ease, transform .15s ease;
}

.top-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.top-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--c-text);
}

.top-card p {
    font-size: 14px;
    color: var(--c-text-3);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-meta {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--c-text-4);
}

/* ---------- 双栏布局 ---------- */
.layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--w-sidebar);
    gap: 26px;
    align-items: start;
}

.main-col {
    min-width: 0;
}

.side-col {
    position: sticky;
    top: 84px;
}

/* 主题选项 show_sidebar=0：文章页单栏（v2.4） */
.layout-sidebar.layout-full {
    grid-template-columns: minmax(0, 1fr);
}

/* ---------- 广告位（v2.4，SPEC-v2.4.md §1.4） ---------- */
.ad-slot {
    margin: 0 auto 18px;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    line-height: 0;
}

.ad-slot > * {
    max-width: 100%;
    height: auto;
}

.ad-slot img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: 0;
}

/* 顶部通栏：与容器同宽，上下留白 */
.ad-slot-header {
    margin: 0 auto 20px;
    max-width: var(--w-container);
    padding: 0 20px;
}

/* 侧栏：300 宽，可堆叠多条 */
.ad-slot-sidebar {
    margin: 0 0 16px;
}

/* 正文上下：与正文同宽 */
.ad-slot-article_top,
.ad-slot-article_bottom {
    margin: 16px auto;
}

.ad-slot-article_bottom {
    margin-bottom: 24px;
}

/* ---------- 文章卡片 ---------- */
.post-list {
    display: grid;
    gap: 14px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.post-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: box-shadow .15s ease;
}

.post-card:hover {
    box-shadow: var(--shadow);
}

.post-cover {
    flex: 0 0 132px;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--c-bg-mute);
}

.post-cover img {
    width: 132px;
    height: 92px;
    object-fit: cover;
}

.post-body {
    min-width: 0;
    flex: 1 1 auto;
}

.post-title {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.post-title a {
    color: var(--c-text);
}

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

.post-excerpt {
    font-size: 14px;
    color: var(--c-text-3);
    line-height: 1.75;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--c-text-4);
}

.post-cat {
    color: var(--c-primary);
    background: var(--c-primary-light);
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 12px;
}

/* 网格模式下卡片改为纵向 */
.card-grid .post-card {
    flex-direction: column;
}

.card-grid .post-cover,
.card-grid .post-cover img {
    flex: none;
    width: 100%;
    height: 150px;
}

/* ---------- 侧栏 ---------- */
.side-box {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.side-title {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--c-border);
}

.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px dashed var(--c-border);
}

.hot-list li:last-child {
    border-bottom: 0;
}

.hot-list li a {
    flex: 1;
    color: var(--c-text-2);
}

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

.hot-views {
    color: var(--c-text-4);
    font-size: 12px;
    flex: 0 0 auto;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--c-bg-mute);
    border-radius: 999px;
    font-size: 13px;
    color: var(--c-text-2);
}

.tag:hover {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
}

.tag span {
    color: var(--c-text-4);
    font-size: 11px;
}

.side-cat-list li {
    padding: 6px 0;
    font-size: 14px;
}

.side-cat-list li a {
    color: var(--c-text-2);
}

.side-cat-list li a:hover {
    color: var(--c-primary);
}

.empty-text {
    color: var(--c-text-4);
    font-size: 14px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-text-4);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--c-text-3);
}

.breadcrumb a:hover {
    color: var(--c-primary);
}

.breadcrumb .sep {
    color: var(--c-text-4);
}

/* ---------- 页面标题区 ---------- */
.page-head {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
}

.page-title {
    font-size: 24px;
}

.page-desc {
    margin-top: 8px;
    color: var(--c-text-3);
    font-size: 14px;
}

.page-count {
    margin-top: 6px;
    font-size: 13px;
    color: var(--c-text-4);
}

/* ---------- 文章详情 ---------- */
.article {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 30px 32px 26px;
}

.article-title {
    font-size: 27px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--c-text-4);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
}

.article-cover {
    margin: 22px 0 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-content {
    font-size: 16px;
    line-height: var(--lh-body);
    color: #374151;
    padding-top: 20px;
    word-break: break-word;
}

.article-content h2 {
    font-size: 21px;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
    scroll-margin-top: 80px;
}

.article-content h3 {
    font-size: 18px;
    margin: 26px 0 12px;
    scroll-margin-top: 80px;
}

.article-content p {
    margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
    list-style: revert;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 12px 18px;
    background: var(--c-bg-mute);
    border-left: 3px solid var(--c-primary);
    color: var(--c-text-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content pre {
    margin: 20px 0;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    overflow: auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.7;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: .92em;
    background: var(--c-bg-mute);
    padding: 1px 5px;
    border-radius: 4px;
    color: #b91c1c;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.article-content img {
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.article-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-content th,
.article-content td {
    border: 1px solid var(--c-border);
    padding: 9px 12px;
    text-align: left;
}

.article-content th {
    background: var(--c-bg-mute);
}

.article-content hr {
    border: 0;
    border-top: 1px solid var(--c-border);
    margin: 26px 0;
}

.article-summary {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--c-bg-mute);
    border-radius: var(--radius-sm);
    color: var(--c-text-2);
    font-size: 15px;
    line-height: 1.8;
}

/* VIP 遮罩 */
.vip-gate {
    margin-top: 16px;
    padding: 30px 24px;
    text-align: center;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
    border: 1px dashed #fcd34d;
    border-radius: var(--radius);
}

.vip-gate-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--c-vip);
}

.vip-gate-desc {
    margin: 8px 0 16px;
    color: var(--c-text-3);
    font-size: 14px;
}

.vip-gate-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
}

.article-actions {
    margin-top: 16px;
}

.inline-form {
    display: inline;
}

.article-toc {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 16px;
}

.toc-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-toc ol {
    list-style: none;
    padding: 0;
    font-size: 14px;
}

.article-toc li {
    padding: 4px 0;
}

.article-toc .toc-level-3 {
    padding-left: 16px;
    font-size: 13px;
}

.article-toc a {
    color: var(--c-text-2);
}

.article-toc a:hover {
    color: var(--c-primary);
}

/* 上一篇/下一篇 */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.post-nav a,
.post-nav .post-nav-empty {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    min-height: 70px;
}

.post-nav a:hover {
    border-color: var(--c-primary);
}

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

.post-nav-label {
    display: block;
    font-size: 12px;
    color: var(--c-text-4);
    margin-bottom: 4px;
}

.post-nav-title {
    display: block;
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.6;
}

.post-nav-empty {
    color: var(--c-text-4);
    font-size: 13px;
}

.related-section {
    margin-top: 26px;
}

/* ---------- 归档 ---------- */
.archive-years {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.archive-year {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

.archive-year:hover {
    border-color: var(--c-primary);
}

.archive-year .year {
    font-size: 20px;
    font-weight: 600;
    color: var(--c-text);
}

.archive-year .count {
    font-size: 13px;
    color: var(--c-text-4);
}

.archive-back {
    margin-bottom: 14px;
    font-size: 14px;
}

.archive-list {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 8px 20px;
}

.archive-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--c-border);
    font-size: 15px;
}

.archive-list li:last-child {
    border-bottom: 0;
}

.archive-list time {
    flex: 0 0 56px;
    color: var(--c-text-4);
    font-size: 13px;
    font-family: var(--font-mono);
}

.archive-list a {
    color: var(--c-text);
    flex: 1;
}

.archive-list a:hover {
    color: var(--c-primary);
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 26px 0 8px;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--c-text-2);
}

a.page-item:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.page-item.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.page-item.disabled {
    color: var(--c-text-4);
    background: var(--c-bg-mute);
}

.page-dots {
    color: var(--c-text-4);
    padding: 0 4px;
}

.pagination-info {
    font-size: 13px;
    color: var(--c-text-4);
}

/* ---------- 空状态 ---------- */
.empty-state {
    background: #fff;
    border: 1px dashed var(--c-border-2);
    border-radius: var(--radius);
    padding: 44px 24px;
    text-align: center;
}

.empty-state-lg {
    padding: 70px 24px;
}

.empty-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--c-text-2);
}

.empty-desc {
    margin-top: 8px;
    color: var(--c-text-4);
    font-size: 14px;
}

.empty-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.error-code {
    font-size: 56px;
    font-weight: 700;
    color: var(--c-primary-light);
    line-height: 1;
    margin-bottom: 8px;
}

/* ---------- 表格 ---------- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 14px;
}

.table th,
.table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

.table th {
    background: var(--c-bg-mute);
    font-weight: 600;
    font-size: 13px;
    color: var(--c-text-2);
    white-space: nowrap;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #fafbfd;
}

.table-wrap {
    overflow-x: auto;
}

/* ---------- 表单 ---------- */
.form .field,
.field {
    display: block;
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-2);
    margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field input[type="search"],
.field input[type="datetime-local"],
.field select,
.field textarea,
.input,
.select,
.textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.field input:disabled {
    background: var(--c-bg-mute);
    color: var(--c-text-4);
}

.field textarea,
.textarea {
    min-height: 120px;
    resize: vertical;
}

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--c-text-4);
}

.field-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--c-text-2);
    margin-bottom: 16px;
}

.field-grow {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.form-inline {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 520px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

fieldset {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 0 0 16px;
}

legend {
    padding: 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-2);
}

/* ---------- 认证页 ---------- */
.uc-auth-wrap {
    max-width: 420px;
    margin: 40px auto 60px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow);
}

.auth-title {
    font-size: 21px;
    margin-bottom: 6px;
}

.auth-sub {
    color: var(--c-text-4);
    font-size: 14px;
    margin-bottom: 20px;
}

.auth-foot {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--c-text-3);
}

/* ---------- 用户中心 ---------- */
.uc-body {
    background: var(--c-bg-mute);
}

.uc-topbar {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}

.uc-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.uc-topbar-right {
    display: flex;
    gap: 8px;
}

.uc-vipbar {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}

.uc-vipbar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--c-text-2);
}

.uc-vip-name {
    font-weight: 600;
    color: var(--c-text);
}

.uc-vip-text {
    color: var(--c-text-3);
}

.uc-progress {
    flex: 1 1 160px;
    max-width: 260px;
    height: 6px;
    background: var(--c-border);
    border-radius: 999px;
    overflow: hidden;
}

.uc-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    border-radius: 999px;
}

.uc-main {
    padding: 24px 0 50px;
}

.uc-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.uc-menu {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.uc-menu-item {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--c-text-2);
    border-bottom: 1px solid var(--c-border);
}

.uc-menu-item:last-child {
    border-bottom: 0;
}

.uc-menu-item:hover {
    background: var(--c-bg-soft);
    color: var(--c-primary);
}

.uc-menu-item.active {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--c-primary);
}

.uc-content {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 24px;
}

.uc-title {
    font-size: 19px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
}

.uc-footer {
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: var(--c-text-4);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.stat-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--c-bg-soft);
}

.stat-label {
    font-size: 13px;
    color: var(--c-text-4);
}

.stat-value {
    font-size: 21px;
    font-weight: 700;
    margin: 4px 0 2px;
}

.stat-sub {
    font-size: 13px;
    color: var(--c-text-3);
}

.stat-card .uc-progress {
    margin-top: 10px;
    max-width: 100%;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 18px;
}

.panel-title {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.vip-status-card {
    border: 1px solid #fcd34d;
    background: linear-gradient(180deg, #fffbeb, #fff);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 24px;
}

.vip-status-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-vip);
}

.vip-status-text {
    margin-top: 6px;
    font-size: 14px;
    color: var(--c-text-3);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.plan-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.plan-card:hover {
    border-color: var(--c-primary);
    box-shadow: var(--shadow);
}

.plan-name {
    font-size: 15px;
    color: var(--c-text-2);
}

.plan-price {
    font-size: 27px;
    font-weight: 700;
    color: var(--c-primary);
    margin: 6px 0 2px;
}

.plan-price .unit {
    font-size: 15px;
    font-weight: 500;
}

.plan-days {
    font-size: 13px;
    color: var(--c-text-4);
    margin-bottom: 14px;
}

.plan-card .field {
    text-align: left;
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.fav-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fav-title {
    font-size: 15px;
    line-height: 1.6;
}

.fav-title a {
    color: var(--c-text);
}

.fav-title a:hover {
    color: var(--c-primary);
}

.fav-excerpt {
    font-size: 13px;
    color: var(--c-text-4);
    line-height: 1.7;
    flex: 1;
}

.fav-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fav-meta {
    font-size: 12px;
    color: var(--c-text-4);
}

/* ==========================================================================
   后台
   ========================================================================== */

.admin-body {
    background: var(--c-bg-mute);
    font-size: 15px;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-side {
    flex: 0 0 220px;
    background: #0f172a;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-logo {
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: block;
}

.admin-logo span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 2px;
}

.admin-menu {
    flex: 1 1 auto;
    padding: 10px 0;
    overflow-y: auto;
}

.admin-menu-group {
    padding: 14px 20px 6px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #64748b;
}

.admin-menu a {
    display: block;
    padding: 10px 20px;
    color: #cbd5e1;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.admin-menu a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.admin-menu a.active {
    background: rgba(37, 99, 235, .18);
    border-left-color: var(--c-primary);
    color: #fff;
}

/* v2.4：顶栏右上角的「查看前台 / 我的资料 / 退出登录」（原侧栏底部两项已移到这里） */
.admin-top-actions .inline-form {
    margin: 0;
}

.admin-top-user {
    font-weight: 600;
    color: var(--c-text);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.admin-top-user:hover {
    color: var(--c-primary);
    text-decoration: none;
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-top {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 0 24px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-top h1 {
    font-size: 17px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--c-text-3);
    flex-shrink: 0;
}

/* 窄屏：顶栏动作区不换行溢出，昵称让位、标题缩短 */
@media (max-width: 720px) {
    .admin-top {
        padding: 8px 14px;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .admin-top h1 {
        font-size: 15px;
        flex: 1 1 100%;
    }

    .admin-top-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-top-user {
        max-width: 96px;
    }

    .admin-top-actions .btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.admin-content {
    padding: 22px 24px 60px;
    flex: 1 1 auto;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
}

.admin-card-title {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-toolbar .field,
.admin-toolbar .input,
.admin-toolbar .select {
    margin-bottom: 0;
}

.admin-toolbar .input,
.admin-toolbar .select {
    width: auto;
    min-width: 150px;
}

.admin-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.admin-col-side .admin-card:last-child {
    margin-bottom: 0;
}

/* 仪表盘统计 */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dash-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
}

.dash-label {
    font-size: 13px;
    color: var(--c-text-4);
}

.dash-value {
    font-size: 26px;
    font-weight: 700;
    margin-top: 4px;
    color: var(--c-text);
}

.dash-value small {
    font-size: 13px;
    font-weight: 400;
    color: var(--c-text-4);
    margin-left: 4px;
}

/* 纯 CSS 柱状趋势图 */
.chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 160px;
    padding: 10px 4px 0;
    border-bottom: 1px solid var(--c-border);
}

.chart-bar {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    gap: 6px;
}

.chart-bar i {
    display: block;
    width: 100%;
    max-width: 42px;
    background: var(--c-primary);
    border-radius: 4px 4px 0 0;
    min-height: 3px;
    transition: background .15s ease;
}

.chart-bar:hover i {
    background: var(--c-primary-dark);
}

.chart-labels {
    display: flex;
    gap: 14px;
    padding-top: 8px;
}

.chart-labels span {
    flex: 1 1 0;
    text-align: center;
    font-size: 12px;
    color: var(--c-text-4);
}

/* 编辑器 */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border-2);
    border-bottom: 0;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.editor-toolbar button {
    padding: 4px 10px;
    border: 1px solid var(--c-border-2);
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    color: var(--c-text-2);
}

.editor-toolbar button:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.editor-area {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.75;
    min-height: 420px;
}

.seo-panel {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 16px;
}

.seo-panel summary {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-2);
    background: var(--c-bg-soft);
    border-radius: var(--radius);
    list-style: none;
}

.seo-panel summary::-webkit-details-marker {
    display: none;
}

.seo-panel summary::before {
    content: "▸ ";
    color: var(--c-text-4);
}

.seo-panel[open] summary::before {
    content: "▾ ";
}

.seo-panel .seo-body {
    padding: 16px;
    border-top: 1px solid var(--c-border);
}

.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag-chip {
    font-size: 12px;
    padding: 2px 9px;
    background: var(--c-bg-mute);
    border-radius: 999px;
    color: var(--c-text-2);
}

.upload-preview {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.mono-cell {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .4px;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.actions-cell form {
    display: inline;
}

.help-text {
    font-size: 13px;
    color: var(--c-text-4);
    line-height: 1.8;
}

.rule-box {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.75;
    overflow-x: auto;
    white-space: pre;
    margin-top: 8px;
}

/* ---------- 登录页（后台） ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    padding: 34px 30px;
    box-shadow: var(--shadow-lg);
}

.login-title {
    font-size: 20px;
    margin-bottom: 4px;
}

.login-sub {
    font-size: 13px;
    color: var(--c-text-4);
    margin-bottom: 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
    .layout-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-col {
        position: static;
    }

    .admin-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .uc-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .uc-menu {
        display: flex;
        overflow-x: auto;
    }

    .uc-menu-item {
        border-bottom: 0;
        border-right: 1px solid var(--c-border);
        white-space: nowrap;
    }

    .panel-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .admin-side {
        position: static;
        flex: 1 1 auto;
        height: auto;
    }

    .admin-shell {
        flex-direction: column;
    }

    .admin-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 8px;
    }

    .admin-menu-group {
        display: none;
    }

    .admin-menu a {
        border-left: 0;
        border-radius: 6px;
        padding: 8px 12px;
    }
}

@media (max-width: 780px) {
    .header-inner {
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .site-nav {
        order: 4;
        flex: 1 1 100%;
        flex-direction: column;
        align-items: stretch;
        display: none;
        border-top: 1px solid var(--c-border);
        padding-top: 8px;
    }

    .site-nav.open {
        display: flex;
    }

    .header-actions {
        order: 3;
        flex-wrap: wrap;
    }

    .search-form input {
        width: 120px;
    }

    .hero-title {
        font-size: 24px;
    }

    .article {
        padding: 22px 18px;
    }

    .article-title {
        font-size: 22px;
    }

    .post-card {
        flex-direction: column;
    }

    .post-cover,
    .post-cover img {
        flex: none;
        width: 100%;
        height: 160px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .uc-content {
        padding: 18px 16px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 14px;
    }

    .table th,
    .table td {
        padding: 9px 10px;
    }
}

/* ===== 用户中心头像（随机默认头像库）===== */
.uc-avatar {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: -8px;
    margin-right: 6px;
    border: 1px solid rgba(37, 99, 235, .25);
    background: #fff;
}

/* ===== API / 导入页辅助样式 ===== */
.form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form-row .field { flex: 1 1 160px; min-width: 140px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.text-success { color: #16a34a; font-weight: 600; }
.text-error { color: #dc2626; font-weight: 600; }
.mono-input {
    width: 100%;
    font-family: Consolas, Monaco, monospace;
    letter-spacing: .5px;
    color: #0f172a;
    background: #f8fafc;
}

/* ===== v2.2：default 主题首页分类板块（SPEC §5.3） ===== */
.cat-block-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cat-block-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 4px;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.cat-block-list li:last-child { border-bottom: 0; }
.cat-block-list li a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #334155;
}
.cat-block-list li.first a { font-weight: 700; color: #1d4ed8; }
.cat-block-list li time {
    flex-shrink: 0;
    font-size: 12px;
    color: #94a3b8;
}

/* ===== v2.2：后台外观主题页 ===== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 16px;
}
.theme-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.theme-card.active { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.theme-shot {
    flex: 0 0 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-shot img { width: 100%; height: 100%; object-fit: cover; }
.theme-shot-placeholder { font-size: 34px; font-weight: 700; color: #94a3b8; }
.theme-info { flex: 1; min-width: 0; }
.theme-name { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.theme-meta { margin: 0 0 6px; font-size: 12px; color: #64748b; }
.theme-desc { margin: 0 0 10px; font-size: 13px; color: #475569; }
.plugin-desc { max-width: 320px; font-size: 13px; color: #475569; }

/* ==========================================================================
   v2.4 新增：主题选项表单 / 广告位生成器
   ========================================================================== */
.theme-opts {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--c-border);
}

.theme-opts-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-2);
    margin-bottom: 8px;
}

.theme-opt {
    margin-bottom: 10px;
}

.theme-opt .field-label {
    display: block;
    font-size: 12px;
    color: var(--c-text-3);
    margin-bottom: 4px;
}

.theme-opt input[type="text"],
.theme-opt input[type="number"],
.theme-opt select,
.theme-opt textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: var(--c-text);
}

.theme-opt input[type="color"] {
    width: 56px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius-sm);
    background: #fff;
}

.theme-opts-disabled {
    opacity: .55;
}

.theme-opts-disabled input,
.theme-opts-disabled select,
.theme-opts-disabled textarea {
    cursor: not-allowed;
    background: var(--c-bg-mute);
}

/* 广告位快捷生成器 */
.ad-builder {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed var(--c-border-2);
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
}

.ad-builder-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-2);
    margin-bottom: 8px;
}

.ad-builder-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.ad-builder-fields .input {
    font-size: 13px;
}

.code-textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.6;
}

/* ==========================================================================
   v2.5 新增：服务四格 / footer 二维码（default 主题）
   ========================================================================== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.service-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.service-card:hover {
    color: inherit;
    text-decoration: none;
    border-color: #2563eb;
    box-shadow: 0 2px 10px rgba(37, 99, 235, .10);
}
.service-icon {
    flex: 0 0 auto;
    /* v2.6.1：圆形底 + 主题主色（同 game.ab3386.cn 服务单元版式） */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    background: var(--kj-primary, var(--primary, #2563eb));
    border-radius: 50%;
    overflow: hidden;
}
.service-icon svg { width: 22px; height: 22px; display: block; }
.service-icon img { width: 22px; height: 22px; object-fit: contain; }
.service-body { display: flex; flex-direction: column; min-width: 0; }
.service-title { font-size: 14px; font-weight: 700; color: #1f2937; }
.service-desc { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .service-cards { grid-template-columns: 1fr; } }

.footer-qrcode {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-qrcode img {
    width: 96px;
    height: 96px;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
}
.footer-qrcode span { font-size: 12px; color: #9ca3af; }

/* ==========================================================================
   v2.6 新增：系统设置顶部标签导航
   ========================================================================== */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}
.admin-tab {
    padding: 7px 16px;
    font-size: 14px;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.admin-tab:hover { color: #2563eb; border-color: #93c5fd; text-decoration: none; }
.admin-tab.active {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
    font-weight: 600;
}

/* ---------- v2.6：footer 友情链接 ---------- */
.footer-friends {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
}
.footer-friends-label { color: #9ca3af; }
.footer-friends a { color: #d1d5db; margin-right: 12px; }
.footer-friends a:hover { color: #fff; }

/* ==========================================================================
   v2.6.1 后台极简风格（对齐 emlog 后台视觉语言）
   ------------------------------------------------------------
   - 浅色侧栏（白底 + 细分隔线 + 浅蓝选中态），替代原深色侧栏
   - 内容区 #f6f7f9、卡片 1px 细边无阴影、圆角 3px
   - 字号整体收敛到 13.5px（emlog 密度）
   ========================================================================== */
.admin-body {
    background: #f6f7f9;
    font-size: 13.5px;
}

.admin-side {
    flex: 0 0 208px;
    background: #fff;
    color: #4b5563;
    border-right: 1px solid #e8eaed;
}

.admin-logo {
    padding: 16px 18px;
    font-size: 16px;
    color: #1f2937;
    border-bottom: 1px solid #eef0f3;
}

.admin-logo span {
    color: #9aa4b2;
    font-size: 11px;
    letter-spacing: .5px;
}

.admin-menu {
    padding: 6px 0 18px;
}

.admin-menu-group {
    padding: 15px 18px 6px;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: none;
    color: #9aa4b2;
    font-weight: 600;
}

.admin-menu a {
    padding: 9px 18px;
    font-size: 13.5px;
    color: #4b5563;
    border-left: 3px solid transparent;
}

.admin-menu a:hover {
    background: #f5f7fa;
    color: var(--c-primary);
}

.admin-menu a.active {
    background: #eef4ff;
    color: var(--c-primary);
    border-left-color: var(--c-primary);
    font-weight: 600;
}

.admin-top {
    min-height: 50px;
    padding: 0 20px;
    border-bottom: 1px solid #e8eaed;
}

.admin-top h1 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.admin-content {
    padding: 16px 20px 56px;
}

.admin-card {
    border: 1px solid #e8eaed;
    border-radius: 3px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: none;
}

.admin-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #eef0f3;
}

.admin-table {
    font-size: 13px;
}

.admin-table th {
    background: #fafbfc;
    color: #6b7280;
    font-weight: 600;
    font-size: 12.5px;
}

.admin-table th,
.admin-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #f0f2f5;
}

/* 表单密度收敛 */
.admin-body .field-label {
    font-size: 13px;
    color: #4b5563;
}

.admin-body .input,
.admin-body .select,
.admin-body .textarea,
.admin-body input[type="text"],
.admin-body input[type="password"],
.admin-body input[type="number"],
.admin-body input[type="search"],
.admin-body input[type="email"] {
    padding: 7px 10px;
    font-size: 13.5px;
    border-radius: 3px;
}

.admin-body .btn {
    border-radius: 3px;
    font-size: 13.5px;
}

.admin-body .btn-sm {
    padding: 5px 12px;
    font-size: 12.5px;
}

/* 设置顶部标签更紧凑 */
.admin-tabs {
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-tab {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 3px;
    border-color: #e8eaed;
    color: #4b5563;
}

.admin-tab.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

/* ==========================================================================
   v2.6.4 主题卡片纵向版式：缩略图在上 / 信息居中 / 底部左设置·启用 + 右删除
   ========================================================================== */
.theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.theme-card {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
}
.theme-shot {
    flex: none;
    width: 100%;
    height: 0;
    padding-bottom: 58%;          /* 约 16:9.3 宽幅预览 */
    border-radius: 0;
    position: relative;
    background: #eef2f7;
}
.theme-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.theme-shot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.theme-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px 6px;
}
.theme-name {
    margin: 0 0 4px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-meta { margin: 0 0 6px; font-size: 12px; color: #64748b; }
.theme-meta code {
    font-size: 11.5px;
    padding: 1px 5px;
    background: #f3f4f6;
    border-radius: 3px;
}
.theme-desc {
    margin: 0 0 8px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #4b5563;
}
.theme-instr {
    border-top: 1px dashed #e8eaed;
    padding-top: 8px;
    margin-bottom: 4px;
}
.theme-instr-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 1px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
}
.theme-instr p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #6b7280;
}
.theme-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #eef0f3;
    background: #fbfcfd;
}
.theme-foot-left,
.theme-foot-right { display: flex; align-items: center; gap: 6px; }
.theme-foot .inline-form { margin: 0; }

/* =========================================================
 * v2.6.7 仪表盘三图并排 + 后台密度再收敛（更紧凑清爽）
 * ========================================================= */
.dash-charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}
.dash-charts .admin-card { margin-bottom: 0; }
.dash-charts .chart { height: 118px; gap: 4px; }
.dash-charts .chart-bar i { max-width: 26px; border-radius: 2px 2px 0 0; }
.dash-charts .chart-labels { gap: 4px; padding-top: 6px; }
.dash-charts .chart-labels span { font-size: 10px; line-height: 1.4; }
@media (max-width: 1100px) {
    .dash-charts { grid-template-columns: 1fr; }
    .dash-charts .chart { height: 140px; }
}

/* 卡片与行高更紧凑 */
.admin-content { padding: 12px 16px 48px; }
.admin-card { padding: 13px 15px; margin-bottom: 12px; }
.admin-card-title { font-size: 13.5px; margin-bottom: 10px; padding-bottom: 8px; }
.admin-body { line-height: 1.5; }
.admin-body .table { font-size: 12.8px; line-height: 1.45; }
.admin-body .table th,
.admin-body .table td { padding: 7px 9px; }
.admin-body .field { margin-bottom: 9px; }
.admin-body .field-label { font-size: 12.5px; margin-bottom: 4px; }
.admin-body .input,
.admin-body .select,
.admin-body .textarea,
.admin-body input[type="text"],
.admin-body input[type="password"],
.admin-body input[type="number"],
.admin-body input[type="search"],
.admin-body input[type="email"] { padding: 5px 9px; font-size: 13px; }
.admin-body .textarea { line-height: 1.55; }
.admin-body .help-text { font-size: 12px; margin: 5px 0 8px; line-height: 1.5; }
.admin-body .btn { padding: 5px 12px; font-size: 12.5px; }
.admin-body .btn-sm { padding: 3px 9px; font-size: 12px; }
.admin-body .form-row { margin-top: 10px; }
.admin-toolbar { gap: 8px; margin-bottom: 12px; }
.admin-tabs { margin-bottom: 12px; }
.dash-grid { gap: 10px; margin-bottom: 14px; }
.dash-card { padding: 11px 14px; }
.dash-label { font-size: 12px; }
.dash-value { font-size: 22px; margin-top: 2px; }
.admin-body .theme-opt { margin-bottom: 10px; }

/* 设置页三列并排文本域（v2.6.7） */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.form-grid-3 .field { margin-bottom: 0; }
.form-grid-3 .textarea { min-height: 118px; width: 100%; }
@media (max-width: 1200px) {
    .form-grid-3 { grid-template-columns: 1fr; }
    .form-grid-3 .textarea { min-height: 0; }
}

/* =========================================================
 * v2.6.10 文章列表：行更窄 / 分类紧贴标题 / 操作按钮一行
 * ========================================================= */
/* v2.6.12：行高与仪表盘「最近文章」一致（39.8px）
 * 根因 1：标题 + 置顶/VIP 徽标 + 分类在同一单元格内被挤成两行；
 * 根因 2：发布时间列被压到 "2026-11-16" / "14:29" 两行。
 * 两者叠加把行高从 39.8 撑到 55.9。改为单行弹性布局 + 关键列不换行。 */
.table-articles td { vertical-align: middle; }
/* 固定表格布局：列宽由表头决定，标题列吃掉剩余宽度，避免表格溢出出现横向滚动条 */
.table-articles { table-layout: fixed; }
.table-articles th,
.table-articles td { overflow: hidden; }
.table-articles .cell-nowrap { white-space: nowrap; }
.table-articles .title-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.table-articles .title-cell > .title-link {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table-articles .title-cell > .badge,
.table-articles .title-cell > .cat-inline {
    flex: 0 0 auto;
    margin-left: 0;
}
.table-articles .cat-inline {
    color: #8593a8;
    font-size: 11.5px;
    white-space: nowrap;
}
.table-articles .badge { line-height: 1.5; }
.table-articles .actions-cell { flex-wrap: nowrap; }
/* 3px 上下内边距：按钮 24.1px ≈ 仪表盘按钮 24.8px，行高 39.1px ≈ 仪表盘 39.8px */
.table-articles .actions-cell .btn-sm { padding: 3px 8px; font-size: 11.5px; line-height: 1.4; }
.table-articles .status { white-space: nowrap; display: inline-block; }

/* =========================================================
 * v2.6.13 前台小组件（默认主题右侧栏）+ 后台字色微调
 * ========================================================= */
/* 后台文章管理：标题字色与仪表盘「最近文章」一致（普通文字色，hover 才显主题色） */
.table-articles .title-cell > .title-link { color: var(--c-text); }
.table-articles .title-cell > .title-link:hover { color: var(--c-primary); }

/* 搜索小组件 */
.widget-search-form { display: flex; gap: 6px; }
.widget-search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--c-text);
    background: #fff;
}
.widget-search-form input[type="search"]:focus { outline: none; border-color: var(--c-primary); }

/* 最新 / 最热资源小组件（与 .hot-list 同密度） */
.side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sideitem;
}
.side-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--c-border);
    font-size: 13px;
    counter-increment: sideitem;
}
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list li::before {
    content: counter(sideitem);
    flex: 0 0 auto;
    width: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--c-text-4);
    background: var(--c-bg-mute);
    border-radius: 4px;
    line-height: 1.6;
}
.side-list li a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--c-text-2);
}
.side-list li a:hover { color: var(--c-primary); }
.side-list .side-views,
.side-list .side-date {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--c-text-4);
    white-space: nowrap;
}

/* 链接小组件 */
.side-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
}
.side-links a { color: var(--c-text-2); }
.side-links a:hover { color: var(--c-primary); }

/* 日历小组件 */
.widget-calendar .cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}
.cal-nav a {
    color: var(--c-text-3);
    text-decoration: none;
    padding: 1px 9px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}
.cal-nav a:hover { color: var(--c-primary); border-color: var(--c-primary); }
.cal-month { font-weight: 600; color: var(--c-text); }
.cal-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
    table-layout: fixed;
}
.cal-grid th {
    font-weight: 500;
    color: var(--c-text-3);
    padding: 4px 0;
    border-bottom: 1px solid var(--c-border);
}
.cal-grid th.cal-sun,
.cal-grid td:nth-child(7) { color: var(--c-error); }
.cal-grid td { padding: 4px 0; color: var(--c-text-2); }
.cal-grid td.cal-dim { color: var(--c-border-2); }
.cal-grid td.cal-has { font-weight: 700; }
.cal-grid td.cal-has a { color: var(--c-primary); }
.cal-grid td.cal-today {
    background: var(--c-primary-light);
    border-radius: 4px;
    color: var(--c-primary-dark);
    font-weight: 700;
}

/* =========================================================
 * v2.6.14 编辑器加大 / 正文自动分段缩进 / 正文左右留白
 * ========================================================= */
/* 后台文章编辑：正文编辑区参考 emlog 加大到 600px，可手动拖高 */
.admin-body .editor-area {
    min-height: 600px;
    resize: vertical;
}

/* 前台正文：段落首行缩进 2 字符（含自动分段生成的 <p>）；
   仅图片的段落不缩进，避免配图文章图片被顶出 */
.article-content > p {
    text-indent: 2em;
}
.article-content > p:has(> img) {
    text-indent: 0;
}

/* 前台正文卡片与左右边缘的留白略微加大（32px → 40px） */
.article {
    padding: 30px 40px 26px;
}

/* =========================================================
 * v2.6.16 分类内联排序 + 前台文章标题居中
 * ========================================================= */
/* 后台分类列表：内联排序输入框（窄一些、居中） */
.admin-body .sort-input {
    width: 68px;
    text-align: center;
    padding: 3px 6px;
    font-size: 12.5px;
}

/* 前台文章页大标题居中（default 主题） */
.article-title {
    text-align: center;
}

/* ===== v2.7.0：后台二级菜单 ===== */
.admin-menu-item.has-children .admin-menu-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-menu-item.has-children .menu-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #9aa4b2;
    transition: transform .15s ease;
    flex: 0 0 auto;
}
.admin-menu-item.has-children.open .menu-arrow {
    transform: rotate(180deg);
}
.admin-menu-sub {
    display: none;
}
.admin-menu-item.has-children.open .admin-menu-sub {
    display: block;
}
.admin-menu-item.has-children.active > .admin-menu-parent {
    background: #eef4ff;
    color: var(--c-primary);
    border-left: 3px solid var(--c-primary);
    font-weight: 600;
}
.admin-menu-sub a {
    padding-left: 36px;
    font-size: 13px;
    color: #6b7280;
}
.admin-menu-sub a.active {
    background: #eef4ff;
    color: var(--c-primary);
    border-left-color: var(--c-primary);
    font-weight: 600;
}

/* ===== v2.7.0：资源管理（媒体库） ===== */
.media-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}
.media-toolbar-actions {
    display: flex;
    gap: 8px;
}
.visually-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.media-external-form {
    background: #f8fafc;
    border: 1px dashed #d7dde6;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}
.media-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.media-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.media-chip {
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f4f8;
    color: #4b5563;
    font-size: 12.5px;
    border: 1px solid transparent;
}
.media-chip.active {
    background: var(--c-primary);
    color: #fff;
}
.media-chip:hover {
    color: var(--c-primary);
    text-decoration: none;
}
.media-search {
    display: flex;
    gap: 6px;
    align-items: center;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 720px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}
.media-card {
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.media-thumb {
    height: 150px;
    background: #f1f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-thumb-fallback {
    font-size: 22px;
    font-weight: 700;
    color: #9aa4b2;
    letter-spacing: 1px;
}
.media-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.media-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.media-meta {
    font-size: 11.5px;
    color: #8a94a3;
}
.media-url {
    font-size: 11px;
    color: #9aa4b2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.media-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

/* ===== v2.7.1：文章列表标题小图标（预览 / 封面标识） ===== */
.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    color: #9aa4b2;
    flex: 0 0 auto;
}
a.title-icon:hover {
    color: var(--c-primary);
    background: #eef4ff;
}
.title-icon-cover {
    color: #d97706;
    background: #fef3c7;
}

/* ===== v2.7.1：首页分块文章序号徽标（default 主题，前 3 名主题色） ===== */
.cat-block-list li {
    display: flex;
    align-items: center;
    gap: 7px;
}
.cat-block-list li a {
    flex: 1;
    min-width: 0;
}
.block-idx {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    background: #e8ebf0;
    color: #8a94a3;
}
.block-idx-hot {
    background: var(--c-primary);
    color: #fff;
}

/* ===== v2.7.1 补充：预览/封面小图标紧跟标题 ===== */
/* 标题改为自然宽度（长标题仍收缩省略），不再撑满整行，使后续图标紧贴标题文字 */
.table-articles .title-cell > .title-link {
    flex: 0 1 auto;
}

/* ===== v2.7.3：首页空分类占位 ===== */
.cat-block-list .cat-block-none {
    padding: 10px 2px;
    color: #999;
    font-size: 13px;
    list-style: none;
}
