/* 巴肯老奶论坛 —— 样式
   纸本阅读 + 数据栏目的视觉语言 */

:root {
  --paper: #F2F3EE;
  --paper-2: #E9EBE3;
  --white: #FCFCF8;
  --ink: #16211C;
  --ink-2: #4E5A54;
  --ink-3: #8B948E;
  --green: #0D4A3B;
  --green-mid: #17664F;
  --green-soft: #DDE5DF;
  --red: #BE3D26;
  --red-soft: #F6E3DD;
  --line: #D7DBD3;
  --line-2: #E4E7DF;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo,
    Consolas, monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: #E1E3DB;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #E1E3DB;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}

/* ---------- 外框 ---------- */

.app {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(22, 33, 28, 0.06), 0 20px 60px rgba(22, 33, 28, 0.08);
  display: flex;
  flex-direction: column;
}

.app.has-tabbar .view {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.view {
  flex: 1;
  animation: viewIn 0.26s cubic-bezier(0.22, 0.7, 0.3, 1);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view,
  .sheet,
  .alert,
  .toast {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 首页刊头 ---------- */

.masthead {
  padding: 0 20px 4px;
  border-top: 3px solid var(--ink);
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.masthead-top .date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
}

.masthead-top .date i {
  width: 6px;
  height: 6px;
  background: var(--red);
  display: block;
}

.masthead-top .week {
  font-family: var(--mono);
  font-size: 11px;
}

.blogger {
  margin: 13px 0 0;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.bio {
  margin: 11px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 22em;
  text-wrap: pretty;
}

.ledger {
  display: flex;
  margin: 18px 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.ledger-item {
  flex: 1;
  padding: 10px 0 11px;
  border-right: 1px solid var(--line);
}

.ledger-item:last-child {
  border-right: 0;
  padding-left: 14px;
}

.ledger-item:nth-child(2) {
  padding-left: 14px;
}

.ledger-item b {
  display: block;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ledger-item span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

/* ---------- 筛选 ---------- */

.filter {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  gap: 20px;
  padding: 0 20px;
  background: rgba(242, 243, 238, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.filter button {
  position: relative;
  padding: 13px 0 12px;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  transition: color 0.18s;
}

.filter button.on {
  color: var(--ink);
  font-weight: 700;
}

.filter button.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}

/* ---------- 阅读列表 ---------- */

.list {
  padding: 0 20px;
}

.row {
  padding: 16px 0 15px 14px;
  border-bottom: 1px solid var(--line-2);
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-left-color 0.15s;
}

.row.post {
  border-left-color: var(--green);
}

.row.pre {
  border-left-color: var(--red);
}

.row.method {
  border-left-color: var(--ink);
}

.row:active {
  background: rgba(22, 33, 28, 0.035);
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}

.row-meta .k {
  color: var(--green);
  font-weight: 700;
}

.row.pre .row-meta .k {
  color: var(--red);
}

.row.method .row-meta .k {
  color: var(--ink);
}

.row-meta .sep {
  width: 1px;
  height: 9px;
  background: var(--line);
}

.row-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.48;
  font-weight: 600;
  letter-spacing: -0.008em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-foot {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.row-price {
  margin-left: auto;
  padding-left: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.row-price.free {
  color: var(--green);
  font-weight: 600;
}

.row-price.paid {
  color: var(--red);
}

.row-price.owned {
  color: var(--ink-3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.row-price.owned svg {
  width: 11px;
  height: 11px;
}

.list-note {
  padding: 18px 0 16px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ---------- 底部 tab ---------- */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  display: flex;
  background: rgba(250, 250, 246, 0.96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 30;
}

.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 7px;
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  transition: color 0.16s;
}

.tabbar button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar button.on {
  color: var(--green);
  font-weight: 600;
}

/* ---------- 通用页头 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 12px 0 6px;
  background: rgba(242, 243, 238, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar .back {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.topbar .back:active {
  background: rgba(22, 33, 28, 0.06);
}

.topbar .back svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar .bar-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topbar .bar-right {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  padding-right: 8px;
}

/* ---------- 文章详情 ---------- */

.article {
  padding: 22px 20px 30px;
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  font-family: var(--mono);
}

.art-meta .k {
  font-family: var(--sans);
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.art-meta .k.post {
  color: var(--green);
}

.art-meta .k.method {
  color: var(--ink);
}

.art-title {
  margin: 12px 0 0;
  font-size: 24px;
  line-height: 1.36;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.art-sub {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.art-by {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--mono);
}

.art-by .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #F2F3EE;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.art-by .name {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
}

/* 正文排版 */

.body {
  padding-top: 6px;
}

.body .lead {
  margin: 18px 0 0;
  padding: 0;
  font-size: 16.5px;
  line-height: 1.78;
  font-weight: 600;
  letter-spacing: 0.002em;
  color: var(--ink);
}

.body .lead::first-letter {
  font-size: 1.05em;
}

.body h2 {
  margin: 30px 0 10px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.012em;
  padding-left: 11px;
  border-left: 3px solid var(--green);
}

.body p {
  margin: 0 0 15px;
  font-size: 15.5px;
  line-height: 1.88;
  color: #26302A;
  letter-spacing: 0.004em;
  text-align: justify;
  text-justify: inter-ideograph;
}

.body p + p {
  margin-top: 0;
}

/* 数据表 */

.statbox {
  margin: 20px 0 24px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.statbox-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 9px 2px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}

.statbox-head span:last-child {
  text-align: right;
}

.statbox-head .box-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--line-2);
}

.stat-row:last-child {
  border-bottom: 0;
}

.stat-row b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.stat-row b:last-child {
  text-align: right;
}

.stat-row span {
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.stat-row.h b:first-child,
.stat-row.a b:last-child {
  color: var(--green-mid);
}

/* 回合时间线 */

.round {
  position: relative;
  margin: 0 0 18px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.round .t {
  display: inline-block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
}

.round .t::before {
  content: "";
  position: absolute;
  left: -3.5px;
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--red);
}

.round p {
  font-size: 15px;
  line-height: 1.85;
}

/* 付费墙 */

.paywall {
  position: relative;
  margin-top: -2px;
}

.teaser {
  position: relative;
  overflow: hidden;
  max-height: 300px;
}

.teaser::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(242, 243, 238, 0) 0%,
    rgba(242, 243, 238, 0.55) 38%,
    rgba(242, 243, 238, 0.92) 74%,
    var(--paper) 100%
  );
  pointer-events: none;
}

.lock {
  margin-top: 10px;
  padding: 20px 18px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(22, 33, 28, 0.03), 0 8px 26px rgba(22, 33, 28, 0.05);
}

.lock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}

.lock-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lock-label svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.lock-price {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.lock h3 {
  margin: 15px 0 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.lock p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.12s, opacity 0.12s;
}

.pay-btn:active {
  transform: scale(0.985);
}

.pay-btn svg {
  width: 17px;
  height: 17px;
}

.pay-btn.wechat {
  background: var(--green);
  color: #F4F6F2;
  margin-top: 16px;
}

.pay-btn.alipay {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.lock-note {
  margin-top: 13px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.unlocked-flag {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 22px 0 4px;
  padding: 11px 14px;
  background: var(--green-soft);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.unlocked-flag svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.end-mark {
  margin: 36px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.end-mark .sig {
  font-family: var(--mono);
}

/* ---------- 我的 ---------- */

.mine-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px - env(safe-area-inset-bottom));
}

.mine-foot-wrap {
  margin-top: auto;
}

.mine-head {
  padding: 26px 20px 22px;
  border-top: 3px solid var(--ink);
}

.mine-id {
  display: flex;
  align-items: center;
  gap: 13px;
}

.mine-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  color: #F0F3EE;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.mine-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mine-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.mine-stats {
  display: flex;
  gap: 26px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mine-stats div span {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mine-stats div em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.menu {
  padding: 0 20px;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
}

.menu-row:first-child {
  border-top: 1px solid var(--line);
}

.menu-row .ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.menu-row .ic svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-row .label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.menu-row .hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-row .hint .badge {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: var(--sans);
}

.menu-row .arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.menu-row .arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mine-foot {
  padding: 26px 20px 20px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.8;
  letter-spacing: 0.015em;
}

.mine-foot .foot-label {
  display: block;
  margin-bottom: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}

.mine-foot p {
  margin: 0;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 备案信息 */

.site-foot {
  padding: 0 20px 6px;
  text-align: center;
}

.site-foot a,
.site-foot span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-foot a {
  color: var(--ink-2);
  transition: color 0.15s;
}

.site-foot a:active {
  color: var(--green);
}

.site-foot span {
  color: #A4ACA6;
}

/* 网站名称（与备案主体一致），比域名略重一点 */
.site-foot .ent {
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

/* 主页与详情页：随内容排布，外侧留白由父容器负责 */
.site-foot.in-flow {
  padding: 0;
  margin-top: 28px;
}

.list .site-foot.in-flow {
  margin-top: 0;
  padding-bottom: 22px;
}

.site-foot.in-flow a,
.site-foot.in-flow span {
  font-size: 11px;
  line-height: 1.85;
}

.site-foot.in-flow a {
  color: var(--ink-3);
}

/* ---------- 通用子页 ---------- */

.page {
  padding: 18px 20px 50px;
}

.page-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 4px;
}

.page-title h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-title .count {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.page-desc {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* 订单 / 已购 */

.order-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}

.order-row:first-of-type {
  border-top: 1px solid var(--line);
}

.order-row .left {
  flex: 1;
  min-width: 0;
}

.order-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.005em;
}

.order-row .meta {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.order-row .right {
  text-align: right;
  flex-shrink: 0;
}

.order-row .right b {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.order-row .right span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.empty {
  padding: 52px 0 40px;
  text-align: center;
}

.empty p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.empty .btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  margin-top: 18px;
  border-radius: 20px;
  background: var(--green);
  color: #F4F6F2;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 投诉 */

.c-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}

.c-item:first-of-type {
  border-top: 1px solid var(--line);
}

.c-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.c-no {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.c-status {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.c-status.pending {
  color: var(--red);
  background: var(--red-soft);
}

.c-status.handled {
  color: var(--green);
  background: var(--green-soft);
}

.c-text {
  margin: 9px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink);
}

.c-reply {
  margin-top: 11px;
  padding: 11px 13px;
  background: var(--paper-2);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

.c-reply b {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.c-time {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
}

.btn-line svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* 客服 */

.qr-card {
  margin-top: 22px;
  padding: 26px 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 26px rgba(22, 33, 28, 0.05);
}

.qr-frame {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.qr-frame svg,
.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

/* 图片非严格正方形，用 contain 防止拉伸导致扫不出 */
.qr-frame img {
  object-fit: contain;
}

.qr-tip {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.serve-info {
  margin-top: 20px;
  padding: 0 4px;
}

.serve-info div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}

.serve-info div span:first-child {
  color: var(--ink-3);
}

.serve-info div span:last-child {
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ---------- 弹层 ---------- */

.mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 20, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 50;
  animation: fade 0.2s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mask.center {
  align-items: center;
  padding: 0 34px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 提示弹窗 */

.alert {
  width: 100%;
  max-width: 296px;
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px 16px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(16, 24, 20, 0.22);
  animation: popIn 0.22s cubic-bezier(0.22, 0.7, 0.3, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.alert-ic {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
}

.alert-ic svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alert h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.alert p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-2);
  text-align: left;
}

.alert-price {
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.alert-btn {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  border-radius: 10px;
  background: var(--green);
  color: #F4F6F2;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.12s, opacity 0.12s;
}

.alert-btn:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.sheet {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  animation: slideUp 0.28s cubic-bezier(0.22, 0.7, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

.sheet-grip {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 0 auto 14px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sheet-head button {
  font-size: 20px;
  color: var(--ink-3);
  line-height: 1;
  padding: 4px 2px;
}

.sheet-pay {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border-radius: 10px;
  background: var(--green);
  color: #F4F6F2;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.sheet-pay:disabled {
  opacity: 0.6;
}

.sheet-note {
  margin-top: 11px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* 投诉表单 */

.sheet textarea {
  width: 100%;
  height: 104px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  resize: none;
  outline: none;
}

.sheet textarea:focus {
  border-color: var(--green);
  background: var(--white);
}

.sheet textarea::placeholder {
  color: var(--ink-3);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(6px);
  background: rgba(22, 33, 28, 0.94);
  color: #F2F3EE;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 20px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 小屏微调 ---------- */

@media (max-width: 360px) {
  .blogger {
    font-size: 30px;
  }
  .art-title {
    font-size: 22px;
  }
  .body p {
    font-size: 15px;
  }
}

/* 键盘可见焦点 */
.row:focus-visible,
.order-row:focus-visible,
.menu-row:focus-visible,
.tabbar button:focus-visible,
.pay-btn:focus-visible,
.alert-btn:focus-visible,
.filter button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
  border-radius: 4px;
}
