/* ============================================================
   笙魚片 · 应用内样式
   ============================================================ */

:root { --card: #fffdf9; }

/* ---------- 主题 ---------- */
[data-theme="letter"] {
  --paper: #f4f2e7;
  --paper-2: #ece9da;
  --paper-3: #e2decb;
  --card: #fbfaf2;
  --rose: #82927a;
  --rose-deep: #5c6f55;
  --rose-soft: #dde5d5;
  --rose-wash: #eef2e6;
  --apricot: #c9a97c;
  --gold: #a68a58;
  --gold-soft: #efe7d2;
}
[data-theme="sakura"] {
  --paper: #fdf3f3;
  --paper-2: #f8e7e9;
  --paper-3: #f2d9dd;
  --card: #fffafb;
  --rose: #d98fa0;
  --rose-deep: #b1607a;
  --rose-soft: #f7dfe5;
  --rose-wash: #fdeef1;
}
[data-theme="midnight"] {
  --paper: #1f1d24;
  --paper-2: #282530;
  --paper-3: #322e3a;
  --card: #272430;
  --ink: #f1eae0;
  --ink-2: #c6bbb0;
  --ink-3: #9a8f88;
  --ink-4: #706862;
  --line: rgba(241, 234, 224, 0.11);
  --line-strong: rgba(241, 234, 224, 0.2);
  --rose: #d99a7c;
  --rose-deep: #eab392;
  --rose-soft: #3a2d31;
  --rose-wash: #322930;
  --sage: #9aab90;
  --sage-soft: #2b322a;
  --gold: #d3ae74;
  --gold-soft: #332d22;
  --apricot-soft: #3a2c26;
}
[data-theme="snow"] {
  --paper: #f5f8fa; --paper-2: #eaf0f4; --paper-3: #dfe8ee; --card: #ffffff;
  --ink: #2b353b; --ink-2: #4f5e66; --ink-3: #76858d; --ink-4: #9ca9af;
  --line: rgba(43, 53, 59, 0.1); --line-strong: rgba(43, 53, 59, 0.18);
  --rose: #6e8fa3; --rose-deep: #4f7084; --rose-soft: #dce8ef; --rose-wash: #eef5f8;
  --sage: #7f9489; --sage-soft: #e8f0ec; --gold: #b08d5e; --gold-soft: #f2e9da; --apricot: #d8a27f; --apricot-soft: #f9ece3;
}
[data-theme="forest"] {
  --paper: #f2f5ec; --paper-2: #e7eddd; --paper-3: #dbe5cd; --card: #fbfcf6;
  --ink: #2d3828; --ink-2: #4f5e47; --ink-3: #73816a; --ink-4: #97a38d;
  --line: rgba(45, 56, 40, 0.1); --line-strong: rgba(45, 56, 40, 0.18);
  --rose: #6f8a5f; --rose-deep: #4f6a42; --rose-soft: #dce8d2; --rose-wash: #eef4e8;
  --sage: #6f8a5f; --sage-soft: #e6efdc; --gold: #a2854f; --gold-soft: #f0e8d5; --apricot: #c89a72; --apricot-soft: #f6e9dd;
}
[data-theme="ocean"] {
  --paper: #eef6f8; --paper-2: #e0eef2; --paper-3: #d0e4ea; --card: #f9fdfe;
  --ink: #263940; --ink-2: #4f6268; --ink-3: #71858b; --ink-4: #93a5aa;
  --line: rgba(38, 57, 64, 0.1); --line-strong: rgba(38, 57, 64, 0.18);
  --rose: #4f8fa3; --rose-deep: #376f82; --rose-soft: #d5e8ee; --rose-wash: #eaf5f8;
  --sage: #6d8f86; --sage-soft: #e2efeb; --gold: #b28c5e; --gold-soft: #f1e7d7; --apricot: #d8a27f; --apricot-soft: #f8e9df;
}
[data-theme="sunset"] {
  --paper: #fdf2e9; --paper-2: #f9e4d2; --paper-3: #f3d4bc; --card: #fff9f3;
  --ink: #3b2d25; --ink-2: #5e4b3e; --ink-3: #8a7463; --ink-4: #ab9481;
  --line: rgba(59, 45, 37, 0.1); --line-strong: rgba(59, 45, 37, 0.18);
  --rose: #c9724f; --rose-deep: #a95435; --rose-soft: #f5d9c9; --rose-wash: #fdf0e7;
  --sage: #9a8062; --sage-soft: #f1e8dc; --gold: #c1934f; --gold-soft: #f8ead2; --apricot: #d99168; --apricot-soft: #fbe6d8;
}
[data-theme="lavender"] {
  --paper: #f7f2fa; --paper-2: #efe6f4; --paper-3: #e4d8ec; --card: #fdfaff;
  --ink: #342d3d; --ink-2: #554a63; --ink-3: #7d718b; --ink-4: #a196ad;
  --line: rgba(52, 45, 61, 0.1); --line-strong: rgba(52, 45, 61, 0.18);
  --rose: #9a76b3; --rose-deep: #7a5794; --rose-soft: #e8daf1; --rose-wash: #f5edfa;
  --sage: #8a7f9a; --sage-soft: #efebf4; --gold: #b18e5f; --gold-soft: #f3e8d7; --apricot: #c99a86; --apricot-soft: #f8e9e3;
}
[data-theme="cocoa"] {
  --paper: #f7efe8; --paper-2: #efe0d3; --paper-3: #e6d1bf; --card: #fffaf5;
  --ink: #3b2c24; --ink-2: #5d4a3d; --ink-3: #887463; --ink-4: #a89382;
  --line: rgba(59, 44, 36, 0.1); --line-strong: rgba(59, 44, 36, 0.18);
  --rose: #a96f52; --rose-deep: #864f36; --rose-soft: #eed8c8; --rose-wash: #fbf0e8;
  --sage: #8d7a63; --sage-soft: #f0e8dc; --gold: #b5894f; --gold-soft: #f7ead2; --apricot: #c89168; --apricot-soft: #fae9dc;
}

[data-theme="midnight"] .btn-dark { --btn-bg: #f1eae0; --btn-fg: #221f27; }
[data-theme="midnight"] .btn-primary { --btn-fg: #231f27; }
[data-theme="midnight"] .payment-success { color: #f1eae0; }

/* ============================================================
   外壳
   ============================================================ */
.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--paper);
}
.rail {
  position: sticky; top: 0; height: 100vh;
  padding: 24px 18px 20px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
  background: color-mix(in srgb, var(--paper) 92%, var(--card));
  z-index: 20;
}
.rail .brand { padding: 0 6px 4px; }
.rail .brand-mark { background: var(--ink); color: var(--paper); }
.rail-space {
  display: flex; align-items: center; gap: 11px;
  padding: 12px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.rail-space-text { min-width: 0; }
.rail-space-name {
  font-family: var(--serif); font-size: 14.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.rail-space-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.rail-space-meta b { color: var(--rose-deep); font-family: var(--serif); font-size: 13px; }

.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 13.5px; color: var(--ink-2);
  transition: background 160ms, color 160ms;
}
.rail-link svg { width: 18px; height: 18px; color: var(--ink-3); }
.rail-link:hover { background: rgba(43, 39, 35, 0.045); color: var(--ink); }
.rail-link.active { background: var(--ink); color: var(--paper); }
.rail-link.active svg { color: var(--paper); }
[data-theme="midnight"] .rail-link.active { background: var(--rose); color: #221f27; }
[data-theme="midnight"] .rail-link.active svg { color: #221f27; }

.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.rail-quote {
  margin-top: 14px; padding: 16px 14px 14px; border-radius: 14px;
  border: 1px dashed var(--line-strong); color: var(--ink-3);
  background: rgba(255, 253, 249, 0.35);
}
[data-theme="midnight"] .rail-quote { background: rgba(255, 255, 255, 0.03); }
.rail-quote-mark { font-family: var(--serif); font-size: 26px; line-height: 0.6; color: var(--rose); display: block; }
.rail-quote p { font-family: var(--serif); font-size: 12px; line-height: 1.85; margin-top: 6px; }
.rail-pro {
  display: flex; flex-direction: column; gap: 7px;
  padding: 14px; border-radius: 16px;
  background: linear-gradient(150deg, var(--gold-soft), transparent);
  border: 1px solid rgba(185, 143, 82, 0.24);
  transition: transform 200ms var(--ease);
}
.rail-pro:hover { transform: translateY(-2px); }
.rail-pro.is-pro { background: linear-gradient(150deg, var(--ink), #4b3f38); border-color: transparent; }
.rail-pro.is-pro .rail-pro-label, .rail-pro.is-pro .rail-pro-desc { color: rgba(251, 246, 239, 0.8); }
.rail-pro-top { display: flex; align-items: center; gap: 8px; }
.rail-pro-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.rail-pro-desc { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.rail-links { display: flex; flex-direction: column; gap: 2px; }
.rail-mini {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 9px; font-size: 12.5px; color: var(--ink-3);
}
.rail-mini:hover, .rail-mini.active { background: rgba(43, 39, 35, 0.05); color: var(--ink); }
.rail-mini svg { width: 15px; height: 15px; }
.rail-demo { font-size: 10px; color: var(--ink-4); line-height: 1.5; padding: 0 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 62px; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 30px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-crumb { font-family: var(--serif); font-size: 15px; letter-spacing: 0.06em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.credit-chip { background: var(--card); border-color: var(--line-strong); }
.credit-chip svg { width: 14px; height: 14px; color: var(--gold); }
.credit-chip span { font-variant-numeric: tabular-nums; }
.topbar-avatar { padding: 3px; }

.viewas {
  display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 99px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.viewas-label { font-size: 10px; color: var(--ink-4); padding: 0 6px 0 8px; letter-spacing: 0.05em; }
.viewas-btn {
  border: 0; background: transparent; padding: 5px 10px; border-radius: 99px;
  font-size: 11.5px; color: var(--ink-3); transition: all 160ms var(--ease);
}
.viewas-btn.active { background: var(--card); color: var(--ink); box-shadow: var(--sh-sm); font-weight: 600; }
.viewas-btn[disabled] { opacity: 0.4; }

.page { width: 100%; max-width: 1080px; margin: 0 auto; padding: 30px 32px 80px; }

.tabbar { display: none; }

.fatal { padding: 80px 24px; text-align: center; }
.fatal h1 { font-size: 26px; margin-bottom: 12px; }

/* ============================================================
   通用页面元素
   ============================================================ */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.page-title { font-size: 31px; letter-spacing: 0.01em; margin-top: 6px; }
.page-sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.page-head-side { display: flex; align-items: center; gap: 8px; }
.section-mini-title { font-family: var(--serif); font-size: 17px; margin-bottom: 14px; }

.mood { font-size: 10.5px; padding: 2px 8px; border-radius: 99px; }
.mood-happy { background: #fdefdd; color: #a1732c; }
.mood-calm { background: var(--sage-soft); color: #4f6247; }
.mood-miss { background: #f1e7f7; color: #6f5285; }
.mood-moved { background: var(--rose-wash); color: var(--rose-deep); }
.mood-sad { background: #e8edf4; color: #4f6480; }

.notice {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--gold-soft); color: #7c5c22;
  border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.6;
  margin-top: 12px;
}
.notice svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.notice-warn { background: #fdeee4; color: #97522c; }

.kv-list { display: flex; flex-direction: column; }
.kv-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv-list li:last-child { border: 0; }
.kv-list span { color: var(--ink-3); }
.kv-list b { font-weight: 600; font-variant-numeric: tabular-nums; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-xs { height: 26px; font-size: 11.5px; padding: 0 10px; }
.seg { display: flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.seg-btn {
  border: 0; background: transparent; padding: 7px 13px; border-radius: 9px;
  font-size: 12.5px; color: var(--ink-3); transition: all 160ms var(--ease);
}
.seg-btn.active { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--sh-sm); }

/* ============================================================
   首页
   ============================================================ */
.home-hero {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 24px 26px 24px;
  background: linear-gradient(135deg, #fbe8da 0%, #f8dcdf 52%, #f6e7d8 100%);
  border: 1px solid rgba(217, 106, 122, 0.14);
  box-shadow: var(--sh-md);
  color: #43302a;
}
[data-theme="letter"] .home-hero { background: linear-gradient(135deg, #eef1e2, #e3e9d8 60%, #f1edda); color: #353d2e; }
[data-theme="sakura"] .home-hero { background: linear-gradient(135deg, #fdeaea, #f9dce4 60%, #fbe9e6); }
[data-theme="midnight"] .home-hero { background: linear-gradient(135deg, #33292f, #2c2733 60%, #2f2a2a); border-color: var(--line); color: var(--ink); }
[data-theme="snow"] .home-hero { background: linear-gradient(135deg, #eef4f8, #e4eef5 60%, #f7fbfd); color: #2b353b; }
[data-theme="forest"] .home-hero { background: linear-gradient(135deg, #eaf0df, #dfe9d0 60%, #f2f6ea); color: #2d3828; }
[data-theme="ocean"] .home-hero { background: linear-gradient(135deg, #e3f1f4, #d5e9ef 60%, #edf8fa); color: #263940; }
[data-theme="sunset"] .home-hero { background: linear-gradient(135deg, #fbe8d8, #f6d9c2 60%, #fdf0e4); color: #3b2d25; }
[data-theme="lavender"] .home-hero { background: linear-gradient(135deg, #f1e8f6, #e7daf1 60%, #f8f2fb); color: #342d3d; }
[data-theme="cocoa"] .home-hero { background: linear-gradient(135deg, #f0e2d5, #e8d3c0 60%, #faf0e7); color: #3b2c24; }
.hh-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  right: -80px; top: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 62%);
  pointer-events: none;
}
.hh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; position: relative; z-index: 1; }
.hh-meta { display: flex; align-items: center; gap: 11px; }
.hh-name { font-family: var(--serif); font-size: 16px; }
.hh-since { font-size: 11px; opacity: 0.62; margin-top: 2px; }
.hh-actions { display: flex; gap: 8px; }
.hh-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.hh-count { display: flex; align-items: baseline; gap: 8px; }
.hh-cap { font-size: 12px; letter-spacing: 0.1em; opacity: 0.6; }
.hh-num { font-family: var(--serif); font-size: clamp(58px, 8vw, 88px); line-height: 0.86; font-weight: 600; letter-spacing: -0.02em; }
.hh-unit { font-size: 14px; opacity: 0.65; }
.hh-next {
  background: rgba(255, 253, 249, 0.62); border-radius: 14px; padding: 12px 16px;
  min-width: 186px; display: flex; flex-direction: column; gap: 2px;
  backdrop-filter: blur(6px);
}
[data-theme="midnight"] .hh-next { background: rgba(255, 255, 255, 0.06); }
.hh-next-label { font-size: 10px; letter-spacing: 0.12em; opacity: 0.6; }
.hh-next b { font-family: var(--serif); font-size: 16px; }
.hh-next-meta { font-size: 11.5px; opacity: 0.7; }
.hh-invite {
  margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(255, 253, 249, 0.7); border: 1px dashed rgba(217, 106, 122, 0.4);
  border-radius: 14px; padding: 12px 16px; position: relative; z-index: 1;
}
.hh-invite b { display: block; font-size: 13px; }
.hh-invite span { font-size: 11.5px; opacity: 0.7; }
.hh-invite-code { font-family: var(--serif); font-size: 18px; letter-spacing: 0.12em; margin-left: auto; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.92fr); gap: 18px; margin-top: 18px; }
.home-col, .home-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* 今日一问 */
.qa-card { background: var(--card); }
.qa-question { font-family: var(--serif); font-size: 20px; line-height: 1.6; margin: 4px 0 16px; }
.qa-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-side { background: var(--paper); border-radius: 14px; padding: 13px 15px; min-height: 84px; }
.qa-side.ta { background: var(--sage-soft); }
[data-theme="midnight"] .qa-side.ta { background: #2c332b; }
.qa-side.locked { opacity: 0.75; }
.qa-who { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; }
.qa-text { font-size: 13.5px; line-height: 1.75; }
.qa-locked { display: flex; align-items: center; gap: 6px; color: var(--ink-4); font-size: 12px; }
.qa-locked svg { width: 13px; height: 13px; }
.qa-card > .btn { margin-top: 14px; }
.qa-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.qa-solo .btn { margin-top: 12px; }
.qa-answers.revealed .qa-side { animation: reveal 500ms var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }

/* 快速记录 */
.quick-note { background: var(--paper); border-radius: 14px; padding: 12px; margin-bottom: 16px; }
.quick-input { border: 0; background: transparent; padding: 4px 6px; min-height: 56px; box-shadow: none; }
.quick-input:focus { box-shadow: none; background: transparent; }
.quick-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.quick-moods { display: flex; gap: 5px; flex-wrap: wrap; }
.quick-moods .chip { background: transparent; border-color: transparent; height: 26px; font-size: 11.5px; color: var(--ink-3); }
.quick-moods .chip.active { background: var(--card); border-color: var(--line-strong); color: var(--ink); }

/* 时光 */
.moment-list { display: flex; flex-direction: column; }
.moment {
  padding: 16px 0; border-bottom: 1px dashed var(--line);
}
.moment:last-child { border-bottom: 0; padding-bottom: 0; }
.moment-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); }
.moment-author { color: var(--ink-2); font-weight: 500; }
.moment-time { font-size: 11px; }
.moment-head .badge { height: 19px; font-size: 10px; }
.moment-head .badge svg { width: 11px; height: 11px; }
.moment-text { margin-top: 9px; font-size: 14px; line-height: 1.9; color: var(--ink); max-width: 46em; }
.moment-photos { display: flex; gap: 7px; margin-top: 11px; }
.moment-photo { border: 0; padding: 0; border-radius: 11px; overflow: hidden; background: var(--paper-2); }
.moment-photo img { width: 92px; height: 92px; object-fit: cover; transition: transform 280ms var(--ease); }
.moment-photo:hover img { transform: scale(1.04); }
.moment-photos.single .moment-photo img { width: 100%; max-width: 320px; height: 210px; object-fit: cover; }

/* 相册条 */
.album-strip { display: grid; grid-template-columns: repeat(4, 1fr) 0.8fr; gap: 8px; }
.album-strip-item { border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--paper-2); }
.album-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.album-strip-item:hover img { transform: scale(1.05); }
.album-strip-more {
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  font-size: 11px; color: var(--ink-3); line-height: 1.5;
}

/* 倒数日 */
.countdown-list { display: flex; flex-direction: column; gap: 4px; }
.countdown-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.countdown-list li:last-child { border-bottom: 0; }
.countdown-icon { width: 30px; height: 30px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; font-size: 14px; flex: none; }
.countdown-list b { display: block; font-size: 13px; font-weight: 600; }
.countdown-list em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.countdown-days { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.countdown-days b { display: inline; font-family: var(--serif); font-size: 19px; color: var(--rose-deep); }
.countdown-empty { font-size: 12px; color: var(--ink-3); }
.countdown-card > .btn { margin-top: 12px; }

/* 心愿 */
.wish-count { font-size: 12px; color: var(--ink-3); }
.wish-count b { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.wish-progress { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-top: 8px; }
.wish-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--rose), var(--apricot)); transition: width 500ms var(--ease); }
.wish-progress.big { height: 9px; }
.wish-preview { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.wish-preview-item { font-size: 12px; color: var(--ink-2); background: var(--paper); border-radius: 8px; padding: 7px 10px; }
.wish-card > .btn { margin-top: 12px; }

/* AI */
.ai-actions { display: flex; flex-direction: column; gap: 6px; }
.ai-action {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--paper); border: 1px solid transparent; border-radius: 12px;
  padding: 10px 12px; transition: all 180ms var(--ease);
}
.ai-action:hover { border-color: var(--line-strong); background: var(--card); transform: translateX(2px); }
.ai-action-icon { font-size: 16px; width: 26px; text-align: center; }
.ai-action b { display: block; font-size: 12.5px; font-weight: 600; }
.ai-action em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.ai-cost { font-size: 10px; color: var(--gold); background: var(--gold-soft); border-radius: 99px; padding: 2px 7px; white-space: nowrap; }
.ai-buy { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; color: var(--rose-deep); margin-top: 12px; }
.ai-buy svg { width: 12px; height: 12px; }

.side-note-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-bottom: 6px; }
.side-note-head svg { width: 15px; height: 15px; color: var(--sage); }

/* ============================================================
   时光页
   ============================================================ */
.composer { margin-bottom: 16px; }
.composer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.composer-input { border: 0; background: transparent; padding: 4px 2px; min-height: 80px; font-size: 15px; box-shadow: none; }
.composer-input:focus { box-shadow: none; background: transparent; }
.composer-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.composer-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.composer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.composer-thumb button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 50%; border: 0; background: rgba(30, 26, 23, 0.7); color: #fff;
  display: grid; place-items: center; padding: 0;
}
.composer-thumb button svg { width: 11px; height: 11px; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }
.upload-btn { cursor: pointer; }

.filter-bar { display: flex; align-items: center; gap: 7px; margin: 18px 0 6px; flex-wrap: wrap; }

.month-group { margin-top: 18px; }
.month-label {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px; letter-spacing: 0.06em; color: var(--ink-3);
  padding: 6px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.month-label em { font-style: normal; font-size: 10.5px; color: var(--ink-4); }
.month-label span { font-family: var(--serif); font-size: 15px; color: var(--ink-2); }

.moment-wrap { position: relative; padding: 4px 0; }
.moment-tools { opacity: 0; transition: opacity 180ms; position: absolute; right: 0; bottom: 12px; }
.moment-wrap:hover .moment-tools { opacity: 1; }
.moment-wrap .moment { padding-right: 10px; }

/* ============================================================
   相册
   ============================================================ */
.quota-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 18px;
}
.quota-text { display: flex; flex-direction: column; }
.quota-text b { font-size: 13px; font-variant-numeric: tabular-nums; }
.quota-text span { font-size: 10.5px; color: var(--ink-3); }
.quota-track { flex: 1; min-width: 100px; height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.quota-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--apricot)); }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.album-add {
  border: 1.5px dashed var(--line-strong); border-radius: 14px; aspect-ratio: 3 / 3.9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-3); background: rgba(255, 253, 249, 0.4); cursor: pointer;
  transition: all 200ms var(--ease);
}
.album-add:hover { border-color: var(--rose); color: var(--rose-deep); background: var(--rose-wash); }
.album-add svg { width: 22px; height: 22px; }
.album-add span { font-size: 12.5px; }
.album-add em { font-style: normal; font-size: 10px; color: var(--ink-4); }
.album-item { margin: 0; }
.album-thumb { display: block; width: 100%; aspect-ratio: 3 / 3.6; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.album-thumb:hover img { transform: scale(1.04); }
.album-item figcaption { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; }
.album-cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.album-date { font-size: 10px; color: var(--ink-4); }
.album-menu { border: 0; background: transparent; color: var(--ink-4); padding: 2px; }
.album-menu svg { width: 13px; height: 13px; }
.album-note { margin-top: 22px; font-size: 11.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }
.album-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* ============================================================
   日历
   ============================================================ */
.cal-card { padding: 20px; margin-bottom: 22px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 18px; align-items: start; }
.cal-layout .cal-card { margin-bottom: 0; }
.cal-layout .cal-list-section { margin-top: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-title { display: flex; align-items: baseline; gap: 6px; }
.cal-title b { font-family: var(--serif); font-size: 28px; }
.cal-title span { font-size: 13px; color: var(--ink-3); }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-week span { text-align: center; font-size: 10.5px; color: var(--ink-4); padding: 4px 0; letter-spacing: 0.06em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  position: relative; aspect-ratio: 1; border: 1px solid transparent; border-radius: 11px;
  background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: all 160ms var(--ease); padding: 2px;
}
.cal-cell:hover { background: var(--paper-2); }
.cal-cell.other { opacity: 0.34; }
.cal-cell.today { background: var(--rose-wash); border-color: rgba(217, 106, 122, 0.3); }
.cal-num { font-family: var(--serif); font-size: 15px; font-variant-numeric: tabular-nums; }
.cal-cell.today .cal-num { color: var(--rose-deep); font-weight: 600; }
.cal-today-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); vertical-align: middle; margin-left: 3px; }
.cal-marks { display: flex; gap: 2px; align-items: center; height: 10px; }
.mark { font-style: normal; font-size: 8px; line-height: 1; color: var(--rose-deep); }
.mark-ann { font-size: 10.5px; }
.mark-moment { width: 4px; height: 4px; border-radius: 50%; background: var(--sage); }
.mark-heart { color: var(--rose); }
.cal-legend { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 10.5px; color: var(--ink-3); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }

.ann-list { display: flex; flex-direction: column; gap: 8px; }
.cal-list-section { margin-top: 6px; }
.ann-item {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px;
  transition: border-color 180ms, transform 180ms var(--ease);
}
.ann-item:hover { border-color: var(--line-strong); transform: translateX(2px); }
.ann-item.passed { opacity: 0.62; }
.ann-icon { width: 40px; height: 40px; border-radius: 13px; background: var(--paper); display: grid; place-items: center; font-size: 18px; flex: none; }
.ann-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.ann-title .badge { height: 18px; font-size: 9.5px; }
.ann-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-side { display: flex; align-items: center; gap: 12px; flex: none; }
.ann-days { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.ann-days b { font-family: var(--serif); font-size: 22px; color: var(--rose-deep); }
.ann-days.now { color: var(--rose-deep); font-weight: 600; }
.ann-days.passed { color: var(--ink-4); }
.ann-actions { display: flex; gap: 1px; }
.ann-actions .btn-icon { width: 30px; height: 30px; min-height: 30px; }
.ann-actions svg { width: 14px; height: 14px; }

/* ============================================================
   心愿
   ============================================================ */
.wish-hero { margin-bottom: 16px; background: linear-gradient(140deg, var(--rose-wash), var(--card) 70%); }
.wish-hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.wish-hero-num { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.wish-hero-num b { font-family: var(--serif); font-size: 48px; line-height: 1; }
.wish-hero-num span { font-size: 14px; color: var(--ink-3); }
.wish-hero-pct { font-family: var(--serif); font-size: 20px; color: var(--rose-deep); }
.wish-form { display: flex; gap: 8px; flex-wrap: wrap; }
.wish-form .input:first-child { flex: 1 1 220px; }
.wish-note-input { flex: 0 1 160px; }
.wish-section { margin-top: 26px; }
.wish-section-title { font-size: 14px; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.wish-section-title em { font-style: normal; font-size: 11px; color: var(--ink-4); }
.wish-list { display: flex; flex-direction: column; gap: 7px; }
.wish-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  transition: all 180ms var(--ease);
}
.wish-item:hover { border-color: var(--line-strong); }
.wish-check {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--card);
  display: grid; place-items: center; padding: 0; transition: all 160ms;
}
.wish-check svg { width: 13px; height: 13px; }
.wish-item.done .wish-check { background: var(--sage); border-color: var(--sage); color: #fff; }
.wish-title { font-size: 13.5px; }
.wish-item.done .wish-title { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.wish-meta { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; flex-wrap: wrap; }
.wish-meta .avatar { width: 18px; height: 18px; font-size: 9px; border-width: 1px; }
.wish-footer { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ============================================================
   我们
   ============================================================ */
.couple-card { margin-bottom: 16px; }
.couple-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.couple-avatars { display: flex; align-items: center; gap: 6px; }
.couple-link { color: var(--rose); display: grid; place-items: center; }
.couple-link svg { width: 18px; height: 18px; }
.couple-info h2 { font-size: 24px; }
.couple-info p { margin-top: 4px; }
.couple-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.invite-block {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.invite-block b { display: block; font-size: 12.5px; }
.invite-block span { font-size: 11px; }
.invite-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite-inline code {
  font-family: var(--serif); font-size: 16px; letter-spacing: 0.1em;
  background: var(--paper); border-radius: 8px; padding: 5px 12px;
}
.us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.us-data-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.danger-text { color: #b4453c; }
.about-card { margin-top: 16px; }
.about-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.about-row b { display: block; font-family: var(--serif); font-size: 16px; }
.about-row span { font-size: 11px; }

/* ============================================================
   个人收款码
   ============================================================ */
.manual-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px 60px;
  background: radial-gradient(800px 400px at 70% 0%, rgba(233, 161, 120, 0.16), transparent 60%), var(--paper);
}
.manual-card {
  width: min(600px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--sh-lg);
}
.manual-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.manual-title { font-size: 26px; margin: 12px 0 6px; }
.manual-sub { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.manual-amount { display: flex; align-items: baseline; gap: 4px; margin: 16px 0; }
.manual-amount b { font-family: var(--serif); font-size: 44px; line-height: 1; }
.manual-amount span { font-size: 20px; }
.manual-qr {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--paper); border-radius: 16px; padding: 18px;
}
.manual-qr img {
  width: 180px; height: 180px; object-fit: contain;
  background: #fff; border-radius: 12px; border: 1px solid var(--line);
  flex: none;
}
.manual-qr-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.manual-qr-side b { font-size: 14px; }
.manual-steps { padding-left: 18px; margin: 6px 0; font-size: 12px; line-height: 1.9; color: var(--ink-2); list-style: decimal; }
.manual-steps code, .manual-meta code { font-family: var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.manual-qr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.manual-mobile-tip { font-size: 11px; color: var(--ink-3); background: var(--rose-wash); border-radius: 8px; padding: 8px 10px; line-height: 1.65; }
.manual-note { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.7; }
.manual-note svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.manual-waiting {
  text-align: center; background: var(--gold-soft); border-radius: 16px; padding: 26px 18px;
}
.manual-waiting b { display: block; font-size: 16px; margin: 8px 0 4px; color: #7c5c22; }
.manual-waiting p { font-size: 12px; color: #8a6626; }
.manual-waiting.closed { background: var(--paper-2); }
.manual-waiting.closed b, .manual-waiting.closed p { color: var(--ink-3); }
.manual-waiting-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #c9a46a; box-shadow: 0 0 0 6px rgba(201, 164, 106, 0.18);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { transform: scale(0.82); opacity: 0.65; } }
.manual-missing { background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 16px; padding: 24px; text-align: center; }
.manual-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 10.5px; color: var(--ink-4); margin-top: 16px; }
.manual-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.manual-actions .btn-lg { width: 100%; }.manual-back-tip {
  display: flex; align-items: flex-start; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--ink-4); margin-top: 10px; line-height: 1.6;
}
.manual-back-tip svg { width: 12px; height: 12px; flex: none; margin-top: 2px; }

.owner-card.is-owner {
  background: linear-gradient(135deg, var(--gold-soft), var(--card) 70%);
  border-color: rgba(185, 143, 82, 0.4);
}
.owner-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ============================================================
   会员 / 收费
   ============================================================ */
.membership-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #332c28, #4a3a33 60%, #59423a);
  color: #f9f1e6; border-radius: 22px; padding: 26px 28px;
  box-shadow: var(--sh-md); margin-bottom: 26px;
}
.membership-card.is-pro { background: linear-gradient(135deg, #2f2a3c, #453a4e 60%, #5b4148); }
.mc-left { max-width: 40em; }
.mc-left h2 { font-size: 26px; margin: 10px 0 8px; color: #fdf6ec; }
.mc-left p { font-size: 12.5px; line-height: 1.85; color: rgba(249, 241, 230, 0.72); }
.mc-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 24px; }
.mc-stats div { text-align: right; }
.mc-stats b { display: block; font-family: var(--serif); font-size: 24px; }
.mc-stats span { font-size: 10px; color: rgba(249, 241, 230, 0.6); }

.pro-sku-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pro-sku {
  display: flex; flex-direction: column; gap: 10px; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  transition: all 220ms var(--ease);
}
.pro-sku:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-2px); }
.pro-sku.highlight { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217, 106, 122, 0.1); }
.sku-badge {
  position: absolute; top: -9px; right: 18px; background: var(--rose); color: #fff;
  font-size: 9.5px; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 99px;
}
.sku-top { display: flex; align-items: center; justify-content: space-between; }
.sku-name { font-size: 19px; }
.sku-name span { font-size: 12px; color: var(--ink-3); margin-left: 6px; font-family: var(--sans); font-weight: 400; }
.sku-bullets { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.sku-bullets li { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.sku-bullets svg { width: 13px; height: 13px; color: var(--sage); flex: none; margin-top: 3px; }
.sku-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.sku-buy .sku-price b { font-size: 26px; }
.sku-buy .sku-price em { font-style: normal; font-size: 10.5px; color: var(--ink-3); margin-left: 4px; }

.theme-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.theme-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 200ms var(--ease);
}
.theme-card.active { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217, 106, 122, 0.1); }
.theme-preview { height: 88px; border-radius: 11px; position: relative; overflow: hidden; padding: 16px; }
.tp-line { display: block; height: 5px; width: 60%; background: rgba(255, 255, 255, 0.65); border-radius: 99px; margin-bottom: 7px; }
.tp-line.short { width: 36%; }
.tp-dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); position: absolute; right: 12px; bottom: 12px; }
.theme-meta b { font-size: 13.5px; }
.theme-meta p { font-size: 10.5px; color: var(--ink-3); line-height: 1.6; margin-top: 4px; min-height: 28px; }
.theme-meta .badge { height: 17px; font-size: 9px; margin-left: 5px; }
.theme-meta .badge svg { width: 9px; height: 9px; }
.orders-section { margin-top: 32px; }
.order-table { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.order-row { display: grid; grid-template-columns: 2fr 0.7fr 1fr 0.7fr; gap: 12px; padding: 12px 16px; font-size: 12px; border-bottom: 1px solid var(--line); align-items: center; }
.order-row:last-child { border-bottom: 0; }
.order-head { background: var(--paper-2); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-3); }
.order-title { display: flex; flex-direction: column; }
.order-title em { font-style: normal; font-size: 9.5px; color: var(--ink-4); font-family: var(--mono); }
.pro-faq { margin-top: 26px; }
.pro-faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.pro-faq-list li { font-size: 12px; line-height: 1.7; }
.pro-faq-list b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.pro-faq-list span { color: var(--ink-3); }
.empty-sm { padding: 28px; }
.empty-sm .emoji { font-size: 22px; margin-bottom: 6px; }

/* ============================================================
   收银台
   ============================================================ */
.pay-shell {
  min-height: 100vh; background: #f2f5f9; color: #1e2833;
  font-family: var(--sans);
}
.pay-top {
  background: #fff; border-bottom: 1px solid #e6ebf2;
  height: 66px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1000px) / 2));
  gap: 16px;
}
.pay-brand { display: flex; align-items: center; gap: 10px; }
.pay-logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--alipay);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.pay-brand b { font-size: 15px; letter-spacing: 0.02em; }
.pay-brand div span { display: block; font-size: 9px; color: #8c98a8; letter-spacing: 0.1em; }
.pay-sandbox { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #7b8899; background: #eef3fa; border-radius: 99px; padding: 5px 12px; }
.pay-sandbox svg { width: 13px; height: 13px; color: #4a7fd4; }
.pay-body {
  max-width: 1000px; margin: 0 auto; padding: 30px 24px 70px;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr); gap: 20px;
  align-items: start;
}
.pay-main { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 10px 30px -20px rgba(30, 40, 51, 0.4); }
.pay-order-top { display: flex; justify-content: space-between; align-items: center; }
.pay-order .eyebrow { color: #8c98a8; }
.pay-timer { font-family: var(--mono); font-size: 13px; color: #e08a2e; background: #fdf4e7; border-radius: 6px; padding: 3px 8px; }
.pay-title { font-size: 24px; margin: 14px 0 6px; font-family: var(--serif); color: #1e2833; }
.pay-sub { font-size: 12.5px; color: #8c98a8; }
.pay-amount { display: flex; align-items: baseline; gap: 4px; margin: 18px 0; color: #1e2833; }
.pay-amount span { font-size: 20px; }
.pay-amount b { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.pay-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 0; padding-top: 18px; border-top: 1px dashed #e2e8f0; }
.pay-meta div { display: flex; flex-direction: column; gap: 2px; }
.pay-meta dt { font-size: 10.5px; color: #94a0b0; }
.pay-meta dd { margin: 0; font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: -0.02em; }
.pay-methods { margin-top: 24px; }
.pay-methods h2 { font-size: 14px; font-family: var(--sans); margin-bottom: 10px; font-weight: 600; }
.pay-method {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 13px 16px; margin-bottom: 8px;
  cursor: pointer; transition: all 160ms; background: #fff;
}
.pay-method.active { border-color: var(--alipay); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08); }
.pay-method input { display: none; }
.pay-method-icon { font-size: 18px; }
.pay-method b { display: block; font-size: 13px; font-weight: 500; }
.pay-method em { font-style: normal; font-size: 10.5px; color: #94a0b0; }
.pay-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c8d2de; flex: none; position: relative; }
.pay-method.active .pay-radio { border-color: var(--alipay); }
.pay-method.active .pay-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--alipay); }
.pay-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.btn-pay {
  --btn-bg: var(--alipay); --btn-fg: #fff;
  border-radius: 10px; box-shadow: 0 10px 22px -14px rgba(22, 119, 255, 0.9);
}
.pay-tip { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; color: #94a0b0; margin-top: 14px; line-height: 1.6; }
.pay-tip svg { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.pay-side-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px -24px rgba(30, 40, 51, 0.4); }
.pay-side-card .eyebrow { color: #94a0b0; }
.pay-grants { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pay-grants li { display: flex; gap: 8px; font-size: 12px; color: #45525f; line-height: 1.6; }
.pay-grants svg { width: 13px; height: 13px; color: #2ea36a; flex: none; margin-top: 3px; }
.pay-side-note { display: flex; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e2e8f0; font-size: 10.5px; color: #94a0b0; line-height: 1.65; }
.pay-side-note svg { width: 14px; height: 14px; flex: none; color: #b3bfce; }
.pay-card { max-width: 440px; margin: 60px auto; background: #fff; border-radius: 18px; padding: 40px; text-align: center; }
.pay-error-emoji { font-size: 40px; display: block; margin-bottom: 12px; }
.pay-error h1 { font-size: 22px; margin-bottom: 8px; }
.pay-error .btn { margin-top: 18px; }

/* ============================================================
   支付成功
   ============================================================ */
.success-shell {
  position: relative; max-width: 880px; margin: 0 auto; padding: 40px 24px 80px;
  min-height: 100vh; align-content: center;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); gap: 24px; align-items: start;
}
.success-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.success-hearts span {
  position: absolute; left: calc(8% + var(--i) * 10%); bottom: 20%;
  font-size: 14px; opacity: 0; animation: heartUp 3.6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.22s);
}
@keyframes heartUp {
  0% { opacity: 0; transform: translateY(0) scale(0.7); }
  18% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-190px) scale(1.15) rotate(8deg); }
}
.success-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 36px; box-shadow: var(--sh-md); text-align: center;
}
.success-check {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--sage-soft); color: #4f6247; display: grid; place-items: center;
  animation: pop 500ms var(--ease);
}
.success-check svg { width: 26px; height: 26px; }
.success-title { font-size: 27px; margin-top: 8px; }
.success-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }
.success-amount { font-family: var(--serif); font-size: 34px; margin: 10px 0 18px; color: var(--ink); }
.success-grant {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--paper); border-radius: 14px; padding: 14px; margin-bottom: 20px;
}
.success-grant b { font-size: 14px; }
.success-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; text-align: left; margin: 0 0 22px; }
.success-meta div { display: flex; flex-direction: column; gap: 2px; }
.success-meta dt { font-size: 10px; color: var(--ink-4); }
.success-meta dd { margin: 0; font-size: 11.5px; }
.success-actions { display: flex; flex-direction: column; gap: 8px; }
.success-side { display: flex; flex-direction: column; gap: 12px; }
.receipt {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: var(--sh-sm);
}
.receipt-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 16px; }
.receipt-line { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; }
.receipt-dash { border-top: 1px dashed var(--line-strong); margin: 10px 0; }
.receipt-barcode { display: flex; gap: 2px; align-items: flex-end; height: 34px; margin: 16px 0 8px; }
.receipt-barcode i { display: block; height: 100%; background: var(--ink-2); opacity: 0.7; }

/* ============================================================
   创作者后台
   ============================================================ */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.stat-label { font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.stat-num { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.stat-num small { font-size: 13px; color: var(--ink-3); margin-left: 2px; }
.stat-note { font-size: 10.5px; color: var(--ink-4); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 16px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--rose), rgba(217, 106, 122, 0.35)); min-height: 4px; transition: height 500ms var(--ease); }
.bar-value { font-size: 9.5px; color: var(--ink-4); height: 12px; }
.bar-label { font-size: 9.5px; color: var(--ink-4); }

.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel li { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.funnel-label { width: 72px; color: var(--ink-3); flex: none; }
.funnel-bar { flex: 1; height: 22px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--apricot)); border-radius: 6px; transition: width 500ms var(--ease); }
.funnel b { width: 26px; text-align: right; font-variant-numeric: tabular-nums; }

.sku-rank { display: flex; flex-direction: column; gap: 12px; }
.sku-rank li { display: flex; gap: 10px; align-items: center; }
.sku-rank-emoji { width: 28px; height: 28px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; font-size: 13px; flex: none; }
.sku-rank-top { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.sku-rank-top span { color: var(--ink-3); font-size: 10.5px; }
.sku-rank-bar { height: 4px; border-radius: 99px; background: var(--paper-2); margin-top: 5px; }
.sku-rank-bar span { display: block; height: 100%; border-radius: 99px; background: var(--sage); }

.ledger { display: flex; flex-direction: column; gap: 2px; }
.ledger-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ledger-item:last-child { border: 0; }
.ledger-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); flex: none; }
.ledger-grant .ledger-dot { background: var(--sage); }
.ledger-consume .ledger-dot { background: var(--gold); }
.ledger-refund .ledger-dot { background: #c4554a; }
.ledger-item b { display: block; font-size: 11.5px; font-weight: 500; }
.ledger-item em { font-style: normal; font-size: 10px; color: var(--ink-4); }
.ledger-bal { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

.orders-admin { margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.data-table th {
  text-align: left; font-weight: 500; font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-4); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.admin-confirm-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.data-table .btn-sm { min-height: 28px; font-size: 11px; }

.admin-users { margin-bottom: 16px; }
.admin-user-cell { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.admin-user-cell b { display: block; font-size: 12px; font-weight: 500; }
.admin-user-cell em { display: block; font-style: normal; font-size: 9px; color: var(--ink-4); }
.admin-user-cell small { display: block; margin-top: 1px; }
.admin-user-actions { display: flex; gap: 4px; white-space: nowrap; }
.user-info-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.user-info-head h3 { font-family: var(--serif); font-size: 20px; }
.user-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; }
.user-info-grid dt { font-size: 10px; color: var(--ink-4); letter-spacing: 0.04em; }
.user-info-grid dd { margin: 3px 0 0; font-size: 12px; line-height: 1.6; word-break: break-all; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.login-card { width: min(430px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--sh-pop); }
.login-card .brand { margin-bottom: 18px; }
.login-title { font-family: var(--serif); font-size: 28px; text-align: center; margin-bottom: 8px; }
.login-sub { font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.8; margin-bottom: 22px; }
.login-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.login-foot { text-align: center; margin-top: 18px; font-size: 11px; }
.login-foot a { color: var(--ink-4); }
.user-editor { width: min(620px, 100%); }
.ue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 16px; }
.ue-grid .field { display: flex; flex-direction: column; gap: 6px; }
.ue-grid .field span { font-size: 11px; color: var(--ink-3); }
.ue-themes { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.ue-themes legend { font-size: 11px; color: var(--ink-3); padding: 0 6px; }
.theme-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.theme-checks label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.theme-checks input { accent-color: var(--rose); }

.tip-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 4px; }
.tip-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tip-amount {
  min-height: 42px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--ink); font-family: var(--serif);
  font-size: 16px; cursor: pointer; transition: 160ms var(--ease);
}
.tip-amount:hover { border-color: var(--rose); color: var(--rose); }
.tip-amount.active { background: var(--rose); border-color: var(--rose); color: #fff; }
@media (max-width: 600px) {
  .tip-card { flex-direction: column; align-items: flex-start; }
}

.integration-card { margin-bottom: 20px; }
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.integration-grid div { display: flex; flex-direction: column; gap: 3px; }
.integration-grid span { font-size: 10px; color: var(--ink-4); }
.integration-grid b { font-size: 12px; font-weight: 500; }
.integration-card code { font-family: var(--mono); font-size: 10.5px; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

/* ============================================================
   纪念册
   ============================================================ */
.book-gate { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.book-gate-preview { position: relative; height: 380px; }
.gate-page {
  position: absolute; width: 210px; height: 290px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px; text-align: center;
}
.gate-page span { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-4); }
.gate-page strong { font-family: var(--serif); font-size: 19px; }
.gate-page em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.gate-page.g2 { left: 108px; top: 40px; transform: rotate(5deg); padding: 0; overflow: hidden; }
.gate-page.g2 img { width: 100%; height: 100%; object-fit: cover; }
.gate-page.g3 { left: 54px; top: 80px; transform: rotate(-4deg); background: linear-gradient(150deg, #f7e4d4, #f3dfe1); }
.gate-page.g3 span { font-family: var(--serif); font-size: 15px; color: #7a5348; letter-spacing: 0.06em; }
.book-gate-copy h2 { font-size: 28px; margin: 12px 0 10px; }
.gate-pages { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.gate-page-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 12px;
}
.gate-page-chip em { font-style: normal; font-family: var(--serif); font-size: 10px; color: var(--rose-deep); }
.gate-pages-note { font-size: 11px; color: var(--ink-4); margin-left: auto; }
.book-gate-copy p { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.gate-list { display: flex; flex-direction: column; gap: 7px; margin: 16px 0 22px; }
.gate-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.gate-list svg { width: 14px; height: 14px; color: var(--sage); }
.gate-buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gate-buy b { font-family: var(--serif); font-size: 28px; }
.gate-buy span { font-size: 11px; color: var(--ink-3); }
.book-ready { text-align: center; max-width: 520px; margin: 30px auto; padding: 40px; }
.book-ready-emoji { font-size: 36px; display: block; margin-bottom: 10px; color: var(--rose-deep); }
.book-ready h2 { font-size: 24px; margin-bottom: 8px; }
.book-ready .btn { margin-top: 20px; }
.book-ready p { margin-top: 8px; }

.book-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.book-toolbar-actions { display: flex; gap: 8px; }

.book { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.book-page {
  width: 100%; max-width: 640px; background: #fffdf8; color: #2b2723;
  border-radius: 6px; box-shadow: 0 20px 50px -30px rgba(43, 39, 35, 0.6), 0 1px 0 rgba(0, 0, 0, 0.04);
  padding: 46px 48px; aspect-ratio: 210 / 297; overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.book-cover {
  background: var(--cover, #f7e9d8);
  justify-content: space-between;
  align-items: center; text-align: center;
}
.book-cover::after {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(122, 83, 72, 0.25); border-radius: 3px; pointer-events: none;
}
.book-cover-top { width: 100%; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 0.2em; color: rgba(90, 63, 55, 0.6); }
.book-year { font-family: var(--serif); font-size: 11px; letter-spacing: 0.1em; }
.book-cover-mid h1 { font-size: 34px; margin: 14px 0 8px; color: #4a332c; }
.book-cover-emojis { font-size: 30px; letter-spacing: 0.2em; }
.book-cover-sub { font-size: 13px; color: rgba(74, 51, 44, 0.72); font-family: var(--serif); }
.book-cover-line { width: 44px; height: 1px; background: rgba(90, 63, 55, 0.4); margin: 22px auto 14px; }
.book-cover-meta { font-size: 10px; letter-spacing: 0.12em; color: rgba(74, 51, 44, 0.6); }
.book-cover-foot { width: 100%; display: flex; justify-content: space-between; font-size: 8.5px; color: rgba(90, 63, 55, 0.55); letter-spacing: 0.1em; }
.book-page-head { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 0.18em; color: #a1938a; border-bottom: 1px solid #e6ded3; padding-bottom: 10px; margin-bottom: 22px; }
.book-h2 { font-size: 24px; color: #3c332e; }
.book-h2.small { font-size: 16px; margin-bottom: 10px; }
.book-body { margin-top: 16px; font-size: 12px; line-height: 2.05; color: #554b44; display: flex; flex-direction: column; gap: 10px; }
.book-pull { margin-top: auto; padding: 20px 0 0; border-top: 1px solid #eee6db; position: relative; }
.book-pull-mark { font-family: var(--serif); font-size: 40px; color: #dcc9b8; line-height: 0.6; }
.book-pull p { font-family: var(--serif); font-size: 15px; line-height: 1.9; color: #4a3f38; margin-top: 6px; }
.book-pull-by { font-size: 9px; color: #a1938a; letter-spacing: 0.08em; }
.book-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; flex: 1; align-content: start; }
.book-photos figure { margin: 0; }
.book-photos figure.big { grid-column: span 3; }
.book-photos img { width: 100%; height: 100%; max-height: 150px; object-fit: cover; border-radius: 3px; }
.book-photos figure.big img { max-height: 210px; }
.book-photos figcaption { font-size: 8px; color: #a1938a; margin-top: 3px; letter-spacing: 0.04em; }
.book-note { font-size: 8.5px; color: #b3a69c; margin-top: 10px; }
.book-timeline { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.book-timeline li { display: flex; gap: 14px; border-bottom: 1px solid #f0e9df; padding-bottom: 12px; }
.book-time { width: 54px; flex: none; font-size: 9px; color: #a1938a; letter-spacing: 0.04em; }
.book-timeline b { font-size: 10px; color: #8a7a6f; font-weight: 500; }
.book-timeline p { font-size: 11.5px; line-height: 1.85; color: #4f443d; margin-top: 2px; }
.book-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 18px; }
.book-anns, .book-wishes { display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: #554b44; }
.book-anns li { display: flex; align-items: center; gap: 6px; }
.book-anns b { font-weight: 500; flex: 1; }
.book-anns em { font-style: normal; font-size: 9px; color: #a1938a; }
.book-end-quote { margin-top: auto; text-align: center; font-family: var(--serif); font-size: 14px; line-height: 2; color: #6b5b51; }
.book-back { background: #2f2a26; color: #f3e9dd; justify-content: center; align-items: center; text-align: center; }
.book-back-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.book-back .book-brand { color: rgba(243, 233, 221, 0.5); }
.book-back h2 { font-size: 32px; color: #f7eee2; margin: 16px 0; line-height: 1.5; }
.book-back p { font-size: 10px; color: rgba(243, 233, 221, 0.5); }
.book-back-line { width: 40px; height: 1px; background: rgba(243, 233, 221, 0.3); margin: 20px 0; }
.book-print-note { text-align: center; margin-top: 24px; }

/* ============================================================
   弹窗内容
   ============================================================ */
.paywall-reason { margin-top: 14px; font-size: 12.5px; background: var(--paper); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); }
.paywall-sku {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  background: var(--rose-wash); border: 1px solid rgba(217, 106, 122, 0.2);
  border-radius: 14px; padding: 14px;
}
.paywall-sku-emoji { font-size: 22px; }
.paywall-sku b { display: block; font-size: 13.5px; }
.paywall-sku span.tiny { display: block; }
.paywall-price { font-family: var(--serif); font-size: 20px; color: var(--rose-deep); }
.paywall-sku + p { display: flex; align-items: center; gap: 6px; }
.paywall-sku + p svg { width: 13px; height: 13px; color: var(--sage); }

.ai-cost-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ai-cost-line .badge svg { width: 11px; height: 11px; }
.ai-result { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.ai-result-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.ai-result-head .badge svg { width: 11px; height: 11px; }
.ai-result-body { padding: 18px 20px; max-height: 46vh; overflow: auto; font-family: var(--serif); font-size: 13.5px; line-height: 2; color: var(--ink); }
.ai-result-body p { margin-bottom: 12px; }
.ai-result-body p:last-child { margin-bottom: 0; }
.ai-result-body h4 { font-size: 13px; margin: 16px 0 8px; color: var(--ink-3); letter-spacing: 0.06em; font-family: var(--sans); }
.ai-result-body h4:first-child { margin-top: 0; }
.ai-step { display: flex; gap: 12px; margin-bottom: 10px; }
.ai-step-time { width: 44px; flex: none; font-family: var(--sans); font-size: 10.5px; color: var(--rose-deep); padding-top: 3px; }
.ai-step b { display: block; font-family: var(--sans); font-size: 12.5px; }
.ai-step span { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; font-family: var(--sans); }
.ai-gift { display: flex; gap: 8px; align-items: baseline; font-family: var(--sans); font-size: 11.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ai-gift b { font-size: 12.5px; }
.ai-gift span { color: var(--ink-3); flex: 1; line-height: 1.6; }
.ai-gift em { font-style: normal; font-size: 10.5px; color: var(--gold); }
.ai-budget { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--sans); }
.ai-budget span { font-size: 11px; background: var(--paper); border-radius: 8px; padding: 6px 10px; }
.ai-budget b { display: block; font-size: 10px; color: var(--ink-4); font-weight: 400; }
.ai-result-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ai-result-actions .btn svg { width: 14px; height: 14px; }

.idea-list { display: flex; flex-direction: column; gap: 8px; }
.idea-list li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.idea-list li span { flex: 1; line-height: 1.6; }
.idea-list li em { font-style: normal; font-size: 10.5px; color: var(--ink-4); }
.idea-list li .btn { min-height: 28px; font-size: 11px; padding: 0 10px; }

.draw-result { text-align: center; padding: 14px 0 4px; }
.draw-emoji { font-size: 32px; display: block; margin-bottom: 10px; }
.draw-result h3 { font-size: 20px; line-height: 1.5; }
.draw-result p { margin-top: 8px; }

.day-block { margin-bottom: 16px; }
.day-block h4 { font-size: 11px; letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 8px; font-family: var(--sans); font-weight: 500; }
.day-line { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; }
.day-line em { font-style: normal; font-size: 9.5px; color: var(--ink-4); background: var(--paper-2); border-radius: 4px; padding: 1px 5px; }
.day-moment { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.day-moment p { font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }

/* ============================================================
   打印
   ============================================================ */
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  body::before { display: none; }
  .rail, .topbar, .tabbar, .book-toolbar, .book-print-note, .success-side, .toast-layer, .modal-backdrop { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .book { gap: 0; }
  .book-page {
    width: 210mm; height: 297mm; max-width: none; border-radius: 0; box-shadow: none;
    padding: 18mm 20mm; page-break-after: always; break-after: page; aspect-ratio: auto;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .book-page:last-child { page-break-after: auto; break-after: auto; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); }
  .theme-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1020px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .page { padding: 22px 20px 96px; max-width: 760px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-side { order: 3; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 12px; border-radius: 10px; font-size: 10px; color: var(--ink-3); flex: 1; }
  .tab svg { width: 19px; height: 19px; }
  .tab.active { color: var(--rose-deep); }
  .tab.active svg { stroke-width: 2; }
  .topbar { height: 56px; padding: 0 16px; }
  .topbar-crumb { font-size: 14px; }
  .viewas-label { display: none; }
  .us-grid { grid-template-columns: 1fr; }
  .cal-layout { grid-template-columns: 1fr; }
  .cal-layout .cal-card { margin-bottom: 0; }
  .success-shell { grid-template-columns: 1fr; }
  .success-side { max-width: 420px; margin: 0 auto; width: 100%; }
  .book-gate { grid-template-columns: 1fr; gap: 20px; }
  .book-gate-preview { height: 330px; transform: scale(0.9); transform-origin: left top; }
  .pay-body { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .manual-wrap { padding: 20px 12px 40px; align-items: start; }
  .manual-card { padding: 20px; border-radius: 20px; }
  .manual-title { font-size: 22px; }
  .manual-amount b { font-size: 38px; }
  .manual-qr { flex-direction: column; align-items: center; padding: 16px; }
  .manual-qr img { width: 240px; height: 240px; }
  .manual-qr-side { width: 100%; }
  .manual-head { flex-wrap: wrap; }
  .manual-meta { flex-direction: column; gap: 4px; }
  .ue-grid { grid-template-columns: 1fr; }
  .user-info-grid { grid-template-columns: 1fr; }
  .user-info-head { align-items: flex-start; }
  .page-head { align-items: flex-start; }
  .hide-sm { display: none !important; }
  .page-title { font-size: 25px; }
  .credit-chip { padding: 0 9px; }
  .home-hero { padding: 20px; border-radius: 20px; }
  .hh-main { margin-top: 16px; }
  .hh-next { width: 100%; min-width: 0; }
  .hh-invite-code { margin-left: 0; }
  .qa-answers { grid-template-columns: 1fr; }
  .album-strip { grid-template-columns: repeat(4, 1fr); }
  .album-strip-more { display: none; }
  .pro-sku-grid { grid-template-columns: 1fr; }
  .theme-gallery { grid-template-columns: 1fr 1fr; }
  .pro-faq-list { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1.6fr 0.7fr 0.9fr; }
  .order-row span:nth-child(3) { display: none; }
  .order-head span:nth-child(3) { display: none; }
  .mc-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; width: 100%; }
  .mc-stats div { text-align: left; }
  .pay-main { padding: 18px; }
  .pay-meta { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .pay-amount { margin: 12px 0; }
  .pay-amount b { font-size: 38px; }
  .pay-title { font-size: 21px; }
  .pay-top { padding: 0 16px; }
  .pay-sandbox { font-size: 10px; padding: 4px 9px; }
  .success-card { padding: 26px 20px; }
  .success-meta { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .book-page { padding: 28px 24px; aspect-ratio: auto; min-height: 480px; }
  .book-cover-mid h1 { font-size: 26px; }
  .book-two-col { grid-template-columns: 1fr; gap: 16px; }
  .book-toolbar { align-items: flex-start; }
  .album-grid { grid-template-columns: 1fr 1fr; }
  .book-gate-preview { height: 300px; transform: scale(0.8); }
  .cal-cell { border-radius: 8px; }
  .cal-num { font-size: 13px; }
  .cal-marks { height: 8px; }
}

@media (max-width: 420px) {
  .page { padding: 18px 14px 92px; }
  .home-hero { padding: 16px; }
  .hh-num { font-size: 54px; }
  .card-pad { padding: 18px; }
  .topbar { padding: 0 12px; }
  .viewas-btn { padding: 5px 8px; }
  .album-grid { gap: 9px; }
}
