/* ==========================================================
   Chunting Holida · 页面样式
   ========================================================== */

/* ---------- 通用页面头 ---------- */
.page-head { padding: 46px 0 10px; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.page-head p { color: var(--rose); margin-top: 10px; max-width: 560px; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ==========================================================
   首页
   ========================================================== */
.page-home { overflow-x: hidden; }

.hero { padding: 52px 0 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--pink-500);
  font-family: Georgia, var(--font-display);
  letter-spacing: -0.04em;
}
.hero-sub {
  margin: 22px 0 28px;
  max-width: 460px;
  color: var(--rose);
  font-size: 15px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
}
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.1;
}
.hero-meta span { font-size: 11px; color: var(--rose-light); letter-spacing: 0.08em; }

.hero-visual { position: relative; min-height: 500px; }
.hero-photo-main {
  position: absolute;
  top: 0;
  right: 4%;
  width: 72%;
  aspect-ratio: 4 / 5;
  border-radius: 180px 180px 26px 26px;
  box-shadow: 0 40px 80px -40px rgba(86, 32, 52, 0.55);
  animation: rise 0.8s var(--ease) both;
}
.hero-photo-sub {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 46%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  border: 6px solid rgba(255, 250, 247, 0.88);
  box-shadow: var(--shadow-md);
  animation: rise 0.8s 0.12s var(--ease) both;
}
.hero-float {
  position: absolute;
  right: 0;
  bottom: 88px;
  width: 218px;
  padding: 16px;
  border-radius: 20px;
  animation: rise 0.8s 0.22s var(--ease) both;
}
.hero-float__row { display: flex; align-items: center; gap: 10px; }
.hero-float__row + .hero-float__row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.hero-float__row strong { display: block; font-size: 12px; line-height: 1.3; }
.hero-float__row span { font-size: 10px; color: var(--rose-light); }
.hero-stamp {
  position: absolute;
  top: 18px;
  left: 7%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 71, 115, 0.45);
  color: var(--pink-600);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  transform: rotate(-9deg);
  background: rgba(255, 250, 247, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--pink-600);
  background: var(--pink-100);
  flex: none;
}
.quick-card:nth-child(2) .quick-card__icon { color: #b4741f; background: #fff2db; }
.quick-card:nth-child(3) .quick-card__icon { color: #3f7d6c; background: #e6f4ef; }
.quick-card strong { display: block; font-size: 15px; }
.quick-card small { color: var(--rose); font-size: 12px; }

.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.rec-mini {
  flex: 0 0 282px;
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.rec-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.rec-mini .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.rec-mini__body { padding: 16px 17px 18px; }
.rec-mini__body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-mini__meta { display: flex; align-items: center; gap: 8px; margin-top: 11px; color: var(--rose-light); font-size: 11px; }
.rec-mini__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.masonry { columns: 3; column-gap: 20px; }
.masonry__item { break-inside: avoid; margin-bottom: 20px; }
.checkin-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.checkin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.checkin-card .photo { border-radius: 0; }
.checkin-card__body { padding: 14px 16px 16px; }
.checkin-card__body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.checkin-card__meta { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--rose-light); font-size: 11px; }
.checkin-card__meta .avatar { width: 22px; height: 22px; font-size: 9px; }
.checkin-card__meta .spot { color: var(--pink-600); }
.checkin-card__count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 10px;
  background: rgba(20, 25, 35, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ==========================================================
   发现页
   ========================================================== */
.discover-head { padding: 34px 0 0; text-align: center; }
.discover-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
}
.discover-head p { color: var(--rose); font-size: 13px; margin-top: 6px; }

.segmented {
  position: relative;
  display: flex;
  width: min(280px, 100%);
  margin: 22px auto 26px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}
.segmented__btn {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rose);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.segmented__btn.is-active { color: #fff; }
.segmented__indicator {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffa4be, var(--pink-500) 58%, var(--pink-600));
  box-shadow: 0 8px 18px -10px rgba(217, 71, 115, 0.8);
  transition: transform 0.24s var(--ease);
}
.segmented[data-active="recommend"] .segmented__indicator { transform: translateX(100%); }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(62, 37, 48, 0.1);
  background: rgba(255, 255, 255, 0.56);
  color: var(--rose);
  font-size: 12px;
  cursor: pointer;
}
.filter-chip.is-active { background: var(--wine); color: #fff; border-color: transparent; }
.filter-select { width: auto; min-width: 142px; height: 36px; font-size: 12px; border-radius: 999px; }

.rec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rec-card {
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.rec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rec-card .photo { border-radius: 0; height: 100%; min-height: 190px; }
.rec-card__body { padding: 20px 20px 18px; display: flex; flex-direction: column; }
.rec-card__body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-card__excerpt {
  color: var(--rose);
  font-size: 12px;
  line-height: 1.75;
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-card__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; color: var(--rose-light); font-size: 11px; }
.rec-card__foot .avatar { width: 24px; height: 24px; font-size: 9px; }
.rec-card__foot .spacer { margin-left: auto; }
.rec-card__stat { display: inline-flex; align-items: center; gap: 4px; }

/* ==========================================================
   图集页
   ========================================================== */
.gallery-hero {
  padding: 28px 30px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.gallery-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; }
.gallery-hero p { color: var(--rose); font-size: 13px; margin-top: 6px; }
.gallery-stats { display: flex; gap: 28px; }
.gallery-stats strong { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.gallery-stats span { font-size: 11px; color: var(--rose-light); }

/* ==========================================================
   详情页
   ========================================================== */
.detail-top { padding: 26px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--rose); font-size: 12px; margin-bottom: 18px; }
.back-link:hover { color: var(--pink-600); }
.detail-gallery { display: grid; grid-template-columns: 1fr 170px; gap: 14px; }
.detail-gallery__main { aspect-ratio: 16 / 9; border-radius: 26px; cursor: zoom-in; }
.detail-gallery__side { display: grid; gap: 14px; grid-template-rows: 1fr 1fr; }
.detail-gallery__side .photo { border-radius: 18px; cursor: zoom-in; height: 100%; }
.detail-gallery__side .photo span.more {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(20, 25, 35, 0.38);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 34px; align-items: start; }
.detail-main h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 26px; color: var(--rose); font-size: 12px; }
.detail-meta .avatar { width: 32px; height: 32px; font-size: 11px; }
.detail-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--rose-light); }
.prose { font-size: 15px; line-height: 2; color: var(--wine-soft); }
.prose p + p { margin-top: 16px; }
.tips-card { margin-top: 26px; padding: 22px 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.6); border: 1px dashed var(--line-strong); }
.tips-card h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
.tips-card p { white-space: pre-line; color: var(--rose); font-size: 13px; line-height: 1.9; }

.detail-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.author-card { padding: 22px; border-radius: 22px; text-align: center; }
.author-card__head { display: flex; flex-direction: column; align-items: center; }
.author-card__info { width: 100%; }
.author-card .avatar { margin: 0 0 10px; }
.author-card h3 { font-family: var(--font-display); font-size: 19px; }
.author-card p { color: var(--rose); font-size: 12px; margin: 6px 0 14px; line-height: 1.7; }
.side-stats { display: flex; justify-content: center; gap: 24px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.side-stats strong { display: block; font-family: var(--font-display); font-size: 18px; }
.side-stats span { font-size: 10px; color: var(--rose-light); }
.side-note { padding: 18px 20px; border-radius: 18px; font-size: 12px; color: var(--rose); line-height: 1.8; }

.comments { margin-top: 46px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.comments-head h2 { font-family: var(--font-display); font-size: 24px; }
.rating-summary { display: flex; align-items: center; gap: 8px; color: var(--rose); font-size: 12px; }
.comment-form { padding: 20px; border-radius: 20px; margin-bottom: 22px; }
.comment-form__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.comment-form__top .stars--lg .icon { width: 22px; height: 22px; }
.comment-form .textarea { min-height: 92px; background: rgba(255, 255, 255, 0.82); }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.comment-form__tools { display: flex; align-items: center; gap: 8px; }
.comment-item { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.comment-item__body { flex: 1; min-width: 0; }
.comment-item__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-item__head strong { font-size: 13px; }
.comment-item__head span { color: var(--rose-light); font-size: 11px; }
.comment-item__text { font-size: 13px; line-height: 1.85; color: var(--wine-soft); margin-top: 7px; white-space: pre-line; }
.comment-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.comment-thumbs .photo { width: 74px; height: 74px; border-radius: 12px; cursor: zoom-in; }
.comment-item__actions { margin-left: auto; }
.link-btn { border: 0; background: transparent; color: var(--rose-light); font-size: 11px; cursor: pointer; padding: 4px; }
.link-btn:hover { color: var(--danger); }

.detail-login-tip { padding: 18px 20px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.detail-login-tip p { font-size: 13px; color: var(--rose); }

.inline-gallery { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-gallery .photo { width: 64px; height: 64px; border-radius: 10px; }

/* ==========================================================
   发布页
   ========================================================== */
.publish-shell { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 20px; }
.publish-head { text-align: center; margin-bottom: 26px; }
.publish-head h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); font-weight: 600; }
.publish-head p { color: var(--rose); font-size: 13px; margin-top: 8px; }
.publish-card { padding: 30px; border-radius: 28px; }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.upload-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: default;
}
.upload-tile .photo { width: 100%; height: 100%; border-radius: 16px; }
.upload-tile__remove {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 25, 35, 0.52);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.upload-tile__tag {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 5;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--success);
  font-size: 9px;
}
.upload-add {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px dashed rgba(217, 71, 115, 0.35);
  background: rgba(255, 237, 241, 0.45);
  color: var(--pink-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 11px;
}
.upload-add:hover { background: var(--pink-100); }
.upload-help { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: var(--rose-light); font-size: 11px; }
.publish-type { display: flex; gap: 8px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.82); width: fit-content; margin: 0 auto 22px; }
.publish-type button { height: 36px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--rose); font-size: 13px; font-weight: 600; cursor: pointer; }
.publish-type button.is-active { background: var(--wine); color: #fff; }
.publish-note { padding: 14px 16px; border-radius: 14px; background: rgba(255, 237, 241, 0.75); color: var(--pink-700); font-size: 12px; line-height: 1.7; margin-bottom: 20px; }

/* ==========================================================
   消息页
   ========================================================== */
.message-shell { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 20px; }
.message-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.message-head h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); font-weight: 600; }
.message-head p { color: var(--rose); font-size: 12px; margin-top: 5px; }
.msg-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.msg-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.msg-item__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--pink-100); color: var(--pink-600); }
.msg-item__icon--comment { background: #e8f4f0; color: #3f8c78; }
.msg-item__icon--system { background: #fff2db; color: #b4741f; }
.msg-item__body { flex: 1; min-width: 0; }
.msg-item__body h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.msg-item__body p { color: var(--rose); font-size: 12px; line-height: 1.75; margin-top: 5px; }
.msg-item__time { color: var(--rose-light); font-size: 11px; flex: none; }
.msg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-500); flex: none; box-shadow: 0 0 0 3px rgba(242, 98, 141, 0.15); }
.msg-item.is-read { opacity: 0.72; }

/* ==========================================================
   用户中心
   ========================================================== */
.user-shell { padding: 34px 0 20px; }
.profile-card { padding: 0; overflow: hidden; border-radius: 28px; }
.profile-cover {
  height: 150px;
  position: relative;
  background:
    radial-gradient(400px 180px at 18% 120%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(120deg, #ffd6e1, #ff9ebc 45%, #e27094);
  overflow: hidden;
}
.profile-cover::before, .profile-cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.profile-cover::before { width: 220px; height: 220px; right: 8%; top: -90px; }
.profile-cover::after { width: 140px; height: 140px; right: 28%; top: 40px; }
.profile-body { padding: 0 30px 24px; margin-top: -44px; position: relative; display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.profile-body .avatar { border: 4px solid rgba(255, 250, 247, 0.95); box-shadow: var(--shadow-sm); }
.profile-info { flex: 1; min-width: 180px; padding-bottom: 4px; }
.profile-info h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.2; }
.profile-info p { color: var(--rose); font-size: 12px; margin-top: 4px; }
.profile-actions { display: flex; gap: 8px; padding-bottom: 4px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding: 18px 30px; gap: 12px; }
.profile-stats div { text-align: center; }
.profile-stats strong { display: block; font-family: var(--font-display); font-size: 23px; line-height: 1.2; }
.profile-stats span { font-size: 11px; color: var(--rose-light); }

.profile-tabs { display: flex; gap: 6px; margin: 22px 0 20px; padding: 6px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.profile-tabs a { padding: 9px 18px; border-radius: 999px; font-size: 13px; color: var(--rose); white-space: nowrap; }
.profile-tabs a.is-active { background: var(--wine); color: #fff; }

.user-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.user-post { border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, 0.68); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-sm); }
.user-post .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.user-post__body { padding: 14px 16px 16px; }
.user-post__body h3 { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.user-post__row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.user-post__row .spacer { margin-left: auto; }
.visibility { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--rose); }
.visibility .switch__track { width: 36px; height: 21px; }
.visibility .switch__track::after { width: 15px; height: 15px; }
.visibility input:checked + .switch__track::after { transform: translateX(15px); }
.status-note { margin-top: 9px; padding: 8px 10px; border-radius: 10px; background: rgba(212, 82, 99, 0.07); color: var(--danger); font-size: 11px; line-height: 1.6; }
.rec-row { display: flex; gap: 14px; padding: 14px; border-radius: 18px; margin-bottom: 12px; align-items: center; }
.rec-row .photo { width: 92px; height: 76px; border-radius: 12px; flex: none; }
.rec-row__body { flex: 1; min-width: 0; }
.rec-row__body h3 { font-size: 14px; line-height: 1.45; }
.rec-row__body p { color: var(--rose); font-size: 11px; margin-top: 4px; }
.rec-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.comment-manage { padding: 14px 16px; border-radius: 16px; margin-bottom: 10px; }
.comment-manage__top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--rose); }
.comment-manage__text { font-size: 13px; line-height: 1.75; margin-top: 7px; color: var(--wine-soft); }
.settings-card { padding: 26px; border-radius: 22px; max-width: 620px; }
.settings-card h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 18px; }

/* ==========================================================
   登录 / 注册
   ========================================================== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; overflow: hidden; }
.auth-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.auth-art {
  position: relative;
  min-height: 600px;
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(500px 300px at 80% 0%, rgba(255, 255, 255, 0.28), transparent 65%),
    linear-gradient(145deg, #ffb0c6, #f2628d 48%, #b63560);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-art::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  right: -130px;
  top: 60px;
}
.auth-art::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  right: 40px;
  bottom: -80px;
}
.auth-art__brand { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; position: relative; z-index: 2; }
.auth-art h1 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); line-height: 1.25; font-weight: 600; position: relative; z-index: 2; letter-spacing: -0.01em; }
.auth-art p { margin-top: 16px; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, 0.82); position: relative; z-index: 2; }
.auth-art__card {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  line-height: 1.8;
}
.auth-card { padding: 50px 48px; display: flex; flex-direction: column; justify-content: center; background: rgba(255, 250, 247, 0.72); }
.auth-card h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.auth-card > p { color: var(--rose); font-size: 12px; margin: 6px 0 24px; }
.auth-form .field { margin-bottom: 16px; }
.auth-submit { margin-top: 6px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--rose); }
.auth-foot a { color: var(--pink-600); font-weight: 600; }
.demo-tip { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--pink-100); color: var(--pink-700); font-size: 11px; line-height: 1.7; cursor: pointer; }
.auth-back { position: fixed; top: 22px; left: 24px; z-index: 10; display: inline-flex; align-items: center; gap: 6px; color: var(--rose); font-size: 12px; }
.auth-mobile-brand { display: none; }
.auth-mobile-brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px 14px 14px 5px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, #ffb3c8, #f2628d 58%, #b63560);
  box-shadow: 0 10px 20px -12px rgba(182, 53, 96, 0.8);
}
.auth-mobile-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}
.auth-mobile-brand__text small { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.08em; color: var(--rose-light); }

/* ==========================================================
   弹窗推荐卡片
   ========================================================== */
.popup-card { border-radius: 24px; overflow: hidden; position: relative; }
.popup-card .photo { aspect-ratio: 4 / 3; border-radius: 24px 24px 0 0; }
.popup-card__body { padding: 22px 24px 24px; background: rgba(255, 250, 247, 0.96); }
.popup-card__body h3 { font-family: var(--font-display); font-size: 23px; line-height: 1.35; font-weight: 600; }
.popup-card__meta { display: flex; align-items: center; gap: 8px; color: var(--rose); font-size: 12px; margin-top: 8px; }
.popup-card__desc { color: var(--wine-soft); font-size: 13px; line-height: 1.85; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.popup-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.popup-progress { font-size: 11px; color: var(--rose-light); letter-spacing: 0.08em; }
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(20, 25, 35, 0.28);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.popup-modal .modal-card { width: min(520px, 100%); background: transparent; border: 0; box-shadow: none; overflow: visible; }
.popup-modal .modal-body { padding: 0; }
.popup-modal .modal-head, .popup-modal .modal-close { display: none; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1023px) {
  .hero-grid { gap: 30px; }
  .hero-visual { min-height: 430px; }
  .rec-list { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr 280px; gap: 26px; }
  .detail-gallery { grid-template-columns: 1fr 132px; }
  .masonry { columns: 2; }
  .user-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr 1fr; }
  .auth-art { padding: 36px; }
  .auth-card { padding: 40px 32px; }
}

@media (max-width: 767px) {
  .page-head { padding-top: 26px; }
  .hero { padding-top: 27px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero-sub { margin: 16px 0 22px; font-size: 14px; }
  .hero-meta { gap: 26px; margin-top: 26px; padding-top: 18px; }
  .hero-meta strong { font-size: 21px; }
  .hero-visual { min-height: 360px; margin-top: 6px; }
  .hero-photo-main { right: 2%; width: 68%; border-radius: 120px 120px 22px 22px; }
  .hero-photo-sub { width: 44%; bottom: 20px; border-width: 4px; }
  .hero-float { width: 178px; right: 0; bottom: 54px; padding: 12px; }
  .hero-float__row strong { font-size: 11px; }
  .hero-stamp { width: 68px; height: 68px; font-size: 8px; top: 8px; }
  .quick-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .quick-card { padding: 15px 16px; border-radius: 16px; }
  .quick-card__icon { width: 40px; height: 40px; border-radius: 13px; }
  .scroll-row { gap: 14px; margin-right: -16px; padding-right: 16px; }
  .rec-mini { flex-basis: 250px; }
  .masonry { columns: 2; column-gap: 12px; }
  .masonry__item { margin-bottom: 12px; }
  .checkin-card { border-radius: 16px; }
  .checkin-card__body { padding: 11px 12px 13px; }
  .checkin-card__body h3 { font-size: 13px; }
  .checkin-card__meta { margin-top: 7px; gap: 5px; }
  .checkin-card__meta .avatar { width: 19px; height: 19px; }
  .checkin-card__meta .time { display: none; }
  .checkin-card__count { top: 8px; right: 8px; height: 21px; font-size: 9px; }

  .discover-head { padding-top: 24px; }
  .segmented { position: sticky; top: calc(var(--header-h) + 8px); z-index: 70; }
  .rec-list { gap: 12px; }
  .rec-card { grid-template-columns: 118px 1fr; border-radius: 16px; }
  .rec-card .photo { min-height: 138px; }
  .rec-card__body { padding: 13px 13px 12px; }
  .rec-card__body h3 { font-size: 14px; }
  .rec-card__excerpt { display: none; }
  .rec-card__foot { padding-top: 10px; font-size: 10px; }
  .rec-card__foot .avatar { width: 20px; height: 20px; }

  .gallery-hero { padding: 20px; border-radius: 20px; margin-top: 20px; }
  .gallery-stats { gap: 20px; }
  .gallery-stats strong { font-size: 20px; }
  .filter-bar { align-items: stretch; }
  .filter-select { flex: 1; }

  body[data-page="checkin-detail"] .site-header,
  body[data-page="recommend-detail"] .site-header { display: none; }
  .detail-top { padding-top: calc(16px + env(safe-area-inset-top)); }
  .back-link { margin-bottom: 12px; }
  .detail-gallery { grid-template-columns: 1fr; gap: 8px; }
  .detail-gallery__main { border-radius: 18px; aspect-ratio: 4 / 3; }
  .detail-gallery__side { display: flex; gap: 8px; }
  .detail-gallery__side .photo { width: 74px; height: 74px; flex: none; border-radius: 12px; }
  .detail-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 18px; }
  .detail-side { position: static; gap: 12px; }
  .detail-main h1 { font-size: 26px; line-height: 1.35; }
  .detail-meta { margin: 12px 0 16px; gap: 9px; font-size: 11px; }
  .detail-meta .dot { display: none; }
  .detail-meta .avatar { width: 28px; height: 28px; font-size: 10px; }
  .prose { font-size: 14px; line-height: 1.95; }
  .tips-card { padding: 16px 18px; border-radius: 16px; }
  .author-card { padding: 15px 16px; text-align: left; }
  .author-card__head { flex-direction: row; align-items: center; gap: 12px; }
  .author-card__head .avatar { width: 46px; height: 46px; font-size: 15px; margin: 0; flex: none; }
  .author-card__info h3 { font-size: 16px; }
  .author-card__info p {
    margin: 3px 0 0;
    font-size: 11px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .author-card .side-stats { justify-content: flex-start; gap: 30px; margin: 12px 0; padding: 10px 0; }
  .author-card .side-stats strong { font-size: 17px; }
  .comments { margin-top: 28px; }
  .comments-head { flex-wrap: wrap; gap: 10px; }
  .comments-head h2 { font-size: 20px; }
  .comment-form { padding: 15px; border-radius: 16px; }
  .comment-form__top .stars--lg .icon { width: 20px; height: 20px; }
  .comment-form__foot > .btn { flex: 1; }
  .comment-item { gap: 10px; padding: 15px 0; }
  .comment-thumbs .photo { width: 58px; height: 58px; }

  .publish-shell, .message-shell { width: calc(100% - 32px); padding-top: 24px; }
  .publish-card { padding: 20px; border-radius: 22px; }
  .upload-grid { gap: 8px; }
  .upload-tile, .upload-add { border-radius: 12px; }
  .message-head { align-items: center; }
  .msg-item { padding: 14px; gap: 11px; border-radius: 15px; }
  .msg-item__icon { width: 38px; height: 38px; border-radius: 12px; }
  .msg-item__time { display: none; }

  .user-shell { padding-top: 20px; }
  .profile-card { border-radius: 22px; }
  .profile-cover { height: 112px; }
  .profile-body { padding: 0 18px 18px; margin-top: -38px; gap: 12px; }
  .profile-body .avatar { width: 72px; height: 72px; font-size: 22px; }
  .profile-info h1 { font-size: 21px; }
  .profile-stats { padding: 14px 16px; }
  .profile-stats strong { font-size: 19px; }
  .profile-tabs { margin: 16px 0; width: 100%; }
  .profile-tabs a { flex: 1; text-align: center; padding: 9px 10px; }
  .user-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .user-post { border-radius: 16px; }
  .user-post__body { padding: 11px 12px 12px; }
  .settings-card { padding: 20px; }

  .auth-page { display: block; padding: 0 0 26px; min-height: 100vh; overflow-x: hidden; }
  .auth-shell {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .auth-art { display: none; }
  .auth-card {
    width: calc(100% - 32px);
    margin: 16px auto 0;
    padding: 24px 20px 28px;
    min-height: 0;
    border-radius: 26px;
    justify-content: flex-start;
    background: rgba(255, 250, 247, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 26px 60px -42px rgba(86, 32, 52, 0.55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .auth-card h2 { font-size: 26px; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
  .auth-back { position: static; margin: 18px 18px 0; white-space: nowrap; }

  .popup-card .photo { aspect-ratio: 4 / 3; }
  .popup-card__body h3 { font-size: 20px; }
}

@media (max-width: 380px) {
  .masonry { columns: 2; column-gap: 10px; }
  .user-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   首页顶部：轮播 + 发帖统计
   ========================================================== */
.showcase { padding: 30px 0 0; }
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.carousel {
  position: relative;
  min-height: 478px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #ffd9e2, #d9527a);
  box-shadow: var(--shadow-lg);
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.carousel__slide.is-active { opacity: 1; pointer-events: auto; }
.carousel__slide .photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.carousel__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(22, 26, 36, 0) 34%, rgba(22, 26, 36, 0.12) 56%, rgba(22, 26, 36, 0.74) 100%);
}
.carousel__content {
  position: absolute;
  left: 32px;
  right: 122px;
  bottom: 30px;
  z-index: 4;
  color: #fff;
}
.carousel__tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.carousel__content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.28;
  font-weight: 600;
  margin-top: 12px;
  text-shadow: 0 2px 18px rgba(20, 25, 35, 0.28);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.carousel__meta .avatar { width: 24px; height: 24px; font-size: 9px; border: 1px solid rgba(255, 255, 255, 0.45); }
.carousel__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.carousel__dots {
  position: absolute;
  top: 22px;
  left: 30px;
  z-index: 5;
  display: flex;
  gap: 6px;
}
.carousel__dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.24s var(--ease), background 0.24s;
}
.carousel__dot.is-active { width: 40px; background: #fff; }
.carousel__controls {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.carousel__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.18s, transform 0.18s;
}
.carousel__arrow:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }

.showcase-side {
  position: relative;
  min-height: 478px;
  padding: 30px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.showcase-side::before,
.showcase-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(217, 71, 115, 0.16);
  pointer-events: none;
}
.showcase-side::before { width: 230px; height: 230px; top: -96px; right: -76px; }
.showcase-side::after { width: 120px; height: 120px; bottom: -52px; left: -42px; }
.showcase-side__head { position: relative; z-index: 1; }
.showcase-side h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 8px;
}
.post-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 18px;
}
.post-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 13px;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--line-strong);
  border-radius: 0;
  text-align: left;
}
.post-stats div:first-child { border-top: 1px dashed var(--line-strong); }
.post-stats strong {
  display: block;
  order: 2;
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.1;
  font-weight: 600;
}
.post-stats span { order: 1; font-size: 12px; color: var(--rose); letter-spacing: 0.02em; }
.showcase-actions { position: relative; z-index: 1; margin-top: 28px; }
.showcase-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  font-size: 12px;
  color: var(--rose);
}
.showcase-links a { transition: color 0.18s; }
.showcase-links a:hover { color: var(--pink-600); }
.showcase-links span { color: var(--rose-light); }

@media (max-width: 1023px) {
  .showcase-grid { grid-template-columns: minmax(0, 1.4fr) 300px; gap: 18px; }
  .carousel, .showcase-side { min-height: 420px; }
  .showcase-side { padding: 24px; }
  .post-stats strong { font-size: 23px; }
}

@media (max-width: 767px) {
  .showcase { padding-top: 20px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 14px; }
  .carousel { min-height: 0; height: 330px; border-radius: 24px; }
  .carousel__content { left: 18px; right: 18px; bottom: 64px; }
  .carousel__content h2 { font-size: 22px; margin-top: 9px; }
  .carousel__meta { margin-top: 9px; font-size: 11px; }
  .carousel__dots { top: 16px; left: 16px; }
  .carousel__controls { right: 14px; bottom: 14px; }
  .carousel__arrow { width: 38px; height: 38px; }
  .showcase-side { min-height: 0; padding: 22px; border-radius: 24px; }
  .showcase-side h2 { font-size: 26px; }
  .post-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
  .post-stats div {
    display: block;
    padding: 12px 4px;
    text-align: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 14px;
  }
  .post-stats div:first-child { border-top: 1px solid rgba(255, 255, 255, 0.82); }
  .post-stats strong { font-size: 22px; }
  .post-stats span { font-size: 10px; color: var(--rose-light); }
  .showcase-actions { margin-top: 22px; }
}

