﻿:root {
  --ink: #171918;
  --muted: #777d79;
  --line: #eceeec;
  --paper: #ffffff;
  --canvas: #f4f5f3;
  --brand: #23654d;
  --brand-deep: #183f33;
  --accent: #ef4450;
  --accent-deep: #d92f3c;
  --accent-soft: #fff0f1;
  --amber: #9b6b2f;
}

html,
body {
  background: #e7eae8;
}

.mobile-app {
  width: min(100%, 480px);
  background: var(--canvas);
  box-shadow: 0 0 0 1px rgba(23, 25, 24, 0.04), 0 20px 60px rgba(23, 25, 24, 0.08);
}

.store-hero {
  height: 248px;
  padding: calc(12px + var(--safe-top)) 14px 24px;
  background-color: #29322e;
  background-position: center 52%;
}

.store-hero::after {
  background: linear-gradient(180deg, rgba(12, 15, 14, 0.44) 0%, rgba(12, 15, 14, 0.08) 42%, rgba(12, 15, 14, 0.72) 100%);
}

.hero-top {
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
}

.search-box {
  height: 40px;
  padding: 0 13px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.search-box svg {
  width: 18px;
  height: 18px;
}

.search-box input {
  font-size: 14px;
}

.icon-button {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.hero-top .icon-button {
  background: rgba(17, 21, 19, 0.58);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.store-identity {
  right: 16px;
  bottom: 33px;
  left: 16px;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.store-logo {
  width: 56px;
  height: 56px;
  border-width: 1.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.store-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.store-name h1 {
  min-width: 0;
  margin: 1px 0 3px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-name svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #cce9df;
}

.store-identity p {
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: 1;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.store-meta span + span {
  position: relative;
}

.store-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -7px;
  width: 2px;
  height: 2px;
  content: "";
  background: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
}

.store-surface {
  position: relative;
  z-index: 3;
  display: block;
  min-height: calc(100dvh - 230px);
  margin-top: -18px;
  background: #fff;
  border-radius: 16px 16px 0 0;
}

.store-notice {
  min-height: 32px;
  padding: 9px 14px 6px;
  overflow: hidden;
  color: #66706b;
  font-size: 12px;
  background: #fff;
  border: 0;
  border-radius: 16px 16px 0 0;
}

.store-notice svg {
  width: 14px;
  height: 14px;
}

.store-notice span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-tabs {
  height: 48px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #eeeeec;
}

.tab-button {
  font-size: 15px;
  font-weight: 500;
}

.tab-button.active {
  font-weight: 700;
}

.tab-button.active::after {
  bottom: 4px;
  width: 20px;
  height: 3px;
}

.sort-bar {
  position: sticky;
  top: 48px;
  z-index: 19;
  height: 43px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #f0f1ef;
  backdrop-filter: blur(12px);
}

.sort-button {
  font-size: 13px;
}

.sort-bar .icon-button {
  width: 34px;
  height: 34px;
  margin: 4px 0;
}

.sort-bar .icon-button svg {
  width: 19px;
  height: 19px;
}

.result-meta {
  min-height: 32px;
  padding: 10px 14px 4px;
  font-size: 12px;
  background: #fff;
}

.product-list {
  gap: 0;
  padding: 0 12px 24px;
  background: #fff;
}

.product-row {
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 145px;
  padding: 10px 0;
  overflow: visible;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

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

.product-row:active {
  background: #fafbfa;
}

.product-thumb {
  width: 124px;
  height: 124px;
  min-height: 0;
  align-self: center;
  object-fit: cover;
  border-radius: 6px;
}

.product-copy {
  min-height: 124px;
  padding: 1px 0 1px 12px;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
}

.product-rec {
  margin-top: 5px;
  color: #a1713b;
  font-size: 11px;
}

.tag-row {
  gap: 4px;
  margin-top: 7px;
}

.tag {
  padding: 2px 5px;
  color: #4d7665;
  font-size: 10px;
  background: #f3f7f5;
  border-color: #e2ebe6;
  border-radius: 3px;
}

.price-line {
  gap: 5px;
  padding-top: 8px;
}

.price {
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.price small {
  margin-right: 1px;
  font-size: 12px;
}

.original-price {
  font-size: 11px;
}

.quick-buy-button {
  margin-left: auto;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: #e93f36;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(218, 49, 42, 0.18);
}

.quick-buy-button svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.quick-buy-button:active {
  transform: scale(0.96);
  background: #d9322a;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 10px 24px;
  background: var(--canvas);
}

.product-grid .product-row {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e9ebe9;
  border-radius: 7px;
}

.product-grid .product-thumb {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.product-grid .product-copy {
  min-height: 142px;
  padding: 10px;
}

.product-grid .quick-buy-button {
  min-height: 26px;
  padding: 0 7px;
  font-size: 10px;
}

.category-layout {
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: calc(100dvh - 132px);
}

.category-menu {
  background: #f5f6f5;
}

.category-menu button {
  min-height: 54px;
  padding: 8px 6px;
  font-size: 12px;
}

.category-menu button.active::before {
  top: 17px;
  bottom: 17px;
  background: var(--accent);
}

.category-products {
  padding: 12px 10px 24px;
}

.category-title {
  margin: 0 2px 8px;
  font-size: 15px;
}

.category-products .product-list {
  padding: 0;
}

.category-products .product-row {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 124px;
}

.category-products .product-thumb {
  width: 104px;
  height: 104px;
  min-height: 104px;
  margin: 0;
}

.category-products .product-copy {
  min-height: 104px;
  padding: 1px 0 1px 10px;
}

.detail-page {
  width: 100%;
  padding-bottom: calc(78px + var(--safe-bottom));
}

.media-stage {
  background: #e9ebe9;
  touch-action: pan-y;
}

.detail-media-host,
.detail-media-host img,
.detail-media-host video {
  width: 100%;
  height: 100%;
}

.detail-media-host img,
.detail-media-host video {
  object-fit: cover;
}

.detail-toolbar {
  top: calc(10px + var(--safe-top));
  right: 10px;
  left: 10px;
}

.detail-toolbar .icon-button {
  background: rgba(21, 25, 23, 0.55);
  border: 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.media-nav {
  display: none;
}

.media-dots {
  right: auto;
  bottom: 22px;
  left: 16px;
  justify-content: flex-start;
}

.media-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.75);
}

.media-dot.active {
  width: 14px;
  background: #fff;
}

.media-count {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 4;
  min-width: 42px;
  padding: 5px 9px;
  color: #fff;
  font-size: 11px;
  text-align: center;
  background: rgba(20, 24, 22, 0.58);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.detail-summary {
  position: relative;
  z-index: 4;
  margin-top: -12px;
  padding: 18px 15px 16px;
  border: 0;
  border-radius: 14px 14px 0 0;
}

.detail-price-row .price {
  font-size: 30px;
}

.detail-summary h1 {
  margin: 11px 0 5px;
  font-size: 17px;
  line-height: 1.48;
}

.detail-subtitle {
  font-size: 12px;
}

.price-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 11px 0 0;
  padding-top: 10px;
  color: #8a908c;
  font-size: 11px;
  line-height: 1.45;
  border-top: 1px solid #f0f1ef;
}

.price-notice svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
}

.detail-section {
  margin-top: 8px;
  padding: 16px 15px;
  border: 0;
}

.detail-section h2,
.section-head h2 {
  font-size: 16px;
}

.detail-copy {
  font-size: 13px;
  line-height: 1.75;
}

.section-head {
  margin-bottom: 12px;
}

.review-card {
  padding: 14px 0;
}

.review-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.review-name,
.review-text {
  font-size: 13px;
}

.review-text {
  margin-top: 10px;
  line-height: 1.65;
}

.detail-page {
  background: #f2f3f5;
}

.detail-summary,
.detail-card {
  width: calc(100% - 16px);
  margin-right: 8px;
  margin-left: 8px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(23, 36, 31, 0.05);
}

.detail-summary {
  margin-top: -10px;
}

.detail-card {
  margin-top: 8px;
}

.detail-link-card {
  padding: 0 15px;
}

.detail-link-row {
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr) 16px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.detail-link-row + .detail-link-row {
  border-top: 1px solid #edf0ee;
}

.detail-link-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
}

.detail-link-icon svg {
  width: 17px;
  height: 17px;
}

.tone-blue { --tone: #169bd0; --tone-soft: #e9f7fd; }
.tone-orange { --tone: #e87432; --tone-soft: #fff1e8; }
.tone-green { --tone: #248264; --tone-soft: #e9f5f0; }

.detail-link-row .detail-link-icon,
.service-detail-item .service-detail-icon {
  color: var(--tone);
  background: var(--tone-soft);
}

.detail-link-row > svg:last-child {
  width: 16px;
  height: 16px;
  color: #a4aba7;
}

.detail-link-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-link-value {
  min-width: 0;
  overflow: hidden;
  color: #858e89;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-preview-card {
  padding: 0 15px 5px;
}

.review-preview-head {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.review-preview-head h2 {
  margin: 0;
  font-size: 16px;
}

.review-preview-head h2 small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.review-preview-head > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  color: #8b938f;
  font-size: 12px;
}

.review-preview-head svg {
  width: 15px;
  height: 15px;
}

.compact-review-list {
  border-top: 1px solid #edf0ee;
}

.compact-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 86px;
  align-items: center;
  padding: 11px 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.compact-review + .compact-review {
  border-top: 1px solid #edf0ee;
}

.compact-review-copy {
  min-width: 0;
}

.compact-review-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.compact-review-avatar {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand);
  border-radius: 50%;
}

.compact-review-avatar img,
.compact-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-review-author strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-review-tag {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: #a7662b;
  font-size: 10px;
  background: #fff5e8;
  border: 1px solid #f4dfc4;
  border-radius: 4px;
}

.compact-review p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: #37413c;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-review-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #eef1ef;
  border-radius: 6px;
}

.compact-review-thumb small {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 22px;
  padding: 3px 5px;
  color: #fff;
  font-size: 10px;
  text-align: center;
  background: rgba(20, 26, 23, 0.68);
  border-radius: 4px 0 0;
}

.review-preview-empty {
  margin: 0;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

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

.detail-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.detail-sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(18, 24, 21, 0.58);
  border: 0;
  opacity: 0;
  transition: opacity 240ms ease;
}

.detail-sheet-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 480px);
  max-height: 74dvh;
  min-height: min(56dvh, 500px);
  flex-direction: column;
  overflow: hidden;
  background: #f4f6f7;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -12px 32px rgba(20, 28, 24, 0.18);
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.2, 0.72, 0.25, 1);
}

.detail-sheet-layer.open {
  pointer-events: auto;
}

.detail-sheet-layer.open .detail-sheet-backdrop {
  opacity: 1;
}

.detail-sheet-layer.open .detail-sheet-panel {
  transform: translateY(0);
}

.detail-sheet-grabber {
  width: 34px;
  height: 4px;
  flex: 0 0 4px;
  margin: 8px auto 2px;
  background: #c8cecb;
  border-radius: 2px;
}

.detail-sheet-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 15px 13px;
}

.detail-sheet-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.detail-sheet-head .eyebrow {
  color: #68736e;
}

.detail-sheet-body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 12px calc(18px + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

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

.service-detail-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: 8px;
}

.service-detail-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
}

.service-detail-icon svg {
  width: 21px;
  height: 21px;
}

.service-detail-item h3 {
  margin: 1px 0 5px;
  font-size: 15px;
}

.service-detail-item p {
  margin: 0;
  color: #68716d;
  font-size: 12px;
  line-height: 1.7;
}

.parameter-list {
  margin: 0;
  padding: 5px 14px 12px;
  background: #fff;
  border: 1px solid #e7ebe8;
  border-radius: 8px;
}

.parameter-list > div {
  display: grid;
  grid-template-columns: minmax(76px, 32%) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #edf0ee;
}

.parameter-list > div:first-child {
  border-top: 0;
}

.parameter-list dt,
.parameter-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.parameter-list dt {
  color: #87908c;
}

.parameter-list dd {
  color: #28332e;
}

@media (prefers-reduced-motion: reduce) {
  .detail-sheet-backdrop,
  .detail-sheet-panel {
    transition-duration: 1ms;
  }
}
.reviews-page {
  min-height: 100dvh;
  background: #f4f6f4;
}

.reviews-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  min-height: calc(64px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 12px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.reviews-page-header::after {
  content: "";
}

.reviews-page-header .icon-button {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  background: #f4f6f4;
  border: 0;
}

.reviews-page-header div {
  min-width: 0;
  text-align: center;
}

.reviews-page-header h1 {
  margin: 0;
  font-size: 16px;
}

.reviews-page-header p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reviews-page-list {
  margin-top: 8px;
  padding: 2px 15px max(24px, var(--safe-bottom));
  background: #fff;
}

.reviews-page-list .review-card {
  padding: 16px 0;
}

.recommend-grid {
  gap: 8px;
}

.recommend-item {
  border-radius: 6px;
}

.recommend-item > strong {
  min-height: 39px;
  font-size: 13px;
}

.recommend-item > .recommend-price {
  color: var(--accent);
}

.buy-dock {
  grid-template-columns: 64px minmax(0, 1fr);
  width: min(100%, 480px);
  min-height: calc(66px + var(--safe-bottom));
  padding: 7px 9px calc(7px + var(--safe-bottom));
  box-shadow: 0 -5px 20px rgba(18, 22, 20, 0.07);
}

.dock-home svg {
  width: 22px;
  height: 22px;
}

.buy-button,
.primary-action {
  background: var(--accent);
  border-radius: 8px;
}

.buy-button:active,
.primary-action:active {
  background: var(--accent-deep);
}

.buy-button .buy-price {
  font-size: 17px;
}

.modal-layer {
  place-items: center;
  padding: max(18px, var(--safe-top)) 16px max(18px, var(--safe-bottom));
}

.modal-backdrop {
  background: rgba(12, 15, 14, 0.64);
  backdrop-filter: blur(3px);
}

.buy-sheet {
  width: min(100%, 328px);
  max-height: min(74dvh, 540px);
  padding: 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  animation: modal-pop 180ms ease-out both;
}

.buy-sheet::before {
  display: none;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sheet-head h2 {
  font-size: 18px;
}

.sheet-close {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  background: #f2f4f2;
}

.sheet-close svg {
  width: 18px;
  height: 18px;
}

.eyebrow {
  color: var(--accent);
}

.taobao-text {
  min-height: 108px;
  margin-top: 13px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.62;
  background: #f6f7f5;
  border: 1px solid #e1e5e2;
  border-radius: 7px;
}

.primary-action {
  min-height: 44px;
  font-size: 14px;
}

.primary-action:focus-visible,
.sheet-close:focus-visible {
  outline: 2px solid rgba(239, 68, 80, 0.28);
  outline-offset: 2px;
}

.toast {
  bottom: calc(84px + var(--safe-bottom));
  border-radius: 5px;
}

@media (max-width: 370px) {
  .store-hero {
    height: 232px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .store-identity {
    right: 12px;
    bottom: 29px;
    left: 12px;
  }

  .product-list {
    padding-right: 10px;
    padding-left: 10px;
  }

  .product-row {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 129px;
  }

  .product-thumb {
    width: 108px;
    height: 108px;
  }

  .product-copy {
    min-height: 108px;
    padding: 0 0 0 10px;
  }

  .product-title {
    font-size: 13px;
  }

  .product-rec {
    display: none;
  }

  .tag-row {
    margin-top: 5px;
  }

  .price {
    font-size: 20px;
  }

  .quick-buy-button {
    min-height: 26px;
    padding: 0 7px;
    font-size: 10px;
  }

  .category-products .product-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .category-products .product-thumb {
    width: 92px;
    height: 92px;
    min-height: 92px;
  }

  .category-products .product-copy {
    min-height: 92px;
  }
}

@media (min-width: 481px) {
  .mobile-app {
    min-height: 100vh;
  }
}
/* Apple-like radius system and reference-matched service sheet */
:root {
  --radius-card: 18px;
  --radius-control: 14px;
  --radius-sheet: 28px;
}

.store-surface,
.store-notice {
  border-radius: 24px 24px 0 0;
}

.product-thumb { border-radius: var(--radius-control); }
.product-grid .product-row { border-radius: var(--radius-card); }
.detail-summary,
.detail-card { border-radius: var(--radius-card); }
.recommend-item { border-radius: var(--radius-card); }
.buy-button,
.primary-action { border-radius: 24px; }
.buy-sheet { border-radius: 24px; }
.taobao-text { border-radius: var(--radius-control); }
.toast { border-radius: var(--radius-control); }

.detail-sheet-backdrop {
  background: rgba(18, 28, 25, 0.56);
  backdrop-filter: blur(1px);
}

.detail-sheet-panel {
  width: min(100%, 480px);
  min-height: min(70dvh, 680px);
  max-height: 82dvh;
  background: #f2f6f7;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  box-shadow: 0 -16px 42px rgba(18, 32, 38, 0.18);
}

.detail-sheet-grabber { display: none; }

.detail-sheet-head {
  min-height: 84px;
  padding: 22px 20px 17px;
}

.detail-sheet-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.detail-sheet-head h2 {
  margin: 0;
  color: #20262b;
  font-size: 23px;
  line-height: 1.2;
}

.detail-sheet-head .eyebrow {
  color: #75808a;
  font-size: 12px;
  font-weight: 600;
}

.detail-sheet-head .sheet-close {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  color: #111820;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(34, 61, 72, 0.06);
}

.detail-sheet-head .sheet-close svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.detail-sheet-body {
  padding: 0 16px calc(22px + var(--safe-bottom));
}

.detail-sheet-layer[data-kind="services"] .detail-sheet-panel {
  background: #eaf8ff;
}

.detail-sheet-layer[data-kind="services"] .detail-sheet-head h2,
.detail-sheet-layer[data-kind="services"] .detail-sheet-head .eyebrow {
  color: #18a7df;
}

.service-sheet-list {
  display: block;
  overflow: hidden;
  padding: 8px 20px;
  background: #fff;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 3px 18px rgba(39, 104, 132, 0.05);
}

.service-detail-item {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 132px;
  align-content: center;
  padding: 22px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.service-detail-item + .service-detail-item {
  border-top: 1px solid #edf1f3;
}

.service-detail-item .service-detail-icon {
  width: 32px;
  height: 32px;
  align-self: start;
  color: var(--tone);
  background: transparent;
}

.service-detail-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.service-detail-item h3 {
  margin: 1px 0 12px;
  color: #172331;
  font-size: 19px;
  line-height: 1.3;
}

.service-detail-item p {
  margin: 0;
  color: #8a9299;
  font-size: 14px;
  line-height: 1.8;
}

.parameter-list {
  border-radius: var(--radius-card);
}

@media (max-width: 360px) {
  .detail-sheet-head { min-height: 78px; padding-right: 16px; padding-left: 16px; }
  .detail-sheet-head h2 { font-size: 21px; }
  .detail-sheet-head .eyebrow { font-size: 11px; }
  .detail-sheet-body { padding-right: 12px; padding-left: 12px; }
  .service-sheet-list { padding-right: 16px; padding-left: 16px; }
}
.detail-sheet-head .sheet-close:focus-visible {
  outline-color: rgba(24, 167, 223, 0.24);
}
/* FanTuan product image signature */
.product-thumb-frame,
.recommend-image-frame {
  position: relative;
  display: block;
  overflow: hidden;
}

.product-thumb-frame {
  width: 124px;
  height: 124px;
  align-self: center;
  border-radius: var(--radius-control);
}

.product-thumb-frame > .product-thumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

.product-brand-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 5;
  display: inline-flex;
  height: 23px;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 2px 4px;
  color: #f5e5c7;
  background: linear-gradient(135deg, rgba(17, 15, 13, 0.97), rgba(55, 41, 25, 0.95));
  border: 1px solid rgba(205, 160, 83, 0.62);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(15, 12, 9, 0.3), inset 0 1px 0 rgba(255, 232, 185, 0.12);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.product-brand-badge > img,
.detail-media-host .product-brand-badge > img,
.recommend-item .product-brand-badge > img {
  width: 16px;
  height: 17px;
  flex: 0 0 16px;
  object-fit: contain;
  filter: sepia(0.72) saturate(1.15) brightness(1.16) contrast(0.96);
}

.product-brand-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #e4bb72;
  white-space: nowrap;
}

.product-brand-copy strong,
.product-brand-copy small {
  margin: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.product-grid .product-thumb-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.category-products .product-thumb-frame {
  width: 104px;
  height: 104px;
}

.recommend-image-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.recommend-item .recommend-image-frame > img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.recommend-item .product-brand-badge,
.recommend-item .product-brand-copy {
  display: inline-flex;
  margin: 0;
}

.recommend-item .product-brand-badge {
  color: #f5e5c7;
}

.recommend-item .product-brand-copy {
  color: #e4bb72;
}

.detail-media-host {
  position: relative;
}

.detail-media-host .product-brand-badge.detail {
  right: 14px;
  bottom: 14px;
  height: 31px;
  gap: 5px;
  padding: 3px 10px 3px 5px;
  background: linear-gradient(135deg, rgba(17, 15, 13, 0.98), rgba(55, 41, 25, 0.96));
  border-color: rgba(213, 170, 92, 0.68);
  box-shadow: 0 8px 24px rgba(13, 10, 7, 0.34), inset 0 1px 0 rgba(255, 232, 185, 0.14);
}

.detail-media-host .product-brand-badge.detail > img {
  width: 22px;
  height: 23px;
  flex-basis: 22px;
}

.detail-media-host .product-brand-badge.detail strong,
.detail-media-host .product-brand-badge.detail small { font-size: 13px; }
.media-stage.has-brand-badge .media-count { bottom: 56px; }

@media (max-width: 370px) {
  .product-thumb-frame { width: 108px; height: 108px; }
  .category-products .product-thumb-frame { width: 92px; height: 92px; }
  .product-brand-badge { right: 5px; bottom: 5px; transform: scale(0.92); transform-origin: right bottom; }
}
