:root {
  --bg: #f8f6f1;
  --white: #fff;
  --ink: #21342c;
  --green: #415f4c;
  --muted: #7d8980;
  --line: #e5e7e0;
  --soft: #eaf0e8;
  --gold: #bd946a;
  --navh: 75px;
  --head: 63px;
  --noticeh: 31px;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    system-ui,
    -apple-system,
    'Microsoft YaHei',
    'PingFang SC',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2.2px;
  color: #819183;
}
.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fffffff4;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.toprow {
  height: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.brandmark {
  background: #294d38;
  color: #fff;
  border-radius: 11px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-family: serif;
}
.brand b {
  font-size: 17px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: #738575;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-actions button {
  border: 1px solid #d7dfd7;
  color: #425b48;
  background: white;
  border-radius: 18px;
  padding: 8px 11px;
  font-size: 12px;
}
.notice {
  padding: 7px 13px;
  background: #f0e7d9;
  text-align: center;
  font-size: 11px;
  color: #765941;
  line-height: 1.5;
}
#content {
  padding-bottom: calc(var(--navh) + 23px);
  min-height: calc(100vh - 100px);
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.hero {
  border-radius: 0 0 28px 28px;
  background: linear-gradient(124deg, #ebe8dd 1%, #dae9dd 100%);
  padding: 36px 22px 38px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: '✧';
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 140px;
  color: #ffffff66;
  font-family: serif;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  margin: 15px 0 13px;
  font-weight: 780;
  letter-spacing: 1px;
}
.hero p {
  color: #6b7c6d;
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 22px;
}
.primary {
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
}
.ghost {
  border: 1px solid #d1ddd2;
  background: #fff;
  color: #31553a;
  border-radius: 12px;
  padding: 11px 13px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 26px 0 15px;
}
.section-title h2 {
  font-size: 23px;
  margin: 4px 0;
}
.section-title .small {
  font-size: 12px;
}
.category-grid,
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.category-card,
.series-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 14px;
  text-align: left;
  min-height: 124px;
  position: relative;
  overflow: hidden;
}
.category-card .icon {
  font-size: 28px;
  color: #58705e;
  margin-bottom: 14px;
}
.category-card strong,
.series-card strong {
  font-size: 17px;
  display: block;
}
.category-card small,
.series-card small {
  display: block;
  color: #839189;
  margin-top: 6px;
  font-size: 11px;
}
.category-card em {
  position: absolute;
  right: 10px;
  top: 10px;
  font-style: normal;
  font-size: 12px;
  color: #a8b7a9;
}
.category-card:hover,
.series-card:hover {
  border-color: #99b69c;
  background: #f7fbf6;
}
.series-card {
  min-height: 166px;
  background: linear-gradient(145deg, #fff, #eaf1e9);
  padding: 18px;
}
.series-card .icon {
  font-size: 39px;
  display: block;
  margin-bottom: 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #738476;
  font-size: 12px;
  padding: 20px 0 3px;
}
.breadcrumb button {
  border: 0;
  background: none;
  padding: 4px;
  color: #425f4b;
}
.intro {
  margin: 9px 0 18px;
}
.intro h1 {
  font-size: 29px;
  margin: 5px 0 7px;
}
.intro p {
  color: #819084;
  font-size: 13px;
  margin: 0;
}
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #e9f0e8;
  border-radius: 14px;
  padding: 13px 15px;
  margin: 17px 0;
}
.strip small {
  font-size: 12px;
  color: #637a67;
}
.strip button {
  border: 0;
  background: #415f4c;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 12px;
}
.productgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.product img {
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  background: #e8ece7;
}
.product .details {
  padding: 12px;
}
.product h3 {
  font-size: 13px;
  line-height: 1.5;
  min-height: 40px;
  margin: 5px 0 9px;
  font-weight: 680;
}
.product .desc {
  font-size: 10px;
  color: #88978a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product .price {
  font-size: 19px;
  font-weight: 800;
  color: #355c43;
  margin: 5px 0 10px;
}
.product button {
  border: 1px solid #c3d3c4;
  background: #f4f7f2;
  color: #375d42;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  padding: 10px 5px;
}
.tag {
  background: #f6eadc;
  color: #9a6b39;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  display: inline-block;
}
.searchbox {
  width: 100%;
  border: 1px solid #dce5db;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  margin: 9px 0 15px;
}
.empty {
  padding: 42px 16px;
  text-align: center;
  color: #7b8a7f;
  background: #fff;
  border: 1px dashed #d7dfd8;
  border-radius: 15px;
}
.bottomnav {
  position: fixed;
  z-index: 25;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffffff8;
  box-shadow: 0 -6px 35px #1d37211b;
  border-top: 1px solid #e0e8e0;
  backdrop-filter: blur(15px);
}
.bottom-inner {
  max-width: 980px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: var(--navh);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav button {
  background: none;
  border: 0;
  color: #89968b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  padding: 9px 0;
}
.bottomnav button .navicon {
  font-size: 23px;
  line-height: 1.2;
}
.bottomnav button.active {
  color: #385b43;
  font-weight: 800;
}
.bottomnav button .count {
  position: absolute;
  transform: translate(15px, -12px);
  background: #9f6544;
  color: #fff;
  font-size: 10px;
  border-radius: 9px;
  padding: 1px 5px;
}
.video-page {
  background: #121a15;
  min-height: calc(100dvh - var(--head) - 40px);
  color: #fff;
  padding-bottom: 0;
}
.videotop {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 490px;
  margin: auto;
  padding: 5px 12px;
}
.videotop strong {
  font-size: 16px;
}
.videofilters {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
}
.videofilters button {
  background: #ffffff1b;
  border: 1px solid #ffffff23;
  color: #fff;
  border-radius: 18px;
  font-size: 11px;
  white-space: nowrap;
  padding: 6px 10px;
}
.videofilters button.active {
  background: white;
  color: #203e2b;
}
.video-feed {
  height: calc(100dvh - var(--head) - var(--navh) - var(--noticeh) - 44px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  max-width: 490px;
  margin: 0 auto;
  background: #131914;
}
.video-feed::-webkit-scrollbar {
  display: none;
}
.video-card {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #101711;
}
.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0002 4%, transparent 25%, transparent 57%, #000c 94%);
  pointer-events: none;
}
.video-text {
  position: absolute;
  bottom: 17px;
  left: 17px;
  right: 74px;
  z-index: 2;
}
.video-text b {
  font-size: 18px;
  line-height: 1.4;
  display: block;
  text-shadow: 0 1px 5px #0009;
}
.video-text p {
  font-size: 12px;
  line-height: 1.5;
  color: #ffffffda;
  margin: 6px 0 12px;
}
.video-text button {
  border: 1px solid #ffffff99;
  background: #ffffff26;
  color: #fff;
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 12px;
  backdrop-filter: blur(5px);
}
.video-aside {
  position: absolute;
  right: 10px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
}
.video-aside button {
  border: 0;
  background: #121b16a8;
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.video-label {
  background: #0008;
  position: absolute;
  top: 15px;
  left: 14px;
  color: #eaf0eb;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11px;
  z-index: 3;
}
.scrollcue {
  position: absolute;
  top: 17px;
  right: 12px;
  color: #fff9;
  font-size: 11px;
  z-index: 2;
}
.vidempty {
  background: #19271d;
  color: #dcebe0;
  min-height: 70vh;
  padding: 40px 24px;
  text-align: center;
}
.admin {
  padding: 10px 0 22px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 14px 0;
}
.admin-tabs button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  padding: 11px 14px;
  font-size: 12px;
  white-space: nowrap;
}
.admin-tabs button.active {
  background: var(--green);
  color: #fff;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 17px;
  margin: 14px 0;
}
.panel h3 {
  margin: 2px 0 12px;
  font-size: 17px;
}
.panel p {
  font-size: 12px;
  color: #879389;
  line-height: 1.65;
}
.fieldrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #556b5a;
  margin-bottom: 13px;
}
.field select,
.field input,
.field textarea {
  background: #fff;
  border: 1px solid #d8e2d8;
  padding: 11px;
  border-radius: 9px;
  width: 100%;
  min-width: 0;
  color: #283c2d;
}
.field textarea {
  min-height: 60px;
}
.admin-table {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  min-width: 650px;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 12px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: #799080;
  background: #f5f9f5;
}
td button {
  background: #f1f7ef;
  border: 1px solid #cbdacb;
  border-radius: 8px;
  padding: 8px;
  color: #3f5a44;
}
.video-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 10px;
  border-bottom: 1px solid #e7ebe5;
  font-size: 12px;
}
.video-row:last-child {
  border-bottom: 0;
}
.video-row strong {
  display: block;
}
.video-row small {
  color: #7c8b7f;
}
.video-row button {
  border: 1px solid #d4dfd6;
  color: #526658;
  border-radius: 7px;
  background: white;
  padding: 7px 9px;
  white-space: nowrap;
}
.quick-series {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.quick-series button {
  border: 1px solid #d3e0d2;
  background: #f3f8f2;
  border-radius: 8px;
  color: #47684b;
  padding: 9px 11px;
  font-size: 12px;
}
.dialog {
  display: none;
  position: fixed;
  inset: 0;
  background: #15251bb8;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dialog.show {
  display: flex;
}
.modal {
  width: min(530px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  border-radius: 19px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 20px 80px #0004;
}
.modal-image {
  height: 170px;
  width: 125px;
  object-fit: cover;
  border-radius: 12px;
  float: right;
  margin: 0 0 12px 12px;
}
.modal h2 {
  font-size: 20px;
  margin: 9px 0;
}
.modal button.wide {
  width: 100%;
  margin-top: 9px;
}
.close {
  border: 0;
  background: #eef2ed;
  border-radius: 20px;
  font-size: 19px;
  width: 33px;
  height: 33px;
  float: right;
}
.modal .desc {
  font-size: 12px;
  color: #789080;
  line-height: 1.6;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e3625;
  color: white;
  display: none;
  padding: 12px 17px;
  border-radius: 12px;
  font-size: 12px;
  min-width: 160px;
  text-align: center;
  box-shadow: 0 8px 38px #16292166;
}
.testhint {
  display: inline-block;
  font-size: 10px;
  color: #957040;
  background: #f9eddc;
  padding: 4px 7px;
  border-radius: 5px;
}
.admin-badge {
  padding: 7px 10px;
  background: #f4ead9;
  border-radius: 8px;
  color: #917045;
  font-size: 12px;
}
@media (max-width: 520px) {
  .shell {
    padding: 0 13px;
  }
  .category-grid,
  .series-grid {
    gap: 10px;
  }
  .hero {
    padding: 31px 18px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .category-card,
  .series-card {
    padding: 16px 12px;
  }
  .category-card strong,
  .series-card strong {
    font-size: 15px;
  }
  .top-actions button {
    padding: 7px 8px;
  }
  .toprow {
    height: 59px;
  }
  .fieldrow {
    grid-template-columns: 1fr;
  }
  .productgrid {
    gap: 9px;
  }
  .product .details {
    padding: 10px;
  }
  .product h3 {
    font-size: 12px;
  }
  .admin .panel {
    padding: 15px;
  }
  .video-page {
    margin: 0 -13px;
  }
  .video-feed {
    height: calc(100dvh - 59px - var(--navh) - var(--noticeh) - 44px);
  }
}

/* V3 fashion club visual rules */
:root {
  --navh: 78px;
}
.bottom-inner {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bottomnav button {
  font-size: 10px;
  white-space: nowrap;
}
.bottomnav button .navicon {
  font-size: 21px;
}
.classic-category-view {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.classic-sidebar {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 70px;
  max-height: calc(100dvh - 165px);
  overflow-y: auto;
}
.classic-sidebar strong {
  font-size: 12px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
.classic-sidebar button {
  border: 0;
  border-radius: 0;
  text-align: left;
  background: white;
  color: var(--green);
  padding: 14px 10px;
  font-size: 13px;
  border-bottom: 1px solid #f1f4f1;
}
.classic-sidebar button.selected,
.classic-sidebar button:hover {
  background: #eaf1e9;
  font-weight: 750;
}
.classic-right {
  min-width: 0;
}
.classic-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}
.classic-title small {
  font-size: 10px;
  color: var(--muted);
}
.reward-hero {
  background: linear-gradient(130deg, #315940, #64836a);
  color: white;
  border-radius: 20px;
  padding: 21px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.reward-hero > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reward-hero strong {
  font-size: 26px;
  line-height: 1.2;
}
.reward-hero small {
  font-size: 11px;
  color: #d6e5d8;
}
.reward-hero span {
  font-size: 10px;
  color: #e4efe6;
  line-height: 1.6;
}
.codebox {
  background: #eef4ed;
  border: 1px dashed #a1b8a4;
  padding: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 800;
  flex-wrap: wrap;
  gap: 10px;
}
.accountbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.accountbar > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.accountbar .muted {
  font-size: 12px;
}
.meter {
  height: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #ebf0e8;
}
.meter span {
  height: 100%;
  display: block;
  background: var(--green);
}
.afterline {
  border: 1px solid #d9e5d8;
  background: #f1f5f0;
  border-radius: 13px;
  margin: 12px 0;
  padding: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  font-size: 12px;
}
.afterline span {
  color: #667a69;
  max-width: 100%;
}
.policy-note {
  border-left: 3px solid #90b19b;
  padding: 12px;
  background: #f3f7f2;
  color: #425d49 !important;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rules-grid > div {
  border-radius: 12px;
  background: #eef4ed;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}
.rules-grid b {
  font-size: 19px;
  color: #365d44;
}
.rules-grid small {
  font-size: 10px;
  color: #849386;
  line-height: 1.5;
}
.modal .wide {
  width: 100%;
  margin-top: 10px;
}
@media (min-width: 700px) {
  .classic-category-view {
    grid-template-columns: 215px 1fr;
    gap: 22px;
  }
  .classic-sidebar button {
    font-size: 14px;
    padding: 16px;
  }
  .classic-right .productgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .classic-category-view {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
  }
  .classic-sidebar button {
    font-size: 12px;
    padding: 13px 7px;
  }
  .classic-sidebar strong {
    font-size: 12px;
    padding: 13px 8px;
  }
  .classic-right .productgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .classic-right .product h3 {
    font-size: 11px;
    min-height: 38px;
  }
  .classic-right .product button {
    font-size: 10px;
  }
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* V4 商品详情 · 图文视频 / 身高体重选码 (仅离线预览) */
#pageProductDetail {
  background: #f9faf7;
  min-height: calc(100dvh - 70px);
  padding-bottom: 100px;
}
.detail-wrap {
  max-width: 980px;
  margin: 0 auto;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--head);
  z-index: 9;
}
.detail-top button {
  border: 0;
  background: transparent;
  color: #3f5946;
  padding: 8px;
  font-weight: 750;
}
.detail-top strong {
  font-size: 14px;
}
.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 16px;
}
.detail-left {
  min-width: 0;
}
.detail-media {
  border-radius: 17px;
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
  background: #e5ece4;
}
.detail-media img,
.detail-media video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e6ece6;
}
.detail-media img.detail-zoom {
  object-fit: cover;
  transform: scale(1.34);
}
.detail-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 11px;
  padding: 6px 9px;
  background: #12231baf;
  color: #fff;
  border-radius: 7px;
}
.detail-media-list {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.detail-thumb {
  width: 74px;
  height: 82px;
  flex: 0 0 74px;
  border: 2px solid transparent;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding: 0;
}
.detail-thumb.selected {
  border-color: #3d664c;
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-thumb.video-thumb:after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: #0008;
}
.detail-thumb span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 9px;
  background: #0009;
  color: #fff;
}
.detail-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 19px;
}
.detail-price {
  font-size: 30px;
  color: #315b41;
  font-weight: 900;
  letter-spacing: 0.2px;
}
.detail-info h1 {
  font-size: 23px;
  line-height: 1.45;
  margin: 10px 0;
}
.detail-breadcrumb {
  font-size: 11px;
  color: #6c8570;
}
.detail-desc {
  font-size: 13px;
  color: #637567;
  line-height: 1.85;
}
.detail-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 19px;
  margin-top: 14px;
}
.detail-section h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.detail-feature {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #ecf1e9;
  font-size: 13px;
}
.detail-feature:last-child {
  border: 0;
}
.detail-feature > span:first-child {
  color: #788b7c;
}
.fit-trigger {
  width: 100%;
  border: 1px solid #bfcfc0;
  border-radius: 12px;
  background: #f5f8f3;
  text-align: left;
  padding: 15px;
  margin: 16px 0 6px;
  color: #3d5f47;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 750;
}
.fit-trigger small {
  font-weight: 500;
  display: block;
  margin-top: 5px;
  color: #8a998d;
}
.detail-table-wrap {
  overflow-x: auto;
}
.fit-table {
  border-collapse: collapse;
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
.fit-table th,
.fit-table td {
  font-size: 12px;
  border-bottom: 1px solid #edf0ea;
  text-align: center;
  min-width: 75px;
  padding: 11px 6px;
}
.fit-table th {
  background: #f1f6f0;
  color: #507058;
}
.fit-table tr.fit-selected {
  background: #e6f1e6;
}
.fit-disclaimer {
  font-size: 11px;
  color: #859185;
  line-height: 1.7;
  margin-top: 10px;
}
.detail-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 31;
  background: #fff;
  padding: 10px max(12px, env(safe-area-inset-left)) calc(11px + env(safe-area-inset-bottom));
  box-shadow: 0 -5px 25px #15311b1c;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.detail-actions > div {
  width: min(950px, 100%);
  display: flex;
  align-items: center;
  gap: 9px;
}
.detail-actions button {
  padding: 12px 10px;
  border-radius: 11px;
  flex: 1;
  white-space: nowrap;
  font-size: 12px;
}
.detail-actions button.primary {
  flex: 1.5;
}
.detail-actions button.ghost {
  border-color: #cddbd0;
}
.picker-dialog {
  position: fixed;
  inset: 0;
  background: #101e14a6;
  z-index: 76;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.picker-dialog.show {
  display: flex;
}
.picker-card {
  width: min(540px, 100%);
  max-height: 90dvh;
  overflow: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 21px 19px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 60px #0004;
}
.picker-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.picker-title h2 {
  font-size: 19px;
  margin: 4px 0 14px;
}
.picker-title button {
  background: #eef3ed;
  color: #3d6047;
  border: none;
  border-radius: 50%;
  font-size: 23px;
  width: 34px;
  height: 34px;
}
.picker-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.picker-fields .field {
  margin: 8px 0;
}
.picker-fields input {
  font-size: 16px;
}
.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.size-pills button {
  border: 1px solid #d0dfce;
  background: #fff;
  padding: 11px 17px;
  border-radius: 10px;
  color: #3b6045;
  font-weight: 750;
}
.size-pills button.active {
  background: #315b40;
  color: white;
  border-color: #315b40;
}
.fit-tip {
  padding: 12px;
  background: #edf4eb;
  border: 1px solid #d5e4d2;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
  margin: 13px 0;
}
.fit-tip strong {
  color: #225437;
}
.picker-card .wide {
  width: 100%;
  margin-top: 8px;
}
.detail-hint {
  display: block;
  color: #916d44;
  background: #fff5e8;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 11px;
  margin-top: 10px;
}
.detail-editor-note {
  font-size: 12px;
  color: #819083;
}
.detail-admin-preview {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.detail-admin-preview img {
  width: 58px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
}
.detail-empty-video {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #738b77;
  background: #e7ede6;
  text-align: center;
  gap: 12px;
  padding: 16px;
}
.detail-empty-video span {
  font-size: 38px;
}
.detail-dynamic-media {
  display: none;
}
@media (max-width: 700px) {
  .detail-main {
    display: block;
    padding: 0;
  }
  .detail-left {
    padding: 0 12px;
  }
  .detail-media {
    border-radius: 0 0 15px 15px;
    aspect-ratio: 4/4.8;
  }
  .detail-info {
    border-radius: 15px;
    margin: 10px 12px 0;
    padding: 17px;
  }
  .detail-section {
    margin: 10px 12px 0;
    padding: 16px;
  }
  .detail-price {
    font-size: 26px;
  }
  .detail-info h1 {
    font-size: 20px;
  }
  .detail-top {
    padding: 7px 10px;
  }
  .detail-media-list {
    padding: 8px 1px 12px;
  }
  .detail-thumb {
    width: 62px;
    height: 69px;
    flex-basis: 62px;
  }
  .detail-actions {
    bottom: 0;
  }
  .fit-table th,
  .fit-table td {
    font-size: 11px;
    padding: 10px 5px;
  }
  .detail-feature {
    grid-template-columns: 78px 1fr;
  }
}

/* V5 - 尺码选择卡片与模拟直接购买 */
.size-pills.size-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.size-reference-grid button {
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-height: 86px;
  padding: 12px 13px;
  white-space: normal;
}
.size-reference-grid button strong {
  font-size: 18px;
  line-height: 1.2;
}
.size-reference-grid button small {
  font-size: 11px;
  font-weight: 400;
  color: #68806b;
  line-height: 1.55;
}
.size-reference-grid button.active small {
  color: #e5f2e8;
}
.picker-size-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 14px;
}
.picker-size-heading small {
  font-size: 11px;
  color: #87968b;
}
.checkout-variant {
  border: 1px solid #dce6dc;
  background: #f7faf6;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 12px 0;
}
.checkout-variant div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}
.checkout-variant small {
  font-size: 12px;
  color: #698070;
}
@media (max-width: 350px) {
  .size-pills.size-reference-grid {
    grid-template-columns: 1fr;
  }
}

/* V6: 固定商品操作仅保留两个按钮；独立的售后入口仍在详情内容与“我的”。 */
.detail-actions > div {
  display: grid !important;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}
.detail-actions button {
  width: 100%;
  min-height: 52px;
  font-size: 14px;
}
.fly-to-bag {
  position: fixed;
  z-index: 9999;
  object-fit: cover;
  pointer-events: none;
  border-radius: 14px;
  box-shadow: 0 5px 24px #2c513c55;
}
.bag-pulse {
  animation: bagPulseV6 0.45s ease;
}
@keyframes bagPulseV6 {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.address-checkout {
  padding: 13px 12px;
  background: #f6f9f5;
  border: 1px solid #d6e3d6;
  border-radius: 14px;
  margin: 12px 0;
}
.address-title,
.address-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.address-title strong {
  font-size: 15px;
}
.address-title em {
  color: #b45340;
  font-style: normal;
  font-size: 11px;
}
.address-title button,
.address-sheet-head button {
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.address-radio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #dbe6db;
}
.address-radio:last-child {
  border-bottom: 0;
}
.address-radio label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
  font-size: 13px;
  color: #334c39;
}
.address-radio label input {
  accent-color: #415f4c;
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.address-radio small,
.address-line small {
  color: #718473;
  line-height: 1.65;
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
}
.address-radio button {
  font-size: 12px;
  padding: 7px;
}
.addr-missing {
  font-size: 12px;
  color: #a24b3f;
  background: #fff6ee;
  border-radius: 10px;
  padding: 12px;
}
.default-chip {
  font-size: 10px;
  color: #3c6544;
  background: #e3f0e4;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.address-line {
  padding: 11px 0;
  border-bottom: 1px solid #e1e9df;
  font-size: 13px;
}
.address-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.address-controls button {
  background: #fff;
  border: 1px solid #ccd9ce;
  padding: 6px 9px;
  border-radius: 8px;
  color: #3d6047;
  font-size: 11px;
}
.address-layer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  background: #14291ed9;
  align-items: flex-end;
  justify-content: center;
}
.address-layer.show {
  display: flex;
}
.address-sheet {
  background: #fff;
  width: min(540px, 100%);
  max-height: 91dvh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 70px #10251b55;
}
.address-sheet h2 {
  font-size: 19px;
  margin: 3px 0 18px;
}
.address-note {
  font-size: 11px;
  color: #7c897d;
  line-height: 1.6;
  margin: 12px 0;
}
.default-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #405a47;
}
.default-check input {
  accent-color: #415f4c;
  width: 17px;
  height: 17px;
}
#memberAddressBook {
  scroll-margin-top: 75px;
}
@media (prefers-reduced-motion: reduce) {
  .fly-to-bag {
    display: none;
  }
}
