body.theme-admin,
body.theme-admin .admin-shell,
body.theme-admin .guest {
  background: #fff;
}
.admin-shell { min-height: 100vh; }
.admin-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 28px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.admin-brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.admin-brand .brand-mark {
  margin: 0; width: 40px; height: 40px; font-size: 15px;
  box-shadow: 0 4px 14px rgba(255,59,48,.25);
}
.admin-brand .brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.admin-brand .brand-sub { font-size: 12px; color: #86868b; margin-top: 1px; }
.admin-top-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.who-inline { font-size: 13px; color: #6e6e73; }
.who-inline b { color: #1d1d1f; margin-right: 6px; }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 80px; }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .9fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}
.eyebrow { margin: 0 0 8px; color: #ff3b30; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.hero-copy h1 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.04em; font-weight: 650; line-height: 1.25; }
.lead { margin: 0; color: #6e6e73; font-size: 14px; line-height: 1.75; max-width: 640px; }
.hero-points {
  list-style: none; margin: 8px 0 0; padding: 16px 18px;
  background: #fafafa; border-radius: 16px; border: 1px solid rgba(0,0,0,.08);
}
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 0; line-height: 1.4; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.red { background: #ff3b30; }
.dot.green { background: #34c759; }
.dot.amber { background: #f5a524; }
.dot.blue { background: #0071e3; }

.monitor-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; align-items: center; }
.monitor-chip {
  background: #fafafa; border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; color: #6e6e73;
  cursor: pointer;
}
.monitor-chip b { color: #1d1d1f; margin-left: 6px; }
.monitor-chip.is-on { box-shadow: 0 0 0 2px #1d1d1f inset; }
.chip-on { background: #e8f8ed; color: #1b7f38; border-color: transparent; }
.chip-on b { color: #1b7f38; }
.chip-soon { background: #fff6e5; color: #9a6700; border-color: transparent; }
.chip-soon b { color: #9a6700; }
.chip-off { background: #fff1f0; color: #c41c16; border-color: transparent; }
.chip-off b { color: #c41c16; }
.search-wrap { margin-left: auto; min-width: 200px; }
.search-wrap input { padding: 8px 12px; border-radius: 999px; }

.create-card { padding: 20px 22px; }
.create-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.create-head h3 { margin: 0; }
.create-note { margin: 12px 0 0; line-height: 1.6; }
.create-note code { background: #f2f2f7; padding: 1px 6px; border-radius: 6px; }

.community-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.community-card .cc-head,
.community-card .cred-grid,
.community-card .sub-box,
.community-card .cred-edit,
.community-card .cc-actions { padding-left: 18px; padding-right: 18px; }
.community-card .cc-head { padding-top: 18px; margin-bottom: 0; }
.community-card .cc-actions { padding: 4px 18px 18px; margin-top: 0; }
.community-card.tone-on { border-top: 4px solid #34c759; }
.community-card.tone-soon { border-top: 4px solid #f5a524; }
.community-card.tone-off { border-top: 4px solid #ff3b30; background: #fafafa; }
.community-card[hidden] { display: none; }
.tag-stack { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.link-box {
  margin: 14px 18px 12px;
  padding: 12px 14px;
  background: #f8f8fa;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.12);
}
.link-box-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.desk-link { display: block; font-size: 13px; word-break: break-all; font-weight: 600; color: #1d1d1f; }
.desk-link:hover { color: #ff3b30; text-decoration: none; }
.link-help { margin: 8px 0 0; line-height: 1.55; }

.cred-grid { display: grid; gap: 10px; margin: 0 0 12px; }
.cred-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}
.cred-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cred-item code {
  display: block;
  margin: 8px 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f2f2f7;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  word-break: break-all;
}
.cred-item p { margin: 0; line-height: 1.55; }
.cred-super { background: #fff6e5; border-color: transparent; }

.sub-box {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 18px 8px;
  padding: 12px 14px;
  background: #eef4ff;
  border-radius: 14px;
}
.sub-dates { font-size: 14px; font-weight: 650; }
.sub-remain { text-align: right; }
.sub-remain b { display: block; font-size: 22px; letter-spacing: -.04em; }
.sub-remain span { font-size: 11px; color: #6e6e73; }
.sub-remain b.off { font-size: 16px; color: #c41c16; }

.community-card .cred-edit { margin: 8px 0; }
.filter-empty { text-align: center; color: #6e6e73; padding: 24px 0; }
.empty-card { margin-bottom: 16px; }

@media (max-width: 860px) {
  .hero-panel { grid-template-columns: 1fr; }
  .admin-top { padding: 12px 14px; }
  .admin-main { padding: 18px 14px 48px; }
  .hero-copy h1 { font-size: 24px; }
  .search-wrap { margin-left: 0; width: 100%; }
}

body.theme-admin .apple-modal .modal-body { padding: 22px 22px 18px; }
body.theme-admin .apple-modal h3 { font-size: 22px; letter-spacing: -.03em; }
body.theme-admin .apple-modal .field input,
body.theme-admin .apple-modal .row input,
body.theme-admin .apple-modal .row select,
body.theme-admin .apple-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #f5f5f7;
  padding: 0 14px;
  font-size: 15px;
}
body.theme-admin .apple-modal .field input:focus,
body.theme-admin .apple-input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,59,48,.12);
  border-color: #ff3b30;
}
body.theme-admin .phone-edit { margin: 0 18px 12px; }

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.admin-hero h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.04em; font-weight: 650; }
.btn-create {
  flex-shrink: 0;
  height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  background: #ff3b30; color: #fff; font-weight: 650; font-size: 14px;
  box-shadow: 0 8px 22px rgba(255,59,48,.22);
  cursor: pointer;
}
.btn-create:hover { background: #e0332a; transform: translateY(-1px); }
.community-grid { display: flex; flex-direction: column; gap: 16px; }
.project-card {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  padding: 22px 24px 20px;
  box-shadow: none;
}
.project-card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.project-card.tone-on {
  border-color: rgba(52,199,89,.6);
  border-left-width: 3px;
  background: linear-gradient(180deg, rgba(52,199,89,.08), rgba(52,199,89,0) 132px), #fff;
}
.project-card.tone-soon {
  border-color: rgba(245,165,36,.7);
  border-left-width: 3px;
  background: linear-gradient(180deg, rgba(245,165,36,.1), rgba(245,165,36,0) 132px), #fff;
}
.project-card.tone-off {
  border-color: rgba(255,59,48,.5);
  border-left-width: 3px;
  background: linear-gradient(180deg, rgba(255,59,48,.06), rgba(255,59,48,0) 132px), #fff;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,.09);
}
.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.pc-title h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; font-weight: 650; }
.pc-date { font-size: 12px; }
.pc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  align-items: stretch;
}
.pr-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pr-creds { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chip-copy {
  border: 1px solid #e5e5ea;
  background: #f5f5f7;
  border-radius: 14px;
  min-height: 56px;
  padding: 8px 14px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px;
  cursor: pointer; color: #1d1d1f; font-size: 15px; text-align: left;
}
.chip-copy:hover { background: #ececef; }
.chip-copy b { color: #6e6e73; font-weight: 600; font-size: 11px; letter-spacing: .02em; }
.chip-copy span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chip-copy.accent { background: #fff1f0; color: #c41c16; border-color: #ffd4d0; flex-direction: row; align-items: center; font-weight: 650; }
.pr-sub {
  border: 1px solid #e5e5ea;
  background: #f5f5f7;
  color: #1d1d1f;
  border-radius: 16px;
  padding: 14px 16px; text-align: left; cursor: pointer;
}
.pr-sub em { display: block; font-style: normal; font-size: 11px; color: #6e6e73; }
.pr-sub b { display: block; font-size: 22px; letter-spacing: -.04em; margin: 4px 0 2px; }
.pr-sub span { font-size: 12px; color: #6e6e73; }
.pr-sub:hover { background: #ececef; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pr-actions form { margin: 0; }
.pr-actions .btn, .pr-actions .btn-green, .pr-actions .btn-amber, .pr-actions .btn-danger, .pr-actions .btn-primary {
  height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 600;
}
.deliver-toast {
  position: fixed;
  right: 24px;
  top: 78px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 16px 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.deliver-toast b { display: block; font-size: 14px; }
.deliver-toast span { display: block; margin-top: 4px; font-size: 12px; color: #6e6e73; line-height: 1.45; }
.deliver-toast .btn-primary { flex-shrink: 0; height: 36px; border-radius: 10px; padding: 0 14px; }
@media (max-width: 980px) {
  .admin-hero { flex-direction: column; align-items: flex-start; }
  .pc-top, .pc-body { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .deliver-toast { left: 12px; right: 12px; top: auto; bottom: 16px; max-width: none; }
}
@media (max-width: 980px) {
  .admin-hero { flex-direction: column; align-items: flex-start; }
  .pc-top, .pc-body { grid-template-columns: 1fr; display: flex; flex-direction: column; }
}
.bill-sum { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 12px 0 16px; }
.bill-sum div { background: #f5f5f7; border-radius: 12px; padding: 10px 12px; }
.bill-sum em { display: block; font-style: normal; font-size: 11px; color: #6e6e73; }
.bill-sum b { font-size: 18px; letter-spacing: -.03em; }
.bill-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bill-table th { text-align: left; color: #6e6e73; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid rgba(0,0,0,.08); }
.bill-table td { padding: 8px 6px; border-bottom: 1px solid rgba(0,0,0,.06); }

/* 顶部导航：操作日志入口 */
.admin-nav-btn {
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff; color: #1d1d1f;
  font-size: 13px; font-weight: 600;
}
.admin-nav-btn:hover { background: #f2f2f7; text-decoration: none; }
.admin-nav-btn.is-on { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }

/* 必填星号 */
.req-star { color: #ff3b30; margin-left: 2px; }

/* 更换手机号：书面申请红字提示块 */
.written-notice {
  background: #fff1f0;
  border: 1px solid rgba(255,59,48,.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 14px;
}
.written-notice b { display: block; color: #c41c16; font-size: 13px; margin-bottom: 4px; }
.written-notice > span { display: block; color: #c41c16; opacity: .9; font-size: 12px; line-height: 1.65; }
.written-notice .check-line {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px;
  color: #c41c16; font-size: 13px; font-weight: 650;
  cursor: pointer; line-height: 1.5;
}
.written-notice .check-line input {
  width: 16px; height: 16px; margin-top: 2px;
  flex-shrink: 0; accent-color: #ff3b30;
  cursor: pointer;
}

/* 操作日志页 */
.audit-hero { margin-bottom: 16px; }
.audit-card { padding: 20px 22px; }
.audit-filter { align-items: flex-end; margin-bottom: 16px; }
.audit-filter label { margin-bottom: 6px; }
.audit-filter .grow { min-width: 220px; }
.audit-filter-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.audit-filter-actions .btn,
.audit-filter-actions .btn-primary { height: 42px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; }
.audit-table-wrap { border: 1px solid rgba(0,0,0,.07); border-radius: 14px; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.audit-table th {
  text-align: left; color: #6e6e73; font-weight: 700; font-size: 11px;
  padding: 10px 12px; background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,.08);
  white-space: nowrap;
}
.audit-table td { padding: 11px 12px; border-bottom: 1px solid rgba(0,0,0,.05); vertical-align: top; }
.audit-table tbody tr:last-child td { border-bottom: 0; }
.audit-table tbody tr:hover { background: #fafafc; }
.audit-table .nowrap { white-space: nowrap; }
.audit-project { font-weight: 600; white-space: nowrap; }
.audit-detail { color: #4a4a4f; line-height: 1.55; min-width: 180px; }
.audit-action-tag { white-space: nowrap; }
.audit-more { margin: 12px 2px 0; }
@media (max-width: 860px) {
  .audit-filter { flex-direction: column; align-items: stretch; }
  .audit-filter .grow, .audit-filter > div { min-width: 0; width: 100%; }
  .audit-filter-actions { justify-content: flex-end; }
}

