:root {
  --paper: #f3eee6;
  --paper-soft: #faf7f2;
  --paper-deep: #e9e2d6;
  --ink: #191612;
  --ink-soft: #2b2620;
  --muted: #6f665a;
  --line: rgba(25, 22, 18, 0.14);
  --line-strong: rgba(25, 22, 18, 0.26);
  --accent: #9c5a3c;
  --accent-soft: #e8d9cd;
  --danger: #b3402c;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 24px 60px -30px rgba(25, 22, 18, 0.45);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
button { color: inherit; }

/* ---------- 顶部导航 ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 52px);
  color: #f7f2ea;
  background: linear-gradient(180deg, rgba(15, 13, 10, 0.45) 0%, rgba(15, 13, 10, 0.16) 60%, rgba(15, 13, 10, 0) 100%);
  background-repeat: no-repeat;
  transition: background 0.35s ease, color 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.topbar.solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.topbar-nav a {
  text-decoration: none;
  opacity: 0.82;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.topbar-nav a:hover { opacity: 1; }

/* ---------- 个人横幅 ---------- */

.profile-section {
  background: #fff;
}

.profile-banner {
  position: relative;
  isolation: isolate;
  max-width: 1200px;
  height: clamp(228px, 20vw, 294px);
  margin: 0 auto;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  background: #15120f;
  color: #f7f2ea;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.profile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.profile-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 13, 10, 0.05) 0%, rgba(15, 13, 10, 0.3) 40%, rgba(15, 13, 10, 0.82) 100%),
    linear-gradient(90deg, rgba(15, 13, 10, 0.42), rgba(15, 13, 10, 0) 70%);
  pointer-events: none;
}

.profile-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  padding: clamp(16px, 2.4vw, 30px);
}

.profile-body h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.profile-intro {
  margin: 0;
  max-width: 760px;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  opacity: 0.86;
  white-space: pre-line;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  opacity: 0.82;
}

.profile-tags span {
  position: relative;
}

.profile-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.profile-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(247, 242, 234, 0.55);
  background: rgba(247, 242, 234, 0.12);
}

.profile-net {
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.profile-designer {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.62;
}

.profile-meta {
  margin-left: auto;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  opacity: 0.62;
}

.profile-meta b {
  font-weight: 600;
  color: #fff;
}

.profile-meta .sep {
  opacity: 0.45;
  margin: 0 5px;
}

.share-flag {
  position: absolute;
  top: 74px;
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  padding: 5px 12px;
  border: 1px solid rgba(247, 242, 234, 0.35);
  background: rgba(15, 13, 10, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .profile-banner {
    height: clamp(160px, 42vw, 218px);
    margin: 0;
    border-radius: 0;
  }

  .profile-body {
    gap: 5px;
    padding: 12px 14px 12px;
  }

  .profile-body h1 {
    font-size: 19px;
    line-height: 1.3;
  }

  .profile-intro {
    font-size: 11px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .profile-tags {
    font-size: 10.5px;
    gap: 3px 10px;
  }

  .profile-avatar {
    width: 26px;
    height: 26px;
  }

  .profile-net {
    font-size: 11.5px;
  }

  .profile-meta,
  .share-flag {
    display: none;
  }
}

/* ---------- 作品列表 ---------- */

.works {
  padding: 26px clamp(16px, 4vw, 48px) 84px;
  background: #fff;
}

.works-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 6px 0 18px;
  margin-bottom: 16px;
  background: #f7f7f5;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.search-box input::placeholder { color: #a09a90; }

.search-box svg {
  width: 20px;
  height: 20px;
  opacity: 0.55;
  flex: none;
  margin-right: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter:hover { border-color: var(--line-strong); color: var(--ink); }

a.filter { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }

.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(25, 22, 18, 0.07);
  animation: cardIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card-media img { transform: scale(1.04); }

.card-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 12px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ink);
}

.card-style {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.badge360 {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(18, 15, 12, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.badge360 svg { width: 11px; height: 11px; }

.empty {
  padding: 90px 20px;
  text-align: center;
  color: var(--muted);
}

.empty svg { width: 44px; height: 44px; opacity: 0.35; margin-bottom: 18px; }

.empty h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}

.empty p { margin: 0; font-size: 13px; letter-spacing: 0.06em; }

/* ---------- 页脚 ---------- */

.footer {
  padding: 40px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  background: #fff;
}

.footer a { text-decoration: none; opacity: 0.85; }
.footer a:hover { opacity: 1; }
.footer .sep { opacity: 0.4; margin: 0 10px; }

/* ---------- 密码门禁 ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(rgba(25, 22, 18, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--paper);
}

.gate.hidden { display: none; }

.gate-card {
  width: min(430px, 100%);
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.gate-lock {
  width: 58px;
  height: 58px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: var(--paper-soft);
}

.gate-lock svg { width: 22px; height: 22px; }

.gate-kicker {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.gate h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.08em;
  margin: 14px 0 10px;
}

.gate-sub {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.digits {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 16px;
}

.digit {
  width: 66px;
  height: 80px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--paper-soft);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  caret-color: var(--accent);
}

.digit:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(25, 22, 18, 0.06);
}

.digit.filled { border-color: var(--accent); }

.gate-error {
  min-height: 22px;
  color: var(--danger);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.gate-btn {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-soft);
  font-size: 14px;
  letter-spacing: 0.24em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.gate-btn:hover:not(:disabled) { transform: translateY(-1px); }
.gate-btn:disabled { opacity: 0.35; cursor: default; }

.gate-foot {
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  opacity: 0.8;
}

.shake { animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* ---------- 全景浏览 ---------- */

body.viewer {
  background: #0d0b09;
  color: #fff;
  overflow: hidden;
  height: 100svh;
}

#panorama {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#panorama .v-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0d0b09;
  animation: photoIn 0.5s ease both;
}

@keyframes photoIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.v-top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.v-top > * { pointer-events: auto; }

.v-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  opacity: 0.92;
  transition: opacity 0.2s;
}

.v-back:hover { opacity: 1; }
.v-back svg { width: 14px; height: 14px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }

.v-title {
  min-width: 0;
  max-width: 46vw;
  text-align: right;
  padding: 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.v-title h1 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-title p {
  margin: 2px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-title p:empty { display: none; }

.v-tools {
  position: fixed;
  right: clamp(10px, 2.4vw, 18px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 21;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-tools .v-btn {
  width: 38px;
  height: 38px;
}

.v-tools .v-btn svg { width: 15px; height: 15px; }

.v-btn.v-tool { text-decoration: none; }

.v-btn.v-tool.active {
  background: rgba(243, 238, 230, 0.85);
  color: #191612;
  border-color: rgba(243, 238, 230, 0.85);
}

.v-scenes {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 21;
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: min(94vw, 880px);
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.v-scenes::-webkit-scrollbar { display: none; }

.v-scene {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 18, 15, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.v-scene:hover { background: rgba(20, 18, 15, 0.72); }

.v-scene.active {
  background: #f3eee6;
  border-color: #f3eee6;
  color: #191612;
}

.v-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 18, 15, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.v-btn:hover { background: rgba(20, 18, 15, 0.6); }
.v-btn svg { width: 18px; height: 18px; }
.v-btn.active { background: rgba(255, 255, 255, 0.24); }
.v-btn:disabled { opacity: 0.28; cursor: default; }

.v-marquee {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 25;
  height: calc(30px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(24, 22, 19, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.v-marquee span {
  display: inline-block;
  white-space: nowrap;
  padding-left: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.86);
  animation: vMarquee 18s linear infinite;
}

@keyframes vMarquee {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

body.viewer.has-marquee .v-top {
  padding-top: calc(12px + 30px + env(safe-area-inset-top, 0px));
}

.v-loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  gap: 24px;
  background: #0d0b09;
  transition: opacity 0.6s ease;
}

.v-loading.hidden { opacity: 0; pointer-events: none; }

.v-loading p {
  margin: 22px 0 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.85);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 硬装报价 ---------- */

.v-quote-cta {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 238, 230, 0.55);
  background: #f3eee6;
  color: #191612;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  will-change: opacity;
  animation: quoteBlink 2.8s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s;
}

.v-quote-cta[hidden] { display: none; }
.v-quote-cta:hover { background: #ffffff; transform: translateY(-1px); animation-play-state: paused; }

@keyframes quoteBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.v-quote-cta.is-intro {
  animation:
    quoteIntro 1.6s cubic-bezier(0.2, 0.8, 0.24, 1) 1 both,
    quoteBlink 2.8s ease-in-out 1.6s infinite;
}

@keyframes quoteIntro {
  0% {
    opacity: 0;
    transform: translateY(var(--quote-intro-y, 42vh)) scale(0.45);
  }
  30% { opacity: 1; }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.quote-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 7, 6, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: quoteFade 0.25s ease both;
}

.quote-layer[hidden] { display: none; }

.quote-sheet {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  background: #f3eee6;
  color: #191612;
  border-radius: 18px;
  padding: 34px 30px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: quoteUp 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.quote-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a6f63;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.quote-close:hover { background: rgba(25, 22, 18, 0.07); color: #191612; }
.quote-close svg { width: 16px; height: 16px; }

.quote-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.quote-progress .qp {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(25, 22, 18, 0.14);
  transition: background 0.25s;
}
.quote-progress .qp.on { background: var(--accent); }

.quote-step h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.quote-sub {
  margin: 0 0 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.quote-sub strong { color: var(--ink); font-weight: 500; }

.quote-label {
  display: block;
  margin: 16px 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: opacity 0.2s;
}

.quote-field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.quote-field:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(25, 22, 18, 0.05);
}

.quote-challenge { display: flex; gap: 10px; align-items: center; margin-top: 2px; }
.quote-challenge .quote-field { flex: 1; min-width: 0; }

.quote-ghost {
  flex: none;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}
.quote-ghost:hover { background: rgba(25, 22, 18, 0.05); }

.quote-primary {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.quote-primary:hover:not(:disabled) { transform: translateY(-1px); }
.quote-primary:disabled { opacity: 0.5; cursor: default; }

.quote-actions { display: flex; gap: 10px; margin-top: 24px; }
.quote-actions .quote-ghost { height: 48px; padding: 0 18px; }
.quote-actions .quote-primary { margin-top: 0; }

.quote-hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--accent);
}

.quote-err {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--danger);
}
.quote-err[hidden] { display: none; }

.quote-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 4px;
}

.quote-total strong {
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.quote-total em {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

.quote-items-title {
  margin: 24px 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.quote-items-title[hidden] { display: none; }

.quote-items {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.quote-items li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
}

.quote-items li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes quoteFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes quoteUp {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes quoteRise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .topbar-nav { gap: 14px; font-size: 12px; }
  .works { padding: 18px 14px 64px; }
  .search-box { height: 44px; border-radius: 10px; margin-bottom: 12px; }
  .search-box input { font-size: 13.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 10px; }
  .card-info { padding: 8px 10px 10px; gap: 6px; }
  .card-title { font-size: 13.5px; }
  .card-style { display: none; }
  .badge360 { top: 8px; left: 8px; padding: 3px 7px; font-size: 9.5px; }
  .filters { gap: 7px; justify-content: flex-start; }
  .filter { padding: 6px 12px; font-size: 11.5px; }
  .footer { flex-direction: column; gap: 10px; text-align: center; }
  .digit { width: 58px; height: 72px; font-size: 30px; }
  .v-top { gap: 6px; padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px; }
  .v-back { padding: 6px 3px; font-size: 12px; }
  .v-back svg { width: 13px; height: 13px; }
  .v-title { max-width: 42vw; }
  .v-title h1 { font-size: 12.5px; }
  .v-title p { font-size: 10px; }
  .v-quote-cta { padding: 8px 11px; font-size: 11.5px; letter-spacing: 0.02em; }
  .quote-layer {
    place-items: end stretch;
    padding: 0;
  }
  .quote-sheet {
    width: 100%;
    max-height: 88svh;
    border-radius: 22px 22px 0 0;
    padding: 30px 22px calc(24px + env(safe-area-inset-bottom, 0px));
    animation: quoteRise 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
