/* AI有术 H5：视觉与交互对齐 miniprogram-native。小程序 rpx 按 750 设计稿折半为 px。 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: #eee7dc;
  color: #29231e;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body.ys-layer-open { overflow: hidden; }

button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
[role="button"] { cursor: pointer; }

.serif,
.home-page .headline,
.home-page .intro-title,
.home-page .intro-sign,
.home-page .sheet-line,
.home-page .quote,
.mine-page .headline {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  padding: 0 0 calc(72px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.page-main { padding: 0 14px; }

.press:active { opacity: 0.88; }

/* ---------- 顶栏 uv1-topbar ---------- */

.uv1-chrome {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  overflow: hidden;
  background: #fbf8f2;
}

.uv1-topbar {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: calc(env(safe-area-inset-top) + 48px);
  padding: env(safe-area-inset-top) 12px 0;
  overflow: hidden;
  border-bottom: 1px dashed rgba(187, 164, 127, 0.72);
  background: #fbf8f2;
}

.uv1-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #5ec8e8;
  object-fit: cover;
}

.uv1-brand {
  flex-shrink: 0;
  color: #8c8073;
  font-size: 12px;
  font-weight: 650;
}

.uv1-crumb {
  min-width: 0;
  overflow: hidden;
  color: #29231e;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.uv1-notice {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 8px 0 9px;
  overflow: hidden;
  border-bottom: 1px solid #efe4d4;
  background: #fffef9;
}

.uv1-notice-sign {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  background: linear-gradient(165deg, #fffaf1 0%, #f0e2cc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(167, 132, 86, 0.42),
    0 2px 5px rgba(92, 70, 48, 0.08);
}

.uv1-sign-bell { position: absolute; left: 6px; top: 4px; width: 10px; height: 13px; }
.uv1-sign-cap { width: 3px; height: 2px; margin: 0 auto; border-radius: 1.5px 1.5px 0 0; background: #5c4630; }
.uv1-sign-body {
  width: 9px;
  height: 7px;
  margin: 0 auto;
  border: 1px solid #c4a574;
  border-radius: 5px 5px 2px 2px;
  background: rgba(255, 253, 248, 0.72);
}
.uv1-sign-clapper { width: 2.5px; height: 2.5px; margin: 1px auto 0; border-radius: 50%; background: #5c4630; }
.uv1-sign-pin {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b4532a;
  box-shadow: 0 0 0 1.5px rgba(180, 83, 42, 0.16);
}

.uv1-notice-rail { position: relative; flex: 1; min-width: 0; height: 32px; overflow: hidden; }

.uv1-notice-fade {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 14px;
  height: 100%;
  background: linear-gradient(90deg, #fffef9 0%, rgba(255, 254, 249, 0) 100%);
  pointer-events: none;
}

.uv1-notice-track { display: flex; width: max-content; animation: uv1Marquee 60s linear infinite; }

.uv1-notice-item {
  padding: 0 20px;
  color: #8c7058;
  font-size: 11px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
}

@keyframes uv1Marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 底栏 / 电脑侧栏 app-tab-bar ---------- */

.tab-brand { display: none; }

.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: calc(58px + env(safe-area-inset-bottom));
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #eee7dc;
  border-top: 1px dashed rgba(187, 164, 127, 0.72);
}

.tab-bar[hidden],
body.ys-layer-open .tab-bar { display: none; }

.tab-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pill {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8c8073;
}

.tab-item.active .pill { color: #29231e; }

.mark { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.m { position: absolute; background: currentColor; }

.seal {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9b8a4;
  opacity: 0.55;
}

.tab-item.active .seal { background: #2bb8a8; opacity: 1; box-shadow: 0 0 0 2px #eee7dc; }

.label {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.mark-home .m1 { left: 3px; right: 3px; bottom: 2px; height: 11px; border-radius: 2px 2px 3px 3px; background: transparent; border: 1.5px solid currentColor; }
.mark-home .m2 { left: 2px; top: 1px; width: 0; height: 0; background: transparent; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 8px solid currentColor; }
.mark-home .m3 { left: 9px; bottom: 2px; width: 4px; height: 6px; border-radius: 1px 1px 0 0; background: #2bb8a8; opacity: 0.35; }
.tab-item.active .mark-home .m3 { opacity: 1; }

.mark-write .m1 { left: 10px; top: 2px; width: 3px; height: 16px; border-radius: 2px; transform: rotate(38deg); }
.mark-write .m2 { left: 4px; bottom: 3px; width: 8px; height: 3px; border-radius: 1px; background: #2bb8a8; opacity: 0.45; }
.tab-item.active .mark-write .m2 { opacity: 1; }
.mark-write .m3 { right: 3px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: transparent; border: 1.5px solid currentColor; }

.mark-library .m1 { left: 3px; top: 5px; width: 13px; height: 14px; background: transparent; border: 1.5px solid currentColor; border-radius: 2px; }
.mark-library .m2 { left: 7px; top: 2px; width: 13px; height: 14px; background: #eee7dc; border: 1.5px solid currentColor; border-radius: 2px; }
.mark-library .m3 { left: 10px; top: 6px; width: 7px; height: 1.5px; border-radius: 1px; background: #2bb8a8; opacity: 0.45; }
.tab-item.active .mark-library .m3 { opacity: 1; }

.mark-history .m1 { left: 3px; top: 3px; width: 16px; height: 16px; background: transparent; border: 1.5px solid currentColor; border-radius: 50%; }
.mark-history .m2 { left: 10px; top: 6px; width: 1.5px; height: 6px; border-radius: 1px; }
.mark-history .m3 { left: 10px; top: 10px; width: 5px; height: 1.5px; border-radius: 1px; background: #2bb8a8; }

.mark-mine .m1 { left: 7px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: transparent; border: 1.5px solid currentColor; }
.mark-mine .m2 { left: 4px; bottom: 1px; width: 14px; height: 8px; background: transparent; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }
.mark-mine .m3 { display: none; }

/* ---------- 遮罩、抽屉、二维码弹层、提示 ---------- */

.mask { position: fixed; inset: 0; z-index: 1200; background: rgba(41, 35, 30, 0.28); }

.drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  max-height: 76vh;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border: 1px solid #e3d5c4;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #fbf8f2;
}

.drawer.is-account { max-height: none; padding-top: 9px; }

.drawer-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.drawer.is-account .drawer-head { margin-bottom: 11px; }

.drawer-title { color: #29231e; font-size: 16px; font-weight: 800; }

.drawer-close {
  height: 28px;
  margin: 0;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
  color: #29231e;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
}

.drawer.is-account .drawer-close {
  height: 24px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #8c8073;
  font-size: 11px;
  font-weight: 600;
  line-height: 23px;
}

.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 56vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.qr-mask { z-index: 1300; }

.qr-sheet {
  position: fixed;
  left: 24px;
  right: 24px;
  top: 50%;
  z-index: 1301;
  transform: translateY(-50%);
  padding: 14px 14px 18px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1px solid #e3d5c4;
}

.qr-box { margin: 12px 0 8px; padding: 12px; border-radius: 10px; background: #fff; }

.qr-img { width: 100%; height: 240px; object-fit: contain; }

.qr-hint {
  display: block;
  color: #8c8073;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.qr-status {
  display: block;
  margin-top: 8px;
  color: #5c4630;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.ys-toast {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 2000;
  max-width: min(78vw, 320px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(41, 35, 30, 0.88);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease;
}

.ys-toast.is-on { opacity: 1; }

/* 确认框（替代 wx.showModal） */
.ys-confirm {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1301;
  width: min(84vw, 320px);
  padding: 18px 16px 14px;
  border-radius: 14px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
  transform: translate(-50%, -50%);
  text-align: center;
}
.ys-confirm-title { display: block; color: #29231e; font-size: 16px; font-weight: 800; }
.ys-confirm-body { display: block; margin-top: 8px; color: #5c4630; font-size: 13px; line-height: 1.6; }
.ys-confirm-row { display: flex; gap: 8px; margin-top: 16px; }
.ys-confirm-row button {
  flex: 1;
  height: 40px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
  color: #29231e;
  font-size: 14px;
  font-weight: 700;
}
.ys-confirm-row .is-danger { border-color: #c4553a; background: #c4553a; color: #fffdf8; }

/* 通知弹窗 YS.notice（对齐 components/ys-notice-dialog） */
.ysn-overlay { position: fixed; inset: 0; z-index: 1500; }
.ysn-overlay.is-layout { z-index: 1600; }
.ysn-mask { position: absolute; inset: 0; background: rgba(36, 28, 22, 0.42); }
.ysn-mask.is-layout { background: rgba(24, 18, 12, 0.52); animation: ysnMaskIn 0.22s ease-out; }
.ysn-dialog {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 18px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #f6eee0 100%);
  border: 0.5px solid rgba(196, 165, 116, 0.55);
  box-shadow: 0 14px 32px rgba(48, 32, 18, 0.22);
}
.ysn-ornament { width: 36px; height: 3px; margin-bottom: 11px; border-radius: 999px; background: linear-gradient(90deg, #c4a574, #e8d5b0); }
.ysn-kicker { display: block; color: #8c7058; font-size: 9px; font-weight: 800; letter-spacing: 2.5px; }
.ysn-title { display: block; margin-top: 5px; color: #29231e; font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif; font-size: 22px; font-weight: 700; line-height: 1.25; }
.ysn-copy { display: block; margin-top: 7px; color: #6f6458; font-size: 13px; line-height: 1.65; }
.ysn-actions { display: flex; gap: 8px; margin-top: 16px; }
.ysn-ghost,
.ysn-primary {
  flex: 1;
  min-width: 0;
  height: 40px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.ysn-ghost { border: 0.5px solid #d8c6b1; background: #fffdf8; color: #5c4630; }
.ysn-primary { border: 0; background: #29231e; color: #fffdf8; }
.ysn-ghost:active,
.ysn-primary:active { opacity: 0.88; }
.ysn-progress { margin-top: 14px; }
.ysn-track { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(196, 165, 116, 0.22); }
.ysn-fill { width: 36%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c4a574, #ead7b0); animation: ysnSlide 1.35s ease-in-out infinite; }
.ysn-ghost.is-lone { width: 100%; margin-top: 12px; }
.ysn-dialog.is-layout {
  max-height: calc(100vh - 80px);
  overflow: visible;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(255, 248, 232, 0.95) 0%, rgba(255, 253, 248, 0) 46%),
    linear-gradient(180deg, #fffdf8 0%, #f4ead8 100%);
  border: 0.5px solid rgba(196, 165, 116, 0.7);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.88) inset, 0 18px 44px rgba(42, 28, 16, 0.3);
  animation: ysnIn 0.28s ease-out;
}
.ysn-dialog.is-layout::before { content: ''; position: absolute; inset: 8px; border-radius: 14px; border: 0.5px solid rgba(196, 165, 116, 0.32); pointer-events: none; }
.ysn-dialog.is-layout::after { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1.5px; background: linear-gradient(90deg, transparent, #c4a574 18%, #ead7b0 50%, #c4a574 82%, transparent); pointer-events: none; }
.ysn-hero { display: flex; align-items: center; gap: 10px; margin: 2px 0 13px; }
.ysn-spread { position: relative; width: 56px; height: 42px; flex-shrink: 0; }
.ysn-page { position: absolute; border-radius: 7px; box-shadow: 0 5px 9px rgba(72, 48, 24, 0.1); }
.ysn-page.is-cover { left: 0; top: 3px; width: 34px; height: 36px; z-index: 2; border: 0.75px solid #c4a574; background: linear-gradient(180deg, #f8f0e2 0%, #ead9bc 100%); }
.ysn-page.is-copy { right: 0; top: 0; width: 31px; height: 36px; z-index: 1; padding: 7px 5px 0; border: 0.5px solid rgba(196, 165, 116, 0.7); background: #fffdf8; }
.ysn-frame { position: absolute; inset: 5px; border-radius: 4px; border: 0.5px dashed rgba(140, 112, 88, 0.4); background: rgba(255, 253, 248, 0.62); }
.ysn-line { height: 3px; margin-bottom: 4px; border-radius: 999px; background: rgba(196, 165, 116, 0.42); }
.ysn-line.is-mid { width: 78%; }
.ysn-line.is-short { width: 52%; }
.ysn-dots { position: absolute; left: 0; right: 0; top: 50%; display: flex; justify-content: center; gap: 3px; transform: translateY(-50%); }
.ysn-dots .dot { width: 4px; height: 4px; border-radius: 50%; background: #8c7058; animation: ysnPulse 1.2s ease-in-out infinite; }
.ysn-dots .dot:nth-child(2) { animation-delay: 0.16s; }
.ysn-dots .dot:nth-child(3) { animation-delay: 0.32s; }
.ysn-meta { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ysn-badge { padding: 4px 8px; border-radius: 999px; border: 0.5px solid rgba(196, 165, 116, 0.45); background: rgba(255, 253, 248, 0.78); color: #8c7058; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.ysn-dialog.is-layout .ysn-kicker { color: #a07d58; font-size: 10px; letter-spacing: 3.5px; }
.ysn-dialog.is-layout .ysn-title { margin-top: 5px; font-size: 24px; letter-spacing: 0.5px; }
.ysn-dialog.is-layout .ysn-copy { margin-top: 8px; color: #5c5146; font-size: 13px; line-height: 1.7; }
.ysn-dialog.is-layout .ysn-actions { margin-top: 18px; }
.ysn-dialog.is-layout .ysn-ghost { background: rgba(255, 253, 248, 0.5); border-color: rgba(196, 165, 116, 0.72); }
.ysn-dialog.is-layout .ysn-primary { background: linear-gradient(180deg, #3f352c 0%, #29231e 100%); box-shadow: 0 5px 9px rgba(41, 35, 30, 0.18); }
@keyframes ysnMaskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ysnIn { from { opacity: 0; transform: translateY(calc(-50% + 9px)); } to { opacity: 1; transform: translateY(-50%); } }
@keyframes ysnSlide { 0% { transform: translateX(-140%); } 100% { transform: translateX(380%); } }
@keyframes ysnPulse { 0%, 100% { opacity: 0.28; transform: scale(0.86); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .ysn-mask.is-layout,
  .ysn-dialog.is-layout,
  .ysn-fill,
  .ysn-dots .dot { animation: none; }
}

/* ---------- 首页 ---------- */

.page.home-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 calc(78px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background: #eee7dc;
}

.home-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 6px 14px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #eee7dc;
}

.home-head { flex: 0 0 auto; margin: 0; }

.home-page .eyebrow {
  display: block;
  color: #8c7058;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.home-page .headline {
  display: block;
  margin: 3px 0 0;
  color: #29231e;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.home-page .lead {
  display: block;
  margin: 4px 0 0;
  max-height: 35px;
  overflow: hidden;
  color: #8c8073;
  font-size: 12px;
  line-height: 1.45;
}

.home-actions { display: flex; gap: 7px; margin-top: 7px; }

.uv1-btn {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  border-radius: 11px;
  border: 1px solid #d8c6b1;
  background: #fffdf8;
  color: #29231e;
  font-size: 13px;
  font-weight: 750;
}

.uv1-btn.primary { border-color: #29231e; background: #29231e; color: #fffdf8; }

.home-hero {
  flex: 1 1 auto;
  width: 100%;
  min-height: 188px;
  max-height: none;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3d5c4;
  border-radius: 14px;
  background: #fbf8f2;
  display: flex;
}

.home-illust {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  object-position: 76% center;
}

.intro { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.intro-card {
  position: relative;
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 9px;
  border: 1px dashed rgba(187, 164, 127, 0.72);
  border-radius: 10px;
  background: #fbf8f2;
}

.intro-card.has-sign { padding-right: 32px; }

.intro-no { flex-shrink: 0; color: #b08960; font-size: 9px; font-weight: 800; letter-spacing: 1px; }

.intro-title { min-width: 0; color: #29231e; font-size: 13px; font-weight: 700; line-height: 1.3; }

.intro-sign {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  color: #29231e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.colophon {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.home-page .sheet {
  --rule: 34px;
  position: relative;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  padding: 8px 10px 8px 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  border: 1px dashed rgba(187, 164, 127, 0.72);
  border-radius: 14px;
  background-color: #f6eee0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0 calc(var(--rule) - 1px),
      rgba(176, 140, 98, 0.45) calc(var(--rule) - 1px) var(--rule)
    ),
    linear-gradient(180deg, #fffef8 0%, #f6eee0 100%);
  background-origin: border-box;
  background-clip: border-box;
}

.home-page .sheet::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 1px;
  background: rgba(176, 92, 64, 0.38);
}

.sheet-line {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  color: #29231e;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Songti", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: var(--rule, 22px);
}

.quotes { display: flex; flex-direction: column; flex: 0 0 auto; }

.quote {
  color: #3d2f24;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Songti", serif;
  font-size: 11px;
  font-weight: 600;
  line-height: var(--rule, 22px);
}

.legal-bar { flex: 0 0 auto; margin-top: 6px; padding: 0 0 8px; text-align: center; background: #eee7dc; }

.legal-links { display: flex; justify-content: center; align-items: center; gap: 5px; }

.legal-link,
.legal-dot { color: #5c4630; font-size: 11px; font-weight: 800; }

.legal-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
}

.legal-meta {
  display: block;
  margin-top: 1px;
  color: #8c8073;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- 登录 ---------- */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee7dc;
}

.login-card {
  width: 100%;
  max-width: 340px;
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid #efe4d4;
  box-shadow: 0 14px 40px rgba(78, 55, 33, 0.08);
}

.brand-block { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.24), 0 0 0 2px rgba(255, 253, 248, 0.95);
}

.brand-logo { width: 44px; height: 44px; border-radius: 12px; background: #eef8f6; object-fit: contain; }

.brand-name { margin-top: 6px; color: #29231e; font-size: 14px; font-weight: 800; letter-spacing: 1px; }

.title-block { display: flex; flex-direction: column; margin-bottom: 9px; }

.login-title { display: block; margin: 0; color: #29231e; font-size: 24px; font-weight: 800; line-height: 1.28; }

.login-desc { display: block; margin: 0 0 20px; color: #8c8073; font-size: 13px; line-height: 1.7; }

.auth-wechat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: #29231e;
  color: #fffdf8;
  font-size: 16px;
  font-weight: 700;
}

.auth-wechat-btn:active:not(:disabled) { transform: scale(0.98); }
.auth-wechat-btn:disabled,
.auth-wechat-btn.is-off { opacity: 0.72; }
.auth-wechat-btn:disabled { cursor: default; }

.trust-line { display: block; margin-top: 11px; color: #29231e; font-size: 11px; font-weight: 700; text-align: center; }

.agree-row {
  display: block;
  width: 100%;
  margin: 11px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.agree-box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid #c4a574;
  background: #fffdf8;
}

.agree-box.is-on {
  border-color: #0d716b;
  background: #0d716b;
  box-shadow: inset 0 0 0 3px #0d716b, inset 0 0 0 9px #e6f4f2;
}

.agree-copy { flex: 1; min-width: 0; color: #8c8073; font-size: 11px; line-height: 1.6; }

.agree-copy .legal-link { color: #29231e; font-size: 11px; }

.login-error { display: block; margin-top: 9px; color: #c53e4a; font-size: 12px; }

.login-page .brand-logo-wrap { animation: logoBounce 1.8s ease-in-out infinite; }

@keyframes logoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .login-page .brand-logo-wrap,
  .uv1-notice-track { animation: none; }
}

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

.page.mine-page { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

.mine-page .lib-head { margin: 10px 0 4px; }

.mine-page .headline {
  display: block;
  margin: 0;
  color: #29231e;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.12;
}

.mine-page .lead { display: block; margin: 4px 0 0; color: #8c8073; font-size: 12px; line-height: 1.5; }

.mine-page .sheet {
  position: relative;
  margin-bottom: 8px;
  padding: 14px 12px 14px 18px;
  overflow: hidden;
  border-radius: 4px 14px 14px 4px;
  border: 1px solid #e3d5c4;
  background: linear-gradient(180deg, #fffef9 0%, #fbf6ee 100%);
}

.mine-page .sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c4553a, #d9a08f);
}

.id-card.sheet { padding-bottom: 0; }

.id-top { display: flex; align-items: center; gap: 8px; }

.avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
  object-fit: cover;
}

.id-main { flex: 1; min-width: 0; }

.userid {
  display: block;
  overflow: hidden;
  color: #29231e;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.userid-sub { display: block; margin-top: 3px; color: #8c8073; font-size: 11px; font-weight: 600; line-height: 1.3; }

.chip {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #e3d5c4;
  background: rgba(255, 253, 248, 0.72);
  color: #29231e;
  font-size: 10px;
  font-weight: 700;
}

.account {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  min-height: 44px;
  margin: 0;
  padding: 4px 5px;
  border-radius: 10px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
  text-align: left;
}

.account-ico,
.pack-ico,
.svc-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(196, 165, 116, 0.5);
  background: linear-gradient(165deg, #fffef9 0%, #f4ead8 100%);
}

.account-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 7px rgba(48, 32, 18, 0.06);
}

.account-mark { width: 19px; height: 19px; }

.account-k,
.account-s { display: block; }
.account-k { color: #29231e; font-size: 11px; font-weight: 800; }
.account-s { color: #8c8073; font-size: 9px; }

.pack-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% + 30px);
  margin: 11px -12px 0 -18px;
  padding: 10px 12px 10px 18px;
  border: 0;
  border-top: 1px solid #e3d5c4;
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.16), rgba(255, 255, 255, 0.48));
  text-align: left;
}

.pack-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(165deg, #fffef9 0%, #f3e6d0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 4px 8px rgba(48, 32, 18, 0.05);
}

.pack-copy { flex: 1; min-width: 0; }
.pack-k,
.pack-s { display: block; }
.pack-k { color: #29231e; font-size: 14px; font-weight: 800; }
.pack-s { margin-top: 2px; color: #8c8073; font-size: 11px; }

.arrow { color: #8c8073; font-size: 20px; }

.mk { position: relative; }
.mk-pass { width: 18px; height: 18px; margin: 0 auto; }
.mk-pass-card {
  width: 16px;
  height: 11px;
  margin: 4px auto 0;
  border: 1px solid #c4a574;
  border-radius: 3px;
  background: rgba(255, 253, 248, 0.72);
}
.mk-pass-star { position: absolute; left: 4px; top: 6.5px; width: 4px; height: 4px; border-radius: 50%; background: #5c4630; }
.mk-pass-line {
  position: absolute;
  left: 9px;
  top: 7.5px;
  width: 6px;
  height: 1px;
  border-radius: 1px;
  background: #c4a574;
  box-shadow: 0 2.5px 0 #c4a574;
}

.mine-page .section { display: block; margin-bottom: 9px; color: #29231e; font-size: 14px; font-weight: 800; }

.quota-head { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; margin-bottom: 9px; }

.expire {
  flex: 0 1 auto;
  max-width: 58%;
  min-width: 0;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
  color: #5c4630;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.quota-body { display: flex; align-items: center; gap: 12px; }

.ring { width: 88px; height: 88px; flex-shrink: 0; padding: 7px; border-radius: 50%; background: #efe6d8; }

.ring-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fffef9;
}

.ring-num { color: #29231e; font-size: 22px; font-weight: 800; line-height: 1; }
.ring-label { margin-top: 4px; color: #8c8073; font-size: 10px; }

.use-box {
  flex: 1;
  min-width: 0;
  padding: 9px 9px 10px;
  border-radius: 10px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
}

.use-row { display: flex; justify-content: space-between; color: #8c8073; font-size: 12px; }
.use-val { color: #29231e; font-weight: 800; }

.bar { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #efe6d8; }
.bar-fill { height: 100%; border-radius: 999px; background: #8b5e34; }

.plan-line { display: block; margin-top: 6px; color: #8c8073; font-size: 11px; line-height: 1.4; }

.wallet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.money-label { display: block; color: #8c8073; font-size: 11px; }
.money { display: block; margin-top: 3px; color: #29231e; font-size: 24px; font-weight: 800; line-height: 1.1; }

.withdraw {
  min-width: 64px;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #29231e;
  color: #fffdf8;
  font-size: 13px;
  font-weight: 800;
}

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }

.stat { padding: 8px 4px; border-radius: 8px; border: 1px solid #e3d5c4; background: #fffdf8; text-align: center; }
.stat-n,
.stat-k { display: block; }
.stat-n { color: #29231e; font-size: 13px; font-weight: 800; }
.stat-k { margin-top: 3px; color: #8c8073; font-size: 10px; }

.mine-page .notice {
  display: block;
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px dashed rgba(187, 164, 127, 0.72);
  background: #f4ead8;
  color: #5c4630;
  font-size: 11px;
  line-height: 1.45;
}

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }

.svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #29231e;
  font-size: 11px;
  font-weight: 700;
}

.svc-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border-color: rgba(196, 165, 116, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 5px 9px rgba(48, 32, 18, 0.06);
}

.svc-mark { width: 26px; height: 26px; }

.mine-page .footer { padding: 4px 4px 2px; color: #8c8073; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; }

.mine-error { display: block; margin-top: 8px; color: #c53e4a; font-size: 12px; text-align: center; }

.acct-grab { width: 36px; height: 4px; margin: 2px auto 9px; border-radius: 999px; background: #e3d5c4; }

.acct-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid #e7dccb;
  background: linear-gradient(180deg, #fffef9 0%, #f7f1e6 100%);
}

.acct-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
  object-fit: cover;
}

.acct-id-main { flex: 1; min-width: 0; }
.acct-name {
  display: block;
  overflow: hidden;
  color: #29231e;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.acct-id { display: block; margin-top: 4px; color: #8c8073; font-size: 12px; font-weight: 600; line-height: 1.3; }

.acct-stay { margin-bottom: 11px; padding: 9px 9px 8px; border-radius: 12px; border: 1px solid #e7dccb; background: #fffdf8; }
.acct-duo { display: flex; align-items: stretch; gap: 6px; }
.acct-line {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 2px;
  border-radius: 10px;
  background: #fbf8f2;
}
.acct-face { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #fffdf8; object-fit: contain; }
.acct-say { width: 100%; color: #29231e; font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; }

.acct-stay-btn {
  width: 100%;
  height: 36px;
  margin: 8px 0 0;
  border-radius: 10px;
  border: 1px solid #c4a574;
  background: #f4ead8;
  color: #5c4630;
  font-size: 14px;
  font-weight: 700;
}

.acct-grid { display: flex; flex-direction: column; gap: 8px; }

.acct-btn {
  height: 44px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid #29231e;
  background: #29231e;
  color: #fffdf8;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 9px rgba(41, 35, 30, 0.1);
}

.acct-btn.is-logout { border-color: #e7dccb; background: transparent; color: #5c4630; font-weight: 600; box-shadow: none; }

.acct-note { display: block; margin-top: 9px; color: #8c8073; font-size: 11px; font-weight: 500; line-height: 1.4; text-align: center; }

.withdraw-rules { margin: 0 0 8px; padding: 8px 9px; border-radius: 8px; border: 1px solid #e3d5c4; background: #fffdf8; }
.withdraw-rules-title { display: block; margin-bottom: 4px; color: #29231e; font-size: 13px; font-weight: 800; }
.withdraw-rules-line { display: block; margin-top: 3px; color: #5c4630; font-size: 11px; line-height: 1.55; }

.drawer-hint,
.drawer .empty { display: block; margin: 0 0 8px; color: #8c8073; font-size: 12px; line-height: 1.5; }

.field,
.qr-btn,
.submit {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0 0 6px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px dashed rgba(187, 164, 127, 0.72);
  background: #fffdf8;
  color: #29231e;
  font-size: 15px;
}

.field { outline: none; }
.field:focus { border-style: solid; border-color: #c4a574; }

.qr-btn,
.submit { font-size: 13px; font-weight: 800; text-align: center; }

.submit { border-style: solid; border-color: #29231e; background: #29231e; color: #fffdf8; }
.submit:disabled { opacity: 0.72; cursor: default; }

.method-row { display: flex; gap: 6px; margin-bottom: 6px; }

.method {
  flex: 1;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  border: 1px dashed rgba(187, 164, 127, 0.72);
  background: #fffdf8;
  color: #29231e;
  font-size: 12px;
  font-weight: 700;
}

.method.is-active { border-style: solid; border-color: #c4a574; background: #f4ead8; color: #5c4630; }

.row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 9px 8px;
  border-radius: 9px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
}

.row-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1px solid #e3d5c4; background: #fffdf8; object-fit: cover; }
.row-main { flex: 1; min-width: 0; }
.row-t,
.row-s,
.row-v { display: block; }
.row-t { color: #29231e; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.row-s { margin-top: 3px; color: #8c8073; font-size: 11px; }
.row-v { flex-shrink: 0; color: #5c4630; font-size: 12px; font-weight: 800; }

.earn-list { display: flex; flex-direction: column; gap: 8px; }
.earn-card {
  border: 1px solid #e3d5c4;
  border-radius: 12px;
  background: #fffdf8;
  overflow: hidden;
}
.earn-head {
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.earn-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  border: 1px solid #e3d5c4;
  object-fit: cover;
  background: #fffdf8;
}
.earn-who { flex: 1; min-width: 0; }
.earn-name,
.earn-id,
.earn-time { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earn-name { color: #29231e; font-size: 14px; font-weight: 800; }
.earn-id,
.earn-time { margin-top: 2px; color: #8c8073; font-size: 11px; }
.earn-amt {
  flex: 0 0 auto;
  color: #8c4630;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}
.earn-caret {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #8c7058;
  border-bottom: 1.5px solid #8c7058;
  transform: rotate(45deg);
}
.earn-card.is-open .earn-caret { transform: rotate(225deg); margin-top: 4px; }
.earn-detail { padding: 0 10px 10px; }
.earn-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  color: #8c8073;
  font-size: 12px;
  line-height: 1.45;
}
.earn-line span { flex: 0 0 56px; }
.earn-line b { flex: 1; min-width: 0; color: #29231e; font-weight: 700; overflow-wrap: anywhere; }
.earn-no { font-weight: 700; }
.earn-copy {
  flex: 0 0 auto;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #e3d5c4;
  background: #fffdf8;
  color: #5c4630;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- 协议 ---------- */

.legal-page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

.tool-head { display: flex; align-items: center; gap: 6px; margin: 4px 0 9px; }

.back-chip {
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e3d5c4;
  background: rgba(255, 253, 248, 0.92);
  color: #29231e;
  font-size: 12px;
  font-weight: 700;
}

.legal-page .headline { display: block; margin: 4px 0 0; color: #29231e; font-size: 22px; font-weight: 800; }
.legal-page .lead { display: block; margin: 4px 0 10px; color: #8c8073; font-size: 12px; line-height: 1.5; }

.legal-page .sheet { margin-bottom: 8px; padding: 10px; border-radius: 14px; border: 1px solid #e3d5c4; background: #fbf8f2; }

.sec-t { display: block; margin-bottom: 5px; color: #29231e; font-size: 14px; font-weight: 800; }
.sec-b { display: block; color: #5c4630; font-size: 12px; line-height: 1.6; }

.read-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 4px 0 12px;
  border-radius: 999px;
  border: 1px solid #29231e;
  background: #29231e;
  color: #f7efe2;
  font-size: 14px;
  font-weight: 800;
}

/* ---------- 登录卡片：宽屏改 px 尺寸，与小程序 is-pc 一致 ---------- */

@media (min-width: 600px) {
  .login-page { display: block; padding: 40px 24px; }
  .login-card { width: 420px; max-width: 100%; margin: 0 auto; }
  .login-title { font-size: 24px; line-height: 1.35; }
  .login-desc { font-size: 14px; line-height: 1.6; }
  .auth-wechat-btn { height: 48px; border-radius: 24px; font-size: 16px; }
  .trust-line,
  .agree-copy,
  .agree-copy .legal-link { font-size: 13px; }
}

/* ---------- 电脑端：底栏变 196px 侧栏，内容让位 ---------- */

@media (min-width: 768px) {
  .page { padding-left: 196px; padding-bottom: 32px; }
  .page-main { padding: 12px 24px 0 16px; }

  .uv1-chrome { flex-shrink: 0; }
  .uv1-topbar { gap: 8px; min-height: 62px; padding: 0 16px 10px; }
  .uv1-mark,
  .uv1-brand { display: none; }
  .uv1-crumb { font-size: 16px; line-height: 32px; }
  .uv1-notice { gap: 8px; height: 36px; padding: 0 16px 0 12px; }
  .uv1-notice-rail { height: 36px; }
  .uv1-notice-fade { width: 16px; }
  .uv1-notice-item { min-width: 100%; height: 36px; padding: 0 24px 0 8px; font-size: 13px; line-height: 36px; }

  .tab-bar {
    top: 0;
    right: auto;
    bottom: 0;
    width: 196px;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 16px 8px 24px;
    overflow: visible;
    border-top: 0;
    border-right: 1px dashed rgba(187, 164, 127, 0.72);
    background: #fbf8f2;
  }
  body.ys-layer-open .tab-bar:not([hidden]) { display: flex; }
  .tab-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    margin: 0 4px;
    padding: 0 8px 14px;
    box-sizing: content-box;
    border-bottom: 1px dashed rgba(187, 164, 127, 0.72);
  }
  .tab-logo { width: 28px; height: 28px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: #fff; object-fit: cover; }
  .tab-name { color: #29231e; font-size: 16px; font-weight: 800; letter-spacing: 1px; }
  .tab-item { flex: 0 0 auto; height: 48px; justify-content: flex-start; }
  .pill { flex-direction: row; justify-content: flex-start; gap: 10px; width: 100%; height: 44px; padding: 0 8px; border-radius: 12px; }
  .tab-item.active .pill { background: #eee7dc; }
  .tab-item:hover .pill { background: rgba(238, 231, 220, 0.6); }
  .label { font-size: 14px; font-weight: 750; }

  .drawer,
  .qr-sheet {
    left: 196px;
    right: 24px;
    top: 56px;
    bottom: auto;
    width: auto;
    max-width: 560px;
    max-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 16px 18px 18px;
    border: 1px solid rgba(196, 165, 116, 0.45);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(48, 32, 18, 0.16);
    transform: none;
  }
  .qr-sheet { top: 10vh; max-width: 420px; }
  .drawer-title { font-size: 18px; }
  .drawer-close { height: 32px; min-width: 32px; padding: 0 12px; font-size: 12px; line-height: 30px; }
  .drawer-body { max-height: none; }
  .acct-grab { display: none; }

  /* 通知弹窗：电脑端不盖住侧栏、不挡页面 */
  .ysn-overlay { left: 196px; background: none; pointer-events: none; }
  .tab-bar[hidden] ~ #ysLayer .ysn-overlay { left: 0; }
  .ysn-mask,
  .ysn-mask.is-layout { background: transparent; pointer-events: none; }
  .ysn-dialog,
  .ysn-dialog.is-layout {
    left: 0;
    right: 0;
    top: 18vh;
    width: 420px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
    padding: 22px 22px 18px;
    border-radius: 16px;
    transform: none;
    animation: none;
    pointer-events: auto;
    box-shadow: 0 18px 48px rgba(48, 32, 18, 0.18);
  }
  .ysn-dialog.is-layout { max-height: calc(100vh - 96px); }
  .ysn-dialog.is-layout::before { inset: 10px; border-radius: 12px; }
  .ysn-dialog.is-layout::after { left: 22px; right: 22px; height: 2px; }
  .ysn-ornament { width: 40px; height: 3px; margin-bottom: 12px; }
  .ysn-kicker,
  .ysn-dialog.is-layout .ysn-kicker { font-size: 11px; letter-spacing: 0.18em; line-height: 1.3; }
  .ysn-title,
  .ysn-dialog.is-layout .ysn-title { margin-top: 6px; font-size: 22px; line-height: 1.3; letter-spacing: 0; }
  .ysn-copy,
  .ysn-dialog.is-layout .ysn-copy { margin-top: 8px; font-size: 13px; line-height: 1.55; }
  .ysn-actions,
  .ysn-dialog.is-layout .ysn-actions { gap: 8px; margin-top: 16px; }
  .ysn-ghost,
  .ysn-primary { height: 36px; min-height: 36px; border-radius: 8px; font-size: 13px; font-weight: 700; }
  .ysn-ghost.is-lone { margin-top: 12px; }
  .ysn-progress { margin-top: 14px; }
  .ysn-hero { gap: 12px; margin: 2px 0 14px; }
  .ysn-spread { width: 72px; height: 54px; }
  .ysn-page.is-cover { width: 44px; height: 46px; border-radius: 8px; }
  .ysn-page.is-copy { width: 40px; height: 46px; padding: 8px 6px 0; border-radius: 8px; }
  .ysn-badge { padding: 4px 10px; font-size: 11px; letter-spacing: 0.12em; }

  /* 首页 */
  .page.home-page { padding: 0 0 20px 196px; }
  .home-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "intro" "colo" "legal";
    gap: 16px;
    padding: 0 0 12px;
    align-items: start;
  }
  .home-head {
    grid-area: hero;
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: start;
    width: 42%;
    max-width: 460px;
    min-width: 280px;
    padding: 28px 16px 28px 32px;
  }
  .home-page .eyebrow { font-size: 11px; letter-spacing: 2px; }
  .home-page .headline { margin-top: 6px; font-size: 28px; line-height: 1.3; }
  .home-page .lead { margin-top: 8px; max-height: none; overflow: visible; font-size: 14px; line-height: 1.6; }
  .home-actions { width: 280px; margin-top: 16px; gap: 10px; }
  .uv1-btn { min-height: 40px; border-radius: 10px; font-size: 13px; }
  .home-hero {
    grid-area: hero;
    position: relative;
    display: block;
    flex: none;
    align-self: stretch;
    width: 100%;
    min-height: 240px;
    max-height: none;
    border: 0;
    border-radius: 0 0 16px 16px;
    background: #fffdf8;
  }
  .home-illust { position: relative; z-index: 1; width: 100%; height: auto; min-height: 240px; object-fit: cover; }
  .intro { grid-area: intro; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 24px 0 16px; }
  .intro-card { min-height: 52px; padding: 10px 12px; border-radius: 12px; }
  .intro-card.has-sign { padding-right: 44px; }
  .intro-no { font-size: 11px; letter-spacing: 1px; }
  .intro-title { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
  .intro-sign { right: 10px; font-size: 12px; letter-spacing: 1px; }
  .colophon { grid-area: colo; flex: none; min-height: 120px; margin: 0 24px 0 16px; }
  .legal-bar { grid-area: legal; padding-top: 4px; }
  .legal-link,
  .legal-dot { font-size: 12px; }
  .legal-meta { font-size: 11px; }
  .home-page .sheet {
    height: auto;
    padding: 16px 20px 16px 28px;
    border-radius: 16px;
    background:
      repeating-linear-gradient(to bottom, transparent 0 28px, rgba(176, 140, 98, 0.12) 28px 29px),
      linear-gradient(180deg, #fffef8 0%, #f6eee0 100%);
  }
  .home-page .sheet::before { top: 12px; bottom: 12px; left: 14px; width: 1px; }
  .sheet-line { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
  .quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
  .quote { padding-right: 16px; border-right: 1px solid rgba(187, 164, 127, 0.32); font-size: 13px; line-height: 1.5; }
  .quote:last-child { padding-right: 0; border-right: 0; }

  /* 我的 */
  .page.mine-page { padding-bottom: 28px; }
  .mine-page .page-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 16px 18px;
    align-items: stretch;
    padding: 0 8px 8px 4px;
    margin: 0 16px;
  }
  .mine-page .lib-head,
  .mine-page .id-card,
  .mine-page .service-card,
  .mine-page .footer,
  .mine-page .mine-error { grid-column: 1 / -1; }
  .mine-page .lib-head { margin: 12px 0 0; }
  .mine-page .headline { font-size: 28px; line-height: 1.2; }
  .mine-page .lead { margin-top: 6px; font-size: 13px; }
  .mine-page .sheet { margin-bottom: 0; padding: 18px 20px 18px 24px; border-radius: 4px 16px 16px 4px; }
  .mine-page .sheet::before { top: 16px; bottom: 16px; left: 10px; width: 3px; }
  .id-card.sheet { padding-bottom: 0; }
  .id-top { gap: 14px; }
  .avatar { width: 56px; height: 56px; border-radius: 16px; }
  .userid { font-size: 18px; }
  .userid-sub,
  .chip,
  .account-s,
  .pack-s,
  .expire,
  .plan-line,
  .mine-page .notice,
  .stat-k,
  .money-label,
  .ring-label { font-size: 12px; }
  .account { min-height: 44px; padding: 6px 12px; border-radius: 12px; }
  .account-ico { width: 32px; height: 32px; border-radius: 10px; }
  .account-mark { width: 20px; height: 20px; }
  .account-k,
  .pack-k,
  .mine-page .section,
  .use-row,
  .stat-n { font-size: 14px; }
  .pack-entry { gap: 12px; width: calc(100% + 44px); margin: 16px -20px 0 -24px; padding: 14px 20px 14px 24px; }
  .arrow { font-size: 20px; }
  .quota-card,
  .wallet-card { min-height: 220px; }
  .quota-head { margin-bottom: 14px; }
  .expire { max-width: none; }
  .quota-body { gap: 18px; }
  .ring { width: 96px; height: 96px; padding: 8px; }
  .ring-num { font-size: 26px; }
  .use-box { padding: 14px 16px; border-radius: 12px; }
  .bar { height: 8px; margin-top: 10px; }
  .money { margin-top: 4px; font-size: 32px; }
  .withdraw { min-width: 80px; height: 36px; padding: 0 16px; border-radius: 18px; font-size: 13px; }
  .stat-grid { gap: 10px; margin-top: 16px; }
  .stat { padding: 12px 8px; border-radius: 12px; }
  .mine-page .notice { margin-top: 12px; padding: 10px 12px; border-radius: 10px; }
  .mine-page .section { margin-bottom: 16px; }
  .svc-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px 8px; }
  .svc { font-size: 13px; }
  .svc-ico { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; }
  .svc-mark { width: 26px; height: 26px; }
  .mine-page .footer { padding: 8px 0 4px; font-size: 13px; font-weight: 600; }
  .mine-page .footer .legal-link { font-size: 13px; }
  .acct-identity { gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; }
  .acct-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .acct-stay { margin-bottom: 12px; padding: 12px; border-radius: 12px; }
  .acct-face { width: 40px; height: 40px; border-radius: 10px; }
  .acct-stay-btn,
  .acct-btn,
  .field,
  .qr-btn,
  .submit,
  .method { height: 40px; font-size: 14px; }
  .row { padding: 10px 12px; border-radius: 10px; }
  .row-t,
  .row-v,
  .withdraw-rules-title { font-size: 14px; }
  .row-s,
  .withdraw-rules-line,
  .acct-note,
  .acct-id,
  .acct-say,
  .drawer-hint,
  .drawer .empty,
  .qr-hint { font-size: 12px; }

  /* 协议 */
  .legal-page .page-main { max-width: 820px; }
}

@media (hover: hover) {
  .uv1-btn:hover,
  .withdraw:hover,
  .submit:hover,
  .acct-btn:hover,
  .read-btn:hover,
  .auth-wechat-btn:hover:not(:disabled) { filter: brightness(1.06); }
}

body.ys-tutorial-open .tab-bar,
body.ys-tutorial-open.ys-layer-open .tab-bar { display: none; }

.tutorial-page {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: calc(6px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 0 0, rgba(255, 250, 242, 0.9), transparent 46%),
    #e8dccb;
  color: #1c140e;
}

.tutorial-head { flex: 0 0 auto; padding: 0 2px 4px; }

.tutorial-back {
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c4636;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 1px;
}

.tutorial-kicker {
  margin: 0;
  color: #8c7058;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.tutorial-page-title {
  margin: 4px 0 18px;
  color: #1c140e;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 2px;
}

.tutorial-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-overflow-scrolling: touch;
}

.tutorial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 132px;
  margin: 0;
  padding: 18px 18px 16px 22px;
  border: 1px solid rgba(176, 140, 98, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf4ea 100%);
  box-shadow: 0 10px 24px rgba(74, 48, 24, 0.06);
  text-align: left;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tutorial-card::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #a8402a;
}

.tutorial-card:active { background: #f4eadc; }

.tutorial-no {
  color: #a8402a;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tutorial-name {
  display: block;
  margin-top: 6px;
  color: #1c140e;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.tutorial-desc {
  display: block;
  margin-top: 8px;
  color: #3a3128;
  font-size: 16px;
  line-height: 1.55;
}

.tutorial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(176, 140, 98, 0.35);
}

.tutorial-date {
  color: #6b5c4e;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.tutorial-open {
  color: #a8402a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .tutorial-page { align-items: center; padding-top: 32px; }
  .tutorial-head, .tutorial-list { width: min(480px, 100%); }
}

@media (hover: hover) {
  .tutorial-card:hover { background: #fffaf3; }
}
