:root {
  --bg: #f5f2eb;
  --bg-ink: #ebe6db;
  --surface: #fffdf8;
  --surface-soft: #f7f5ee;
  --surface-green: #eef6f1;
  --text: #1f2925;
  --muted: #68746d;
  --muted-strong: #4a5952;
  --line: #ded8ca;
  --line-strong: #c4bba8;
  --accent: #126c62;
  --accent-dark: #0d4f48;
  --amber: #a96516;
  --amber-soft: #fff2da;
  --blue: #385b8f;
  --success: #167250;
  --shadow: 0 28px 70px rgba(69, 58, 39, .11);
  --shadow-soft: 0 14px 34px rgba(69, 58, 39, .08);
  --radius: 8px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(18, 108, 98, .12), transparent 30rem),
    linear-gradient(120deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 36rem),
    repeating-linear-gradient(90deg, rgba(31, 41, 37, .025) 0 1px, transparent 1px 80px),
    var(--bg);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .34;
  background-image:
    linear-gradient(rgba(31, 41, 37, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 37, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

button {
  font: inherit;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(56, 91, 143, .3);
  outline-offset: 3px;
}

.app-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 18px 18px 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 12px;
  background: rgba(245, 242, 235, .88);
  border-bottom: 1px solid rgba(196, 187, 168, .54);
  backdrop-filter: blur(18px);
}

.topbar-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.topbar h1,
.product-meta h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: balance;
}

.topbar h1 {
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.16;
}

.topbar p,
.desc,
.muted {
  color: var(--muted);
}

.layout {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  animation: pageIn .34s var(--ease);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn:active,
.trace-link:active {
  transform: translateY(1px) scale(.99);
}

.panel {
  border: 1px solid rgba(196, 187, 168, .78);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shop {
  overflow: hidden;
}

.shop-trace {
  border-color: rgba(18, 108, 98, .34);
}

.shop-static {
  box-shadow: 0 18px 50px rgba(69, 58, 39, .08);
}

.shop-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 10px 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .82);
}

.shop-tab {
  flex: 0 0 auto;
  padding: 12px 13px;
  border: 0;
  color: var(--muted);
  background: transparent;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.shop-tab:hover {
  color: var(--text);
  background: rgba(18, 108, 98, .06);
}

.shop-tab.active {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.tab-panel {
  background: #fffdf8;
}

.info-panel {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  padding: 26px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(247, 245, 238, .86));
}

.info-copy {
  display: grid;
  align-content: start;
  gap: 9px;
}

.info-copy h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.info-copy p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

.parameter-table {
  display: grid;
  border: 1px solid rgba(196, 187, 168, .78);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.parameter-row {
  display: grid;
  grid-template-columns: minmax(108px, .42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.parameter-row:last-child {
  border-bottom: 0;
}

.parameter-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.parameter-row strong {
  color: var(--text);
  font-size: 15px;
}

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

.detail-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(196, 187, 168, .78);
  border-radius: var(--radius);
  background: #fff;
}

.detail-visual {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 16%, rgba(169, 101, 22, .12), transparent 32%),
    linear-gradient(135deg, #fbfaf5, #edf3ee);
}

.detail-visual svg {
  width: min(86%, 190px);
  height: auto;
}

.detail-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.detail-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-head {
  display: grid;
  grid-template-columns: minmax(250px, 340px) 1fr;
  gap: 26px;
  padding: 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 253, 248, .72)),
    var(--surface);
}

.product-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(196, 187, 168, .72);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(169, 101, 22, .14), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(18, 108, 98, .13), transparent 28%),
    linear-gradient(135deg, #fbfaf5, #edf3ee);
}

.product-perfume .product-visual {
  background:
    radial-gradient(circle at 78% 18%, rgba(141, 94, 47, .16), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(18, 108, 98, .11), transparent 28%),
    linear-gradient(135deg, #fffaf0, #edf3ee);
}

.product-visual svg {
  width: min(78%, 252px);
  height: auto;
  filter: drop-shadow(0 24px 24px rgba(69, 58, 39, .14));
}

.product-meta {
  display: grid;
  align-content: center;
  gap: 13px;
}

.compact-strip span {
  background: #f6f3eb;
}

.product-meta h2 {
  max-width: 19em;
  font-size: clamp(25px, 3.6vw, 42px);
  line-height: 1.08;
}

.desc {
  max-width: 62ch;
  margin: 0;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
}

.price {
  color: #923f18;
  font-size: 34px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.sold {
  color: var(--muted);
  font-weight: 750;
}

.badges,
.guarantee,
.tags,
.review-labels,
.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.guarantee span,
.tag-pill,
.review-labels span,
.use-cases span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 850;
}

.badge {
  background: #f2eadb;
  color: #6c4c16;
}

.use-cases span {
  border: 1px solid rgba(18, 108, 98, .18);
  background: #eef6f1;
  color: var(--accent-dark);
}

.guarantee span {
  background: #f5f2eb;
  color: #425149;
}

.review-header {
  display: grid;
  gap: 12px;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.review-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 950;
  line-height: 1.15;
}

.review-title small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.tag-pill {
  background: #f6ecda;
  color: #7a4c0e;
}

.ai-box {
  position: relative;
  margin: 0 26px 20px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(18, 108, 98, .22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(238, 246, 241, .92), rgba(255, 253, 248, .96));
}

.ai-box::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
  content: "";
}

.shop-static .ai-box {
  border-color: rgba(104, 116, 109, .24);
  background: #f3f2ed;
}

.shop-static .ai-box::before {
  background: #9aa199;
}

.ai-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-title {
  font-size: 17px;
  font-weight: 950;
}

.ai-text {
  margin: 0;
  color: #25322d;
  font-size: 17px;
  line-height: 1.78;
}

.trace-link {
  display: inline;
  border: 0;
  border-bottom: 2px dashed rgba(169, 101, 22, .68);
  padding: 0 1px;
  background: transparent;
  color: #8c4b10;
  cursor: pointer;
  font-weight: 950;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.trace-link:hover,
.trace-link:focus-visible {
  background: var(--amber-soft);
  color: #6f3708;
  border-color: #8c4b10;
}

.static-phrase {
  color: #25322d;
  font-weight: 950;
}

.tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.reviews-area {
  padding: 0 26px 26px;
  background: #fffdf8;
}

.review-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
}

.review-toolbar > div {
  display: grid;
  gap: 2px;
}

.review-toolbar strong {
  font-size: 17px;
  line-height: 1.2;
}

.review-toolbar small {
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}

.btn-quiet {
  border-color: rgba(18, 108, 98, .2);
  background: #edf6f1;
  color: var(--accent-dark);
}

.btn-quiet:hover {
  border-color: rgba(18, 108, 98, .42);
  background: #e4f1eb;
  transform: translateY(-1px);
}

.review-list {
  display: grid;
  gap: 0;
  min-height: 390px;
  align-content: start;
  border-top: 1px solid rgba(222, 216, 202, .7);
}

.review-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(222, 216, 202, .7);
  border-radius: 0;
  background: #fff;
  transition: background .22s var(--ease);
}

.review-card:hover {
  background: #fffdf8;
}

.review-card.highlight {
  border-color: rgba(169, 101, 22, .35);
  background: #fff8ec;
  box-shadow: inset 4px 0 0 rgba(169, 101, 22, .42);
  animation: highlightPulse .9s var(--ease) 1;
}

@keyframes highlightPulse {
  from {
    transform: translateY(-4px);
  }
  to {
    transform: translateY(0);
  }
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 108, 98, .12);
  border-radius: 50%;
  overflow: hidden;
  background: #f6f3eb;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.review-main {
  min-width: 0;
}

.review-topline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.review-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #1b2520;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.28;
}

.level-badge,
.tenure-badge,
.buyer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.level-badge {
  background: linear-gradient(90deg, #34312b, #806f5d);
  color: #fff2ce;
  font-weight: 900;
}

.tenure-badge {
  background: #8f7a5c;
  color: #fff3d8;
  font-weight: 900;
}

.buyer-badge {
  background: #fff3df;
  color: #8a541c;
  font-weight: 850;
}

.review-more {
  color: #c8c5bd;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
}

.praise {
  color: #f06b1f;
  font-size: 14px;
  font-weight: 900;
}

.spec {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 7px;
  color: #8a9098;
  font-size: 15px;
  line-height: 1.4;
}

.spec time {
  margin-left: auto;
  white-space: nowrap;
}

.review-text {
  margin: 12px 0 0;
  color: #1f2933;
  font-size: 19px;
  line-height: 1.7;
}

.review-labels span {
  min-height: 26px;
  background: #f2f1ec;
  color: #5d6861;
  font-size: 12px;
}

.review-footer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review-count-chip {
  width: fit-content;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: #f6f3eb;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 850;
}

.review-pagination,
.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-control,
.page-number {
  min-width: 42px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(196, 187, 168, .88);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}

.page-control {
  min-width: 78px;
}

.page-control:hover:not(:disabled),
.page-number:hover {
  border-color: rgba(18, 108, 98, .42);
  background: #edf6f1;
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.page-number.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf8;
}

.page-control:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  max-width: min(520px, calc(100vw - 28px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 253, 248, .12);
  border-radius: var(--radius);
  background: #1f2925;
  color: #fffdf8;
  box-shadow: 0 18px 44px rgba(31, 41, 37, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  font-size: 14px;
}

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

@media (max-width: 900px) {
  .topbar,
  .product-head {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 230px;
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 10px 9px 42px;
  }

  .topbar {
    position: static;
    padding-top: 10px;
    backdrop-filter: none;
  }

  .product-head,
  .review-header,
  .reviews-area,
  .info-panel {
    padding: 16px;
  }

  .parameter-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-visual {
    min-height: 210px;
  }

  .product-meta h2 {
    font-size: clamp(24px, 9vw, 32px);
  }

  .price {
    font-size: 30px;
  }

  .ai-box {
    margin: 0 16px 18px;
    padding: 17px;
  }

  .review-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .review-card {
    grid-template-columns: 48px 1fr;
    gap: 11px;
    padding: 15px 0;
  }

  .avatar {
    width: 46px;
    height: 46px;
  }

  .review-name {
    font-size: 16px;
  }

  .spec {
    font-size: 13px;
  }

  .spec time {
    margin-left: 0;
  }

  .review-text {
    font-size: 16px;
  }

  .review-list {
    min-height: 0;
  }

  .review-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .page-numbers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-control,
  .page-number {
    width: 100%;
    min-width: 0;
  }
}
