/* ===== 设计令牌 ===== */
:root {
  --bg: #F5F2EC;
  --bg-2: #EDE8DF;
  --card: #FFFFFF;
  --ink: #1C1B18;
  --ink-2: #5E5A52;
  --ink-3: #8A857B;
  --line: #E2DCD0;
  --brand: #1F7A6D;
  --brand-press: #186257;
  --brand-soft: #E3F1EE;
  --on-brand: #FFFFFF;
  --accent: #A96412;
  --accent-soft: #F7ECD9;
  --ok: #2E8B57;
  --warn: #B7791F;
  --bad: #C23B30;
  --mask: rgba(20, 18, 14, .5);
  --shadow-c: 28 24 16;
  --gold: #C9A227;           /* 卡片金色描边 */
  --gold-soft: #E8C96A;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", "Times New Roman", serif;

  --fs-0: 11px; --lh-0: 14px;
  --fs-1: 12px; --lh-1: 16px;
  --fs-2: 13px; --lh-2: 18px;
  --fs-3: 14px; --lh-3: 20px;
  --fs-4: 16px; --lh-4: 24px;
  --fs-5: 18px; --lh-5: 26px;
  --fs-6: 22px; --lh-6: 30px;
  --fs-7: 28px; --lh-7: 36px;
  --fs-8: 36px; --lh-8: 44px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px;

  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 18px; --r-5: 28px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgb(var(--shadow-c) / .06);
  --sh-2: 0 4px 14px rgb(var(--shadow-c) / .1);
  --sh-3: 0 12px 32px rgb(var(--shadow-c) / .16);

  --dur-1: 90ms; --dur-2: .16s; --dur-3: .26s; --dur-4: .4s;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);

  --z-nav: 20; --z-sheet: 50; --z-dialog: 60; --z-viewer: 70; --z-toast: 80;
  --stagger: 28px;
  --press: color-mix(in srgb, currentColor 8%, transparent);
  --tabbar-h: 56px;
  --bottom-offset: 16px;
}

[data-t="dark"] {
  --bg: #111312; --bg-2: #181B1A; --card: #1D201F;
  --ink: #ECE8DE; --ink-2: #A9A599; --ink-3: #77746B;
  --line: #2C302E;
  --brand: #52BBA8; --brand-press: #6FCDBB; --brand-soft: #17302B; --on-brand: #0C1F1B;
  --accent: #E0A44A; --accent-soft: #33281A;
  --ok: #5CC48A; --warn: #E0A44A; --bad: #EF6B5E;
  --mask: rgba(0, 0, 0, .62);
  --shadow-c: 0 0 0;
  --sh-1: none; --sh-2: none; --sh-3: none;
  color-scheme: dark;
}

/* ===== 基础 ===== */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-3);
  line-height: var(--lh-3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  /* 纸纹：极淡噪点 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--brand-soft); color: var(--brand); }

/* ===== 彩虹流动水印（签名特效） ===== */
@keyframes wm-flow {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

.wm-mark, .wm-sub {
  background: linear-gradient(90deg,
    #ff3b6b, #ff9a3c, #ffd23f, #3ddc84,
    #22c3d6, #2d8cff, #8a4dff, #ff4fa0, #ff3b6b);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wm-flow 3s linear infinite;
}

.wm-mark {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .18em;
  padding: 0 .34em 0 .1em;   /* 左右都留足，防止渐变字被 clip 裁切 */
  white-space: nowrap;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  overflow: visible;
  line-height: 1.35;         /* 上下留白，避免字顶/字底被切 */
}

.wm-sub {
  display: block;
  margin-top: var(--sp-2);
  padding: 0 .62em 0 .08em;
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: .6em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-fill-color: transparent;
  overflow: visible;
}

.wm-s .wm-mark { font-size: 18px; }
.wm-m .wm-mark { font-size: 28px; }
.wm-l .wm-mark { font-size: 44px; line-height: var(--lh-8); }

/* 邻里认证徽章：红底 + 彩虹流动字（与首页 Logo 特效一致） */
.feat-verify {
  background: linear-gradient(145deg, #E8362F, #C41E12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: 0 1px 5px rgba(200, 40, 30, .38);
  font-weight: 700;
  letter-spacing: .04em;
  position: relative;
  overflow: hidden;
}
.feat-verify .fv-text {
  background: linear-gradient(90deg,
    #fff2a8, #ffd23f, #fff2a8, #ffffff, #ffd23f, #fff2a8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: wm-flow 3s linear infinite;
  display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  .feat-verify .fv-text { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; --dur-4: 0ms; }
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  .wm-mark, .wm-sub { animation: none; }
}
