/* ============================================================
   HEIMGUT — 德式家居商店样式
   ============================================================ */
:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --ink: #232420;
  --muted: #77786f;
  --line: #e6e2da;
  --accent: #596b4e;      /* 森林绿 */
  --accent-dark: #43523a;
  --rust: #b4633f;        /* 陶土色 */
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(35,36,32,.05);
  --shadow-md: 0 12px 34px rgba(35,36,32,.10);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.de { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- 公告栏 ---------- */
.announcement {
  background: var(--ink); color: #f3f0e9;
  text-align: center; font-size: 12px; letter-spacing: .04em;
  padding: 7px 16px;
}
.announcement-sep { margin: 0 12px; opacity: .4; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248,246,242,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--accent);
}
.logo-dot { color: var(--rust); }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: .14em; display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: 9px; letter-spacing: .08em; color: var(--muted); font-weight: 500; margin-top: 3px; }

.search-wrap { position: relative; flex: 1; max-width: 440px; margin-left: auto; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search-input {
  width: 100%; height: 42px; padding: 0 16px 0 42px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 13px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(89,107,78,.12); }
.search-input::placeholder { color: #a6a69d; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.contact-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.contact-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.contact-btn .icon { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; color: var(--muted); background: var(--surface);
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-active { color: var(--accent); font-weight: 700; }
.lang-slash { opacity: .4; }
.account-wrap { position: relative; }
.account-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.account-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.account-btn .icon { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-role { font-size: 9px; font-weight: 700; color: #fff; background: var(--rust); border-radius: 999px; padding: 2px 7px; }
.account-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 240px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); overflow: hidden; animation: fadeIn .18s;
}
.account-menu-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.account-menu-head strong { display: block; font-size: 12px; color: var(--ink); word-break: break-all; }
.account-menu-head span { display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 600; color: var(--accent); }
.account-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 12px 16px; font-size: 12px; color: var(--ink); cursor: pointer;
}
.account-menu button:hover { background: #f4f6f0; color: var(--accent); }
.account-menu button#menuLogout { color: var(--rust); border-top: 1px solid var(--line); }
.orders-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600;
  transition: border-color .2s, transform .15s;
}
.orders-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.orders-btn .icon { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0;
  border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600;
  transition: background .2s, transform .15s;
}
.cart-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.cart-count {
  background: var(--rust); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #eee9df 0%, #f8f6f2 60%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 470px; padding: 56px 0 60px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--rust); font-weight: 700; margin: 0 0 14px; }
.hero-title { font-family: var(--serif); font-size: clamp(38px, 5vw, 62px); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.02em; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 19px; margin: 10px 0 18px; }
.hero-desc { color: #5d5e57; font-size: 14px; margin: 0 0 26px; line-height: 1.9; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 13px 24px; font-size: 14px; font-weight: 600;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(89,107,78,.22); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary span { font-weight: 400; opacity: .85; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: rgba(89,107,78,.06); }
.btn-block { width: 100%; }
.hero-meta { display: flex; gap: 30px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--serif); font-size: 24px; color: var(--accent); }
.hero-meta span { font-size: 11px; color: var(--muted); }

.hero-art { position: relative; height: 360px; display: grid; place-items: center; }
.art-circle { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #e3dccf; }
.art-word { position: absolute; font-family: var(--serif); font-size: 78px; letter-spacing: .18em; color: rgba(89,107,78,.14); font-weight: 700; transform: rotate(-8deg); white-space: nowrap; }
.art-card {
  position: absolute; background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow-md); overflow: hidden; z-index: 2;
}
.art-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-card-a { width: 168px; height: 190px; top: 12px; left: 8%; transform: rotate(-6deg); }
.art-card-b { width: 150px; height: 170px; bottom: 10px; right: 6%; transform: rotate(7deg); }
.art-card-a span {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(255,255,255,.92); text-align: center;
  font-size: 9px; letter-spacing: .18em; color: var(--ink); padding: 8px 0;
}

/* ---------- 服务保障 ---------- */
.benefits { background: var(--surface); border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { display: flex; align-items: center; gap: 12px; padding: 22px 18px; border-right: 1px solid var(--line); }
.benefit:last-child { border-right: 0; }
.benefit-ico { font-size: 22px; color: var(--accent); width: 34px; height: 34px; border-radius: 50%; background: #eef1ea; display: grid; place-items: center; flex-shrink: 0; }
.benefit div { display: flex; flex-direction: column; line-height: 1.35; }
.benefit strong { font-size: 13px; }
.benefit small { font-size: 11px; color: var(--muted); }

/* ---------- 商品区 ---------- */
.shop { padding: 64px 0 90px; }
.shop-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-title { font-family: var(--serif); font-size: 34px; margin: 0; font-weight: 600; }
.section-title span { font-size: 17px; color: var(--muted); font-style: italic; font-weight: 400; }
.shop-tools { display: flex; align-items: center; gap: 16px; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sort-wrap select {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; outline: none;
}
.result-count { font-size: 12px; color: var(--muted); white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; padding-bottom: 4px; }
.filter-chip {
  border: 1px solid var(--line); background: var(--surface); color: #5e5f57;
  border-radius: 999px; padding: 8px 16px; font-size: 12px; transition: all .18s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.filter-chip small { opacity: .65; margin-left: 5px; font-size: 10px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-visual {
  position: relative; aspect-ratio: 1 / .92; display: grid; place-items: center;
  background: var(--tone, #eef1ea); overflow: hidden;
}
.product-visual::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(0,0,0,.03));
  pointer-events: none; z-index: 1;
}
.product-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-visual svg {
  position: relative; width: 44%; height: 44%; fill: none;
  stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s;
}
.icon-fallback { z-index: 0; }
.product-card:hover .product-visual svg { transform: scale(1.08) rotate(-3deg); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--rust); color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; letter-spacing: .03em;
}
.badge.new { background: var(--accent); }
.wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); color: var(--muted); font-size: 15px;
  display: grid; place-items: center; transition: color .2s, transform .2s;
}
.wish:hover { color: var(--rust); transform: scale(1.1); }
.wish.on { color: var(--rust); }
.product-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 10px; letter-spacing: .12em; color: var(--rust); font-weight: 700; text-transform: uppercase; }
.product-name { font-size: 14px; font-weight: 650; margin: 5px 0 1px; line-height: 1.4; }
.product-name-de { font-size: 11px; color: var(--muted); margin: 0 0 10px; min-height: 16px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.price small { font-size: 11px; color: var(--muted); font-family: var(--sans); font-weight: 400; margin-left: 3px; }
.add-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; font-size: 19px; line-height: 1;
  display: grid; place-items: center; transition: background .2s, transform .15s;
}
.add-btn:hover { background: var(--accent-dark); transform: rotate(90deg); }

/* 语言切换后主次语言互换 */
body.lang-de .product-name { order: 0; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-emoji { font-size: 48px; color: var(--line); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #d8d6cf; padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo-mark { color: #f0ede4; font-size: 36px; }
.footer-brand p { font-size: 12px; margin: 12px 0 0; line-height: 1.8; }
.footer-brand .de { color: #9a9b92; }
.site-footer h4 { font-size: 11px; letter-spacing: .14em; color: #fff; margin: 4px 0 16px; }
.site-footer a { display: block; font-size: 12px; color: #acaea5; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-note { font-size: 12px; color: #acaea5; margin: 0 0 12px; }
.newsletter { display: flex; background: #33342f; border-radius: 8px; overflow: hidden; }
.newsletter input { flex: 1; background: none; border: 0; color: #fff; padding: 10px 12px; font-size: 12px; outline: none; min-width: 0; }
.newsletter input::placeholder { color: #83847c; }
.newsletter button { background: var(--accent); color: #fff; border: 0; width: 42px; font-size: 17px; }
.footer-bottom { border-top: 1px solid #3a3b36; padding-top: 18px; display: flex; justify-content: space-between; font-size: 11px; color: #85867e; }

/* ---------- 购物车抽屉 ---------- */
.overlay { position: fixed; inset: 0; background: rgba(25,26,22,.42); z-index: 60; opacity: 0; transition: opacity .25s; }
.overlay.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--surface); z-index: 61; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .32s cubic-bezier(.22,.8,.25,1);
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-family: var(--serif); font-size: 24px; margin: 0; font-weight: 600; }
.cart-head small { color: var(--muted); font-size: 11px; }
.icon-btn { border: 0; background: #f2f0eb; width: 32px; height: 32px; border-radius: 50%; font-size: 13px; color: var(--ink); }
.icon-btn:hover { background: #e8e4db; }
.shipping-progress { padding: 14px 24px; background: #f4f6f0; border-bottom: 1px solid var(--line); }
.shipping-text { font-size: 11px; margin: 0 0 8px; color: var(--accent-dark); }
.progress-track { height: 5px; background: #dfe3d7; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-visual { width: 68px; height: 68px; border-radius: 10px; background: var(--tone, #eef1ea); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.cart-img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-visual svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.cart-item-de { font-size: 10px; color: var(--muted); }
.cart-item-price { font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 22px; height: 22px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 13px; line-height: 1; color: var(--ink); }
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.qty span { font-size: 12px; min-width: 12px; text-align: center; }
.remove-btn { border: 0; background: none; color: #b0b0a8; font-size: 11px; padding: 0; margin-top: 6px; }
.remove-btn:hover { color: var(--rust); }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 20px; }
.cart-empty-ico { font-size: 64px; color: var(--line); }
.cart-empty p { margin: 10px 0 20px; font-size: 14px; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: #fcfbf9; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.cart-total-row strong { font-family: var(--serif); font-size: 24px; }
.cart-tax-note { font-size: 10px; color: var(--muted); margin: 6px 0 16px; }

/* ---------- 演示结算弹窗 ---------- */
.checkout-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(25,26,22,.55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.checkout-dialog {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.24);
  animation: modalUp .3s cubic-bezier(.22,.8,.25,1);
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalUp { from { opacity: 0; transform: translateY(18px) scale(.98) } to { opacity: 1; transform: none } }
.checkout-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 26px 0; }
.checkout-head .eyebrow { margin-bottom: 6px; }
.checkout-head h3 { font-family: var(--serif); font-size: 24px; margin: 0; font-weight: 600; }
.checkout-head h3 span { font-size: 14px; color: var(--muted); font-weight: 400; font-style: italic; }
/* 结算步骤指示 */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 26px 0; }
.ck-step { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--muted); }
.ck-step:disabled { cursor: default; }
.ck-step-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.ck-step.is-active .ck-step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.ck-step.is-done .ck-step-dot { background: var(--accent-light, #e8eee1); border-color: var(--accent); color: var(--accent); }
.ck-step-label { font-size: 11px; font-weight: 600; line-height: 1.35; }
.ck-step-label em { font-style: normal; font-weight: 400; font-size: 9px; opacity: .75; }
.ck-step.is-active .ck-step-label { color: var(--ink); }
.ck-step-bar { height: 1px; width: 34px; background: var(--line); }
.checkout-body { padding: 20px 26px 26px; }
/* 地址回显 */
.addr-review { background: #f4f6f0; border: 1px solid #dfe6d6; border-radius: 10px; padding: 10px 13px; margin: 0 0 18px; font-size: 11px; line-height: 1.65; color: #4a5a3c; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.addr-review strong { color: var(--ink); font-weight: 600; }
.addr-review .addr-edit { border: 0; background: none; color: var(--accent); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; }
.back-link { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.back-link:hover { color: var(--ink); }
.order-summary { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; margin-bottom: 20px; }
.order-summary-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 4px 0; }
.order-summary-row.order-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; color: var(--ink); font-size: 14px; align-items: center; }
.order-total strong { font-family: var(--serif); font-size: 22px; }
.pay-field { margin-bottom: 14px; }
.pay-field label { display: block; font-size: 11px; font-weight: 600; color: #55564e; margin-bottom: 6px; letter-spacing: .02em; }
.pay-field input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; padding: 0 13px; font-size: 13px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pay-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(89,107,78,.12); }
.pay-field input::placeholder { color: #b5b5ad; }
.pay-field input.invalid { border-color: var(--rust); }
.field-error { display: block; color: var(--rust); font-size: 10px; margin-top: 4px; min-height: 12px; }
.pay-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-input-wrap { position: relative; }
.card-input-wrap input { padding-right: 62px; letter-spacing: .06em; }
.card-brand {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: .04em; color: #9a9b92;
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; min-width: 42px; text-align: center;
}
.card-brand.visa { color: #1a1f71; border-color: #1a1f71; }
.card-brand.mastercard { color: #eb001b; border-color: #eb001b; }
.card-brand.amex { color: #2e77bc; border-color: #2e77bc; }
.test-card-link { border: 0; background: none; color: var(--accent); font-size: 11px; padding: 0; margin: 0 0 16px; text-decoration: underline; text-underline-offset: 3px; }
.test-card-link:hover { color: var(--accent-dark); }
.pay-submit { height: 46px; font-size: 14px; }
.pay-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.checkout-success { text-align: center; padding: 46px 30px 34px; }
.success-check { width: 62px; height: 62px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 18px; animation: popIn .4s cubic-bezier(.22,1.4,.4,1); }
@keyframes popIn { from { transform: scale(.4); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.checkout-success h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 4px; }
.success-sub { color: var(--muted); font-size: 12px; margin: 0 0 24px; }
.success-card { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; text-align: left; margin-bottom: 18px; }
.success-card-row { display: flex; justify-content: space-between; font-size: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.success-card-row:last-child { border-bottom: 0; }
.success-card-row span { color: var(--muted); }
.success-card-row strong { font-size: 12px; }

/* ---------- 我的订单弹窗 ---------- */
.orders-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; }
.orders-backdrop { position: absolute; inset: 0; background: rgba(25,26,22,.55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.orders-dialog {
  position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.24);
  animation: modalUp .3s cubic-bezier(.22,.8,.25,1);
}
.orders-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 26px 0; }
.orders-head .eyebrow { margin-bottom: 6px; }
.orders-head h3 { font-family: var(--serif); font-size: 24px; margin: 0; font-weight: 600; }
.orders-head h3 span { font-size: 14px; color: var(--muted); font-weight: 400; font-style: italic; }
.orders-body { padding: 20px 26px 26px; }
.orders-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.orders-empty .empty-ico { font-size: 46px; opacity: .35; display: block; margin-bottom: 14px; }
.orders-empty h4 { font-family: var(--serif); font-size: 19px; color: var(--ink); margin: 0 0 8px; }
.orders-empty p { font-size: 12px; line-height: 1.7; margin: 0; }
.order-card { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.order-card:last-child { margin-bottom: 0; }
.order-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #faf9f6; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.order-id { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); }
.order-id small { display: block; font-family: inherit; font-size: 9px; font-weight: 400; color: var(--muted); letter-spacing: .1em; margin-bottom: 2px; }
.account-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 10px; color: var(--muted); word-break: break-all; }
.account-badge b { color: var(--ink); font-weight: 600; }
.order-date { font-size: 11px; color: var(--muted); text-align: right; }
.order-date strong { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.order-status { display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 600; color: var(--accent); background: #e9efe2; border-radius: 999px; padding: 2px 9px; }
.order-card-body { padding: 14px 16px; }
.order-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.order-line:last-of-type { border-bottom: 0; }
.order-line img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f0eee9; }
.order-line-info { flex: 1; min-width: 0; }
.order-line-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.order-line-de { font-size: 10px; color: var(--muted); }
.order-line-qty { font-size: 11px; color: var(--muted); }
.order-line-price { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.order-meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 11px; color: var(--muted); }
.order-meta-row { display: flex; justify-content: space-between; gap: 14px; }
.order-meta-row span:last-child { color: var(--ink); text-align: right; }
.order-meta-row.order-grand { font-size: 14px; font-weight: 700; color: var(--ink); align-items: center; border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 2px; }
.order-grand strong { font-family: var(--serif); font-size: 20px; }
.order-delete-btn {
  border: 1px solid #e4c7b8; background: #fdf6f2; color: var(--rust);
  border-radius: 999px; padding: 4px 11px; font-size: 10px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.order-delete-btn:hover { background: var(--rust); color: #fff; border-color: var(--rust); }
.confirm-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.confirm-backdrop { position: absolute; inset: 0; background: rgba(25,26,22,.62); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.confirm-dialog {
  position: relative; width: min(400px, 100%); background: var(--surface); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3); padding: 28px; text-align: center;
  animation: modalUp .3s cubic-bezier(.22,.8,.25,1);
}
.confirm-ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: #fdf0e9; color: var(--rust); display: grid; place-items: center; font-size: 22px;
}
.confirm-dialog h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; }
.confirm-desc { font-size: 11px; line-height: 1.75; color: var(--muted); margin: 0 0 16px; }
.confirm-info { border: 1px solid var(--line); border-radius: 10px; background: #faf9f6; padding: 11px 14px; font-size: 12px; margin-bottom: 20px; }
.confirm-info div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.confirm-info span:first-child { color: var(--muted); }
.confirm-info span:last-child { font-weight: 600; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-actions .btn { padding: 11px 14px; font-size: 12px; }

/* ---------- 联系客服 ---------- */
.contact-modal { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 20px; }
.contact-backdrop { position: absolute; inset: 0; background: rgba(25,26,22,.62); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.contact-dialog {
  position: relative; width: min(400px, 100%); background: var(--surface); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3); padding: 32px 28px 26px; text-align: center;
  animation: modalUp .3s cubic-bezier(.22,.8,.25,1);
}
.contact-close { position: absolute; top: 14px; right: 14px; }
.contact-ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: #fdf0e9; display: grid; place-items: center;
}
.contact-ico .icon { width: 24px; height: 24px; fill: none; stroke: var(--rust); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-dialog h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.contact-dialog h3 span { font-size: 13px; color: var(--muted); font-weight: 400; }
.contact-desc { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.contact-id {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px dashed var(--accent); border-radius: 12px; background: #f7f9f4;
  padding: 16px; cursor: pointer; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--accent);
  transition: background .15s, border-color .15s;
}
.contact-id:hover { background: #eef3e8; border-style: solid; }
.contact-id .icon { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.contact-tip { display: block; margin-top: 12px; font-size: 10px; color: #a6a69d; }
@media (max-width: 600px) { .contact-label { display: none; } }

/* ---------- 账号门禁 ---------- */
.auth-gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(150deg, #eee9df 0%, #f8f6f2 55%, #eef1e9 100%);
  overflow-y: auto;
}
.auth-card {
  width: min(420px, 100%); background: var(--surface); border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0,0,0,.16); padding: 34px 32px 26px;
  animation: modalUp .35s cubic-bezier(.22,.8,.25,1);
}
.auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.auth-brand .logo-mark { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }
.auth-brand .logo-dot { color: var(--rust); }
.auth-brand h2 { font-family: var(--serif); font-size: 22px; margin: 0; letter-spacing: .04em; }
.auth-brand p { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.auth-tab {
  flex: 1; border: 0; background: none; padding: 11px 6px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; font-size: 11px; font-weight: 600; color: #55564e; margin-bottom: 6px; }
.auth-field label small { font-weight: 400; color: var(--muted); }
.auth-field input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; padding: 0 13px; font-size: 13px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(89,107,78,.12); }
.auth-field input::placeholder { color: #b5b5ad; }
.auth-error { min-height: 14px; margin: 0 0 10px; font-size: 11px; color: var(--rust); }
.auth-form .btn-block { width: 100%; height: 46px; }
.auth-switch { text-align: center; font-size: 11px; color: var(--muted); margin: 16px 0 0; }
.auth-switch button { border: 0; background: none; color: var(--accent); font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 2px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.auth-links button { border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-links button:hover { color: var(--accent); }
.auth-view-title { font-family: var(--serif); font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.auth-view-desc { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
.auth-view-desc .de { font-size: 10px; opacity: .8; }
.btn-danger { background: var(--rust); }
.btn-danger:hover { background: #a55533; }
/* 订单账号筛选 */
.orders-filter { display: flex; align-items: center; gap: 10px; padding: 0 26px 12px; }
.orders-filter label { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.orders-filter select {
  flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; padding: 0 10px; font-size: 12px; color: var(--ink); outline: none;
}
.orders-filter select:focus { border-color: var(--accent); }

/* ---------- 我的佣金 ---------- */
.commission-section { padding: 34px 0 10px; }
.commission-card {
  display: grid; grid-template-columns: 1.15fr 1.7fr auto; align-items: center; gap: 28px;
  background: linear-gradient(120deg, #43523a, #607251); color: #f5f3ec;
  border-radius: 18px; padding: 26px 30px; box-shadow: var(--shadow-md);
}
.commission-intro .eyebrow { color: #c9d6bd; margin: 0 0 6px; }
.commission-intro h2 { font-family: var(--serif); font-size: 25px; margin: 0 0 6px; font-weight: 600; }
.commission-intro h2 span { font-size: 14px; font-weight: 400; font-style: italic; opacity: .75; }
.commission-desc { font-size: 12px; line-height: 1.7; margin: 0; opacity: .92; }
.commission-desc .de { color: #c9d6bd; font-size: 10px; }
.commission-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.commission-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 12px 14px; }
.commission-stat small { display: block; font-size: 10px; opacity: .82; margin-bottom: 4px; white-space: nowrap; }
.commission-stat strong { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.commission-stat.highlight { background: rgba(255,255,255,.2); }
.commission-cta .btn { white-space: nowrap; background: #f5f3ec; color: var(--accent-dark); }
.commission-cta .btn:hover { background: #fff; }
@media (max-width: 900px) { .commission-card { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- 总账号首页支付卡入口 ---------- */
.master-paycard-section { padding: 10px 0 34px; }
.master-paycard-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 28px; box-shadow: var(--shadow-sm);
}
.master-paycard-intro .eyebrow { color: var(--rust); margin: 0 0 6px; }
.master-paycard-intro h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; font-weight: 600; }
.master-paycard-intro h2 span { font-size: 13px; color: var(--muted); font-weight: 400; font-style: italic; }
.master-paycard-desc { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; }
.master-paycard-desc .de { color: #99998f; font-size: 10px; }
.master-paycard-status { font-size: 11px; font-weight: 600; color: var(--accent); margin-top: 10px; }
.master-paycard-current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.master-paycard-current strong { font-family: var(--serif); font-size: 15px; }
.master-paycard-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.master-paycard-chip small { font-size: 10px; color: var(--accent); font-weight: 700; }
.master-paycard-cta .btn { white-space: nowrap; }
@media (max-width: 700px) {
  .master-paycard-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- 总账号下属管理账号 ---------- */
.manager-section { padding: 0 0 34px; }
.manager-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 28px; box-shadow: var(--shadow-sm);
}
.manager-intro .eyebrow { color: var(--rust); margin: 0 0 6px; }
.manager-intro h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; font-weight: 600; }
.manager-intro h2 span { font-size: 13px; color: var(--muted); font-weight: 400; font-style: italic; }
.manager-desc { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
.manager-desc .de { color: #99998f; font-size: 10px; }
.manager-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.manager-item {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 5px;
}
.manager-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.manager-item-top strong { font-size: 12px; color: var(--ink); }
.manager-item-top span { font-size: 9px; color: var(--rust); letter-spacing: .08em; }
.manager-item small, .manager-item code { font-size: 10px; color: var(--muted); word-break: break-all; }
.manager-item code { font-family: var(--serif); font-size: 12px; color: var(--accent); font-weight: 700; }
.manager-group + .manager-group { margin-top: 22px; }
.manager-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.manager-group-head strong { font-family: var(--serif); font-size: 14px; color: var(--ink); }
.manager-group-head span { font-size: 10px; font-weight: 700; color: var(--rust); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.manager-empty { margin: 0; padding: 22px 16px; text-align: center; font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.manager-item-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.reset-pass-btn {
  align-self: flex-start; margin-top: 6px; border: 1px solid var(--accent); background: transparent;
  color: var(--accent); border-radius: 999px; padding: 5px 11px; font-size: 10px; font-weight: 700; cursor: pointer;
}
.reset-pass-btn:hover { background: rgba(89,107,78,.08); }
/* 逐账号认证要求开关 */
.idreq-toggle { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; cursor: pointer; user-select: none; }
.idreq-toggle.disabled { opacity: .5; cursor: not-allowed; }
.idreq-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.idreq-track { position: relative; width: 30px; height: 17px; border-radius: 999px; background: #d8d6cd; transition: background .18s; flex: 0 0 auto; }
.idreq-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.idreq-toggle.on .idreq-track { background: var(--accent); }
.idreq-toggle.on .idreq-track::after { left: 15px; }
.idreq-text { font-size: 10px; color: var(--muted); font-weight: 700; }
.idreq-toggle.on .idreq-text { color: var(--accent); }
.idreq-toggle input:focus-visible + .idreq-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.reset-pass-field { margin: 16px 0 6px; text-align: left; }
.reset-pass-field label { display: block; font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.reset-pass-field input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; font-family: inherit; }
.reset-pass-field input:focus { outline: none; border-color: var(--accent); }
.reset-pass-field input.invalid { border-color: var(--rust); }
.reset-pass-error { display: block; min-height: 15px; color: var(--rust); font-size: 11px; margin-top: 5px; }
@media (max-width: 900px) { .manager-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .manager-list { grid-template-columns: 1fr; } }

/* ---------- 发货订单首页入口 ---------- */
.shipping-section { padding: 0 0 34px; }
.shipping-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 28px; box-shadow: var(--shadow-sm);
}
.shipping-intro .eyebrow { color: var(--accent); margin: 0 0 6px; }
.shipping-intro h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; font-weight: 600; }
.shipping-intro h2 span { font-size: 13px; color: var(--muted); font-weight: 400; font-style: italic; }
.shipping-desc { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; }
.shipping-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 10px; color: var(--muted); }
.shipping-stats span { background: #faf9f6; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.shipping-stats strong { font-family: var(--serif); font-size: 14px; color: var(--accent); margin-left: 3px; }
.shipping-cta .btn { white-space: nowrap; }
@media (max-width: 700px) {
  .shipping-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- 发货订单弹窗 ---------- */
.shipping-modal { position: fixed; inset: 0; z-index: 94; display: grid; place-items: center; padding: 20px; }
.shipping-backdrop { position: absolute; inset: 0; background: rgba(25,26,22,.55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.shipping-dialog {
  position: relative; width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.24);
  animation: modalUp .3s cubic-bezier(.22,.8,.25,1);
}
.shipping-filter { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 8px; padding: 0 26px 14px; }
.shipping-filter label { font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.shipping-filter select, .shipping-filter input {
  width: 100%; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; padding: 0 8px; font-size: 11px; color: var(--ink); outline: none;
}
.shipping-filter select:focus, .shipping-filter input:focus { border-color: var(--accent); }
.shipping-filter .date-sep { font-size: 11px; color: var(--muted); }
.ship-status-select {
  border: 1px solid var(--accent); background: #f1f4ed; color: var(--accent-dark);
  border-radius: 999px; padding: 4px 10px; font-size: 10px; font-weight: 600; outline: none;
}
.ship-status-badge { display: inline-block; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: #eef0e8; color: var(--accent-dark); }
.ship-status-badge.shipped { background: #e8eef6; color: #1a3f7a; }
.ship-status-badge.awaiting { background: #f6efdd; color: #8a6b2f; }
.ship-status-badge.received { background: #e7eee1; color: var(--accent-dark); }
.shipping-commission { font-size: 11px; color: var(--accent); font-weight: 600; }
@media (max-width: 700px) {
  .shipping-filter { grid-template-columns: 1fr; padding: 0 20px 14px; }
  .shipping-filter .date-sep { display: none; }
}

.commission-modal { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 20px; }
.commission-backdrop { position: absolute; inset: 0; background: rgba(25,26,22,.55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.commission-dialog {
  position: relative; width: min(660px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.24);
  animation: modalUp .3s cubic-bezier(.22,.8,.25,1);
}
.commission-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 26px 0; }
.commission-head .eyebrow { margin-bottom: 6px; }
.commission-head h3 { font-family: var(--serif); font-size: 23px; margin: 0; font-weight: 600; }
.commission-head h3 span { font-size: 13px; color: var(--muted); font-weight: 400; font-style: italic; }
.commission-stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 26px 0; }
.commission-stats-bar > div { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.commission-stats-bar small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.commission-stats-bar strong { font-family: var(--serif); font-size: 18px; }
.commission-tabs { display: flex; gap: 4px; margin: 22px 26px 0; border-bottom: 1px solid var(--line); }
.cm-tab { border: 0; background: none; padding: 9px 16px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cm-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.commission-body { padding: 18px 26px 4px; max-height: 340px; overflow-y: auto; }
.cm-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.cm-empty .empty-ico { font-size: 40px; opacity: .35; display: block; margin-bottom: 10px; }
.cm-empty h4 { font-family: var(--serif); font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.cm-empty p { font-size: 11px; margin: 0; }
.cm-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.cm-row:last-child { margin-bottom: 0; }
.cm-row-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.cm-row-id { font-size: 12px; font-weight: 600; }
.cm-row-id small { display: block; font-size: 9px; color: var(--muted); font-weight: 400; margin-bottom: 2px; }
.cm-row-amount { font-family: var(--serif); font-size: 17px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.cm-row-meta { display: grid; gap: 5px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); }
.cm-row-meta > div { display: flex; justify-content: space-between; gap: 12px; }
.cm-row-meta span:last-child { color: var(--ink); text-align: right; word-break: break-all; }
.cm-status { display: inline-block; font-size: 10px; font-weight: 600; color: #8a6b2f; background: #f6efdd; border-radius: 999px; padding: 2px 9px; }
.cm-master-note { font-size: 11px; color: var(--accent); background: #f1f4ed; border: 1px solid #dfe6d7; border-radius: 8px; padding: 8px 11px; margin-bottom: 10px; }
.cm-row-acct { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 4px; word-break: break-all; }
.cm-row-amount small { display: block; font-family: var(--sans); font-size: 9px; font-weight: 400; color: var(--muted); margin-bottom: 2px; text-align: right; }
.cm-status.accepted { color: #1d6b72; background: #e6f1f1; }
.cm-status.success { color: var(--accent-dark); background: #e7eee1; }
.cm-wd-actions { display: flex; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.cm-status-btn {
  flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 7px; padding: 6px 8px; font-size: 10px; font-weight: 600;
}
.cm-status-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cm-status-btn.is-current { border-color: var(--accent); color: var(--accent); background: #f1f4ed; }
.cm-status-btn:disabled { opacity: .45; cursor: default; }
.commission-foot { padding: 16px 26px 24px; border-top: 1px solid var(--line); margin-top: 8px; }
.withdraw-form { padding: 18px 26px 26px; }
.withdraw-available { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.withdraw-available strong { color: var(--accent); font-size: 15px; }
.wd-field { margin-bottom: 15px; }
.wd-field label { display: block; font-size: 11px; font-weight: 600; color: #55564e; margin-bottom: 6px; }
.wd-field input, .wd-field select, .wd-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  padding: 10px 12px; font-size: 13px; color: var(--ink); outline: none; resize: vertical;
}
.wd-field input:focus, .wd-field select:focus, .wd-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(89,107,78,.12); }
.wd-field input.invalid, .wd-field textarea.invalid { border-color: var(--rust); }
.withdraw-hint { font-size: 10px; color: var(--muted); margin: 0 0 14px; }
.withdraw-form .back-link { display: block; margin: 14px auto 0; }
@media (max-width: 520px) {
  .commission-stats, .commission-stats-bar { grid-template-columns: 1fr; }
}

/* ---------- 统一支付卡（总账号配置） ---------- */
.paycard-modal { position: fixed; inset: 0; z-index: 98; display: grid; place-items: center; padding: 20px; }
.paycard-backdrop { position: absolute; inset: 0; background: rgba(25,26,22,.55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.paycard-dialog {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.24);
  animation: modalUp .3s cubic-bezier(.22,.8,.25,1);
}
.paycard-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 26px 0; }
.paycard-head .eyebrow { margin-bottom: 6px; }
.paycard-head h3 { font-family: var(--serif); font-size: 22px; margin: 0; font-weight: 600; }
.paycard-head h3 span { font-size: 13px; color: var(--muted); font-weight: 400; font-style: italic; }
.paycard-desc { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 12px 26px 0; }
.paycard-current { margin: 16px 26px 0; }
.paycard-current:empty { display: none; }
.paycard-current-box { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.paycard-current-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.paycard-current-top strong { font-family: var(--serif); font-size: 15px; }
.paycard-current-bottom { font-size: 11px; color: var(--muted); margin-top: 5px; }
.paycard-current-bottom strong { color: var(--accent); font-size: 14px; }
.paycard-card-list { display: grid; gap: 8px; }
.paycard-card-item { display: flex; align-items: center; gap: 10px; background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.paycard-card-item-main { flex: 1; min-width: 0; }
.paycard-card-item-main strong { font-family: var(--serif); font-size: 14px; }
.paycard-card-item-main small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.paycard-card-item-balance { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.paycard-remove-btn { border: 0; background: none; color: var(--rust); font-size: 11px; cursor: pointer; padding: 3px 5px; }
.paycard-remove-btn:hover { text-decoration: underline; }
.paycard-form-title { font-size: 12px; font-weight: 700; color: var(--ink); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.paycard-form { padding: 18px 26px 26px; }
.paycard-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.paycard-form .btn-ghost { margin-top: 10px; }
.paycard-tools { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; }
.paycard-tools .test-card-link { margin: 0; }
.paycard-tools #importPaycardToggle { color: var(--rust); }
.paycard-tools #importPaycardToggle:hover { color: #934e2e; }
.paycard-import { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; margin: 0 0 16px; background: #faf9f6; }
.paycard-import-hint { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 0 0 8px; }
.paycard-import textarea {
  width: 100%; min-height: 78px; resize: vertical; padding: 9px 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.5;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.paycard-import textarea:focus { outline: none; border-color: var(--accent); }
.paycard-import textarea.invalid { border-color: var(--rust); }
.paycard-import-paste-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.paycard-table-scroll { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.paycard-import-table { width: 100%; border-collapse: collapse; min-width: 470px; table-layout: fixed; }
.paycard-import-table th:nth-child(1) { width: 19%; }
.paycard-import-table th:nth-child(2) { width: 30%; }
.paycard-import-table th:nth-child(3) { width: 14%; }
.paycard-import-table th:nth-child(4) { width: 12%; }
.paycard-import-table th:nth-child(5) { width: 17%; }
.paycard-import-table th:nth-child(6) { width: 8%; }
.paycard-import-table th {
  font-size: 9px; font-weight: 700; color: var(--muted); text-align: left;
  padding: 8px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.paycard-import-table td { padding: 3px 2px; border-bottom: 1px dashed var(--line); }
.paycard-import-table tr:last-child td { border-bottom: 0; }
.paycard-import-table tr.invalid-row { background: rgba(178,74,44,.08); }
.paycard-import-table input {
  width: 100%; min-width: 0; padding: 6px 4px; font-size: 10px;
  color: var(--ink); background: var(--surface); border: 1px solid transparent; border-radius: 6px;
}
.paycard-import-table input:focus { outline: none; border-color: var(--accent); background: #fff; }
.paycard-import-table .im-number, .paycard-import-table .im-cvv, .paycard-import-table .im-expiry, .paycard-import-table .im-balance { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.im-del { border: 0; background: none; color: var(--rust); font-size: 12px; cursor: pointer; padding: 4px 6px; }
.im-del:hover { text-decoration: underline; }
.paycard-import-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.btn-file {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); border-radius: 999px; padding: 8px 16px;
  font-size: 11px; font-weight: 600; color: var(--accent); cursor: pointer;
}
.btn-file:hover { background: rgba(89,107,78,.06); }
.btn.btn-sm { padding: 8px 16px; font-size: 11px; }
.paycard-brand {
  display: inline-grid; place-items: center; min-width: 48px; height: 26px; padding: 0 7px;
  border-radius: 5px; background: #eef0e8; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .08em;
}
.paycard-brand.visa { background: #e8eef6; color: #1a3f7a; }
.paycard-brand.mastercard { background: #f6ece5; color: #b4551f; }
.paycard-brand.amex { background: #e6f1f1; color: #1d6b72; }

/* 结账第 2 步：统一支付卡面板 */
.central-card-note { font-size: 11px; color: var(--muted); margin: 4px 0 12px; }
.central-card-box { border: 1px solid var(--line); border-radius: 12px; background: #faf9f6; padding: 14px 16px; margin-bottom: 16px; }
.central-card-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.central-card-top strong { font-family: var(--serif); font-size: 16px; }
#centralCardBox .central-card-top { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.central-card-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); padding: 3px 0; }
.central-card-row span:last-child, .central-card-row strong { color: var(--ink); text-align: right; }
.central-card-row strong { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.central-card-missing { text-align: center; border: 1px dashed var(--line); border-radius: 12px; padding: 22px 16px; margin-bottom: 16px; }
.central-card-missing p { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
/* 分账号手动录入总账号卡信息 */
.central-card-entry { border-top: 1px dashed var(--line); margin: 18px 0 16px; padding-top: 16px; }
.central-card-entry-title { font-size: 12px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.central-card-entry-hint { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.central-card-entry .wd-field { margin-bottom: 11px; }
.central-card-entry .card-input-wrap input { padding-right: 12px; }
.central-card-entry .paycard-form-row { gap: 10px; }
.card-mismatch-error { color: var(--rust); font-size: 11px; margin-top: 4px; }

/* 支付失败视图 */
.checkout-fail { padding: 34px 28px 30px; text-align: center; }
.fail-check { width: 60px; height: 60px; border-radius: 50%; background: var(--rust); color: #fff; font-size: 32px; font-weight: 700; display: grid; place-items: center; margin: 0 auto 16px; }
.checkout-fail h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.fail-sub { color: var(--rust); font-size: 12px; font-weight: 600; margin: 0 0 22px; }
.checkout-fail .success-card { text-align: left; }
.checkout-fail .btn-ghost { margin-top: 10px; }

/* ---------- 身份认证 ---------- */
.identity-section { padding: 34px 0 10px; }
.identity-card { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; box-shadow: var(--shadow-sm); }
.identity-intro { flex: 1 1 420px; }
.identity-intro h2, .identity-review-head h2 { font-family: var(--serif); font-size: 26px; margin: 6px 0 10px; color: var(--ink); }
.identity-intro h2 span, .identity-review-head h2 span { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); }
.identity-desc, .identity-review-desc { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 12px; }
.identity-status { font-size: 12px; font-weight: 700; padding: 9px 14px; border-radius: 999px; display: inline-block; background: var(--line); color: var(--muted); }
.identity-status.pending { background: #f6ecd8; color: #8a6a1f; }
.identity-status.approved { background: #e4efe6; color: #2f6b3b; }
.identity-status.rejected { background: #f6e2de; color: var(--rust); }
.identity-body { display: flex; gap: 10px; flex-wrap: wrap; }
.identity-review-section { padding: 26px 0 10px; }
.identity-review-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; box-shadow: var(--shadow-sm); }
.identity-review-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.identity-toggle { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.identity-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.identity-toggle-track { width: 38px; height: 21px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.identity-toggle-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s; }
.identity-toggle input:checked + .identity-toggle-track { background: var(--accent); }
.identity-toggle input:checked + .identity-toggle-track::after { transform: translateX(17px); }
.identity-review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.identity-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.identity-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.identity-item-top strong { font-size: 13px; color: var(--ink); }
.identity-item-status { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--line); color: var(--muted); white-space: nowrap; }
.identity-item-status.pending { background: #f6ecd8; color: #8a6a1f; }
.identity-item-status.approved { background: #e4efe6; color: #2f6b3b; }
.identity-item-status.rejected { background: #f6e2de; color: var(--rust); }
.identity-item-meta { display: grid; gap: 5px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.identity-item-meta b { color: var(--ink); font-weight: 600; }
.identity-item-thumb { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; background: var(--line); margin-bottom: 12px; }
.identity-item-actions { display: flex; gap: 8px; }
.identity-item-actions .btn { flex: 1; font-size: 11px; padding: 8px 10px; }
.identity-note-input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 11px; margin-bottom: 8px; font-family: inherit; }
.identity-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.identity-modal-backdrop { position: absolute; inset: 0; background: rgba(26, 28, 24, .58); }
.identity-dialog { position: relative; width: min(100%, 540px); max-height: 92vh; overflow-y: auto; background: var(--paper); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow-lg); }
.identity-modal-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 14px; }
.identity-modal-head h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0 0; color: var(--ink); }
.identity-modal-head h3 span { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); }
.identity-modal-note { font-size: 11px; line-height: 1.7; color: var(--muted); background: #fff; border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 0 0 16px; }
.identity-form .wd-field { margin-bottom: 13px; }
.identity-form .wd-field label:first-child { font-size: 11px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.identity-form input, .identity-form select, .identity-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 12px; font-family: inherit; background: #fff; color: var(--ink); }
.identity-form input.invalid, .identity-form textarea.invalid { border-color: var(--rust); }
.id-file-label { display: inline-block; cursor: pointer; font-size: 11px; }
.id-image-preview { margin-top: 10px; }
.id-image-preview img { width: 100%; max-height: 200px; object-fit: contain; border: 1px dashed var(--line); border-radius: 8px; }
.identity-detail-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.identity-detail-row span:first-child { color: var(--muted); }
.identity-detail-row span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.identity-detail-img { width: 100%; max-height: 280px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); margin-top: 14px; cursor: zoom-in; }
.id-image-dialog { width: min(96vw, 900px); text-align: center; position: relative; }
.id-image-dialog img { max-width: 100%; max-height: 80vh; border-radius: 10px; }
.id-image-close { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 13px; z-index: 80; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 48px 0; }
  .hero-art { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1180px); }
  .announcement-sep, .announcement span:nth-child(3) { display: none; }
  .header-inner { height: 64px; gap: 12px; flex-wrap: wrap; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 10px; }
  .header-inner { height: auto; padding-top: 12px; padding-bottom: 12px; }
  .cart-label { display: none; }
  .logo-text small { display: none; }
  .shop-head { flex-direction: column; align-items: start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-title { font-size: 28px; }
  .hero-title { font-size: 38px; }
  .hero-meta { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 12px; }
  .price { font-size: 17px; }
}
