/* 这里设置全站共用的样式。以 -- 开头的是变量，例如 var(--page) 会取用下方的页面背景色。 */
:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #fff;
  --ink: #202127;
  --muted: #565b65;
  --line: #dbdde2;
  --soft: #ecedf1;
  /* 主按钮的三种颜色依次用于平时、鼠标悬停和按住时。 */
  --blue: #095fce;
  --blue-hover: #084fae;
  --blue-pressed: #063f8d;
  --pill: 999px;
  /* --card-radius 控制路线卡片圆角，--feature-radius 控制轮播和详情大图的圆角。
     clamp(最小值, 随屏幕变化的值, 最大值) 让圆角能适应不同宽度。 */
  --card-radius: 1.5rem;
  --feature-radius: clamp(1.5rem, 3vw, 2.25rem);
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --section-gap: clamp(3rem, 6vw, 5rem);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body { line-height: 1.6; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
img { display: block; max-width: 100%; }
/* .shell 让主要内容居中。调整 75rem 可改变大屏上的最大内容宽度，rem 随根字号缩放。 */
.shell { width: min(calc(100% - clamp(2rem, 7vw, 6rem)), 75rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .75rem; left: 1rem; z-index: 3; padding: .7rem 1rem; border-radius: var(--pill); background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
#main, #routes, #contact, #schedule { scroll-margin-top: 5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgb(255 255 255 / 88%);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    backdrop-filter: saturate(140%) blur(18px);
  }
}
.header-inner, .brand, nav, .button, nav a { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: 3.9rem; gap: .7rem; }
.brand, nav a, .button { text-decoration: none; }
.brand { gap: .65rem; min-height: 2.75rem; font-size: 1.22rem; font-weight: 750; white-space: nowrap; }
/* 顶栏 Logo 的 width 决定圆框大小，正方形比例配合 50% 圆角裁成圆形。 */
.brand-mark { display: block; position: relative; width: clamp(2rem, 4vw, 2.65rem); aspect-ratio: 1; overflow: hidden; border-radius: 50%; clip-path: circle(50%); background: white; flex: none; }
/* 原图的鹿在上半部。width: 180% 会放大图案，translate 的两个数分别调整左右和上下取景。 */
.brand-emblem { position: absolute; inset: 8%; overflow: hidden; }
.brand-mark img { width: 180%; max-width: none; height: auto; transform: translate(-22%, -12.7%); }
nav { gap: clamp(.4rem, 1vw, .85rem); font-size: .94rem; }
nav a { white-space: nowrap; min-height: 2.75rem; padding: .42rem 1rem; }
nav a, .button { justify-content: center; width: fit-content; border-radius: var(--pill); font-weight: 600; }
.nav-routes { background: var(--soft); color: var(--ink); }
.nav-contact { background: #eaf2ff; color: var(--blue); }
.button { display: inline-flex; min-height: 2.85rem; padding: .62rem 1.4rem; }
.button-primary { color: white; background: var(--blue); }

.feature { margin-top: clamp(1rem, 2.5vw, 2.25rem); }
.feature-frame, .detail-image { position: relative; overflow: hidden; border-radius: var(--feature-radius); }
/* 轮播外框的 border 控制描边，box-shadow 控制阴影。需要增强与页面背景的对比时可从这里调整。 */
.feature-frame {
  background: var(--surface);
  border: 1px solid #c8cbd2;
  box-shadow: 0 2px 5px rgb(30 36 48 / 6%), 0 12px 35px -14px rgb(30 36 48 / 25%);
}
.slide-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.slide { grid-area: 1 / 1; display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.slide[inert] { visibility: hidden; pointer-events: none; }
.slide-copy {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 4vw, 3rem);
}
.eyebrow, .card-meta { color: var(--muted); font-size: .9rem; font-weight: 650; }
.eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow span { width: 1.4rem; height: 2px; background: currentColor; border-radius: var(--pill); }
.slide-copy .eyebrow { margin-bottom: .6rem; }
.slide-title, .routes h2, .contact h2, .detail h1, .detail h2 { font-weight: 720; line-height: 1.15; letter-spacing: -.035em; }
.slide-title { font-size: clamp(1.9rem, 4.5vw, 3.85rem); }
.slide-description { max-width: 32em; margin-top: .75rem; text-wrap: pretty; line-height: 1.75; color: var(--muted); }
.slide-copy .button { margin-top: 1rem; }
.slide-figure { position: relative; aspect-ratio: 5 / 2; background: var(--soft); }
.slide-figure img, .detail-image img { width: 100%; height: 100%; object-fit: cover; }
.slide-figure figcaption, .detail-image figcaption {
  position: absolute;
  bottom: 1.2rem;
  color: white;
  background: rgb(25 27 32 / 86%);
  border-radius: var(--pill);
}
.slide-figure figcaption, .detail-image figcaption { right: 1.2rem; padding: .4rem .85rem; font-size: .875rem; }
.slide-controls { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .55rem .85rem; }
.slide-dots { display: flex; flex-wrap: wrap; justify-content: center; background: var(--soft); border-radius: 1.4rem; }
.dot, .icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--soft);
}
/* 每个轮播按钮占用固定宽度。选中时，按钮里的 .progress-track 从圆点变成长条，.progress-fill 显示已播放的比例。 */
.dot { flex: 0 0 3rem; width: 3rem; border-radius: var(--pill); background: transparent; }
.progress-track {
  display: block;
  width: .5rem;
  height: .5rem;
  overflow: hidden;
  border-radius: var(--pill);
  background: #797d87;
}
.dot[aria-pressed="true"] .progress-track { width: 2.625rem; background: #a8adb8; }
.progress-fill { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
@media (hover: hover) {
  .dot[aria-pressed="false"]:hover .progress-track { background: var(--ink); }
  .icon-button:hover { background: #dadde3; }
}
/* 播放图标是完整三角，第二片藏在里面。切到暂停时，两片在原位分成竖线。 */
.cycle-icon { display: block; position: relative; width: 1rem; height: 1rem; }
.cycle-icon::before, .cycle-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
}
.cycle-icon::before { clip-path: polygon(25% 6%, 96% 50%, 96% 50%, 25% 94%); }
.cycle-icon::after { clip-path: polygon(54% 28%, 88% 50%, 88% 50%, 54% 72%); }
[data-playing="true"] .cycle-icon::before { clip-path: polygon(12.5% 6%, 37.5% 6%, 37.5% 94%, 12.5% 94%); }
[data-playing="true"] .cycle-icon::after { clip-path: polygon(62.5% 6%, 87.5% 6%, 87.5% 94%, 62.5% 94%); }
@media (forced-colors: active) {
  .cycle-icon::before, .cycle-icon::after { forced-color-adjust: none; background: ButtonText; }
}

.routes, .contact { margin-top: var(--section-gap); }
.routes-heading, .filter-row, .card-bottom, .contact-inner, .footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}
.routes-heading { align-items: end; }
.routes h2, .contact h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.routes-heading p { color: var(--muted); margin-top: .65rem; }
.routes-heading .example, [data-count], .filters > span { color: var(--muted); font-size: .9rem; }
.filter-row { align-items: center; margin-block: 1.65rem 1.35rem; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .85rem; }
.city-options { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; gap: .15rem; max-width: 100%; padding: .25rem; border-radius: 1.5rem; background: #e6e7eb; touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* site.js 会移动 .city-highlight，使它跟随手指。::before 在这块区域内画出白色圆角背景。 */
.city-highlight { position: absolute; top: 0; left: 0; pointer-events: none; border-radius: var(--pill); }
.city-highlight::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: white; box-shadow: 0 1px 4px #14182126; }
.city-options button { position: relative; min-height: 2.75rem; padding: .4rem clamp(.75rem, 1.5vw, 1.15rem); border: 0; border-radius: var(--pill); color: var(--muted); background: transparent; font-size: .94rem; font-weight: 600; }
@media (hover: hover) {
  .city-options button:hover { background: #ffffff80; color: var(--ink); }
}
.city-options button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 1px 4px #14182126; }
.city-options.with-highlight button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.city-options.is-dragging .city-highlight { transition: none; }
.city-options.is-dragging .city-highlight::before { box-shadow: 0 0 0 1px #14182112, 0 2px 8px #14182138; }
.city-options.is-dragging button { cursor: grabbing; color: var(--muted); background: transparent; }
.city-options.is-dragging button.drag-target { color: var(--ink); }
/* 路线卡片按可用宽度自动分列。在空间足够时每列至少占 18.25rem，调大这个值会更早换行。 */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.25rem), 1fr)); gap: clamp(.9rem, 1.8vw, 1.5rem); margin-top: 1rem; }
.route-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--card-radius); background: var(--surface); box-shadow: 0 3px 18px rgb(31 38 50 / 5%); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--card-radius); }
.route-card > img { width: 100%; height: auto; aspect-ratio: 1.78; object-fit: cover; border-radius: var(--card-radius) var(--card-radius) 0 0; background: var(--soft); }
.card-body { padding: clamp(1.15rem, 2vw, 1.6rem); display: flex; flex: 1; flex-direction: column; }
.card-meta span { margin-inline: .25rem; }
.card-body h3 { margin: .4rem 0; font-size: clamp(1.22rem, 1.8vw, 1.5rem); letter-spacing: -.02em; line-height: 1.35; }
.card-theme, .card-meeting { color: var(--muted); }
.card-theme { margin-bottom: 1.25rem; }
.card-meeting { margin-top: auto; font-size: .94rem; }
.card-bottom { align-items: center; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .9rem; }
.back { color: var(--blue); font-weight: 600; }

.contact-inner { align-items: center; gap: 1.5rem 2rem; padding: clamp(1.6rem, 4.8vw, 3.8rem); border-radius: var(--feature-radius); color: white; background: #25272e; }
.contact-inner p { margin-top: .6rem; color: #d6d8de; }
.contact-action { background: white; color: var(--ink); }
/* 微信咨询页的 .wechat-panel 控制栏目布局，.qr 控制二维码的显示方式。微信号和图片路径在 build.py 中填写。 */
.wechat-page { padding-block: clamp(2.75rem, 7vw, 6rem); min-height: 65vh; }
.wechat-page h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; letter-spacing: -.035em; }
.wechat-intro { margin-top: .85rem; color: var(--muted); }
.wechat-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}
.wechat-panel h2 { margin-bottom: .75rem; font-size: 1.4rem; }
.wechat-panel p, .wechat-panel ul { color: var(--muted); }
.wechat-panel ul { padding-left: 1.3rem; margin: 0; line-height: 1.9; }
.wechat-panel strong { color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.qr { object-fit: contain; background: white; margin-bottom: .75rem; }
.footer { padding-block: 1.8rem; color: var(--muted); font-size: .875rem; }

.detail { margin-top: clamp(.65rem, 1.5vw, 1.6rem); }
.back { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; text-underline-offset: .2em; }
.detail-intro { padding: clamp(1.8rem, 4vw, 3.5rem) 0; }
.detail h1 { margin: .7rem 0 .9rem; font-size: clamp(2.1rem, 4.7vw, 3.8rem); }
.detail-intro > p:last-child { color: var(--muted); max-width: 44rem; line-height: 1.75; }
.detail-image { height: clamp(12rem, 32vw, 24rem); background: var(--soft); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: stretch; margin-top: clamp(2rem, 4vw, 3.5rem); }
.detail h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.meeting, .schedule { padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--card-radius); background: var(--surface); }
.meeting dl { margin-block: 1.35rem; }
.meeting dt { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.meeting dd { margin-top: .15rem; font-size: 1.06rem; font-weight: 650; }
.meeting > p { margin-top: .8rem; color: var(--muted); font-size: .875rem; }
.quick-open { position: relative; z-index: 1; }
.plus-icon { width: 1rem; height: 1rem; position: relative; }
.plus-icon::before, .plus-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
.plus-icon::after { transform: rotate(90deg); }
.route-dialog { width: min(28rem, calc(100% - 2rem)); max-height: 85vh; overflow: auto; margin: auto; border: 0; border-radius: var(--card-radius); padding: clamp(1.5rem, 4vw, 2.2rem); color: var(--ink); box-shadow: 0 15px 60px #12172330; }
@supports (height: 1svh) {
  .route-dialog { max-height: 85svh; }
  .wechat-page { min-height: 65svh; }
}
.route-dialog::backdrop { background: #171b2399; }
.route-dialog form { float: right; margin: -.35rem -.35rem .5rem .6rem; }
.dialog-close .plus-icon { transform: rotate(45deg); }
.route-dialog h2 { margin-top: .65rem; font-size: 1.5rem; }
.route-dialog dl { margin-block: 1.25rem; }
.route-dialog dt { margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.route-dialog dd { font-weight: 600; }

.schedule-note, .calendar-status { color: var(--muted); font-size: .9rem; }
.schedule-note { margin-top: .5rem; }
.month-controls { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin: 1.25rem 0 .6rem; }
.month-controls h3 { font-size: 1.05rem; text-align: center; }
.month-controls button { border: 0; padding: .5rem .85rem; min-height: 2.75rem; border-radius: var(--pill); background: var(--soft); font-size: .9rem; }
.month-grid { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
.month-grid th { color: var(--muted); font-size: .875rem; font-weight: 500; }
.month-grid td { padding: 0; height: 2.25rem; }
.month-grid time { display: inline-grid; place-items: center; width: min(100%, 1.9rem); aspect-ratio: 1; line-height: 1; }
/* 日历里有排期的日期用这个圆形样式标记。实际出团日期来自 build.py 中每条路线的 departures。 */
.departure-day { border-radius: 50%; background: var(--blue); color: white; font-weight: 650; }
.calendar-status { margin-top: .6rem; }
.calendar-status.has-departures::before { content: ""; display: inline-block; width: .65rem; height: .65rem; margin-right: .4rem; border-radius: 50%; background: var(--blue); }

.itinerary { margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--card-radius); background: var(--surface); }
.itinerary ol { list-style: none; margin: .8rem 0 0; padding: 0; }
.route-source { margin-top: .8rem; color: var(--muted); font-size: .9rem; }
.route-source a { color: var(--blue); text-underline-offset: .2em; }
.itinerary li + li { border-top: 1px solid var(--line); }
.itinerary summary { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr) 1.5rem; align-items: center; gap: .7rem; padding-block: 1rem; cursor: pointer; list-style: none; font-weight: 650; }
.itinerary summary::-webkit-details-marker { display: none; }
/* 每一站的展开箭头由两条边框画成。展开时旋转角度改变，旋转耗时在下方的动效区域设置。 */
.itinerary summary i { justify-self: center; width: .65rem; height: .65rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.itinerary details[open]:not([data-closing]) summary i { transform: translateY(2px) rotate(-135deg); }
.stop-panel { overflow: hidden; }
.stop-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.itinerary details p { margin-left: 4.45rem; padding-bottom: 1.1rem; color: var(--muted); line-height: 1.7; }
img[src$="zhuhai.webp"] { object-position: 70% 50%; }

@media (hover: hover) {
  .back:hover { color: var(--blue-hover); }
  .nav-routes:hover, .month-controls button:hover { background: #dedfe5; }
  .nav-contact:hover { background: #deeaff; }
  .button-primary:hover { background: var(--blue-hover); }
  .contact-action:hover { background: var(--soft); }
  .itinerary summary:hover { color: var(--blue); }
}
.button-primary:active { background: var(--blue-pressed); }
.nav-routes:active, .icon-button:active, .month-controls button:active { background-color: #d1d4db; }
.nav-contact:active { background-color: #d3e4fc; }
.contact-action:active { background-color: var(--soft); }
.back:active, .itinerary summary:active { color: var(--blue-pressed); }
/* 视口宽度在 36rem 以内时，缩小顶栏间距，并允许品牌和导航换行。 */
@media (max-width: 36rem) {
  .header-inner { gap: .4rem; flex-wrap: wrap; padding-block: .5rem; }
  .brand { gap: .4rem; font-size: 1.08rem; }
  nav a { padding-inline: .5rem; }
  nav { font-size: .875rem; }
}
@media (max-width: 19.5rem), (orientation: landscape) and (max-height: 26rem) {
  .site-header { position: static; }
  #main, #routes, #contact, #schedule { scroll-margin-top: .75rem; }
}
/* 系统允许常规动效时才启用下面的过渡。ms 表示毫秒，增加时长会让变化更慢。 */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* 小按钮按下时微微缩小，松手回弹。日历翻月时按钮和焦点保持在原位。 */
  .button, nav a, .city-options button, .icon-button, .month-controls button, .dot {
    transition: background-color 160ms ease, color 140ms ease, transform 120ms var(--ease-out);
  }
  .button:not(.card-link):active, nav a:active, .city-options:not(.is-dragging) button:active,
  .icon-button:active, .month-controls button:active, .dot:active { transform: scale(.97); }
  .back, .itinerary summary { transition: color 140ms ease; }
  .month-arriving { animation: month-arrive 150ms ease-out; }
  /* 480ms 控制圆点拉长和收回的时间。每张轮播图停留多久由 site.js 中的 duration 控制。 */
  .progress-track { transition: width 480ms cubic-bezier(.35, 0, .18, 1), background-color 280ms ease; }
  .dot[aria-pressed="false"] .progress-fill { transition: transform 380ms var(--ease-out); }
  .cycle-icon::before, .cycle-icon::after { transition: clip-path 200ms var(--ease-out); }
  /* 373.33ms 控制点选出发城市时白色背景的滑动时间。长按拖动时，背景直接跟随指针。 */
  .with-highlight .city-highlight {
    transition: transform 373.33ms var(--ease-out), width 373.33ms var(--ease-out), height 373.33ms var(--ease-out);
  }
  /* 长按后，scale(1.06) 让白色轮廓放大 6%，160ms 控制放大和复原的时间。想更含蓄可以试 1.03。 */
  .city-highlight::before { transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
  .is-dragging .city-highlight::before { transform: scale(1.06); }
  /* site.js 在区块首次向下进入视野时加上 enter-view。底部联系区将位移设为零，渐显时保持原位。 */
  .enter-view { animation: section-arrive 520ms cubic-bezier(.22, .61, .36, 1); }
  .contact-inner.enter-view { --reveal-distance: 0px; }
  .route-detail .detail-intro { animation: route-intro-arrive 480ms var(--ease-out) backwards; }
  .route-detail .detail-image img { animation: route-image-arrive 600ms 75ms var(--ease-out) backwards; }
  .slide:not([inert]) .slide-figure { animation: photo-arrive 340ms var(--ease-out); }
  .route-dialog[open] { transform-origin: center 65%; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
  .route-dialog[open]::backdrop { transition: opacity 280ms var(--ease-out); }
  .route-dialog[data-opening], .route-dialog[data-closing] { opacity: 0; transform: translateY(14px) scale(.96); }
  .route-dialog[data-opening]::backdrop, .route-dialog[data-closing]::backdrop { opacity: 0; }
  .route-dialog[data-closing], .route-dialog[data-closing]::backdrop { transition-duration: 180ms; }
  .quick-open .plus-icon { transition: transform 220ms var(--ease-out); }
  .route-card:has(.route-dialog[open]) .quick-open .plus-icon { transform: rotate(45deg); }
  .itinerary summary i { transition: transform 300ms ease-in-out; }

  @keyframes route-intro-arrive {
    from { opacity: 0; transform: translateY(.75rem); }
    to { opacity: 1; transform: none; }
  }
  @keyframes route-image-arrive {
    from { opacity: 0; transform: scale(1.018); }
    to { opacity: 1; transform: none; }
  }

  @keyframes section-arrive {
    from { opacity: .3; transform: translateY(var(--reveal-distance, .5rem)); }
    to { opacity: 1; transform: none; }
  }
  @keyframes photo-arrive { from { opacity: .82; } to { opacity: 1; } }
  @keyframes month-arrive { from { opacity: .68; } to { opacity: 1; } }
}

/* 手机使用更高的取景窗口，桌面保留宽幅构图。 */
@media (max-width: 42rem) {
  .slide-figure { aspect-ratio: 16 / 9; }
}
.pin-label { display: inline-block; vertical-align: middle; margin-right: .55rem; padding: .15rem .55rem; border-radius: var(--pill); color: var(--blue); background: #eaf2ff; font-size: .85rem; }
.admin { max-width: 48rem; padding-block: 2rem 5rem; }
.admin h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin-top: 1.5rem; }
.admin fieldset { background: white; border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.25rem; margin: 1.5rem 0; min-width: 0; }
.admin legend { font-size: 1.25rem; font-weight: 700; padding-inline: .4rem; }
.admin label { display: block; margin: .6rem 0; }
.admin li { margin-block: .45rem; }
.admin li div, .picker-row, .save-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.admin select { max-width: 100%; min-height: 2.75rem; border: 1px solid var(--line); padding: .4rem .7rem; border-radius: .75rem; background: white; font: inherit; color: var(--ink); }
.admin button { border: 0; }
.admin button:not(.button) { padding: .5rem .85rem; min-height: 2.75rem; border-radius: var(--pill); background: var(--soft); }
.admin button:disabled { opacity: .48; cursor: default; }
.admin #admin-status { color: var(--muted); margin-top: .5rem; }
