/* ============================================================
   鱼书画工作室 · 视觉系统
   底色：宣纸 / 新国风背景（assets/bg）
   面板：iOS 液态玻璃（双层玻璃 + 高光 + 描边 + 柔光投影）
   强调色：印章红 #BD271E
   ============================================================ */

:root {
  --paper: #FBF7EC;
  --ink: #1E1B18;
  --ink-2: #4C463F;
  --ink-3: #8B8279;
  --ink-4: #B4ABA1;
  --red: #BD271E;
  --red-2: #D0483A;
  --gold: #9A7B45;

  --glass-a: rgba(255, 255, 255, .58);
  --glass-b: rgba(255, 255, 255, .30);
  --glass-line: rgba(255, 255, 255, .70);
  --glass-shadow: 0 18px 44px -18px rgba(70, 52, 36, .45), 0 2px 8px -2px rgba(70, 52, 36, .12);
  --glass-blur: saturate(180%) blur(26px);

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 76px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

html { background: #EFE9DA; }

body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease;
}

/* ---------- 背景层 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/bg/bg-portrait.webp");
  background-size: cover;
  background-position: 50% 28%;
  background-repeat: no-repeat;
  transition: opacity .4s ease;
}
@media (min-aspect-ratio: 3/4) {
  .bg { background-image: url("assets/bg/bg-landscape.webp"); background-position: 50% 40%; }
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 247, 236, .28) 0%, rgba(251, 247, 236, 0) 22%, rgba(251, 247, 236, .08) 62%, rgba(251, 247, 236, .62) 100%),
    radial-gradient(120% 55% at 50% 0%, rgba(255, 255, 255, .55), transparent 60%);
}
body[data-view="set"] .bg { opacity: 0; }
body[data-view="set"] { background: #F2F2F7; }

/* ---------- 通用玻璃 ---------- */
.glass {
  position: relative;
  background: linear-gradient(150deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .32);
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* 玻璃顶面高光 */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 70% at 12% -10%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 58%),
    radial-gradient(90% 60% at 92% 108%, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen;
  opacity: .85;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- 顶部：语言胶囊 ---------- */
.topbar {
  position: fixed;
  top: calc(10px + var(--safe-top));
  right: 14px;
  z-index: 60;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(150deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .36));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 26px -12px rgba(60, 44, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .2s;
}
.lang-pill:active { transform: scale(.95); }
.lang-pill svg { display: block; opacity: .72; }
.lang-pill .globe { color: var(--red); opacity: .92; }

/* ---------- 首屏 ---------- */
.hero {
  padding: calc(26px + var(--safe-top)) 0 8px;
  text-align: center;
  animation: rise .6s cubic-bezier(.2, .8, .3, 1) both;
}

.seal-logo {
  width: 108px;
  height: 108px;
  margin: 6px auto 14px;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(120, 30, 24, .28));
  animation: sealIn .8s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes sealIn {
  from { opacity: 0; transform: scale(.78) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: uppercase;
  opacity: .9;
}
.hero-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.24;
  margin: 0 0 10px;
  letter-spacing: .06em;
  color: var(--ink);
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.hero-desc {
  margin: 0 auto;
  max-width: 30em;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.hero-rule {
  width: 46px;
  height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .5;
  border-radius: 2px;
}

/* ---------- 区块标题 ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 26px 2px 12px;
}
.sec-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
}
.sec-count { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- 作品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 11px;
  border-radius: var(--r-lg);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s;
  animation: rise .5s cubic-bezier(.2, .8, .3, 1) both;
}
.card:active { transform: scale(.972); }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, #FFFDF6, #F4EDDC 70%, #EDE4D0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 1px 8px rgba(150, 130, 105, .18);
  display: grid;
  place-items: center;
}
.card-media img {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 6px 14px rgba(110, 88, 60, .22));
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
  loading: lazy;
}
.card:active .card-media img { transform: scale(1.03); }

.card-body { padding: 10px 5px 0; min-height: 46px; }
.card-name {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.card-code { flex: 0 0 auto; }
.card-price { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.card-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .02em;
  font-size: 10.5px;
  color: var(--ink-4);
}
.card-price { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: .01em; }
.card-price.ask { color: var(--ink-3); font-weight: 600; font-size: 11.5px; }

/* 售罄印章 */
.sold-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 9px;
  transform-origin: 100% 0;
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #FFF;
  background: rgba(189, 39, 30, .92);
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow: 0 6px 14px -6px rgba(140, 25, 18, .8), inset 0 0 0 1px rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.sold-mask { opacity: .58; filter: saturate(.62) contrast(.96); }

/* ---------- 分类 ---------- */
.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 18px 4px;
  margin: 0 -18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .62);
  background: linear-gradient(150deg, rgba(255, 255, 255, .52), rgba(255, 255, 255, .24));
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 6px 16px -10px rgba(70, 52, 36, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: transform .16s, background .2s, color .2s;
}
.chip:active { transform: scale(.95); }
.chip.on {
  color: #FFF;
  background: linear-gradient(150deg, var(--red-2), var(--red));
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 10px 22px -10px rgba(160, 30, 22, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.chip .n { opacity: .6; font-size: 11px; margin-left: 5px; }

.empty {
  text-align: center;
  padding: 54px 10px;
  color: var(--ink-3);
  font-size: 13.5px;
  letter-spacing: .05em;
}

/* ---------- 视图切换 ---------- */
.view { display: none; padding-bottom: calc(var(--tabbar-h) + 40px + var(--safe-bot)); }
.view.on { display: block; animation: fade .32s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 底部 Tab Bar ---------- */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bot));
  height: 62px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-radius: 26px;
  padding: 0 6px;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .7);
  background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .28));
  -webkit-backdrop-filter: saturate(190%) blur(30px);
  backdrop-filter: saturate(190%) blur(30px);
  box-shadow: 0 20px 40px -18px rgba(56, 40, 26, .62), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3);
}
.tabbar::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, .9), transparent 62%);
  mix-blend-mode: screen;
  opacity: .7;
}
.tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  padding: 0;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s, transform .16s;
}
.tab:active { transform: scale(.94); }
.tab.on { color: var(--red); }
.tab-ico { width: 24px; height: 24px; display: grid; place-items: center; }
.tab-ico img { width: 26px; height: 26px; opacity: .5; filter: grayscale(1) sepia(.2); transition: opacity .2s, filter .3s, transform .2s; }
.tab.on .tab-ico img { opacity: 1; filter: none; transform: scale(1.06); }
.tab-ico svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on .tab-ico svg { stroke-width: 2; }
.tab-dot {
  position: absolute;
  top: 6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transition: opacity .2s;
}
.tab.on .tab-dot { opacity: 1; }

/* ---------- 底部弹层（作品详情 / 询价） ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 24, 18, .34);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  max-height: 92dvh;
  border-radius: 30px 30px 0 0;
  padding: 10px 18px calc(18px + var(--safe-bot));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(102%);
  transition: transform .42s cubic-bezier(.22, .9, .26, 1);
  border: 1px solid rgba(255, 255, 255, .7);
  border-bottom: 0;
  background: linear-gradient(170deg, rgba(255, 255, 255, .78), rgba(252, 249, 238, .66));
  -webkit-backdrop-filter: saturate(180%) blur(34px);
  backdrop-filter: saturate(180%) blur(34px);
  box-shadow: 0 -22px 50px -22px rgba(50, 36, 24, .5), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.sheet.on { transform: translateY(0); }
.sheet-grab {
  width: 38px; height: 5px;
  border-radius: 3px;
  background: rgba(120, 110, 100, .32);
  margin: 2px auto 12px;
}
.sheet-img {
  border-radius: 10px;
  width: 100%;
  max-height: 46dvh;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 14px 28px rgba(100, 80, 55, .28));
}
.sheet-paper {
  border-radius: var(--r-lg);
  padding: 14px;
  background: radial-gradient(120% 100% at 50% 0%, #FFFDF7, #F3ECDB 75%, #EBE2CD 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), inset 0 2px 10px rgba(150, 130, 105, .16);
  position: relative;
}
.sheet-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .08em;
  margin: 14px 2px 4px;
}
.sheet-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .06em;
  margin: 0 2px 12px;
}
.kv {
  display: grid;
  grid-template-columns: minmax(4.6em, max-content) minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 2px 14px;
}
.kv dt { color: var(--ink-3); letter-spacing: .06em; white-space: nowrap; }
.kv dd { margin: 0; color: var(--ink-2); }

.btn-row { display: flex; gap: 10px; margin-top: 4px; }
.btn[disabled], .btn.is-off {
  opacity: .42;
  filter: saturate(.4);
  box-shadow: none;
  cursor: default;
}
.btn {
  flex: 1;
  height: 50px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .16s, filter .2s;
  font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #FFF;
  background: linear-gradient(160deg, #D34E40, var(--red) 70%);
  box-shadow: 0 14px 26px -14px rgba(160, 32, 24, .95), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.tip {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 12px 2px 0;
}

/* ---------- 语言选择 ---------- */
.lang-list { display: grid; gap: 8px; padding: 2px 0 4px; }
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13.5px 17px;
  border-radius: 17px;
  font-size: 15.5px;
  letter-spacing: .02em;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .7);
  background: linear-gradient(150deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .34));
  box-shadow: 0 8px 20px -14px rgba(70, 52, 36, .6), inset 0 1px 0 rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: transform .16s, background .2s;
}
.lang-item:active { transform: scale(.98); }
.lang-item .tm { color: var(--ink-4); font-size: 12px; letter-spacing: .06em; }
.lang-item.cur {
  background: linear-gradient(150deg, rgba(189, 39, 30, .1), rgba(189, 39, 30, .04));
  border-color: rgba(189, 39, 30, .3);
}
.lang-item.cur .tm { color: var(--red); font-weight: 600; }
.lang-item.sel { outline: 2px solid rgba(189, 39, 30, .55); outline-offset: -1px; }

/* ---------- 设置页（iOS 白） ---------- */
.set-head {
  padding: calc(68px + var(--safe-top)) 0 12px;
  text-align: center;
}
.set-head h1 {
  font-size: 34px;
  letter-spacing: -.01em;
  margin: 0;
  color: #1C1C1E;
  font-family: var(--sans);
  font-weight: 700;
}
.set-group { margin: 22px 0 0; }
.set-group h2 {
  font-size: 12.5px;
  font-weight: 500;
  color: #8A8A8E;
  letter-spacing: .06em;
  margin: 0 0 7px 16px;
  text-transform: uppercase;
}
.set-card {
  background: #FFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16.5px;
  color: #1C1C1E;
  text-align: left;
  cursor: pointer;
  position: relative;
  min-height: 50px;
  transition: background .15s;
}
.set-row:active { background: #E9E9EB; }
.set-row + .set-row::before {
  content: "";
  position: absolute;
  top: 0; left: 15px; right: 0;
  height: .5px;
  background: #D8D8DC;
}
.set-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  color: #FFF;
}
.set-ico img { width: 28px; height: 28px; border-radius: 8px; }
.set-ico svg { width: 17px; height: 17px; stroke: #FFF; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.set-row .label { flex: 1; }
.set-row .val { color: #8A8A8E; font-size: 15.5px; }
.set-row .chev { color: #C2C2C7; display: flex; }
.set-row .chev svg { width: 8px; height: 13px; stroke: #C2C2C7; fill: none; stroke-width: 2.2; }
.set-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: #8A8A8E;
  margin: 7px 16px 0;
}
.set-foot {
  text-align: center;
  color: #B0B0B5;
  font-size: 12px;
  padding: 26px 0 0;
  line-height: 1.7;
}

/* 开关 */
.switch {
  width: 51px; height: 31px;
  border-radius: 999px;
  background: #E4E4EA;
  position: relative;
  flex: 0 0 auto;
  transition: background .25s;
}
.switch.on { background: #34C759; }
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.switch.on::after { transform: translateX(20px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 34px + var(--safe-bot));
  transform: translate(-50%, 14px);
  z-index: 120;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 16px 34px -16px rgba(50, 36, 24, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s, transform .26s;
  white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页脚 ---------- */
.foot {
  text-align: center;
  color: var(--ink-4);
  font-size: 11.5px;
  letter-spacing: .06em;
  padding: 28px 0 6px;
  line-height: 1.8;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 操作日志弹层 ---------- */
.log-box {
  background: #FFF;
  border-radius: 14px;
  padding: 6px 12px;
  box-shadow: 0 1px 3px rgba(20, 16, 12, .07), inset 0 0 0 .5px rgba(0, 0, 0, .05);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
}
.log-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: .5px solid #EFEFF3;
}
.log-row:last-child { border-bottom: 0; }
.log-t { color: #8A8A8E; font-size: 11px; white-space: nowrap; }
.log-a { color: var(--red); font-weight: 600; white-space: nowrap; }
.log-d { color: #1C1C1E; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   开场动画：印章居中 + 进度条 → 平滑缩小到页面上端
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 30%, #FFFDF6 0%, #FBF7EC 46%, #F0E9D8 100%);
  transition: opacity .42s ease .06s, visibility .42s;
}
.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transform-origin: center top;
  transition: transform .62s cubic-bezier(.34, 1.12, .36, 1), opacity .5s ease;
  will-change: transform;
}
.splash-logo {
  width: 168px; height: 168px;
  border-radius: 26px;
  filter: drop-shadow(0 18px 32px rgba(150, 40, 30, .22));
  animation: splashIn .72s cubic-bezier(.22, .9, .26, 1) both;
}
@keyframes splashIn {
  from { transform: scale(.82) translateY(10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.splash-bar {
  width: 168px; height: 3px;
  border-radius: 3px;
  background: rgba(120, 100, 82, .18);
  overflow: hidden;
}
.splash-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #BD271E, #E0574A);
  transition: width .24s ease;
}
/* 收尾：缩到页面上端 */
.splash.shrink .splash-inner {
  transform: translate(var(--to-x, 0px), var(--to-y, -40vh)) scale(var(--to-scale, .26));
  opacity: .96;
}
.splash.shrink .splash-bar { opacity: 0; transition: opacity .2s ease; }

/* ---------- 询价弹层：三行联系方式 ---------- */
.contact-list { display: flex; flex-direction: column; gap: 2px; }
.contact-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0;
  border-bottom: .5px solid rgba(150, 130, 105, .16);
}
.contact-row:last-child { border-bottom: 0; }
.contact-k {
  flex: 0 0 auto; min-width: 44px;
  font-size: 12px; letter-spacing: .08em; color: var(--ink-3);
}
.contact-v {
  flex: 1 1 auto; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink);
  word-break: break-all;
  text-decoration: none;
}
.contact-v:active { color: var(--red); }

/* 接受定制（首页显眼标签） */
.custom-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 15px auto 0;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--red);
  background: rgba(189, 39, 30, .077);
  border: 1px solid rgba(189, 39, 30, .2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 6px 18px rgba(189, 39, 30, .07);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.custom-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(189, 39, 30, .15);
  animation: customPulse 2.6s ease-in-out infinite;
}
@keyframes customPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(189, 39, 30, .15); }
  50% { box-shadow: 0 0 0 6px rgba(189, 39, 30, .04); }
}
@media (prefers-reduced-motion: reduce) { .custom-dot { animation: none; } }
