:root {
  --app-bg: #f4f5f9;
  --surface: #ffffff;
  --text: #252d3a;
  --strong: #151922;
  --muted: #8d96a3;
  --line: #eceff3;
  --red: #ef4f45;
  --red-deep: #d73a31;
  --green: #49ad35;
  --blue: #1e9bf0;
  --orange: #ff8a00;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(33, 41, 54, .06);
}

html { background: #e9ebf0; }
body {
  max-width: 480px;
  background: var(--app-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(239, 79, 69, .12); }
@media (min-width: 481px) {
  body { box-shadow: 0 0 36px rgba(15, 23, 42, .12); }
}

.header {
  height: 56px;
  padding: 0 14px;
  background: #f0f0f2;
  color: var(--strong);
  border-bottom: 1px solid #e4e6ea;
}
.header .h-back {
  width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 26px;
  color: var(--strong);
}
.header .h-title { font-size: 18px; font-weight: 700; }
.header .h-act {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--red);
}
.header .h-act a { color: var(--red) !important; }

.ann-bar {
  height: 38px;
  gap: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: #56606e;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.ann-bar .ann-icon { color: var(--red); }
.ann-bar .ann-text { text-overflow: ellipsis; }

.tab-row {
  top: 56px;
  border-bottom: 1px solid var(--line);
}
.tab-row .tab,
.tab-row .tab-item {
  flex: 1;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 15px;
  position: relative;
}
.tab-row .tab.on,
.tab-row .tab-item.active {
  color: var(--red);
  font-weight: 700;
}
.tab-row .tab.on::after,
.tab-row .tab-item.active::after {
  height: 3px;
  left: 38%;
  right: 38%;
  border-radius: 999px;
  background: var(--red);
}

.post-list { padding: 10px 12px; }
.post-card,
.buy-card,
.form-box,
.my-section,
.my-menu,
.stat-row .stat-item {
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.post-card { margin-bottom: 10px; }
.post-card .body { padding: 13px 14px; }
.post-card .p-title {
  color: var(--strong);
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 8px;
}
.post-card .p-meta,
.meta,
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.post-card .p-avatar,
.detail .d-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a45, var(--red));
  font-size: 12px;
  font-weight: 700;
}
.post-card .p-price {
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}
.post-card .p-free {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.pinned-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  margin-right: 5px;
  border-radius: 999px;
  background: var(--red);
  font-size: 11px;
  vertical-align: 1px;
}

.detail {
  min-height: calc(100vh - 56px);
  padding-bottom: 8px;
  background: var(--surface);
}
.merchant-strip {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 246, 223, .95), rgba(226, 242, 239, .95));
  border-radius: 0 0 18px 18px;
}
.merchant-copy { flex: 1; min-width: 0; }
.merchant-copy strong {
  display: block;
  color: var(--strong);
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.merchant-copy span {
  display: inline-flex;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 7px;
  border: 1px solid rgba(239, 79, 69, .55);
  border-radius: 4px;
  color: var(--red-deep);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.seller-home {
  min-width: 76px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.merchant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.merchant-actions .seller-home {
  min-width: 56px;
  height: 38px;
}
.follow-form {
  margin: 0;
}
.follow-btn {
  min-width: 58px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.follow-btn.is-on {
  background: #fff;
  color: var(--red);
}
.detail .d-head { padding: 22px 18px 14px; }
.detail .d-title {
  color: var(--strong);
  font-size: 23px;
  line-height: 1.45;
}
.detail .d-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  border: 0;
}
.post-bottom-notice {
  margin: 18px 18px 134px;
}
.paid-lock-section .post-bottom-notice {
  margin: 20px 0 0;
}
.detail-no-refund {
  margin-bottom: 20px;
  color: #d9785d;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}
.detail-disclaimer {
  color: #969696;
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}
.detail-price {
  margin-left: auto;
  color: var(--red);
  font-weight: 800;
}
.detail-public {
  margin-left: auto;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #1e6fd9;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.detail-top-disclaimer {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 10px;
  background: #fafafa;
  color: #969696;
  font-size: 13px;
  line-height: 1.8;
  text-align: justify;
}
.detail .d-tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 0 999px 999px 0;
  background: var(--red-deep);
  color: #fff;
  font-weight: 700;
}
.detail .d-content {
  margin: 4px 18px 18px;
  padding: 18px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  color: #303948;
  font-size: 17px;
  line-height: 1.9;
}
.detail .d-content img {
  height: auto !important;
  border-radius: 8px;
  margin: 8px 0;
}
.detail .d-tag-paid {
  margin-left: 18px;
}
.refund-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff4e6;
  color: #c46400;
  font-size: 12px;
  font-weight: 700;
}
.paid-lock-section {
  margin: 20px 18px 22px;
}
.paid-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--strong);
  font-size: 22px;
  font-weight: 800;
}
.paid-section-title::before {
  content: "";
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: #ff4b12;
}
.lock-box {
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 18px;
  border: 1px dashed #f1cbd0;
  border-radius: 12px;
  background: #fff7f8;
  color: #f15a24;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}
.lock-box:disabled {
  opacity: .72;
}
.pay-tip {
  margin-top: 16px;
  color: #d9785d;
  font-size: 14px;
  text-align: center;
}
.pay-status {
  min-height: 22px;
  margin-top: 8px;
  color: var(--red-deep);
  font-size: 13px;
  text-align: center;
}
.free-tip {
  margin: 16px 18px;
  text-align: center;
  color: var(--red-deep);
  font-weight: 700;
  font-size: 14px;
}
.detail-paybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 38px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
}
.detail-paybar .pay-note {
  margin-top: 10px;
  color: #a8a8a8;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}
.detail-pay-btn {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff4b00, #ff7430);
  color: #fff;
  box-shadow: 0 9px 18px rgba(255, 88, 18, .28);
  font-size: 20px;
  font-weight: 800;
}
.detail-pay-btn:disabled {
  opacity: .62;
  box-shadow: none;
}

.bottom-nav {
  height: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}
.bottom-nav a {
  min-height: 58px;
  color: #8b929d;
  font-size: 12px;
  gap: 1px;
}
.bottom-nav a.on { color: var(--red); font-weight: 700; }
.bottom-nav a .nav-icon { font-size: 21px; }

.my-top {
  margin: 12px;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.my-top .my-row1 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* restored page styles */
.my-top .my-av {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2f4f8, #dfe5ee);
  color: #344054;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.my-top .my-av img,
.merchant-home-head .my-av img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.my-top .my-main { flex: 1; min-width: 0; }
.my-top .my-name {
  color: var(--strong);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.my-top .my-role {
  margin-top: 7px;
  color: #606a78;
  font-size: 15px;
}
.my-top .my-balance { min-width: 86px; text-align: right; }
.my-top .my-balance span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.my-top .my-balance strong { color: var(--red); font-size: 18px; }
.my-top .my-nums {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(229, 232, 238, .9);
}
.my-top .num-item { flex: 1; text-align: center; }
.my-top .num-val { color: var(--strong); font-size: 18px; font-weight: 800; }
.my-top .num-lbl { margin-top: 4px; color: var(--muted); font-size: 12px; }
.my-section {
  margin: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.my-section-title {
  margin-bottom: 12px;
  color: var(--strong);
  font-size: 16px;
  font-weight: 800;
}
.my-grid,
.post-manage-grid,
.post-count-grid,
.sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.my-grid a,
.post-stat-card,
.sales-card {
  min-height: 76px;
  padding: 12px 6px 10px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 14px;
  background: #fbfcfe;
  color: #344054;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.admin-grid a { min-height: 72px; }
.mi-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.mi-blue { background: #2f80ed; }
.mi-orange { background: #f2994a; }
.mi-red { background: #eb5757; }
.mi-teal { background: #27ae60; }
.mi-purple { background: #9b51e0; }
.mi-green { background: #219653; }
.my-menu {
  margin: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.my-menu a {
  min-height: 50px;
  padding: 0 16px;
  color: #344054;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
}
.my-menu .mi-arrow { margin-left: auto; color: var(--muted); }

.form-row { display: flex; gap: 10px; align-items: center; }
.form-input,
.form-textarea,
.form-box .f-input,
.form-box .f-textarea {
  width: 100%;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}
.form-textarea,
.form-box .f-textarea { min-height: 96px; resize: vertical; }
.form-label,
.form-box .f-label,
.section-label {
  display: block;
  margin: 10px 0 6px;
  color: #56606e;
  font-size: 13px;
  font-weight: 700;
}
.btn-green { background: var(--green); color: #fff; border: none; border-radius: 22px; padding: 11px 0; display: block; text-align: center; }
.btn-red-outline { background: #fff; color: var(--red); border: 1px solid var(--red); border-radius: 22px; padding: 10px 0; display: block; text-align: center; }

.merchant-home-head {
  margin: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.merchant-home-head .my-av {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a45, var(--red));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.merchant-home-copy { flex: 1; min-width: 0; }
.merchant-home-copy strong { display: block; color: var(--strong); font-size: 19px; line-height: 1.25; }
.merchant-home-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.follow-post-head { margin: 14px 12px 4px; color: var(--strong); font-size: 16px; font-weight: 800; }
.follow-list,
.sales-record-list { padding: 10px 12px; }
.follow-row,
.sales-record-card {
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.follow-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.merchant-follow-row {
  align-items: center;
}
.follow-merchant-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.follow-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a45, var(--red));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.follow-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.follow-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.follow-copy strong {
  color: var(--strong);
  font-size: 15px;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.follow-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.merchant-follow-row button {
  min-width: 52px;
  height: 30px;
  border: 1px solid rgba(214, 57, 57, .35);
  border-radius: 15px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
}
.follow-title { color: var(--strong); font-weight: 800; }
.follow-box { margin: 12px; }

.post-search-box {
  margin: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.post-search-box .line-form { display: flex; gap: 8px; }
.post-search-box input,
.post-search-box select { min-width: 0; flex: 1; }
.load-state { padding: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.my-article-card,
.article-top,
.article-actions,
.article-stats { display: flex; gap: 10px; }
.my-article-card {
  margin: 10px 12px;
  padding: 14px;
  flex-direction: column;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.article-title { color: var(--strong); font-size: 16px; font-weight: 800; line-height: 1.4; }
.article-top { justify-content: space-between; align-items: flex-start; }
.article-actions { flex-wrap: wrap; }
.article-sales-link { color: var(--red); font-weight: 800; }
.article-stats { color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.reject-reason { color: var(--red-deep); font-size: 13px; }
.post-count-grid { margin: 12px; }
.post-stat-card .num-val,
.sales-money { color: var(--red); font-size: 20px; font-weight: 900; }
.post-stat-card .num-lbl,
.sales-title { color: var(--muted); font-size: 12px; }

.sales-tabbar { display: flex; margin: 12px; padding: 4px; border-radius: 999px; background: #edf0f5; }
.sales-tab { flex: 1; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: #606a78; font-weight: 700; }
.sales-tab.active { background: #fff; color: var(--red); box-shadow: var(--shadow); }
.sales-notice,
.sales-tip {
  margin: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #c46400;
  font-size: 13px;
}
.sales-record-card { display: flex; align-items: center; gap: 10px; }
.sales-user { flex: 1; min-width: 0; }
.sales-user strong { display: block; color: var(--strong); }
.sales-date { color: var(--muted); font-size: 12px; }
.sales-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2f4f8, #dfe5ee);
  color: #344054;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.sales-refund-form { margin: 0; }
.sales-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 6px; }
.sales-action-row .btn-red,
.sales-action-row .btn-green { width: 100%; }

.sales-refund-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px; }
.sales-refund-head .sales-title { color: var(--strong); font-size: 16px; font-weight: 800; }

.home-code-card {
  margin: 12px;
  padding: 22px 16px;
  text-align: center;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.home-code-title { color: var(--strong); font-size: 20px; font-weight: 800; }
.home-code-img { width: 220px; max-width: 80%; margin: 18px auto; display: block; }
.home-code-tip { color: var(--muted); font-size: 13px; }
.material-head { margin: 12px; color: var(--strong); font-size: 18px; font-weight: 800; }
.report-section,
.report-form { margin: 12px; }
.report-submit { margin-top: 12px; }

/* publish and article page fix */
.form-box {
  margin: 12px;
  padding: 16px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-box form { margin: 0; }
.form-label,
.form-box .f-label {
  display: block;
  margin: 14px 0 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}
.form-input,
.form-textarea,
.form-box .f-input,
.form-box .f-textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe3ea;
  border-radius: 11px;
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  box-shadow: none;
}
.form-input:focus,
.form-textarea:focus,
.form-box .f-input:focus,
.form-box .f-textarea:focus {
  border-color: rgba(239, 79, 69, .75);
  box-shadow: 0 0 0 3px rgba(239, 79, 69, .08);
}
.rich-editor {
  min-height: 180px;
  border: 1px solid #dfe3ea;
  border-radius: 0 0 12px 12px;
  background: #fff;
  overflow: hidden;
}
.ql-toolbar.ql-snow {
  margin-top: 0;
  border: 1px solid #dfe3ea !important;
  border-bottom: 0 !important;
  border-radius: 12px 12px 0 0;
  background: #fbfcfe;
}
.ql-container.ql-snow {
  min-height: 180px;
  border: 1px solid #dfe3ea !important;
  border-radius: 0 0 12px 12px;
  font-size: 15px;
}
.ql-editor {
  min-height: 180px;
  line-height: 1.75;
  color: var(--text);
}
.ql-editor img,
.rich-editor-fallback img {
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  display: inline-block;
  object-fit: contain;
  border-radius: 8px;
}
.rich-editor-fallback {
  min-height: 180px;
  padding: 12px;
  line-height: 1.75;
}
.check-line {
  min-height: 44px;
  margin: 14px 0 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fbfcfe;
  color: #344054;
  font-weight: 700;
}
.check-line input { width: 18px; height: 18px; accent-color: var(--red); }
.check-line em {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.btn-red,
.btn-block {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-search-box {
  margin: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.post-search-box .btn-red { width: 100%; }
.post-count-grid .post-stat-card {
  min-height: 82px;
  padding: 12px 6px;
}
.post-stat-card .mi-icon {
  width: auto;
  min-width: 34px;
  padding: 0 8px;
}
.post-stat-card strong {
  color: var(--strong);
  font-size: 13px;
}
.my-article-card.post-card {
  margin: 10px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(229, 232, 238, .9);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.my-article-card .body {
  padding: 14px;
}
.article-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin-bottom: 8px;
}
.article-title {
  margin: 4px 0 10px;
  color: var(--strong);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}
.article-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.article-stats b,
.article-stats strong { color: var(--strong); }
.article-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.article-actions span,
.article-actions a,
.article-actions button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
  color: #56606e;
  font-size: 12px;
  font-weight: 800;
}
.article-actions .green { background: #ecf8ee; color: #219653; }
.article-actions .gold { background: #fff7e6; color: #b77900; }
.article-actions .orange { background: #fff1e6; color: #d66a00; }
.article-actions .red { background: #fff0f0; color: #d73a31; }
.article-actions .spacer { display: none; }
.article-actions a { background: var(--red); color: #fff; }
.article-sales-link {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.reject-reason {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff0f0;
  color: var(--red-deep);
  font-size: 13px;
}
.load-state {
  padding: 14px 12px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.material-head {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #fbfcfe;
}
.material-head strong {
  display: block;
  color: var(--strong);
  font-size: 16px;
  line-height: 1.4;
}
.material-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* frontend full check fix */
.line-form,
.report-form {
  margin: 12px;
  padding: 16px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-box.line-form,
.form-box.report-form {
  margin: 12px;
}
.line-form form,
.report-form form { margin: 0; }
.line-form .form-row {
  min-height: auto;
  margin: 0 0 13px;
  padding: 0;
  display: block;
}
.line-form .form-row span,
.report-form .section-label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}
.line-form .form-row i {
  margin-right: 2px;
  color: var(--red);
  font-style: normal;
}
.f-input,
.f-textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe3ea;
  border-radius: 11px;
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  box-shadow: none;
}
.f-textarea { min-height: 120px; resize: vertical; }
.f-input:focus,
.f-textarea:focus {
  border-color: rgba(239, 79, 69, .75);
  box-shadow: 0 0 0 3px rgba(239, 79, 69, .08);
}
.report-section { margin: 0 0 14px; }
.report-submit { margin-top: 16px; }
.report-submit .btn-red,
.report-submit .btn-green { width: 100%; }
.editor-img-btn {
  width: 100%;
  min-height: 40px;
  margin: 8px 0 4px;
  border: 1px dashed rgba(239, 79, 69, .55);
  border-radius: 11px;
  background: #fff7f6;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}
.editor-img-btn:active { background: #ffedeb; }
.rich-editor + .editor-img-btn { margin-bottom: 8px; }
.form-box .row {
  --bs-gutter-x: 10px;
  margin-left: 0;
  margin-right: 0;
}
.form-box .row > * {
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 420px) {
  .my-grid,
  .post-manage-grid,
  .post-count-grid,
  .sales-grid { gap: 8px; }
  .my-grid a,
  .post-stat-card,
  .sales-card { min-height: 70px; }
}

/* admin users and author applications */
.admin-page-tools {
  padding: 10px 12px 0;
  display: flex;
  justify-content: flex-end;
}
.admin-search-form {
  width: 100%;
  min-height: 44px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(229, 232, 238, .95);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-search-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--strong);
  font-size: 14px;
}
.admin-search-input::placeholder {
  color: #a4acb8;
}
.admin-search-clear {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-search-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  flex: 0 0 auto;
}
.search-loupe {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
  display: inline-block;
}
.search-loupe::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}
.admin-list {
  padding: 10px 12px 24px;
}
.admin-user-card,
.author-apply-card,
.admin-detail-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-user-main { min-width: 0; flex: 1; }
.admin-user-main strong,
.author-apply-top strong {
  display: block;
  color: var(--strong);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.admin-user-main span,
.author-apply-top span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.admin-user-side {
  min-width: 86px;
  text-align: right;
}
.admin-user-side b {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 16px;
}
.status-pill,
.apply-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}
.status-ok,
.apply-ok { background: #eaf8ee; color: #219653; }
.status-off,
.apply-no { background: #fff0f0; color: #d73a31; }
.apply-pending { background: #fff7e6; color: #d66a00; font-size: 15px; }
.detail-user-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.detail-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2f4f8, #dfe5ee);
  color: #344054;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  flex-shrink: 0;
}
.detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-user-copy { flex: 1; min-width: 0; }
.detail-user-copy strong {
  display: block;
  color: var(--strong);
  font-size: 20px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-user-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.detail-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f1f3f6;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); font-size: 14px; }
.detail-row strong {
  color: var(--strong);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}
.detail-row-link {
  margin: 0 -4px;
  padding: 0 4px;
  border-radius: 10px;
  cursor: pointer;
}
.detail-row-link:active { background: #fff0f0; }
.detail-row-danger span,
.detail-row-danger strong {
  color: var(--red-deep);
}
.detail-row-danger strong { font-weight: 900; }
.author-apply-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.author-apply-top > div { min-width: 0; flex: 1; }
.author-apply-meta {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbfcfe;
  color: #56606e;
  font-size: 14px;
  line-height: 1.8;
}
.author-apply-meta span {
  display: block;
  word-break: break-all;
}
.author-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.author-actions form { flex: 1; margin: 0; }
.admin-action-btn {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.action-pass { background: #219653; }
.action-reject { background: #d73a31; }
.action-cancel { background: #8d96a3; }
.apply-modal[hidden] { display: none !important; }
.apply-modal .modal-sheet {
  padding: 18px;
  border-radius: 18px 18px 0 0;
}
.modal-title {
  color: var(--strong);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}
.modal-tip {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.readonly-tip {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #d66a00;
  font-weight: 900;
  text-align: center;
}
.author-form input[readonly] {
  background: #f6f7f9;
  color: #606a78;
}
.author-form button[disabled] {
  background: #c5cad3;
  color: #fff;
}

/* complaint flow redesign */
.complaint-type-page { min-height: calc(100vh - 56px); background: #f4f5f9; }
.complaint-type-head {
  padding: 16px 14px;
  color: #344054;
  font-size: 17px;
  background: #f6f7fb;
  border-bottom: 1px solid var(--line);
}
.complaint-type-list { background: #fff; }
.complaint-type-row {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  color: #344054;
  font-size: 18px;
}
.complaint-type-row span { flex: 1; }
.complaint-type-row em {
  color: #a8afb9;
  font-style: normal;
  font-size: 24px;
}
.complaint-detail-form { min-height: calc(100vh - 56px); background: #f4f5f9; }
.complaint-block {
  margin: 0 0 12px;
  padding: 0;
  background: #fff;
}
.complaint-label,
.complaint-label-row {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: #7d8490;
  font-size: 17px;
  font-weight: 500;
}
.complaint-label-row { justify-content: space-between; background: #f6f7fb; }
.complaint-label-row span { color: #7d8490; }
.complaint-textarea {
  width: 100%;
  min-height: 170px;
  border: 0;
  padding: 16px 18px;
  resize: none;
  color: #344054;
  font-size: 17px;
  line-height: 1.7;
  outline: none;
}
.complaint-textarea::placeholder,
.complaint-input::placeholder { color: #c4c8d0; }
.complaint-images {
  min-height: 118px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
}
.complaint-add-img,
.complaint-preview {
  width: 96px;
  height: 96px;
  border-radius: 2px;
  background: #f2f2f3;
}
.complaint-add-img {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}
.complaint-add-img .image-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.complaint-add-img span {
  color: #50555c;
  font-size: 46px;
  line-height: 1;
  font-weight: 300;
  pointer-events: none;
}
.complaint-preview { object-fit: cover; display: block; }
.complaint-input {
  width: 100%;
  min-height: 72px;
  border: 0;
  padding: 0 18px 16px;
  color: #344054;
  font-size: 17px;
  outline: none;
}
.complaint-submit-wrap { padding: 28px 48px; }
.complaint-submit {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: #49ad35;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.complaint-admin-list { padding: 10px 12px 24px; }
.complaint-admin-card {
  margin-bottom: 10px;
  padding: 14px;
  display: block;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.complaint-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.complaint-admin-top strong {
  color: var(--strong);
  font-size: 17px;
  font-weight: 900;
}
.complaint-admin-desc {
  margin-top: 9px;
  color: #56606e;
  font-size: 14px;
  line-height: 1.55;
}
.complaint-admin-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.complaint-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.complaint-detail-head strong {
  color: var(--strong);
  font-size: 19px;
  font-weight: 900;
}
.complaint-detail-title {
  margin-bottom: 10px;
  color: var(--strong);
  font-size: 16px;
  font-weight: 900;
}
.complaint-detail-content {
  color: #344054;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.complaint-detail-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.complaint-detail-images img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: #f2f3f5;
}

/* no top header and admin post review */
.header { display: none !important; }
.tab-row { top: 0 !important; }
body { padding-top: 0 !important; }
.admin-post-page { min-height: 100vh; background: var(--app-bg); }
.admin-post-tabs {
  position: sticky;
  top: 0 !important;
  z-index: 80;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}
.admin-post-filter {
  margin: 12px;
  padding: 12px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.admin-post-filter .form-input { margin: 0; }
.admin-pagination {
  margin: 4px 12px 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-pagination a,
.admin-pagination .disabled {
  min-width: 62px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.admin-pagination a {
  background: var(--red);
  color: #fff;
}
.admin-pagination .disabled {
  background: #f2f4f7;
  color: #a4acb8;
}
.admin-pagination .page-info {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.admin-post-list { padding: 0 12px 24px; }
.admin-post-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.admin-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-post-main { flex: 1; min-width: 0; }
.admin-post-main strong {
  display: block;
  color: var(--strong);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.42;
}
.admin-post-main span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.review-status {
  min-width: 64px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.review-ok { background: #eaf8ee; color: #219653; }
.review-no { background: #fff0f0; color: #d73a31; }
.review-pending { background: #fff7e6; color: #d66a00; }
.admin-post-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbfcfe;
  color: #606a78;
  font-size: 13px;
  line-height: 1.65;
}
.admin-post-reason {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff0f0;
  color: var(--red-deep);
  font-size: 13px;
}
.admin-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.admin-post-actions form { margin: 0; display: flex; gap: 8px; }
.review-reject-form { flex: 1 1 180px; }
.review-reject-form input {
  min-width: 0;
  flex: 1;
  height: 36px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}
.review-btn {
  min-width: 62px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.review-pass { background: #219653; }
.review-reject { background: #d73a31; }
.review-pin { background: #8d96a3; }
.review-pin-on { background: var(--red); }
.review-edit { background: #344054; }

/* admin finance pages */
.finance-list { padding: 10px 12px 24px; }
.finance-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.finance-card-link {
  display: block;
  color: inherit;
  cursor: pointer;
}
.finance-card-link:active {
  transform: scale(.995);
  background: #fffafa;
}
.finance-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.finance-card-head strong {
  min-width: 0;
  color: var(--strong);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
}
.finance-meta {
  margin-top: 8px;
  color: #606a78;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}
.finance-error {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff0f0;
  color: var(--red-deep);
  font-size: 13px;
  line-height: 1.55;
  word-break: break-all;
}
.finance-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.finance-detail-head strong {
  color: var(--red-deep);
  font-size: 24px;
  font-weight: 900;
}
.purchase-flow-card {
  display: block;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
}
.purchase-flow-card:active {
  transform: scale(.995);
  background: #fffafa;
}
.purchase-flow-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.purchase-flow-main strong {
  min-width: 0;
  color: var(--strong);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}
.purchase-flow-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.purchase-flow-meta span,
.purchase-flow-sub {
  color: #606a78;
  font-size: 13px;
}
.purchase-flow-meta b {
  color: var(--red-deep);
  font-size: 18px;
  font-weight: 900;
}
.purchase-flow-sub {
  margin-top: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.finance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.finance-actions form {
  display: flex;
  gap: 8px;
  margin: 0;
}
.finance-actions input {
  min-width: 0;
  width: 130px;
  height: 36px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}


/* sales pages */
.sales-page {
  min-height: calc(100vh - 44px);
  padding: 10px 10px 18px;
  background: #f3eeee;
}
.sales-summary-card {
  width: 100%;
  min-height: 0;
  margin: 0 0 10px;
  padding: 18px 18px 14px;
  display: block;
  border: 1px solid rgba(229, 218, 218, .95);
  border-radius: 14px;
  background: #fff8f8;
  box-shadow: 0 4px 14px rgba(80, 38, 38, .08);
  color: #514752;
  text-align: left;
}
.sales-summary-card .sales-title {
  margin: 4px 0 16px;
  color: #3b3440;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}
.sales-summary-card .sales-date {
  margin-bottom: 12px;
  color: #7b7380;
  font-size: 15px;
}
.sales-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.summary-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.summary-item {
  display: flex;
  align-items: baseline;
  min-width: 0;
  color: #5b525c;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
}
.summary-item span {
  flex-shrink: 0;
}
.summary-item b {
  color: #b84755;
  font-size: 17px;
  font-weight: 800;
}
.sales-tabbar {
  display: flex;
  margin: 10px 0;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  gap: 8px;
}
.sales-tabbar.single {
  padding: 8px 10px;
}
.sales-tab {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e6e1e1;
  color: #6b6068;
  font-size: 17px;
  font-weight: 800;
}
.sales-tab.active {
  background: #42bf4d;
  color: #fff;
  box-shadow: none;
}
.sales-record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sales-record-card {
  min-height: 82px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(229, 218, 218, .9);
  border-radius: 10px;
  background: #fff8f8;
  box-shadow: 0 3px 10px rgba(80, 38, 38, .06);
}
.sales-user {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sales-user-copy {
  min-width: 0;
}
.sales-user-copy strong {
  max-width: 160px;
  display: block;
  overflow: hidden;
  color: #514752;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sales-user-copy span {
  margin-top: 8px;
  display: block;
  color: #514752;
  font-size: 17px;
}
.sales-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f2f4f8, #dfe5ee);
  color: #344054;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.sales-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.sales-money {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.sales-money span {
  color: #5d5861;
  font-size: 15px;
  white-space: nowrap;
}
.sales-money b {
  color: #3b8f46;
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
}
.sales-money.refund b {
  color: #c74848;
}
.sales-notice,
.sales-tip {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff3dc;
  color: #c78930;
  font-size: 13px;
  text-align: center;
}
.sales-summary-card .sales-tip {
  margin: 12px 0 0;
  background: transparent;
  color: #b96655;
}
.sales-refund-head {
  margin: 0 0 8px;
  justify-content: flex-start;
}
.sales-action-row {
  margin-top: 16px;
}
.sales-action-row .btn-red,
.sales-action-row .btn-green {
  min-height: 48px;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 800;
}
.sales-action-row .btn-red:disabled,
.sales-action-row .btn-green:disabled {
  background: #d8dbe1;
  color: #8d96a3;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}


.article-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.article-title { display: block; }
.article-status,
.article-public,
.article-settled,
.article-refunded,
.article-lock {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.article-status.status-approved { background: #e8f5e9; color: #388e3c; }
.article-status.status-pending { background: #fff3e0; color: #f57c00; }
.article-status.status-rejected { background: #ffebee; color: #d32f2f; }
.article-status.status-offline { background: #eef1f5; color: #56606e; }
.article-public { background: #eaf4ff; color: #1e6fd9; }
.article-settled { background: #ecf8ee; color: #219653; }
.article-refunded { background: #fff0f0; color: #d73a31; }
.article-lock { background: #f3f0ff; color: #6d4aff; }
.article-actions form { margin: 0; display: inline-flex; }
.article-actions button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
  color: #56606e;
  font-size: 12px;
  font-weight: 800;
}
.article-actions button.green { background: #ecf8ee; color: #219653; }
.article-actions button.blue { background: #eaf4ff; color: #1e6fd9; }
.article-actions button.orange { background: #fff1e6; color: #d66a00; }
.article-actions button.red { background: #fff0f0; color: #d73a31; }
.article-actions .gray { background: #eef1f5; color: #667085; }


.author-image-block {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef1f5;
}
.author-apply-images {
  min-height: 110px;
}
.author-admin-images {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.author-admin-images a,
.author-admin-images img {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 8px;
}
.author-admin-images img {
  object-fit: cover;
}


.withdraw-flash {
  margin: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #c46400;
  font-size: 13px;
  text-align: center;
}
.withdraw-balance-card {
  position: relative;
}
.withdraw-history-link {
  position: absolute;
  top: 12px;
  right: 14px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
  color: #56606e;
  font-size: 12px;
  font-weight: 800;
}
.withdraw-balance-label {
  color: #999;
  font-size: 12px;
}
.withdraw-form-tip {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.withdraw-save-line {
  min-height: 38px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  color: #56606e;
  font-size: 13px;
  font-weight: 800;
}
.withdraw-save-line input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}
.form-box .f-input[readonly] {
  background: #f8fafc;
  color: #667085;
}
.withdraw-history-list {
  padding: 10px 12px 24px;
}
.withdraw-record-card {
  margin-bottom: 10px;
}
.withdraw-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.withdraw-record-head strong {
  color: var(--strong);
  font-size: 17px;
  font-weight: 900;
}
.withdraw-record-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}
.author-actions > .admin-action-btn,
.author-actions form {
  flex: 1;
}
.author-actions .admin-action-btn {
  min-height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}


.author-image-edit-form {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}
.author-image-edit-label {
  display: block;
  margin-bottom: 8px;
  color: #56606e;
  font-size: 13px;
  font-weight: 800;
}
.author-image-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.author-image-edit-row input {
  min-width: 0;
  flex: 1;
  font-size: 12px;
}
.author-image-edit-row .admin-action-btn {
  width: auto;
  min-width: 84px;
  padding: 0 10px;
}
.action-save { background: #2f80ed; }
.author-image-edit-tip {
  margin-top: 6px;
  color: #8d96a3;
  font-size: 12px;
}


.author-qr-card {
  margin: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.author-qr-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.home-post-card,
.admin-manage-post-card {
  position: relative;
  overflow: visible;
}
.home-post-link {
  display: block;
}
.admin-card-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 8;
  width: 32px;
  min-height: 32px;
}
.admin-card-menu[open] {
  width: auto;
  z-index: 40;
}
.admin-card-menu summary {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  color: #56606e;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.admin-card-menu summary::-webkit-details-marker { display: none; }
.admin-card-menu:not([open]) .admin-card-actions {
  display: none !important;
}
.admin-card-actions {
  position: absolute;
  top: 38px;
  right: 0;
  min-width: 92px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}
.admin-card-actions a,
.admin-card-actions button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.admin-card-actions form { margin: 0; }
.my-grid a,
.stat-row a.stat-item,
.admin-income-card,
.article-title,
.article-sales-link {
  cursor: pointer;
  touch-action: manipulation;
}
.admin-card-actions a:active,
.admin-card-actions button:active {
  background: #f4f5f9;
}
.admin-card-actions .danger {
  color: var(--red);
}
.merchant-row-main {
  flex: 1;
  min-width: 0;
  display: block;
}
.merchant-post-head {
  margin: 10px 12px 0;
  padding: 14px;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.merchant-post-head strong {
  display: block;
  color: var(--strong);
  font-size: 17px;
}
.merchant-post-head span {
  color: var(--muted);
  font-size: 12px;
}
.admin-manage-post-card .body {
  padding-right: 48px;
}
.home-post-card .body {
  padding-right: 48px;
}

.page-back-wrap {
  padding: 10px 12px 0;
}
.page-back-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--strong);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.page-back-btn::before {
  content: '<';
  margin-right: 6px;
  color: var(--muted);
}

.stat-row a.stat-item,
.admin-income-card {
  display: block;
  color: inherit;
  cursor: pointer;
}
.stat-row a.stat-item:active,
.admin-income-card:active {
  transform: scale(.98);
}

.author-submit-tip {
  margin-top: 10px;
  color: #8d96a3;
  font-size: 13px;
  text-align: center;
}

.detail-image-block {
  padding-top: 12px;
}
.detail-image-block > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.ios-page-nav {
  position: sticky;
  top: 0;
  z-index: 180;
  min-height: calc(52px + env(safe-area-inset-top));
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
  background: rgba(244, 245, 249, .86);
  border-bottom: 1px solid rgba(209, 213, 219, .62);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.ios-back-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #007aff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}
.ios-back-link::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
}
.ios-page-title {
  position: absolute;
  left: 50%;
  max-width: 58%;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  pointer-events: none;
}
.ios-nav-space {
  min-height: 36px;
}
.ios-page-nav + .tab-row,
.ios-page-nav + .admin-post-page .admin-post-tabs {
  top: calc(52px + env(safe-area-inset-top)) !important;
}
.ios-page-nav + .admin-detail-card,
.ios-page-nav + .form-box,
.ios-page-nav + .admin-list,
.ios-page-nav + .finance-list,
.ios-page-nav + .sales-page,
.ios-page-nav + .author-qr-card,
.ios-page-nav + .merchant-post-head {
  margin-top: 10px;
}

.admin-sales-row {
  margin-top: 8px;
  align-items: flex-start;
}
.admin-sales-row .article-title {
  flex: 1;
  min-width: 0;
}

.withdraw-image-preview {
  margin: -2px 0 12px;
}
.withdraw-image-preview img,
.withdraw-proof img {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background: #f2f3f5;
}
.withdraw-proof {
  width: 86px;
  height: 86px;
  margin-top: 10px;
  display: block;
}
