/* ==========================================================
   Chunting Holida · 基础设计系统
   主题：粉色旅行手记 / 毛玻璃 / 奶油纸张
   ========================================================== */

:root {
  --pink-50: #fff8f6;
  --pink-100: #ffedf1;
  --pink-200: #ffd9e2;
  --pink-300: #ffb9cb;
  --pink-400: #ff92ae;
  --pink-500: #f2628d;
  --pink-600: #d94773;
  --pink-700: #b63560;

  --wine: #3e2530;
  --wine-soft: #5c3b48;
  --rose: #8c6b76;
  --rose-light: #b39aa2;
  --cream: #fffaf5;
  --paper: #fff6f4;

  --success: #3f9b78;
  --warning: #c98a2e;
  --danger: #d45263;

  --line: rgba(62, 37, 48, 0.1);
  --line-strong: rgba(62, 37, 48, 0.16);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.8);

  --shadow-sm: 0 8px 24px -16px rgba(86, 32, 52, 0.35);
  --shadow-md: 0 22px 48px -30px rgba(86, 32, 52, 0.45);
  --shadow-lg: 0 36px 80px -40px rgba(86, 32, 52, 0.55);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --header-h: 76px;
  --tabbar-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--wine);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  background:
    radial-gradient(1100px 520px at 8% -10%, rgba(255, 185, 203, 0.5), transparent 62%),
    radial-gradient(900px 600px at 100% 8%, rgba(255, 214, 196, 0.55), transparent 58%),
    radial-gradient(800px 700px at 50% 110%, rgba(255, 226, 236, 0.7), transparent 60%),
    var(--pink-50);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(62, 37, 48, 0.06) 0.6px, transparent 0.6px),
    radial-gradient(rgba(255, 255, 255, 0.8) 0.6px, transparent 0.6px);
  background-size: 18px 18px, 24px 24px;
  background-position: 0 0, 9px 12px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,.2));
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--pink-300); color: var(--wine); }

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.container--narrow { width: min(880px, calc(100% - 48px)); }

.serif { font-family: var(--font-display); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pink-600);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.muted { color: var(--rose); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- 毛玻璃 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
  box-shadow: var(--shadow-sm);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.93); }
}

/* ---------- 图标 ---------- */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.975); }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ff9ebc 0%, var(--pink-500) 55%, var(--pink-600) 100%);
  box-shadow: 0 14px 30px -16px rgba(217, 71, 115, 0.75);
}
.btn--primary:hover { box-shadow: 0 18px 36px -16px rgba(217, 71, 115, 0.85); transform: translateY(-1px); }

.btn--ghost {
  color: var(--wine);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(62, 37, 48, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: #fff; }

.btn--soft {
  color: var(--pink-600);
  background: var(--pink-100);
}
.btn--soft:hover { background: var(--pink-200); }

.btn--danger { color: #fff; background: var(--danger); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(62, 37, 48, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.icon-btn:hover { background: #fff; transform: translateY(-1px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 249, 247, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
.header-inner {
  height: 100%;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px 14px 14px 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, #ffb3c8, var(--pink-500) 60%, #b63560);
  box-shadow: 0 10px 22px -12px rgba(182, 53, 96, 0.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.brand-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--rose-light);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--wine-soft);
  border-radius: 999px;
  transition: color 0.18s, background 0.18s;
}
.site-nav a:hover { color: var(--pink-600); background: rgba(255, 255, 255, 0.6); }
.site-nav a.is-active { color: var(--pink-600); font-weight: 600; }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink-500);
  transform: translateX(-50%);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 8px; }
.header-user { position: relative; }
.header-user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}
.header-user-btn .avatar { width: 38px; height: 38px; }
.header-user-name { font-size: 13px; font-weight: 600; }
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: none;
}
.header-user.is-open .user-menu { display: block; animation: pop 0.18s var(--ease); }
.user-menu a, .user-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  color: var(--wine-soft);
}
.user-menu a:hover, .user-menu button:hover { background: var(--pink-100); color: var(--pink-700); }
.badge {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.icon-with-badge { position: relative; }
.icon-with-badge .badge {
  position: absolute;
  top: -3px;
  right: -4px;
  box-shadow: 0 0 0 2px rgba(255, 250, 247, 0.9);
}

/* ---------- 移动端底部 Tab ---------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(255, 250, 247, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 -18px 40px -30px rgba(86, 32, 52, 0.5);
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  font-size: 10px;
  color: var(--rose-light);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.tabbar__item .icon { width: 22px; height: 22px; }
.tabbar__item.is-active { color: var(--pink-600); }
.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  top: 7px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--pink-400);
  opacity: 0.85;
}
.tabbar__item.is-active .icon { transform: translateY(3px); }
.tabbar__post {
  width: 56px;
  height: 56px;
  margin: -22px auto 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(145deg, #ffa4be, var(--pink-500) 58%, #c23c69);
  box-shadow: 0 16px 30px -12px rgba(217, 71, 115, 0.85), inset 0 1px 0 rgba(255,255,255,.4);
  position: relative;
  z-index: 2;
  transition: transform 0.2s var(--ease);
}
.tabbar__post:active { transform: scale(0.94); }
.tabbar__post .icon { width: 26px; height: 26px; }
.tabbar__post .badge { position: absolute; top: -2px; right: -2px; }
.tabbar__item .badge {
  position: absolute;
  top: 9px;
  right: calc(50% - 23px);
  box-shadow: 0 0 0 2px rgba(255, 250, 247, 0.9);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 80px;
  padding: 46px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--rose);
  font-size: 12px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-display); font-size: 20px; color: var(--wine); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--pink-600); }
.footer-note { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-reset {
  border: 0; background: transparent; color: var(--rose); cursor: pointer;
  font-size: 12px; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- 头像 / 标签 / 色块图片 ---------- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex: none;
  background: linear-gradient(145deg, var(--c1, #ffb3c8), var(--c2, #d94773));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px -6px rgba(62, 37, 48, 0.5);
  letter-spacing: 0.02em;
}
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.avatar--xl { width: 86px; height: 86px; font-size: 26px; border: 3px solid rgba(255,255,255,.8); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--rose);
  font-size: 11px;
  white-space: nowrap;
}
.chip--pink { background: var(--pink-100); border-color: transparent; color: var(--pink-600); }
.chip--success { background: rgba(63, 155, 120, 0.12); color: var(--success); border-color: transparent; }
.chip--warning { background: rgba(201, 138, 46, 0.13); color: var(--warning); border-color: transparent; }
.chip--danger { background: rgba(212, 82, 99, 0.12); color: var(--danger); border-color: transparent; }

.photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(152deg, var(--c1, #ffd9e2), var(--c2, #d9527a));
  border-radius: var(--radius-md);
}
.photo__sun {
  position: absolute;
  top: 12%;
  left: 14%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(1px);
  z-index: 1;
}
.photo__hill {
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -42%;
  height: 78%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(ellipse at 32% 100%, rgba(23, 34, 52, 0.34), transparent 68%),
    linear-gradient(180deg, rgba(23, 34, 52, 0.06), rgba(23, 34, 52, 0.28));
  z-index: 2;
}
.photo__hill--back {
  left: -30%;
  right: 10%;
  bottom: -34%;
  height: 62%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(23, 34, 52, 0.16));
  z-index: 1;
}
.photo__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  background: rgba(20, 25, 35, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.photo__label {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 3;
  color: #fff;
}
.photo--ratio-4x3 { aspect-ratio: 4 / 3; }
.photo--ratio-16x9 { aspect-ratio: 16 / 9; }
.photo--ratio-1x1 { aspect-ratio: 1 / 1; }
.photo--ratio-3x4 { aspect-ratio: 3 / 4; }

/* ---------- 卡片与区块 ---------- */
.card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.section { padding: 58px 0 0; }
.section--tight { padding-top: 36px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.section-head p { color: var(--rose); font-size: 13px; margin-top: 6px; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-600);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.section-link:hover { gap: 10px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 20px; }
.field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--wine-soft);
}
.field .req { color: var(--pink-500); margin-left: 2px; }
.field .hint { font-size: 11px; color: var(--rose-light); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid rgba(62, 37, 48, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--wine);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.input { height: 46px; }
.textarea { min-height: 132px; resize: vertical; line-height: 1.75; }
.select { height: 46px; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--rose) 50%), linear-gradient(135deg, var(--rose) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--pink-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(242, 98, 141, 0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--rose-light); }
.field-error { color: var(--danger); font-size: 12px; margin-top: 6px; display: none; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.counter { font-size: 11px; color: var(--rose-light); font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(62, 37, 48, 0.16);
  position: relative;
  transition: background 0.2s;
  flex: none;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(62, 37, 48, 0.25);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch__track { background: linear-gradient(135deg, #ff9ebc, var(--pink-500)); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch__label { font-size: 13px; color: var(--wine-soft); }

/* 星级 */
.stars { display: inline-flex; gap: 2px; color: var(--pink-400); }
.stars .icon { width: 15px; height: 15px; }
.stars--lg .icon { width: 26px; height: 26px; cursor: pointer; }
.star-btn { border: 0; background: transparent; padding: 2px; color: rgba(62, 37, 48, 0.2); cursor: pointer; line-height: 0; }
.star-btn.is-on { color: var(--pink-500); }

/* ---------- 空状态 ---------- */
.empty {
  padding: 70px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
}
.empty__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--pink-500);
  background: var(--pink-100);
}
.empty h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--rose); font-size: 13px; margin-bottom: 20px; }

/* ---------- 模态框 ---------- */
.modal-root { position: fixed; inset: 0; z-index: 300; display: none; }
.modal-root.is-open { display: block; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(45, 20, 30, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade 0.22s ease;
}
.modal-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 247, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: modal-in 0.28s var(--ease);
}
.modal-card--wide { width: min(880px, 100%); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px 0;
}
.modal-head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.modal-body { padding: 18px 26px 24px; }
.modal-foot { padding: 0 26px 24px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* 底部动作面板 */
.sheet-root { position: fixed; inset: 0; z-index: 310; display: none; }
.sheet-root.is-open { display: block; }
.sheet-mask { position: absolute; inset: 0; background: rgba(45, 20, 30, 0.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade 0.2s ease; }
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: rgba(255, 250, 247, 0.97);
  box-shadow: 0 -30px 60px -30px rgba(62, 37, 48, 0.5);
  animation: sheet-in 0.3s var(--ease);
}
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 8px auto 16px; }
.sheet-title { font-family: var(--font-display); font-size: 20px; text-align: center; margin-bottom: 16px; }
.sheet-options { display: grid; gap: 12px; }
.sheet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.sheet-option:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sheet-option__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ffa6c0, var(--pink-500));
  flex: none;
}
.sheet-option:nth-child(2) .sheet-option__icon { background: linear-gradient(145deg, #ffd39b, #d9832e); }
.sheet-option strong { display: block; font-size: 15px; }
.sheet-option small { color: var(--rose); font-size: 12px; }
.sheet-cancel {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(62, 37, 48, 0.06);
  cursor: pointer;
  color: var(--rose);
}

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
}
.toast {
  max-width: 420px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(62, 37, 48, 0.88);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.25s var(--ease);
  text-align: center;
}
.toast--success { background: rgba(46, 122, 93, 0.92); }
.toast--error { background: rgba(170, 52, 68, 0.92); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  background: rgba(24, 16, 20, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.lightbox.is-open { display: flex; flex-direction: column; }
.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
  position: relative;
  min-height: 0;
}
.lightbox__photo {
  width: min(920px, 100%);
  height: 100%;
  max-height: 76vh;
  border-radius: 24px;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__bar { padding: 14px 24px 26px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.lightbox__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.lightbox__dot.is-active { background: #fff; width: 22px; border-radius: 5px; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

/* ---------- 动画 ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.reveal { animation: rise 0.6s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 响应式基础 ---------- */
@media (max-width: 1023px) {
  .header-inner { gap: 18px; }
  .site-nav a { padding: 9px 10px; font-size: 13px; }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  body { font-size: 14px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .container, .container--narrow { width: calc(100% - 32px); }
  .site-header { height: var(--header-h); }
  .header-inner { width: calc(100% - 28px); gap: 10px; }
  .site-nav { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px 12px 12px 4px; font-size: 13px; }
  .brand-text strong { font-size: 16px; }
  .brand-text em { font-size: 8px; letter-spacing: 0.15em; }
  .header-actions { margin-left: auto; gap: 7px; }
  .header-user-name { display: none; }
  .header-user-btn .avatar { width: 34px; height: 34px; }
  .header-actions .btn { height: 34px; padding: 0 14px; font-size: 12px; }
  .tabbar { display: grid; }
  .site-footer { display: none; }
  .section { padding-top: 38px; }
  .section-head { margin-bottom: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal-wrap { align-items: flex-end; padding: 0; }
  .modal-card { max-height: 88vh; border-radius: 26px 26px 0 0; width: 100%; animation: sheet-in 0.3s var(--ease); }
  .modal-head { padding: 20px 20px 0; }
  .modal-body { padding: 16px 20px 22px; }
  .modal-foot { padding: 0 20px calc(22px + env(safe-area-inset-bottom)); }
  .toast-root { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .lightbox__stage { padding: 60px 14px 20px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 420px) {
  .brand-text em { display: none; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
}
