@import url("./tokens.css");

.buyer-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— PC 顶栏 —— */
.buyer-topbar {
  height: var(--topbar-h);
  background: var(--black);
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.buyer-topbar-inner {
  max-width: var(--max-buyer);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.buyer-topbar a { color: rgba(255,255,255,.72); }
.buyer-topbar a:hover { color: var(--accent); }
.buyer-topbar-right { display: flex; align-items: center; gap: 20px; }
.buyer-topbar .org-pill {
  color: #fff;
  font-weight: 500;
}

/* —— PC 主导航 —— */
.buyer-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.buyer-header-inner {
  max-width: var(--max-buyer);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
  transition: var(--ease);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-gradient);
  box-shadow: 0 2px 8px rgba(148, 214, 77, 0.4);
}
.brand em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.buyer-nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.buyer-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: none;
  transition: var(--ease);
}
.buyer-nav a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.buyer-nav a.active {
  color: var(--accent-dark);
  font-weight: 600;
  background: var(--accent-soft);
}
.buyer-nav .nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--black);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 2px;
}
.buyer-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: var(--ease);
}
.buyer-search:focus-within {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(148, 214, 77, 0.25);
}
.buyer-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  outline: none;
  font-size: 13px;
}
.buyer-search button {
  width: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.buyer-search button:hover { background: var(--accent-soft); }
.buyer-search button svg { stroke: var(--accent) !important; }
.buyer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.buyer-actions .btn-outline {
  border-color: var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}
.buyer-actions .btn-primary {
  min-width: 88px;
}

.buyer-main {
  max-width: var(--max-buyer);
  margin: 0 auto;
  padding: 32px 32px 64px;
  min-height: calc(100vh - var(--header-h) - var(--topbar-h) - 80px);
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.buyer-footer {
  background: #333;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  padding: 20px 24px;
  margin-top: auto;
}
.buyer-footer-inner {
  max-width: var(--buyer-max, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.buyer-footer a { color: rgba(255,255,255,.75); }
.buyer-footer a:hover { color: #fff; }

/* —— 首页 Hero —— */
.pc-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.pc-hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
  transition: var(--ease);
}
.pc-hero-main:hover { box-shadow: var(--shadow-hover); }
.pc-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.pc-hero-main .overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 58, 99, 0.78));
  color: #fff;
  box-sizing: border-box;
}
.pc-hero-main .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.pc-hero-main h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.pc-hero-main p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
  max-width: 420px;
  font-weight: 400;
  line-height: 1.6;
}
.pc-hero-main .overlay .btn { transition: var(--ease); }
.pc-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.pc-hero-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 152px;
  display: block;
  box-shadow: var(--shadow-soft);
  transition: var(--ease);
}
.pc-hero-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pc-hero-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pc-hero-tile .tile-body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 152px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 25%, rgba(10, 58, 99, 0.72));
  color: #fff;
}
.pc-hero-tile h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pc-hero-tile span { font-size: 13px; opacity: 0.88; font-weight: 400; }

/* —— 金刚区分类 —— */
.pc-cat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.pc-cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid transparent;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--ease);
}
.pc-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(148, 214, 77, 0.45);
}
.pc-cat-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}
.pc-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--ease);
}
.pc-cat-card:hover img { transform: scale(1.04); }
.pc-cat-card .lbl {
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* —— 商品卡片 —— */
.pc-goods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pc-goods-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--ease);
}
.pc-goods-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pc-goods-card .cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #EEF1F4;
  overflow: hidden;
}
.pc-goods-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--ease);
}
.pc-goods-card:hover .cover img { transform: scale(1.03); }
.pc-goods-card .cover .badge,
.pc-goods-card .cover .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.pc-goods-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 0; }
.pc-goods-card h4 {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-goods-card .sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.5;
}
.pc-goods-card .foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pc-goods-card .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

/* —— 拼团专区 —— */
.pc-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
.pc-group-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid transparent;
  min-height: 148px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--ease);
}
.pc-group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pc-group-card > img,
.pc-group-card .thumb {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
  background: #EEF1F4;
}
.pc-group-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pc-group-card .body h4 {
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.pc-group-card .meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.group-progress {
  margin-top: 4px;
}
.group-progress .bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.group-progress .bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #A8E05C 0%, #5FA022 100%);
  transition: width 0.4s ease;
}
.group-progress .pct {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.pc-group-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: auto;
}

.pc-profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}
.pc-profile-side {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.pc-profile-side .cover { height: 72px; background-size: cover; background-position: center; }
.pc-profile-side .info { padding: 12px 16px 16px; margin-top: -20px; }
.pc-profile-side .avatar {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: var(--accent-soft);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent-dark);
}
.pc-profile-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
}
.pc-profile-menu a:hover,
.pc-profile-menu a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  border-left-color: var(--accent-dark);
}

.buyer-hero-welcome {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.buyer-hero-welcome .hello { display: none; }
.buyer-hero-welcome h1 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.buyer-hero-welcome .desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.auth-visual {
  position: relative;
  background: #333;
  overflow: hidden;
  min-height: 100vh;
}
.auth-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.auth-visual .caption {
  position: absolute;
  left: 40px;
  bottom: 40px;
  right: 40px;
  color: #fff;
  z-index: 1;
}
.auth-visual .caption h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.auth-visual .caption p { opacity: .9; line-height: 1.6; font-size: 14px; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--white);
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card .brand { margin-bottom: 8px; }
.auth-card h2 { font-size: 20px; margin: 12px 0 6px; font-weight: 600; }
.auth-card .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.auth-footer { margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.auth-footer a { color: var(--accent-dark); }

/* —— CRMEB Pro 风 · 拼团/商品详情 —— */
.gd-crumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.gd-crumb a { color: var(--text-secondary); }
.gd-crumb a:hover { color: var(--accent-dark); }
.gd-top {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.gd-gallery .gd-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #EEF1F4;
  margin-bottom: 12px;
  position: relative;
}
.gd-gallery .gd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gd-gallery .gd-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(148, 214, 77, 0.4);
}
.gd-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.gd-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  background: #EEF1F4;
  transition: var(--ease);
}
.gd-thumbs img:hover,
.gd-thumbs img.active {
  border-color: var(--accent-mid);
}
.gd-info .gd-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.gd-info .gd-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.gd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.gd-meta-row strong {
  color: var(--accent-dark);
  font-weight: 600;
}
.gd-price-box {
  background: linear-gradient(135deg, #F3FBE8 0%, #E9F5E1 55%, #F8F9FA 100%);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(148, 214, 77, 0.35);
}
.gd-price-box .row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.gd-price-box .label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.gd-price-box .now {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.gd-price-box .origin {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 10px;
}
.gd-price-box .need-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.gd-countdown {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.gd-countdown .t {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--black);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.gd-progress-wrap {
  margin-top: 14px;
}
.gd-progress-wrap .pct-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.gd-svc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}
.gd-svc span::before {
  content: "✓";
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  margin-right: 6px;
}
.gd-sku {
  margin-bottom: 16px;
}
.gd-sku .form-label { margin-bottom: 8px; }
.gd-sku-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gd-sku-opts .btn {
  min-width: 72px;
}
.gd-qty {
  display: flex;
  align-items: center;
  gap: 0;
  height: 36px;
  width: fit-content;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gd-qty button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  transition: var(--ease);
}
.gd-qty button:hover { background: var(--accent-soft); }
.gd-qty input {
  width: 56px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  outline: none;
  font-size: 14px;
  font-weight: 600;
}
.gd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.gd-actions .btn-lg { min-width: 140px; }
.gd-actions .btn-ghost-dark {
  background: var(--black);
  color: #fff;
  border: none;
}
.gd-actions .btn-ghost-dark:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* 可参与的团 */
.gd-pink-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.gd-pink-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.gd-pink-card .head h3 {
  font-size: 16px;
  font-weight: 700;
}
.gd-pink-card .head .more {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 500;
}
.gd-pink-list { display: flex; flex-direction: column; gap: 12px; }
.gd-pink-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--ease);
}
.gd-pink-item:hover { background: var(--accent-soft); }
.gd-pink-avatars {
  display: flex;
  align-items: center;
}
.gd-pink-avatars i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-mid);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  border: 2px solid var(--white);
}
.gd-pink-avatars i:first-child { margin-left: 0; }
.gd-pink-avatars i.empty {
  background: var(--bg-soft);
  color: var(--text-muted);
  border-style: dashed;
  border-color: var(--border-strong);
}
.gd-pink-item .info { flex: 1; min-width: 0; }
.gd-pink-item .info .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.gd-pink-item .info .tip {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.gd-pink-item .tip em {
  font-style: normal;
  color: var(--accent-dark);
  font-weight: 600;
}

/* 详情 Tab 区 */
.gd-tabs-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 8px 24px 28px;
  margin-bottom: 16px;
}
.gd-tabs-card .tabs {
  margin-bottom: 24px;
  position: sticky;
  top: var(--header-h);
  background: var(--white);
  z-index: 5;
  padding-top: 8px;
}
.gd-panel { display: none; }
.gd-panel.active { display: block; }
.gd-params {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  font-size: 14px;
}
.gd-params .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.gd-params .row span:first-child { color: var(--text-muted); flex-shrink: 0; }
.gd-params .row span:last-child { text-align: right; color: var(--text); }
.gd-detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.gd-detail-gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #EEF1F4;
}
.gd-rules {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.gd-rules ol {
  padding-left: 20px;
  margin: 0;
}
.gd-rules li { margin-bottom: 8px; }
.gd-rules strong { color: var(--text); font-weight: 600; }

/* 评价 */
.gd-review {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.gd-review .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gd-review .body { flex: 1; }
.gd-review .org {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.gd-review .stars {
  font-size: 12px;
  color: #E6A817;
  margin-bottom: 6px;
}
.gd-review .txt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.gd-review .time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 推荐 */
.gd-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 16px;
}
.gd-rec-head h3 {
  font-size: 18px;
  font-weight: 700;
}

/* —— CRMEB Pro 风 · 订单详情 / 去付款 —— */
.od-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 88px;
}
.od-status {
  background: linear-gradient(135deg, #2C2C2C 0%, #1A1D21 55%, #3D5A2A 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.od-status::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(148, 214, 77, 0.12);
  pointer-events: none;
}
.od-status.st-pay {
  background: linear-gradient(135deg, #3A2A12 0%, #1A1D21 50%, #5A3A12 100%);
}
.od-status.st-ship {
  background: linear-gradient(135deg, #1A2A3A 0%, #1A1D21 55%, #2A4A3A 100%);
}
.od-status.st-done {
  background: linear-gradient(135deg, #1E3A1A 0%, #1A1D21 55%, #2C4A20 100%);
}
.od-status.st-cancel {
  background: linear-gradient(135deg, #3A3A3A 0%, #2A2A2A 100%);
}
.od-status-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.od-status .st-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(148, 214, 77, 0.45);
}
.od-status h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.od-status .tip {
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.5;
}
.od-status .cd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}
.od-status .cd .t {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* 订单进度条 */
.od-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  gap: 8px;
}
.od-steps .step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 12px;
  color: var(--text-muted);
}
.od-steps .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--border);
}
.od-steps .step.done:not(:last-child)::after,
.od-steps .step.active:not(:last-child)::after {
  background: var(--accent-mid);
}
.od-steps .step .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: var(--bg-soft);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.od-steps .step.done .dot,
.od-steps .step.active .dot {
  background: var(--accent);
  border-color: var(--accent-mid);
  color: var(--black);
}
.od-steps .step.active { color: var(--accent-dark); font-weight: 600; }
.od-steps .step.done { color: var(--text-secondary); }
/* 物流轨迹 */
.od-timeline { padding: 4px 0 0 8px; }
.od-timeline .tl-item {
  position: relative;
  padding: 0 0 18px 24px;
  border-left: 2px solid var(--border);
  font-size: 13px;
}
.od-timeline .tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.od-timeline .tl-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}
.od-timeline .tl-item.active::before {
  background: var(--accent-mid);
  box-shadow: 0 0 0 1px var(--accent-mid);
}
.od-timeline .tl-item.active .tl-title {
  color: var(--accent-dark);
  font-weight: 600;
}
.od-timeline .tl-title { color: var(--text); margin-bottom: 2px; }
.od-timeline .tl-time { font-size: 12px; color: var(--text-muted); }
.od-shop-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.od-shop-head .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-gradient);
  flex-shrink: 0;
}
.od-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}
.od-copy:hover { text-decoration: underline; }
.od-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.od-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-addr {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.od-addr .ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.od-addr .name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.od-addr .name em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 10px;
  font-size: 13px;
}
.od-addr .line {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.od-goods-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.od-goods-row:last-child { border-bottom: none; padding-bottom: 0; }
.od-goods-row:first-child { padding-top: 0; }
.od-goods-row img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #EEF1F4;
  flex-shrink: 0;
}
.od-goods-row .body { flex: 1; min-width: 0; }
.od-goods-row .body h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.od-goods-row .body .spec {
  font-size: 12px;
  color: var(--text-muted);
}
.od-goods-row .side {
  text-align: right;
  flex-shrink: 0;
}
.od-goods-row .side .p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.od-goods-row .side .q {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.od-express {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 13px;
}
.od-express strong { font-weight: 600; }
.od-express .no { color: var(--text-secondary); }
.od-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  font-size: 13px;
}
.od-info-grid .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.od-info-grid .row span:first-child { color: var(--text-muted); flex-shrink: 0; }
.od-fee {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.od-fee .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-secondary);
}
.od-fee .row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}
.od-fee .row.total .price { font-size: 22px; }
.od-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.04);
}
.od-foot-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.od-foot .sum {
  margin-right: auto;
  font-size: 13px;
  color: var(--text-secondary);
}
.od-foot .sum .price { font-size: 20px; margin-left: 6px; }

/* 支付页 */
.pay-page {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 88px;
}
.pay-hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  text-align: center;
  margin-bottom: 12px;
}
.pay-hero .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pay-hero .amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pay-hero .cd {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
}
.pay-hero .cd .t {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--black);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pay-order-brief {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 14px;
}
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--ease);
  background: var(--white);
}
.pay-method:hover { border-color: var(--accent-mid); }
.pay-method.selected {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
}
.pay-method .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.pay-method .ico-wx { background: #E8F8E8; color: #07C160; }
.pay-method .ico-ali { background: #E8F4FF; color: #1677FF; }
.pay-method .ico-bank { background: var(--bg-soft); color: var(--text); }
.pay-method .info { flex: 1; }
.pay-method .info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.pay-method .info span { font-size: 12px; color: var(--text-muted); }
.pay-method .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  transition: var(--ease);
}
.pay-method.selected .radio {
  border-color: var(--accent-mid);
  box-shadow: inset 0 0 0 4px var(--accent);
}
.voucher-panel { display: none; margin-top: 4px; }
.voucher-panel.show { display: block; }

@media (max-width: 1100px) {
  .pc-goods-grid { grid-template-columns: repeat(3, 1fr); }
  .pc-hero { grid-template-columns: 1fr; }
  .pc-profile-layout { grid-template-columns: 1fr; }
  .gd-top { grid-template-columns: 360px 1fr; gap: 28px; }
  .gd-params { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .pc-goods-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-cat-row { grid-template-columns: repeat(3, 1fr); }
  .buyer-nav { display: none; }
  .gd-top { grid-template-columns: 1fr; padding: 20px; }
}
