/* ============================================================
   小小作家 主样式表  style.css
   青少年文学创作平台 - 简洁/温暖/易读/响应式
   ============================================================ */

:root {
  --c-primary: #e8673c;          /* 主色 暖橙 */
  --c-primary-dark: #d0562c;
  --c-primary-light: #fff3ec;
  --c-secondary: #4a7c59;         /* 文学绿 */
  --c-accent: #f0a93b;            /* 金 黄 */
  --c-text: #2d2a26;
  --c-text-light: #6b6660;
  --c-text-muted: #9b958d;
  --c-bg: #faf7f2;
  --c-bg-card: #ffffff;
  --c-border: #ebe4da;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(45, 42, 38, .06);
  --shadow-hover: 0 6px 22px rgba(45, 42, 38, .12);
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary); }
img { max-width: 100%; display: block; }

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

/* ---------- 顶部导航 ---------- */
.header {
  background: var(--c-bg-card);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--c-primary); white-space: nowrap; }
.logo .logo-icon { font-size: 26px; }
.logo .logo-sub { font-size: 12px; color: var(--c-text-muted); font-weight: 400; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-weight: 500;
}
.nav a:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.nav a.active { background: var(--c-primary); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--c-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--c-primary); color: var(--c-primary-dark); }
.btn-outline:hover { background: var(--c-primary-light); }
.btn-ghost { background: var(--c-bg); color: var(--c-text); }
.btn-ghost:hover { background: var(--c-border); color: var(--c-text); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--c-text); }
.form-label .req { color: var(--c-primary); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(232,103,60,.12); }
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.8; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b958d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-hint { font-size: 12px; color: var(--c-text-muted); margin-top: 4px; }
.form-error { font-size: 13px; color: #d9534f; margin-top: 4px; }

/* ---------- 卡片 ---------- */
.card { background: var(--c-bg-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 20px; }

/* ---------- 提示消息 ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #eaf6ee; color: #2d7a4a; border: 1px solid #c5e6d2; }
.alert-error { background: #fdeeea; color: #c0392b; border: 1px solid #f5c6bd; }
.alert-info { background: #eef4fb; color: #2c6fae; border: 1px solid #c9defa; }

/* ---------- 标签/徽章 ---------- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}
.tag-green { background: #eaf6ee; color: var(--c-secondary); }
.tag-gold { background: #fdf3e0; color: #b8860b; }
.tag-gray { background: #f0ede8; color: var(--c-text-light); }
.tag-blue { background: #eef4fb; color: #2c6fae; }

.badge {
  display: inline-block; padding: 1px 7px; border-radius: 10px;
  font-size: 11px; background: var(--c-primary); color: #fff;
}

/* 文体色 */
.cat-prose { color: var(--c-secondary); }
.cat-poetry { color: #9b59b6; }
.cat-novel { color: var(--c-accent); }
.cat-prose-bg { background: #eaf6ee; color: var(--c-secondary); }
.cat-poetry-bg { background: #f5edf9; color: #7e3f95; }
.cat-novel-bg { background: #fdf3e0; color: #a9781f; }

/* ---------- 页脚 ---------- */
.footer { background: #2d2a26; color: #bcb6ad; padding: 40px 0 24px; margin-top: 60px; font-size: 13px; }
.footer a { color: #bcb6ad; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #444; padding-top: 18px; text-align: center; color: #7a756c; }

/* ============================================================
   首页
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #fff3ec 0%, #ffe9d6 100%);
  border-radius: 0 0 24px 24px;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: 36px; line-height: 1.3; color: var(--c-text); margin-bottom: 16px; }
.hero h1 .hl { color: var(--c-primary); }
.hero p { font-size: 17px; color: var(--c-text-light); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-deco { position: absolute; right: -40px; top: -20px; font-size: 240px; opacity: .08; }

.section { padding: 40px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title .bar { width: 4px; height: 22px; background: var(--c-primary); border-radius: 2px; }
.section-more { font-size: 14px; color: var(--c-text-light); }

/* 分类入口卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: var(--c-bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--c-primary);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-card.c2 { border-top-color: var(--c-secondary); }
.cat-card.c3 { border-top-color: var(--c-accent); }
.cat-card .emoji { font-size: 40px; margin-bottom: 12px; }
.cat-card h3 { font-size: 20px; margin-bottom: 6px; }
.cat-card p { color: var(--c-text-light); font-size: 14px; }
.cat-card .count { color: var(--c-primary); font-weight: 600; }

/* 作品网格 */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  background: var(--c-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
blockquote {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 40px;
    margin-inline-end: 40px;
    unicode-bidi: isolate;
}
.ds-markdown-paragraph {
    margin: 16px 0
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.work-card .thumb { height: 150px; background: linear-gradient(135deg,var(--c-primary-light),#ffe0c9); display: flex; align-items: center; justify-content: center; font-size: 50px; color: rgba(232,103,60,.5); position: relative; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .thumb .cat-flag { position: absolute; top: 10px; left: 10px; }
.work-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.work-card .title { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.work-card .excerpt { font-size: 13px; color: var(--c-text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.work-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--c-text-muted); }
.work-card .meta .author { display: flex; align-items: center; gap: 6px; }
.work-card .meta .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary-light); object-fit: cover; }
.work-card .stats { display: flex; gap: 12px; }

/* 榜单 */
.rank-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rank-box { background: var(--c-bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.rank-box h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--c-border); }
.rank-item:last-child { border-bottom: none; }
.rank-item .no { width: 22px; height: 22px; border-radius: 50%; background: var(--c-border); color: var(--c-text-light); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.rank-item .no.top1 { background: #f0a93b; color: #fff; }
.rank-item .no.top2 { background: #b8c0c9; color: #fff; }
.rank-item .no.top3 { background: #cd9b6c; color: #fff; }
.rank-item .title { flex: 1; font-size: 14px; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .views { font-size: 12px; color: var(--c-text-muted); }

/* 学段入口 */
.grade-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.grade-tab { padding: 8px 22px; border-radius: 20px; background: var(--c-bg-card); border: 1px solid var(--c-border); font-size: 14px; cursor: pointer; color: var(--c-text); transition: all .2s; }
.grade-tab:hover, .grade-tab.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ============================================================
   作品详情
   ============================================================ */
.work-detail { padding: 30px 0; }
.work-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }
.article { background: var(--c-bg-card); border-radius: var(--radius); padding: 40px 48px; box-shadow: var(--shadow); }
.article .article-head { border-bottom: 1px solid var(--c-border); padding-bottom: 20px; margin-bottom: 28px; }
.article h1.article-title { font-size: 28px; line-height: 1.4; margin-bottom: 14px; }
.article .article-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--c-text-muted); }
.article .article-info .author-info { display: flex; align-items: center; gap: 8px; }
.article .article-info .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-content { font-size: 17px; line-height: 2; color: #3a3631; }
.article-content p { margin-bottom: 1.2em; text-indent: 2em; }
.article-content.poetry p { text-indent: 0; text-align: center; }
.article-content h2, .article-content h3 { margin: 1.5em 0 .6em; }
.article-content img { border-radius: var(--radius-sm); margin: 1em auto; }
.article-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.original-statement { background: var(--c-primary-light); color: var(--c-primary-dark); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13px; }
.action-bar { display: flex; gap: 12px; flex-wrap: wrap; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: var(--c-bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sidebar-box h3 { font-size: 16px; margin-bottom: 14px; }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.author-card .avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 3px solid var(--c-primary-light); }
.author-card .nick { font-size: 16px; font-weight: 600; }
.author-card .bio { font-size: 13px; color: var(--c-text-light); margin-top: 6px; }
.author-stats { display: flex; justify-content: space-around; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.author-stats .stat-item { text-align: center; }
.author-stats .num { font-size: 18px; font-weight: 700; color: var(--c-text); }
.author-stats .lbl { font-size: 12px; color: var(--c-text-muted); }

/* 评论区 */
.comments-section { margin-top: 30px; }
.comment-form textarea { margin-bottom: 10px; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--c-border); display: flex; gap: 12px; }
.comment-item .avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.comment-item .c-body { flex: 1; }
.comment-item .c-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment-item .c-name { font-weight: 600; color: var(--c-text); }
.comment-item .c-time { color: var(--c-text-muted); }
.comment-item .c-content { margin-top: 4px; font-size: 14px; color: var(--c-text); }
.comment-item.review-item { background: #f6fbf7; border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; border-bottom: none; border-left: 3px solid var(--c-secondary); }
.review-item .review-block { font-size: 13px; margin-top: 6px; }
.review-item .review-block strong { color: var(--c-secondary); }

/* ============================================================
   用户中心
   ============================================================ */
.user-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 30px 0; }
.user-sidebar { background: var(--c-bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 84px; height: fit-content; }
.user-mini { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); margin-bottom: 12px; }
.user-mini .avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; object-fit: cover; }
.user-mini .nick { font-weight: 600; }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--c-text); font-size: 14px; }
.user-menu a:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.user-menu a.active { background: var(--c-primary); color: #fff; }
.user-content { background: var(--c-bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.user-content h2.page-title { font-size: 20px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }

/* 数据统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--c-bg-card); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat-card .num { font-size: 24px; font-weight: 700; color: var(--c-primary); }
.stat-card .lbl { font-size: 13px; color: var(--c-text-light); margin-top: 4px; }

/* 列表表头 */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.filter-tabs { display: flex; gap: 6px; }
.filter-tab { padding: 6px 14px; border-radius: 20px; font-size: 13px; background: var(--c-bg); color: var(--c-text-light); cursor: pointer; }
.filter-tab.active { background: var(--c-primary); color: #fff; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--c-border); color: var(--c-text-light); font-weight: 600; }
table.data-table td { padding: 12px 10px; border-bottom: 1px solid var(--c-border); }
table.data-table tr:hover { background: #fbfaf8; }
.row-actions { display: flex; gap: 8px; }
.status-dot { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.status-approved::before { background: var(--c-secondary); }
.status-pending::before { background: var(--c-accent); }
.status-rejected::before, .status-offline::before { background: #d9534f; }
.status-draft::before { background: var(--c-text-muted); }

/* ============================================================
   分页
   ============================================================ */
.pagination ul { list-style: none; display: flex; justify-content: center; gap: 4px; margin-top: 30px; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: block; padding: 7px 13px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); font-size: 14px; color: var(--c-text); background: #fff; }
.pagination li a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination li.active span { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination li.disabled span { color: var(--c-text-muted); }

/* ============================================================
   编辑器
   ============================================================ */
 .editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; background: #f7f4ef; border: 1px solid var(--c-border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; align-items: center; }
 .editor-toolbar .tb-btn { width: 34px; height: 30px; border: none; background: transparent; border-radius: 4px; cursor: pointer; font-size: 15px; color: var(--c-text-light); display: flex; align-items: center; justify-content: center; transition: all .15s; }
 .editor-toolbar .tb-btn:hover { background: #fff; color: var(--c-primary); }
 .editor-toolbar .tb-btn:active { background: var(--c-primary); color: #fff; }
 .editor-toolbar .tb-sep { width: 1px; height: 22px; background: var(--c-border); margin: 0 3px; flex-shrink: 0; }
 .editor-toolbar .tb-select { height: 30px; border: 1px solid var(--c-border); border-radius: 4px; background: #fff; font-size: 13px; color: var(--c-text); cursor: pointer; padding: 0 4px; outline: none; }
 .editor-toolbar .tb-select:hover { border-color: var(--c-primary); }
 .editor-toolbar .tb-color-label { position: relative; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--c-text-light); border-radius: 4px; }
 .editor-toolbar .tb-color-label:hover { background: #fff; color: var(--c-primary); }
 .editor-toolbar .tb-color-label .tb-color-bar { display: block; width: 16px; height: 3px; background: var(--c-primary); border-radius: 2px; margin-top: 1px; }
 .editor-toolbar .tb-color { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
 .editor-area { border: 1px solid var(--c-border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; }
 .editor-area textarea { display: none; }
 .rt-editor { width: 100%; min-height: 420px; border: none; padding: 18px 24px; font-size: 16px; line-height: 2; resize: vertical; font-family: var(--font); outline: none; overflow-y: auto; }
 .rt-editor:focus { outline: none; }
 .rt-editor:empty:before { content: attr(data-placeholder); color: var(--c-text-muted); }
 .rt-editor h2 { font-size: 1.5em; font-weight: 700; margin: 0.8em 0 0.4em; }
 .rt-editor h3 { font-size: 1.25em; font-weight: 700; margin: 0.8em 0 0.4em; }
 .rt-editor h4 { font-size: 1.1em; font-weight: 700; margin: 0.8em 0 0.4em; }
 .rt-editor p { margin: 0 0 0.5em; }
 .rt-editor blockquote { border-left: 4px solid var(--c-primary); margin: 1em 0; padding: 0.5em 1em; color: var(--c-text-light); background: #faf8f4; border-radius: 0 4px 4px 0; }
 .rt-editor ul, .rt-editor ol { margin: 0.5em 0; padding-left: 2em; }
 .rt-editor li { margin: 0.2em 0; }
 .rt-editor pre { background: #f5f5f5; padding: 1em; border-radius: 4px; overflow-x: auto; font-size: 14px; margin: 0.8em 0; }
 .rt-editor img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.5em 0; }
 .rt-editor hr { border: none; border-top: 2px dashed var(--c-border); margin: 1.5em 0; }
 .rt-editor a { color: var(--c-primary); text-decoration: underline; }
 .editor-status { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--c-text-muted); }

/* ============================================================
   后台
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: #2d2a26; color: #bcb6ad; padding: 0; }
.admin-brand { padding: 18px 20px; color: #fff; font-weight: 700; font-size: 17px; border-bottom: 1px solid #3d3a36; }
.admin-nav { padding: 12px 0; }
.admin-nav a { display: block; padding: 11px 20px; color: #bcb6ad; font-size: 14px; border-left: 3px solid transparent; }
.admin-nav a:hover { background: #3d3a36; color: #fff; }
.admin-nav a.active { background: var(--c-primary); color: #fff; border-left-color: var(--c-primary-dark); }
.admin-nav .nav-title { padding: 14px 20px 6px; font-size: 12px; color: #6a655d; text-transform: uppercase; }
.admin-main { background: var(--c-bg); }
.admin-topbar { background: #fff; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--c-border); }
.admin-content { padding: 24px; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.admin-card h3 { font-size: 16px; margin-bottom: 16px; }

/* 大屏数字看板 */
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.kpi .kpi-num { font-size: 28px; font-weight: 700; color: var(--c-primary); }
.kpi .kpi-lbl { color: var(--c-text-light); font-size: 13px; margin-top: 4px; }
.kpi .kpi-icon { font-size: 24px; opacity: .5; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .work-detail-grid { grid-template-columns: 1fr; }
  .cat-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rank-list { grid-template-columns: 1fr; }
  .user-layout, .admin-layout { grid-template-columns: 1fr; }
  .user-sidebar, .admin-sidebar { position: static; }
  .admin-sidebar { display: flex; flex-wrap: wrap; }
  .admin-nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 6px; }
  .nav a { white-space: nowrap; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 26px; }
  .cat-grid, .work-grid { grid-template-columns: 1fr; }
  .stat-grid, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .article { padding: 24px 18px; }
  .article h1.article-title { font-size: 22px; }
  .article-content { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 18px; }
  .table-wrap { overflow-x: auto; }
}
