/* ============================================================
   站点样式 · 移动端优先 · 浅蓝渐变
   ============================================================ */

:root {
  --blue-50: #f5faff;
  --blue-100: #e6f2ff;
  --blue-200: #d2e7ff;
  --blue-300: #a9d0ff;
  --blue-500: #2f7df6;
  --blue-600: #1a6ae0;
  --blue-700: #0f52b8;

  --ink: #0f2438;
  --ink-2: #3f5a72;
  --muted: #7d93a8;
  --money: #ff6a2b;

  --card: #ffffff;
  --line: rgba(47, 125, 246, .14);
  --line-2: rgba(47, 125, 246, .22);

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  background: #eef7ff;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink);
  background:
    radial-gradient(115% 70% at 8% -12%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(90% 55% at 104% 2%, #d3eaff 0%, rgba(211, 234, 255, 0) 55%),
    linear-gradient(178deg, #e8f4ff 0%, #f7fbff 42%, #eaf4ff 72%, #e2f0ff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.ic { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------- 顶栏 */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(47, 125, 246, .08);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.hd-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  padding: 13px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: .01em;
}

.brand-mk {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: linear-gradient(140deg, #5aa9ff, #1a6ae0);
  border-radius: 10px;
  box-shadow: 0 8px 18px -8px rgba(26, 106, 224, .75);
}

.brand-mk .ic { width: 17px; height: 17px; }

.hd-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------------------------------------------------------- 容器 */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 4px 20px 0;
}

/* ---------------------------------------------------------- 首屏 */
.hero {
  padding: 16px 0 4px;
  animation: rise .5s var(--ease) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--blue-700);
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: 0 6px 16px -12px rgba(15, 82, 184, .8);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 0 rgba(47, 125, 246, .5);
  animation: pulse 2.4s infinite;
}

.hero h1 {
  margin: 0 0 9px;
  font-size: 29px;
  line-height: 1.28;
  font-weight: 780;
  letter-spacing: -.02em;
  background: linear-gradient(96deg, #0f3f7a 8%, #1a6ae0 55%, #3f9bff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------- 区块标题 */
.sec-hd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 12px;
}

.sec-hd h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: .01em;
  color: var(--ink);
}

.sec-hd .ln {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.sec-hd .cnt {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- 说明卡（唯一卡片） */
.doc {
  position: relative;
  margin-top: 16px;
  padding: 22px 20px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(15, 82, 184, .05),
    0 22px 46px -32px rgba(15, 82, 184, .55);
  animation: rise .55s var(--ease) both;
  overflow: hidden;
}

.doc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #8ecaff, #2f7df6 55%, #8ecaff);
  opacity: .9;
}

/* 富文本 */
.rich { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }

.rich h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 10px;
  font-size: 15.5px;
  font-weight: 720;
  color: var(--ink);
  letter-spacing: .01em;
}

.rich h3:first-child { margin-top: 0; }

.rich h3::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6cb4ff, #1a6ae0);
}

.rich p { margin: 0 0 13px; }
.rich p:last-child { margin-bottom: 0; }

.rich ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.rich ul:last-child { margin-bottom: 0; }

.rich li {
  position: relative;
  padding-left: 19px;
  margin-bottom: 10px;
}

.rich li:last-child { margin-bottom: 0; }

.rich li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .74em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(140deg, #7dbdff, #2f7df6);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, .1);
}

.rich strong { color: var(--ink); font-weight: 720; }

/* 卡片内的联系方式 */
.doc-contact {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
}

.doc-contact .lb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  color: var(--blue-600);
}

.doc-contact .lb .ic { width: 15px; height: 15px; }

.doc-contact .id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 15px;
  background: linear-gradient(140deg, #f2f8ff, #e8f3ff);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.doc-contact .id b {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: .01em;
  color: #0f3f7a;
  word-break: break-all;
}

.doc-contact .hint {
  margin: 0;
  padding-left: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(140deg, #5aa9ff, #1a6ae0);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(26, 106, 224, .9);
  transition: transform .16s var(--ease), filter .16s;
}

.btn-copy:active { transform: scale(.96); filter: brightness(.94); }
.btn-copy .ic { width: 15px; height: 15px; }

/* ---------------------------------------------------------- 统计条 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 2px;
}

.stat {
  padding: 13px 8px;
  text-align: center;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px -20px rgba(15, 82, 184, .8);
}

.stat b {
  display: block;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.stat b small {
  font-size: 12px;
  font-weight: 680;
  margin-right: 1px;
  opacity: .8;
}

.stat span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .03em;
}

.stat.acc b { color: var(--blue-600); }
.stat.gold b { color: var(--money); }

/* ---------------------------------------------------------- 时间线 */
.timeline {
  position: relative;
  margin-top: 18px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a9d0ff 0%, #cfe6ff 55%, rgba(207, 230, 255, 0) 100%);
}

.tl-item {
  position: relative;
  margin-bottom: 18px;
  animation: rise .45s var(--ease) both;
}

.tl-item:last-child { margin-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 125, 246, .1);
}

.tl-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 620;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.tl-date .ic { width: 12px; height: 12px; opacity: .8; }

.tl-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow:
    0 1px 2px rgba(15, 82, 184, .04),
    0 16px 34px -26px rgba(15, 82, 184, .6);
  transition: transform .2s var(--ease), box-shadow .2s;
}

.tl-card:active {
  transform: scale(.985);
  box-shadow: 0 1px 2px rgba(15, 82, 184, .06), 0 10px 22px -20px rgba(15, 82, 184, .7);
}

.tl-thumb {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blue-100);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.tl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}

.tl-card:active .tl-thumb img { transform: scale(1.05); }

.tl-thumb .ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--blue-300);
}

.tl-thumb .ph .ic { width: 24px; height: 24px; }

.tl-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2px 2px 2px 0;
}

.tl-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 680;
  line-height: 1.4;
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tl-memo {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  margin-top: auto;
  padding-top: 6px;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
  color: var(--money);
}

.price small {
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 2px;
  opacity: .9;
}

/* ---------------------------------------------------------- 空状态 / 加载更多 */
.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 54px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  background: rgba(255, 255, 255, .6);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}

.empty .ic { width: 32px; height: 32px; color: var(--blue-300); }

.more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 620;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px -20px rgba(15, 82, 184, .8);
}

.more:disabled { opacity: .55; }

/* ---------------------------------------------------------- 底部导航 */
.tabs {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: min(320px, calc(100% - 40px));
  padding: 5px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 22px 44px -22px rgba(15, 82, 184, .55);
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 640;
  color: var(--muted);
  border-radius: 14px;
  transition: color .2s, background .2s;
}

.tab .ic { width: 17px; height: 17px; }

.tab.on {
  color: #fff;
  background: linear-gradient(140deg, #5aa9ff, #1a6ae0);
  box-shadow: 0 10px 22px -12px rgba(26, 106, 224, .95);
}

/* ---------------------------------------------------------- 页脚 */
.ft {
  margin-top: 34px;
  padding: 0 0 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.ft p { margin: 0 0 4px; }
.ft-dim { opacity: .7; }

/* ---------------------------------------------------------- 相册 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(9, 26, 48, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.on { display: grid; animation: fade .22s var(--ease); }

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 30px 70px -30px #000;
  animation: pop .28s var(--ease);
}

.lb-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
}

/* ---------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 200;
  max-width: calc(100% - 48px);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(140deg, #4d9bf5, #1a6ae0);
  border-radius: 12px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  box-shadow: 0 16px 34px -16px rgba(15, 82, 184, .9);
}

.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- 动画 */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 125, 246, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(47, 125, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 125, 246, 0); }
}

.tl-item:nth-child(1) { animation-delay: .02s; }
.tl-item:nth-child(2) { animation-delay: .07s; }
.tl-item:nth-child(3) { animation-delay: .12s; }
.tl-item:nth-child(4) { animation-delay: .17s; }
.tl-item:nth-child(5) { animation-delay: .22s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (min-width: 700px) {
  .hero h1 { font-size: 33px; }
  .tl-card { grid-template-columns: 92px 1fr; }
  .tl-thumb { width: 92px; height: 92px; }
}
