/* 36知本 · 全站样式 */
:root {
    --ink: #111827;
    --ink-2: #374151;
    --ink-3: #6b7280;
    --ink-4: #9ca3af;
    --line: #e5e7eb;
    --line-2: #d1d5db;
    --bg: #f5f6f8;
    --paper: #ffffff;
    --accent: #e4572e;
    --accent-dark: #c2410c;
    --accent-soft: #fff1ec;
    --blue: #1d4ed8;
    --green: #0e9f6e;
    --gold: #b45309;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
    --shadow-lg: 0 18px 50px rgba(17, 24, 39, .12);
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", Georgia, serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, pre { font-family: var(--mono); font-size: .92em; }
pre { overflow: auto; background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: var(--radius-sm); }
::selection { background: #ffd7c9; color: #4a1606; }

.container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.container-fluid { width: calc(100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: #dc2626; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; padding: 8px 18px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
    font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }
.btn-ghost { background: transparent; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-danger { color: #b91c1c; border-color: #fecaca; background: #fff5f5; }
.btn-danger:hover { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.btn-xs { min-height: 26px; padding: 3px 9px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.inline-form { display: inline-flex; margin: 0; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* 徽章与标签 */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
    border-radius: 999px; background: #eef2f7; color: var(--ink-2);
    font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge-green { background: #e7f8f1; color: #047857; }
.badge-blue { background: #e8efff; color: #1e40af; }
.badge-gold { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #f1f5f9; color: #475569; }
.tag {
    display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px;
}
.tag:hover { border-color: var(--accent); color: var(--accent-dark); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-page { padding: 28px; margin: 26px 0 40px; }
.tag-cloud-lg { gap: 12px; }
.tag-cloud-lg .tag { padding: 8px 16px; font-size: 14px; gap: 8px; }
.tag-cloud-lg .tag-count { font-size: 11px; color: var(--ink-4); background: #f1f5f9; border-radius: 999px; padding: 1px 7px; }

/* 头部 */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar { background: var(--ink); color: #d1d5db; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar-note { letter-spacing: .08em; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a { color: #d1d5db; }
.topbar-links a:hover { color: #fff; }
.topbar-links { align-items: center; }
.topbar-weather { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .22); color: #d1d5db; font-size: 12px; white-space: nowrap; }
.topbar-weather[hidden] { display: none; }
.topbar-weather-city { color: #fff; font-weight: 600; }
.topbar-weather-temp { color: #fff; font-variant-numeric: tabular-nums; }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 23px; letter-spacing: .12em; font-weight: 800; }
.brand-text small { font-size: 11px; color: var(--ink-3); letter-spacing: .18em; margin-top: 3px; }
.brand-compact img { width: 36px; height: 36px; border-radius: 9px; }
.brand-compact .brand-text strong { font-size: 19px; }
.brand-compact .brand-text small { font-size: 10px; }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
    position: relative; padding: 10px 9px; border-radius: 8px; color: var(--ink-2);
    font-size: 15px; font-weight: 600; white-space: nowrap;
}
.site-nav a:hover { background: #f3f4f6; color: var(--ink); }
.site-nav a.active { color: var(--accent-dark); }
.site-nav a.active::after {
    content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 3px;
    background: var(--accent); border-radius: 3px;
}
.header-search { display: flex; align-items: center; background: #f3f4f6; border: 1px solid transparent; border-radius: 999px; padding: 0 6px 0 14px; min-width: 230px; }
.header-search:focus-within { background: #fff; border-color: var(--line-2); }
.header-search input { border: 0; background: transparent; padding: 8px 6px; outline: 0; width: 100%; font-size: 13px; }
.header-search button { border: 0; background: transparent; color: var(--ink-3); padding: 6px; border-radius: 50%; display: inline-flex; }
.header-search button:hover { color: var(--accent); background: var(--accent-soft); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 42px; height: 38px; padding: 9px; flex-direction: column; justify-content: space-between; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.site-main { min-height: 60vh; padding-bottom: 48px; }
.flash-wrap { padding-top: 16px; }

/* 提示 */
.alert {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: #fff; font-size: 14px;
}
.alert-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.alert-info { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.alert-warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.alert-close { border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; padding: 0 2px; opacity: .6; }
.alert-close:hover { opacity: 1; }

/* 首页 */
.hero { padding: 30px 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; }
.hero-lead { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); min-height: 430px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.hero-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .6s ease; }
.hero-lead:hover img { transform: scale(1.03); }
.hero-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,.14) 0%, rgba(17,24,39,.72) 46%, rgba(17,24,39,.95) 100%); }
.hero-lead-body { position: relative; z-index: 2; padding: 34px; color: #fff; width: 100%; }
.hero-lead-body h1 { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.35; margin: 10px 0 12px; color: #fff; text-wrap: balance; }
.hero-lead-body p { color: rgba(255,255,255,.82); margin-bottom: 14px; }
.hero-lead-body .meta { color: rgba(255,255,255,.72); }
.hero-lead-body .meta a { color: #fff; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-width: 0; }
.hero-side .story-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); min-width: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #eef0f3; }
.hero-side .story-card .card-media { height: 100%; min-width: 0; min-height: 190px; aspect-ratio: auto; }
.hero-side .story-card .card-body { min-width: 0; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.hero-side .story-card h2 { font-family: var(--serif); font-size: 19px; line-height: 1.45; margin: 8px 0; }
/* 首页数据条 + 热榜滚动 */
.home-databar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; margin: 14px 0 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.databar-hot { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 11px 20px; border-right: 1px solid var(--line); }
.databar-hot-label { flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: 8px; padding: 7px 11px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.databar-hot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.databar-hot-viewport { width: 100%; height: 34px; overflow: hidden; }
.databar-hot-track { list-style: none; margin: 0; padding: 0; }
.databar-hot-track li { display: flex; align-items: center; gap: 9px; height: 34px; font-size: 13.5px; line-height: 34px; white-space: nowrap; overflow: hidden; }
.databar-hot-track a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.databar-hot-track a:hover { color: var(--accent-dark); }
.databar-hot-track .rank-no { flex-shrink: 0; width: 19px; height: 19px; border-radius: 5px; background: #f1f5f9; color: var(--ink-3); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.databar-hot-track li:nth-child(-n+3) .rank-no { background: var(--accent-soft); color: var(--accent-dark); }
.databar-hot-track[data-hot-scroll] { animation: hot-scroll var(--hot-duration, 32s) linear infinite; }
.databar-hot-viewport:hover .databar-hot-track { animation-play-state: paused; }
@keyframes hot-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.databar-data { display: flex; flex-direction: column; justify-content: center; min-width: 540px; }
.databar-stats { display: flex; flex-wrap: nowrap; align-items: stretch; }
.databar-stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 11px 10px; border-left: 1px solid var(--line); text-align: center; }
.databar-stat:first-child { border-left: 0; }
.databar-stat strong { font-family: var(--serif); font-size: 20px; line-height: 1.1; color: var(--ink); font-weight: 800; }
.databar-stat span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.databar-note { margin: 0; padding: 5px 12px 7px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 11px; line-height: 1.5; text-align: center; white-space: nowrap; }

/* 首页专栏 / 活动 TAB 通栏 */
.home-showcase { margin: 16px 0; padding: 22px 0 20px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.showcase-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 11px; }
.showcase-tabs button { border: 0; background: transparent; padding: 9px 26px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink-3); cursor: pointer; transition: all .2s; }
.showcase-tabs button.active { background: #fff; color: var(--accent-dark); box-shadow: 0 2px 8px rgba(15,23,42,.09); }
.showcase-more { display: flex; gap: 16px; font-size: 13px; }
.showcase-more a { color: var(--ink-3); }
.showcase-more a:hover { color: var(--accent-dark); }
.showcase-panel[hidden] { display: none; }
.showcase-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.showcase-card { flex: 1 0 280px; display: flex; flex-direction: column; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.showcase-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.1); }
.showcase-media { display: block; aspect-ratio: 16 / 9; background: #0b1220; overflow: hidden; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 17px; }
.showcase-body .kicker { font-size: 11.5px; color: var(--accent-dark); font-weight: 700; letter-spacing: .04em; }
.showcase-body strong { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.showcase-desc { color: var(--ink-3); font-size: 12.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.showcase-meta { color: var(--ink-4); font-size: 11.5px; }

.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent-dark); letter-spacing: .04em; }
.kicker::before { content: ""; width: 14px; height: 2px; background: var(--accent); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.meta .dot::before { content: "·"; margin: 0 2px; color: var(--ink-4); }
.meta a { color: var(--ink-2); font-weight: 600; }

.section { margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--ink); }
.section-head h2 { font-family: var(--serif); font-size: 24px; margin: 0; letter-spacing: .02em; }
.section-head h2 small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 10px; letter-spacing: 0; }
.section-head .more { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.section-head .more:hover { color: var(--accent); }
.section-tabs { display: flex; gap: 6px; }
.section-tabs a { padding: 6px 13px; border-radius: 999px; font-size: 13px; color: var(--ink-3); border: 1px solid var(--line); background: #fff; }
.section-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.layout-main.no-side { grid-template-columns: minmax(0, 1fr); }
.sidebar { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 22px; }
.sidebar-standalone { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--serif); font-size: 18px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-title small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); font-weight: 400; }
.sidebar-author { position: relative; padding: 0 18px 18px; overflow: hidden; background: var(--paper); }
.sidebar-author::before { content: ""; display: block; height: 58px; margin: 0 -18px; background: linear-gradient(135deg, var(--accent-soft) 0%, #f8fafc 62%, #fff 100%); border-bottom: 1px solid var(--line); }
.sidebar-author-head { position: relative; display: flex; align-items: flex-end; gap: 12px; margin-top: -30px; }
.sidebar-author-avatar { display: block; flex-shrink: 0; width: 64px; height: 64px; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(15, 23, 42, .14); }
.sidebar-author-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #e5e7eb; }
.sidebar-author-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding-bottom: 3px; }
.sidebar-author-meta strong { font-family: var(--serif); font-size: 16.5px; line-height: 1.3; }
.sidebar-author-meta strong a { color: var(--ink); }
.sidebar-author-meta .badge { padding: 2px 8px; font-size: 10.5px; }
.sidebar-author-bio { margin: 11px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-author-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 13px; padding: 10px 0; border: 0; border-radius: 10px; background: #f8fafc; }
.sidebar-author-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-left: 1px solid var(--line); }
.sidebar-author-stats div:first-child { border-left: 0; }
.sidebar-author-stats strong { font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--ink); }
.sidebar-author-stats span { font-size: 11px; color: var(--ink-3); }
.sidebar-author-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.sidebar-author-actions .btn { width: 100%; min-height: 36px; justify-content: center; }
.sidebar-tag-cloud { gap: 7px; }
.sidebar-tag-cloud .tag { padding: 4px 10px; font-size: 12px; gap: 6px; }
.sidebar-tag-cloud .tag-count { font-size: 10.5px; color: var(--ink-4); background: #f1f5f9; border-radius: 999px; padding: 1px 6px; }

/* 文章卡片 */
.feed-list { display: flex; flex-direction: column; gap: 18px; }
.story-card { background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.story-card.horizontal { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.story-card .card-media { position: relative; display: block; overflow: hidden; background: #eef0f3; aspect-ratio: 16 / 9; }
.story-card.horizontal .card-media { height: 100%; aspect-ratio: auto; }
.story-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 18px; }
.card-body h2, .card-body h3 { font-family: var(--serif); font-size: 21px; line-height: 1.45; margin: 7px 0 8px; text-wrap: balance; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--accent-dark); }
.card-body p { color: var(--ink-3); font-size: 14px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-author { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.card-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #eef0f3; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-block { background: var(--paper); border-radius: var(--radius); border: 1px solid #eef0f3; padding: 20px; box-shadow: var(--shadow); }
.category-block .block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.category-block .block-head h3 { margin: 0; font-family: var(--serif); font-size: 19px; }
.category-block .block-head a { font-size: 12px; color: var(--ink-3); }
.category-block ul { list-style: none; padding: 0; margin: 0; }
.category-block li { padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.55; }
.category-block li:first-child { border-top: 0; padding-top: 0; }
.category-block li a:hover { color: var(--accent-dark); }
.category-block li .muted { display: block; font-size: 11.5px; margin-top: 2px; }

/* 排行与作者 */
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px dashed var(--line); counter-increment: rank; }
.rank-list li:first-child { border-top: 0; }
.rank-list li::before { content: counter(rank); font-family: var(--serif); font-size: 18px; font-weight: 800; color: var(--ink-4); line-height: 1.4; }
.rank-list li:nth-child(1)::before { color: #dc2626; }
.rank-list li:nth-child(2)::before { color: #ea580c; }
.rank-list li:nth-child(3)::before { color: #ca8a04; }
.rank-list a { font-size: 14px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-list .muted { font-size: 11.5px; margin-top: 3px; }
.creator-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.creator-type-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.creator-type-card:hover { border-color: rgba(228,87,46,.45); transform: translateY(-1px); }
.creator-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.creator-type-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,87,46,.12); }
.creator-type-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.creator-type-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 15px; }
.creator-type-name em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--accent); background: rgba(228,87,46,.1); padding: 2px 7px; border-radius: 999px; }
.creator-type-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.creator-type-services { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.creator-type-services span::before { content: "·"; margin-right: 6px; color: var(--accent); font-weight: 700; }
.creator-type-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.creator-type-personal { background: #eef2f7; color: #334155; }
.creator-type-enterprise { background: #e0f2fe; color: #075985; }
.creator-type-media { background: #fef3c7; color: #92400e; }
@media (max-width: 760px) {
    .creator-type-grid { grid-template-columns: 1fr; }
}
.creator-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.creator-list li { display: flex; align-items: center; gap: 11px; }
.creator-list img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eef0f3; }
.creator-list .grow { line-height: 1.4; }
.creator-list strong { font-size: 14px; display: block; }
.creator-list .muted { font-size: 11.5px; }

/* 广告 */
.ad-slot { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 14px 0; }
.ad-slot .ad-label { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 10px; letter-spacing: .1em; color: var(--ink-3); background: rgba(255,255,255,.9); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
.ad-slot > a { display: flex; align-items: center; gap: 16px; padding: 16px; }
.ad-slot img { max-height: 130px; width: auto; border-radius: 8px; object-fit: cover; }
.ad-slot .ad-copy { display: flex; flex-direction: column; gap: 4px; }
.ad-slot .ad-copy strong { font-size: 15px; }
.ad-slot .ad-desc { font-size: 13px; color: var(--ink-3); }
.ad-slot .ad-pixel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ad-banner > a { flex-direction: row; }
/* 首页横幅广告：图片铺满内容区，避免图片上下出现大片留白 */
.ad-banner { margin: 10px 0 0; }
.ad-banner > a { display: block; padding: 8px; }
.ad-banner img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: 4px; }
.ad-banner:not(.ad-no-image) .ad-copy { display: none; }
.ad-sidebar > a { flex-direction: column; align-items: flex-start; }
.ad-sidebar img { width: 100%; max-height: 200px; object-fit: cover; }
.ad-feed { border-style: dashed; background: #fffaf7; }
.ad-article_bottom { margin-top: 28px; }

/* 微头条 */
.micro-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.micro-card { background: #fff; border: 1px solid #eef0f3; border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow); }
.micro-card p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.micro-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.micro-head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.micro-head strong { font-size: 13px; }
.micro-head .muted { font-size: 11px; }

/* 列表页与归档 */
.page-hero { background: linear-gradient(135deg, #111827, #1f2937 55%, #312e2b); color: #fff; padding: 46px 0 40px; margin-bottom: 30px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 760px; margin: 0; }
.page-hero .breadcrumb { color: rgba(255,255,255,.6); margin-bottom: 10px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin: 6px 0 14px; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: var(--ink-4); }
.list-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-item:first-child { padding-top: 0; }
.list-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); background: #eef0f3; }
.list-item h2 { font-family: var(--serif); font-size: 20px; margin: 4px 0 7px; }
.list-item p { color: var(--ink-3); font-size: 14px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty strong { display: block; font-size: 18px; color: var(--ink-2); margin-bottom: 6px; }

/* 分页 */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0 8px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .prev, .pagination .next { padding-inline: 14px; }

/* 文章页 */
.article-page { background: #fff; border-radius: var(--radius); border: 1px solid #eef0f3; padding: clamp(20px, 4vw, 46px); box-shadow: var(--shadow); }
.article-header { max-width: 900px; }
.article-title { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 44px); line-height: 1.28; margin: 12px 0 16px; letter-spacing: -.01em; text-wrap: balance; }
.article-summary { font-size: 17px; color: var(--ink-3); line-height: 1.8; border-left: 3px solid var(--accent); padding-left: 16px; margin: 0 0 22px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; color: var(--ink-3); font-size: 13px; }
.article-meta .author { display: flex; align-items: center; gap: 10px; }
.article-meta .author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-meta .author strong { color: var(--ink); display: block; font-size: 14px; }
.article-cover { margin: 0 0 28px; }
.article-cover img { width: 100%; border-radius: var(--radius-sm); }
.cover-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cover-three img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.article-body { font-size: 17px; line-height: 1.95; color: #1f2937; max-width: 900px; }
.article-body > p:first-of-type { font-size: 18px; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { font-family: var(--serif); font-size: 26px; margin: 2em 0 .8em; padding-left: 12px; border-left: 4px solid var(--accent); }
.article-body h3 { font-size: 21px; margin: 1.7em 0 .7em; }
.article-body blockquote { margin: 1.6em 0; padding: 16px 22px; background: #f8fafc; border-left: 3px solid var(--ink-3); color: var(--ink-2); border-radius: 0 8px 8px 0; }
.article-body img { border-radius: var(--radius-sm); margin: 1.4em auto; }
.article-body figure { margin: 1.6em 0; }
.article-body figure.image { margin: 1.6em 0; }
.article-body figure.image-style-align-center { margin-left: auto; margin-right: auto; text-align: center; }
.article-body figure.image-style-align-left { float: left; max-width: 50%; margin: .4em 1.4em 1em 0; }
.article-body figure.image-style-align-right { float: right; max-width: 50%; margin: .4em 0 1em 1.4em; }
.article-body figcaption { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 640px) {
    .article-body figure.image-style-align-left,
    .article-body figure.image-style-align-right { float: none; max-width: 100%; margin: 1.4em 0; }
}
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.article-body li { margin-bottom: .45em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.article-body th { background: #f8fafc; }
.article-body hr { margin: 2em 0; }

.ai-summary { max-width: 900px; margin: 0 0 30px; background: linear-gradient(135deg, #f0f7ff, #f8fbff); border: 1px solid #dbeafe; border-radius: var(--radius); padding: 20px 22px; }
.ai-summary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; color: #1e40af; font-size: 14px; }
.ai-summary-head .badge { background: #dbeafe; color: #1e40af; }
.ai-summary p, .ai-summary ul { margin: 0; color: #1f2937; font-size: 14px; line-height: 1.85; }
.ai-summary ul { padding-left: 1.2em; }
.article-statements { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.statement-chip { font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 4px 9px; }
.source-box { margin: 22px 0 0; font-size: 13px; color: var(--ink-3); background: #f8fafc; border-radius: 8px; padding: 12px 15px; word-break: break-all; }
.source-box a { color: var(--blue); }
.faq-box { max-width: 900px; margin: 34px 0 0; }
.faq-box h2 { font-family: var(--serif); font-size: 22px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--ink-3); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 0 14px; color: var(--ink-2); font-size: 14px; }

.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 34px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.action-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; min-height: 40px; padding: 8px 17px; font-size: 14px; font-weight: 600; }
.action-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.action-btn.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.action-btn[disabled] { opacity: .55; pointer-events: none; }
.share-hint { margin-left: auto; color: var(--ink-4); font-size: 12px; }

.author-box { display: flex; align-items: flex-start; gap: 16px; margin: 30px 0 0; padding: 22px; background: #f8fafc; border-radius: var(--radius); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #e5e7eb; }
.author-box h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; }
.author-box p { margin: 4px 0 10px; font-size: 13px; color: var(--ink-3); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.prev-next a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 13px; }
.prev-next a:hover { border-color: var(--accent); }
.prev-next .label { color: var(--ink-3); font-size: 11px; display: block; margin-bottom: 4px; }
.prev-next .next { text-align: right; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.comments { margin-top: 36px; }
.comments h2 { font-family: var(--serif); font-size: 23px; margin-bottom: 16px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 24px; align-items: flex-start; }
.comment-form img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comment-form .grow { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.comment-form textarea { width: 100%; border: 0; outline: 0; resize: vertical; min-height: 74px; background: transparent; }
.comment-login { padding: 16px; background: #f8fafc; border: 1px dashed var(--line-2); border-radius: 10px; text-align: center; color: var(--ink-3); margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.comment > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e5e7eb; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-head strong { font-size: 14px; }
.comment-head .muted { font-size: 11.5px; }
.comment-body { font-size: 14px; color: var(--ink-2); word-break: break-word; }
.comment-replies { list-style: none; margin: 12px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.comment-replies .comment { border-top: 0; padding: 10px 0 0; }
.reply-toggle { border: 0; background: transparent; color: var(--ink-3); font-size: 12px; padding: 2px 0; margin-top: 4px; }
.reply-toggle:hover { color: var(--accent); }
.reply-form { margin-top: 8px; display: flex; gap: 8px; }
.reply-form input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.report-details, .tip-details { margin-top: 12px; }
.report-details summary, .tip-details summary { cursor: pointer; color: var(--ink-3); font-size: 13px; }
.inline-form-panel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 14px; background: #f8fafc; border-radius: 10px; }
.inline-form-panel select, .inline-form-panel input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; font-size: 13px; }

/* 搜索 */
.search-box { display: flex; gap: 10px; margin-bottom: 26px; }
.search-box input { flex: 1; min-height: 50px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 18px; font-size: 16px; background: #fff; }
.search-box input:focus { outline: 2px solid #fcd5c8; border-color: var(--accent); }
.search-tips { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; }

/* 作者页 */
.author-hero { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, #111827, #292524); color: #fff; padding: 34px; margin-bottom: 28px; }
.author-hero .author-main { display: flex; gap: 20px; align-items: center; position: relative; z-index: 2; }
.author-hero img.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.2); background: #374151; }
.author-hero h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 5px; color: #fff; }
.author-hero p { color: rgba(255,255,255,.75); margin: 0 0 8px; max-width: 700px; }
.author-stats { display: flex; gap: 22px; color: rgba(255,255,255,.75); font-size: 13px; }
.author-stats strong { color: #fff; font-size: 19px; font-family: var(--serif); margin-right: 4px; }
.author-hero .btn { margin-left: auto; }

/* 认证页 */
.auth-body { background: radial-gradient(1200px 600px at 10% 0%, #1f2937 0%, #111827 55%, #0b1220 100%); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-aside { padding: 56px clamp(28px, 5vw, 76px); color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(228,87,46,.35), transparent 65%); right: -120px; bottom: -100px; }
.auth-aside .brand-text strong { color: #fff; }
.auth-aside .brand-text small { color: rgba(255,255,255,.55); }
.auth-copy h1 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.32; margin: 40px 0 16px; }
.auth-copy p { color: rgba(255,255,255,.66); max-width: 460px; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 10px; color: rgba(255,255,255,.78); font-size: 14px; }
.auth-points li::before { content: "—"; color: var(--accent); }
.auth-note { color: rgba(255,255,255,.4); font-size: 12px; position: relative; z-index: 2; }
.auth-panel { background: #f7f7f8; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 20px; padding: 38px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }
.auth-card .form-actions { margin-top: 22px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.auth-links a { color: var(--accent-dark); }
.auth-mobile-brand { display: none; margin-bottom: 22px; }
.auth-wrap.auth-centered { grid-template-columns: 1fr; }
.auth-wrap.auth-centered .auth-aside { display: none; }
.auth-wrap.auth-centered .auth-panel { background: transparent; padding: 56px 20px; }
.auth-wrap.auth-centered .auth-card { width: min(460px, 100%); }
.auth-wrap.auth-centered .auth-mobile-brand { display: flex; }

/* 表单 */
.form-card { background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .field-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"],
.field input[type="number"], .field input[type="search"], .field input[type="datetime-local"], .field input[type="date"],
.field select, .field textarea {
    width: 100%; border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
    padding: 10px 13px; font-size: 14px; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px #fde8e1; }
.field input[type="file"] { font-size: 13px; padding: 8px 0; }
.field-row { display: flex; gap: 14px; }
.field-row > .field { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.check input[type="checkbox"], .check input[type="radio"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.form-errors { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; }
.form-errors ul { margin: 0; padding-left: 1.1em; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px dashed var(--line); }
.switch-row:first-of-type { border-top: 0; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch-copy strong { display: block; font-size: 14px; }
.switch-copy .hint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 数据面板 */
.dashboard-body { background: #f3f4f6; }
.dash-header { background: #111827; color: #fff; position: sticky; top: 0; z-index: 50; }
.dash-header .brand-text strong, .dash-header .brand-text small { color: #fff; }
.dash-header .brand-text small { color: rgba(255,255,255,.55); }
.dash-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.dash-header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.dash-header .btn-ghost { color: #e5e7eb; border-color: rgba(255,255,255,.18); }
.dash-header .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }
.dash-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e5e7eb; }
.dash-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #374151; }
.admin-account { position: relative; }
.admin-account > summary { list-style: none; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.admin-account > summary::-webkit-details-marker { display: none; }
.admin-account > summary:hover { background: rgba(255,255,255,.08); }
.admin-account > summary i { font-style: normal; font-size: 11px; color: rgba(255,255,255,.6); }
.admin-account-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 210px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(15,23,42,.18); padding: 8px; z-index: 90; }
.admin-account-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.admin-account-head strong { display: block; font-size: 14px; }
.admin-account-head small { color: var(--ink-3); font-size: 12px; }
.admin-account-panel a, .admin-account-panel button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.admin-account-panel a:hover, .admin-account-panel button:hover { background: #f3f4f6; color: var(--ink); }
.admin-account-panel form { margin: 0; }
.dash-header .nav-toggle { display: none; border-color: rgba(255,255,255,.2); background: transparent; }
.dash-header .nav-toggle span:not(.sr-only) { background: #fff; }
.dash-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 26px; padding: 26px 0 60px; align-items: start; }
.dash-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; position: sticky; top: 92px; box-shadow: var(--shadow); }
.dash-nav-group { padding: 10px 0; border-top: 1px solid #f1f5f9; }
.dash-nav-group:first-child { border-top: 0; padding-top: 4px; }
.dash-nav-title { display: block; font-size: 11px; letter-spacing: .1em; color: var(--ink-4); text-transform: uppercase; padding: 4px 10px 7px; }
.dash-sidebar a { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 2px; }
.dash-sidebar a:hover { background: #f3f4f6; color: var(--ink); }
.dash-sidebar a.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.nav-badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.dash-main { min-width: 0; }
.dash-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dash-title h1 { font-family: var(--serif); font-size: 27px; margin: 0; }
.dash-title p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid #eef0f3; border-radius: var(--radius-sm); padding: 17px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card .label { color: var(--ink-3); font-size: 12.5px; }
.stat-card .value { font-family: var(--serif); font-size: 28px; font-weight: 800; line-height: 1.3; margin-top: 2px; }
.stat-card .sub { color: var(--ink-4); font-size: 11.5px; margin-top: 2px; }
.stat-card.accent { background: linear-gradient(135deg, #e4572e, #c2410c); border-color: transparent; color: #fff; }
.stat-card.accent .label, .stat-card.accent .sub { color: rgba(255,255,255,.75); }
.stat-card.dark { background: linear-gradient(135deg, #111827, #374151); border-color: transparent; color: #fff; }
.stat-card.dark .label, .stat-card.dark .sub { color: rgba(255,255,255,.7); }
.panel-box { background: #fff; border: 1px solid #eef0f3; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.panel-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.panel-box-head h2 { font-size: 17px; margin: 0; font-family: var(--serif); }
.panel-box-body { padding: 20px; }
.panel-box-body.flush { padding: 0; }
.panel-box-foot { padding: 13px 20px; border-top: 1px solid var(--line); background: #fafafa; font-size: 12.5px; color: var(--ink-3); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-actions a { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; }
.quick-actions a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.quick-actions .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 800; }

/* 表格 */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table th { color: var(--ink-3); font-weight: 600; font-size: 12px; background: #fafafa; white-space: nowrap; }
.table tbody tr:hover { background: #fcfcfd; }
.table td.title-cell { max-width: 380px; }
.table td.title-cell strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.table .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.table .num { font-family: var(--mono); font-size: 12.5px; }
.table .thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: #eef0f3; }
.table-empty { text-align: center; color: var(--ink-3); padding: 40px 20px !important; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 8px 13px; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 700; }
.tabs .count { font-size: 11px; background: #f1f5f9; border-radius: 999px; padding: 0 6px; margin-left: 4px; }

/* 图表 */
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 10px; }
.chart-bars .bar { flex: 1; position: relative; background: linear-gradient(180deg, #f28a68, #e4572e); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .9; }
.chart-bars .bar:hover { opacity: 1; }
.chart-bars .bar span { display: none; position: absolute; bottom: 105%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 4px; white-space: nowrap; z-index: 3; }
.chart-bars .bar:hover span { display: block; }
.chart-axis { display: flex; justify-content: space-between; color: var(--ink-4); font-size: 10.5px; margin-top: 6px; }
.chart-legend { display: flex; gap: 14px; color: var(--ink-3); font-size: 12px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); display: inline-block; margin-right: 4px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { background: #f8fafc; border-radius: 9px; padding: 12px; }
.metric .label { font-size: 11.5px; color: var(--ink-3); }
.metric .value { font-size: 19px; font-weight: 800; font-family: var(--serif); }

/* 发布页 */
.publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.publish-main { background: #fff; border: 1px solid #eef0f3; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.publish-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.publish-title-input { width: 100%; border: 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 25px; font-weight: 700; padding: 8px 0 12px; outline: 0; background: transparent; }
.publish-title-input:focus { border-bottom-color: var(--accent); }
.publish-title-input::placeholder { color: #c7cbd1; }
.cover-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cover-option { position: relative; }
.cover-option input { position: absolute; opacity: 0; }
.cover-option span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; background: #fff; }
.cover-option input:checked + span { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); font-weight: 700; }
.cover-panel { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px; background: #fafafa; }
.cover-panel .hint { font-size: 12px; color: var(--ink-3); }
.cover-three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cover-three-grid .field { margin-bottom: 0; }
.cover-preview { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.cover-preview img { width: 120px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 9px 9px 0 0; padding: 7px; background: #fafafa; }
.editor-toolbar button { border: 0; background: transparent; padding: 5px 9px; border-radius: 5px; font-size: 13px; color: var(--ink-2); }
.editor-toolbar button:hover { background: #eef0f3; color: var(--ink); }
.editor-toolbar .sep { width: 1px; background: var(--line); margin: 3px 4px; }
.editor-area { width: 100%; min-height: 380px; border: 1px solid var(--line-2); border-radius: 0 0 9px 9px; padding: 14px; font-size: 14px; line-height: 1.8; resize: vertical; font-family: var(--mono); }
.editor-area:focus { outline: 0; border-color: var(--accent); }
.editor-hint { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-4); margin-top: 6px; }
.publish-section { padding: 18px 0; border-top: 1px solid var(--line); }
.publish-section h3 { font-size: 15px; margin-bottom: 12px; }
.quota-box { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa; border-radius: 10px; padding: 14px; }
.quota-box strong { font-family: var(--serif); font-size: 24px; color: #c2410c; line-height: 1; }
.quota-box span { font-size: 12.5px; color: #9a3412; }
.statement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.statement-grid .check { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
.statement-grid .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.publish-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); }

/* 管理后台 */
.admin-body { background: #f3f4f6; }
.admin-header { background: #0b1220; }
.admin-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 66px); }
.admin-sidebar { position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; border-radius: 0; border: 0; border-right: 1px solid var(--line); box-shadow: none; padding: 16px 12px; }
.admin-main { padding: 26px 28px 60px; min-width: 0; }
.admin-main h1 { font-family: var(--serif); font-size: 26px; margin: 0 0 18px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.admin-toolbar .search-field { display: flex; gap: 6px; }
.admin-toolbar input, .admin-toolbar select { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; background: #fff; font-size: 13px; }
.detail-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.detail-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.detail-panel-head h2 { font-size: 18px; margin: 0; font-family: var(--serif); }
.detail-panel-body { padding: 22px; }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 22px; margin-bottom: 20px; }
.detail-meta div { font-size: 13px; color: var(--ink-3); }
.detail-meta strong { display: block; color: var(--ink); font-size: 14px; margin-top: 2px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.review-actions .field { margin-bottom: 0; min-width: 220px; }
.review-actions input { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; }
.flag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-form { display: inline-flex; }
.flag-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 12px; }
.flag-btn.on { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.audit-table td.detail { max-width: 420px; word-break: break-word; }
.settings-section { margin-bottom: 26px; }
.settings-section h2 { font-family: var(--serif); font-size: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; }
.status-dot.off { background: var(--ink-4); }
.preview-ad { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fafafa; max-width: 420px; }
.preview-ad img { max-height: 130px; width: auto; border-radius: 6px; margin-bottom: 6px; }
.preview-ad strong { display: block; font-size: 13px; }
.preview-ad span { font-size: 11.5px; color: var(--ink-3); }

/* 错误页 */
.error-page { min-height: 58vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.error-card { text-align: center; max-width: 560px; }
.error-code { font-family: var(--serif); font-size: clamp(76px, 14vw, 150px); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.04em; }
.error-card h1 { font-family: var(--serif); font-size: 26px; margin: 16px 0 8px; }
.error-card p { color: var(--ink-3); }
.error-detail { text-align: left; background: #111827; color: #e5e7eb; padding: 14px; border-radius: 8px; font-size: 12px; overflow: auto; }

/* 页脚 */
.site-footer { background: #111827; color: #d1d5db; padding: 46px 0 22px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .75fr .75fr 1.15fr; gap: 28px; align-items: start; }
.footer-grid > * { min-width: 0; }
/* 关闭品牌区后仍保持四栏（3 个链接栏 + 订阅栏）在同一行 */
.footer-grid.no-brand { grid-template-columns: 1fr 1fr 1fr 1.3fr; }
/* 关闭订阅入口后：品牌 + 3 个链接栏，或仅 3 个链接栏 */
.footer-grid.no-newsletter { grid-template-columns: 1.35fr .9fr .9fr .9fr; }
.footer-grid.no-brand.no-newsletter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-extra { margin-top: 26px; padding-top: 20px; border-top: 1px solid #1f2937; color: #9ca3af; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #1f2937; }
.footer-links-title { color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.footer-links-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links-list a { color: #9ca3af; font-size: 12.5px; }
.footer-links-list a:hover { color: #fff; }
.footer-brand p { color: #9ca3af; font-size: 13px; margin: 14px 0 8px; max-width: 380px; }
.footer-brand .footer-meta { font-size: 12px; color: #6b7280; margin: 4px 0; }
.footer-brand .footer-meta a { color: #9ca3af; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #9ca3af; }
.footer-col h3 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .05em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #9ca3af; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-subscribe p { color: #9ca3af; font-size: 13px; }
.subscribe-form { display: flex; gap: 6px; margin: 12px 0; }
.subscribe-form input { flex: 1; min-width: 0; background: #1f2937; border: 1px solid #374151; color: #fff; border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.subscribe-form input:focus { outline: 0; border-color: var(--accent); }
.footer-ai { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.footer-ai a { color: #6b7280; font-size: 11.5px; }
.footer-ai a:hover { color: #d1d5db; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #1f2937; margin-top: 34px; padding-top: 18px; color: #6b7280; font-size: 12px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: #9ca3af; }

/* 通用内容块 */
.prose { font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-size: 24px; margin: 1.6em 0 .7em; color: var(--ink); }
.prose h3 { font-size: 19px; margin: 1.4em 0 .6em; color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.prose th { background: #f8fafc; }
.prose ol, .prose ul { padding-left: 1.4em; }
.stat-grid.page-stats { grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.stat-grid.page-stats div { background: #f8fafc; border-radius: 9px; padding: 14px; }
.stat-grid.page-stats strong { display: block; font-family: var(--serif); font-size: 24px; }
.stat-grid.page-stats span { color: var(--ink-3); font-size: 12px; }

/* ==========================================================================
   通用表单（前台、登录、会员中心共用）
   ========================================================================== */
.form { margin: 0; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 17px; }
.form-row > label, .form-row-title > label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="password"],
.form-row input[type="url"], .form-row input[type="number"], .form-row input[type="search"],
.form-row input[type="tel"], .form-row input[type="date"], .form-row input[type="datetime-local"],
.form-row input[type="color"], .form-row select, .form-row textarea {
    width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff;
    padding: 10px 13px; font-size: 14px; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input[type="color"] { height: 42px; padding: 4px; max-width: 120px; }
.form-row input[type="file"] { font-size: 13px; padding: 6px 0; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--ink-4); }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-row-title { margin-bottom: 20px; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-head label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field-link { font-size: 12.5px; color: var(--accent-dark); }
.field-link:hover { text-decoration: underline; }
.field-hint { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.field-error {
    margin: 0; padding: 6px 9px; border: 1px solid #fecaca; border-radius: 7px;
    background: #fef2f2; color: #b91c1c; font-size: 12.5px; line-height: 1.55;
}
.checkline { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; line-height: 1.6; }
.checkline input[type="checkbox"], .checkline input[type="radio"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.checkline a { color: var(--accent-dark); }
.checklist { display: grid; gap: 9px; }
.alert-list { margin: 4px 0 0; padding-left: 1.2em; }
.alert-list li { margin-bottom: 2px; }
.alert-link { margin-left: auto; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ==========================================================================
   登录 / 注册 / 找回密码
   ========================================================================== */
.auth-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 29px); line-height: 1.3; margin: 0 0 6px; }
.auth-sub { color: var(--ink-3); font-size: 13.5px; margin: 0 0 22px; }
.auth-sub a, .auth-terms a { color: var(--accent-dark); font-weight: 600; }
.auth-sub a:hover, .auth-terms a:hover { text-decoration: underline; }
.auth-form { display: flex; flex-direction: column; }
.auth-form .form-row { margin-bottom: 16px; }
.auth-form .btn-block { margin-top: 4px; min-height: 44px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: var(--ink-4); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-terms { margin: 16px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-4); }
.auth-card .auth-links { margin-top: 12px; }
.auth-card .alert { font-size: 13px; }
.auth-card .checkline { margin: 2px 0 18px; }

/* ==========================================================================
   会员中心 / 创作者中心 / 广告主中心
   ========================================================================== */
.dash-page-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin: 0 0 22px;
}
.dash-page-head > div:first-child { min-width: 0; }
.dash-page-head h1 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; margin: 0 0 6px; word-break: break-word; }
.dash-page-head p { margin: 0; font-size: 13.5px; }
.dash-eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.dash-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.publish-head { align-items: center; }

.stat-label { display: block; font-size: 12.5px; color: var(--ink-3); }
.stat-value { display: block; font-family: var(--serif); font-size: 27px; font-weight: 800; line-height: 1.3; margin: 2px 0 0; color: var(--ink); }
.stat-value-sm { font-size: 17px; font-family: var(--sans); font-weight: 700; line-height: 1.6; }
.stat-foot { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-4); line-height: 1.5; }
.stat-foot a { color: var(--accent-dark); font-weight: 600; }
.stat-card-highlight { background: linear-gradient(135deg, #e4572e, #c2410c); border-color: transparent; color: #fff; }
.stat-card-highlight .stat-label, .stat-card-highlight .stat-foot { color: rgba(255, 255, 255, .8); }
.stat-card-highlight .stat-value { color: #fff; }
.stat-card-highlight .stat-foot a { color: #fff; text-decoration: underline; }
.stat-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dash-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 20px; }
.dash-grid-aside { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.dash-grid-2 > .panel, .dash-grid-aside > .panel { margin-bottom: 0; height: 100%; }
.dash-main > .panel + .panel, .dash-main > .panel + .dash-grid-2, .dash-grid-2 + .panel { margin-top: 0; }
.dash-main > .panel { margin-bottom: 20px; }
.dash-main .panel-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px; padding-bottom: 11px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.dash-main .panel-head h2 { font-family: var(--serif); font-size: 17px; margin: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 11px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--serif); font-size: 17px; margin: 0; }
.panel-link { font-size: 12.5px; font-weight: 600; color: var(--accent-dark); }
.panel-link:hover { text-decoration: underline; }
.panel-tips { background: linear-gradient(180deg, #fffdf8, #fff); }
.tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tip-list li { position: relative; padding-left: 17px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.tip-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tip-list strong { color: var(--ink); }
.side-panel { margin-bottom: 16px; }
.side-panel:last-child { margin-bottom: 0; }
.side-panel .panel-head { margin-bottom: 12px; }

/* 表格补充 */
.table-title { max-width: 360px; }
.table-title a { font-weight: 600; }
.table-title a:hover { color: var(--accent-dark); }
.table-title small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-4); }
.table-items { min-width: 780px; }
.table-actions { text-align: right !important; white-space: nowrap; }
.table-actions .inline-form + .inline-form, .table-actions .link + .inline-form, .table-actions .inline-form + .link { margin-left: 10px; }
.table-item { display: flex; align-items: center; gap: 11px; min-width: 240px; }
.table-item > div { min-width: 0; }
.table-item small { display: block; margin-top: 2px; }
.table-thumb { width: 72px; height: 54px; flex-shrink: 0; object-fit: cover; border-radius: 7px; background: #eef0f3; border: 1px solid #eef0f3; }
.table-item-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.45; color: var(--ink); }
.table-item-title:hover { color: var(--accent-dark); }

/* 状态徽章（会员中心） */
.badge-published, .badge-approved, .badge-active, .badge-paid, .badge-handled { background: #e7f8f1; color: #047857; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-rejected, .badge-banned, .badge-offline { background: #fee2e2; color: #b91c1c; }
.badge-draft, .badge-muted, .badge-finished, .badge-suspended { background: #f1f5f9; color: #475569; }
.badge-lg { padding: 4px 12px; font-size: 12.5px; }

/* 筛选与标签页 */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.filter-bar .tabs { flex: 1 1 420px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.tabs .tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px;
    font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 700; }
.tab-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #f1f5f9; color: var(--ink-3); font-size: 11px; line-height: 18px; text-align: center; }
.tab.active .tab-count { background: var(--accent-soft); color: var(--accent-dark); }
.filter-search, .filter-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-search input {
    width: 210px; border: 1px solid var(--line-2); border-radius: 9px;
    padding: 8px 11px; font-size: 13px; background: #fff;
}
.filter-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filter-search .btn, .filter-inline .btn { flex-shrink: 0; }

.empty-state { padding: 40px 16px; text-align: center; color: var(--ink-3); background: #fafbfc; border: 1px dashed var(--line-2); border-radius: 10px; }
.empty-state p { margin: 0 0 12px; }
.empty-text { margin: 0; padding: 26px 10px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* 上传 */
.upload-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.upload-thumb { width: 96px; height: 56px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #eef0f3; }
.upload-thumb.round { width: 56px; height: 56px; border-radius: 50%; }
.round { border-radius: 50% !important; }
.upload-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.upload-preview img { width: 132px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* 通知 */
.notification-list { list-style: none; margin: 0; padding: 0; }
.notification-item { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid #f1f5f9; }
.notification-item:first-child { border-top: 0; padding-top: 0; }
.notification-item:last-child { padding-bottom: 0; }
.notification-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.notification-item.is-unread .notification-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.notification-body { min-width: 0; flex: 1; }
.notification-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.notification-head strong { font-size: 14px; }
.notification-text { margin: 0 0 6px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.notification-link { font-size: 12.5px; font-weight: 600; color: var(--accent-dark); }
.notification-link:hover { text-decoration: underline; }

/* 记录、元信息、进度 */
.record-list { list-style: none; margin: 0; padding: 0; }
.record-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.record-list li:last-child { border-bottom: 0; }
.record-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.record-list .text-right { align-items: flex-end; }
.meta-list { margin: 0; display: grid; gap: 9px; }
.meta-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.meta-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-list dt { color: var(--ink-3); flex-shrink: 0; }
.meta-list dd { margin: 0; text-align: right; word-break: break-word; }
.progress { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin: 4px 0 12px; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f28a68, var(--accent)); }
.quota-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.quota-bar { flex: 1 1 100%; height: 5px; border-radius: 999px; background: rgba(194, 65, 12, .15); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: #c2410c; border-radius: 999px; }

/* 迷你评论 */
.comment-mini-list { list-style: none; margin: 0; padding: 0; }
.comment-mini-list li { display: flex; gap: 11px; padding: 12px 0; border-top: 1px solid #f1f5f9; }
.comment-mini-list li:first-child { border-top: 0; padding-top: 0; }
.comment-mini-list li:last-child { padding-bottom: 0; }
.comment-mini-list img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #eef0f3; }
.comment-mini-head { margin: 0 0 2px; font-size: 13px; }
.comment-mini-head span { font-size: 11px; }
.comment-mini-body { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.comment-mini-link { font-size: 11.5px; color: var(--ink-3); }
.comment-mini-link:hover { color: var(--accent-dark); }

/* 图表补充 */
.bar-chart-sm { height: 120px; }
.bar-chart-wide { height: 190px; }
.bar-col .bar.bar-ad { background: linear-gradient(180deg, #6b8cff, #2f6bff); }

/* 广告主：广告类型与预览 */
.ad-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ad-type-card {
    display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; cursor: pointer;
    border: 1px solid var(--line-2); border-radius: 10px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.ad-type-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-type-card strong { font-size: 14px; }
.ad-type-card span { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.ad-type-card:hover { border-color: var(--ink-4); }
.ad-type-card.is-active, .ad-type-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.ad-preview { display: flex; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.ad-preview img { width: 132px; max-height: 96px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0; }
.ad-preview-sm img { width: 100px; max-height: 76px; }
.ad-preview-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-preview-body strong { font-size: 15px; line-height: 1.45; }
.ad-preview-body p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.ad-badge { align-self: flex-start; padding: 1px 7px; border-radius: 4px; background: #eef2f7; color: var(--ink-3); font-size: 11px; }
.ad-preview-url { font-size: 12px; color: var(--green); word-break: break-all; }

/* 单选卡片与金额预设 */
.radio-cards { display: flex; flex-wrap: wrap; gap: 9px; }
.radio-card {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; cursor: pointer;
    border: 1px solid var(--line-2); border-radius: 9px; background: #fff; font-size: 13px;
    transition: border-color .15s, background .15s;
}
.radio-card input { margin: 0; accent-color: var(--accent); }
.radio-card:hover { border-color: var(--ink-4); }
.radio-card.is-active, .radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.amount-chip {
    border: 1px solid var(--line-2); background: #fff; border-radius: 999px;
    padding: 7px 16px; font-size: 13px; font-weight: 600; transition: border-color .15s, background .15s;
}
.amount-chip:hover, .amount-chip.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

/* 发布页补充 */
.publish-form { margin: 0; }
.publish-head h1 { font-size: clamp(20px, 2.4vw, 26px); }
.publish-form .publish-main > .panel { margin-bottom: 16px; }
.publish-form .publish-main > .panel:last-child { margin-bottom: 0; }
.title-input {
    width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
    font-family: var(--serif); font-size: 23px; font-weight: 700; padding: 8px 0 12px; outline: 0;
}
.title-input:focus { border-bottom-color: var(--accent); }
.title-input::placeholder { color: #c7cbd1; font-weight: 400; }
.title-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.counter { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.input-with-icon input { padding-left: 13px; }
.cover-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cover-option {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; cursor: pointer;
    border: 1px solid var(--line-2); border-radius: 10px; background: #fff; transition: border-color .15s, background .15s;
}
.cover-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cover-option .cover-option-visual {
    display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
    width: 26px; height: 19px; padding: 2px; border: 1px solid var(--line-2); border-radius: 4px; background: #f8fafc;
}
.cover-option-visual i { display: block; border-radius: 1px; background: #cbd5e1; }
.cover-option-visual.cover-visual-single { grid-template-columns: 1fr; }
.cover-option-visual.cover-visual-single i:nth-child(2), .cover-option-visual.cover-visual-single i:nth-child(3) { display: none; }
.cover-option-visual.cover-visual-none { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 3px, #eef2f7 3px, #eef2f7 6px); }
.cover-option-visual.cover-visual-none i { display: none; }
.cover-option .cover-option-label { display: inline; border: 0; padding: 0; border-radius: 0; background: none; font-size: 13px; line-height: 1.2; }
.cover-option:hover { border-color: var(--ink-4); }
.cover-option.is-active, .cover-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cover-option.is-active .cover-option-label { color: var(--accent-dark); font-weight: 700; }
.cover-three-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cover-three-item input[type="file"] { font-size: 11.5px; width: 100%; }
.cover-three-item img { width: 100%; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.cover-placeholder { display: flex; align-items: center; justify-content: center; height: 76px; border: 1px dashed var(--line-2); border-radius: 6px; background: #fafafa; color: var(--ink-4); font-size: 12px; }
.cover-picker { margin-bottom: 12px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cover-picker-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 9px; font-size: 12.5px; }
.cover-picker-head strong { font-size: 13px; color: var(--ink-2); }
.cover-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 250px; overflow-y: auto; padding: 1px; }
.cover-pick-item { position: relative; padding: 0; border: 2px solid transparent; border-radius: 7px; background: #f1f5f9; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; }
.cover-pick-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-pick-item:hover { border-color: var(--ink-4); }
.cover-pick-item.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cover-pick-badge { position: absolute; top: 4px; right: 4px; display: none; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cover-pick-item.is-selected .cover-pick-badge { display: inline-block; }
@media (max-width: 640px) {
    .cover-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 200px; }
}
.editor-note { margin-left: auto; align-self: center; font-size: 11.5px; color: var(--ink-4); }
.seo-details summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 2px 0 10px; }
.seo-details summary::marker { color: var(--accent); }
.seo-details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.publish-actions-sticky { position: sticky; bottom: 14px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 11px; padding: 12px; box-shadow: 0 -4px 18px rgba(17, 24, 39, .06); backdrop-filter: blur(6px); }
.publish-actions-sticky .btn-block + .btn-block { margin-top: 8px; }
.publish-actions-sticky p { margin: 8px 0 0; text-align: center; }

/* 审核详情补充 */
.article-content { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.article-content img { border-radius: 8px; margin: 1em 0; }
.article-content h2 { font-family: var(--serif); font-size: 21px; margin: 1.4em 0 .6em; }
.article-content h3 { font-size: 18px; margin: 1.2em 0 .5em; }
.article-content a { color: var(--blue); text-decoration: underline; }
.creator-review-card { padding: 20px; }
.creator-review-card + .creator-review-card { margin-top: 14px; }

/* 错误页补充 */
.error-hints { display: inline-block; text-align: left; margin: 14px auto 18px; color: var(--ink-3); font-size: 13px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (max-width: 1100px) {
    .header-search { min-width: 180px; }
    .site-nav a { padding-inline: 7px; font-size: 14px; }
    .layout-main { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
    .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .hero-lead { min-height: 380px; }
    .hero-side .story-card { grid-template-columns: 38% 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid.no-newsletter { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-subscribe { grid-column: 1 / -1; max-width: 420px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .publish-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 920px) {
    .header-inner { flex-wrap: wrap; min-height: auto; padding: 12px 0; gap: 12px; }
    .nav-toggle { display: flex; order: 2; }
    .header-search { order: 3; flex: 1 1 100%; min-width: 0; }
    .site-nav { order: 4; flex: 1 1 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 10px 8px; font-size: 14px; }
    .site-nav a.active::after { display: none; }
    .site-nav a.active { background: var(--accent-soft); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-rows: auto auto; }
    .hero-lead { min-height: 360px; }
    .layout-main { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .author-hero .author-main { flex-wrap: wrap; }
    .author-hero .btn { margin-left: 0; }
    .dash-shell { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; display: none; }
    .dash-sidebar.is-open { display: block; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-sidebar.is-open { display: block; }
    .admin-main { padding: 20px 16px 50px; }
    .two-col { grid-template-columns: 1fr; }
    .publish-layout { grid-template-columns: 1fr; }
    .publish-side { position: static; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-mobile-brand { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid.no-brand, .footer-grid.no-newsletter, .footer-grid.no-brand.no-newsletter { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .article-page { border-radius: 0; border-left: 0; border-right: 0; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container { width: calc(100% - 28px); }
    .topbar-note { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .brand-text strong { font-size: 20px; }
    .hero { padding-top: 18px; }
    .hero-lead { min-height: 320px; border-radius: 12px; }
    .hero-lead-body { padding: 22px; }
    .hero-side .story-card { grid-template-columns: 120px 1fr; }
    .hero-side .story-card .card-media { min-height: 140px; }
    .hero-side .story-card .card-body { padding: 12px; }
    .hero-side .story-card h2 { font-size: 16px; }
    .story-card.horizontal { grid-template-columns: 1fr; }
    .story-card.horizontal .card-media { aspect-ratio: 16 / 9; }
    .card-body { padding: 16px; }
    .card-body h2, .card-body h3 { font-size: 18px; }
    .grid-3, .grid-2, .grid-4, .micro-list, .related-grid, .sidebar { grid-template-columns: 1fr; }
    .section-head h2 { font-size: 21px; }
    .list-item { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
    .list-item h2 { font-size: 16px; }
    .list-item p { -webkit-line-clamp: 2; font-size: 13px; }
    .article-page { padding: 18px 16px 26px; }
    .article-title { font-size: 27px; }
    .article-body { font-size: 16px; }
    .article-body h2 { font-size: 22px; }
    .cover-three img { height: 100px; }
    .author-box { flex-direction: column; }
    .prev-next { grid-template-columns: 1fr; }
    .form-grid, .check-grid, .statement-grid { grid-template-columns: 1fr; }
    .field-row { flex-direction: column; gap: 0; }
    .auth-panel { padding: 22px 14px; }
    .auth-card { padding: 26px 20px; }
    .dash-header-tools .btn-ghost:first-child, .dash-user span { display: none; }
    .dash-header-inner { gap: 8px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 13px; }
    .stat-card .value { font-size: 22px; }
    .quick-actions { grid-template-columns: 1fr; }
    .publish-main { padding: 16px; }
    .publish-title-input { font-size: 21px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid.no-brand, .footer-grid.no-newsletter, .footer-grid.no-brand.no-newsletter { grid-template-columns: 1fr; }
    .footer-brand, .footer-subscribe { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .metric-row { grid-template-columns: 1fr; }
    .chart-bars { height: 110px; }
    .admin-toolbar { align-items: stretch; }
    .admin-toolbar .search-field { flex: 1 1 100%; }
    .admin-toolbar input, .admin-toolbar select { width: 100%; }
    .dash-title h1 { font-size: 23px; }
    .table { font-size: 12.5px; }
    .table th, .table td { padding: 9px 8px; }
    .hide-sm { display: none; }
}
@media (max-width: 920px) {
    .dash-grid-2, .dash-grid-aside { grid-template-columns: 1fr; }
    .dash-grid-2 > .panel, .dash-grid-aside > .panel { height: auto; }
    .dash-page-head { align-items: flex-start; }
    .dash-page-actions { width: 100%; }
    .publish-actions-sticky { position: static; }
    .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .auth-title { font-size: 24px; }
    .auth-card { border-radius: 14px; }
    .stat-grid-2 { grid-template-columns: 1fr; }
    .stat-value { font-size: 23px; }
    .ad-type-grid { grid-template-columns: 1fr; }
    .ad-preview { flex-direction: column; }
    .ad-preview img { width: 100%; max-height: 160px; }
    .notification-item { gap: 9px; }
    .notification-head strong { font-size: 13.5px; }
    .amount-presets { display: grid; grid-template-columns: repeat(2, 1fr); }
    .amount-chip { text-align: center; }
    .filter-search { width: 100%; }
    .filter-search input { width: auto; flex: 1 1 140px; }
    .title-input { font-size: 20px; }
    .cover-option { flex: 1 1 calc(50% - 5px); justify-content: center; }
    .form-row input[type="text"], .form-row input[type="email"], .form-row input[type="password"],
    .form-row input[type="url"], .form-row input[type="number"], .form-row select, .form-row textarea { font-size: 16px; }
}
@media print {
    .site-header, .site-footer, .sidebar, .article-actions, .comments, .ad-slot { display: none !important; }
    body { background: #fff; }
    .article-page { border: 0; box-shadow: none; padding: 0; }
}

/* ==========================================================================
   1.0.5 前端扩展：导航更多、侧边栏工具、专题、活动、支付、友情链接
   ========================================================================== */

/* 导航“更多”下拉 */
.site-nav { overflow: visible; flex-wrap: wrap; }
.nav-more { position: relative; display: inline-flex; }
.nav-more > summary {
    list-style: none; cursor: pointer; padding: 10px 9px; border-radius: 8px;
    color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 3px;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover { background: #f3f4f6; color: var(--ink); }
.nav-more > summary.active { color: var(--accent-dark); }
.nav-more[open] > summary { background: #f3f4f6; color: var(--ink); }
.nav-more-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    min-width: 190px; padding: 8px; display: grid; gap: 2px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, .16);
}
.nav-more-panel a { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 8px; font-size: 14px; }
.nav-more-panel a:hover { background: #f6f7f9; color: var(--accent-dark); }
.nav-more-panel a.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-icon { font-size: 13px; opacity: .8; }

/* 侧边栏快捷工具 */
.site-tools {
    position: fixed; top: 50%; transform: translateY(-50%); z-index: 35;
    display: flex; flex-direction: column; gap: 2px; padding: 6px;
    background: var(--tools-bg, #111827); color: var(--tools-color, #fff);
    border-radius: 14px; box-shadow: 0 14px 40px rgba(17, 24, 39, .28);
}
.site-tools.tools-right { right: 14px; }
.site-tools.tools-left { left: 14px; }
.tool-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    width: 46px; padding: 8px 4px; border: 0; border-radius: 9px;
    background: transparent; color: inherit; font-size: 11px; line-height: 1.2;
    transition: background .16s, color .16s;
}
.tool-item:hover { background: var(--tools-accent, var(--accent)); color: #fff; }
.tool-icon { font-size: 15px; line-height: 1; }
.tool-label { font-size: 10.5px; letter-spacing: .02em; }
.tool-backtop { opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s, visibility .2s, transform .2s, background .16s; }
.tool-backtop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tool-custom { padding: 4px; font-size: 11px; text-align: center; }
.tool-custom img { border-radius: 6px; }

/* 专题列表 */
.special-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.special-card {
    display: flex; flex-direction: column; overflow: hidden; color: inherit;
    background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.special-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #e2e6ec; color: inherit; }
.special-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1f2937, #374151); }
.special-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.special-card:hover .special-media img { transform: scale(1.04); }
.special-media-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .85); font-family: var(--serif); font-size: 26px; letter-spacing: .2em;
    background: linear-gradient(135deg, #111827, #3f3a34);
}
.special-body { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px 20px; flex: 1; }
.special-body h2 { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin: 0; }
.special-body .special-sub { color: var(--ink-3); font-size: 13px; }
.special-body p { color: var(--ink-3); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.special-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; }
.special-foot .dot::before { content: "·"; margin: 0 2px; }

/* 专题详情 */
.special-hero, .event-hero { position: relative; overflow: hidden; background: #111827; color: #fff; padding: 50px 0 44px; margin-bottom: 30px; }
.special-hero.has-cover, .event-hero.has-cover { background: #0b1220; }
.special-hero-bg, .event-hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: .38; filter: saturate(.85);
}
.special-hero::after, .event-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 18, 32, .94) 0%, rgba(11, 18, 32, .72) 62%, rgba(11, 18, 32, .5) 100%);
}
.special-hero .container, .event-hero .container { position: relative; z-index: 2; }
.special-hero .breadcrumb, .event-hero .breadcrumb { color: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.special-hero .breadcrumb a, .event-hero .breadcrumb a { color: rgba(255, 255, 255, .85); }
.special-hero .dash-eyebrow, .event-hero .dash-eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px; }
.special-hero h1, .event-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 50px); line-height: 1.3; margin: 0 0 12px; color: #fff; max-width: 900px; text-wrap: balance; }
.special-hero-sub, .event-hero-sum { color: rgba(255, 255, 255, .85); font-size: 17px; max-width: 820px; margin: 0 0 10px; }
.special-hero-desc { color: rgba(255, 255, 255, .68); max-width: 820px; margin: 0 0 18px; font-size: 14px; }
.special-hero-meta { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .62); font-size: 13px; }
.special-hero-meta .dot::before { content: "·"; margin: 0 2px; }
.special-intro { background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 26px; }
.special-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden; background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 26px; }
.special-lead-media { display: block; min-height: 300px; background: #eef0f3; }
.special-lead-media img { width: 100%; height: 100%; object-fit: cover; }
.special-lead-body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.special-lead-body h2 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.42; margin: 8px 0 12px; }
.special-lead-body p { color: var(--ink-3); font-size: 14.5px; }
.special-list .list-item h3 { font-family: var(--serif); font-size: 19px; margin: 4px 0 7px; line-height: 1.45; }

/* 活动列表 */
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.event-card {
    position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden; background: var(--paper); border: 1px solid #eef0f3;
    border-radius: var(--radius); box-shadow: var(--shadow); color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.event-cover { position: relative; display: block; min-height: 190px; overflow: hidden; background: linear-gradient(135deg, #1f2937, #4b5563); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-cover-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 16px; text-align: center; color: rgba(255, 255, 255, .88);
    font-family: var(--serif); font-size: 18px; line-height: 1.5; letter-spacing: .08em;
    overflow-wrap: anywhere;
    background: linear-gradient(140deg, #111827, #4b3a2f);
}
.event-date {
    position: absolute; left: 14px; top: 14px; z-index: 2;
    width: 58px; padding: 7px 4px; border-radius: 10px; background: rgba(255, 255, 255, .95);
    text-align: center; box-shadow: 0 6px 18px rgba(17, 24, 39, .18);
}
.event-date strong { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.05; color: var(--ink); }
.event-date span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.event-price { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.event-price.is-free { background: #dcfce7; color: #166534; }
.event-price.is-paid { background: var(--accent); color: #fff; }
.event-price.is-past { background: rgba(17, 24, 39, .72); color: #fff; }
.event-featured { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 2px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 11.5px; font-weight: 700; }
.event-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; min-width: 0; }
.event-body h2 { font-family: var(--serif); font-size: 21px; line-height: 1.42; margin: 0; }
.event-body p { color: var(--ink-3); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--ink-3); font-size: 12.5px; }
.event-meta .dot::before { content: "·"; margin: 0 2px; }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-3); font-size: 12.5px; }
.event-cta { color: var(--accent-dark); font-weight: 600; }
.event-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-grid-compact .event-card { grid-template-columns: 1fr; }
.event-grid-compact .event-cover { min-height: 150px; }
.event-grid-compact .event-body { padding: 16px 18px; }
.event-grid-compact .event-body h2 { font-size: 17px; }

/* 活动详情 */
.event-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.event-hero-meta span { display: inline-flex; align-items: baseline; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.event-hero-meta strong { color: rgba(255, 255, 255, .52); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.event-main { display: flex; flex-direction: column; gap: 20px; }
.event-main .panel, .event-side .panel { margin: 0; }
.event-side { position: sticky; top: 118px; display: flex; flex-direction: column; gap: 18px; }
.event-info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 0; }
.event-info-list div { display: flex; flex-direction: column; gap: 3px; }
.event-info-list dt { color: var(--ink-3); font-size: 12px; }
.event-info-list dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.event-signup-price { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.event-signup-price strong { font-family: var(--serif); font-size: 30px; color: var(--accent-dark); line-height: 1.2; }
.event-signup-price span { color: var(--ink-3); font-size: 12.5px; }
.event-form .form-row { margin-bottom: 12px; }
.event-signed { display: flex; flex-direction: column; gap: 8px; }
.event-signed p { margin: 0; }
.event-signed .btn { margin-top: 4px; }
.event-closed { padding: 12px 14px; border-radius: var(--radius-sm); background: #f8fafc; border: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.event-closed p { margin: 0; }
.event-notes { margin: 0; padding-left: 1.2em; }
.event-notes li { margin-bottom: 7px; }
.event-signup-tip { margin-top: 12px; }

/* 支付页 */
.payment-page { display: flex; justify-content: center; padding-top: 48px; padding-bottom: 60px; }
.payment-card {
    width: min(560px, 100%); background: var(--paper); border: 1px solid #eef0f3;
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 40px 36px; text-align: center;
}
.payment-card h1 { font-family: var(--serif); font-size: 26px; margin: 18px 0 8px; }
.payment-spinner {
    display: inline-block; width: 38px; height: 38px; border-radius: 50%;
    border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: payment-spin .8s linear infinite;
}
@keyframes payment-spin { to { transform: rotate(360deg); } }
.payment-summary { margin: 24px 0; text-align: left; border-top: 1px solid var(--line); }
.payment-summary div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.payment-summary dt { color: var(--ink-3); flex-shrink: 0; }
.payment-summary dd { margin: 0; text-align: right; font-weight: 600; word-break: break-all; }
.payment-summary .payment-amount { font-family: var(--serif); font-size: 22px; color: var(--accent-dark); }
.payment-card .btn-block { margin-top: 6px; }
.payment-result-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px;
    border-radius: 50%; font-size: 28px; font-weight: 700;
}
.payment-result.is-success .payment-result-icon { background: #dcfce7; color: #047857; }
.payment-result.is-pending .payment-result-icon { background: #fef3c7; color: #b45309; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* 友情链接 */
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card {
    display: flex; align-items: flex-start; gap: 13px; padding: 17px 18px;
    background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #dfe4ea; color: inherit; }
.link-logo {
    width: 48px; height: 48px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; overflow: hidden; background: #f3f4f6;
}
.link-logo img { width: 100%; height: 100%; object-fit: cover; }
.link-logo-fallback { font-family: var(--serif); font-size: 21px; font-weight: 800; color: var(--accent-dark); }
.link-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-body strong { font-size: 15px; }
.link-host { font-size: 11.5px; color: var(--ink-4); word-break: break-all; }
.link-desc { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-submit { margin-top: 30px; }
.link-submit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* 我的活动 */
.my-event-list { display: flex; flex-direction: column; gap: 16px; }
.my-event-card {
    display: grid; grid-template-columns: 210px minmax(0, 1fr); overflow: hidden;
    background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius); box-shadow: var(--shadow);
}
.my-event-media { display: block; min-height: 150px; background: #eef0f3; position: relative; }
.my-event-media img { width: 100%; height: 100%; object-fit: cover; }
.my-event-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.my-event-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.my-event-head h2 { font-family: var(--serif); font-size: 20px; margin: 0; line-height: 1.45; }
.my-event-body p { margin: 0; }
.my-event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }

.section-head-spaced { margin-top: 44px; }
.section-more { margin: 28px 0 0; }
.empty .btn { margin-top: 14px; }

/* 广告位补充 */
.grid-ad { margin: 6px 0 20px; }
.ad-house { border-color: #e8ebef; }
.ad-house .ad-label { background: #eef2f7; color: var(--ink-3); }

@media (max-width: 1100px) {
    .special-grid, .link-grid, .event-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .special-lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .special-lead-body { padding: 24px; }
}
@media (max-width: 920px) {
    .site-nav { overflow: visible; }
    .nav-more { width: 100%; }
    .nav-more > summary { padding: 10px 8px; }
    .nav-more-panel { position: static; min-width: 0; margin: 2px 0 6px 8px; padding: 4px 0 4px 12px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; }
    .nav-more-panel a { padding: 7px 8px; }
    .special-grid, .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-grid, .event-grid-compact { grid-template-columns: 1fr; }
    .special-lead { grid-template-columns: 1fr; }
    .special-lead-media { min-height: 240px; }
    .event-layout { grid-template-columns: 1fr; }
    .event-side { position: static; }
    .site-tools {
        top: auto; bottom: 12px; left: 12px; right: 12px; transform: none;
        flex-direction: row; justify-content: center; border-radius: 999px; padding: 5px;
    }
    .site-tools.tools-left, .site-tools.tools-right { left: 12px; right: 12px; }
    .tool-item { width: auto; min-width: 54px; flex-direction: row; gap: 5px; padding: 8px 9px; }
    .tool-label { font-size: 11px; }
    body { padding-bottom: 72px; }
    .my-event-card { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .home-databar { grid-template-columns: 1fr; }
    .databar-data { min-width: 0; }
    .databar-hot { border-right: 0; border-bottom: 1px solid var(--line); }
    .databar-stat { padding: 11px 8px; }
    .showcase-card { flex-basis: 260px; }
}
@media (max-width: 640px) {
    .databar-hot { padding: 10px 14px; gap: 10px; }
    .databar-stats { grid-template-columns: repeat(2, 1fr); }
    .databar-stat:nth-child(odd) { border-left: 0; }
    .databar-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .databar-note { white-space: normal; padding: 4px 12px 8px; }
    .showcase-tabs { width: 100%; }
    .showcase-tabs button { flex: 1; padding: 9px 10px; }
    .showcase-card { flex-basis: 82%; }
    .special-grid, .link-grid { grid-template-columns: 1fr; }
    .special-hero, .event-hero { padding: 34px 0 30px; }
    .special-intro { padding: 20px; }
    .special-lead-body { padding: 20px; }
    .event-card { grid-template-columns: 1fr; }
    .event-cover { min-height: 170px; }
    .event-grid-compact .event-cover { min-height: 150px; }
    .event-info-list { grid-template-columns: 1fr; }
    .event-hero-meta { gap: 8px 16px; }
    .link-submit-grid { grid-template-columns: 1fr; }
    .my-event-card { grid-template-columns: 1fr; }
    .my-event-media { min-height: 160px; }
    .my-event-head { flex-direction: column; gap: 6px; }
    .payment-card { padding: 30px 20px; }
    .payment-page { padding-top: 26px; }
}

/* 自媒体入驻申请 */
.apply-aside { display: grid; gap: 20px; align-content: start; }
.apply-aside .panel { margin: 0; }
.apply-aside .panel + .panel { margin-top: 0; }

/* 管理后台独立登录 */
.admin-auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(900px 500px at 15% 0%, #1f2937 0%, #0b1220 55%, #060a12 100%); padding: 40px 18px; color: var(--ink); }
.admin-auth-wrap { width: 100%; max-width: 420px; }
.admin-auth-card { background: #fff; border-radius: 18px; padding: 34px 34px 30px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.admin-auth-brand { margin-bottom: 22px; }
.admin-auth-brand .brand-text strong { color: var(--ink); }
.admin-auth-brand .brand-text small { color: var(--ink-3); }
.admin-auth-title { font-family: var(--serif); font-size: 25px; margin: 0 0 6px; }
.admin-auth-sub { color: var(--ink-3); font-size: 13.5px; margin: 0 0 22px; line-height: 1.6; }
.admin-auth-form .form-row { margin-bottom: 16px; }
.admin-auth-form .form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.admin-auth-form .form-row input { width: 100%; }
.admin-auth-note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.admin-auth-note a { color: var(--accent-dark); }
.admin-auth-foot { text-align: center; color: rgba(255,255,255,.6); font-size: 12.5px; margin: 18px 0 0; }
.admin-auth-foot a { color: rgba(255,255,255,.85); }

/* CKEditor 5 编辑器与自媒体中心布局修正 */
.dash-shell > * { min-width: 0; }
.publish-form .publish-main { min-width: 0; }
.publish-form .panel > .editor-toolbar { margin-top: 4px; }
.is-ckeditor .editor-toolbar,
.is-ckeditor #inline-image { display: none !important; }
.ck.ck-editor { width: 100%; }
.ck.ck-toolbar { border-color: var(--line-2) !important; border-radius: 9px 9px 0 0 !important; background: #fafafa !important; flex-wrap: wrap; }
.ck.ck-editor__main > .ck-editor__editable {
    min-height: 380px;
    padding: 4px 18px;
    border-color: var(--line-2) !important;
    border-radius: 0 0 9px 9px !important;
    background: #fff;
    box-shadow: none !important;
}
.ck.ck-editor__editable.ck-focused { border-color: var(--accent) !important; }
.ck.ck-content { font-family: var(--sans); font-size: 15px; line-height: 1.85; color: var(--ink); }
.ck.ck-content h2 { font-family: var(--serif); font-size: 23px; margin: 1.2em 0 .5em; }
.ck.ck-content h3 { font-family: var(--serif); font-size: 19px; margin: 1.1em 0 .45em; }
.ck.ck-content h4 { font-size: 16.5px; margin: 1em 0 .4em; }
.ck.ck-content p { margin: 0 0 .9em; }
.ck.ck-content blockquote { border-left: 3px solid var(--accent); background: var(--accent-soft); margin: 1em 0; padding: 10px 16px; color: var(--ink-2); }
.ck.ck-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ck.ck-content figure { margin: 1.2em 0; }
.ck.ck-content figcaption { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.ck.ck-content table { width: 100%; border-collapse: collapse; }
.ck.ck-content table th,
.ck.ck-content table td { border: 1px solid var(--line-2); padding: 8px 10px; }
.ck.ck-content table th { background: #f8fafc; }
.ck.ck-placeholder::before { color: #c7cbd1 !important; }

@media (max-width: 920px) {
    .ck.ck-editor__main > .ck-editor__editable { min-height: 300px; padding: 0 12px; }
    .ck.ck-toolbar { border-radius: 8px 8px 0 0 !important; }
}

/* 后台资讯编辑与 AI 助手 */
.admin-news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.admin-news-main { min-width: 0; }
.admin-news-main > .panel { margin-bottom: 20px; }
.admin-news-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-news-side .panel { margin-bottom: 0; }
.admin-news-form .ck.ck-editor__main > .ck-editor__editable { min-height: 460px; }
.ai-assist-panel .btn-block { margin-top: 10px; }
.ai-result { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.geo-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.geo-score { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 54px; border-radius: 12px; background: #f1f5f9; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 800; }
.geo-score.good { background: #dcfce7; color: #15803d; }
.geo-score.mid { background: #fef3c7; color: #b45309; }
.geo-score.low { background: #fee2e2; color: #b91c1c; }
.geo-score-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.geo-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.6; }
.geo-tips li { padding-left: 16px; position: relative; color: var(--ink-3); }
.geo-tips li::before { content: '·'; position: absolute; left: 4px; font-weight: 800; }
.geo-tips li.ok::before { content: '✓'; color: #16a34a; }
.geo-tips li.warn::before { content: '!'; color: #d97706; }
.geo-tips li.tip::before { content: '→'; color: var(--accent-dark); }
.geo-existing { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.geo-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: var(--ink-2); }
.geo-chip.good { background: #dcfce7; color: #15803d; }
.geo-chip.mid { background: #fef3c7; color: #b45309; }
.geo-chip.low { background: #fee2e2; color: #b91c1c; }
.plain-list { margin: 0; padding-left: 20px; color: var(--ink-3); font-size: 13px; line-height: 1.9; }
.plain-list code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.link.danger { color: #b91c1c; }
@media (max-width: 1100px) {
    .admin-news-layout { grid-template-columns: 1fr; }
    .admin-news-side { position: static; }
}

/* 会员中心 AI 设置与发布助手 */
.form-section-head { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-section-head h2 { margin: 0 0 4px; font-size: 16px; }
.form-section-head .field-hint { margin: 0; }
.text-danger { color: #b91c1c; }
.text-success { color: #15803d; }
.text-warning { color: #b45309; }
.text-muted { color: var(--ink-3); }
.geo-inline { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.geo-inline strong { font-family: var(--serif); font-size: 30px; font-weight: 800; line-height: 1; }
.geo-inline span { font-size: 12px; color: var(--ink-3); }
.score-success { color: #15803d; }
.score-warning { color: #b45309; }
.score-danger { color: #b91c1c; }
#creator-ai-panel .btn-block { margin-top: 10px; }
#creator-ai-panel .field-hint { margin-top: 8px; }

/* 会员管理、实名认证、后台成员与会员中心 */
.topbar-inline-form { display: inline; margin: 0; }
.topbar-inline-form button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.topbar-inline-form button:hover { color: var(--accent-dark); }
.member-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.member-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.member-stat span { font-size: 12px; color: var(--ink-3); }
.member-stat strong { font-family: var(--serif); font-size: 26px; line-height: 1; }
.table-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table-user > div { min-width: 0; }
.table-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-avatar { border-radius: 50%; object-fit: cover; background: #f1f5f9; flex: 0 0 auto; }
.badge-realname-none { background: #f1f5f9; color: var(--ink-3); }
.badge-realname-pending { background: #fef3c7; color: #b45309; }
.badge-realname-approved { background: #dcfce7; color: #15803d; }
.badge-realname-rejected { background: #fee2e2; color: #b91c1c; }
.realname-history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.realname-history-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.realname-history-item p { flex: 1 0 100%; margin: 0; }
.realname-review-form { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.realname-review-form input { padding: 5px 8px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; }
.realname-review-actions { display: flex; gap: 8px; }
.pending-preview { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); }
.change-cell { max-width: 260px; font-size: 13px; line-height: 1.5; word-break: break-word; }
.change-avatar { border-radius: 50%; object-fit: cover; vertical-align: middle; background: #f1f5f9; }
.profile-change-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.profile-change-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.profile-change-item:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-change-item .link { margin-left: auto; }
.staff-list { display: flex; flex-direction: column; gap: 18px; }
.staff-card { padding: 20px; }
.staff-card.is-self { border-color: var(--accent); }
.staff-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.staff-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.staff-edit-form { border-top: 1px solid var(--line); padding-top: 14px; }
.staff-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.inline-form-stack { display: block; margin: 0 0 8px; }
.member-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.account-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.account-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.account-identity { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.account-identity img { border-radius: 50%; object-fit: cover; }
.account-identity strong { display: block; font-size: 16px; }
.account-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.account-links a { padding: 8px 10px; border-radius: 8px; background: var(--surface-2, #f8fafc); }
.account-links a:hover { color: var(--accent-dark); }
@media (max-width: 1100px) {
    .member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .member-stats { grid-template-columns: 1fr; }
}

/* 模板样式管理 */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.theme-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.theme-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.theme-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.theme-card header strong { display: block; font-size: 15px; }
.theme-card header small { display: block; margin-top: 2px; }
.theme-card p { margin: 0; }
.theme-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.code-area { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.65; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #0f172a; color: #e2e8f0; resize: vertical; tab-size: 4; }
.code-area:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.code-area-tall { min-height: 560px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 700px) {
    .code-area-tall { min-height: 360px; }
}

/* ==========================================================================
   1.1.5 基础样式优化：可访问性、换行与移动端细节
   ========================================================================== */

:root {
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --header-offset: 112px;
}

html {
    scroll-padding-top: var(--header-offset);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

[id] {
    scroll-margin-top: var(--header-offset);
}

img {
    background-color: #eef0f3;
}

.story-card .card-media img,
.showcase-media img,
.list-item img {
    transition: transform .5s ease;
}

.story-card:hover .card-media img,
.showcase-card:hover .showcase-media img,
.list-item:hover img {
    transform: scale(1.015);
}

.table-wrap {
    -webkit-overflow-scrolling: touch;
}

.site-nav a,
.nav-more > summary,
.nav-toggle,
.header-search button {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero-lead {
        min-height: 340px;
    }

    .hero-lead-body {
        padding: 24px 20px;
    }

    .card-body {
        padding: 16px;
    }

    .story-card.horizontal {
        grid-template-columns: 1fr;
    }

    .story-card.horizontal .card-media {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .footer-grid {
        gap: 24px;
    }

    .site-tools {
        display: none;
    }
}

/* 前端模板包选择 */
.style-package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.style-package-card { position: relative; display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.style-package-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.style-package-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--surface); }
.style-package-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.style-package-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.style-package-swatch { display: flex; flex: 0 0 46px; flex-direction: column; align-self: stretch; min-height: 104px; border: 1px solid var(--line); overflow: hidden; }
.style-package-swatch i { flex: 1; min-height: 24px; }
.style-package-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.style-package-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.style-package-head strong { font-size: 14.5px; }
.style-package-desc { color: var(--ink-3); font-size: 12.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.style-package-meta { color: var(--ink-4); font-size: 11.5px; }
@media (max-width: 640px) {
    .style-package-grid { grid-template-columns: 1fr; }
    .style-package-swatch { flex-basis: 36px; min-height: 88px; }
}

.theme-card-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.theme-card-swatch { display: flex; height: 10px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.theme-card-swatch i { flex: 1; }

/* 1.1.6 首页焦点、数据条、频道精选与侧栏微头条 */
.home-focus { padding: 30px 0 4px; }
.focus-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(280px, .82fr); gap: 22px; align-items: stretch; }
.focus-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.focus-lead { position: relative; display: flex; align-items: flex-end; width: var(--focus-image-width, 100%); height: var(--focus-image-height, 430px); min-height: 220px; margin-inline: auto; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.focus-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.focus-lead:hover img { transform: scale(1.03); }
.focus-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,.05) 28%, rgba(17,24,39,.82) 100%); }
.focus-slider::after { display: none; }
.focus-slide { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; text-decoration: none; transition: opacity .65s ease; }
.focus-slide.active { z-index: 2; opacity: 1; visibility: visible; }
.focus-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,.05) 28%, rgba(17,24,39,.84) 100%); }
.focus-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.focus-slider:hover .focus-slide.active img { transform: scale(1.03); }
.focus-slide .focus-lead-caption { z-index: 2; }
.focus-dots { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 6px; }
.focus-dots button { width: 18px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s ease, background .25s ease; }
.focus-dots button.active { width: 30px; background: #fff; }
.focus-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.focus-lead-caption { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; width: 100%; padding: 24px; color: #fff; }
.focus-lead-caption strong { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; font-weight: 700; }
.focus-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.focus-lead .focus-kicker { color: #f3c9cf; }
.focus-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.focus-sub { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid #eef0f3; border-radius: var(--radius); }
.focus-sub img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.focus-sub:hover img { transform: scale(1.03); }
.focus-sub-caption { display: block; padding: 10px 12px; font-size: 13px; line-height: 1.5; font-weight: 600; }
.focus-center { display: flex; flex-direction: column; min-width: 0; padding: 2px 4px; }
.focus-center-top { display: block; padding-bottom: 13px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.focus-center-top strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.focus-list { display: flex; flex-direction: column; min-width: 0; }
.focus-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.55; }
.focus-item:last-child { border-bottom: 0; }
.focus-item-bullet { flex-shrink: 0; width: 5px; height: 5px; margin-top: 8px; background: var(--accent); }
.focus-item a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.focus-item a:hover { color: var(--accent-dark); }
.focus-ad { margin: 10px 0; }
.focus-ad .ad-slot { margin: 0; border-radius: var(--radius-sm); }
.focus-hot { min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.focus-hot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.focus-hot-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.focus-hot-tabs { display: flex; gap: 4px; }
.focus-hot-tabs button { padding: 3px 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-3); font-size: 11px; line-height: 1.4; cursor: pointer; }
.focus-hot-tabs button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.focus-hot-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.focus-hot-item { display: grid; grid-template-columns: 20px 76px minmax(0, 1fr); align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.focus-hot-rank { font-family: var(--serif); font-size: 17px; font-weight: 800; color: var(--ink-3); text-align: center; }
.focus-hot-item:nth-child(-n+3) .focus-hot-rank { color: var(--accent); }
.focus-hot-thumb { display: block; width: 76px; height: 48px; overflow: hidden; background: #eef0f3; }
.focus-hot-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.focus-hot-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.focus-hot-body a { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.45; font-weight: 600; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.focus-hot-body a:hover { color: var(--accent-dark); }
.focus-hot-meta { font-size: 10.5px; color: var(--ink-3); }
.databar-data { flex-direction: row; align-items: stretch; justify-content: flex-end; min-width: 0; }
.databar-note { display: flex; align-items: center; margin: 0 0 0 auto; padding: 6px 14px; border-top: 0; border-left: 1px solid var(--line); color: var(--ink-3); font-size: 11px; line-height: 1.5; text-align: right; white-space: nowrap; }
.channel-main { min-width: 0; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 38px; }
.channel-block { min-width: 0; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.channel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.channel-head h3 { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.channel-more { flex-shrink: 0; color: var(--ink-3); font-size: 12px; }
.channel-more:hover { color: var(--accent-dark); }
.channel-lead { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 12px; }
.channel-lead-media { display: block; overflow: hidden; background: #eef0f3; }
.channel-lead-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.channel-lead:hover img { transform: scale(1.03); }
.channel-lead strong { font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.channel-lead:hover strong { color: var(--accent-dark); }
.channel-list { margin: 0; padding: 0; list-style: none; }
.channel-list li { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.5; }
.channel-list li:last-child { border-bottom: 0; }
.channel-bullet { flex-shrink: 0; width: 4px; height: 4px; margin-top: 8px; background: var(--ink-3); }
.channel-list a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.channel-list a:hover { color: var(--accent-dark); }
.micro-side-list { margin: 0; padding: 0; list-style: none; }
.micro-side-list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.micro-side-list li:last-child { border-bottom: 0; }
.micro-side-list img { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.micro-side-list > li > div { min-width: 0; }
.micro-side-text { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.5; font-weight: 600; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.micro-side-text:hover { color: var(--accent-dark); }
.micro-side-meta { display: block; margin-top: 4px; color: var(--ink-3); font-size: 11px; }
.panel-more { display: block; margin-top: 10px; color: var(--accent-dark); font-size: 12px; text-align: right; }
@media (max-width: 1180px) {
    .focus-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .focus-hot { grid-column: 1 / -1; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .focus-hot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
    .databar-data { flex-direction: column; }
    .databar-note { border-top: 1px solid var(--line); border-left: 0; margin: 0; padding: 5px 12px 7px; text-align: right; }
}
@media (max-width: 860px) {
    .focus-grid { grid-template-columns: 1fr; gap: 18px; }
    .focus-lead { width: 100%; }
    .focus-dots { right: 12px; bottom: 12px; }
    .focus-hot { grid-column: auto; }
    .focus-hot-list { grid-template-columns: 1fr; }
    .channel-grid { grid-template-columns: 1fr; gap: 0; }
    .channel-block { padding-bottom: 22px; }
    .channel-block + .channel-block { margin-top: 22px; }
}
@media (max-width: 640px) {
    .home-focus { padding-top: 18px; }
    .focus-lead { min-height: 280px; }
    .focus-lead-caption { padding: 18px; }
    .focus-subs { gap: 10px; }
    .focus-sub-caption { font-size: 12px; }
    .channel-lead { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
    .channel-lead strong { font-size: 15px; }
    .channel-head h3 { font-size: 20px; }
    .databar-note { white-space: normal; }
}

/* 1.2.0 页头广告 · 品牌产品 · 页脚广告 */
.home-header-ad { margin: 18px 0 6px; }
.home-header-ad-image .ad-slot { margin: 0; }
.ad-home_header { border-radius: var(--radius); }
.ad-home_header > a { display: block; position: relative; padding: 0; }
.ad-home_header img { width: 100%; height: var(--header-ad-height, 230px); max-height: var(--header-ad-height, 230px); object-fit: cover; border-radius: 0; }
.ad-home_header > a::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 32%, rgba(0,0,0,.62) 100%); pointer-events: none; }
.ad-home_header .ad-copy { position: absolute; left: 30px; right: 30px; bottom: 22px; z-index: 1; gap: 6px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.ad-home_header .ad-copy strong { font-family: var(--serif); font-size: 26px; line-height: 1.35; }
.ad-home_header .ad-desc { color: rgba(255,255,255,.86); font-size: 14px; }
.ad-home_header.ad-no-image > a { padding: 22px 28px; }
.ad-home_header.ad-no-image > a::after { display: none; }
.ad-home_header.ad-no-image .ad-copy { position: static; color: var(--ink); text-shadow: none; }
.ad-home_header.ad-no-image .ad-desc { color: var(--ink-3); }

.ad-home_header_text { display: flex; align-items: center; gap: 16px; margin: 10px 0 0; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ad-home_header_text .ad-label { position: static; flex: none; margin-left: auto; }
.ad-home_header_text .ad-text-links { display: flex; flex: 1; flex-wrap: wrap; gap: 6px 24px; min-width: 0; }
.ad-home_header_text .ad-text-links a { max-width: 100%; overflow: hidden; color: var(--ink-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ad-home_header_text .ad-text-links a:hover { color: var(--accent-dark); }

.home-focus + .container .home-databar { margin-top: 8px; }
.home-brands { margin: 28px 0 6px; }
.brands-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding-top: 14px; border-top: 3px solid var(--ink); }
.brands-kicker { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.brands-head h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 24px; }
.brands-head p { max-width: 52%; margin: 0 0 4px; color: var(--ink-3); font-size: 12.5px; text-align: right; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.brand-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.brand-card-head { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; overflow: hidden; background: #f1f5f9; border: 1px solid var(--line); border-radius: 12px; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo-fallback { color: var(--ink-3); font-family: var(--serif); font-size: 24px; font-weight: 800; }
.brand-title { min-width: 0; }
.brand-title h3 { margin: 0 0 2px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.brand-site { color: var(--accent-dark); font-size: 11.5px; }
.brand-desc { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink-3); font-size: 12.5px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.brand-products { display: flex; flex-direction: column; gap: 8px; }
.brand-product { display: flex; align-items: center; gap: 10px; padding: 8px; background: #fafafa; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.brand-product:hover { color: inherit; border-color: var(--line-2); }
.brand-product-media { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; background: #eef2f7; border-radius: 7px; }
.brand-product-media img { width: 100%; height: 100%; object-fit: cover; }
.brand-product-placeholder { color: var(--ink-4); font-weight: 800; }
.brand-product-body { display: flex; flex-direction: column; min-width: 0; }
.brand-product-body strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.brand-product-body span { display: -webkit-box; overflow: hidden; color: var(--ink-3); font-size: 11.5px; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.brand-contact { margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-3); font-size: 11.5px; }
.brand-contact span { margin-right: 6px; color: var(--accent-dark); font-weight: 700; }
.home-footer-ad { margin: 26px 0 0; }
.home-footer-ad .ad-slot { margin: 0; }
body:has(.home-footer-ad) .site-main { padding-bottom: 0; }
body:has(.home-footer-ad) .site-footer { margin-top: 28px; }

@media (max-width: 900px) {
    .brands-head { display: block; }
    .brands-head p { max-width: none; margin-top: 6px; text-align: left; }
    .ad-home_header img { height: calc(var(--header-ad-height, 230px) * .74); max-height: calc(var(--header-ad-height, 230px) * .74); }
}
@media (max-width: 560px) {
    .ad-home_header img { height: calc(var(--header-ad-height, 230px) * .64); max-height: calc(var(--header-ad-height, 230px) * .64); }
    .ad-home_header .ad-copy { left: 14px; right: 14px; bottom: 12px; }
    .ad-home_header .ad-copy strong { font-size: 18px; }
    .ad-home_header .ad-desc { display: none; }
    .ad-home_header_text { flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
    .ad-home_header_text .ad-label { margin-left: 0; }
    .brands-head h2 { font-size: 20px; }
    .brand-grid { grid-template-columns: 1fr; }
}

/* 1.2.0 创作者品牌产品与后台权限矩阵 */
.creator-business-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.permission-matrix th:first-child,
.permission-matrix td:first-child { width: 220px; text-align: left; }
.permission-matrix th,
.permission-matrix td { text-align: center; vertical-align: top; }
.permission-matrix .checkline { justify-content: center; }
@media (max-width: 1024px) {
    .creator-business-grid { grid-template-columns: 1fr; }
}

/* 1.2.0 页脚订阅区社媒图标 */
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    opacity: .82;
    transition: opacity .18s ease, border-color .18s ease, background .18s ease;
}

.footer-social-icons a:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .55);
    opacity: 1;
}

.footer-social-icons svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.footer-social-icons img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
}

@media (max-width: 560px) {
    .footer-social-icons { gap: 6px; }
    .footer-social-icons a { width: 28px; height: 28px; }
}

/* 1.2.1 企业会员品牌主页与作者主页品牌展示 */
.author-brands { margin: 24px 0 2px; }
.author-brands .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.brand-title h3 a { color: inherit; }
.brand-title h3 a:hover { color: var(--accent-dark); }
.brand-more { display: inline-block; margin-top: auto; padding-top: 10px; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.brand-more:hover { color: var(--accent); }

.brand-hero { padding: 24px 0 26px; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); border-bottom: 1px solid var(--line); }
.brand-hero-main { display: flex; align-items: flex-start; gap: 24px; margin-top: 18px; }
.brand-hero-logo { display: flex; flex: none; align-items: center; justify-content: center; width: 96px; height: 96px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.brand-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-hero-logo .brand-logo-fallback { font-size: 42px; }
.brand-hero-body { min-width: 0; }
.brand-hero-body h1 { margin: 4px 0 10px; font-family: var(--serif); font-size: 34px; line-height: 1.25; }
.brand-hero-desc { max-width: 860px; margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.8; white-space: pre-line; }
.brand-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.brand-contact-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-bottom: 26px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.brand-contact-card div { display: flex; flex-direction: column; gap: 4px; }
.brand-contact-card div span { color: var(--ink-3); font-size: 11.5px; letter-spacing: .06em; }
.brand-contact-card div strong { font-size: 14px; }
.brand-contact-card p { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-3); font-size: 11.5px; }

.brand-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.brand-product-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.brand-product-card-media { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f5f9; }
.brand-product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.brand-product-card-media .brand-product-placeholder { font-family: var(--serif); font-size: 44px; }
.brand-product-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.brand-product-card-body h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.brand-product-card-body p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink-3); font-size: 12.5px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

@media (max-width: 640px) {
    .brand-hero-main { gap: 14px; }
    .brand-hero-logo { width: 68px; height: 68px; border-radius: 14px; }
    .brand-hero-body h1 { font-size: 24px; }
    .brand-contact-card { grid-template-columns: 1fr; }
    .brand-product-grid { grid-template-columns: 1fr; }
}
