:root {
  --bg: #15171c;
  --surface: #1d2026;
  --surface-2: #23272f;
  --text: #e7e8ea;
  --text-2: #a6a8ad;
  --text-3: #6b6e76;
  --border: #2c3038;
  --accent: #6aa6e6;
  --ai: #b3aef0;   --ai-bg: rgba(124,119,221,0.16);
  --tech: #8fbdf0; --tech-bg: rgba(55,138,221,0.16);
  --auto: #6fd3ad; --auto-bg: rgba(29,158,117,0.16);
  --hot: #f0a384;  --hot-bg: rgba(216,90,48,0.18);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 24px 24px 64px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #9b7cf0);
  box-shadow: 0 0 0 0 rgba(155,124,240,.55); animation: brandpulse 2.4s ease-out infinite; }
@keyframes brandpulse { 0% { box-shadow: 0 0 0 0 rgba(155,124,240,.5); } 70% { box-shadow: 0 0 0 9px rgba(155,124,240,0); } 100% { box-shadow: 0 0 0 0 rgba(155,124,240,0); } }
.brand-name { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.brand-sub { font-size: 13px; color: var(--text-3); }
/* 导航统一靠右（与首页一致：品牌在左、导航在右） */
.site-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.search-box { display: flex; gap: 8px; flex: 0 0 auto; width: 220px; }
.search-box input {
  flex: 1; height: 38px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; outline: none;
}
.search-box input::placeholder { color: var(--text-3); }
/* 日期输入统一用深色配色：文字与日历图标自动变浅、清晰可见（别再叠 invert，会把它弄暗）。图标放大更好点。 */
input[type="date"] { color-scheme: dark; }
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none; opacity: .9; cursor: pointer; transform: scale(1.2); transform-origin: center; }
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
/* 页内搜索框（要闻 / 检索结果页，替代原顶栏检索）：带放大镜图标，无文字按钮 */
.news-search { display: flex; gap: 10px; margin: 0 0 20px; max-width: 560px; }
.news-search .ns-field { position: relative; flex: 1; }
.news-search .ns-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.news-search input { width: 100%; height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.news-search input::placeholder { color: var(--text-3); }
.news-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106,166,230,.22); }
.news-search input:focus + .ns-ic, .news-search .ns-field:focus-within .ns-ic { color: var(--accent); }
.news-search button { flex: 0 0 auto; width: 48px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 12px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--accent), #9b7cf0);
  box-shadow: 0 6px 16px -8px rgba(106,166,230,.7); transition: transform .12s, box-shadow .12s; }
.news-search button svg { width: 19px; height: 19px; }
.news-search button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(155,124,240,.8); }
.news-search button:active { transform: scale(.96); }

/* 随笔列表：工具条（搜索 + 排序） */
.blog-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.blog-search { flex: 1; min-width: 240px; margin: 0; max-width: none; }
.blog-sort { display: flex; gap: 8px; }
.blog-sort-btn { padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; white-space: nowrap;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, color .15s, background .15s; }
.blog-sort-btn:hover { border-color: var(--text-3); color: var(--text); }
.blog-sort-btn.on { border-color: var(--accent); color: var(--text); font-weight: 600; background: rgba(106,166,230,.12); }
.blog-result-hint { font-size: 13px; color: var(--text-3); margin: -2px 0 14px; }
.blog-result-hint a { color: var(--accent); }

/* 随笔列表：带封面缩略的卡片 */
.blog-list { display: flex; flex-direction: column; gap: 14px; }
.blog-card { display: flex; gap: 18px; text-decoration: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; padding: 14px;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 34px -20px rgba(0,0,0,.7); }
.blog-card-cover { flex: 0 0 200px; border-radius: 11px; overflow: hidden; align-self: stretch; min-height: 110px; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.blog-card-title { margin: 2px 0 0; font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.4; }
.blog-card-excerpt { margin: 8px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--text-3); }

/* 随笔正文里的图片（封面/插图） */
.post-content img { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 4px 0 20px; }
@media (max-width: 600px) {
  .blog-card { flex-direction: column; gap: 12px; }
  .blog-card-cover { flex-basis: auto; width: 100%; aspect-ratio: 2 / 1; min-height: 0; }
}
.search-box input:focus { border-color: var(--accent); }
.search-box button {
  height: 38px; padding: 0 16px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text);
}
.search-box button:hover { background: var(--surface-2); }

.date-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.date-nav { display: flex; align-items: center; gap: 12px; }
.nav-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  text-decoration: none; color: var(--text); font-size: 20px;
}
.nav-btn:hover { background: var(--surface-2); }
.date-display { text-align: center; min-width: 92px; }
.date-main { font-size: 17px; font-weight: 600; }
.date-sub { font-size: 12px; color: var(--text-3); }
.date-picker {
  height: 36px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px;
  background: var(--surface-2); color: var(--text); color-scheme: dark; cursor: pointer;
  font-size: 14px; transition: border-color .15s;
}
.date-picker:hover { border-color: var(--accent); }
.date-meta { font-size: 13px; color: var(--text-2); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.tab {
  padding: 6px 16px; border-radius: 999px; text-decoration: none; font-size: 14px;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
}
.tab:hover { border-color: var(--text-3); color: var(--text); }
.tab.active { border-color: var(--accent); color: var(--text); font-weight: 500; }
.tab-ai.active { background: var(--ai-bg); color: var(--ai); border-color: transparent; }
.tab-tech.active { background: var(--tech-bg); color: var(--tech); border-color: transparent; }
.tab-auto.active { background: var(--auto-bg); color: var(--auto); border-color: transparent; }
.tab-hot.active { background: var(--hot-bg); color: var(--hot); border-color: transparent; }

.nav-btn.disabled { color: var(--text-3); opacity: 0.4; cursor: default; }

.cat-section { margin-bottom: 22px; }
.cat-heading {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font-size: 16px; font-weight: 500;
}
.cat-heading .tag { font-size: 13px; padding: 3px 12px; }
.cat-more { margin-left: auto; font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 400; }
.cat-more:hover { text-decoration: underline; }

.news-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px;
}
.news-card {
  display: flex; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.news-card:hover { border-color: #3a3f49; }
.rank { font-size: 22px; font-weight: 600; color: var(--text-3); min-width: 30px; }
.news-body { flex: 1; min-width: 0; }
.news-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.tag-ai { background: var(--ai-bg); color: var(--ai); }
.tag-tech { background: var(--tech-bg); color: var(--tech); }
.tag-auto { background: var(--auto-bg); color: var(--auto); }
.tag-hot { background: var(--hot-bg); color: var(--hot); }
.score { font-size: 12px; padding: 2px 10px; border-radius: 6px; }
.score-high { background: rgba(226,75,74,0.18); color: #f0908f; }
.score-mid { background: rgba(186,117,23,0.22); color: #e3b266; }
.score-low { background: rgba(255,255,255,0.06); color: var(--text-2); }
.date-chip { font-size: 12px; color: var(--text-3); }
.news-title {
  display: block; font-size: 16px; font-weight: 600; color: var(--text);
  text-decoration: none; line-height: 1.5;
}
.news-title:hover { color: var(--accent); }
.news-point {
  font-size: 14px; color: var(--text); margin: 8px 0; line-height: 1.6;
  padding: 8px 12px; background: var(--surface-2); border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.point-tag {
  display: inline-block; font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 4px; padding: 0 6px; margin-right: 8px;
  vertical-align: 1px;
}
.news-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.read-link { color: var(--accent); text-decoration: none; margin-left: auto; }
.read-link:hover { text-decoration: underline; }
.ext-link { color: var(--accent); text-decoration: none; }

.empty { text-align: center; padding: 56px 0; color: var(--text-2); }
.empty-hint { font-size: 13px; color: var(--text-3); }
.empty code { background: var(--surface); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }

.back-link { display: inline-block; margin-bottom: 16px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--text); }
.article-detail {
  max-width: 820px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 32px 36px;
}
.article-title { font-size: 27px; line-height: 1.4; margin: 12px 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-3); padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.point-box {
  margin: 22px 0; padding: 16px 18px; background: var(--surface-2);
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
}
.point-box-label { display: block; font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.point-box p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); }
.article-content { font-size: 16px; line-height: 1.95; color: var(--text); margin: 22px 0; }
.article-content p { margin: 0 0 16px; }
.source-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-size: 13px; }
.source-label { display: block; color: var(--text-3); font-size: 12px; margin-bottom: 4px; }
.source-box a { color: var(--accent); text-decoration: none; word-break: break-all; }

.search-heading { font-size: 20px; margin: 8px 0 18px; }

/* AI 今日要点 */
.ai-summary { margin: 16px 0; padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(106,166,230,.12), rgba(155,124,240,.12));
  border: 1px solid rgba(155,124,240,.3); }
.ai-summary p { margin: 8px 0 0; font-size: 15px; line-height: 1.75; color: var(--text); }
.ai-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #6aa6e6, #9b7cf0); color: #fff; }

/* 看板 */
.dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.dash-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 12px; color: var(--text-2); }
.dash-card.wide { grid-column: 1 / -1; }
.dash-grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .dash-grid-2 { grid-template-columns: 1fr; } }
.chart-box { position: relative; width: 100%; }
.hotword { display: inline-block; margin: 4px 8px 4px 0; color: var(--accent); }
.vtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.vtable th { text-align: left; color: var(--text-3); font-weight: 500; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.vtable td { padding: 6px 10px; border-bottom: 0.5px solid var(--border); color: var(--text-2); white-space: nowrap; }
.vtable tr:hover td { color: var(--text); }

/* 表单（博客/收藏 admin） */
.adm-label { display: block; font-size: 13px; color: var(--text-3); margin: 14px 0 6px; }
.adm-input, .adm-textarea {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 11px 13px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit;
}
.adm-input:focus, .adm-textarea:focus { border-color: var(--accent); outline: none; }
.adm-textarea { resize: vertical; line-height: 1.75; min-height: 58vh; }
.adm-actions { margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.crawl-btn { padding: 11px 26px; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; cursor: pointer; font-size: 15px; }
.crawl-btn:hover { filter: brightness(1.08); }
.link-btn { background: none; border: none; color: var(--hot); cursor: pointer; font-size: 13px; padding: 0; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 0.5px solid var(--border); font-size: 14px; }
.adm-row a { color: var(--accent); text-decoration: none; }

/* 收藏卡片 */
.bm-card { display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.bm-card:hover { border-color: #3a3f49; }
.bm-title { font-size: 15px; font-weight: 600; }
.bm-desc { font-size: 13px; color: var(--text-2); margin: 4px 0; }
.bm-url { font-size: 12px; color: var(--text-3); word-break: break-all; }

/* 状态指标卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card { background: var(--surface-2); border-radius: var(--border-radius-md, 8px); padding: 16px; }
.stat-label { font-size: 13px; color: var(--text-3); }
.stat-num { font-size: 26px; font-weight: 600; margin-top: 4px; }

/* 博客正文（Markdown） */
.post-content h1, .post-content h2, .post-content h3 { margin: 1.2em 0 0.5em; line-height: 1.4; }
.post-content h1 { font-size: 22px; } .post-content h2 { font-size: 19px; } .post-content h3 { font-size: 16px; }
.post-content p { margin: 0 0 14px; }
.post-content code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.post-content pre { background: var(--bg); padding: 14px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--border); }
.post-content pre code { background: none; padding: 0; }
.post-content blockquote { border-left: 3px solid var(--accent); margin: 0 0 14px; padding: 4px 14px; color: var(--text-2); }
.post-content ul, .post-content ol { padding-left: 22px; margin: 0 0 14px; }
.post-content a { color: var(--accent); }
.post-content img { max-width: 100%; border-radius: 8px; }

.site-footer { text-align: center; padding: 24px; color: var(--text-3); font-size: 12px; border-top: 1px solid var(--border); }
.site-footer a { color: var(--accent); text-decoration: none; }

/* 访问明细：纵向滚动、单元格换行（不横向滚动） */
.vscroll { max-height: 460px; overflow-y: auto; overflow-x: hidden; }
.vtable--wrap { table-layout: fixed; }
.vtable--wrap td { white-space: normal; word-break: break-all; vertical-align: top; }
.vtable--wrap th:nth-child(1), .vtable--wrap td:nth-child(1) { width: 92px; }
.vtable--wrap th:nth-child(2), .vtable--wrap td:nth-child(2) { width: 120px; }
.vtable--wrap th:nth-child(3), .vtable--wrap td:nth-child(3) { width: 130px; }
.vtable--wrap th:nth-child(5), .vtable--wrap td:nth-child(5) { width: 130px; }
.vtable--wrap thead th, .vtable--wrap tr:first-child th { position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* ===== 收藏夹 ===== */
.bm-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.bm-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-search { height: 38px; width: 260px; max-width: 60vw; padding: 0 14px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; outline: none; }
.bm-search:focus { border-color: var(--accent); }
.bm-manage { font-size: 14px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.bm-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.bm-navchip { font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 13px; text-decoration: none; }
.bm-navchip:hover { border-color: var(--accent); color: var(--text); }
.bm-navchip b { color: var(--accent); font-weight: 600; margin-left: 3px; }
.bm-section { margin-bottom: 26px; scroll-margin-top: 20px; }
.bm-cat-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.bm-cat-count { font-size: 12px; color: var(--text-3); }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bm-card { display: flex; align-items: flex-start; gap: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text);
  transition: transform .15s, border-color .15s; }
.bm-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.bm-av { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 700; color: #fff; text-transform: uppercase; }
.av-0 { background: linear-gradient(135deg,#6aa6e6,#3f7fd0); }
.av-1 { background: linear-gradient(135deg,#9b7cf0,#6f54c8); }
.av-2 { background: linear-gradient(135deg,#6fd3ad,#2f9e78); }
.av-3 { background: linear-gradient(135deg,#f0a384,#d3673f); }
.av-4 { background: linear-gradient(135deg,#e368a6,#b8427f); }
.av-5 { background: linear-gradient(135deg,#e3b266,#bd8a2e); }
.bm-info { min-width: 0; flex: 1; }
.bm-title { font-size: 15px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-desc { font-size: 12px; color: var(--text-2); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-host { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 打卡 ===== */
.ci-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.ci-stats { display: flex; gap: 10px; }
.ci-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 16px; text-align: center; min-width: 70px; }
.ci-stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--text); }
.ci-stat-lab { font-size: 11px; color: var(--text-3); }
.ci-kidtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ci-kidtab { padding: 7px 18px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.ci-kidtab.active { background: linear-gradient(135deg,#6aa6e6,#9b7cf0); color: #fff; border-color: transparent; font-weight: 500; }
.ci-form { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.ci-form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.ci-field { flex: 1; min-width: 160px; }
.ci-file { padding: 9px 13px; }
.ci-grid-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ci-grid { border-collapse: collapse; width: 100%; font-size: 13px; }
.ci-grid th, .ci-grid td { padding: 8px 6px; text-align: center; border-bottom: 0.5px solid var(--border); }
.ci-subj-h, .ci-subj { text-align: left !important; padding-left: 14px !important; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.ci-date-h { color: var(--text-3); font-weight: 500; min-width: 40px; }
.ci-date-h.is-today { color: var(--accent); }
.ci-d-md { display: block; font-size: 12px; }
.ci-d-wd { display: block; font-size: 10px; color: var(--text-3); }
.ci-cell { color: var(--text-3); font-size: 15px; }
.ci-cell.done { color: var(--auto); font-weight: 700; }
.ci-meta-h { color: var(--text-3); font-weight: 500; }
.ci-meta { color: var(--text-2); }
.ci-streak { color: var(--hot); font-weight: 600; }
.ci-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ci-rec { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.ci-rec-top { display: flex; align-items: center; gap: 10px; }
.ci-rec-date { font-size: 13px; color: var(--text-3); }
.ci-rec-note { font-size: 14px; color: var(--text); margin: 10px 0 0; }
.ci-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.ci-media { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #000; display: block; }
.ci-subj-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.ci-subj-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ci-subj-item { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 12px; }

/* 打卡媒体缩略图 + 灯箱 */
.ci-thumb { position: relative; display: block; padding: 0; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; cursor: pointer; background: #000; }
.ci-thumb:hover { border-color: var(--accent); }
.ci-thumb .ci-media { border: none; border-radius: 0; }
.ci-thumb-video .ci-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; background: rgba(0,0,0,.30); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ci-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.ci-modal[hidden] { display: none; }
.ci-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); }
.ci-modal-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 40px; height: 40px;
  background: rgba(0,0,0,.5); border: none; border-radius: 50%; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.ci-modal-close:hover { background: rgba(0,0,0,.75); }
.ci-modal-body { position: relative; z-index: 1; max-width: 92vw; max-height: 88vh; }
.ci-modal-media { max-width: 92vw; max-height: 88vh; border-radius: 10px; display: block; }

/* 上传进度条 */
.ci-progress { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.ci-progress[hidden] { display: none; }
.ci-progress-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ci-progress-fill { height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #6aa6e6, #9b7cf0); transition: width .2s; }
.ci-progress-text { min-width: 0; font-size: 12px; color: var(--text-2); white-space: normal; overflow-wrap: anywhere; }
.ci-submit-result { margin-top: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ci-submit-result[hidden] { display: none; }
.ci-submit-result-ok { color: #4ade80; background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.38); }
.ci-submit-result-err { color: #fca5a5; background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.42); }

/* 收藏夹：分类折叠 */
.bm-cat-title { cursor: pointer; user-select: none; }
.bm-chevron { display: inline-block; font-size: 12px; color: var(--text-3); transition: transform .2s; width: 12px; }
.bm-section.collapsed .bm-chevron { transform: rotate(-90deg); }
.bm-section.collapsed .bm-grid { display: none; }
body.bm-searching .bm-section.collapsed .bm-grid { display: grid; }
.bm-tool-btn { height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.bm-tool-btn:hover { border-color: var(--accent); color: var(--text); }

/* ---- 今日任务 ---- */
.task-today { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; }
.task-today-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.task-balls { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.task-item { display: flex; align-items: center; gap: 9px; }
.task-ball { display: inline-block; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.task-ball.done { background: linear-gradient(135deg,#60a5fa,#2563eb); }
.task-ball.miss { background: linear-gradient(135deg,#f87171,#dc2626); }
.task-name { font-size: 14px; font-weight: 500; color: var(--text); }
.task-status-ok  { font-size: 12px; color: #60a5fa; }
.task-status-miss { font-size: 12px; color: #f87171; }
.task-ai-badge { flex-shrink: 0; font-size: 10px; font-weight: 800; color: #c4b5fd;
  border: 1px solid rgba(167,139,250,.45); background: rgba(124,58,237,.12); border-radius: 5px; padding: 2px 5px; }
/* 管理员总览卡 */
.task-overview { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.task-ov-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.task-ov-row:last-child { border-bottom: none; }
.task-ov-name { min-width: 64px; font-size: 14px; font-weight: 600; color: var(--text); }
.task-ov-ratio { margin-left: auto; font-size: 12px; color: var(--text-3); }
/* 任务分配面板 */
.task-assign-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border); }
.task-assign-row:last-child { border-bottom: none; }
.task-assign-user { min-width: 64px; font-size: 14px; font-weight: 600; color: var(--text); }
.task-toggle { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-3); font-size: 13px; cursor: pointer; transition: all .15s; }
.task-toggle.assigned { background: linear-gradient(135deg,#3b82f6,#1d4ed8); border-color: transparent; color: #fff; font-weight: 500; }
.task-toggle:hover { opacity: .82; }

/* ---- 积分兑换商城（高质感卡片） ---- */
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.reward-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s, box-shadow .18s; }
.reward-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 36px -18px rgba(0,0,0,.75); }
.reward-card.reward-locked { opacity: .92; }
.reward-card-imgwrap { position: relative; }
.reward-card-img { width: 100%; height: 168px; object-fit: cover; display: block; background: var(--surface); }
.reward-no-img { width: 100%; height: 168px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-2)); font-size: 52px; }
.reward-cost-badge { position: absolute; top: 10px; right: 10px; font-size: 12.5px; font-weight: 700; color: #ffd98a;
  padding: 5px 11px; border-radius: 999px; background: rgba(16,16,22,.55);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 2px 10px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2); }
.reward-card-body { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.reward-card-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.reward-need { font-size: 13px; color: var(--text-2); margin-top: auto; }
.reward-need b { color: #f59e0b; font-weight: 800; }
.redeem-btn { margin-top: auto; width: 100%; padding: 10px 0; border-radius: 12px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#fbbf24,#f59e0b);
  box-shadow: 0 8px 18px -8px rgba(245,158,11,.7); transition: transform .12s, box-shadow .12s; }
.redeem-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(245,158,11,.85); }
.redeem-btn:active { transform: scale(.98); }
.redeem-btn--disabled { background: var(--surface); color: var(--text-3); cursor: not-allowed; box-shadow: none; }
/* 管理员奖品列表 */
.reward-adm-list { display: flex; flex-direction: column; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.reward-adm-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); }
.reward-adm-row:last-child { border-bottom: none; }
.reward-adm-row.reward-disabled { opacity: .5; }
.reward-adm-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
  background: var(--surface-2); }
.reward-adm-info { flex: 1; min-width: 0; }
.reward-adm-name { font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reward-adm-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- 一次性提示 toast ---- */
.ci-flash { padding: 11px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); transition: opacity .5s, transform .5s; }
.ci-flash-ok { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); color: #4ade80; }
.ci-flash-err { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.4); color: #f87171; }
.ci-flash-out { opacity: 0; transform: translateY(-6px); }

/* ---- 管理端：待办横幅 ---- */
.ci-todo-banner { display: block; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff;
  padding: 12px 18px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
.ci-todo-banner:hover { opacity: .92; }

/* ---- 管理端：全员总览卡 ---- */
.ci-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ci-ov-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  text-decoration: none; display: block; transition: border-color .15s, transform .12s; }
.ci-ov-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ci-ov-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ci-ov-name { font-size: 15px; font-weight: 700; color: var(--text); }
.ci-ov-pts { font-size: 20px; font-weight: 800; color: #f59e0b; margin: 4px 0 8px; }
.ci-ov-bar { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ci-ov-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#6aa6e6,#9b7cf0); }
.ci-ov-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.ci-ov-none { color: var(--text-3); font-style: italic; }

/* ---- 管理端：当前对象横幅 + 宽统计 ---- */
.ci-target-banner { background: linear-gradient(135deg, rgba(106,166,230,.16), rgba(155,124,240,.16));
  border: 1px solid var(--accent); border-radius: 12px; padding: 10px 16px; margin-bottom: 14px;
  font-size: 15px; color: var(--text); }
.ci-target-banner b { color: var(--text); }
.ci-target-pts { float: right; color: #f59e0b; font-weight: 700; }
.ci-stats-wide { margin-bottom: 16px; }

/* ============ 孩子端：高质感视觉 ============ */
.kid-page { position: relative; }
.kid-page::before {                 /* 顶部柔光，给页面质感 */
  content: ""; position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  width: 720px; max-width: 130%; height: 300px; pointer-events: none; z-index: 0;
  background: radial-gradient(58% 60% at 50% 0, rgba(245,158,11,.16), transparent 72%);
}
.kid-page > * { position: relative; z-index: 1; }

/* 英雄区 */
.kid-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.kid-hero-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  align-items: flex-start; gap: 3px; padding: 24px 26px; border-radius: 22px; color: #fff;
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14); }
/* 细噪点：消除大色块渐变的 banding/锯齿，增加质感 */
.kid-hero-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: .42; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* 左上柔和高光，增加立体感 */
.kid-hero-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(135% 120% at 12% -12%, rgba(255,255,255,.20), transparent 52%); }
.kid-hero-card > * { position: relative; z-index: 1; }
/* 多停渐变过渡更顺，减少色阶断层 */
.kid-hero-pts    { background: linear-gradient(135deg,#cda052 0%,#c08f3f 38%,#ad7530 72%,#9c6829 100%); }
.kid-hero-streak { background: linear-gradient(135deg,#c5788a 0%,#b35e6c 38%,#9d4954 72%,#8b3b47 100%); }
.kid-hero-ck     { background: linear-gradient(135deg,#5f8a93 0%,#4f777f 38%,#41626a 72%,#385660 100%); }
.kid-hero-emoji { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
.kid-hero-num { font-size: 46px; font-weight: 900; line-height: 1.04; letter-spacing: -1px;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.24); }
.kid-hero-lab { font-size: 14px; font-weight: 600; opacity: .92; }
.kid-hero-goal { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 18px; }
.kid-hero-goal-top { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.kid-hero-goal-top b { color: var(--text); }
.kid-hero-goal-top b.diff { color: #f59e0b; }
.kid-hero-goal-done { grid-column: 1 / -1; text-align: center; font-size: 15px; font-weight: 700;
  color: #fbbf24; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
  border-radius: 16px; padding: 15px; }
/* 兑换目标：未选 / 已达成 / 取消链接 */
.kid-hero-goal.kid-goal-empty { color: var(--text-3); font-size: 13.5px; text-align: center; }
.kid-hero-goal.kid-goal-done { color: #fbbf24; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); text-align: center; font-weight: 700; }
.kid-hero-goal.kid-goal-done b { color: #fde68a; }
.kid-goal-clear, .kid-hero-goal [data-clear] { color: var(--text-3); font-size: 12px; margin-left: 8px; text-decoration: underline; }

/* 自定义文件选择 */
.ci-filepick { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; max-width: 100%; }
.ci-filepick-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.ci-filepick:hover .ci-filepick-btn { border-color: var(--accent); color: var(--text); background: var(--surface); }
.ci-filepick-name { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-filepick-name.has { color: var(--text-2); }
.ci-ai-notice, .ci-ai-config-warn { color: #fbbf24; background: rgba(245,158,11,.09);
  border: 1px solid rgba(245,158,11,.32); border-radius: 7px; padding: 9px 11px; font-size: 12px; line-height: 1.55; }
.ci-ai-config-warn { margin: -4px 0 14px; }

/* 奖品卡：底部动作区 + 设为目标 */
.reward-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.reward-goal-btn { width: 100%; padding: 7px 0; border-radius: 10px; cursor: pointer; border: 1px solid var(--border);
  background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.reward-goal-btn:hover { border-color: var(--accent); color: var(--text); }
.reward-goal-btn.on { border-color: transparent; background: linear-gradient(135deg,#6aa6e6,#9b7cf0); color: #fff; }
.reward-card.is-goal { border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 16px 34px -18px rgba(106,166,230,.55); }
.redeem-btn { margin-top: 0; }

/* 奖品图可点：看大图 / 详情 */
.reward-card-imgwrap { cursor: pointer; }
.reward-zoom-hint { position: absolute; left: 10px; bottom: 10px; font-size: 11px; color: #fff;
  background: rgba(0,0,0,.55); border-radius: 999px; padding: 3px 9px; pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.reward-card-imgwrap:hover .reward-zoom-hint { opacity: 1; transform: translateY(0); }

/* 奖品详情弹窗 */
.rw-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rw-modal[hidden] { display: none; }
.rw-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.rw-modal-close { position: absolute; top: 16px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 24px; line-height: 1; color: #fff; background: rgba(0,0,0,.5); }
.rw-modal-close:hover { background: rgba(0,0,0,.78); }
.rw-modal-card { position: relative; z-index: 1; width: 460px; max-width: 100%; max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.rw-modal-img { width: 100%; max-height: 56vh; object-fit: contain; display: block; background: #000; border-radius: 18px 18px 0 0; }
.rw-modal-noimg { display: flex; align-items: center; justify-content: center; height: 240px; font-size: 72px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-radius: 18px 18px 0 0; }
.rw-modal-info { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.rw-modal-name { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.45; }
.rw-modal-cost { font-size: 20px; font-weight: 800; color: #f59e0b; }
.rw-modal-info .redeem-btn { width: 100%; }
.rw-modal-need { font-size: 14px; color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; text-align: center; }
.rw-modal-need b { color: #f59e0b; }
.rw-modal-link { font-size: 14px; color: var(--accent); text-align: center; text-decoration: none; }
.rw-modal-link:hover { text-decoration: underline; }

/* ---- 英雄卡可点（积分/签到 看明细）---- */
.kid-hero-tap { cursor: pointer; border: none; font: inherit; text-align: left; -webkit-appearance: none; appearance: none; }
.kid-hero-tap:hover { filter: brightness(1.06); }
.kid-hero-tap:active { transform: scale(.99); }

/* ---- 每日签到条 ---- */
.signin-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.signin-btn { display: inline-flex; align-items: baseline; gap: 7px; padding: 11px 24px; border: none; border-radius: 999px;
  cursor: pointer; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#34d399,#10b981);
  box-shadow: 0 8px 18px -8px rgba(16,185,129,.6); transition: transform .12s, box-shadow .12s; }
.signin-btn span { font-size: 12px; font-weight: 600; opacity: .92; }
.signin-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -8px rgba(16,185,129,.78); }
.signin-btn:active { transform: scale(.97); }
.signin-btn.signed { background: var(--surface-2); color: var(--text-3); box-shadow: none; cursor: default; font-weight: 600; }
.signin-hint { font-size: 12px; color: var(--text-3); }

/* ---- 明细弹窗（积分明细 / 签到明细 通用）---- */
.dt-modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dt-modal[hidden] { display: none; }
.dt-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.dt-modal-card { position: relative; z-index: 1; width: 440px; max-width: 100%; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.dt-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.dt-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.dt-modal-close { width: 32px; height: 32px; border: none; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1;
  background: var(--surface-2); color: var(--text-2); }
.dt-modal-close:hover { color: var(--text); }
.dt-list, .dt-signin { overflow-y: auto; padding: 4px 0; }
.dt-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.dt-row:last-child { border-bottom: none; }
.dt-row-main { flex: 1; min-width: 0; }
.dt-reason { display: block; font-size: 14px; color: var(--text); }
.dt-time { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dt-pts { font-size: 16px; font-weight: 800; white-space: nowrap; }
.dt-pts.pos { color: #34d399; }
.dt-pts.neg { color: #f87171; }
.dt-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.dt-pager button { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text-2); cursor: pointer; font-size: 13px; }
.dt-pager button:disabled { opacity: .4; cursor: default; }
.dt-pager button:not(:disabled):hover { border-color: var(--accent); color: var(--text); }
.dt-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.dt-day { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.dt-day:last-child { border-bottom: none; }
.dt-day-d { font-size: 14px; font-weight: 700; color: var(--text); min-width: 46px; }
.dt-day-wd { font-size: 12px; color: var(--text-3); min-width: 28px; }
.dt-day-st { flex: 1; font-size: 13px; }
.dt-day.signed .dt-day-st { color: #34d399; }
.dt-day.miss { opacity: .6; }
.dt-day.miss .dt-day-st { color: var(--text-3); }

/* 打卡明细弹窗：稍宽一点，按天分组 */
.dt-modal-ck { width: 480px; }
.dt-cksum { padding: 10px 18px; font-size: 12.5px; color: var(--text-3); border-bottom: 1px solid var(--border); }
.dt-cksum:empty { display: none; }
.dt-ck { overflow-y: auto; padding: 4px 0 6px; }
.dt-ckday { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.dt-ckday:last-child { border-bottom: none; }
.dt-ckday-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.dt-ckday-d { font-size: 14px; font-weight: 800; color: var(--text); }
.dt-ckday-wd { font-size: 12px; color: var(--text-3); }
.dt-ckday-n { font-size: 12px; color: var(--text-3); }
.dt-ckday-pts { margin-left: auto; font-size: 13px; font-weight: 800; color: #34d399; }
.dt-ckitems { display: flex; flex-direction: column; gap: 8px; }
.dt-ckitem { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; }
.dt-ckitem-top { display: flex; align-items: center; gap: 8px; }
.dt-ckpts { margin-left: auto; font-size: 13px; font-weight: 700; color: #f59e0b; }
.dt-cknote { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.dt-ckai { display: flex; align-items: flex-start; gap: 8px; margin-top: 7px; padding: 7px 9px;
  border: 1px solid rgba(34,197,94,.3); border-radius: 7px; background: rgba(34,197,94,.08);
  color: var(--text-2); font-size: 12px; line-height: 1.5; }
.dt-ckai strong { flex-shrink: 0; color: #4ade80; font-size: 12px; }
.dt-ckai span { min-width: 0; word-break: break-word; }
.dt-ckmedia { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dt-ckthumb { width: 54px; height: 54px; border-radius: 9px; border: 1px solid var(--border); cursor: pointer; padding: 0;
  background-size: cover; background-position: center; background-color: var(--surface); position: relative; overflow: hidden; }
.dt-ckthumb:hover { border-color: var(--accent); }
.dt-ckthumb-v { display: flex; align-items: center; justify-content: center; background: #000; color: #fff; font-size: 16px; }
.dt-ckthumb-v span { pointer-events: none; }

/* 打卡月历 */
.mcal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px 16px; margin-top: 14px; }
.mcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mcal-title { font-size: 15px; font-weight: 800; color: var(--text); }
.mcal-nav { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; }
.mcal-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.mcal-nav:disabled { opacity: .35; cursor: default; }
.mcal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.mcal-weekdays span { text-align: center; font-size: 12px; color: var(--text-3); }
.mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mcal-cell { position: relative; aspect-ratio: 1 / 1; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0;
  color: var(--text-3); cursor: default; -webkit-appearance: none; appearance: none; font: inherit; }
.mcal-empty { background: transparent; border: none; }
.mcal-cell.has { cursor: pointer; background: rgba(106,166,230,.10); border-color: rgba(106,166,230,.28); color: var(--text); }
.mcal-cell.has:hover { border-color: var(--accent); }
.mcal-cell.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.mcal-cell.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.mcal-dnum { font-size: 13px; font-weight: 700; }
.mcal-cnt { position: absolute; top: 3px; right: 5px; font-size: 10px; font-weight: 800; color: #f59e0b; }
.mcal-cell.sel .mcal-cnt { color: #fff; }
.mcal-dots { display: flex; gap: 2px; height: 5px; }
.mcal-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.mcal-dot-ai { background: var(--ai); } .mcal-dot-tech { background: var(--tech); }
.mcal-dot-auto { background: var(--auto); } .mcal-dot-hot { background: var(--hot); }
.mcal-hint { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }
.mcal-detail { margin-top: 12px; }
.mcal-detail:not(.on) { display: none; }
.mcal-detail-head { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mcal-right { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.mcal-del { display: inline; }
.mcal-del button { border: none; background: none; color: #f87171; font-size: 12px; cursor: pointer; padding: 0; }
.mcal-del button:hover { text-decoration: underline; }
.dt-lt { font-size: 12px; color: #fbbf24; font-weight: 700; white-space: nowrap; }

/* 通用进度条 */
.kid-progress { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.kid-progress.sm { height: 7px; }
.kid-progress > span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg,#f59e0b,#fbbf24); box-shadow: 0 0 10px rgba(245,158,11,.5);
  transition: width .85s cubic-bezier(.22,1,.36,1); }

/* 通用大卡片 */
.kid-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 10px 28px -18px rgba(0,0,0,.55); }
.kid-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.kid-card-title { margin: 0; font-size: 19px; font-weight: 800; color: var(--text); }
.kid-card-count { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.kid-card-count b { color: #f59e0b; font-size: 17px; }

/* 任务进度分段 */
.kid-seg { display: flex; gap: 6px; margin-bottom: 14px; }
.kid-seg i { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); transition: background .3s; }
.kid-seg i.on { background: linear-gradient(90deg,#34d399,#10b981); box-shadow: 0 0 8px rgba(16,185,129,.5); }
.kid-alldone { text-align: center; font-size: 15px; font-weight: 700; color: #34d399;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); border-radius: 14px; padding: 12px; margin-bottom: 14px; }

/* 今日任务：分类筛选 + 分组 */
.kid-task-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.kid-task-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.kid-task-filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer;
  font-size: 13px; font-weight: 700; transition: border-color .15s, background .15s, color .15s, transform .12s; }
.kid-task-filter span { color: var(--text-3); font-size: 12px; font-weight: 800; }
.kid-task-filter:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--text); }
.kid-task-filter.active { border-color: rgba(106,166,230,.52); color: var(--text);
  background: linear-gradient(135deg, rgba(106,166,230,.18), rgba(155,124,240,.12)); }
.kid-task-filter.active span { color: #fbbf24; }
.kid-undone-toggle { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: rgba(255,255,255,.02);
  font-size: 13px; font-weight: 700; cursor: pointer; }
.kid-undone-toggle input { accent-color: var(--accent); }
.kid-task-group { display: flex; flex-direction: column; gap: 10px; }
.kid-task-group + .kid-task-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.kid-task-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 3px; color: var(--text-3); font-size: 13px; font-weight: 800; }
.kid-task-group-head span { color: var(--text-2); }
.kid-task-group-head b { color: #fbbf24; font-size: 12px; }
.kid-task-empty-filter { padding: 24px 14px; border: 1px dashed var(--border); border-radius: 14px;
  text-align: center; color: var(--text-3); font-size: 14px; }
.kid-task-group[hidden], .kid-task[hidden], .kid-task-empty-filter[hidden] { display: none !important; }

/* 孩子端自己整理任务分类/排序 */
.kid-task-edit { margin: -2px 0 14px; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,255,255,.018); overflow: hidden; }
.kid-task-edit > summary { cursor: pointer; user-select: none; padding: 10px 13px; color: var(--text-2);
  font-size: 13px; font-weight: 800; list-style: none; }
.kid-task-edit > summary::-webkit-details-marker { display: none; }
.kid-task-edit > summary::before { content: "⚙"; margin-right: 7px; color: var(--accent); }
.kid-task-edit[open] > summary { border-bottom: 1px solid var(--border); color: var(--text); }
.kid-task-edit form { padding: 12px 13px 14px; }
.kid-task-edit-hint { margin-bottom: 10px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.kid-task-edit-list { display: flex; flex-direction: column; gap: 8px; }
.kid-task-edit-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, 180px) 78px;
  align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); }
.kid-task-edit-name { min-width: 0; color: var(--text); font-size: 14px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid-task-edit-row label { display: flex; flex-direction: column; gap: 4px; color: var(--text-3);
  font-size: 11px; font-weight: 800; }
.kid-task-edit-row input { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--bg); color: var(--text); font-size: 13px; }
.kid-task-edit-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106,166,230,.20); }
.kid-task-edit-sort input { text-align: center; }
.kid-task-edit-save { margin-top: 11px; padding: 9px 18px; border: none; border-radius: 11px; cursor: pointer;
  color: #fff; font-size: 14px; font-weight: 800; background: linear-gradient(135deg,#607fa8,#756fc8);
  box-shadow: 0 8px 18px -10px rgba(106,166,230,.7); }
.kid-task-edit-save:hover { filter: brightness(1.06); }

/* 今日任务列表 */
.kid-task-list { display: flex; flex-direction: column; gap: 10px; }
.kid-task { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.kid-task:not(.done):hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 22px -14px rgba(0,0,0,.7); }
.kid-task-check { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
  border: 2px solid var(--text-3); color: transparent; }
.kid-task.done .kid-task-check { background: linear-gradient(135deg,#34d399,#10b981); border-color: transparent; color: #fff; }
.kid-task-name { flex: 1; font-size: 17px; font-weight: 600; color: var(--text); }
.kid-task.done .kid-task-name { color: var(--text-2); }
.kid-task-ok { font-size: 14px; font-weight: 800; color: #34d399; }
.kid-task-go { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.12;
  padding: 9px 22px; border: none; border-radius: 999px; cursor: pointer; color: #fff; font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg,#6aa6e6,#9b7cf0); box-shadow: 0 8px 18px -7px rgba(106,166,230,.7);
  transition: transform .12s, box-shadow .12s; }
.kid-task-go small { font-size: 11px; font-weight: 600; opacity: .92; }
.kid-task-go:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 12px 24px -8px rgba(155,124,240,.85); }
.kid-task-go:active { transform: scale(.96); }

/* 表单卡片：去掉内层 ci-form 的重复边框/底色 */
.kid-form-card .ci-form { background: transparent; border: none; padding: 0; }

/* 空状态 */
.kid-empty { text-align: center; padding: 42px 20px; background: var(--surface);
  border: 1px dashed var(--border); border-radius: 20px; margin-bottom: 18px; }
.kid-empty-emoji { font-size: 50px; }
.kid-empty p { margin: 10px 0 0; font-size: 17px; color: var(--text); }
.kid-empty .kid-empty-sub { font-size: 14px; color: var(--text-3); }

/* 我换到的奖品 */
.kid-redeem-list { display: flex; flex-direction: column; gap: 10px; }
.kid-redeem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); }
.kid-redeem-ico { font-size: 26px; }
.kid-redeem-info { flex: 1; min-width: 0; }
.kid-redeem-name { font-size: 15px; font-weight: 600; color: var(--text); }
.kid-redeem-meta { font-size: 12px; color: var(--text-3); }
.kid-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.kid-badge.wait { color: #fbbf24; background: rgba(245,158,11,.14); }
.kid-badge.ok { color: #34d399; background: rgba(16,185,129,.14); }
.kid-badge.no { color: #f87171; background: rgba(248,113,113,.14); }

/* 打卡按钮（沉稳的绿，不刺眼） + 表单高亮 */
.ci-submit-btn { padding: 11px 26px; border: none; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg,#3aa97a,#2e8c63); color: #fff; box-shadow: 0 5px 14px -10px rgba(46,140,99,.5);
  transition: transform .12s, filter .12s, box-shadow .12s; }
.ci-submit-btn:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 9px 18px -10px rgba(46,140,99,.55); }
.ci-submit-btn:active { transform: scale(.98); }
.ci-form-flash { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .3s; }

/* 日历折叠 */
.ci-cal-details { margin-top: 22px; }
.ci-cal-details > summary { cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text-2);
  padding: 10px 0; user-select: none; }
.ci-cal-details[open] > summary { color: var(--text); }

/* ---- 管理页 ---- */
.ci-manage-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ci-manage-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 13px; text-decoration: none; }
.ci-manage-nav a:hover { border-color: var(--accent); color: var(--text); }
.mgmt-h { margin-top: 28px; scroll-margin-top: 80px; }
.mgmt-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px 18px; }
.task-assign-block { padding: 12px 0; border-bottom: 1px solid var(--border); }
.task-assign-block:last-child { border-bottom: none; }

/* 管理页：按目标总积分写入差额流水 */
.ci-points-grid { display: grid; gap: 10px; }
.ci-points-card { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(190px,.9fr) minmax(220px,1.4fr) auto;
  gap: 14px; align-items: end; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.ci-points-user { display: flex; flex-direction: column; align-self: center; min-width: 0; }
.ci-points-name { color: var(--text); font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.ci-points-account { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ci-points-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--text-3); font-size: 12px; font-weight: 700; }
.ci-points-total > div { display: grid; grid-template-columns: minmax(34px,auto) auto minmax(76px,100px); gap: 8px; align-items: center; }
.ci-points-total strong { color: var(--text); font-size: 18px; }
.ci-points-total .adm-input, .ci-points-note .adm-input { padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.ci-points-save { min-height: 38px; padding: 8px 16px; font-size: 13px; white-space: nowrap; }

/* ---- 任务分配卡（开关+积分，单次保存，高质感） ---- */
.ta-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 10px 28px -18px rgba(0,0,0,.5); }
.ta-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.ta-card-name { font-size: 16px; font-weight: 800; color: var(--text); }
.ta-quick { font-size: 13px; color: var(--text-3); }
.ta-quick a { color: var(--accent); cursor: pointer; }
.ta-quick a:hover { text-decoration: underline; }
.ta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ta-chip { display: flex; flex-direction: column; align-items: stretch; gap: 10px; border: 1px solid var(--border); border-radius: 13px;
  padding: 10px 12px; background: var(--surface-2);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .12s; }
.ta-chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.ta-chip.on { border-color: rgba(106,166,230,.55);
  background: linear-gradient(135deg, rgba(106,166,230,.16), rgba(155,124,240,.10));
  box-shadow: inset 0 0 0 1px rgba(106,166,230,.18), 0 6px 16px -10px rgba(106,166,230,.5); }
.ta-chip-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ta-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: none; border: none; color: var(--text-2); font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left; padding: 0; }
.ta-chip.on .ta-toggle { color: var(--text); }
.ta-dot { width: 21px; height: 21px; border-radius: 7px; flex-shrink: 0; position: relative;
  border: 2px solid var(--text-3); background: transparent; transition: all .15s; }
.ta-chip.on .ta-dot { border-color: transparent; background: linear-gradient(135deg,#6aa6e6,#9b7cf0);
  box-shadow: 0 4px 10px -3px rgba(106,166,230,.7); }
.ta-chip.on .ta-dot::after { content: "✓"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #fff; }
.ta-pts { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); opacity: .4; transition: opacity .15s; }
.ta-chip.on .ta-pts { opacity: 1; }
.ta-pts input { width: 56px; padding: 6px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text); font-size: 14px; font-weight: 700; text-align: center;
  -moz-appearance: textfield; transition: border-color .15s, box-shadow .15s; }
.ta-pts input::-webkit-outer-spin-button, .ta-pts input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ta-pts input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106,166,230,.25); }
.ta-meta { display: grid; grid-template-columns: 1fr 74px; gap: 8px; opacity: .46; transition: opacity .15s; }
.ta-chip.on .ta-meta { opacity: 1; }
.ta-meta label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-3); font-weight: 700; }
.ta-meta input { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text); font-size: 13px; }
.ta-meta input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106,166,230,.20); }
.ta-sort input { text-align: center; }
.ta-ai-review { display: inline-flex; align-items: center; gap: 7px; width: max-content;
  color: var(--text-3); font-size: 12px; font-weight: 700; opacity: .46; cursor: pointer; }
.ta-chip.on .ta-ai-review { opacity: 1; color: var(--text-2); }
.ta-ai-review input { width: 16px; height: 16px; margin: 0; accent-color: #8b5cf6; }
.ta-save { padding: 9px 22px; font-size: 14px; font-weight: 700; border-radius: 11px; }

/* 管理页：奖品库录入输入框统一深色质感 + 列表卡片 hover */
.ci-subj-add .adm-input, .ci-subj-add textarea.adm-input { border-radius: 11px; }
.ci-subj-add .adm-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106,166,230,.22); }
.reward-adm-list { border-radius: 16px; }
.reward-adm-thumb { border-radius: 10px; }
/* 奖品行 → 包在 item 里（行 + 内联编辑表单） */
.reward-adm-item { border-bottom: 1px solid var(--border); }
.reward-adm-item:last-child { border-bottom: none; }
.reward-adm-item.reward-disabled { opacity: .55; }
.reward-adm-item .reward-adm-row { border-bottom: none; transition: background .15s; }
.reward-adm-item .reward-adm-row:hover { background: var(--surface-2); }
/* 上传图片按钮（伪装的 file label） */
.rw-uploadlbl { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px;
  border-radius: 11px; border: 1px dashed var(--border); background: var(--surface-2); color: var(--text-2);
  font-size: 13px; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.rw-uploadlbl:hover { border-color: var(--accent); color: var(--text); }
.rw-uploadlbl.has { border-style: solid; border-color: #34d399; color: #34d399; background: rgba(16,185,129,.1); }
/* 内联编辑表单 */
.rw-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 4px 16px 14px; }
.rw-edit[hidden] { display: none; }
.rw-edit .adm-input { border-radius: 10px; }
.rw-edit-btn { color: var(--accent); }

/* 管理页：兑换确认、拒绝退款与发货 */
.redeem-queue-title { margin: 18px 0 8px; color: var(--text-2); font-size: 14px; }
.redeem-admin-actions { display: flex; gap: 8px; flex-shrink: 0; }
.redeem-admin-btn { min-height: 34px; padding: 7px 12px; border-radius: 8px; border: 1px solid transparent;
  font-family: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.redeem-admin-approve, .redeem-admin-done { color: #fff; background: #2f8f61; }
.redeem-admin-reject { color: #f87171; border-color: rgba(248,113,113,.48); background: rgba(248,113,113,.08); }
.redeem-admin-btn:hover { filter: brightness(1.08); }

/* ===== 响应式：平板及以下 ===== */
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .search-box { max-width: none; flex-basis: 100%; order: 2; }
  .container { padding: 18px 14px 48px; }
  .news-list { grid-template-columns: 1fr; }
  .ci-points-card { grid-template-columns: minmax(110px,.7fr) minmax(180px,1fr); }
  .ci-points-note { grid-column: 1 / -1; }
  .ci-points-save { justify-self: start; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .date-nav { gap: 8px; flex-wrap: wrap; }
  .date-meta { width: 100%; }
  .date-picker { flex: 1; min-width: 130px; }
  .tabs { gap: 6px; margin: 14px 0; }
  .tab { padding: 5px 13px; font-size: 13px; }
  .news-card { padding: 13px 14px; gap: 10px; }
  .rank { font-size: 18px; min-width: 22px; }
  .news-title { font-size: 15px; }
  .news-point { font-size: 13px; }
  .article-detail { padding: 20px 16px; }
  .article-title { font-size: 22px; }
  .article-content { font-size: 15px; line-height: 1.85; }
  .point-box p { font-size: 15px; }
  .kid-hero { grid-template-columns: 1fr; gap: 10px; }
  .kid-hero-num { font-size: 36px; }
  .kid-task-tools { align-items: stretch; flex-direction: column; }
  .kid-task-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .kid-task-filter { white-space: nowrap; }
  .kid-undone-toggle { width: fit-content; }
  .kid-task-edit-row { grid-template-columns: 1fr; }
  .kid-task-name { font-size: 16px; }
  .ta-grid { grid-template-columns: 1fr; }
  .ci-points-card { grid-template-columns: 1fr; align-items: stretch; }
  .ci-points-note { grid-column: auto; }
  .ci-points-save { width: 100%; }
  .redeem-queue-row { flex-wrap: wrap; }
  .redeem-queue-row .redeem-admin-actions { width: 100%; }
  .redeem-admin-actions form { flex: 1; }
  .redeem-admin-actions .redeem-admin-btn { width: 100%; }
  .ci-target-pts { float: none; display: block; margin-top: 4px; }
  .ci-progress { align-items: stretch; flex-direction: column; gap: 7px; }
  .ci-progress-bar { width: 100%; }
}
