/*
 * 知候 Web（PWA）。配色与 Flutter 端 core/theme/app_theme.dart 对齐：
 * 玉青（主）/ 陶土（辅）/ 琥珀（强调）/ 暖砂（底）/ 墨（字）。
 * 只做浅色主题——和移动端 ThemeMode.light 保持一致。
 */

:root {
  --jade: #1f6f5c;
  --jade-deep: #0b3a2e;
  --terracotta: #b85c3e;
  --amber: #9a6b12;
  --sand: #f7f2e8;
  --ink: #1b1c1a;

  --surface: var(--sand);
  --surface-lowest: #fffcf6;
  --surface-low: #fbf6ec;
  --surface-container: #f3ede1;
  --surface-high: #ede6d8;
  --surface-highest: #e6ded0;

  --primary: var(--jade);
  --primary-container: #d6efe7;
  --on-primary-container: var(--jade-deep);
  --secondary: var(--terracotta);
  --secondary-container: #f6ded2;
  --on-secondary-container: #3e1a0d;
  --tertiary: var(--amber);
  --tertiary-container: #f7e7be;
  --on-tertiary-container: #3a2a00;

  --on-surface: var(--ink);
  --on-surface-variant: #5a5f58;
  --outline: #8c8f86;
  --outline-variant: #d5d0c4;
  --error: #b3261e;
  --on-error: #fff;
  --error-container: #f9dedc;
  --on-error-container: #410e0b;

  --radius-card: 20px;
  --radius-hero: 28px;
  --tabbar-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /*
   * 字体栈里中文字体必须放前面：
   * iOS 模拟器（26.3）的系统字体不含中文，一旦 `-apple-system` 排在首位，
   * 整页中文会渲染成方框（真机上会回落到 PingFang，但模拟器不会）。
   * PingFang SC 自带拉丁字形，所以中英混排也不用换字体。
   */
  --font: "PingFang SC", "Heiti SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, "PingFang SC", monospace;
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--on-surface);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior-y: none;
  /* 顶栏/底栏自己滚，页面本体不滚，避免 iOS 整页回弹 */
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable] {
  -webkit-user-select: text;
  user-select: text;
  /* 16px 是 iOS Safari 不自动放大的下限 */
  font-size: 16px;
  font-family: var(--font);
}

button {
  font-family: var(--font);
  cursor: pointer;
}

/* ---------- 布局骨架 ---------- */

.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.tabs {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.tab-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.tab-page.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.stack {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.stack-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  pointer-events: auto;
  animation: slide-in 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slide-in {
  from {
    transform: translateX(18px);
    opacity: 0.4;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ---------- 页头 ---------- */

.page-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(var(--safe-top) + 6px) 8px 6px 8px;
  min-height: 48px;
  background: var(--surface);
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
  padding-left: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--on-surface);
  transition: background 0.16s ease;
}

.icon-btn:active {
  background: var(--surface-high);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 4px 16px calc(var(--tabbar-height) + var(--safe-bottom) + 24px) 16px;
}

.stack-page .scroll {
  padding-bottom: calc(var(--safe-bottom) + 28px);
}

/* ---------- 底部页签 ---------- */

.tabbar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: calc(var(--tabbar-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(251, 246, 236, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--outline-variant);
}

.tab-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  font-size: 11px;
  padding: 6px 0 4px;
}

.tab-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-item .tab-pill {
  display: grid;
  place-items: center;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  transition: background 0.16s ease;
}

.tab-item.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-item.active .tab-pill {
  background: var(--primary-container);
}

/* ---------- 通用元件 ---------- */

.card {
  background: var(--surface-low);
  border: 1px solid rgba(213, 208, 196, 0.6);
  border-radius: var(--radius-card);
  padding: 14px;
}

.card + .card {
  margin-top: 10px;
}

.hero {
  background: var(--surface-low);
  border-radius: var(--radius-hero);
  padding: 20px;
}

.section {
  border-radius: var(--radius-card);
  padding: 16px;
}

.section + .section {
  margin-top: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

.section-title svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.tone-primary {
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.tone-secondary {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}
.tone-tertiary {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}
.tone-neutral {
  background: var(--surface-low);
  color: var(--on-surface);
  border: 1px solid rgba(213, 208, 196, 0.6);
}

.muted {
  color: var(--on-surface-variant);
}

.small {
  font-size: 12px;
  line-height: 1.5;
}

.tiny {
  font-size: 11px;
  line-height: 1.5;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row.between {
  justify-content: space-between;
}

.grow {
  flex: 1 1 auto;
  min-width: 0;
}

.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-gap-4 > * + * {
  margin-top: 4px;
}
.stack-gap-8 > * + * {
  margin-top: 8px;
}
.stack-gap-12 > * + * {
  margin-top: 12px;
}
.stack-gap-16 > * + * {
  margin-top: 16px;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface-high);
  color: var(--on-surface);
  transition: transform 0.12s ease, opacity 0.16s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn:disabled {
  opacity: 0.5;
}

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

.btn-filled {
  background: var(--primary);
  color: #fff;
}

.btn-tonal {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.btn-outlined {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--on-surface);
}

.btn-text {
  background: transparent;
  color: var(--primary);
  padding: 0 12px;
  min-height: 40px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  min-height: 36px;
  font-size: 13px;
  padding: 0 14px;
}

/* 芯片 */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--on-surface);
  font-size: 13px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.chip.on {
  background: var(--primary-container);
  border-color: transparent;
  color: var(--on-primary-container);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-high);
  color: var(--on-surface-variant);
}

.pill-primary {
  background: rgba(31, 111, 92, 0.14);
  color: var(--primary);
}

.pill-secondary {
  background: rgba(184, 92, 62, 0.14);
  color: var(--secondary);
}

.pill-tertiary {
  background: rgba(154, 107, 18, 0.16);
  color: var(--tertiary);
}

.pill-error {
  background: rgba(179, 38, 30, 0.14);
  color: var(--error);
}

/* 表单 */

.field {
  display: block;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--on-surface);
}

.input,
.textarea {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  background: var(--surface-low);
  border-radius: 18px;
  padding: 13px 14px;
  color: var(--on-surface);
  outline: none;
  resize: none;
  line-height: 1.45;
}

.input:focus,
.textarea:focus {
  border-color: var(--primary);
  background: var(--surface-lowest);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--outline);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-highest);
  border: none;
  transition: background 0.18s ease;
  flex: 0 0 auto;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.switch.on {
  background: var(--primary);
}

.switch.on::after {
  transform: translateX(20px);
}

/* ---------- 时间线卡片 ---------- */

.event-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface-low);
  border: 1px solid rgba(213, 208, 196, 0.6);
  border-radius: var(--radius-card);
  padding: 14px;
  color: inherit;
  font: inherit;
}

.event-card:active {
  background: var(--surface-container);
}

.event-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-type {
  display: inline-block;
  max-width: 70%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-type.tcm {
  background: rgba(31, 111, 92, 0.14);
  color: var(--primary);
}

.event-type.western {
  background: rgba(154, 107, 18, 0.16);
  color: var(--tertiary);
}

.event-type.lifestyle {
  background: rgba(184, 92, 62, 0.14);
  color: var(--secondary);
}

.event-type.unknown {
  background: var(--surface-high);
  color: var(--on-surface-variant);
}

.event-time {
  font-size: 11px;
  color: var(--on-surface-variant);
}

.event-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 10px;
  background: var(--surface-container);
}

.event-summary {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--on-surface);
  overflow-wrap: anywhere;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.week-bar {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}

.week-bar span {
  flex: 1 1 0;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-highest);
}

.week-bar span.on {
  background: var(--primary);
}

/* ---------- 记录页卡片网格 ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.record-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 108px;
  padding: 14px;
  text-align: left;
  background: var(--surface-low);
  border: 1px solid rgba(213, 208, 196, 0.6);
  border-radius: var(--radius-card);
  color: inherit;
  font: inherit;
  transition: transform 0.12s ease;
}

.record-card:active {
  transform: scale(0.975);
}

.record-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(214, 239, 231, 0.7);
  color: var(--on-primary-container);
}

.record-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.record-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.record-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--on-surface-variant);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 列表项 ---------- */

.tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(213, 208, 196, 0.6);
  border-radius: var(--radius-card);
  background: var(--surface-low);
  color: inherit;
  font: inherit;
  text-align: left;
}

.tile + .tile {
  margin-top: 10px;
}

.tile.done {
  background: var(--primary-container);
  border-color: transparent;
  color: var(--on-primary-container);
}

.tile-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(247, 242, 232, 0.65);
  color: var(--primary);
}

.tile.done .tile-icon {
  color: var(--on-primary-container);
  background: rgba(255, 255, 255, 0.45);
}

.tile-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.tile-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.75;
}

.tile-trail {
  flex: 0 0 auto;
  color: var(--outline);
  display: grid;
  place-items: center;
}

.tile-trail svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.tile.done .tile-trail {
  color: var(--on-primary-container);
}

/* ---------- 瀑布流 ---------- */

.masonry {
  column-count: 2;
  column-gap: 10px;
}

.masonry > * {
  break-inside: avoid;
  margin-bottom: 10px;
}

/* ---------- 空态 ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--surface-low);
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.empty-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(27, 28, 26, 0.36);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sheet-backdrop.show {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: var(--safe-bottom);
}

.sheet.show {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--outline-variant);
  margin: 10px auto 4px;
  flex: 0 0 auto;
}

.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 24px;
}

.sheet-title {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.dialog {
  position: fixed;
  z-index: 71;
  left: 50%;
  top: 50%;
  width: min(340px, calc(100vw - 48px));
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  background: var(--surface-lowest);
  border-radius: 26px;
  padding: 22px 20px 14px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.dialog.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.dialog-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.dialog-body {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 18px);
  z-index: 80;
  max-width: calc(100vw - 48px);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(27, 28, 26, 0.92);
  color: #f7f2e8;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

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

/* ---------- 启动图 ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--sand);
  transition: opacity 0.3s ease;
}

.splash.hide {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(11, 58, 46, 0.18);
}

.splash-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--jade-deep);
  margin-top: 4px;
}

.splash-slogan {
  font-size: 12px;
  color: var(--outline);
  letter-spacing: 0.5px;
}

/* ---------- 图表 ---------- */

.sparkline {
  display: block;
  width: 100%;
  height: 56px;
}

.metric-value {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric-value.abnormal {
  color: var(--error);
}

.summary-text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 杂项 ---------- */

.disclaimer {
  border-radius: 22px;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  padding: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.divider {
  height: 1px;
  background: var(--outline-variant);
  opacity: 0.7;
  margin: 12px 0;
}

.center {
  text-align: center;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
  -webkit-user-select: text;
  user-select: text;
}

.code-box {
  background: var(--surface-high);
  border-radius: 12px;
  padding: 12px;
  max-height: 140px;
  overflow: auto;
}

.step-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 12px;
  font-weight: 700;
}

.trend {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: var(--on-surface-variant);
}

.install-hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--radius-card);
  padding: 14px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 13px;
  line-height: 1.55;
}

.install-hint svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}

/* ---------- 悬浮按钮 ---------- */

.fab {
  position: fixed;
  right: 18px;
  /* 页签栏 + 安全区之上，再留 16px */
  bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 16px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(11, 58, 46, 0.24);
  transition: transform 0.12s ease;
}

.fab:active {
  transform: scale(0.97);
}

.fab svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- 其它 ---------- */

input[type="checkbox"] {
  accent-color: var(--primary);
}

[data-icon] {
  display: inline-flex;
  align-items: center;
}

@media (min-width: 620px) {
  .scroll {
    padding-left: max(16px, calc(50vw - 300px));
    padding-right: max(16px, calc(50vw - 300px));
  }
  .page-header {
    padding-left: max(8px, calc(50vw - 308px));
    padding-right: max(8px, calc(50vw - 308px));
  }
}
