﻿/* =========================================================
   张小猪与我的小小宇宙 —— 纯离线单页样式
   想改配色：只动下面的 :root 变量
   ========================================================= */

:root {
  --bg: #07070f;
  --ink: #f6f2ff;
  --dim: #a49dc2;
  --rose: #ff6f9c;
  --rose-soft: #ffb6ca;
  --gold: #ffd9a0;
  --violet: #b79bff;
  --mint: #8fe3d0;
  --glass: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --panel: #0b0916;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system,
    "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  padding-bottom: 84px;
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1030 0%, transparent 60%),
    radial-gradient(90% 60% at 85% 110%, #251033 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 111, 156, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img { max-width: 100%; }

/* ── 星空 ─────────────────────────────────────────────── */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(4, 3, 12, 0.55) 100%);
}

main { position: relative; z-index: 2; }

/* ── 00 开场 ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(72px, 12vh, 120px) 22px clamp(96px, 14vh, 130px);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(880px, 118vw);
  height: min(880px, 118vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 156, 0.16) 0%, rgba(183, 155, 255, 0.1) 38%, transparent 68%);
  filter: blur(6px);
  z-index: -1;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

.hero__kicker {
  margin: 0 0 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rose-soft);
}

.hero__kicker span { color: var(--ink); letter-spacing: 0.1em; }

.hero__title {
  margin: 0;
  font-size: clamp(2.9rem, 11.5vw, 7rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  font-weight: 600;
  background: linear-gradient(170deg, #ffffff 8%, #ffd0dd 48%, #b79bff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 48px rgba(255, 111, 156, 0.28));
}

.hero__line {
  width: 100%;
  max-width: 34em;
  min-height: 1.7em;
  margin: 1.4rem auto 0;
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  letter-spacing: 0.08em;
  color: var(--dim);
}

.hero__line::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.14em;
  background: var(--rose);
  animation: blink 1s steps(1) infinite;
}

.hero__line.is-done::after { display: none; }

@keyframes blink { 50% { opacity: 0; } }

/* 只显示天数 */
.days {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  font-variant-numeric: tabular-nums;
}

.days b {
  font-size: clamp(4.2rem, 17vw, 8.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 10%, var(--gold) 55%, var(--rose-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(255, 217, 160, 0.2));
}

.days span {
  font-size: clamp(0.9rem, 2.6vw, 1.1rem);
  letter-spacing: 0.3em;
  color: rgba(255, 217, 160, 0.75);
  padding-left: 0.1em;
}

.hero__since {
  margin: 0.9rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: rgba(164, 157, 194, 0.85);
}

.hero__dist {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 1.1rem 0 0;
  padding: 6px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(240, 232, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero__dist i {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-soft), transparent);
}

.scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(80px, 10vh, 104px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: rgba(164, 157, 194, 0.6);
}

.scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--rose), transparent);
  animation: drip 2.4s ease-in-out infinite;
}

@keyframes drip {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ── 通用区块 ─────────────────────────────────────────── */
.section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(58px, 10vw, 118px) clamp(20px, 5vw, 44px);
}

.head { max-width: 40rem; }

.head__tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-soft);
}

.head__tag::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--rose), transparent);
}

.head__title {
  margin: 0.9rem 0 0;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.head__desc {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* ── 同步 / 登录 ─────────────────────────────────────── */
.sync-pill {
  position: fixed;
  right: 14px;
  bottom: 92px;
  z-index: 46;
  padding: 8px 14px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(11, 9, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.sync-pill:hover { border-color: rgba(255, 182, 202, 0.5); background: rgba(30, 18, 40, 0.9); }
.sync-pill--off { color: var(--dim); }

.sync-mask {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 3, 11, 0.66);
  backdrop-filter: blur(8px);
}

.sync-card {
  width: min(100%, 360px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #12101f, #0a0814);
  box-shadow: 0 30px 80px -40px #000;
}

.sync-card h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: 0.04em; }
.sync-card p { margin: 0 0 12px; font-size: 0.76rem; line-height: 1.7; color: var(--dim); }

.sync-card input {
  display: block;
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
}

.sync-card input:focus { border-color: rgba(255, 182, 202, 0.55); }

.sync-msg { min-height: 1.1em; color: var(--rose-soft) !important; font-size: 0.72rem !important; }

.sync-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

.sync-acts button {
  padding: 9px 18px;
  font-size: 0.78rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.sync-ok { color: #1a0c14 !important; background: linear-gradient(135deg, #ffd0dd, #ff9db8) !important; border: 0 !important; }

/* 照片 / 旅行的编辑按钮 */
.card__edit {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  line-height: 1;
  color: #fff;
  background: rgba(9, 7, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
}

.card__edit:hover { opacity: 1; background: rgba(255, 111, 156, 0.55); }

.trip__tools { display: flex; gap: 8px; margin-top: 12px; }

.trip__btn {
  padding: 5px 12px;
  font-size: 0.7rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.trip__btn:hover { background: rgba(255, 255, 255, 0.12); }
.trip__btn--danger { color: #ffb3c2; border-color: rgba(255, 111, 156, 0.35); }

.trip--add {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-style: dashed;
  color: var(--dim);
  font-size: 0.82rem;
  cursor: pointer;
  background: transparent;
}

.trip--add:hover { color: var(--ink); border-color: rgba(255, 182, 202, 0.4); }
.trip__empty { margin: 0 0 6px; font-size: 0.8rem; color: var(--dim); grid-column: 1 / -1; }

/* 旅行的照片墙 */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.shot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shot__x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #fff;
  background: rgba(9, 7, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
}

.shot__x:hover { background: rgba(255, 77, 122, 0.9); }
.shot__empty { margin: 8px 0 0; font-size: 0.74rem; color: var(--dim); }
.shot-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.shot-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.shot-pick__item {
  padding: 0;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.shot-pick__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-pick__item.is-on { border-color: var(--rose); }
.shot-pick__ok { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* 日子的编辑按钮 */
.date__tools { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; }

.date__btn {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}

.date__btn:hover { opacity: 1; background: rgba(255, 111, 156, 0.28); }
.date__btn--danger:hover { background: rgba(255, 77, 122, 0.8); }

.date--add {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 0;
  border-style: dashed;
  color: var(--dim);
  font-size: 0.82rem;
  font-family: inherit;
  text-align: center;
  background: transparent;
  cursor: pointer;
}

.date--add:hover { color: var(--ink); border-color: rgba(255, 182, 202, 0.42); }

/* ── 01 房间 ──────────────────────────────────────────── */
.section--room { padding-top: clamp(36px, 7vw, 76px); }

.room { display: grid; gap: 16px; margin-top: clamp(1.5rem, 3.4vw, 2.2rem); }
.room__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr)); }

.room__card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.room__card--now {
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(255, 111, 156, 0.16), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.room__date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.room__date b { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 600; letter-spacing: 0.02em; }
.room__date span { font-size: 0.9rem; letter-spacing: 0.1em; color: var(--rose-soft); }
.room__date em { font-style: normal; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--dim); }

.room__quote {
  margin: 1rem 0 0;
  max-width: 32em;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.room__from { margin: 0.5rem 0 0; font-size: 0.72rem; letter-spacing: 0.16em; color: rgba(164, 157, 194, 0.85); }

.room__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.room__title em { font-style: normal; font-size: 0.66rem; color: var(--rose-soft); }

.room__wx { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; }

.room__wx li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.room__wx li:last-child { border-bottom: 0; padding-bottom: 0; }
.room__wx li span { color: rgba(240, 232, 255, 0.82); }
.room__wx li b { margin-left: auto; font-weight: 500; font-size: 1rem; font-variant-numeric: tabular-nums; }
.room__wx li em { font-style: normal; font-size: 0.68rem; color: var(--dim); }

.room__courses { display: grid; gap: 11px; margin-top: 14px; }

.room__course { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.74rem; }
.room__course > span { flex: 0 0 64px; color: var(--rose-soft); font-size: 0.72rem; }

.room__course b {
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.room__free { font-style: normal; font-size: 0.74rem; color: rgba(143, 227, 208, 0.85); }

.room__plan { margin: 14px 0 0; font-size: 1.12rem; font-weight: 600; letter-spacing: 0.03em; }
.room__plan-note { margin: 6px 0 0; font-size: 0.78rem; line-height: 1.7; color: var(--dim); }
.room__plan-date { margin: 10px 0 0; font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255, 182, 202, 0.85); }

.room__card--courses, .room__card--plan { cursor: pointer; }
.room__card--courses:hover, .room__card--plan:hover {
  border-color: rgba(255, 182, 202, 0.32);
  transform: translateY(-3px);
}

/* 相册工具条 */
.wall__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
}

.wall__hint { margin: 0; font-size: 0.72rem; line-height: 1.7; color: rgba(164, 157, 194, 0.8); }
.wall__acts { display: flex; gap: 8px; flex-wrap: wrap; }

.card__del {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(9, 7, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}

.card__del:hover { opacity: 1; background: rgba(255, 77, 122, 0.85); }

/* ── 02 相册 ──────────────────────────────────────────── */
.wall {
  columns: 3 250px;
  column-gap: 18px;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

.card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  break-inside: avoid;
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}

.card__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease);
}

.card__fig {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(5, 4, 12, 0.9));
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: #efe9ff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.card__fig em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--rose-soft);
  margin-top: 3px;
}

.card:hover, .card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 182, 202, 0.35);
  box-shadow: 0 26px 60px -28px rgba(255, 111, 156, 0.55);
  outline: none;
}

.card:hover .card__img, .card:focus-visible .card__img { transform: scale(1.045); }
.card:hover .card__fig, .card:focus-visible .card__fig { opacity: 1; transform: none; }

@media (hover: none) {
  .card__fig { opacity: 1; transform: none; }
}

.card--missing {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 111, 156, 0.22), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(183, 155, 255, 0.22), transparent 60%),
    rgba(255, 255, 255, 0.03);
  cursor: default;
}

.card--missing::before { content: "✦"; font-size: 1.4rem; color: rgba(255, 255, 255, 0.5); }
.card--missing .card__fig { opacity: 1; transform: none; }

/* ── 03 旅行 ──────────────────────────────────────────── */
.trips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 18px;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

.trip {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  text-align: left;
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.trip:hover, .trip:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 182, 202, 0.3);
  box-shadow: 0 30px 70px -40px rgba(255, 111, 156, 0.8);
  outline: none;
}

.trip__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.trip__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.trip:hover .trip__cover img { transform: scale(1.05); }

.trip__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 14, 0.85));
}

.trip__days {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: rgba(9, 7, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.trip__body { padding: 0 16px 18px; margin-top: -26px; position: relative; z-index: 2; }

.trip__place {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.trip__meta {
  margin: 2px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(255, 182, 202, 0.85);
}

.trip__note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(240, 232, 255, 0.72);
}

.trip__thumbs { display: flex; gap: 6px; margin-top: 12px; }

.trip__thumbs img,
.trip__thumbs span {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trip__thumbs span {
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
}

/* ── 04 课表 ──────────────────────────────────────────── */
.tt {
  margin-top: clamp(1.7rem, 4vw, 2.5rem);
  padding: clamp(14px, 2.6vw, 24px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tt__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

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

.tt__arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.tt__arrow:hover { background: rgba(255, 111, 156, 0.2); border-color: rgba(255, 111, 156, 0.45); }

.tt__label { min-width: 108px; text-align: center; }
.tt__label b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0.05em; }
.tt__label span { display: block; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--dim); }

.tt__now {
  padding: 5px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--rose-soft);
  background: rgba(255, 111, 156, 0.12);
  border: 1px solid rgba(255, 111, 156, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.tt__tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.tt__tab {
  padding: 6px 14px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.tt__tab.is-on { color: var(--ink); background: rgba(255, 111, 156, 0.22); }

/* 两个人的周次（你第 7 周的时候她可能第 9 周） */
.tt__weeks { display: flex; flex-wrap: wrap; gap: 6px; }

.tt__wk {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.tt__wk b { font-weight: 500; color: rgba(240, 232, 255, 0.8); }
.tt__wk.is-on { color: var(--ink); background: rgba(255, 111, 156, 0.16); border-color: rgba(255, 111, 156, 0.42); }
.tt__wk.is-on b { color: #fff; }

.tt__today {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.tt__today-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.tt__today-title b { color: var(--ink); font-weight: 500; letter-spacing: 0.06em; }

.tt__row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8rem; }

.tt__who {
  flex: 0 0 auto;
  min-width: 72px;
  color: var(--rose-soft);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.tt__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.tt__chip {
  padding: 3px 9px;
  font-size: 0.72rem;
  color: rgba(240, 232, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.tt__chip em { font-style: normal; color: var(--dim); font-size: 0.64rem; margin-left: 5px; }
.tt__free { font-size: 0.76rem; color: rgba(143, 227, 208, 0.9); letter-spacing: 0.03em; }

.tt__scroll { margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tt__head,
.tt__body {
  display: grid;
  grid-template-columns: 40px repeat(7, minmax(0, 1fr));
  gap: 5px;
  min-width: 560px;
}

.tt__head { padding-bottom: 6px; }

.tt__dayhead {
  padding: 6px 2px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  border-radius: 10px;
}

.tt__dayhead b { display: block; font-size: 0.72rem; font-weight: 500; color: rgba(240, 232, 255, 0.85); }
.tt__dayhead span { display: block; font-size: 0.62rem; color: rgba(164, 157, 194, 0.7); margin-top: 1px; }
.tt__dayhead.is-today { background: rgba(255, 111, 156, 0.14); color: var(--rose-soft); }
.tt__dayhead.is-today b { color: #fff; }

.tt__body { grid-auto-rows: 58px; }

.tt__cell {
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}

.tt__cell.is-today { background: rgba(255, 111, 156, 0.06); }

.tt__time {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.6rem;
  color: rgba(164, 157, 194, 0.75);
  background: var(--panel);
  border-radius: 9px;
}

.tt__time b { font-size: 0.68rem; font-weight: 500; color: rgba(240, 232, 255, 0.6); }

.tt__block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 7px;
  text-align: left;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tt__block:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px #000; }

.tt__block b {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt__block em {
  font-style: normal;
  font-size: 0.6rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 同一天时间重叠时并排的窄卡片：少放一行字 */
.tt__block--narrow { padding: 5px 5px; }
.tt__block--narrow b { font-size: 0.62rem; -webkit-line-clamp: 4; }
.tt__block--narrow em { font-size: 0.55rem; }
.tt__block--narrow .tt__teacher { display: none; }

.tt__block.is-now {
  box-shadow: 0 0 0 1.5px var(--rose), 0 0 26px -6px rgba(255, 111, 156, 0.9);
}

.tt__block.is-now::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.tt__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.tt__hint {
  margin: 0 0 12px;
  font-size: 0.74rem;
  line-height: 1.7;
  color: rgba(164, 157, 194, 0.85);
}

.tt__hint b { color: var(--rose-soft); font-weight: 500; }

.tt__acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 通用按钮 ─────────────────────────────────────────── */
.btn {
  padding: 8px 16px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover { transform: translateY(-1px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 182, 202, 0.35); }

.btn--primary {
  color: #1a0c14;
  background: linear-gradient(135deg, #ffd0dd, #ff9db8);
  border-color: transparent;
  font-weight: 500;
}

.btn--danger { color: #ffb3c2; border-color: rgba(255, 111, 156, 0.4); background: rgba(255, 111, 156, 0.1); }
.btn--danger:hover { background: rgba(255, 111, 156, 0.2); }

/* ── 05 日子 ──────────────────────────────────────────── */
.dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

.date {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.date::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -150px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 156, 0.13), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.date:hover { transform: translateY(-4px); border-color: rgba(255, 182, 202, 0.3); }

.date__kind {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(240, 232, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.date__emoji { margin-top: 12px; font-size: 1.3rem; line-height: 1; }

.date__title { margin: 0.65rem 0 0; font-size: 1.02rem; font-weight: 600; letter-spacing: 0.03em; }

.date__sub { margin: 0.28rem 0 0; font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(164, 157, 194, 0.85); }

.date__num {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}

.date__num b {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--rose-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.date__num span { font-size: 0.76rem; letter-spacing: 0.1em; color: var(--dim); }

.date__note { margin: 0.55rem 0 0; font-size: 0.74rem; line-height: 1.7; color: rgba(164, 157, 194, 0.72); }

.date--next {
  border-color: rgba(255, 111, 156, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 111, 156, 0.2), 0 30px 70px -40px rgba(255, 111, 156, 0.9);
}

.date--next .date__kind { color: #1a0c14; background: linear-gradient(135deg, #ffd0dd, #ff9db8); border-color: transparent; }

.date--today { border-color: rgba(255, 217, 160, 0.6); }
.date--today .date__num b { background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; }

/* ── 06 信箱 ──────────────────────────────────────────── */
.notes {
  display: grid;
  gap: 16px;
  width: min(100%, 760px);
  margin: clamp(1.6rem, 3.6vw, 2.4rem) auto 0;
}

.notes__compose {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.notes__tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }

.notes__who {
  padding: 6px 13px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.notes__who.is-on { color: var(--ink); background: rgba(255, 111, 156, 0.2); border-color: rgba(255, 111, 156, 0.42); }

.notes textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  max-height: 220px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.notes textarea:focus { border-color: rgba(255, 182, 202, 0.5); background: rgba(255, 255, 255, 0.06); }
.notes textarea::placeholder { color: rgba(164, 157, 194, 0.55); }

.notes__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.notes__hint { font-size: 0.68rem; letter-spacing: 0.04em; color: rgba(164, 157, 194, 0.72); }

.notes__list { display: grid; gap: 16px; }

.notes__day { display: grid; gap: 9px; }

.notes__date {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(164, 157, 194, 0.8);
  text-align: center;
  padding: 2px 0 4px;
}

.note {
  justify-self: start;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.note--me {
  justify-self: end;
  background: linear-gradient(150deg, rgba(255, 111, 156, 0.32), rgba(255, 111, 156, 0.2));
  border: 1px solid rgba(255, 150, 180, 0.38);
  border-bottom-right-radius: 6px;
}

.note--her {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 6px;
}

.note p { margin: 0; white-space: pre-wrap; word-break: break-word; }

.note span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.52);
}

.note__del {
  margin-left: auto;
  opacity: 0.4;
  transition: opacity 0.2s, background 0.2s;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.42);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.note__del:hover { opacity: 1; color: #fff; background: rgba(255, 255, 255, 0.14); }

.notes__empty { padding: 22px 0; text-align: center; font-size: 0.8rem; color: var(--dim); }

.notes__tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 06 悄悄话 ──────────────────────────────────────────── */
.section--letter { max-width: 820px; }

.letter {
  text-align: center;
  padding: clamp(28px, 6vw, 50px) clamp(20px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 111, 156, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.025);
}

.letter .head__tag { justify-content: center; }
.letter .head__tag::before { display: none; }

.letter__quote {
  margin: 1.3rem 0 0;
  font-size: clamp(1.08rem, 3.2vw, 1.55rem);
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: #f1eaff;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.letter__quote.is-swap { opacity: 0; transform: translateY(6px); }

.letter__from {
  margin: 1rem 0 0;
  min-height: 1.4em;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: rgba(164, 157, 194, 0.85);
}

.letter__btn {
  margin-top: 1.8rem;
  padding: 11px 26px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 182, 202, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s, transform 0.35s, box-shadow 0.35s;
}

.letter__btn:hover { background: rgba(255, 111, 156, 0.18); transform: translateY(-2px); box-shadow: 0 16px 40px -22px rgba(255, 111, 156, 0.9); }

/* ── 页脚 ─────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 20px 24px max(48px, env(safe-area-inset-bottom));
  font-size: 0.78rem;
  line-height: 2.1;
  color: var(--dim);
}

.foot p { margin: 0; }
.foot .heart { color: var(--rose); }
.foot__dim { font-size: 0.7rem; letter-spacing: 0.14em; color: rgba(164, 157, 194, 0.5); margin-top: 4px !important; }

.foot__top {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255, 182, 202, 0.8);
  border-bottom: 1px solid rgba(255, 182, 202, 0.25);
  padding-bottom: 3px;
}

/* ── 底部导航 ─────────────────────────────────────────── */
.dock {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(11, 9, 22, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 50px -24px #000;
}

.dock a {
  display: flex;
  flex: 0 0 auto;
  white-space: nowrap;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 10px;
  border-radius: 16px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(164, 157, 194, 0.8);
  transition: color 0.25s, background 0.25s;
}

.dock svg { width: 17px; height: 17px; }
.dock a:hover { color: var(--ink); }

.dock a.is-active {
  color: #fff;
  background: rgba(255, 111, 156, 0.18);
}

/* ── 灯箱 ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 3, 11, 0.93);
  backdrop-filter: blur(14px);
  animation: fade 0.28s var(--ease);
}

@keyframes fade { from { opacity: 0; } }

.lightbox__fig { margin: 0; max-width: min(92vw, 1080px); text-align: center; }

.lightbox__fig img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 40px 100px -40px #000;
}

.lightbox__fig figcaption { margin-top: 16px; font-size: 0.82rem; letter-spacing: 0.08em; color: rgba(240, 232, 255, 0.85); }
.lightbox__fig figcaption em { display: block; font-style: normal; font-size: 0.68rem; letter-spacing: 0.2em; color: var(--rose-soft); margin-top: 5px; }

.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  backdrop-filter: blur(6px);
}

.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 111, 156, 0.25); transform: scale(1.06); }

.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 14px; top: 50%; margin-top: -23px; }
.lightbox__nav--next { right: 14px; top: 50%; margin-top: -23px; }

/* ── 课表编辑面板 ─────────────────────────────────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0;
  background: rgba(4, 3, 11, 0.62);
  backdrop-filter: blur(8px);
  animation: fade 0.22s var(--ease);
}

.sheet__panel {
  width: min(100%, 560px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #12101f, #0a0814);
  box-shadow: 0 -30px 80px -40px #000;
  animation: sheetUp 0.35s var(--ease);
}

@keyframes sheetUp { from { transform: translateY(24px); opacity: 0.6; } }

.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; }

.sheet__x {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.sheet__owner { margin: 6px 0 16px; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--rose-soft); }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 6px; }

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.field input:focus, .field select:focus { border-color: rgba(255, 182, 202, 0.55); background: rgba(255, 255, 255, 0.08); }
.field input::placeholder { color: rgba(164, 157, 194, 0.5); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select option { background: #14111f; color: var(--ink); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-pair { display: flex; align-items: center; gap: 6px; }
.field-pair em { font-style: normal; font-size: 0.7rem; color: var(--dim); }

.sheet__tip { margin: 2px 0 16px; font-size: 0.7rem; line-height: 1.7; color: rgba(164, 157, 194, 0.7); }
.sheet__tip b { color: var(--rose-soft); font-weight: 500; }

.sheet__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sheet__acts .btn { flex: 1 1 auto; padding: 11px 16px; text-align: center; }

/* ── 点击时冒出的小心绪 ───────────────────────────────── */
.spark {
  position: fixed;
  z-index: 45;
  pointer-events: none;
  font-size: 14px;
  will-change: transform, opacity;
  animation: spark 1.15s var(--ease) forwards;
}

@keyframes spark {
  from { opacity: 0.95; transform: translate(0, 0) scale(0.7) rotate(0deg); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.25) rotate(var(--rot)); }
}

/* ── 滚动出现 ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.noscript { position: relative; z-index: 3; margin: 0; padding: 20px; text-align: center; color: var(--rose-soft); }

/* ── 小屏 ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .wall { columns: 2 150px; column-gap: 14px; }
  .card { margin-bottom: 14px; }
  .card__fig { opacity: 1; transform: none; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close, .lightbox__nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .tt { padding: 14px 12px 16px; border-radius: 22px; }
  .tt__head, .tt__body { min-width: 520px; grid-template-columns: 32px repeat(7, minmax(0, 1fr)); gap: 4px; }
  .tt__body { grid-auto-rows: 54px; }
  .tt__block { padding: 5px 5px; border-radius: 9px; }
  .tt__block b { font-size: 0.62rem; -webkit-line-clamp: 3; }
  .tt__block em { font-size: 0.54rem; }
  .tt__tab { padding: 6px 11px; font-size: 0.72rem; }
  .tt__bar { gap: 10px; }
  .tt__week { width: 100%; justify-content: space-between; }
  .tt__tabs { width: 100%; justify-content: center; }
  .dock { gap: 0; padding: 5px 6px; }
  .dock a { padding: 6px 9px; font-size: 0.56rem; }
  .dock svg { width: 16px; height: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .sheet__panel { padding: 20px 16px max(20px, env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .wall { columns: 1; }
  .days b { font-size: 4rem; }
}

/* ── 窄屏课表：改成按天列表 ───────────────────────────── */
.tt__days { display: none; }

.tt__day {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.tt__day:first-child { border-top: 0; }

.tt__day-name { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.tt__day-name b { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; }
.tt__day-name em { font-style: normal; font-size: 0.62rem; color: var(--dim); letter-spacing: 0.06em; }
.tt__day.is-today .tt__day-name b { color: var(--rose-soft); }

.tt__day-items { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.tt__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.tt__item:hover { border-color: rgba(255, 182, 202, 0.4); background: rgba(255, 255, 255, 0.07); }

.tt__item-time {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 0.6rem;
  color: rgba(255, 182, 202, 0.9);
  font-variant-numeric: tabular-nums;
}

.tt__item-body { min-width: 0; }
.tt__item-body b { display: block; font-size: 0.8rem; font-weight: 500; line-height: 1.4; }
.tt__item-body em { display: block; margin-top: 3px; font-style: normal; font-size: 0.64rem; color: var(--dim); }

.tt__day-free { margin: 0; padding: 7px 2px; font-size: 0.74rem; color: rgba(143, 227, 208, 0.72); }

@media (max-width: 720px) {
  .tt__scroll { display: none; }
  .tt__days { display: block; margin-top: 12px; }
}
/* ── 减少动效 ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}





