/* ===== 小猛龙跨境AI · 设计系统 ===== */

:root {
  --yellow-50: #FFFBEF;
  --yellow-100: #FFF3D0;
  --yellow-200: #FFE49B;
  --yellow-300: #FFD35C;
  --yellow-400: #FFBE2E;
  --yellow-500: #F5A623;
  --orange-400: #FF8A3D;
  --orange-500: #F26B21;
  --orange-600: #DC5310;

  --ink-900: #1A1714;
  --ink-800: #2C2724;
  --ink-700: #4A423C;
  --ink-500: #7A706A;
  --ink-400: #A0968F;

  --line: rgba(26, 23, 20, 0.10);
  --line-strong: rgba(26, 23, 20, 0.18);

  --bg: #FFFFFF;
  --bg-soft: #FFFAF0;
  --bg-warm: #FFF6E3;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(26, 23, 20, 0.05);
  --shadow-md: 0 6px 20px rgba(26, 23, 20, 0.07);
  --shadow-lg: 0 16px 44px rgba(26, 23, 20, 0.10);

  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== 顶部通栏 ===== */
.topbar {
  background: var(--ink-900);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.topbar span { opacity: 0.82; }
.topbar .tb-link { opacity: 0.82; transition: opacity .2s; }
.topbar .tb-link:hover { opacity: 1; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-text { line-height: 1.25; }
.brand-text b { display: block; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.brand-text small { display: block; font-size: 11px; color: var(--ink-400); letter-spacing: .1em; }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--ink-700); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--orange-500); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink-900); color: #fff; font-size: 14px;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--orange-500); transform: translateY(-1px); }
.nav-toggle { display: none; font-size: 22px; padding: 4px 8px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--bg-warm); }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.png');
  background-size: cover; background-position: center right;
  opacity: .96;
}
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--bg-warm) 0%, var(--bg-warm) 30%,
    rgba(255, 246, 227, .88) 44%, rgba(255, 246, 227, .12) 62%, rgba(255, 246, 227, 0) 78%);
}
.hero .wrap { position: relative; z-index: 2; padding: 92px 24px 104px; max-width: var(--maxw); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-600); font-weight: 700; margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--orange-400); border-radius: 2px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.12; font-weight: 800; letter-spacing: -.01em;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--orange-500), var(--yellow-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--ink-700); margin-bottom: 14px; white-space: pre-line; }
.hero-note { font-size: 14px; color: var(--ink-500); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(96deg, var(--orange-500), var(--yellow-400));
  color: #fff; box-shadow: 0 8px 22px rgba(242, 107, 33, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242, 107, 33, .34); }
.btn-ghost {
  background: #fff; color: var(--ink-900); border: 1px solid var(--line-strong);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--orange-400); color: var(--orange-600); }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 46px;
  font-size: 13px; color: var(--ink-500);
}
.hero-scroll span.dot {
  width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; animation: bounce 2.2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ===== 通用 Section ===== */
.section { padding: 92px 0; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-index {
  font-size: 12px; letter-spacing: .18em; color: var(--orange-500);
  font-weight: 700; margin-bottom: 12px; text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800;
  line-height: 1.28; letter-spacing: -.01em; margin-bottom: 14px;
}
.section-head p { color: var(--ink-500); font-size: 16px; }
.section-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== 精选大卡 ===== */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-visual {
  position: relative; min-height: 420px;
  background: linear-gradient(140deg, var(--yellow-100), var(--yellow-200) 55%, var(--orange-400));
  display: grid; place-items: center; padding: 28px;
}
.feature-visual img { width: 86%; max-width: 340px; filter: drop-shadow(0 18px 30px rgba(180, 90, 20, .28)); }
.feature-sticker {
  position: absolute; top: 24px; left: 24px;
  background: #fff; border-radius: 999px; padding: 7px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--orange-600);
  box-shadow: var(--shadow-sm);
}
.feature-body { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
.feature-body .cat { font-size: 12px; letter-spacing: .14em; color: var(--orange-500); font-weight: 700; margin-bottom: 14px; }
.feature-body h3 { font-size: 30px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.feature-body .sub { font-size: 15px; color: var(--ink-500); margin-bottom: 18px; }
.feature-body p { color: var(--ink-700); margin-bottom: 26px; }
.feature-price { font-size: 28px; font-weight: 800; color: var(--orange-600); margin-bottom: 4px; }
.feature-price small { font-size: 14px; font-weight: 400; color: var(--ink-400); margin-left: 8px; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-500);
}

/* ===== 分类 Tab ===== */
.tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
  padding-bottom: 4px;
}
.tab {
  padding: 9px 20px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line-strong); color: var(--ink-700);
  transition: all .2s; background: #fff;
}
.tab:hover { border-color: var(--orange-400); color: var(--orange-600); }
.tab.active {
  background: var(--ink-900); border-color: var(--ink-900); color: #fff;
}
.tab .cnt { font-size: 12px; opacity: .55; margin-left: 6px; }

/* ===== 商品网格 ===== */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 22px;
}
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .24s, box-shadow .24s, border-color .24s;
  position: relative;
}
.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: rgba(242, 107, 33, .35);
}
.card-top {
  position: relative; height: 156px;
  background: linear-gradient(135deg, var(--yellow-50), var(--yellow-200));
  display: grid; place-items: center; overflow: hidden;
}
.card-top img { width: 118px; filter: drop-shadow(0 10px 18px rgba(180, 90, 20, .22)); transition: transform .3s; }
.card:hover .card-top img { transform: scale(1.07) rotate(-3deg); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange-500); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: .04em;
}
.card-cat {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.92); color: var(--ink-700);
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h4 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.card-body .sub { font-size: 13px; color: var(--ink-500); margin-bottom: 12px; }
.card-body p { font-size: 13px; color: var(--ink-500); margin-bottom: 16px; flex: 1; line-height: 1.65; }
.card-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
}
.card-price { font-size: 19px; font-weight: 800; color: var(--orange-600); line-height: 1.3; }
.card-price small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-400); letter-spacing: .02em; }
.card-sold { font-size: 12px; color: var(--ink-400); margin-top: 3px; }
.card-buy {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-900); border: 1px solid var(--line);
  transition: all .2s; white-space: nowrap;
}
.card-buy:hover { background: var(--orange-500); color: #fff; border-color: var(--orange-500); }

/* ===== 场景区 ===== */
.scene {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center;
}
.scene-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.scene-img img { width: 100%; display: block; }
.scene-list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.scene-item { display: flex; gap: 16px; align-items: flex-start; }
.scene-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: var(--yellow-100); color: var(--orange-600);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.scene-item b { display: block; font-size: 16px; margin-bottom: 4px; }
.scene-item p { font-size: 14px; color: var(--ink-500); }

/* ===== 流程 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; position: relative; transition: all .24s;
}
.step:hover { border-color: rgba(242,107,33,.35); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step .n {
  font-size: 42px; font-weight: 800; line-height: 1; color: var(--yellow-200);
  margin-bottom: 12px;
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-500); }
.step:not(:last-child)::after {
  content: ''; position: absolute; right: -13px; top: 50%;
  width: 8px; height: 8px; border-right: 2px solid var(--yellow-300);
  border-top: 2px solid var(--yellow-300); transform: translateY(-50%) rotate(45deg);
}

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%; text-align: left; padding: 22px 44px 22px 0; position: relative;
  font-size: 16px; font-weight: 600;
}
.faq-q::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; color: var(--orange-500); transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  color: var(--ink-500); font-size: 14.5px;
}
.faq-a-inner { padding: 0 44px 24px 0; }

/* ===== CTA 区 ===== */
.cta-band {
  background: linear-gradient(120deg, var(--ink-900) 0%, #3A2A18 55%, var(--orange-600) 130%);
  border-radius: var(--radius-xl); padding: 56px 60px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.72); font-size: 15px; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { justify-content: center; }

/* ===== 页脚 ===== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 60px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px;
}
.footer h5 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer a, .footer p { display: block; font-size: 13.5px; color: var(--ink-500); margin-bottom: 9px; transition: color .2s; }
.footer a:hover { color: var(--orange-600); }
.footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .fbrand img { height: 42px; }
.footer .fdesc { font-size: 13.5px; color: var(--ink-500); max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--ink-400); flex-wrap: wrap; gap: 12px;
}
.footer-slogan { font-size: 13px; color: var(--ink-500); font-weight: 600; }
/* 页脚「商家后台」低调入口 */
.footer .footer-admin-link {
  display: inline-block; font-size: 12px; margin: 0;
  color: rgba(26, 23, 20, 0.30); border-bottom: 1px dashed rgba(26, 23, 20, 0.18);
  padding-bottom: 1px; transition: color .2s, border-color .2s;
}
.footer .footer-admin-link:hover { color: var(--orange-600); border-color: var(--orange-600); }

/* ===== 商品详情页 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--yellow-50), var(--bg-warm));
  padding: 52px 0 44px; border-bottom: 1px solid var(--line);
}
.crumb { font-size: 13px; color: var(--ink-400); margin-bottom: 14px; }
.crumb a:hover { color: var(--orange-600); }
.page-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.page-hero .sub { color: var(--ink-500); font-size: 15px; margin-top: 6px; }

.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.detail-visual {
  background: linear-gradient(140deg, var(--yellow-50), var(--yellow-200));
  border-radius: var(--radius-xl); padding: 44px; text-align: center;
  border: 1px solid var(--line); position: sticky; top: 92px;
}
.detail-visual img { width: 62%; margin: 0 auto 22px; filter: drop-shadow(0 16px 28px rgba(180,90,20,.24)); }
.detail-visual h2 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.detail-visual .sub { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.purchase {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.purchase .price { font-size: 34px; font-weight: 800; color: var(--orange-600); margin-bottom: 4px; }
.purchase .price small { font-size: 13px; font-weight: 400; color: var(--ink-400); margin-left: 8px; }
.purchase .sold { font-size: 13px; color: var(--ink-400); margin-bottom: 22px; }
.plan-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.plan-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.plan {
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; transition: all .2s; background: #fff;
}
.plan:hover, .plan.active { border-color: var(--orange-500); color: var(--orange-600); background: var(--yellow-50); }
.purchase .btn { width: 100%; justify-content: center; }
.purchase .hint { font-size: 12.5px; color: var(--ink-400); margin-top: 14px; text-align: center; }

.acc { margin-top: 20px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; padding: 17px 22px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; background: #fff;
}
.acc-head .plus { color: var(--orange-500); font-size: 19px; font-weight: 300; transition: transform .25s; }
.acc-item.open .acc-head .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-inner { padding: 0 22px 20px; font-size: 14px; color: var(--ink-500); }
.acc-body-inner ul { padding-left: 18px; }
.acc-body-inner li { margin-bottom: 7px; }

.detail-desc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px; margin-top: 24px;
}
.detail-desc h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.detail-desc p { font-size: 14.5px; color: var(--ink-700); line-height: 1.85; }

/* ===== 订单查询 ===== */
.lookup-wrap { max-width: 620px; margin: 0 auto; }
.lookup-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-md); text-align: center;
}
.lookup-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.lookup-card > p { color: var(--ink-500); font-size: 14.5px; margin-bottom: 30px; }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 15px; font-size: 14.5px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none; border-color: var(--orange-400);
  box-shadow: 0 0 0 3px rgba(255, 190, 46, .18);
}
.lookup-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.lookup-result { margin-top: 24px; text-align: left; }
.order-box {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px; background: var(--bg-soft);
}
.order-box h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.order-box .oid { font-size: 12.5px; color: var(--ink-400); margin-bottom: 14px; }
.order-line {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px dashed var(--line-strong); font-size: 13.5px;
}
.order-line:last-child { border-bottom: none; }
.order-line span { color: var(--ink-500); }
.order-line b { font-weight: 600; }
.empty-tip {
  text-align: center; padding: 40px; color: var(--ink-400); font-size: 14px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-md);
}

/* ===== 导航栏：购物车 + 用户菜单 ===== */
.nav-cart-wrap { flex-shrink: 0; }
.nav-cart {
  position: relative; display: flex; align-items: center; padding: 8px;
  color: var(--ink-700); transition: color .2s;
}
.nav-cart:hover { color: var(--orange-600); }
.cart-badge {
  position: absolute; top: 0; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--orange-500); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px;
  display: grid; place-items: center; line-height: 1;
}

.nav-auth { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.nav-login, .nav-register {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.nav-login {
  background: linear-gradient(96deg, var(--orange-500), var(--yellow-400));
  color: #fff; box-shadow: 0 4px 14px rgba(242, 107, 33, .22);
}
.nav-login:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(242, 107, 33, .3); }
.nav-register {
  background: #fff; color: var(--ink-800); border: 1px solid var(--line-strong);
}
.nav-register:hover { border-color: var(--orange-400); color: var(--orange-600); }

.nav-user-wrap { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: var(--yellow-50); border: 1px solid var(--line);
  transition: all .2s;
}
.nav-user-btn:hover { border-color: var(--orange-300); }
.nav-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
  color: #fff; font-size: 14px; font-weight: 700;
  display: grid; place-items: center; flex-shrink: 0;
}
.nav-user-name {
  font-size: 14px; font-weight: 600; color: var(--ink-800);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 100;
  padding: 6px; overflow: hidden;
}
.nav-user-menu.show { display: block; animation: menuFadeIn .15s ease; }
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-user-menu a, .nav-user-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--ink-700);
  transition: background .15s; text-align: left;
}
.nav-user-menu a:hover, .nav-user-menu button:hover { background: var(--bg-warm); color: var(--orange-600); }
.nav-user-menu span { font-size: 16px; width: 20px; text-align: center; }
.nav-menu-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* ===== 登录/注册页（电商风格左右分栏）===== */
.auth-page-nav {
  height: 64px; border-bottom: 1px solid var(--line);
  background: #fff; display: flex; align-items: center;
}
.auth-page-nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.auth-page-tip { font-size: 14px; color: var(--ink-500); }
.auth-page-tip a { color: var(--orange-600); font-weight: 600; }
.auth-page-footer {
  text-align: center; padding: 20px; font-size: 13px; color: var(--ink-400);
}

.auth-main { display: flex; min-height: calc(100vh - 64px - 56px); }

/* 左侧品牌区 */
.auth-brand-side {
  flex: 1; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--bg-warm), var(--yellow-100) 60%, var(--orange-400));
  display: flex; align-items: center; justify-content: center;
}
.auth-brand-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.png');
  background-size: cover; background-position: center right; opacity: .15;
}
.auth-brand-content { position: relative; z-index: 2; padding: 60px 48px; max-width: 480px; }
.auth-brand-ip {
  width: 200px; margin-bottom: 32px;
  filter: drop-shadow(0 16px 30px rgba(180, 90, 20, .3));
}
.auth-brand-content h2 {
  font-size: 36px; font-weight: 800; line-height: 1.2; color: var(--ink-900); margin-bottom: 14px;
}
.auth-brand-content > p { font-size: 16px; color: var(--ink-700); margin-bottom: 32px; }
.auth-brand-features { display: flex; flex-direction: column; gap: 14px; }
.auth-brand-f { font-size: 15px; color: var(--ink-800); font-weight: 500; }
.auth-brand-f span {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  background: var(--orange-500); color: #fff; border-radius: 50%; font-size: 12px;
  margin-right: 10px;
}

/* 右侧表单区 */
.auth-form-side {
  flex: 0 0 480px; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 40px;
}
.auth-form-container { width: 100%; max-width: 400px; }

.auth-tabs {
  display: flex; border-bottom: 2px solid var(--line); margin-bottom: 32px;
}
.auth-tab {
  flex: 1; padding: 12px 0; font-size: 16px; font-weight: 600;
  color: var(--ink-400); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .2s;
}
.auth-tab.active { color: var(--orange-600); border-bottom-color: var(--orange-500); }

.auth-panel { display: none; }
.auth-panel.active { display: block; animation: panelFade .25s ease; }
@keyframes panelFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.auth-panel h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-panel-sub { font-size: 14px; color: var(--ink-500); margin-bottom: 28px; }

.auth-field { margin-bottom: 20px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-800); }
.auth-field label small { font-weight: 400; color: var(--ink-400); margin-left: 4px; }
.auth-field input {
  width: 100%; padding: 12px 15px; font-size: 14.5px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field input:focus {
  outline: none; border-color: var(--orange-400);
  box-shadow: 0 0 0 3px rgba(255, 190, 46, .18);
}

.pwd-input-wrap { position: relative; }
.pwd-input-wrap input { padding-right: 60px; }
.pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  padding: 4px 10px; font-size: 12px; color: var(--ink-500);
  background: var(--bg-warm); border-radius: 6px; transition: all .15s;
}
.pwd-toggle:hover { background: var(--orange-500); color: #fff; }

.pwd-strength { margin-top: 8px; }
.pwd-strength-bar { display: flex; gap: 4px; }
.pwd-strength-bar span {
  flex: 1; height: 4px; border-radius: 2px; background: var(--line);
  transition: background .2s;
}
.pwd-strength-bar.weak span:nth-child(1) { background: #E74C3C; }
.pwd-strength-bar.medium span:nth-child(-n+2) { background: var(--orange-400); }
.pwd-strength-bar.strong span { background: #27AE60; }
.pwd-strength-label { font-size: 12px; margin-top: 4px; color: var(--ink-400); }
.pwd-strength-label.weak { color: #E74C3C; }
.pwd-strength-label.medium { color: var(--orange-500); }
.pwd-strength-label.strong { color: #27AE60; }

.auth-agree {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px;
  font-size: 13px; color: var(--ink-500); cursor: pointer;
}
.auth-agree input { margin-top: 3px; accent-color: var(--orange-500); }
.auth-agree a { color: var(--orange-600); }

.auth-error {
  display: none; margin-bottom: 16px; padding: 10px 14px;
  border-radius: 8px; font-size: 13px;
  background: #FFF0EC; border: 1px solid #F4C5BC; color: #C0392B;
}
.auth-error.show { display: block; animation: shake .3s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.auth-submit {
  width: 100%; justify-content: center; padding: 13px; font-size: 16px;
  letter-spacing: .05em; margin-top: 4px;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 24px 0 16px;
  font-size: 12px; color: var(--ink-400);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.auth-social { display: flex; gap: 12px; justify-content: center; }
.auth-social-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 14px; color: var(--ink-500); transition: all .2s;
  display: grid; place-items: center;
}
.auth-social-btn:hover:not(:disabled) { border-color: var(--orange-400); color: var(--orange-600); }
.auth-social-btn:disabled { opacity: .4; cursor: not-allowed; }

.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-500); }
.auth-switch a { color: var(--orange-600); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ===== 购物车页 ===== */
.cart-page { padding: 40px 0 80px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; transition: box-shadow .2s;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-img {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--yellow-50), var(--yellow-200));
  display: grid; place-items: center;
}
.cart-item-img img { width: 48px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.cart-item-info .sub { font-size: 13px; color: var(--ink-500); margin-bottom: 4px; }
.cart-item-info .plan-tag { font-size: 12px; color: var(--orange-600); background: var(--yellow-50); padding: 2px 8px; border-radius: 4px; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--orange-600); margin-right: 12px; white-space: nowrap; }
.cart-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.cart-qty button { width: 32px; height: 32px; font-size: 16px; color: var(--ink-700); background: #fff; }
.cart-qty button:hover { background: var(--bg-warm); }
.cart-qty span { min-width: 36px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-item-del { color: var(--ink-400); font-size: 18px; padding: 4px 8px; transition: color .2s; background: none; }
.cart-item-del:hover { color: #E74C3C; }

.cart-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; position: sticky; top: 88px;
}
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.cart-sum-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.cart-sum-row span { color: var(--ink-500); }
.cart-sum-row b { font-weight: 600; }
.cart-sum-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.cart-sum-total b { font-size: 22px; color: var(--orange-600); }
.cart-summary .btn { width: 100%; justify-content: center; margin-top: 16px; }

.empty-state { text-align: center; padding: 80px 24px; }
.empty-state img { width: 120px; margin: 0 auto 20px; opacity: .6; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--ink-700); }
.empty-state p { font-size: 14px; color: var(--ink-400); margin-bottom: 20px; }

/* ===== 订单列表页 ===== */
.orders-page { padding: 40px 0 80px; }
.orders-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.orders-tab {
  padding: 12px 24px; font-size: 15px; font-weight: 500; color: var(--ink-500);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: all .2s;
}
.orders-tab.active { color: var(--orange-600); border-bottom-color: var(--orange-500); font-weight: 600; }
.orders-tab:hover { color: var(--orange-600); }

.order-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 16px; overflow: hidden; transition: box-shadow .2s;
}
.order-card:hover { box-shadow: var(--shadow-sm); }
.order-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.order-card-head .oid { color: var(--ink-500); }
.order-card-head .oid b { color: var(--ink-900); font-weight: 600; }
.order-status-tag {
  padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.order-status-tag.pending { background: #FFF3E0; color: var(--orange-600); }
.order-status-tag.paid { background: #E8F5E9; color: #27AE60; }
.order-status-tag.shipped { background: #E3F2FD; color: #1976D2; }
.order-status-tag.completed { background: #F5F5F5; color: var(--ink-500); }
.order-status-tag.cancelled { background: #FFEBEE; color: #C0392B; }

.order-card-body { padding: 16px 20px; }
.order-item-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.order-item-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--yellow-50); padding: 4px; }
.order-item-name { flex: 1; font-size: 14px; }
.order-item-name b { display: block; font-weight: 600; }
.order-item-name small { color: var(--ink-500); font-size: 12px; }
.order-item-price { font-size: 14px; font-weight: 600; color: var(--orange-600); }

.order-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg-soft);
}
.order-total { font-size: 14px; }
.order-total b { font-size: 18px; color: var(--orange-600); font-weight: 700; }
.order-actions { display: flex; gap: 10px; }
.order-btn {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.order-btn.primary { background: var(--orange-500); color: #fff; }
.order-btn.primary:hover { background: var(--orange-600); }
.order-btn.ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-700); }
.order-btn.ghost:hover { border-color: var(--orange-400); color: var(--orange-600); }

/* ===== 个人中心 ===== */
.profile-page { padding: 40px 0 80px; }
.profile-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.profile-side {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; text-align: center; position: sticky; top: 88px;
}
.profile-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
  color: #fff; font-size: 28px; font-weight: 700;
  display: grid; place-items: center;
}
.profile-side h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-side .profile-phone { font-size: 13px; color: var(--ink-400); margin-bottom: 20px; }
.profile-menu { text-align: left; }
.profile-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 8px; font-size: 14px; color: var(--ink-700); transition: all .15s;
}
.profile-menu a:hover, .profile-menu a.active { background: var(--bg-warm); color: var(--orange-600); }
.profile-menu span { font-size: 16px; width: 20px; text-align: center; }

.profile-main {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 32px;
}
.profile-main h2 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.profile-info-row { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile-info-row:last-child { border-bottom: none; }
.profile-info-row label { width: 120px; font-size: 14px; color: var(--ink-500); }
.profile-info-row .val { flex: 1; font-size: 15px; font-weight: 500; }
.profile-info-row .edit-btn { font-size: 13px; color: var(--orange-600); font-weight: 600; }

/* ===== 结算页 ===== */
.checkout-page { padding: 40px 0 80px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.checkout-items {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px;
}
.checkout-items h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item img { width: 48px; height: 48px; border-radius: 8px; background: var(--yellow-50); padding: 4px; }
.checkout-item .name { flex: 1; font-size: 14px; }
.checkout-item .name b { font-weight: 600; }
.checkout-item .name small { display: block; color: var(--ink-500); font-size: 12px; }
.checkout-item .price { font-weight: 700; color: var(--orange-600); }

.checkout-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; position: sticky; top: 88px;
}
.checkout-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.checkout-field { margin-bottom: 16px; }
.checkout-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.checkout-field textarea, .checkout-field input {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 8px; resize: vertical;
}
.checkout-field textarea:focus, .checkout-field input:focus {
  outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(255,190,46,.18);
}
.checkout-summary .btn { width: 100%; justify-content: center; margin-top: 12px; font-size: 16px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .feature { grid-template-columns: 1fr; }
  .feature-body { padding: 38px 32px; }
  .feature-visual { min-height: 320px; order: -1; }
  .scene { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail-visual { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; }
}
@media (max-width: 768px) {
  .auth-main { flex-direction: column; }
  .auth-brand-side { display: none; }
  .auth-form-side { flex: 1; padding: 32px 20px; }
}
@media (max-width: 460px) {
  .nav-cta { display: none; }
  .nav-auth { display: flex; gap: 6px; }
  .nav-login { padding: 7px 14px; font-size: 13px; }
  .nav-register { display: none; }
  .nav-user-name { max-width: 56px; font-size: 13px; }
  .nav-user-menu { right: -20px; }
  .nav-cart-wrap { display: flex; }
  .brand-text { display: block; }
  .brand-text b { font-size: 14px; }
  .brand-text small { font-size: 10px; }
  .brand img { height: 32px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
}
@media (max-width: 720px) {
  .nav .wrap { height: 60px; gap: 10px; }
  .nav .brand-text { display: none; }
  .brand img { height: 34px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 18px 24px; gap: 14px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; }
  .nav-toggle { display: block; font-size: 24px; padding: 4px 6px; line-height: 1; }
  .hero .wrap { padding: 64px 24px 72px; }
  .hero-bg { background-position: 62% center; opacity: .5; }
  .hero-fade {
    background: linear-gradient(180deg, rgba(255,246,227,.95) 0%, rgba(255,246,227,.9) 45%, rgba(255,246,227,.55) 100%);
  }
  .steps { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 38px 28px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .lookup-card { padding: 28px 22px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-price { width: 100%; text-align: right; margin-top: 8px; }
}

/* ===== 商品详情页：数量选择 + 双按钮 ===== */
.purchase-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-label { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 34px; height: 34px; font-size: 18px; color: var(--ink-700); background: #fff; transition: background .15s; }
.qty-btn:hover { background: var(--bg-warm); color: var(--orange-600); }
.qty-input { width: 44px; height: 34px; text-align: center; font-size: 14px; font-weight: 600; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.purchase-actions { display: flex; gap: 12px; }
.btn-cart {
  flex: 1; padding: 13px 16px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: #fff; border: 2px solid var(--orange-400); color: var(--orange-600);
  transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-cart:hover { background: var(--yellow-50); border-color: var(--orange-500); }
.purchase-actions .btn-primary { flex: 1; }
/* 已下架商品提示 */
.off-shelf-tip {
  flex: 1; padding: 13px 16px; border-radius: 12px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--ink-500);
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
}

/* 购物车加入提示 */
.cart-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink-900); color: #fff; padding: 14px 24px; border-radius: 12px;
  font-size: 14px; display: flex; align-items: center; gap: 8px; z-index: 9999;
  opacity: 0; transition: all .3s ease; box-shadow: var(--shadow-lg);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-toast-icon { display: grid; place-items: center; width: 22px; height: 22px; background: #27AE60; border-radius: 50%; font-size: 12px; }
.cart-toast-link { color: var(--yellow-300); margin-left: 8px; font-weight: 600; }
.cart-toast-link:hover { color: var(--yellow-200); }

/* ===== 购物车页（完整样式）===== */
.cart-empty { text-align: center; padding: 80px 24px; }
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: .5; }
.cart-empty h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--ink-700); }
.cart-empty p { font-size: 14px; color: var(--ink-400); margin-bottom: 24px; }
.cart-empty .btn { display: inline-flex; padding: 12px 32px; }

.cart-list-header {
  display: flex; align-items: center; padding: 12px 20px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 12px 12px 0 0; font-size: 13px; color: var(--ink-500); font-weight: 600;
}
.cart-col-info { flex: 1; }
.cart-col-price { width: 100px; text-align: center; }
.cart-col-qty { width: 130px; text-align: center; }
.cart-col-sub { width: 100px; text-align: right; }
.cart-col-op { width: 50px; text-align: center; }

.cart-item { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-top: none; padding: 16px 20px; background: #fff; }
.cart-item:last-child { border-radius: 0 0 12px 12px; }
.cart-item-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, var(--yellow-50), var(--yellow-200)); padding: 6px; }
.cart-item-info { flex: 1; min-width: 0; display: flex; gap: 16px; align-items: center; }
.cart-item-detail { flex: 1; min-width: 0; }
.cart-item-title { font-size: 15px; font-weight: 600; color: var(--ink-900); text-decoration: none; display: block; margin-bottom: 2px; }
.cart-item-title:hover { color: var(--orange-600); }
.cart-item-sub { font-size: 13px; color: var(--ink-500); margin-bottom: 4px; }
.cart-item-plan { font-size: 12px; color: var(--orange-600); background: var(--yellow-50); padding: 2px 8px; border-radius: 4px; display: inline-block; }
.cart-item-price { width: 100px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-700); }
.cart-item-subtotal { width: 100px; text-align: right; font-size: 16px; font-weight: 700; color: var(--orange-600); }
.cart-item-del { width: 50px; text-align: center; font-size: 16px; color: var(--ink-400); background: none; transition: color .2s; }
.cart-item-del:hover { color: #E74C3C; }

.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; position: sticky; top: 88px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; color: var(--ink-700); }
.cart-summary-row span:first-child { color: var(--ink-500); }
.cart-summary-total { font-size: 22px; font-weight: 800; color: var(--orange-600); }
.cart-checkout-btn { width: 100%; justify-content: center; margin: 16px 0 12px; padding: 14px; font-size: 16px; }
.cart-continue { display: block; text-align: center; font-size: 14px; color: var(--ink-500); text-decoration: none; }
.cart-continue:hover { color: var(--orange-600); }

/* ===== 结算页（完整样式）===== */
.checkout-main { display: flex; flex-direction: column; gap: 20px; }
.checkout-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.checkout-section-title { font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-field { display: flex; flex-direction: column; }
.checkout-field label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-700); }
.checkout-field input { padding: 10px 14px; font-size: 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-soft); }
.checkout-field input:focus { outline: none; border-color: var(--orange-400); }
.checkout-textarea { width: 100%; min-height: 80px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line-strong); border-radius: 8px; resize: vertical; font-family: inherit; }
.checkout-textarea:focus { outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(255,190,46,.18); }

.checkout-items { background: #fff; }
.checkout-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg, var(--yellow-50), var(--yellow-200)); padding: 4px; flex-shrink: 0; }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-title { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.checkout-item-sub { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.checkout-item-plan { font-size: 12px; color: var(--orange-600); margin-top: 4px; }
.checkout-item-price { font-size: 14px; color: var(--ink-500); width: 100px; text-align: center; }
.checkout-item-qty { font-size: 14px; color: var(--ink-500); width: 60px; text-align: center; }
.checkout-item-subtotal { font-size: 16px; font-weight: 700; color: var(--orange-600); width: 100px; text-align: right; }

.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; position: sticky; top: 88px; }
.checkout-summary-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.checkout-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--ink-700); }
.checkout-summary-row span:first-child { color: var(--ink-500); }
.checkout-summary-divider { height: 1px; background: var(--line); margin: 16px 0; }
.checkout-summary-total-row { font-size: 16px; font-weight: 700; }
.checkout-summary-total { font-size: 24px; font-weight: 800; color: var(--orange-600); }
.checkout-submit-btn { width: 100%; justify-content: center; margin-top: 20px; padding: 14px; font-size: 16px; }
.checkout-tip { font-size: 12px; color: var(--ink-400); margin-top: 12px; text-align: center; line-height: 1.6; }
.checkout-back { display: block; text-align: center; font-size: 13px; color: var(--ink-500); margin-top: 12px; text-decoration: none; }
.checkout-back:hover { color: var(--orange-600); }

/* ===== 订单页（完整样式）===== */
.orders-tab-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--orange-500); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; margin-left: 6px; line-height: 1;
}

.order-success-tip {
  display: flex; align-items: center; gap: 12px; background: #E8F5E9; border: 1px solid #C8E6C9;
  border-radius: 12px; padding: 16px 24px; margin-bottom: 20px; font-size: 15px;
}
.order-success-icon { display: grid; place-items: center; width: 28px; height: 28px; background: #27AE60; color: #fff; border-radius: 50%; font-size: 14px; flex-shrink: 0; }
.order-success-tip b { font-weight: 700; }
.order-success-sub { margin-left: auto; font-size: 13px; color: var(--ink-500); }

.orders-list { display: flex; flex-direction: column; gap: 16px; }

.order-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px;
}
.order-header-left { display: flex; align-items: center; gap: 20px; }
.order-no { color: var(--ink-500); }
.order-no b { color: var(--ink-900); font-weight: 600; }
.order-time { color: var(--ink-400); }

.order-status-tag { padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.st-pending { background: #FFF3E0; color: var(--orange-600); }
.st-paid { background: #E8F5E9; color: #27AE60; }
.st-shipped { background: #E3F2FD; color: #1976D2; }
.st-completed { background: #F5F5F5; color: var(--ink-500); }
.st-cancelled { background: #FFEBEE; color: #C0392B; }

.order-items { padding: 16px 20px; }
.order-item-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.order-item-img { width: 48px; height: 48px; border-radius: 8px; background: var(--yellow-50); padding: 4px; flex-shrink: 0; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-title { font-size: 14px; font-weight: 600; color: var(--ink-900); text-decoration: none; }
.order-item-title:hover { color: var(--orange-600); }
.order-item-sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.order-item-plan { font-size: 12px; color: var(--orange-600); margin-top: 2px; }
.order-item-price { font-size: 14px; color: var(--ink-500); width: 100px; text-align: center; }
.order-item-qty { font-size: 14px; color: var(--ink-500); width: 60px; text-align: center; }
.order-item-subtotal { font-size: 15px; font-weight: 600; color: var(--orange-600); width: 100px; text-align: right; }

.order-remark { padding: 8px 20px 12px; font-size: 13px; color: var(--ink-500); border-top: 1px dashed var(--line); }
.order-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-soft);
}
.order-total { font-size: 14px; color: var(--ink-700); }
.order-total-price { font-size: 18px; font-weight: 800; color: var(--orange-600); }
.order-actions { display: flex; gap: 10px; }
.order-btn { padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: all .2s; }
.btn-primary.order-btn { background: var(--orange-500); color: #fff; }
.btn-primary.order-btn:hover { background: var(--orange-600); }
.btn-ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--orange-400); color: var(--orange-600); }

/* ===== 个人中心（完整样式）===== */
.profile-card { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-join { font-size: 13px; color: var(--ink-400); }

.profile-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px;
  border-radius: 8px; font-size: 14px; color: var(--ink-700); transition: all .15s;
  text-decoration: none; background: none; border: none; font-family: inherit; text-align: left; cursor: pointer;
}
.profile-menu-item:hover, .profile-menu-item.active { background: var(--bg-warm); color: var(--orange-600); }
.profile-menu-item span { font-size: 16px; width: 20px; text-align: center; }
.profile-logout { color: #C0392B; }
.profile-logout:hover { background: #FFEBEE; color: #C0392B; }

.profile-main { display: flex; flex-direction: column; gap: 24px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.profile-stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.profile-stat-num { font-size: 28px; font-weight: 800; color: var(--orange-600); margin-bottom: 4px; }
.profile-stat-label { font-size: 13px; color: var(--ink-500); }

.profile-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.profile-section-title { font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.profile-section-more { font-size: 13px; font-weight: 500; color: var(--orange-600); text-decoration: none; }
.profile-section-more:hover { text-decoration: underline; }

.profile-info-list { display: flex; flex-direction: column; }
.profile-info-row { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label { width: 120px; font-size: 14px; color: var(--ink-500); flex-shrink: 0; }
.profile-info-value { flex: 1; font-size: 15px; font-weight: 500; color: var(--ink-900); }

.profile-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.profile-quick-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
  transition: all .2s; background: #fff;
}
.profile-quick-card:hover { border-color: var(--orange-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.profile-quick-icon { font-size: 32px; }
.profile-quick-text { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.profile-quick-badge {
  position: absolute; top: 8px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--orange-500); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; line-height: 1;
}

.profile-order-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background .15s; border-radius: 8px; padding-left: 8px;
}
.profile-order-item:hover { background: var(--bg-soft); }
.profile-order-item:last-child { border-bottom: none; }
.profile-order-no { font-size: 14px; font-weight: 600; color: var(--ink-900); flex: 1; }
.profile-order-info { font-size: 13px; color: var(--ink-500); }

/* ===== 响应式补充 ===== */
@media (max-width: 768px) {
  .checkout-fields { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-quick { grid-template-columns: repeat(2, 1fr); }
  .cart-list-header { display: none; }
  .cart-item { flex-wrap: wrap; gap: 12px; }
  .cart-item-info { width: auto; flex: 1 1 calc(100% - 30px); }
  .cart-item-price, .cart-col-price { display: none; }
  .checkout-item-price, .checkout-item-qty { display: none; }
  .order-header-left { flex-direction: column; align-items: flex-start; gap: 4px; }
  .order-card-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .order-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   通用小件：小按钮 / 字段错误 / 渠道标签
   ============================================================ */
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

.field-err {
  display: none; align-items: flex-start; gap: 6px;
  font-size: 12.5px; line-height: 1.5; color: #D33A2C; margin-top: 6px;
}
.field-err.show { display: flex; }
.field-err::before {
  content: '!'; flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; margin-top: 1px;
  border-radius: 50%; background: #D33A2C; color: #fff;
  font-size: 10px; font-weight: 700;
}
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: #D33A2C !important; background: #FFF7F6 !important; }
input.is-valid, select.is-valid { border-color: #27AE60 !important; }
.optional-tag { font-weight: 400; color: var(--ink-400); margin-left: 4px; }
.required-mark { color: #D33A2C; margin-left: 2px; }

.channel-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--yellow-50); color: var(--orange-600);
  font-size: 12px; font-weight: 600;
}

/* ============================================================
   商品规格选择
   ============================================================ */
.spec-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.spec-label .spec-count { font-weight: 400; color: var(--ink-400); margin-left: 6px; }
.spec-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.spec-option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 16px; text-align: left;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: #fff; transition: all .18s;
}
.spec-option:hover { border-color: var(--yellow-400); background: var(--yellow-50); }
.spec-option.active { border-color: var(--orange-500); background: var(--yellow-50); box-shadow: 0 0 0 3px rgba(242, 107, 33, .09); }
.spec-radio {
  width: 16px; height: 16px; flex: 0 0 16px; position: relative;
  border: 1.5px solid var(--line-strong); border-radius: 50%; margin-top: 1px;
}
.spec-option.active .spec-radio { border-color: var(--orange-500); }
.spec-option.active .spec-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange-500);
}
.spec-info { flex: 1; min-width: 0; }
.spec-name { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink-900); }
.spec-note { display: block; font-size: 12.5px; color: var(--ink-400); margin-top: 1px; line-height: 1.5; }
.spec-price { font-size: 16px; font-weight: 700; color: var(--orange-600); white-space: nowrap; }

/* ============================================================
   支付方式卡片
   ============================================================ */
.pay-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.pay-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 6px; }
.pay-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; text-align: left;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: #fff; transition: all .18s;
}
.pay-option:hover { border-color: var(--yellow-400); background: var(--yellow-50); }
.pay-option.active { border-color: var(--orange-500); background: var(--yellow-50); box-shadow: 0 0 0 3px rgba(242, 107, 33, .09); }
.pay-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  font-size: 15px; font-weight: 800;
}
.pay-alipay { background: linear-gradient(135deg, #1677FF, #37A2FF); }
.pay-wechat { background: linear-gradient(135deg, #09B83E, #38D16A); }
.pay-bankcard { background: linear-gradient(135deg, #5B6B7C, #8A9AA9); }
.pay-usdt { background: linear-gradient(135deg, #26A17B, #4CC9A0); }
.pay-meta { flex: 1; min-width: 0; }
.pay-name { font-size: 14px; font-weight: 600; }
.pay-desc { font-size: 11.5px; color: var(--ink-400); }
.pay-check {
  width: 18px; height: 18px; flex-shrink: 0; position: relative;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
}
.pay-option.active .pay-check { border-color: var(--orange-500); background: var(--orange-500); }
.pay-option.active .pay-check::after {
  content: '✓'; position: absolute; inset: 0;
  display: grid; place-items: center; color: #fff; font-size: 11px;
}

/* 渠道选择（下拉） */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--ink-400); pointer-events: none;
}
select.ui-select {
  width: 100%; padding: 11px 34px 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: 14px; font-family: inherit; color: var(--ink-900);
  appearance: none; -webkit-appearance: none;
}
select.ui-select:focus {
  outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(255, 190, 46, .18);
}

/* ============================================================
   登录页补充
   ============================================================ */
.auth-notice {
  display: none; align-items: center; gap: 10px;
  padding: 11px 14px; margin-bottom: 20px;
  border-radius: 8px; background: #FFF3E0; border: 1px solid #FFD8A8;
  color: #B45309; font-size: 13px;
}
.auth-notice.show { display: flex; }
.auth-field select {
  width: 100%; padding: 13px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-900); appearance: none; -webkit-appearance: none;
}
.auth-field select:focus {
  outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(255, 190, 46, .18);
}
.auth-field input.is-invalid, .auth-field select.is-invalid { border-color: #D33A2C; }
.pwd-hint { font-size: 12px; color: var(--ink-400); margin-top: 6px; }
.pwd-hint.ok { color: #27AE60; }
.pwd-hint.bad { color: #D33A2C; }
.auth-field .field-err { margin-top: 6px; }

/* ===== 登录方式切换 / 短信验证码 ===== */
.auth-mode-switch {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  background: var(--bg-warm); border: 1px solid var(--line); border-radius: 12px;
}
.auth-mode-btn {
  flex: 1; padding: 9px 10px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-500);
  transition: background .18s, color .18s, box-shadow .18s;
}
.auth-mode-btn:hover { color: var(--orange-600); }
.auth-mode-btn.active {
  background: #fff; color: var(--orange-600);
  box-shadow: 0 2px 8px rgba(26, 23, 20, .08);
}
.sms-row { display: flex; gap: 8px; align-items: stretch; }
.sms-row input { flex: 1; min-width: 0; }
.sms-send-btn {
  flex-shrink: 0; min-width: 104px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-warm); color: var(--orange-600);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .15s, opacity .15s;
}
.sms-send-btn:hover:not(:disabled) { background: var(--yellow-100); }
.sms-send-btn:disabled { opacity: .62; cursor: not-allowed; }
.sms-demo-hint {
  display: none; margin-top: 8px; padding: 7px 10px;
  border-radius: 8px; border: 1px dashed #FFD8A8; background: #FFF7E6;
  color: #B45309; font-size: 12.5px; line-height: 1.55;
}
.sms-demo-hint.show { display: block; }
.sms-demo-hint.error { background: #FFF4F2; border-color: #F5C6C0; color: #C0392B; }
.sms-demo-hint.ok { background: #F0FBF4; border-color: #B7E7C9; color: #1E8449; }
.auth-notice a { color: #B45309; font-weight: 600; text-decoration: underline; }
.uc-form-input .sms-row input { flex: 1; min-width: 0; }

/* ============================================================
   结算页补充：账号渠道 / 支付区
   ============================================================ */
.checkout-channel-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border: 1px dashed var(--line-strong); border-radius: 10px;
  background: var(--bg-soft); font-size: 13.5px;
}
.checkout-channel-box b { color: var(--ink-900); }
.checkout-channel-box a { color: var(--orange-600); font-weight: 600; }
.checkout-pay-error { margin-top: 10px; }
.checkout-item-spec { font-size: 12px; color: var(--orange-600); margin-top: 4px; }

/* ============================================================
   通用弹窗
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(26, 23, 20, .5);
  backdrop-filter: blur(2px);
}
.modal-box {
  width: 100%; max-width: 520px; max-height: 88vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: modalIn .18s ease;
}
.modal-box-lg { max-width: 760px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 15px; color: var(--ink-400); background: none;
}
.modal-close:hover { background: var(--bg-warm); color: var(--ink-900); }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 12px;
  padding: 16px 24px; border-top: 1px solid var(--line);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-800); }
.form-row input, .form-row textarea {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(255, 190, 46, .18);
}
.form-row-inline { display: flex; align-items: center; }
.checkbox-label {
  display: flex !important; align-items: center; gap: 8px;
  font-size: 13.5px !important; font-weight: 500 !important; cursor: pointer;
}
.checkbox-label input { width: auto !important; accent-color: var(--orange-500); }

/* 评价弹窗 */
.review-product { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.review-product-img { width: 52px; height: 52px; border-radius: 10px; background: var(--yellow-50); padding: 4px; }
.review-product-title { font-size: 14.5px; font-weight: 600; }
.review-product-sub { font-size: 12.5px; color: var(--ink-500); }
.review-stars, .review-stars-input { display: flex; gap: 8px; font-size: 26px; color: #E2D8C6; }
.review-stars .star, .review-stars-input .star-input { cursor: pointer; transition: transform .12s, color .12s; }
.review-stars .star:hover, .review-stars-input .star-input:hover { transform: scale(1.12); }
.review-stars .star.active, .review-stars-input .star-input.active { color: var(--yellow-500); }

/* ============================================================
   会员横幅
   ============================================================ */
.member-banner {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(110deg, #2A2118, #4A2E12 55%, #7A3E0C);
}
.member-banner-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 220px at 82% 0%, rgba(255, 190, 46, .35), transparent 65%),
    radial-gradient(400px 200px at 8% 100%, rgba(242, 107, 33, .28), transparent 70%);
}
.member-banner-content {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 24px; padding: 28px 24px;
}
.member-avatar {
  width: 72px; height: 72px; flex-shrink: 0; overflow: hidden;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25);
  background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
  display: grid; place-items: center; font-size: 32px;
}
.member-avatar .avatar-emoji { font-size: 34px; }
.member-avatar .avatar-text { font-size: 30px; font-weight: 800; color: #fff; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-info { flex: 1; min-width: 0; }
.member-name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.member-level-badge {
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: var(--yellow-200); background: rgba(255, 190, 46, .2); border: 1px solid rgba(255, 190, 46, .45);
}
.member-stats {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 8px;
  font-size: 13px; color: rgba(255, 255, 255, .72);
}
.member-stats b { color: #fff; font-weight: 700; }
.member-progress {
  height: 6px; max-width: 420px; margin-top: 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden;
}
.member-progress-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow-400), var(--orange-500));
  transition: width .4s ease;
}
.member-progress-text { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.member-quick { display: flex; gap: 10px; }
.member-quick-btn {
  width: 78px; padding: 12px 0; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  transition: all .2s;
}
.member-quick-btn span { font-size: 20px; }
.member-quick-btn:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

/* ============================================================
   个人中心布局
   ============================================================ */
.uc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.uc-side { position: sticky; top: 88px; }
.uc-side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; }
.uc-side-user { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.uc-side-avatar {
  width: 60px; height: 60px; margin: 0 auto 10px; overflow: hidden;
  border-radius: 50%; background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
  color: #fff; display: grid; place-items: center; font-size: 24px;
}
.uc-side-avatar .avatar-text { font-size: 24px; font-weight: 800; color: #fff; }
.uc-side-avatar img { width: 100%; height: 100%; object-fit: cover; }
.uc-side-name { font-size: 15px; font-weight: 700; }
.uc-side-level {
  display: inline-block; margin-top: 6px; padding: 1px 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: var(--orange-600); background: var(--yellow-50);
}
.uc-menu { display: flex; flex-direction: column; gap: 2px; }
.uc-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 8px; border: none; background: none;
  font-family: inherit; font-size: 14px; text-align: left; color: var(--ink-700);
  cursor: pointer; transition: all .15s;
}
.uc-menu-item:hover, .uc-menu-item.active { background: var(--bg-warm); color: var(--orange-600); font-weight: 600; }
.uc-menu-item span { width: 20px; text-align: center; }
.uc-menu-divider { height: 1px; background: var(--line); margin: 10px 0; }
.uc-logout { color: #C0392B; }
.uc-logout:hover { background: #FFEBEE; color: #C0392B; }
.uc-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.uc-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.uc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.uc-panel-head h3 { font-size: 16px; font-weight: 700; }
.uc-panel-more { font-size: 13px; font-weight: 600; color: var(--orange-600); }
.uc-panel-more:hover { text-decoration: underline; }

.uc-status-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.uc-status-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px;
  transition: all .2s;
}
.uc-status-card:hover { border-color: var(--orange-400); background: var(--yellow-50); transform: translateY(-2px); }
.uc-status-icon { font-size: 20px; }
.uc-status-num { font-size: 20px; font-weight: 800; }
.uc-status-label { font-size: 12.5px; color: var(--ink-500); }

.uc-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.uc-stat-mini { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.uc-stat-num { font-size: 22px; font-weight: 800; color: var(--orange-600); }
.uc-stat-label { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }

.uc-recent-orders { display: flex; flex-direction: column; }
.uc-recent-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 8px;
}
.uc-recent-item:last-child { border-bottom: none; }
.uc-recent-item:hover { background: var(--bg-soft); }
.uc-recent-img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; background: var(--yellow-50); padding: 4px; }
.uc-recent-info { flex: 1; min-width: 0; }
.uc-recent-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-recent-no { font-size: 12px; color: var(--ink-400); }
.uc-recent-price { font-size: 15px; font-weight: 700; color: var(--orange-600); }

.uc-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.uc-quick-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-700); transition: all .2s;
}
.uc-quick-item:hover { border-color: var(--orange-400); background: var(--yellow-50); color: var(--orange-600); }
.uc-quick-item span { font-size: 22px; }
.uc-quick-item b {
  position: absolute; top: 8px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--orange-500); color: #fff; font-size: 11px;
}

.uc-empty { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 64px 24px; text-align: center; }
.uc-empty-icon { font-size: 44px; margin-bottom: 12px; }
.uc-empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.uc-empty p { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }
.uc-empty .btn { display: inline-flex; }
.uc-empty-mini { padding: 36px 20px; text-align: center; font-size: 14px; color: var(--ink-500); background: var(--bg-soft); border-radius: 12px; }

.uc-fav-list { display: flex; flex-direction: column; gap: 12px; }
.uc-fav-item { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.uc-fav-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, var(--yellow-50), var(--yellow-200)); padding: 6px; }
.uc-fav-info { flex: 1; min-width: 0; }
.uc-fav-title { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.uc-fav-title:hover { color: var(--orange-600); }
.uc-fav-sub { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.uc-fav-price { font-size: 16px; font-weight: 700; color: var(--orange-600); margin-top: 4px; }
.uc-fav-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.uc-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.uc-history-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-align: center; transition: all .2s; }
.uc-history-item:hover { border-color: var(--orange-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.uc-history-img { width: 64px; margin: 0 auto 8px; }
.uc-history-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-history-price { font-size: 14px; font-weight: 700; color: var(--orange-600); margin-top: 2px; }

/* 地址 */
.addr-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.addr-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; transition: all .2s; }
.addr-card.addr-default { border-color: var(--orange-400); background: linear-gradient(180deg, var(--yellow-50), #fff); }
.addr-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.addr-name { font-size: 15px; font-weight: 700; }
.addr-phone { font-size: 13.5px; color: var(--ink-500); }
.addr-default-tag { padding: 1px 8px; border-radius: 999px; background: var(--orange-500); color: #fff; font-size: 11px; font-weight: 700; }
.addr-detail { font-size: 13.5px; color: var(--ink-500); margin: 8px 0 12px; line-height: 1.6; }
.addr-actions { display: flex; gap: 14px; font-size: 12.5px; }
.addr-act { color: var(--ink-500); background: none; }
.addr-act:hover { color: var(--orange-600); }
.addr-del:hover { color: #C0392B; }

/* 个人中心表单 */
.uc-form { max-width: 660px; }
.uc-form-row { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.uc-form-row > label { width: 96px; flex-shrink: 0; padding-top: 10px; font-size: 13.5px; color: var(--ink-500); }
.uc-form-input { flex: 1; min-width: 0; }
.uc-form-input input, .uc-form-input textarea, .uc-form-input select {
  width: 100%; padding: 10px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink-900);
}
.uc-form-input input:focus, .uc-form-input textarea:focus, .uc-form-input select:focus {
  outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(255, 190, 46, .18);
}
.uc-form-input input[readonly] { background: var(--bg-soft); color: var(--ink-500); cursor: not-allowed; }
.uc-form-input .ui-select { padding-right: 34px; appearance: none; -webkit-appearance: none; }
.uc-form-radio { display: flex; align-items: center; gap: 18px; padding-top: 9px; }
.uc-form-radio label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.uc-form-radio input { width: auto; accent-color: var(--orange-500); }
.uc-form-actions { display: flex; gap: 12px; margin-top: 20px; }
.uc-form-hint { margin-top: 6px; font-size: 12px; color: var(--ink-400); }
.uc-form-hint a { color: var(--orange-600); font-weight: 600; }

/* 头像 */
.avatar-setting { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.avatar-preview {
  width: 96px; height: 96px; flex-shrink: 0; overflow: hidden; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--yellow-400));
  display: grid; place-items: center; font-size: 42px; color: #fff;
}
.avatar-preview .avatar-text { font-size: 40px; font-weight: 800; color: #fff; }
.avatar-preview .avatar-emoji { font-size: 44px; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; flex: 1; min-width: 240px; max-width: 560px; }
.avatar-option {
  aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 22px; transition: all .15s;
}
.avatar-option:hover { border-color: var(--yellow-400); background: var(--yellow-50); }
.avatar-option.active { border-color: var(--orange-500); background: var(--yellow-50); box-shadow: 0 0 0 3px rgba(242, 107, 33, .1); }
.avatar-actions { width: 100%; margin-top: 8px; }

/* 账户安全 */
.security-list { display: flex; flex-direction: column; }
.security-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.security-item:last-child { border-bottom: none; }
.security-info { display: flex; align-items: center; gap: 14px; }
.security-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--bg-warm); display: grid; place-items: center; font-size: 18px; }
.security-name { font-size: 14.5px; font-weight: 600; }
.security-desc { font-size: 12.5px; color: var(--ink-400); }
.security-tag { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.security-tag-ok { color: #27AE60; background: #E8F5E9; }
.security-tag-warn { color: var(--orange-600); background: var(--yellow-50); }
.uc-change-pwd { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }

/* 评价列表 */
.uc-review-list { display: flex; flex-direction: column; gap: 14px; }
.uc-review-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.uc-review-product { font-size: 14.5px; font-weight: 600; }
.uc-review-stars { margin: 4px 0; font-size: 15px; letter-spacing: 2px; color: var(--yellow-500); }
.uc-review-content { font-size: 13.5px; color: var(--ink-700); line-height: 1.7; }
.uc-review-date { margin-top: 8px; font-size: 12px; color: var(--ink-400); }

/* ============================================================
   订单页补充：搜索 / 支付信息 / 详情弹窗
   ============================================================ */
.orders-search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.orders-search-bar input {
  flex: 1; max-width: 420px; padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px;
}
.orders-search-bar input:focus { outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(255, 190, 46, .18); }
.orders-search-bar .btn { border-radius: 999px; }

.order-addr { padding: 10px 20px 0; font-size: 13px; color: var(--ink-500); }
.order-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 10px 20px 14px; font-size: 13px; color: var(--ink-500);
  border-bottom: 1px dashed var(--line);
}
.order-meta-row b { color: var(--ink-800); font-weight: 600; }

.od-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.od-section:first-child { padding-top: 0; }
.od-section:last-child { border-bottom: none; padding-bottom: 0; }
.od-status-row { display: flex; align-items: center; gap: 14px; }
.od-order-no { font-size: 13px; color: var(--ink-500); }
.od-addr { font-size: 13.5px; color: var(--ink-700); line-height: 1.7; }
.od-items { display: flex; flex-direction: column; gap: 10px; }
.od-item { display: flex; align-items: center; gap: 12px; }
.od-item-img { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; background: var(--yellow-50); padding: 4px; }
.od-item-info { flex: 1; min-width: 0; }
.od-item-title { font-size: 14px; font-weight: 600; }
.od-item-sub { font-size: 12.5px; color: var(--ink-500); }
.od-item-price { width: 100px; text-align: center; font-size: 13px; color: var(--ink-500); }
.od-item-subtotal { width: 90px; text-align: right; font-size: 14px; font-weight: 700; color: var(--orange-600); }
.od-summary { margin: 14px 0; padding: 14px 16px; border-bottom: none; border-radius: 10px; background: var(--bg-soft); }
.od-sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13.5px; color: var(--ink-500); }
.od-sum-total { margin-bottom: 0; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-weight: 700; color: var(--ink-900); }
.od-total-price { font-size: 20px; font-weight: 800; color: var(--orange-600); }
.od-remark { font-size: 13px; color: var(--ink-500); }
.od-timeline { position: relative; padding-left: 4px; }
.od-timeline-item { position: relative; padding: 0 0 16px 20px; border-left: 1px solid var(--line-strong); }
.od-timeline-item.last { padding-bottom: 0; border-left-color: transparent; }
.od-timeline-dot { position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange-500); }
.od-timeline-time { font-size: 12px; color: var(--ink-400); }
.od-timeline-text { font-size: 13.5px; color: var(--ink-700); }

/* 模拟支付弹窗 */
.pay-modal-amount { text-align: center; padding: 4px 0 18px; }
.pay-modal-amount small { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink-500); }
.pay-modal-amount b { font-size: 30px; font-weight: 800; color: var(--orange-600); }
.pay-modal-method {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
}
.pay-qr {
  width: 150px; height: 150px; margin: 0 auto 14px;
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: #fff;
  font-size: 12.5px; color: var(--ink-400); line-height: 1.6; padding: 12px;
}
.pay-qr b { display: block; margin-bottom: 4px; font-size: 14px; color: var(--ink-700); }
.pay-note { text-align: center; font-size: 12.5px; color: var(--ink-400); line-height: 1.7; }

/* ============================================================
   响应式补充
   ============================================================ */
@media (max-width: 1024px) {
  .uc-layout { grid-template-columns: 220px 1fr; }
  .member-quick { display: none; }
}
@media (max-width: 860px) {
  .uc-layout { grid-template-columns: 1fr; }
  .uc-side { position: static; }
  .uc-menu { flex-direction: row; flex-wrap: wrap; }
  .uc-menu-item { width: auto; }
  .uc-menu-divider { display: none; }
  .uc-status-row, .uc-stats-row, .uc-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .addr-list { grid-template-columns: 1fr; }
  .member-banner-content { flex-wrap: wrap; }
  .member-info { flex-basis: calc(100% - 96px); }
  .pay-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .uc-form-row { flex-direction: column; gap: 6px; }
  .uc-form-row > label { width: auto; padding-top: 0; }
  .uc-fav-item { flex-wrap: wrap; }
  .uc-fav-actions { flex-direction: row; width: 100%; }
  .modal-overlay { padding: 14px; }
}
@media (max-width: 640px) {
  .uc-fav-actions .btn { flex: 1; justify-content: center; }
  .orders-search-bar { flex-wrap: nowrap; }
  .order-meta-row { gap: 6px 16px; }
  .spec-price { font-size: 14.5px; }
  .member-stats { gap: 12px; font-size: 12px; }
}

/* ============================================================
   第三方登录（演示 OAuth）
   ============================================================ */
.oauth-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; row-gap: 16px; margin: 8px 0 10px; }
.oauth-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; }
.oauth-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-size: 17px; font-weight: 800; transition: transform .18s, box-shadow .18s;
}
.oauth-btn:hover .oauth-icon { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(26, 23, 20, .14); }
.oauth-alipay { background: linear-gradient(135deg, #1677FF, #37A2FF); }
.oauth-wechat { background: linear-gradient(135deg, #07C160, #3DDC84); }
.oauth-facebook { background: linear-gradient(135deg, #1877F2, #4293F5); font-family: Arial, sans-serif; }
.oauth-google { background: #fff; color: #4285F4; border: 1px solid var(--line-strong); font-family: Arial, sans-serif; }
.oauth-label { font-size: 12.5px; color: var(--ink-500); }
.oauth-btn:hover .oauth-label { color: var(--orange-600); }
.oauth-tip { text-align: center; font-size: 12px; color: var(--ink-400); margin-bottom: 10px; }
.checkout-guest-tip { background: var(--yellow-50); border: 1px solid var(--yellow-200); border-radius: 10px; padding: 11px 14px; font-size: 13px; color: var(--ink-600); line-height: 1.6; }
.checkout-guest-tip a { color: var(--orange-600); font-weight: 600; text-decoration: underline; }
.auth-agree-note { text-align: center; font-size: 12px; color: var(--ink-400); line-height: 1.7; }
.auth-agree-note a { color: var(--orange-600); }

.oauth-modal { max-width: 460px; }
.oauth-head { display: flex; align-items: center; gap: 12px; }
.oauth-head .oauth-icon { width: 38px; height: 38px; font-size: 15px; }
.oauth-head h3 { font-size: 16px; font-weight: 700; }
.oauth-demo-badge {
  display: inline-block; margin-top: 2px; padding: 1px 8px;
  border-radius: 999px; background: var(--yellow-50); color: var(--orange-600);
  font-size: 11px; font-weight: 600;
}
.oauth-account {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
}
.oauth-account-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.oauth-account-avatar.oauth-google { background: #fff; color: #4285F4; border: 1px solid var(--line-strong); }
.oauth-account-name { font-size: 14.5px; font-weight: 600; }
.oauth-account-id { font-size: 12px; color: var(--ink-400); }
.oauth-desc { font-size: 13px; color: var(--ink-500); line-height: 1.75; margin-bottom: 12px; }
.oauth-scopes { display: flex; flex-wrap: wrap; gap: 8px; }
.oauth-scopes span {
  padding: 3px 10px; border-radius: 999px;
  background: #E8F5E9; color: #27AE60; font-size: 12px;
}
.oauth-footer { padding: 0 !important; border: none !important; margin-top: 18px; justify-content: flex-end; }

/* ============================================================
   头像上传 / 账号设置补充
   ============================================================ */
.avatar-upload-trigger { position: relative; padding: 0; border: none; overflow: hidden; cursor: pointer; }
.avatar-upload-mask {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 5px 0; background: rgba(26, 23, 20, .62); color: #fff;
  font-size: 11px; text-align: center; opacity: 0; transition: opacity .18s;
}
.avatar-upload-trigger:hover .avatar-upload-mask { opacity: 1; }
.avatar-side { flex: 1; min-width: 240px; }
.avatar-upload-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.avatar-limit { font-size: 12px; color: var(--ink-400); }
.avatar-sub { font-size: 12.5px; color: var(--ink-400); margin-bottom: 8px; }

.uc-welcome {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(100deg, var(--yellow-50), #fff);
  border-color: var(--yellow-300);
}
.uc-welcome-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow-100); font-size: 22px;
}
.uc-welcome-body { flex: 1; min-width: 0; }
.uc-welcome-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.uc-welcome-body p { font-size: 13px; color: var(--ink-500); line-height: 1.7; }
.uc-warn { border-color: #FFD8A8; background: linear-gradient(100deg, #FFF6E9, #fff); }
.uc-warn .uc-welcome-icon { background: #FFE8CC; color: #B45309; font-weight: 800; }
.oauth-badge { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .32); }

@media (max-width: 640px) {
  .oauth-row { gap: 20px; }
  .uc-welcome { flex-wrap: wrap; }
  .uc-welcome .btn { width: 100%; justify-content: center; }
}

/* 头像点击热区 & 轻提示 */
.member-avatar-btn { padding: 0; cursor: pointer; position: relative; }
.uc-side-avatar { padding: 0; border: none; cursor: pointer; position: relative; }
.uc-toast {
  position: fixed; left: 50%; bottom: 42px; z-index: 320;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 20px; border-radius: 999px;
  background: rgba(26, 23, 20, .92); color: #fff;
  font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.uc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   手机号国家 / 地区选择器
   ============================================================ */
.phone-field {
  display: flex; align-items: stretch; width: 100%;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.phone-field:focus-within {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 3px rgba(255, 190, 46, .18);
}
.phone-field .country-trigger {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 0 10px 0 12px; border-right: 1px solid var(--line);
  font-size: 14px; color: var(--ink-800); white-space: nowrap;
  border-radius: 10px 0 0 10px; background: #FFFDF8;
  transition: background .2s;
}
.phone-field .country-trigger:hover { background: var(--yellow-100); }
.phone-field .country-trigger .flag { font-size: 18px; line-height: 1; }
.phone-field .country-trigger .dial { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.phone-field .caret {
  width: 0; height: 0; margin-left: 1px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-400);
}
.phone-field .phone-input,
.auth-field .phone-field input,
.form-row .phone-field input,
.uc-form-input .phone-field input {
  flex: 1; min-width: 0; width: auto;
  border: none !important; border-radius: 0 10px 10px 0 !important;
  background: transparent !important; box-shadow: none !important;
  outline: none; padding: 12px 14px; font-size: 14.5px; font-family: inherit;
}
.form-row .phone-field .phone-input { padding: 10px 12px; font-size: 14px; }
.phone-field .phone-input.is-invalid { background: #FFF7F6 !important; }

.country-menu {
  position: fixed; z-index: 3000; display: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(26, 23, 20, .16);
  overflow: hidden; max-height: 300px;
}
.country-menu.open { display: flex; flex-direction: column; }
.country-search { padding: 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.country-search input {
  width: 100%; padding: 8px 11px; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
}
.country-search input:focus { outline: none; border-color: var(--orange-400); }
.country-list { overflow-y: auto; padding: 6px; }
.country-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 8px; text-align: left;
  font-size: 14px; color: var(--ink-800); transition: background .15s;
}
.country-item:hover { background: var(--yellow-50); }
.country-item.kb-active { background: var(--yellow-50); }
.country-item:focus-visible { outline: 2px solid var(--orange-400); outline-offset: -2px; }
.country-item.active { background: var(--yellow-100); font-weight: 600; }
.country-item-flag { font-size: 18px; line-height: 1; }
.country-item-name { flex: 1; min-width: 0; }
.country-item-dial { font-size: 13px; color: var(--ink-500); }
.country-empty { padding: 26px 12px; text-align: center; font-size: 13px; color: var(--ink-400); }

/* 商品图：卡片 4:3 等比铺满 */
.card-top { aspect-ratio: 4 / 3; height: auto; background: #F4EEE2; }
.card-top img {
  width: 100%; height: 100%; object-fit: cover;
  filter: none; transition: transform .35s;
}
.card:hover .card-top img { transform: scale(1.04); }

/* 商品图：详情主图 */
.detail-visual .detail-media {
  aspect-ratio: 4 / 3; width: 100%; overflow: hidden;
  border-radius: 18px; background: #F4EEE2; margin-bottom: 22px;
}
.detail-visual .detail-media img {
  width: 100%; height: 100%; object-fit: cover; margin: 0; filter: none;
}

/* 商品缩略图统一裁切，避免拉伸 */
.cart-item-img, .checkout-item-img, .order-item-img, .od-item-img,
.uc-recent-img, .uc-fav-img, .review-product-img {
  padding: 0; object-fit: cover; border: 1px solid var(--line);
  background: #F4EEE2;
}
.uc-history-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; background: #F4EEE2;
}

/* ===== 店铺资料同步 / 商品多图 / 购物车失效提示 ===== */
.footer .fbrand img.footer-shop-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: #fff;
}
.shop-about-line {
  margin-top: 14px; font-size: 13.5px; color: var(--ink-500);
}
.detail-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 22px;
}
.detail-thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: #F4EEE2; padding: 0; cursor: pointer;
}
.detail-thumb.active { border-color: var(--orange-500); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.purchase-stock { color: var(--ink-500); font-size: 12.5px; }
.purchase-stock.is-out { color: #B3372C; font-weight: 600; }

.cart-invalid-banner {
  margin-bottom: 16px; padding: 12px 16px; border-radius: 10px;
  background: #FFF4E5; border: 1px solid #F5D3A6; color: #9A5B00;
  font-size: 13px; line-height: 1.65;
}
.cart-invalid-banner b { color: #B3372C; }
.cart-item-invalid { background: #FBF8F2; }
.cart-item-invalid .cart-item-title { color: var(--ink-400); }
.cart-item-invalid-tag {
  display: inline-block; margin-left: 8px; font-style: normal; font-size: 11px;
  padding: 1px 7px; border-radius: 4px; background: #F1E7DC; color: #9A5B00;
  vertical-align: 1px;
}
.cart-item-invalid-tip {
  margin-top: 4px; font-size: 12px; color: #B3372C;
}
.cart-item-limit {
  margin-top: 4px; font-size: 11.5px; color: var(--orange-600);
}
.cart-item-invalid .qty-btn,
.cart-item-invalid .qty-input { opacity: .45; cursor: not-allowed; }
#footerCheckout:disabled,
.btn:disabled {
  opacity: .55; cursor: not-allowed; filter: grayscale(.15);
}
.checkout-invalid-list {
  margin: 14px 0 20px; display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--ink-700);
}
.checkout-invalid-list em {
  font-style: normal; margin-left: 8px; font-size: 11.5px;
  padding: 1px 7px; border-radius: 4px; background: #F1E7DC; color: #9A5B00;
}

/* ===== 订单退款 / 交易审核状态 ===== */
.order-extra-tags { display: inline-flex; gap: 6px; margin-left: 8px; flex-wrap: wrap; }
.refund-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; padding: 2px 8px; border-radius: 5px; white-space: nowrap;
}
.refund-tag.refund-applying { background: #FFF3E0; color: #B06A08; border: 1px solid #F3D9A4; }
.refund-tag.refund-done { background: #EAF7EE; color: #22784A; border: 1px solid #BFE5CD; }
.refund-tag.refund-rejected { background: #FDEDEC; color: #B3372C; border: 1px solid #F1C7C3; }
.od-refund-box {
  display: flex; flex-direction: column; gap: 7px;
  padding: 12px 14px; border-radius: 10px; background: #FBF8F2; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-700);
}
.od-refund-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.od-refund-line b { font-weight: 600; }
.od-refund-reason { font-size: 12px; color: var(--ink-500); }

/* ===== 页脚主体信息区（由 js/site-info.js 渲染） ===== */
.footer-siteinfo {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 26px;
}
.footer-siteinfo:first-child { border-top: none; padding-top: 0; }
.footer-siteinfo-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 10px 24px; margin-bottom: 14px;
}
.footer-siteinfo-title {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-400);
}
.footer .footer-legal-links { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.footer .footer-legal-links a {
  display: inline-block; margin: 0; font-size: 13px; color: var(--ink-500);
}
.footer-siteinfo-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 28px;
}
.footer-siteinfo-item span {
  display: block; font-size: 11.5px; color: var(--ink-400); margin-bottom: 1px;
}
.footer-siteinfo-item b {
  display: block; font-weight: 500; font-size: 13px; color: var(--ink-700);
  line-height: 1.6; word-break: break-all;
}
.footer-siteinfo-note { font-size: 12px; color: var(--ink-400); margin: 12px 0 0; line-height: 1.6; }
.todo-fill {
  color: var(--ink-500);
  border-bottom: 1px dashed rgba(26, 23, 20, .28);
  font-style: normal;
}
@media (max-width: 900px) {
  .footer-siteinfo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-siteinfo-grid { grid-template-columns: 1fr; gap: 8px; }
  .footer .footer-legal-links { gap: 4px 16px; }
}

/* ===== 条款 / 政策页 ===== */
.legal-section { padding: 52px 0 88px; }
.legal-layout {
  display: grid; grid-template-columns: 268px minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.legal-toc {
  position: sticky; top: 92px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.legal-toc-check {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.legal-toc-toggle {
  cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--ink-500);
}
.legal-toc-toggle::after {
  content: '▾'; font-size: 12px; color: var(--ink-400);
  transition: transform .2s;
}
.legal-toc-check:checked ~ .legal-toc-toggle::after { transform: rotate(180deg); }
.legal-toc-list { display: none; margin-top: 6px; gap: 1px; }
.legal-toc-check:checked ~ .legal-toc-list { display: grid; }
.legal-toc-list a {
  display: block; padding: 6px 0 6px 12px; font-size: 13.5px; line-height: 1.5;
  color: var(--ink-500); border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.legal-toc-list a:hover, .legal-toc-list a.active {
  color: var(--orange-600); border-left-color: var(--orange-500);
}
@media (min-width: 861px) {
  .legal-toc-toggle { display: none; }
  .legal-toc .legal-toc-list { display: grid !important; margin-top: 0; }
  .legal-toc::before {
    content: '目录'; display: block; font-size: 11.5px; font-weight: 700;
    letter-spacing: .12em; color: var(--ink-400); margin-bottom: 12px;
  }
}
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 26px; }
  .legal-toc { position: static; }
  .legal-section { padding: 38px 0 64px; }
}
.legal-content {
  max-width: 780px; font-size: 15px; line-height: 1.9; color: var(--ink-700);
}
.legal-content .legal-lead {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 6px;
  font-size: 14px; color: var(--ink-700);
}
.legal-content h2 {
  font-size: 21px; font-weight: 800; color: var(--ink-900);
  margin: 40px 0 14px; scroll-margin-top: 96px; line-height: 1.45;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 15.5px; font-weight: 700; color: var(--ink-900);
  margin: 22px 0 8px; scroll-margin-top: 96px;
}
.legal-content p { margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 7px; }
.legal-content li::marker { color: var(--ink-400); }
.legal-content strong { color: var(--ink-900); font-weight: 700; }
.legal-content a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--orange-500); }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin-top: 10px; font-size: 13px; color: var(--ink-500);
}
.legal-draft-note {
  margin-top: 40px; padding: 14px 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-md);
  background: #fff; font-size: 12.5px; line-height: 1.7; color: var(--ink-400);
}
.legal-draft-note b { color: var(--ink-500); font-weight: 600; }
.legal-related {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px;
}
.legal-related span { color: var(--ink-400); }
@media (max-width: 560px) {
  .legal-content { font-size: 14.5px; line-height: 1.85; }
  .legal-content h2 { font-size: 19px; margin-top: 32px; }
  .legal-content .legal-lead { padding: 14px 16px; font-size: 13.5px; }
}

/* ============================================================
 * 阶段 1 · 转化链路
 * 购物车吸底结算栏 / 商品搜索排序 / 商品评价 / 客服入口 / 结算地址
 * ============================================================ */

/* ---- 购物车吸底结算栏 ---- */
.cart-footer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(26, 23, 20, .08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cart-footer-content {
  display: flex; align-items: center; gap: 20px;
  min-height: 74px; padding-top: 12px; padding-bottom: 12px;
}
.cart-select-all {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-700);
  white-space: nowrap; cursor: pointer;
}
.cart-select-all input {
  width: 17px; height: 17px; accent-color: var(--orange-500); cursor: pointer;
}
.cart-footer-info {
  margin-left: auto; display: flex; align-items: baseline;
  justify-content: flex-end; gap: 18px; flex-wrap: wrap;
}
.cart-footer-selected { font-size: 13px; color: var(--ink-500); white-space: nowrap; }
.cart-footer-selected b { color: var(--ink-900); font-weight: 700; }
.cart-footer-total { font-size: 14px; color: var(--ink-700); white-space: nowrap; }
.cart-footer-total b {
  font-size: 24px; font-weight: 800; color: var(--orange-600);
  margin-left: 4px; letter-spacing: -.01em;
}
.cart-footer-checkout { padding: 12px 44px; font-size: 16px; white-space: nowrap; }
body.cart-has-footer { padding-bottom: 104px; }
@media (max-width: 640px) {
  .cart-footer-content { gap: 10px; min-height: 66px; padding-top: 10px; padding-bottom: 10px; }
  .cart-select-all { font-size: 13px; gap: 6px; }
  .cart-footer-info { flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.3; }
  .cart-footer-selected { font-size: 11.5px; }
  .cart-footer-total { font-size: 12px; }
  .cart-footer-total b { font-size: 19px; }
  .cart-footer-checkout { padding: 10px 22px; font-size: 14.5px; }
  body.cart-has-footer { padding-bottom: 96px; }
}

/* ---- 首页商品搜索与排序 ---- */
.shop-toolbar {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.shop-search {
  position: relative; flex: 1 1 320px; min-width: 0;
  display: flex; align-items: center; height: 46px;
  padding: 0 14px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.shop-search:focus-within {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 3px rgba(255, 190, 46, .2);
}
.shop-search svg { flex: 0 0 auto; color: var(--ink-400); }
.shop-search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 10px;
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 14.5px; color: var(--ink-900);
}
.shop-search input::placeholder { color: var(--ink-400); }
.shop-search-clear {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: none; place-items: center; font-size: 12px;
  color: var(--ink-500); background: var(--bg-warm);
}
.shop-search-clear.show { display: grid; }
.shop-search-clear:hover { color: var(--orange-600); background: var(--yellow-100); }
.shop-sort {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-500); white-space: nowrap;
}
.shop-sort select {
  appearance: none; -webkit-appearance: none;
  height: 46px; padding: 0 38px 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237A706A' stroke-width='1.6'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-900);
  cursor: pointer; outline: none;
}
.shop-sort select:focus { border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(255, 190, 46, .2); }
.shop-result-meta { min-height: 20px; margin: 0 0 14px; font-size: 13px; color: var(--ink-500); }
.shop-result-meta b { color: var(--orange-600); font-weight: 700; }
mark.kw {
  background: var(--yellow-200); color: inherit;
  padding: 0 2px; border-radius: 3px;
}
.shop-empty {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px;
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.shop-empty-icon { font-size: 42px; margin-bottom: 10px; opacity: .6; }
.shop-empty h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.shop-empty p { font-size: 13.5px; color: var(--ink-500); margin-bottom: 18px; }
@media (max-width: 640px) {
  .shop-toolbar { gap: 10px; }
  .shop-search { flex-basis: 100%; height: 44px; }
  .shop-sort { width: 100%; justify-content: space-between; }
  .shop-sort select { flex: 1; max-width: 220px; height: 42px; }
}

/* ---- 商品详情评价 ---- */
.product-reviews {
  margin-top: 64px; padding-top: 46px; border-top: 1px solid var(--line);
}
.rev-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 22px;
}
.rev-head h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.rev-head .rev-head-note { font-size: 13px; color: var(--ink-400); }
.rev-summary {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: 34px; align-items: center;
  padding: 24px 28px; margin-bottom: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.rev-score-box { text-align: center; }
.rev-score-num {
  font-size: 46px; font-weight: 800; line-height: 1.1;
  color: var(--orange-600); letter-spacing: -.02em;
}
.rev-score-num small { font-size: 15px; font-weight: 600; color: var(--ink-400); margin-left: 2px; }
.rev-score-stars { font-size: 18px; letter-spacing: 2px; color: var(--yellow-500); margin: 4px 0 6px; }
.rev-score-stars .off { color: #DDD2C2; }
.rev-score-count { font-size: 12.5px; color: var(--ink-500); }
.rev-dist-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-500); margin-bottom: 7px;
}
.rev-dist-row:last-child { margin-bottom: 0; }
.rev-dist-label { width: 34px; white-space: nowrap; }
.rev-dist-bar {
  flex: 1; height: 7px; border-radius: 999px; overflow: hidden;
  background: #EDE3D4;
}
.rev-dist-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow-400), var(--orange-500));
}
.rev-dist-count { width: 30px; text-align: right; }
.rev-list { margin-top: 16px; }
.rev-item { display: flex; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rev-item:last-child { border-bottom: none; }
.rev-avatar {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--yellow-100), var(--yellow-200));
  font-size: 20px; line-height: 1;
}
.rev-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rev-body { flex: 1; min-width: 0; }
.rev-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rev-name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.rev-bought {
  font-size: 11px; color: #22784A; background: #EAF7EE;
  border: 1px solid #BFE5CD; padding: 1px 7px; border-radius: 4px;
}
.rev-stars { font-size: 13.5px; letter-spacing: 1px; color: var(--yellow-500); }
.rev-stars .off { color: #DDD2C2; }
.rev-date { margin-left: auto; font-size: 12px; color: var(--ink-400); white-space: nowrap; }
.rev-text {
  margin-top: 7px; font-size: 14px; line-height: 1.75;
  color: var(--ink-700); white-space: pre-wrap; word-break: break-word;
}
.rev-spec { margin-top: 8px; font-size: 12px; color: var(--ink-400); }
.rev-more {
  display: flex; margin: 20px auto 0; padding: 11px 34px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  background: #fff; transition: all .2s;
}
.rev-more:hover { border-color: var(--orange-400); color: var(--orange-600); background: var(--yellow-50); }
.rev-empty {
  margin-top: 16px; padding: 44px 22px; text-align: center;
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg); color: var(--ink-500);
}
.rev-empty-icon { font-size: 40px; opacity: .55; margin-bottom: 8px; }
.rev-empty h4 { font-size: 16px; font-weight: 700; color: var(--ink-700); margin-bottom: 6px; }
.rev-empty p { font-size: 13px; }
@media (max-width: 640px) {
  .product-reviews { margin-top: 44px; padding-top: 34px; }
  .rev-summary { grid-template-columns: 1fr; gap: 18px; padding: 20px; text-align: center; }
  .rev-score-box { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .rev-item { gap: 11px; }
  .rev-avatar { flex-basis: 36px; width: 36px; height: 36px; font-size: 17px; }
  .rev-date { margin-left: 0; width: 100%; }
}

/* ---- 客服联系卡片（首页 #contact） ---- */
.support-card {
  width: 348px; max-width: 100%;
  background: #fff; border-radius: var(--radius-lg);
  padding: 22px 24px 16px; box-shadow: var(--shadow-lg);
  color: var(--ink-900); text-align: left;
}
.support-card-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.support-card-head b { font-size: 15px; font-weight: 800; }
.support-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: #22784A;
  background: #EAF7EE; border: 1px solid #BFE5CD;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.support-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #27AE60; box-shadow: 0 0 0 3px rgba(39, 174, 96, .15);
}
.support-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 13.5px; line-height: 1.5;
}
.support-row:last-of-type { border-bottom: none; }
.support-row > span { flex: 0 0 66px; color: var(--ink-500); font-size: 12.5px; }
.support-row > b, .support-row > a {
  flex: 1; min-width: 0; font-weight: 600; color: var(--ink-900);
  word-break: break-all;
}
.support-row > a:hover { color: var(--orange-600); }
.support-copy {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 600;
  color: var(--orange-600); border: 1px solid var(--line-strong);
  padding: 3px 10px; border-radius: 999px; background: #fff;
  transition: all .18s;
}
.support-copy:hover { border-color: var(--orange-400); background: var(--yellow-50); }
.support-card-foot {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-400); line-height: 1.65;
}
#contact .cta-actions {
  flex-direction: row; flex-wrap: wrap;
}
#contact .cta-actions .btn { flex: 0 0 auto; }
@media (max-width: 900px) {
  .support-card { width: 100%; }
}

/* ---- 全站右下角客服浮窗 ---- */
.support-float {
  position: fixed; right: 22px; bottom: 24px; z-index: 95;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.support-float-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink-900); color: #fff;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  box-shadow: var(--shadow-lg);
  transition: transform .2s, background .2s;
}
.support-float-btn:hover { background: var(--orange-600); transform: translateY(-2px); }
.support-float-btn svg { width: 17px; height: 17px; }
.support-float-panel {
  display: none; width: 332px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 16px 20px 14px;
}
.support-float-panel.show { display: block; animation: supportFloatIn .18s ease-out; }
@keyframes supportFloatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.support-float-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
  font-size: 14px; font-weight: 700; color: var(--ink-900);
}
.support-float-close {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; color: var(--ink-400); background: var(--bg-warm);
}
.support-float-close:hover { color: var(--orange-600); }
.support-float-tip { font-size: 12px; color: var(--ink-400); margin-bottom: 6px; }
body.cart-has-footer .support-float { bottom: 96px; }
@media (max-width: 640px) {
  .support-float { right: 14px; bottom: 16px; }
  .support-float-btn { padding: 10px 15px; font-size: 13px; }
  body.cart-has-footer .support-float { bottom: 88px; }
  .support-float-panel { width: calc(100vw - 28px); }
}

/* ---- 结算页收货地址 ---- */
.checkout-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.checkout-section-head .checkout-section-title {
  margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}
.ck-addr-add {
  font-size: 13px; font-weight: 600; color: var(--orange-600);
  white-space: nowrap;
}
.ck-addr-add:hover { color: var(--orange-500); }
.checkout-addr-list { display: flex; flex-direction: column; gap: 10px; }
.ck-addr-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff;
  cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s;
}
.ck-addr-card:hover { border-color: var(--yellow-400); background: var(--yellow-50); }
.ck-addr-card.selected {
  border-color: var(--orange-500); background: var(--yellow-50);
  box-shadow: 0 0 0 3px rgba(242, 107, 33, .08);
}
.ck-addr-card input[type="radio"] {
  width: 17px; height: 17px; margin-top: 3px;
  accent-color: var(--orange-500); cursor: pointer; flex: 0 0 auto;
}
.ck-addr-body { flex: 1; min-width: 0; }
.ck-addr-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ck-addr-name { font-size: 14.5px; font-weight: 700; color: var(--ink-900); }
.ck-addr-phone { font-size: 13px; color: var(--ink-500); }
.ck-addr-default {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--orange-500); padding: 1px 8px; border-radius: 999px;
}
.ck-addr-detail {
  margin-top: 5px; font-size: 13px; line-height: 1.6;
  color: var(--ink-500); word-break: break-word;
}
.ck-addr-edit {
  flex: 0 0 auto; font-size: 12.5px; color: var(--orange-600);
  padding: 2px 4px; white-space: nowrap;
}
.ck-addr-edit:hover { color: var(--orange-500); text-decoration: underline; }
.ck-addr-empty {
  padding: 22px 18px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--bg-soft); font-size: 13.5px; color: var(--ink-500);
}
.ck-addr-form {
  margin-top: 16px; padding: 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft);
}
.ck-addr-form-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.ck-addr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ck-addr-form .checkout-field { margin-bottom: 14px; }
.ck-addr-form-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 4px; flex-wrap: wrap;
}
.ck-addr-form .phone-field { background: #fff; }
.checkout-addr-error { margin-top: 12px; }
@media (max-width: 640px) {
  .ck-addr-form-grid { grid-template-columns: 1fr; }
  .ck-addr-form { padding: 14px; }
  .ck-addr-form-actions .btn { flex: 1; justify-content: center; }
}
