:root {
  --bg: #f2f2f2;
  --card: #fff;
  --text: #2b2b2b;
  --muted: #7d7d7d;
  --primary: #f5b500;
  --danger: #dc2626;
  --ok: #16a34a;
  --border: #f4df9a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 70px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  color: #4f3b00;
  padding: 12px 16px;
  font-weight: 600;
  letter-spacing: .2px;
  border-bottom: 1px solid #f4eed8;
}
.topbar-main {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
}
.top-left {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
}
.top-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-center {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-right-icon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  justify-self: end;
}
.top-right-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.page { padding: 12px 12px 24px; max-width: 520px; margin: 0 auto; }
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.task-item {
  border-radius: 12px;
  background: var(--card);
  border: 1px solid #f3f3f3;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.task-item img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff3c9;
}
.task-item .meta { flex: 1; min-width: 0; padding: 2px 0; }
.task-item .t { font-size: 15px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-item .p { color: var(--danger); font-weight: 700; margin-top: 4px; font-size: 15px; }
.task-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 6px;
  font-size: 12px;
  align-items: end;
}
.task-row3 {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.btn-primary { background: var(--primary); color: #4f3b00; }
.btn-ghost { background: #fff3c9; color: #7a5a00; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
.tabs a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff3c9;
  color: #7a5a00;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
}
.tabs a.on { background: #f5b500; color: #4f3b00; font-weight: 700; }
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.tabbar a {
  text-align: center;
  text-decoration: none;
  color: #6b7280;
  font-size: 12px;
  padding: 4px 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tabbar a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.tabbar a.on { color: var(--primary); font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.desc img { max-width: 100%; height: auto; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff3c9; color: #7a5a00; font-size: 12px; margin-right: 6px; }
.alert { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; }
.quick-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-nav a {
  text-decoration: none;
  color: #2b2b2b;
  text-align: center;
}
.quick-nav img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}
.home-banner {
  width: 100%;
  height: min(36vw, 180px);
  min-height: 112px;
  max-height: 180px;
  object-fit: cover;
  display: block;
}
.home-ann {
  display: grid;
  grid-template-columns: 52px 1fr 46px;
  align-items: center;
  gap: 8px;
}
.home-ann-left {
  color: #202020;
  font-weight: 700;
}
.home-ann-text {
  color: #3a3a3a;
  font-size: 14px;
}
.home-more {
  border: none;
  background: transparent;
  color: #9a9a9a;
  font-size: 14px;
}
.sec-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 2px 10px;
}
.sec-title > div:first-child {
  font-size: 20px !important;
  font-weight: 700;
  letter-spacing: .2px;
}
.func-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f6f1de;
}
.func-item:last-child { border-bottom: none; }
.func-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 素材页：标签与「一键复制」分行，按钮与黄底标签区分 */
.mat-label-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3c9;
  color: #7a5a00;
  font-size: 14px;
  font-weight: 700;
}
.mat-copy-row {
  margin: 6px 0 10px;
}
.btn-copy-mat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #2563eb;
  background: #eff6ff;
  color: #1d40af;
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08);
}
.btn-copy-mat:active {
  background: #dbeafe;
}

/* 素材正文内图片旁提示（仅前端插入，不参与一键复制） */
.mat-img-save-hint {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  margin: 3px 0 6px;
  padding: 0 2px;
  text-align: center;
  font-weight: 400;
  user-select: none;
  -webkit-user-select: none;
}
