/* ==========================================================================
   安言安语 —— 样式
   原则：移动端优先，暖色调，圆润，像贴满便签的照片墙
   ========================================================================== */

:root {
  --cream:      #FFF7EA;
  --cream-deep: #FFEFD6;
  --ink:        #4A3B32;
  --ink-soft:   #93816F;
  --ink-faint:  #B9A897;
  --line:       rgba(74, 59, 50, .12);

  --peach: #FF9F68;
  --sky:   #7CC7F5;
  --mint:  #6FD4AC;
  --sun:   #FFD166;
  --pink:  #FFA3C0;

  --paper: #FFFFFF;
  --radius:    22px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --shadow-xs: 0 1px 3px rgba(122, 92, 66, .10);
  --shadow-sm: 0 3px 10px -2px rgba(122, 92, 66, .14);
  --shadow:    0 14px 30px -12px rgba(122, 92, 66, .34);
  --shadow-lg: 0 26px 60px -20px rgba(90, 66, 44, .48);

  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ---------------------------------------------------------------- 基础 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 10% 6%,   rgba(255, 209, 102, .40), transparent 40%),
    radial-gradient(circle at 92% 3%,   rgba(124, 199, 245, .34), transparent 38%),
    radial-gradient(circle at 84% 94%,  rgba(255, 163, 192, .30), transparent 42%),
    radial-gradient(circle at 6% 90%,   rgba(111, 212, 172, .30), transparent 40%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

button { font: inherit; color: inherit; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- 通用控件 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease;
  box-shadow: var(--shadow-xs);
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary {
  background: linear-gradient(160deg, var(--sun), var(--peach));
  color: #4A3218;
  box-shadow: 0 5px 14px -4px rgba(255, 159, 104, .85);
}
.btn--primary:hover { box-shadow: 0 8px 20px -4px rgba(255, 159, 104, .95); }

.btn--ghost {
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { background: #fff; }

.btn--danger {
  background: #FFEDEE;
  color: #D1465C;
  border: 1.5px solid rgba(209, 70, 92, .22);
}

.btn--block { width: 100%; }

/* ---- 禁止长按弹出系统菜单 ----
   移动端长按按钮时，浏览器会把它当成"长按选中文字"，
   弹出「复制 / 全选 / 搜一搜」菜单，并触发 pointercancel
   中断正在进行的手势（录音就是这么被打断的）。
   按钮类元素统一禁止文本选择。 */
.btn,
.icon-btn,
.tag,
.chip,
.op,
.fab,
.thumb__x,
.search__clear,
.player__btn,
.card__date,
.clip__label {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .12s ease, background-color .18s ease;
}
.icon-btn:hover { background: #fff; transform: translateY(-1px); }
.icon-btn:active { transform: scale(.92); }

.input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(124, 199, 245, .20);
}
.input--area {
  resize: vertical;
  min-height: 130px;
  line-height: 1.85;
  font-size: 16.5px;
}

.field { display: block; margin-bottom: 18px; }

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.field__label em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* 行内文字按钮：用于「改用点击模式」这类次要操作，
   看起来像链接，但要保证点击区域够大（移动端手指粗） */
.link-btn {
  margin-left: 2px;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--sky);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.link-btn:hover { color: var(--pink); }
.link-btn:active { opacity: .6; }

.row2 { display: grid; gap: 0; }
@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; gap: 0 14px; }
}

.row-btns { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------------------------------------------------------------- 登录 */

.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login__card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 38px 28px 30px;
  text-align: center;
  background: rgba(255, 255, 255, .94);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  animation: pop .5s cubic-bezier(.2, 1.5, .5, 1) both;
}

.login__badge {
  font-size: 48px;
  line-height: 1;
  animation: float 3.2s ease-in-out infinite;
}

.login__title {
  margin: 12px 0 6px;
  font-size: 30px;
  letter-spacing: .14em;
  background: linear-gradient(130deg, #FF9F68, #FFB347 40%, #7CC7F5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login__sub {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.login__form { display: grid; gap: 12px; }

.login__form .input { text-align: center; letter-spacing: .2em; font-size: 17px; }

.login__error {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: #D1465C;
}

.login__clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.login__clouds span {
  position: absolute;
  font-size: 34px;
  opacity: .55;
  animation: float 5s ease-in-out infinite;
}
.login__clouds span:nth-child(1) { top: 14%; left: 10%; }
.login__clouds span:nth-child(2) { top: 22%; right: 12%; animation-delay: .8s; }
.login__clouds span:nth-child(3) { bottom: 14%; right: 18%; animation-delay: 1.6s; }

/* ---------------------------------------------------------------- 顶栏 */

.app { min-height: 100dvh; padding-bottom: 20px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) 16px 12px;
  background: rgba(255, 247, 234, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.topbar__logo { font-size: 28px; animation: float 3.6s ease-in-out infinite; }

.topbar__text { min-width: 0; }

.topbar__title {
  margin: 0;
  font-size: 19px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.topbar__sub {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- 工具栏 */

.toolbar {
  position: sticky;
  top: calc(67px + var(--safe-top));
  z-index: 20;
  padding: 12px 16px 10px;
  background: rgba(255, 247, 234, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  opacity: .65;
  pointer-events: none;
}
.search__input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .95);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search__input::placeholder { color: var(--ink-faint); }
.search__input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(124, 199, 245, .18);
}
.search__input::-webkit-search-cancel-button { display: none; }

.search__clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
}

.tagbar {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tagbar::-webkit-scrollbar { display: none; }
.tagbar:empty { display: none; }

.tagbar--pick { margin-top: 10px; flex-wrap: wrap; overflow: visible; }

.tag {
  flex: 0 0 auto;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .92);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
}
.tag:hover { border-color: var(--sky); color: var(--ink); }
.tag.is-active {
  color: #4A3218;
  background: linear-gradient(150deg, var(--sun), var(--peach));
  border-color: transparent;
  box-shadow: 0 3px 10px -3px rgba(255, 159, 104, .9);
}
.tag__count { opacity: .6; font-size: 11.5px; margin-left: 3px; }

/* ---------------------------------------------------------------- 卡片墙 */

.feed {
  columns: 1;
  column-gap: 16px;
  padding: 6px 16px 130px;
}
@media (min-width: 720px)  { .feed { columns: 2; } }
@media (min-width: 1140px) { .feed { columns: 3; } }

.card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  padding: 22px 18px 16px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .45s cubic-bezier(.2, .9, .35, 1) both;
}
.card:hover { transform: translateY(-3px) rotate(-.25deg); box-shadow: var(--shadow); }

/* 便签胶带 */
.card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 17px;
  transform: translateX(-50%) rotate(-2.5deg);
  background: rgba(255, 209, 102, .5);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(122, 92, 66, .1);
}
.card:nth-child(4n+2)::before { background: rgba(124, 199, 245, .48); transform: translateX(-50%) rotate(2deg); }
.card:nth-child(4n+3)::before { background: rgba(255, 163, 192, .45); transform: translateX(-50%) rotate(-1deg); }
.card:nth-child(4n+4)::before { background: rgba(111, 212, 172, .45); transform: translateX(-50%) rotate(3deg); }

.card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.card__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #5C6B2F;
  background: rgba(255, 209, 102, .28);
  border-radius: 999px;
}

.card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.card__content {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
  color: #3F322A;
}

.card__media { margin-top: 13px; display: grid; gap: 9px; }

.shots-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.shots-grid--1 { grid-template-columns: 1fr; }

.shot {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-xs);
}
.shots-grid--1 .shot { aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.04); }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}

.card__tags { display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: #6B5A4C;
  background: var(--cream-deep);
  border-radius: 999px;
}

.card__ops { display: flex; gap: 4px; margin-left: auto; }

.op {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  opacity: .55;
  transition: all .16s ease;
}
.op:hover { opacity: 1; background: var(--cream-deep); }
.op--del:hover { background: #FFEDEE; }

/* ---------------------------------------------------------------- 语音播放 */

.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 9px;
  background: linear-gradient(120deg, rgba(124, 199, 245, .16), rgba(111, 212, 172, .16));
  border-radius: 999px;
}

.player__btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--sky), var(--mint));
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 9px -3px rgba(96, 170, 220, .95);
  transition: transform .12s ease;
}
.player__btn:active { transform: scale(.9); }

.player__wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 26px;
  min-width: 0;
}
.player__bar {
  flex: 1 1 auto;
  min-width: 2px;
  max-width: 4px;
  background: rgba(96, 170, 220, .38);
  border-radius: 999px;
  transition: background-color .15s linear, opacity .15s linear;
}
.player__bar.is-on { background: var(--sky); }

.player__time {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  min-width: 34px;
  text-align: right;
}

/* ---------------------------------------------------------------- 空状态 */

.empty {
  padding: 44px 24px 100px;
  text-align: center;
}
.empty__art { font-size: 62px; animation: float 3.4s ease-in-out infinite; }
.empty__title { margin: 14px 0 4px; font-size: 17px; font-weight: 700; }
.empty__sub { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- 悬浮按钮 */

.fab {
  position: fixed;
  right: 20px;
  bottom: calc(22px + var(--safe-bottom));
  z-index: 40;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 300;
  color: #4A3218;
  background: linear-gradient(150deg, var(--sun), var(--peach));
  box-shadow: 0 12px 26px -8px rgba(255, 140, 80, .95);
  cursor: pointer;
  transition: transform .16s cubic-bezier(.2, 1.5, .5, 1), box-shadow .2s ease;
  line-height: 1;
  padding-bottom: 4px;
}
.fab:hover { transform: scale(1.07) rotate(90deg); }
.fab:active { transform: scale(.94); }

/* ---------------------------------------------------------------- 底部弹层 */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 59, 50, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade .2s ease both;
}

.sheet__panel {
  position: relative;
  width: min(660px, 100%);
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg);
  animation: slideUp .32s cubic-bezier(.2, .9, .3, 1) both;
  overflow: hidden;
}

@media (min-width: 700px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { border-radius: 26px; max-height: 90dvh; }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.sheet__title { margin: 0; font-size: 17px; letter-spacing: .06em; }

.sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}

.sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px calc(13px + var(--safe-bottom));
  background: rgba(255, 247, 234, .95);
  border-top: 1px solid var(--line);
}
.sheet__foot-right { display: flex; gap: 9px; margin-left: auto; }

/* ---------------------------------------------------------------- 缩略图 */

.shots, .clips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.shots:not(:empty), .clips:not(:empty) { margin-bottom: 11px; }

.thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--shadow-xs);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb__x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(74, 59, 50, .68);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
}
.thumb__x:hover { background: #D1465C; }

.clip {
  width: auto;
  max-width: 100%;
  min-width: 196px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 34px 8px 10px;
  background: linear-gradient(120deg, rgba(124, 199, 245, .2), rgba(111, 212, 172, .2));
  border-radius: var(--radius-sm);
  position: relative;
}
.clip audio { height: 32px; max-width: 190px; flex: 1 1 auto; min-width: 120px; }

.clip__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 录音按钮 */

.btn--record {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, .95);
  border: 1.5px dashed var(--line);
  color: var(--ink);
  font-weight: 700;

  /* 长按录音的四个关键属性：
     touch-action            长按时不触发页面滚动 / 双击缩放
     -webkit-touch-callout   iOS 上不弹长按菜单
     user-select             不把长按理解成"选中这段文字"
     tap-highlight           去掉安卓点按时的灰色高亮块 */
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* 按钮内部的文字和小圆点不参与命中测试。
   这样 pointerdown 的目标永远是按钮本身——
   否则长按在文字上时，浏览器会认为你在选文字，
   而不是在按一个按钮。 */
.btn--record > * { pointer-events: none; }

.btn--record:hover { border-color: var(--pink); }
.btn--record.is-recording {
  background: linear-gradient(150deg, #FFB1B1, #FF8FA3);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(255, 120, 145, .95);
  animation: pulse 1.3s ease-in-out infinite;
}
.btn--record:disabled { opacity: .45; }

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF8FA3;
  flex: 0 0 9px;
}
.btn--record.is-recording .rec-dot { background: #fff; }

.upload-status {
  min-height: 18px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--sky);
  font-weight: 600;
}
.upload-status.is-error { color: #D1465C; }

/* ---------------------------------------------------------------- 大图查看 */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 26, 20, .88);
  animation: fade .2s ease both;
}
.lightbox__img {
  max-width: 100%;
  max-height: 88dvh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: pop .28s cubic-bezier(.2, 1.4, .5, 1) both;
}
.lightbox__close {
  position: absolute;
  top: calc(16px + var(--safe-top));
  right: 16px;
  background: rgba(255, 255, 255, .9);
}

/* ---------------------------------------------------------------- Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + var(--safe-bottom));
  z-index: 90;
  padding: 11px 20px;
  max-width: min(440px, calc(100vw - 40px));
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #4A3218;
  background: linear-gradient(150deg, var(--sun), var(--peach));
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: linear-gradient(150deg, #FFB1B1, #FF7A93); color: #fff; }

/* ---------------------------------------------------------------- 动画 */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(.985); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 加载骨架 */
.skeleton {
  height: 150px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fff 30%, var(--cream-deep) 50%, #fff 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
  break-inside: avoid;
}
@keyframes shimmer {
  from { background-position: 140% 0; }
  to   { background-position: -40% 0; }
}
