:root {
  color-scheme: light;
  --page: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #fff9f5;
  --ink: #211f1d;
  --muted: #77716b;
  --line: #e9e4dd;
  --primary: #ff5a3c;
  --primary-dark: #d94329;
  --primary-soft: #fff0eb;
  --green: #15916d;
  --blue: #4c77e8;
  --yellow: #ffca58;
  --shadow: 0 18px 50px rgba(58, 42, 31, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 13px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 202, 88, 0.18), transparent 28rem),
    var(--page);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(232, 226, 217, 0.86);
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(145deg, #ff775f, #ff482b);
  box-shadow: 0 8px 20px rgba(255, 90, 60, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-button:hover,
.nav-button.active {
  color: var(--ink);
  background: var(--surface);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-button {
  min-height: 42px;
  max-width: 180px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.count-dot {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--page);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.main-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 410px;
  margin: 28px 0 20px;
  padding: 48px clamp(26px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid #e5e1d8;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 235, 0.86)),
    #f4f1e8;
  color: var(--ink);
  box-shadow: 0 22px 65px rgba(65, 62, 48, 0.09);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -170px;
  top: -210px;
  border-radius: 50%;
  background: rgba(188, 203, 164, 0.34);
}

.hero::after {
  width: 46%;
  height: 100%;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 20%, rgba(255, 255, 255, 0.48));
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #647252;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #84966c;
  box-shadow: 0 0 0 5px rgba(132, 150, 108, 0.14);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: #252a22;
  font-size: clamp(42px, 5.3vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 590px;
  margin: 20px 0 26px;
  color: #6f7169;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 90, 60, 0.25);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.secondary-button {
  background: var(--ink);
  color: #fff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.danger-button {
  background: #fff0ee;
  color: #c8412b;
}

.hero .ghost-button {
  border-color: #d9d5ca;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero-assurances {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #77786f;
  font-size: 12px;
  font-weight: 700;
}

.hero-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-assurances span::before {
  content: "✓";
  color: #72835c;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.collection-showcase {
  position: relative;
  width: min(100%, 410px);
  padding: 22px 22px 18px;
  border: 1px solid rgba(125, 128, 111, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 48px rgba(76, 74, 61, 0.12);
  backdrop-filter: blur(12px);
}

.showcase-heading {
  display: grid;
  gap: 4px;
}

.showcase-heading span {
  color: #7a836d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.showcase-heading strong {
  font-size: 18px;
}

.swap-showcase {
  min-height: 235px;
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.swap-toy-card {
  position: relative;
  width: 140px;
  margin: 0;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #ebe9e2;
  border-radius: 24px;
  background: #f6f6f4;
  box-shadow: 0 18px 36px rgba(50, 51, 43, 0.12);
}

.swap-toy-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.swap-toy-card figcaption {
  padding: 10px 8px 11px;
  background: #fff;
  color: #5d6257;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.swap-owner {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #647252;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.swap-owner.wanted {
  background: var(--primary);
}

.swap-match {
  min-width: 72px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #60665a;
  text-align: center;
}

.swap-match strong {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef1e8;
  color: #647252;
  font-size: 25px;
}

.swap-match span {
  font-size: 11px;
  font-weight: 900;
}

.swap-match small {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.showcase-footer {
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(125, 128, 111, 0.16);
  color: #74786d;
  font-size: 11px;
  font-weight: 700;
}

.search-panel {
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto 34px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(226, 218, 207, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(50, 39, 30, 0.11);
}

.search-icon {
  margin-left: 8px;
  font-size: 20px;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}

.search-panel button {
  min-width: 94px;
}

.quick-stats {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.stat-card strong {
  display: block;
  font-size: 26px;
}

.stat-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  margin: 28px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
}

.chip-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(58, 42, 31, 0.1);
}

.product-art {
  position: relative;
  height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.product-art::before {
  width: 130px;
  height: 130px;
  top: -46px;
  right: -25px;
}

.product-art::after {
  width: 78px;
  height: 78px;
  bottom: -20px;
  left: -12px;
}

.toy-emoji {
  position: relative;
  z-index: 2;
  font-size: 82px;
  filter: drop-shadow(0 18px 12px rgba(30, 22, 18, 0.18));
  transition: transform 0.2s ease;
}

.product-card:hover .toy-emoji {
  transform: rotate(-4deg) scale(1.05);
}

.sheet-art {
  position: relative;
  overflow: hidden;
}

.sheet-art::before,
.sheet-art::after {
  opacity: 0.42;
}

.photo-art {
  position: relative;
  background: #f7f8f5 !important;
  overflow: hidden;
}

.photo-art::before,
.photo-art::after {
  display: none;
}

.product-photo {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  transform: scale(1.001);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.product-card:hover .product-photo {
  transform: scale(1.045);
  filter: drop-shadow(0 16px 18px rgba(54, 59, 40, 0.12));
}

.mini-art.photo-art .product-photo,
.detail-art.photo-art .product-photo {
  transform: none;
}

.toy-sheet-image {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 455%;
  max-width: none;
  height: auto;
  transform: translate(var(--crop-x), var(--crop-y));
  filter: drop-shadow(0 14px 14px rgba(54, 59, 40, 0.16));
  transition: width 0.2s ease, filter 0.2s ease;
}

.product-card:hover .toy-sheet-image {
  width: 468%;
  filter: drop-shadow(0 18px 16px rgba(54, 59, 40, 0.22));
}

.product-art.sheet-art::before {
  display: none;
}

.product-art.sheet-art::after {
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 30px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 78%);
  opacity: 1;
}

.reference-pill {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf1df;
  color: #61704b;
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
}

.art-label {
  position: absolute;
  left: 13px;
  top: 13px;
  z-index: 4;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.favorite-float {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(49, 36, 28, 0.1);
}

.favorite-float.active {
  color: var(--primary);
}

.product-body {
  padding: 16px;
}

.brand-line {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preference-pill {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.preference-pill.liked {
  background: #e7f5ec;
  color: #27704b;
}

.preference-pill.disliked {
  background: #f1efec;
  color: #817972;
}

.product-body h3 {
  min-height: 46px;
  margin: 7px 0 12px;
  font-size: 16px;
  line-height: 1.45;
}

.price-row,
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-row strong {
  color: var(--primary-dark);
  font-size: 21px;
}

.price-row span,
.meta-row {
  color: var(--muted);
  font-size: 12px;
}

.meta-row {
  margin-top: 9px;
}

.exchange-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exchange-row strong {
  color: var(--green);
  font-size: 18px;
}

.exchange-row span {
  color: var(--muted);
  font-size: 11px;
}

.exchange-want {
  margin: 10px 0 8px;
  padding: 8px 10px;
  display: flex;
  gap: 7px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 11px;
}

.exchange-want span {
  color: var(--muted);
}

.exchange-want strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-toolbar {
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-search {
  flex: 1;
  min-width: 220px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  outline: none;
}

.toolbar-select {
  height: 46px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  outline: none;
}

.empty-state {
  padding: 76px 24px;
  text-align: center;
  border: 1px dashed #d9d1c7;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
}

.empty-icon {
  font-size: 46px;
}

.empty-state h3 {
  margin: 13px 0 8px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  margin: 24px 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(58, 42, 31, 0.05);
}

.panel-body {
  padding: clamp(20px, 4vw, 34px);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.guest-sell-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 15px;
  border: 1px solid #bcdccf;
  border-radius: 14px;
  color: #376656;
  background: #eef9f4;
  font-size: 13px;
}

.guest-sell-notice span,
.source-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #287a60;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.qiandao-picker {
  padding: 18px;
  border: 1px solid #d9d4f0;
  border-radius: 17px;
  background: linear-gradient(145deg, #faf8ff, #fff);
}

.qiandao-picker-title,
.qiandao-imported-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.qiandao-picker-title > span:first-child,
.qiandao-imported-head > span:last-child {
  display: grid;
  gap: 3px;
}

.qiandao-picker-title small,
.qiandao-imported-head small,
.qiandao-imported-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.qiandao-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.qiandao-search-row .primary-button {
  min-width: 104px;
}

.qiandao-message,
.qiandao-loading {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(99, 79, 172, 0.07);
  color: var(--muted);
  font-size: 12px;
}

.qiandao-message.error {
  background: #fff0f0;
  color: #a53e3e;
}

.qiandao-loading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qiandao-loading span {
  width: 15px;
  height: 15px;
  border: 2px solid #d4cee9;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: qiandao-spin 0.7s linear infinite;
}

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

.qiandao-results {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.qiandao-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.qiandao-result:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.qiandao-result-image,
.qiandao-imported-cover {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #eef2e4;
  color: var(--primary);
  font-weight: 900;
}

.qiandao-result-image img,
.qiandao-imported-cover img,
.qiandao-variant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qiandao-result-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.qiandao-result-copy strong,
.qiandao-result-copy small,
.qiandao-result-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qiandao-result-copy small { color: var(--muted); }
.qiandao-result-copy em { color: var(--primary); font-size: 12px; font-style: normal; font-weight: 800; }
.qiandao-result-action { color: var(--primary); font-size: 12px; font-weight: 800; }

.qiandao-imported {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.qiandao-imported-head {
  justify-content: flex-start;
}

.qiandao-imported-cover {
  flex: 0 0 58px;
}

.qiandao-variants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.qiandao-variant {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  text-align: left;
}

.qiandao-variant > span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2e4;
}

.qiandao-variant strong,
.qiandao-variant small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qiandao-variant strong { font-size: 12px; }
.qiandao-variant small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.qiandao-variant.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.form-divider::before,
.form-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
  background: #fcfbf9;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.exchange-check-field {
  align-content: end;
}

.exchange-check-field label {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.exchange-check-field input {
  width: auto;
  margin: 0;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.preview-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.preview-card .product-art {
  height: 250px;
}

.seller-promise {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 13px;
}

.promise-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
}

.order-tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0;
}

.order-list {
  display: grid;
  gap: 14px;
}

.order-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.order-head,
.order-product,
.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff3df;
  color: #9a5e00;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.done {
  background: #eaf8f2;
  color: var(--green);
}

.order-product {
  justify-content: flex-start;
  padding: 16px 0;
}

.mini-art {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 17px;
  font-size: 36px;
}

.mini-art.sheet-art .toy-sheet-image {
  width: 510%;
}

.order-product h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.order-product p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.order-price {
  margin-left: auto;
  text-align: right;
}

.order-price strong {
  display: block;
}

.order-price span {
  color: var(--muted);
  font-size: 12px;
}

.order-foot {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.order-foot small {
  color: var(--muted);
}

.order-actions {
  display: flex;
  gap: 8px;
}

.order-actions button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
}

.exchange-order-products {
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.exchange-order-products > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.exchange-order-products > div > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.exchange-order-products small,
.exchange-order-products em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.exchange-order-products strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-order-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef1e8;
  color: #647252;
  font-size: 21px;
  font-weight: 900;
}

.exchange-order-meta {
  padding: 11px 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.exchange-order-message {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.primary-button:disabled,
.danger-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.exchange-order-hero {
  margin-top: 28px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e1ddd2;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdf8 0%, #f1f5e9 100%);
}

.exchange-order-hero h2 {
  margin: 6px 0;
  font-size: 28px;
}

.exchange-order-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.exchange-order-summary {
  min-width: 124px;
  padding: 17px 20px;
  display: grid;
  text-align: center;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(65, 70, 55, 0.09);
}

.exchange-order-summary strong {
  color: var(--primary-dark);
  font-size: 30px;
}

.exchange-order-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.guest-order-notice {
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e8dfc7;
  border-radius: 16px;
  background: #fffaf0;
  font-size: 12px;
}

.guest-order-notice span {
  flex: 1;
  color: var(--muted);
}

.guest-order-notice button {
  min-height: 36px;
}

.exchange-order-card.has-issue {
  border-color: #efb4aa;
  box-shadow: inset 4px 0 #dd5c46;
}

.exchange-current-status {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
  background: #f5f1e8;
}

.exchange-current-status span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.exchange-current-status strong {
  font-size: 13px;
}

.exchange-stepper {
  position: relative;
  margin: 20px 8px 2px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.exchange-stepper::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--line);
}

.exchange-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #aaa59c;
  font-size: 10px;
  font-weight: 800;
}

.exchange-step i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 11px;
  font-style: normal;
}

.exchange-step.done,
.exchange-step.active {
  color: var(--ink);
}

.exchange-step.done i {
  border-color: #7e9162;
  background: #7e9162;
  color: #fff;
}

.exchange-step.active i {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 90, 60, 0.12);
}

.exchange-item-image {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 15px;
  background: #f2efe8;
  color: var(--muted);
  font-weight: 900;
}

.exchange-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exchange-shipment-grid {
  margin: 2px 0 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.exchange-shipment-card {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.exchange-shipment-card > span,
.exchange-shipment-card small {
  color: var(--muted);
  font-size: 10px;
}

.exchange-shipment-card strong {
  font-size: 13px;
}

.exchange-shipment-card.shipped {
  border-style: solid;
  border-color: #d7dfc9;
  background: #f4f7ef;
}

.exchange-shipment-card.received {
  border-style: solid;
  border-color: #bee2d5;
  background: #eff9f5;
}

.exchange-condition-grid {
  margin-bottom: 14px;
}

.exchange-action-summary {
  margin: 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.exchange-action-summary span {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 5px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.exchange-action-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-action-summary b {
  color: #7e9162;
  font-size: 22px;
}

.exchange-risk-note,
.exchange-evidence-checklist,
.exchange-liability-note {
  margin: 14px 0;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff7e9;
  color: #74582d;
  font-size: 12px;
  line-height: 1.65;
}

.exchange-risk-note.strong {
  border: 1px solid #efb4aa;
  background: #fff2ef;
  color: #9d3f30;
}

.exchange-evidence-checklist {
  display: grid;
  gap: 5px;
  background: #f3f6ed;
  color: #556346;
}

.exchange-evidence-checklist.receive {
  background: #eef7f3;
  color: #356554;
}

.confirm-check {
  margin: 14px 0;
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.5;
}

.confirm-check input {
  margin-top: 3px;
}

.feature-kicker.danger {
  color: #c8412b;
}

.exchange-detail-modal {
  width: min(860px, 100%);
}

.exchange-detail-header {
  padding: 34px 38px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.exchange-detail-header h2 {
  margin: 6px 0;
  font-size: 28px;
}

.exchange-detail-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.exchange-stepper.detail {
  margin: 24px 38px 12px;
}

.exchange-detail-body {
  padding: 12px 38px 28px;
  display: grid;
  gap: 22px;
}

.exchange-detail-body section > h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.detail-products {
  padding-top: 6px;
}

.exchange-timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  min-height: 52px;
  padding-left: 26px;
  display: flex;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -12px;
  left: 6px;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item > i {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 11px;
  height: 11px;
  border: 3px solid #dce5d1;
  border-radius: 50%;
  background: #7e9162;
}

.timeline-item > div {
  display: grid;
  gap: 3px;
}

.timeline-item strong {
  font-size: 12px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 10px;
}

.exchange-liability-note {
  margin: 0;
  display: grid;
  gap: 5px;
  background: #f4f1ea;
  color: var(--muted);
}

.exchange-liability-note strong {
  color: var(--ink);
}

.exchange-detail-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 38px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.legacy-order-section {
  margin-top: 44px;
}

.profile-hero {
  margin: 28px 0 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 25px;
  background: linear-gradient(145deg, #ffe078, #ff785d);
  color: var(--ink);
  font-size: 32px;
}

.profile-hero h1 {
  margin: 0 0 6px;
  font-size: 25px;
}

.profile-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.profile-badge {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.auth-gate {
  max-width: 620px;
  margin: 72px auto;
  text-align: center;
}

.auth-gate .panel-body {
  padding: 54px clamp(24px, 7vw, 70px);
}

.auth-gate h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 4vw, 38px);
}

.auth-gate p {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.75;
}

.auth-lock {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--soft-primary);
  color: var(--primary);
  font-size: 23px;
  font-weight: 900;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.collection-section {
  margin-top: 24px;
}

.preference-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.preference-section .section-head {
  margin-bottom: 18px;
}

.preference-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preference-groups > div {
  padding: 15px;
  border-radius: 15px;
  background: var(--surface-soft);
}

.preference-groups strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.preference-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preference-chip {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e7f5ec;
  color: #27704b;
  font-size: 11px;
  font-weight: 800;
}

.preference-chip-row.disliked .preference-chip {
  background: #eeeae6;
  color: #746c65;
}

.preference-empty {
  color: var(--muted);
  font-size: 12px;
}

.preference-list {
  max-height: 430px;
  margin: 20px 0;
  display: grid;
  gap: 9px;
  overflow: auto;
}

.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.preference-row > div {
  display: flex;
  gap: 7px;
}

.preference-choice {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.preference-choice.like.active {
  border-color: #83c7a1;
  background: #e7f5ec;
  color: #27704b;
}

.preference-choice.dislike.active {
  border-color: #c8beb6;
  background: #eeeae6;
  color: #655e58;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.collection-item {
  padding: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.collection-item .mini-art {
  width: 56px;
  height: 56px;
  font-size: 28px;
  border-radius: 14px;
}

.collection-item h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.collection-item span {
  color: var(--muted);
  font-size: 11px;
}

.bottom-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 20, 18, 0.56);
  backdrop-filter: blur(8px);
  animation: fade-in 0.18s ease;
}

.modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 35px 90px rgba(21, 17, 14, 0.3);
  animation: modal-up 0.22s ease;
}

.modal.small {
  width: min(560px, 100%);
}

.modal-close {
  position: sticky;
  top: 14px;
  z-index: 10;
  float: right;
  width: 38px;
  height: 38px;
  margin: 14px 14px -52px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.detail-art {
  min-height: 460px;
  display: grid;
  place-items: center;
  font-size: 126px;
}

.detail-art.sheet-art .toy-sheet-image {
  width: 650%;
}

.detail-body {
  padding: 48px 38px 34px;
}

.detail-body h2 {
  margin: 9px 0 10px;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.detail-body > p {
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2efe9;
  color: #615b55;
  font-size: 11px;
  font-weight: 800;
}

.collection-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.collection-actions button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
  cursor: pointer;
}

.collection-actions button.active {
  border-color: #ffb4a5;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
}

.listing-title {
  margin: 25px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.listing-title h3 {
  margin: 0;
}

.listing-title span {
  color: var(--muted);
  font-size: 12px;
}

.seller-list {
  display: grid;
  gap: 9px;
}

.seller-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.seller-row:hover,
.seller-row.active {
  border-color: rgba(100, 114, 82, 0.52);
  background: #fafbf7;
  box-shadow: 0 8px 24px rgba(73, 77, 62, 0.07);
}

.seller-info strong,
.seller-info span {
  display: block;
}

.seller-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.seller-info em {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.seller-price {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.buy-mini,
.contact-mini {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.seller-price small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.offer-select-mark {
  min-width: 42px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.seller-row.active .offer-select-mark {
  background: #e9f3e1;
  color: #526540;
}

.direct-buy-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.detail-action-bar {
  position: sticky;
  z-index: 6;
  bottom: -34px;
  margin: 22px -38px -34px;
  padding: 14px 38px;
  display: grid;
  grid-template-columns: auto minmax(150px, 0.85fr) minmax(170px, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.detail-action-bar button {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.detail-save-action {
  min-width: 74px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.detail-save-action span {
  display: block;
  color: var(--primary);
  font-size: 17px;
  line-height: 1;
}

.detail-save-action.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.detail-contact-action {
  border: 1px solid #eadb95;
  background: #fff3a8;
  color: #3e3925;
}

.detail-contact-action span {
  margin-right: 5px;
  font-size: 18px;
}

.detail-exchange-action {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.detail-contact-action:hover {
  background: #ffe86f;
}

.detail-exchange-action:hover {
  background: var(--primary);
}

.exchange-proposal-products {
  margin: 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.exchange-proposal-products > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.exchange-proposal-products small {
  color: var(--muted);
  font-size: 10px;
}

.exchange-proposal-products strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-proposal-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef1e8;
  color: #647252;
  font-size: 22px;
  font-weight: 900;
}

.exchange-match-summary {
  margin: 14px 0;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.exchange-match-summary span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.exchange-match-summary small {
  color: var(--muted);
  font-size: 9px;
}

.exchange-match-summary strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-confirm-note {
  margin: 14px 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f3f0e6;
  color: #746a4f;
  font-size: 11px;
  line-height: 1.6;
}

.contact-mini {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.contact-card,
.contact-empty {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.contact-card span,
.contact-card strong,
.contact-card small,
.contact-empty strong,
.contact-empty span {
  display: block;
}

.contact-card span {
  color: var(--muted);
  font-size: 12px;
}

.contact-card strong {
  margin: 8px 0;
  font-size: 24px;
  word-break: break-all;
}

.contact-card small,
.contact-empty span {
  color: var(--muted);
  line-height: 1.6;
}

.contact-empty strong {
  margin-bottom: 6px;
}

.contact-login {
  width: 100%;
}

.checkout-body {
  padding: 34px;
}

.checkout-body h2 {
  margin-top: 0;
}

.address-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfaf8;
}

.address-card strong,
.address-card span {
  display: block;
}

.address-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.summary-row.total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.summary-row.total strong {
  color: var(--primary-dark);
  font-size: 23px;
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 150;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 17px;
  border-radius: 999px;
  background: rgba(33, 31, 29, 0.94);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  animation: toast-in 0.2s ease;
}

.theme-toggle {
  font-size: 18px;
}

.night-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.experience-section {
  margin: 44px 0 50px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.experience-card {
  position: relative;
  min-height: 244px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -55px;
  bottom: -65px;
  border-radius: 50%;
  background: var(--feature-glow, rgba(255, 90, 60, 0.16));
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.experience-card.price-radar { --feature-glow: rgba(255, 202, 88, 0.33); }
.experience-card.verify-card { --feature-glow: rgba(48, 185, 140, 0.2); }
.experience-card.match-card { --feature-glow: rgba(91, 112, 231, 0.2); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.feature-kicker {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.experience-card > strong {
  margin: 7px 0 9px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.experience-card > span:not(.feature-icon):not(.feature-kicker) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.experience-card > em {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.night-talk-section {
  margin: 54px 0 24px;
}

.talk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.talk-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.talk-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.talk-head > span:last-child,
.talk-head strong,
.talk-head small {
  display: block;
}

.talk-head strong {
  font-size: 13px;
}

.talk-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.talk-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
}

.talk-avatar.coral { background: #ffe0d8; color: #a94431; }
.talk-avatar.blue { background: #dfe8ff; color: #3d5fae; }
.talk-avatar.green { background: #dff5ed; color: #23785f; }

.talk-card p {
  min-height: 88px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.talk-card button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.talk-card button.liked {
  color: var(--primary-dark);
}

.detail-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0 10px;
}

.detail-value-grid button {
  min-width: 0;
  padding: 13px;
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: pointer;
}

.detail-value-grid button > span,
.detail-value-grid button > small {
  color: var(--muted);
  font-size: 10px;
}

.detail-value-grid button > strong {
  font-size: 18px;
}

.detail-value-grid button > strong em {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
}

.series-progress {
  margin: 10px 0 17px;
  padding: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.series-progress span strong,
.series-progress span small {
  display: block;
}

.series-progress span strong {
  font-size: 12px;
}

.series-progress span small,
.series-progress > em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.series-progress > div {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.series-progress > div i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--yellow));
}

.insight-modal h2,
.verify-modal h2,
.match-modal h2 {
  margin: 8px 0 20px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.insight-product,
.verify-object {
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.insight-product > span:nth-child(2),
.verify-object > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.insight-product strong,
.insight-product small,
.verify-object strong,
.verify-object small {
  display: block;
}

.insight-product small,
.verify-object small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.insight-product > em {
  color: var(--primary-dark);
  font-size: 23px;
  font-style: normal;
  font-weight: 900;
}

.trend-chart {
  height: 130px;
  margin: 24px 0 8px;
  padding: 8px 4px 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, transparent 49%, var(--line) 50%, transparent 51%);
}

.trend-chart span {
  flex: 1;
  min-width: 5px;
  border-radius: 5px 5px 1px 1px;
  background: #d7d1c8;
}

.trend-chart span.latest {
  background: linear-gradient(to top, var(--primary), #ff9b6f);
}

.trend-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.insight-grid {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.insight-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.insight-grid small,
.insight-grid strong {
  display: block;
}

.insight-grid small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.insight-grid strong {
  font-size: 13px;
}

.insight-grid .good {
  color: var(--green);
}

.demo-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--yellow);
  background: #fff8e7;
  color: #715c32;
  font-size: 11px;
  line-height: 1.6;
}

.full-button {
  width: 100%;
}

.verify-loading {
  min-height: 210px;
  margin: 18px 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.verify-loading small {
  color: var(--muted);
}

.scan-ring {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  font-size: 25px;
  animation: scan 0.9s linear infinite;
}

.verify-result {
  margin: 18px 0;
}

.verify-score {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 14px;
  align-items: center;
  border-radius: 17px;
  background: #e9f8f2;
  color: #175f4a;
}

.verify-score span {
  font-size: 11px;
}

.verify-score strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 28px;
}

.verify-score em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.evidence-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.evidence-list > div {
  padding: 12px;
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.evidence-list > div > span {
  color: var(--green);
  font-weight: 900;
}

.evidence-list p,
.evidence-list strong,
.evidence-list small {
  display: block;
  margin: 0;
}

.evidence-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.match-list {
  margin: 18px 0;
  display: grid;
  gap: 9px;
}

.match-row {
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  cursor: pointer;
}

.match-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.match-row strong,
.match-row small,
.match-row em {
  display: block;
}

.match-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.match-row > em {
  color: var(--primary-dark);
  text-align: right;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #121311;
  --surface: #1c1e1b;
  --surface-soft: #232520;
  --ink: #f5f1e9;
  --muted: #a9a49a;
  --line: #343630;
  --primary: #ff6d50;
  --primary-dark: #ff8169;
  --primary-soft: #3a241f;
  --green: #58caa5;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 109, 80, 0.1), transparent 28rem),
    var(--page);
}

html[data-theme="dark"] .site-header {
  background: rgba(18, 19, 17, 0.88);
  border-bottom-color: rgba(52, 54, 48, 0.86);
}

html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .bottom-nav,
html[data-theme="dark"] .modal-close {
  background: rgba(28, 30, 27, 0.94);
}

html[data-theme="dark"] .toolbar-search,
html[data-theme="dark"] .toolbar-select,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .collection-actions button,
html[data-theme="dark"] .preference-choice,
html[data-theme="dark"] .address-card {
  background: var(--surface-soft);
  color: var(--ink);
}

html[data-theme="dark"] .chip.active,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .buy-mini,
html[data-theme="dark"] .feature-icon {
  background: #f3eee5;
  color: #1b1c19;
}

html[data-theme="dark"] .demo-note {
  background: #332e20;
  color: #d9c58f;
}

html[data-theme="dark"] .verify-score {
  background: #1e3a31;
  color: #91dfc3;
}

html[data-theme="dark"] .talk-avatar.coral { background: #482a25; color: #ff9f89; }
html[data-theme="dark"] .talk-avatar.blue { background: #28324e; color: #9db3ff; }
html[data-theme="dark"] .talk-avatar.green { background: #203a31; color: #85d7bc; }
html[data-theme="dark"] .detail-action-bar { background: rgba(28, 30, 27, 0.96); }
html[data-theme="dark"] .seller-row:hover,
html[data-theme="dark"] .seller-row.active { background: #23271f; }
html[data-theme="dark"] .detail-contact-action { border-color: #76672d; background: #635a2b; color: #fff4b6; }
html[data-theme="dark"] .qiandao-picker { background: linear-gradient(145deg, #25232d, #1c1e1b); }
html[data-theme="dark"] .guest-sell-notice { background: #19352c; border-color: #2c604f; color: #91dfc3; }

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-up {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr); padding-inline: 38px; }
  .hero h1 { font-size: 48px; }
  .collection-showcase { padding-inline: 17px; }
  .swap-toy-card { width: 120px; }
  .swap-showcase { gap: 8px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-card { min-height: 190px; }
  .talk-grid { grid-template-columns: 1fr; }
  .talk-card p { min-height: 0; }
  .desktop-nav { display: none; }
  .form-layout { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}

@media (max-width: 760px) {
  .app-shell { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 62px; width: min(100% - 24px, 1180px); }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 12px 12px 12px 5px; }
  .main-content { width: min(100% - 24px, 1180px); }
  .hero { min-height: 0; margin-top: 16px; padding: 34px 22px 26px; grid-template-columns: 1fr; border-radius: 27px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 14px; margin-top: 15px; }
  .hero-visual { margin-top: 26px; }
  .collection-showcase { width: 100%; padding: 18px 16px 14px; border-radius: 23px; }
  .swap-showcase { min-height: 190px; gap: 7px; }
  .swap-toy-card { width: min(34vw, 128px); }
  .swap-match { min-width: 56px; }
  .swap-match strong { width: 42px; height: 42px; }
  .hero-assurances { gap: 7px 13px; }
  .search-panel { margin: 0 0 24px; border-radius: 17px; }
  .search-panel input { height: 44px; }
  .search-panel button { min-width: 66px; padding: 0 12px; }
  .quick-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 14px 10px; text-align: center; border-radius: 15px; }
  .stat-card strong { font-size: 20px; }
  .stat-card span { font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-art { height: 172px; }
  .toy-emoji { font-size: 66px; }
  .product-body { padding: 13px; }
  .product-body h3 { font-size: 14px; min-height: 41px; }
  .price-row strong { font-size: 18px; }
  .section-head { align-items: center; }
  .qiandao-search-row { grid-template-columns: 1fr; }
  .qiandao-search-row .primary-button { width: 100%; }
  .qiandao-variants { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qiandao-result { grid-template-columns: 52px minmax(0, 1fr); }
  .qiandao-result-action { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .profile-hero { padding: 22px; border-radius: 22px; }
  .profile-badge { display: none; }
  .profile-grid { gap: 8px; }
  .preference-groups { grid-template-columns: 1fr; }
  .preference-row { align-items: flex-start; flex-direction: column; }
  .collection-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-art { min-height: 270px; font-size: 96px; }
  .detail-body { padding: 28px 20px 25px; }
  .detail-body h2 { font-size: 25px; }
  .experience-section { margin: 34px 0 40px; }
  .experience-card { padding: 20px; }
  .feature-icon { margin-bottom: 16px; }
  .detail-value-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .match-footer { align-items: stretch; flex-direction: column; }
  .seller-row { grid-template-columns: 1fr auto; }
  .seller-row .offer-select-mark { grid-column: 1 / -1; justify-self: stretch; }
  .order-card { padding: 14px; }
  .order-product { align-items: flex-start; }
  .order-price { min-width: 70px; }
  .order-foot { align-items: flex-start; flex-direction: column; }
  .order-actions { width: 100%; }
  .order-actions button { flex: 1; }
  .exchange-order-hero { margin-top: 16px; padding: 20px; align-items: flex-start; }
  .exchange-order-hero h2 { font-size: 23px; }
  .exchange-order-summary { min-width: 82px; padding: 12px; }
  .guest-order-notice { align-items: flex-start; flex-direction: column; }
  .guest-order-notice button { width: 100%; }
  .order-tabs { overflow-x: auto; padding-bottom: 3px; }
  .order-tabs .chip { flex: 0 0 auto; }
  .exchange-current-status { align-items: flex-start; flex-direction: column; gap: 7px; }
  .exchange-stepper { margin-inline: 0; }
  .exchange-step span { font-size: 9px; }
  .exchange-order-products { grid-template-columns: 1fr; gap: 10px; }
  .exchange-order-products > div { width: 100%; }
  .exchange-order-arrow { margin: -2px auto; transform: rotate(90deg); }
  .exchange-shipment-grid { grid-template-columns: 1fr; }
  .exchange-action-summary { grid-template-columns: 1fr; }
  .exchange-action-summary b { justify-self: center; transform: rotate(90deg); }
  .exchange-detail-header { padding: 30px 20px 16px; align-items: flex-start; }
  .exchange-detail-header .status-pill { display: none; }
  .exchange-stepper.detail { margin: 22px 20px 10px; }
  .exchange-detail-body { padding: 10px 20px 24px; }
  .exchange-detail-actions { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .exchange-detail-actions button { flex: 1; min-width: 0; padding-inline: 10px; }
  .exchange-match-summary { grid-template-columns: 1fr; }
  .detail-action-bar { bottom: -25px; margin: 20px -20px -25px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); grid-template-columns: 66px 1fr 1.1fr; }
  .detail-action-bar button { min-height: 46px; font-size: 12px; }
  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 50;
    min-height: 66px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid rgba(228, 221, 211, 0.84);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(42, 31, 24, 0.16);
    backdrop-filter: blur(18px);
  }
  .bottom-nav button {
    min-width: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    cursor: pointer;
  }
  .bottom-nav button span { display: block; margin-bottom: 3px; font-size: 20px; }
  .bottom-nav button.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; }
  .checkout-body { padding: 30px 20px 24px; }
}

@media (max-width: 390px) {
  .product-art { height: 150px; }
  .product-body h3 { min-height: 40px; }
  .meta-row span:last-child { display: none; }
}
