:root {
  --brand: #106b57;
  --brand-dark: #0a5344;
  --brand-soft: #e8f1ee;
  --accent: #d98324;
  --ink: #23201c;
  --ink-2: #615b53;
  --ink-3: #938c82;
  --line: #ece5da;
  --bg: #faf8f4;
  --card: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(35, 32, 28, 0.06);
  --shadow-md: 0 10px 30px rgba(35, 32, 28, 0.1);
}

* { box-sizing: border-box; }

@font-face {
  font-family: "ALKATIP Basma Tom";
  src: url("/static/fonts/ALKATIP-Basma-Tom.ttf") format("truetype");
  font-display: swap;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

#app { min-height: 100vh; }

/* ------------------------------------------------ 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 244, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #2f9c7d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(16, 107, 87, 0.25);
  overflow: hidden;
}

.brand-mark--logo {
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.brand-mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.orders-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.orders-pager__total {
  color: var(--ink-3);
  font-size: 12px;
}

.orders-pager .el-pagination {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand-text .name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-text .en {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 3px;
}

.header-search {
  flex: 1;
  max-width: 460px;
}

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

.header-actions .el-button { margin-left: 0 !important; }

/* 语言切换：只换文案，布局始终保持 LTR */
.lang-switch { flex-shrink: 0; }
.lang-btn { white-space: nowrap; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.user-chip:hover {
  border-color: rgba(16, 107, 87, 0.35);
  box-shadow: 0 4px 12px rgba(35, 32, 28, 0.08);
}

.user-chip .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #2f9c7d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.user-chip .avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-chip .nick {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}

.user-chip .caret { font-size: 11px; color: var(--ink-3); }

.cart-button {
  position: relative;
}

.auth-tip { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 2px; }
.auth-tip .tip-divider { margin: 0 6px; color: var(--bd, #d8d8d8); }
.wechat-auth { margin: 4px 0 10px; }
.wechat-auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin: 10px 0; }
.wechat-auth-divider::before, .wechat-auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.wechat-login-btn { width: 100%; height: 42px; border-color: #1aad19 !important; color: #0b7d0b !important; background: #f3fbf3 !important; font-weight: 600; }
.wechat-login-btn:hover { background: #e9f7e9 !important; border-color: #1aad19 !important; }
.wechat-login-icon { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: #1aad19; color: #fff; font-size: 13px; margin-right: 8px; }
.wechat-auth-hint { color: var(--ink-3); font-size: 11px; line-height: 1.6; text-align: center; margin-top: 6px; }
.auth-agreement { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; font-size: 12px; color: var(--ink-3); margin: 8px 0 4px; }
.auth-agreement .el-checkbox { height: 22px; margin-right: 2px; }
.auth-legal-link { appearance: none; border: 0; background: transparent; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.auth-legal-link:hover { color: var(--brand-deep); }

/* ------------------------------------------------ 首屏 */
.hero {
  max-width: 1200px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 52px 56px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(120deg, #0c5a49 0%, #17735c 48%, #2c8f6f 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(12, 90, 73, 0.24);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 40px rgba(255, 255, 255, 0.06), inset 0 0 0 90px rgba(255, 255, 255, 0.05);
}

/* 首屏轮播广告 */
.hero-carousel-wrap {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(12, 90, 73, 0.24);
}

.hero-carousel {
  border-radius: 26px;
  overflow: hidden;
}

.hero-carousel .el-carousel__container { height: 360px; }

.hero-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 44px 60px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(255, 255, 255, 0.10), transparent 40%),
    linear-gradient(120deg, #0c5a49 0%, #17735c 48%, #2c8f6f 100%);
  color: #fff;
}

.hero-slide.is-clickable {
  cursor: pointer;
}

.hero-slide.is-cover {
  position: relative;
  overflow: hidden;
  padding: 44px 60px;
  background: #0b4a3c;
}

.hero-slide-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-slide.is-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 42, 34, 0.94) 0%, rgba(6, 42, 34, 0.72) 36%, rgba(6, 42, 34, 0.28) 68%, rgba(6, 42, 34, 0.06) 100%);
}

.hero-slide.is-cover .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 54%;
}

.hero-slide.is-clickable:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: -4px;
}

.hero-copy { max-width: 58%; min-width: 0; }

.hero-slide .hero-title {
  font-size: 38px;
  line-height: 1.28;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
  overflow-wrap: break-word;
}

.hero-slide .hero-desc {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.88;
  margin: 0 0 22px;
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
}

.hero-cta:hover {
  background: #fff;
  color: #0c5a49;
}

.hero-slide-media {
  flex: 0 0 270px;
  width: 270px;
  height: 270px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

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

.hero-carousel .el-carousel__indicators--inside .el-carousel__indicator {
  padding: 8px 4px;
}

.hero-carousel .el-carousel__indicators--inside .el-carousel__button {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.hero-carousel .el-carousel__indicators--inside .el-carousel__indicator.is-active .el-carousel__button {
  background: #fff;
}

.hero-carousel .el-carousel__arrow {
  background: rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(4px);
}

.hero-carousel .el-carousel__arrow:hover { background: rgba(0, 0, 0, 0.34); }

/* 底部公告栏 */
.notice-bar {
  max-width: 1200px;
  margin: 34px auto 0;
  padding: 0 24px;
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f2f8f4 0%, #fbfdfb 100%);
  border: 1px solid rgba(16, 107, 87, 0.14);
  box-shadow: 0 8px 22px rgba(12, 90, 73, 0.06);
}

.notice-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd66b;
  box-shadow: 0 0 0 3px rgba(255, 214, 107, 0.24);
}

.notice-carousel { flex: 1 1 auto; min-width: 0; }

.notice-text {
  display: flex;
  align-items: center;
  height: 44px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  white-space: normal;
  overflow: hidden;
}

.notice-more {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}

.notice-more:hover { text-decoration: underline; }


  font-size: 12px;
  letter-spacing: 4px;
  opacity: 0.8;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-tag {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stamp {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 2;
}

.hero-stamp .num {
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
}

.hero-stamp .label {
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.8;
  margin-top: 10px;
}

/* ------------------------------------------------ 筛选区 */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 10px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink-3);
  text-transform: uppercase;
}

.section-title .title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cat-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s;
}

.cat-chip:hover { border-color: var(--brand); color: var(--brand); }

.cat-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 107, 87, 0.22);
}

.cat-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(16, 107, 87, 0.08);
  color: var(--brand);
  font-size: 11px;
  line-height: 17px;
}

.cat-chip.active .cat-count { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ------------------------------------------------ 商品卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 107, 87, 0.22);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eef1ee;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img { transform: scale(1.05); }

.media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e4ece8, #f5eee2);
  color: #7e938a;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(35, 32, 28, 0.72);
  color: #fff;
  letter-spacing: 1px;
}

.product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-subtitle {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.card-buttons { display: flex; gap: 8px; }

.card-buttons .add-btn,
.card-buttons .buy-btn { flex: 1; padding: 9px 0; }

.buy-btn {
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}

.buy-btn:hover { background: var(--brand-dark); }
.buy-btn[disabled] { background: #f1eee8; color: #b3aca1; cursor: not-allowed; }

.price-block .price {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.price-block .price small { font-size: 13px; font-weight: 600; margin-right: 1px; }

.price-block .origin {
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-top: 4px;
}

.add-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.add-btn:hover { background: var(--brand); color: #fff; }
.add-btn[disabled] { background: #f1eee8; color: #b3aca1; cursor: not-allowed; }

.stock-line {
  font-size: 11px;
  color: var(--ink-3);
  display: flex;
  gap: 12px;
}

/* ------------------------------------------------ 购物车 */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.cart-thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: #f2f1ed;
  flex-shrink: 0;
}

.cart-main { flex: 1; min-width: 0; }

.cart-name { font-size: 14px; font-weight: 600; line-height: 1.5; }

.cart-price { color: var(--accent); font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }

.cart-spec {
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.5;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cart-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.cart-remove { font-size: 12px; color: var(--ink-3); cursor: pointer; }
.cart-remove:hover { color: #c0392b; }

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 4px;
}

.checkout-summary .label { color: var(--ink-2); font-size: 14px; }

.checkout-summary .amount {
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------ 订单查询 */
.order-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.order-no { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.order-item-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
}

.order-item-line > span { min-width: 0; }

.order-item-spec {
  margin-left: 6px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.order-track {
  margin-top: 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--brand-dark);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------ 页脚 */
.site-footer {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 30px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-qr-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid #d5e6df;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-qr-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(16, 107, 87, 0.12);
}

.footer-qr-btn--primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 107, 87, 0.18);
}

.footer-qr-btn--primary:hover {
  background: var(--brand-dark);
}

.footer-qr-btn__icon {
  font-size: 16px;
  line-height: 1;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px dashed #e6ece9;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.footer-qr-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 4px 0 8px;
}

.footer-qr-dialog__image {
  display: block;
  width: 250px;
  height: 250px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.footer-qr-dialog__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 250px;
  border: 1px dashed #d8e2de;
  border-radius: 16px;
  background: #f8faf9;
  color: var(--ink-3);
  font-size: 14px;
  text-align: center;
}

.footer-qr-dialog__hint {
  color: #6d7d77;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}

.footer-qr-dialog__desc {
  max-width: 320px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}

.footer-qr-dialog__link {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.footer-qr-dialog__link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------ 详情弹层 */
.detail-wrap { display: flex; gap: 26px; }

.detail-media {
  width: 300px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f1ed;
  flex-shrink: 0;
}

.detail-media img { width: 100%; height: 100%; object-fit: cover; }

.detail-carousel,
.detail-carousel__image {
  width: 100%;
  height: 100%;
}

.detail-carousel__image { display: block; object-fit: cover; }

.detail-carousel .el-carousel__container { height: 100%; }

.detail-info { flex: 1; min-width: 0; }

.detail-specs {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.detail-spec-group { margin-bottom: 10px; }

.detail-spec-group__label {
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.detail-spec-group__values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-spec-value {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.detail-spec-value:hover { border-color: var(--brand); color: var(--brand-dark); }

.detail-spec-value.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.detail-spec-summary,
.detail-spec-tip {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.detail-spec-summary { color: var(--brand-dark); }
.detail-spec-summary span { margin-left: 4px; }
.detail-spec-tip { color: var(--accent); }

.detail-info h2 { margin: 0 0 8px; font-size: 22px; }

.detail-desc {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
}

.detail-rich {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-rich__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.detail-rich__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.detail-rich__block { margin-top: 14px; }

.detail-rich__block:first-child { margin-top: 0; }

.detail-rich__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-rich__text.uy-text {
  font-family: "ALKATIP Basma Tom", "UKIJ Tuz Tom", "Microsoft Uyghur Sans", "Noto Naskh Arabic", "Segoe UI", sans-serif;
  direction: rtl;
  text-align: right;
}

.detail-rich__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--bg);
}

.detail-rich__qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf7;
  text-align: center;
}

.detail-rich__qrcode-link {
  display: block;
  line-height: 0;
}

.detail-rich__qrcode img {
  display: block;
  width: 180px;
  height: 180px;
  max-width: 100%;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(38, 64, 52, 0.08);
}

.detail-rich__qrcode-caption {
  max-width: 360px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.detail-rich__qrcode-tip {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.detail-rich__qrcode-tip.uy-text,
.detail-rich__qrcode-caption.uy-text {
  direction: rtl;
  text-align: center;
  font-family: "ALKATIP Basma Tom", "UKIJ Tuz Tom", "Microsoft Uyghur Sans", "Noto Naskh Arabic", "Segoe UI", sans-serif;
}

.detail-rich__media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-rich__media-title {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.detail-rich__media-title.uy-text {
  font-family: "ALKATIP Basma Tom", "UKIJ Tuz Tom", "Microsoft Uyghur Sans", "Noto Naskh Arabic", "Segoe UI", sans-serif;
  direction: rtl;
  text-align: right;
}

.detail-rich__video {
  display: block;
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  background: #000;
}

.detail-rich__audio {
  width: 100%;
}

.detail-rich__media-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
  color: var(--brand, #17735c);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.detail-comments {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-comments__count {
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
}

.detail-comments__list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.detail-comments__empty {
  padding: 18px 0;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.detail-comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.detail-comment:first-child {
  padding-top: 4px;
  border-top: none;
}

.detail-comment__avatar {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8f2ed;
  color: #17735c;
  font-size: 16px;
  font-weight: 700;
}

.detail-comment__body {
  flex: 1;
  min-width: 0;
}

.detail-comment__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-comment__user {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.detail-comment__time {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11px;
}

.detail-comment__status {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.detail-comment__status--pending {
  background: #fff4e0;
  color: #bd7a08;
}

.detail-comment__status--mine {
  background: #eaf4ef;
  color: #17735c;
}

.detail-comment__content {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-comment__content.uy-text {
  font-family: "ALKATIP Basma Tom", "UKIJ Tuz Tom", "Microsoft Uyghur Sans", "Noto Naskh Arabic", "Segoe UI", sans-serif;
  direction: rtl;
  text-align: right;
}

.detail-comment__actions {
  display: flex;
  justify-content: flex-end;
}

.detail-comments__login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
}

.detail-comments__compose {
  margin-top: 10px;
  padding-bottom: 72px;
}

.detail-comments__compose-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.empty-block {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .hero-panel { padding: 34px 26px; }
  .hero-title { font-size: 28px; }
  .hero-stamp { position: static; transform: none; text-align: left; margin-top: 24px; }
  .hero-slide { padding: 30px 26px; gap: 14px; }
  .hero-copy { max-width: none; flex: 1 1 auto; min-width: 0; }
  .hero-slide .hero-title { font-size: 25px; }
  .hero-slide .hero-desc { font-size: 13px; margin-bottom: 16px; }
  .hero-slide-media { flex: 0 0 130px; width: 130px; height: 130px; border-radius: 14px; }
  .notice-more { display: none; }
  .notice-inner { padding: 8px 12px; gap: 10px; }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .header-search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
  .detail-wrap { flex-direction: column; }
  .detail-media { width: 100%; height: 240px; }
}

/* 小屏时弹窗不超出视口 */
@media (max-width: 820px) {
  .el-dialog { width: 92vw !important; max-width: 92vw; }
}

/* 部分浏览器会把首屏轮播提升为独立合成层；显式给弹窗内容白色背景，避免弹窗正文被轮播穿透。 */
.el-dialog__body,
.el-dialog__footer {
  position: relative;
  z-index: 1;
  background: #fff;
}
.el-dialog__footer {
  border-radius: 0 0 var(--el-dialog-border-radius, 8px) var(--el-dialog-border-radius, 8px);
}

/* 买家个人资料与收货地址 */
.account-profile {
  display: flex;
  gap: 24px;
  padding: 4px 2px 10px;
}

.account-avatar-wrap {
  width: 132px;
  flex: 0 0 132px;
  text-align: center;
}

.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #2f9c7d);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

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

.account-avatar-tip {
  margin-top: 7px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
}

.address-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.address-tip {
  color: var(--ink-3);
  font-size: 12px;
}

.address-editor {
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.address-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.address-list {
  max-height: 330px;
  overflow-y: auto;
}

.address-card {
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.address-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.address-card__head strong { color: var(--ink); }

.address-card__body {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.address-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
}

.account-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #f0d5d1;
  border-radius: 12px;
  background: #fff8f7;
}

.account-danger__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  color: #8a4a43;
  font-size: 12px;
  line-height: 1.55;
}

.account-danger__text strong { color: #9f2f24; font-size: 13px; }
.account-danger .el-button { flex: 0 0 auto; }

@media (max-width: 640px) {
  .account-profile { flex-direction: column; }
  .account-avatar-wrap { width: 100%; flex-basis: auto; }
  .address-editor-grid { grid-template-columns: 1fr; gap: 0; }
  .account-danger { align-items: flex-start; flex-direction: column; }
  .account-danger .el-button { width: 100%; }
}

/* 代理中心 */
.agent-commission-card-line {
  margin-top: 6px;
  font-size: 12px;
  color: #b06a1f;
  background: #fff7e8;
  border: 1px dashed #f0cf9a;
  border-radius: 6px;
  padding: 4px 8px;
}
.agent-commission-detail {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8ea, #fffdf7);
  border: 1px solid #f1d9ae;
}
.agent-commission-detail__title { font-size: 12px; color: #8a6a3b; }
.agent-commission-detail__value { margin-top: 4px; font-size: 18px; font-weight: 700; color: #b06a1f; }
.agent-commission-detail__hint { margin-top: 4px; font-size: 12px; color: #9a8a70; }
.agent-center { min-height: 260px; }
.agent-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f7f5;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.agent-status-banner__label { font-size: 13px; color: var(--ink-2); margin-right: 10px; }
.agent-status-banner__reason { font-size: 12px; color: #b45309; }
.agent-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.agent-stat {
  padding: 12px;
  border-radius: 10px;
  background: #f7faf8;
  border: 1px solid var(--line);
}
.agent-stat span { display: block; font-size: 12px; color: var(--ink-3); }
.agent-stat strong { display: block; margin-top: 6px; font-size: 17px; color: var(--ink-1); }
.agent-poster-panel {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.agent-poster-preview { width: 150px; flex: 0 0 150px; }
.agent-poster-preview img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.agent-poster-info { flex: 1; min-width: 0; }
.agent-poster-title { font-weight: 700; color: var(--ink-1); }
.agent-poster-tip { margin-top: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.agent-poster-actions { margin-top: 10px; display: flex; gap: 8px; }
.agent-link-text { margin-top: 8px; font-size: 12px; color: var(--ink-3); word-break: break-all; }
.agent-section { margin-top: 16px; }
.agent-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.agent-pending-box {
  padding: 16px;
  border-radius: 12px;
  background: #fff9ed;
  border: 1px solid #f2d9ac;
}
.agent-pending-title { font-weight: 700; color: #9a640f; }
.agent-pending-desc { margin-top: 6px; font-size: 12px; color: #8a7350; line-height: 1.7; }
.agent-apply-summary {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 13px;
}
.agent-apply-summary span { display: inline-block; width: 100px; color: var(--ink-3); }
.agent-apply-intro__title { font-weight: 700; color: var(--ink-1); }
.agent-apply-intro__desc { margin-top: 4px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.agent-compliance {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fafbfa;
  border: 1px dashed var(--line);
}
.agent-compliance__title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.agent-compliance ul { margin: 0; padding-left: 18px; }
.agent-compliance li { font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.agent-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) {
  .agent-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-poster-panel { flex-direction: column; }
  .agent-form-grid, .agent-apply-summary { grid-template-columns: 1fr; }
}
.account-dialog { max-height: 86vh; display: flex; flex-direction: column; }
.account-dialog .el-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 20px; }

/* 代理中心维语版：文字从右侧开始，换行也从右侧开始；表格和海报布局保持不变 */
html[lang="ug-CN"] .agent-center .agent-status-banner {
  direction: rtl;
  text-align: right;
}
html[lang="ug-CN"] .agent-center .agent-status-banner__label,
html[lang="ug-CN"] .agent-center .agent-status-banner__reason,
html[lang="ug-CN"] .agent-center .agent-stat span,
html[lang="ug-CN"] .agent-center .agent-poster-title,
html[lang="ug-CN"] .agent-center .agent-poster-tip,
html[lang="ug-CN"] .agent-center .agent-section__head,
html[lang="ug-CN"] .agent-center .agent-pending-title,
html[lang="ug-CN"] .agent-center .agent-pending-desc,
html[lang="ug-CN"] .agent-center .agent-apply-summary,
html[lang="ug-CN"] .agent-center .agent-apply-intro__title,
html[lang="ug-CN"] .agent-center .agent-apply-intro__desc,
html[lang="ug-CN"] .agent-center .agent-compliance__title,
html[lang="ug-CN"] .agent-center .agent-compliance li,
html[lang="ug-CN"] .agent-center .el-checkbox__label {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[lang="ug-CN"] .agent-center .agent-stat strong {
  text-align: right;
}
html[lang="ug-CN"] .agent-center .agent-apply-summary span {
  display: inline-block;
  text-align: right;
}
html[lang="ug-CN"] .agent-center .agent-compliance ul {
  direction: rtl;
  padding-left: 0;
  padding-right: 18px;
}
html[lang="ug-CN"] .agent-center .el-form-item__label {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[lang="ug-CN"] .agent-center .el-input__inner,
html[lang="ug-CN"] .agent-center .el-textarea__inner {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[lang="ug-CN"] .agent-center .el-checkbox {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
html[lang="ug-CN"] .agent-center .el-table th .cell {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
/* ------------------------------------------------ 微信支付弹层 */
.wx-pay-box { padding: 4px 2px 8px; }
.wx-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f6f8f7; color: #6b7d75; font-size: 12px; }
.wx-pay-head strong { color: #173a2f; font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }
.wx-pay-amount { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 0 4px; }
.wx-pay-amount small { color: #82958d; font-size: 12px; }
.wx-pay-amount span { color: #c2410c; font-size: 28px; font-weight: 800; line-height: 1.2; }
.wx-pay-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 4px; }
.wx-pay-qr img { width: 230px; height: 230px; padding: 10px; border: 1px solid #e2ebe6; border-radius: 12px; background: #fff; }
.wx-pay-qr div, .wx-pay-tip { color: #61766d; font-size: 13px; line-height: 1.6; text-align: center; }
.wx-pay-tip { padding: 16px 10px; }
.wx-pay-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 0; color: #61766d; font-size: 13px; }
.wx-pay-spinner { width: 18px; height: 18px; border: 2px solid #cfe3da; border-top-color: #1c8a6c; border-radius: 50%; animation: wx-pay-spin 0.8s linear infinite; }
@keyframes wx-pay-spin { to { transform: rotate(360deg); } }
html[lang="ug-CN"] .wx-pay-head { direction: rtl; }
html[lang="ug-CN"] .wx-pay-box { direction: rtl; }
