:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #1e232c;
  --ink-2: #3b4250;
  --muted: #757d89;
  --line: #e8e3dd;
  --line-strong: #d9d2c9;
  --accent: #96684c;
  --accent-dark: #7a533b;
  --accent-soft: #f4ebe4;
  --ok: #2f7d5d;
  --ok-soft: #e7f3ed;
  --warn: #b0781d;
  --warn-soft: #fbf1dd;
  --danger: #b4443d;
  --danger-soft: #fbeae8;
  --info: #3a6b96;
  --info-soft: #e9f1f8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(30, 35, 44, .04), 0 8px 28px rgba(30, 35, 44, .05);
  --shadow-lg: 0 20px 60px rgba(30, 35, 44, .14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  /* 手机端观看统一规格：3:4 竖版（上传建议 1080 × 1440 px），单图最高不超过屏幕的 72% */
  --photo-ratio: 3 / 4;
  --photo-max-h: min(72vh, 720px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
small { color: var(--muted); }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.boot-mark { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 通用组件 ---------- */
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(780px, calc(100% - 36px)); margin: 0 auto; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  font-weight: 550; transition: .16s ease; white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-danger { color: var(--danger); border-color: #ebcdca; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h3 { font-size: 15.5px; }
.card-body { padding: 18px 20px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #cbe6d8; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #efdfb9; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: #f0d1ce; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: #d3e3f2; }
.badge.accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #e7d3c4; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--ink); outline: none; transition: .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 88px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }

.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 650; color: var(--muted); font-size: 12px; letter-spacing: .02em; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fcfbf9; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink-2); margin-bottom: 6px; font-size: 15px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; max-width: min(360px, calc(100% - 40px)); }
.toast-item { padding: 12px 16px; border-radius: 11px; background: #232a35; color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: toastIn .22s ease; }
.toast-item.ok { background: #256c50; } .toast-item.err { background: #a63c36; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(24, 28, 36, .42); z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: 16px; width: min(620px, 100%); max-height: min(86vh, 800px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }

.notice { padding: 12px 14px; border-radius: 10px; background: var(--info-soft); border: 1px solid #d6e5f3; color: #2d5b80; font-size: 12.5px; line-height: 1.65; }
.notice.warn { background: var(--warn-soft); border-color: #efdfb9; color: #8a5c15; }
.notice.danger { background: var(--danger-soft); border-color: #f0d1ce; color: #993a34; }
.notice.ok { background: var(--ok-soft); border-color: #cbe6d8; color: #26694e; }

/* ---------- 商城 H5 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
/* 顶栏三栏：左侧「花园首页」、正中品牌图+名称、右侧订单/咨询/账号，高度仍为 64px */
.topbar-in { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .04em; white-space: nowrap; }
.brand-center { justify-self: center; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #b78a6b, #7d5640); display: grid; place-items: center; color: #fff; font-size: 15px; flex: none; }
.brand-logo { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; display: block; flex: none; }
.brand-logo-lg { width: 48px; height: 48px; border-radius: 12px; }
.brand-mark-lg { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; }
.brand-name { color: var(--ink); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }
.nav-links a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.nav-links a:hover, .nav-links a.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-icon { display: none; }
.guest-entry-notice { padding-top: 12px; }
@media (max-width: 760px) {
  .topbar-in {
    height: auto; min-height: 54px; padding: 6px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand right" "left left";
    gap: 5px 6px;
  }
  .brand-center { display: flex; grid-area: brand; justify-self: start; font-size: 14px; gap: 7px; }
  .nav-left { grid-area: left; width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-top: 1px solid var(--line); padding-top: 5px; }
  .nav-left a { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 2px; font-size: 11.5px; white-space: nowrap; }
  .nav-icon { display: inline; font-size: 12px; line-height: 1; }
  .nav-right { grid-area: right; min-width: 0; width: 100%; justify-content: flex-end; gap: 1px; }
  .brand-logo, .brand-mark { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
  .nav-links a { padding: 6px 7px; font-size: 12px; white-space: nowrap; }
  .nav-right .nav-console, .nav-right .nav-user { display: none; }
  .nav-right .btn-sm { padding: 5px 8px; font-size: 12px; }
}

.hero { position: relative; overflow: hidden; border-radius: 18px; margin: 24px 0; min-height: 260px; background: linear-gradient(120deg, #efe2d6, #e9ded9 50%, #dfe5e1); border: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 2; padding: 40px 42px; max-width: 600px; text-shadow: 0 1px 10px rgba(255,255,255,.95), 0 0 4px rgba(255,255,255,.9); }
.hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.25; margin-bottom: 12px; }
.hero p { color: #5d5a58; font-size: 15px; max-width: 460px; }
.hero-art { position: absolute; right: -30px; top: -40px; width: 46%; height: 130%; opacity: .55; background: radial-gradient(circle at 40% 30%, #c9a68d 0, transparent 55%), radial-gradient(circle at 70% 70%, #8fa39b 0, transparent 52%); filter: blur(2px); }
.hero-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- 商城首页 · 写真福利 ---------- */
.landing-main { min-height: 100vh; padding: 1px 0 20px; background: #f6f7f9; }
.benefit-home { width: min(760px, 100%); margin: 24px auto 34px; display: grid; gap: 18px; }
.benefit-feature { position: relative; min-height: 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg,#f0e7df,#e4e8e5); }
.benefit-feature-bg { position: absolute; inset: -2px; background-image: linear-gradient(rgba(255,255,255,.62),rgba(255,255,255,.62)),var(--benefit-cover); background-size: cover; background-position: center; filter: saturate(.62) blur(.7px); transform: scale(1.01); }
.benefit-feature-content { position: relative; z-index: 1; min-height: 330px; padding: 34px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.benefit-avatar { width: 112px; height: 112px; border-radius: 26px; object-fit: cover; border: 3px solid rgba(255,255,255,.92); box-shadow: 0 10px 32px rgba(0,0,0,.14); }
.benefit-avatar-empty { display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 30px; font-weight: 700; }
.benefit-feature h1 { margin-top: 18px; font-size: clamp(28px,5vw,40px); }
.benefit-feature p { margin: 8px 0 0; color: #e32626; font-size: 20px; font-weight: 700; }
.benefit-update { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; font-size: 17px; }
.benefit-update-meta { color: var(--muted); font-size: 13px; font-weight: 500; }
.benefit-dot { width: 12px; height: 12px; border-radius: 50%; background: #12b84d; box-shadow: 0 0 0 5px rgba(18,184,77,.1); }
.benefit-card { color: #fff; border-radius: 24px; padding: 28px 30px; background: linear-gradient(135deg,#2478ff,#168df1); box-shadow: 0 18px 44px rgba(32,119,242,.2); }
.benefit-card-head { display: flex; gap: 16px; align-items: center; }
.benefit-card-head h2 { font-size: 26px; }
.benefit-card-head p { margin: 2px 0 0; color: rgba(255,255,255,.78); }
.benefit-shield { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 17px; font-size: 30px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.benefit-card ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.benefit-card li::before { content: '✓'; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 10px; border-radius: 50%; background: #fff; color: #2478ff; font-size: 13px; font-weight: 800; }
.benefit-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.benefit-gallery-item { aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--surface-2); border: 3px solid #fff; box-shadow: var(--shadow); }
.benefit-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.benefit-intro { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.benefit-intro h2 { margin-top: 5px; font-size: 25px; }
.benefit-intro p { margin: 12px 0 0; color: var(--muted); line-height: 1.75; }
.benefit-kicker { color: #26b888; font-weight: 700; font-size: 13px; }
.benefit-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.benefit-facts div { display: grid; gap: 3px; padding: 15px 8px; text-align: center; border-radius: 14px; background: #f5f6f7; }
.benefit-facts strong { font-size: 20px; }
.benefit-facts span { color: var(--muted); font-size: 12px; }
.benefit-recommend { display: grid; gap: 20px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.benefit-recommend-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.benefit-recommend-head strong { color: #24bd89; font-size: 18px; }
.benefit-recommend-head span { color: var(--muted); font-size: 15px; }
.benefit-recommend-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.benefit-recommend-brand img,.benefit-recommend-avatar { width: 62px; height: 62px; flex: none; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 22px rgba(24,43,54,.12); }
.benefit-recommend-avatar { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#95705d,#c49a7e); font-size: 25px; font-weight: 750; }
.benefit-recommend-brand > div { min-width: 0; }
.benefit-recommend-brand h3 { overflow: hidden; margin: 0; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.benefit-recommend-brand p { overflow: hidden; margin: 5px 0 0; color: #a0a5ac; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.benefit-recommend-copy { margin: 0; color: #505761; font-size: 16px; line-height: 1.8; }
.benefit-recommend-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.benefit-recommend-stats div { display: grid; gap: 5px; padding: 18px 10px; text-align: center; border-radius: 15px; background: #f5f6f7; border: 1px solid #eaedef; }
.benefit-recommend-stats strong { overflow: hidden; color: #111820; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.benefit-recommend-stats span { color: #9da3aa; font-size: 12px; }
.benefit-unlock-space { height: 76px; }
.benefit-unlock-bar { position: sticky; z-index: 30; bottom: 10px; display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: 20px; background: rgba(255,255,255,.94); border: 1px solid rgba(215,221,226,.9); box-shadow: 0 18px 48px rgba(24,43,54,.18); backdrop-filter: blur(12px); }
.benefit-unlock-price { padding-left: 12px; color: var(--accent-dark); font-size: 20px; font-weight: 800; white-space: nowrap; }
.benefit-sale { position: absolute; left: 10px; bottom: calc(100% - 7px); padding: 7px 13px; border-radius: 999px; color: #6c4b00; background: #ffc934; font-size: 12px; font-weight: 750; box-shadow: 0 6px 15px rgba(198,143,0,.2); }
.benefit-unlock { flex: 1; width: 100%; min-height: 58px; border: 0; border-radius: 14px; color: #fff; cursor: pointer; font-size: 21px; font-weight: 750; letter-spacing: .08em; background: linear-gradient(100deg,#46bfa0,#32a8ef); box-shadow: 0 14px 36px rgba(39,157,204,.24); }
.benefit-unlock:hover { filter: brightness(.97); transform: translateY(-1px); }
.benefit-home.is-preview { width: min(500px,100%); margin: 0 auto; gap: 10px; }
.benefit-home.is-preview .benefit-feature,.benefit-home.is-preview .benefit-feature-content { min-height: 230px; }
.benefit-home.is-preview .benefit-feature { border-radius: 16px; }
.benefit-home.is-preview .benefit-avatar { width: 76px; height: 76px; border-radius: 18px; }
.benefit-home.is-preview .benefit-feature h1 { font-size: 24px; margin-top: 10px; }
.benefit-home.is-preview .benefit-feature p { font-size: 14px; }
.benefit-home.is-preview .benefit-card { padding: 18px; border-radius: 16px; }
.benefit-home.is-preview .benefit-card-head h2 { font-size: 19px; }
.benefit-home.is-preview .benefit-card ul { margin-top: 12px; font-size: 14px; }
.benefit-home.is-preview .benefit-unlock { min-height: 48px; font-size: 17px; }
.benefit-home.is-preview .benefit-intro { padding: 16px; }
.benefit-home.is-preview .benefit-intro h2 { font-size: 19px; }
.benefit-home.is-preview .benefit-recommend { gap: 13px; padding: 16px; border-radius: 16px; }
.benefit-home.is-preview .benefit-recommend-head strong { font-size: 15px; }
.benefit-home.is-preview .benefit-recommend-head span { font-size: 12px; }
.benefit-home.is-preview .benefit-recommend-brand img,.benefit-home.is-preview .benefit-recommend-avatar { width: 48px; height: 48px; border-radius: 13px; }
.benefit-home.is-preview .benefit-recommend-brand h3 { font-size: 16px; }
.benefit-home.is-preview .benefit-recommend-copy { font-size: 13px; }
.benefit-home.is-preview .benefit-recommend-stats { gap: 7px; }
.benefit-home.is-preview .benefit-recommend-stats div { padding: 12px 5px; }
.benefit-home.is-preview .benefit-recommend-stats strong { font-size: 16px; }
.benefit-home.is-preview .benefit-unlock-bar { position: static; }
.benefit-home.is-preview .benefit-unlock-space { display: none; }

@media (max-width: 760px) {
  .benefit-home { margin: 14px auto 26px; gap: 12px; }
  .benefit-feature,.benefit-feature-content { min-height: 218px; }
  .benefit-feature { border-radius: 18px; }
  .benefit-feature-content { padding: 17px 16px; }
  .benefit-avatar { width: 72px; height: 72px; border-radius: 18px; }
  .benefit-feature h1 { font-size: 24px; margin-top: 9px; }
  .benefit-feature p { margin-top: 4px; font-size: 15px; }
  .benefit-update { padding: 9px; font-size: 15px; }
  .benefit-update { flex-wrap: wrap; }
  .benefit-card { padding: 21px 20px; border-radius: 18px; }
  .benefit-card-head h2 { font-size: 21px; }
  .benefit-card-head p { font-size: 12px; }
  .benefit-shield { width: 48px; height: 48px; border-radius: 14px; }
  .benefit-card ul { margin-top: 16px; font-size: 15px; }
  .benefit-gallery { gap: 7px; }
  .benefit-gallery-item { border-width: 2px; }
  .benefit-unlock { min-height: 56px; border-radius: 15px; font-size: 19px; }
  .benefit-intro { padding: 20px; border-radius: 18px; }
  .benefit-intro h2 { font-size: 21px; }
  .benefit-facts strong { font-size: 17px; }
  .benefit-recommend { gap: 16px; padding: 20px; border-radius: 18px; }
  .benefit-recommend-head strong { font-size: 16px; }
  .benefit-recommend-head span { font-size: 13px; }
  .benefit-recommend-brand img,.benefit-recommend-avatar { width: 54px; height: 54px; border-radius: 14px; }
  .benefit-recommend-brand h3 { font-size: 18px; }
  .benefit-recommend-brand p { font-size: 13px; }
  .benefit-recommend-copy { font-size: 14px; line-height: 1.7; }
  .benefit-recommend-stats { gap: 8px; }
  .benefit-recommend-stats div { padding: 15px 5px; border-radius: 13px; }
  .benefit-recommend-stats strong { font-size: 18px; }
  .benefit-recommend-stats span { font-size: 11px; }
  .benefit-unlock-bar { bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 17px; }
  .benefit-unlock-price { font-size: 17px; padding-left: 6px; }
}

.consultation-card h1 { margin-top: 4px; font-size: 25px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 16px; }
.section-head h2 { font-size: 20px; }
.section-head p { color: var(--muted); font-size: 13px; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 13px; cursor: pointer; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-child { padding-left: 18px; }
.chip-indent { margin-right: 6px; color: var(--muted); }
.chip.active .chip-indent { color: rgba(255,255,255,.7); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(30,35,44,.10); }
/* 商品卡封面按 3:4 竖版：上传 1080 × 1440 的原图在手机上完整呈现，不会被裁成横条 */
.product-cover { aspect-ratio: var(--photo-ratio); background: linear-gradient(135deg, #d9c3b2, #b8c3bb); position: relative; overflow: hidden; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-cover .kind-tag { position: absolute; left: 10px; top: 10px; }
.product-info { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-info h3 { font-size: 15px; line-height: 1.4; }
.product-meta { display: flex; gap: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.price { color: var(--accent-dark); font-weight: 700; font-size: 19px; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-stack { display: flex; flex-direction: column; gap: 4px; }
.price-main { margin: 0; line-height: 1.2; }
.buy-panel .price-main { margin: 8px 0 4px; }
.price-compare { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.price-compare s { color: var(--muted); }
.price-save { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--danger); background: var(--danger-soft); }
.sale-flag { display: inline-flex; align-items: center; width: fit-content; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--accent-dark); }
.price-stack-compact .price-main { font-size: 16px; }
.price-stack-compact .price-compare { font-size: 11px; gap: 5px; }
.price-stack-compact .sale-flag { font-size: 10.5px; padding: 1px 6px; }
.order-list-price { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }

.carousel { position: relative; border-radius: 16px; overflow: hidden; background: #e9e2db; border: 1px solid var(--line); }
.carousel-track { display: flex; transition: transform .35s ease; }
/* 详情页轮播：竖版完整显示（contain 不裁切），桌面端最高 720px，手机端不超过 72vh */
.carousel-track img { width: 100%; flex: 0 0 100%; aspect-ratio: var(--photo-ratio); max-height: var(--photo-max-h); object-fit: contain; object-position: center; background: #f3efe9; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 7px; height: 7px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: #fff; width: 20px; border-radius: 4px; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.86); border: 0; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: var(--ink); }
.carousel-nav.prev { left: 12px; } .carousel-nav.next { right: 12px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; margin-top: 22px; }
.detail-block { margin-bottom: 18px; }
/* 详情插图：整张图完整可见、居中，不放大超过手机屏幕 */
.detail-image { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.detail-image img { width: auto; height: auto; max-width: 100%; max-height: var(--photo-max-h); margin: 0 auto; object-fit: contain; }
.buy-panel { position: sticky; top: 84px; }
.buy-price { font-size: 30px; color: var(--accent-dark); font-weight: 700; margin: 8px 0 4px; }
.fact-list { display: grid; gap: 9px; margin: 14px 0; }
.fact-list div { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.fact-list span:last-child { color: var(--ink-2); font-weight: 550; }

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(150deg, #e8dcd0, #cbb7a5 45%, #a9b6ad); position: relative; overflow: hidden; }
.auth-art::after { content: ''; position: absolute; inset: 12% 14%; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.auth-art-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; padding: 40px; z-index: 2; }
.auth-art-in h2 { font-size: 30px; text-shadow: 0 2px 14px rgba(0,0,0,.15); }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.media-item .ph { aspect-ratio: var(--photo-ratio); max-height: var(--photo-max-h); background: linear-gradient(135deg, #d9d2c8, #a9b2ad); display: grid; place-items: center; color: #fff; font-size: 12px; }
/* 已购内容：按手机竖屏完整显示整张图，不再裁切 */
.media-item img { width: 100%; aspect-ratio: var(--photo-ratio); max-height: var(--photo-max-h); object-fit: contain; object-position: center; background: #f3efe9; }
.media-item .cap { padding: 9px 11px; font-size: 12px; display: flex; justify-content: space-between; gap: 6px; }
.video-ph { position: relative; background: linear-gradient(135deg, #3b4a42, #7c8f7f); }
.video-ph::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: rgba(255,255,255,.8); }

.pay-option { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 11px; margin-bottom: 10px; cursor: pointer; }
.pay-option.disabled { opacity: .58; cursor: not-allowed; background: var(--surface-2); }
.pay-option.active { border-color: var(--accent); background: var(--accent-soft); }
.pay-option .dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; }
.pay-option.active .dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, transparent 48%); }

/* 精简结账页：只展示商品、金额、支付渠道和付款按钮 */
.checkout-page { padding: 18px 0 48px; }
.checkout-nav { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 12px; font-size: 13px; }
.checkout-nav strong { color: var(--ink-2); font-size: 14px; }
.checkout-summary-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 18px; }
.checkout-product { min-width: 0; }
.checkout-product strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.checkout-product-image { grid-column: 1 / -1; overflow: hidden; width: 100%; max-height: 280px; margin-top: 2px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.checkout-product-image img { width: 100%; aspect-ratio: 16 / 9; max-height: 280px; object-fit: cover; object-position: center; }
.checkout-total { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; color: var(--muted); font-size: 12px; }
.checkout-total strong { color: var(--accent-dark); font-size: 24px; line-height: 1; }
.checkout-methods { margin-top: 12px; padding: 18px; }
.checkout-section-title { margin-bottom: 12px; }
.checkout-section-title h3 { font-size: 16px; }
.checkout-methods .pay-option { width: 100%; min-height: 60px; margin: 0 0 12px; padding: 11px 13px; background: var(--surface); text-align: left; color: var(--ink); }
.checkout-methods .pay-option.active { background: #f5f9ff; border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,.08); }
.pay-brand { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 9px; overflow: hidden; font-weight: 700; color: #fff; }
.pay-brand img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pay-brand.wechat { background: #07c160; }
.pay-option-copy { display: flex; align-items: center; min-width: 0; }
.pay-option-copy strong { font-size: 15px; font-weight: 650; }
.checkout-pay-btn { min-height: 48px; margin-top: 2px; }
.pay-result-card { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.pay-result-card h3 { font-size: 16px; }
.pay-result-card p { color: var(--muted); font-size: 12.5px; margin: 3px 0 0; }
.pay-result-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

.mobile-buybar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- 后台 SaaS ---------- */
.console { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 4px 10px 18px; }
.side-group { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; padding: 14px 12px 6px; text-transform: uppercase; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.side-link:hover { background: var(--surface-2); }
.side-link.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.side-link .ico { width: 18px; text-align: center; font-size: 15px; opacity: .85; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.console-main { min-width: 0; }
.console-top { height: 62px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; position: sticky; top: 0; z-index: 20; }
.console-top h1 { font-size: 17px; }
.console-top .crumb { color: var(--muted); font-size: 13px; }
.console-body { padding: 24px 26px 48px; max-width: 1440px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 25px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.stat.accent .stat-value { color: var(--accent-dark); }
.stat.ok .stat-value { color: var(--ok); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 9px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 550; border-bottom: 2px solid transparent; }
.tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
a.tab { display: inline-block; text-decoration: none; line-height: 1.4; }
a.tab:hover { color: var(--accent-dark); }
.hub-tabs { margin-bottom: 20px; }
.hub-body > .section-head:first-child h2 { font-size: 19px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 9px; }
.bar-track { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; background: linear-gradient(90deg, #c39a7c, var(--accent)); border-radius: 999px; }

/* ===== 首页 Hero：1–5 张左右滑动轮播（商城与后台预览共用） ===== */
.hero-track { position: absolute; inset: 0; z-index: 0; display: flex; height: 100%; transition: transform .65s cubic-bezier(.32,.72,.28,1); will-change: transform; }
.hero-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.hero-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, var(--hero-from, rgba(0,0,0,0)) 0%, var(--hero-from, rgba(0,0,0,0)) 30%, var(--hero-to, rgba(0,0,0,0)) 100%); }
.hero.with-photo .hero-art { display: none; }
.hero-source { position: absolute; right: 14px; bottom: 12px; z-index: 3; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.72); padding: 3px 9px; border-radius: 999px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.86); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(30,35,44,.16); }
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 10px; } .hero-arrow.next { right: 10px; }
.hero-dots { position: absolute; right: 16px; top: 16px; z-index: 3; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.hero-dots button.active { width: 22px; border-radius: 5px; background: var(--accent); }
.hero-counter { position: absolute; left: 16px; bottom: 12px; z-index: 3; font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,.8); padding: 3px 9px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }

/* ===== 首页装修：多选轮播排序 / 代理明细 / 三链接提取 ===== */
.asset-option .order-no { position: absolute; left: 4px; top: 3px; z-index: 2; min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.hero-order { display: flex; flex-wrap: wrap; gap: 6px; }
.order-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 260px; padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); font-size: 11.5px; }
.order-chip b { display: inline-flex; width: 17px; height: 17px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; }
.order-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 12px; line-height: 1; }
.order-chip button:hover { color: var(--accent-dark); }
.agent-insight { margin: 18px 0; border-color: var(--accent-soft); }
.agent-insight .insight-title { font-size: 13.5px; margin: 20px 0 9px; padding-left: 9px; border-left: 3px solid var(--accent); }
.agent-insight .card-head { flex-wrap: wrap; gap: 8px; }
.extract-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.extract-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.extract-item .tiny { margin: 5px 0 9px; }
.extract-url { display: flex; gap: 6px; align-items: center; }
.extract-url .input { flex: 1; min-width: 0; font-size: 12px; }
.extract-url .btn { flex: 0 0 auto; text-decoration: none; }
@media (max-width: 640px) {
  .extract-url { flex-wrap: wrap; }
  .extract-url .input { flex: 1 0 100%; }
}

/* ===== 媒体项目（相册分组） ===== */
.project-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; margin: 16px 0 18px; }
.project-card { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: .18s; }
.project-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.project-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.project-link { display: block; text-decoration: none; color: inherit; }
.project-cover { height: 86px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; background: linear-gradient(135deg, #e7dcd1, #d5e0dc); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-cover .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.project-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.project-desc { font-size: 11.5px; color: var(--muted); min-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-count { font-size: 11.5px; color: var(--accent); margin-top: 5px; }
.project-actions { position: absolute; right: 9px; top: 9px; display: flex; gap: 4px; opacity: 0; transition: .15s; }
.project-card:hover .project-actions { opacity: 1; }
.project-actions .btn { padding: 3px 7px; font-size: 11px; background: rgba(255,255,255,.94); }

/* ===== 筛选条 ===== */
.filter-bar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 145px; }

/* ===== 素材缩略图网格 ===== */
.media-grid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 14px; }
.media-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.media-thumb { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; cursor: zoom-in; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; background: linear-gradient(135deg, #dde3e0, #efe6dd); }
.media-thumb .thumb-badge { position: absolute; left: 8px; top: 8px; }
.media-tile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.media-tile-name { font-size: 12.5px; font-weight: 600; word-break: break-all; line-height: 1.35; }
.media-tile-meta { font-size: 11px; color: var(--muted); }
.media-tile-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); }
.media-tile-actions .btn { padding: 3px 7px; font-size: 11px; }

/* ===== 媒体素材归属：用途归属 + 项目归属 ===== */
.media-ownership { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 2px; padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.own-line { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.45; }
.own-line em { font-style: normal; color: var(--muted); flex: 0 0 52px; }
.own-value { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.own-badge { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.own-badge.marketing { color: #8a5a2b; background: #f6ead9; border-color: #e8d2b3; }
.own-badge.formal { color: #2f5d68; background: #e2eef1; border-color: #c6dfe6; }

/* ===== 商品素材选择器：按媒体项目分组 ===== */
.product-asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin-bottom: 12px; }
.product-asset-grid .product-asset-picker { margin-bottom: 0; }
.product-asset-picker { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; background: var(--surface-2); }
.product-asset-picker .field { margin-bottom: 8px; }
.product-asset-picker select[multiple] { min-height: 132px; background: var(--surface); }
.product-asset-picker optgroup { font-weight: 600; color: var(--muted); }
.project-choice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 8px; color: var(--muted); font-size: 12px; }
.project-choice-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); max-height: 128px; overflow: auto; }
.project-choice { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; font-size: 12px; }
.project-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.project-choice small { color: var(--muted); }
.product-asset-hint { margin-top: 6px; line-height: 1.5; }

/* ===== 图片大图预览 / 上传预览 ===== */
.preview-box, .upload-preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 190px; max-height: 50vh; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.preview-box img, .upload-preview img { max-width: 100%; max-height: 50vh; object-fit: contain; display: block; }
.preview-box video, .upload-preview video { max-width: 100%; max-height: 50vh; }
.upload-preview .ph { color: var(--muted); font-size: 12.5px; text-align: center; padding: 18px; }
.batch-upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); align-items: stretch; gap: 10px; padding: 10px; max-height: 360px; overflow: auto; }
.batch-upload-preview .ph { grid-column: 1 / -1; align-self: center; }
.batch-upload-item { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.batch-upload-item img { width: 100%; height: 112px; object-fit: cover; }
.batch-upload-item span, .batch-upload-item small { display: block; padding: 5px 7px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-upload-item small { padding: 2px 7px 7px; color: var(--muted); font-size: 10px; }
.upload-progress { margin: 10px 0 4px; }
/* 后台各处「建议图片尺寸」标记：上传前就能看到，选完文件还能核对实际像素 */
.img-size-hint { margin: 6px 0 2px; padding: 7px 10px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; line-height: 1.6; }
.img-size-hint strong { color: var(--accent-dark); }
.img-size-badge { margin: 0 0 12px; padding: 6px 10px; border-radius: 8px; background: var(--info-soft); border: 1px solid #d6e5f3; color: #2d5b80; font-size: 12px; line-height: 1.5; }
.img-size-badge.warn { background: var(--warn-soft); border-color: #efdfb9; color: #8a5c15; }

/* ===== 首页装修编辑器 ===== */
.homepage-editor { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 18px; align-items: start; }
.homepage-edit-stack { display: grid; gap: 14px; }
.editor-step { float: right; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.simple-image-picker { clear: both; }
.simple-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.simple-picker-head h3 { font-size: 15px; }
.simple-picker-head p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.simple-picker-grid { display: flex; flex-wrap: wrap; gap: 9px; max-height: 430px; overflow: auto; padding: 3px; }
.simple-picker-item { width: calc(33.333% - 6px); min-width: 92px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); opacity: .72; transition: .15s; }
.simple-picker-item.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); opacity: 1; }
.simple-picker-item label { display: block; cursor: pointer; position: relative; }
.simple-picker-item input { position: absolute; left: 7px; top: 7px; z-index: 2; width: 17px; height: 17px; accent-color: var(--accent); }
.simple-picker-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.simple-picker-item label > span { display: block; padding: 5px 7px; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simple-picker-order { min-height: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding: 3px 5px; border-top: 1px solid var(--line); }
.simple-picker-order b { margin-right: auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 11px; }
.simple-picker-order b:empty { display: none; }
.simple-picker-order button { width: 25px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.simple-picker-order button:disabled { opacity: .3; cursor: default; }
.sticky-preview { position: sticky; top: 86px; }
.asset-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 232px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.asset-option { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--surface-2); padding: 0; }
.asset-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-option.selected { border-color: var(--accent); }
.asset-option .tick { position: absolute; right: 4px; top: 3px; font-size: 11px; background: var(--accent); color: #fff; border-radius: 50%; width: 17px; height: 17px; line-height: 17px; text-align: center; }
.asset-option:not(.selected) .tick { display: none; }
.asset-option .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; }
.asset-option .label { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 首页装修：来自营销模板的只读主图条，避免再维护第二套选图器 */
.hero-source-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.hero-source-item { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.hero-source-item img { width: 100%; height: 74px; object-fit: cover; display: block; }
.hero-source-item .order-no { position: absolute; left: 4px; top: 4px; z-index: 2; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.hero-source-item .label { display: block; font-size: 10px; color: var(--muted); padding: 3px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-pane { position: sticky; top: 14px; }
.preview-pane .hero { margin-top: 0; }

@media (max-width: 1100px) {
  .homepage-editor { grid-template-columns: 1fr; }
  .preview-pane { position: static; }
}

@media (max-width: 980px) {
  .detail-layout { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
  .console { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding: 0 12px 0 4px; }
  .side-group, .side-foot { display: none; }
  .side-link { padding: 7px 10px; font-size: 12.5px; }
  .console-body { padding: 18px 16px 40px; }
  .console-top { padding: 0 16px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .topbar-in { gap: 5px 8px; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
  .checkout-page { width: calc(100% - 24px); padding: 12px 0 32px; }
  .checkout-nav { margin-bottom: 9px; }
  .checkout-summary-compact { padding: 13px 14px; gap: 10px; border-radius: 12px; }
  .checkout-product strong { font-size: 14px; }
  .checkout-product-image { max-height: 190px; border-radius: 10px; }
  .checkout-product-image img { max-height: 190px; }
  .checkout-total { gap: 6px; }
  .checkout-total strong { font-size: 21px; }
  .checkout-methods { padding: 14px; border-radius: 12px; }
  .checkout-section-title { margin-bottom: 10px; }
  .checkout-methods .pay-option { min-height: 56px; padding: 9px 11px; }
  .pay-brand { width: 34px; height: 34px; flex-basis: 34px; }
  .checkout-pay-btn { min-height: 46px; font-size: 14px; }
  .pay-result-card { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .pay-result-actions { width: 100%; justify-content: flex-start; }
  /* 手机首屏主视觉按 3:4 竖版展示，不加额外遮罩 */
  .hero-inner { padding: 18px 16px; max-width: 100%; }
  .hero { min-height: 0; aspect-ratio: var(--photo-ratio); max-height: 62vh; margin: 14px 0; }
  .hero h1 { font-size: clamp(20px, 6vw, 28px); }
  .hero p { font-size: 13px; max-width: 100%; }
  .hero-tags { margin-top: 12px; }
  .hero-media { object-fit: cover; object-position: center 32%; }
  .hero-art { opacity: .35; width: 70%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .project-strip, .media-grid-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* 已购内容与详情图在手机上单列全宽、高度不超过屏幕 */
  .media-grid { grid-template-columns: 1fr; gap: 12px; }
  .carousel-track img, .detail-image img, .media-item img, .media-item .ph { max-height: 62vh; }
  .hero-scrim { background: linear-gradient(100deg, var(--hero-from, rgba(0,0,0,0)) 0%, var(--hero-from, rgba(0,0,0,0)) 62%, var(--hero-to, rgba(0,0,0,0)) 100%); }
  .product-info { padding: 12px; }
  .price { font-size: 17px; }
  .section-head { margin: 22px 0 12px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .mobile-buybar { display: flex; }
  .detail-layout { padding-bottom: 78px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: 110px 1fr 70px; }
  .modal-backdrop { padding: 10px; }
}

@media (max-width: 420px) {
  .topbar-in { width: calc(100% - 16px); column-gap: 4px; }
  .nav-left a { padding: 6px 1px; font-size: 10.5px; }
  .nav-right .btn-sm { padding: 5px 7px; font-size: 11.5px; }
}

/* ===== 推广项目组：三条链接同组、按商品分类 / 项目标签整理 ===== */
.lg-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0 12px; padding: 12px 14px; }
.lg-filters .field { flex: 1 1 190px; min-width: 160px; margin: 0; }
.lg-filters .field > span { display: block; margin-bottom: 4px; }
.lg-filters .row { flex: 0 0 auto; }

/* 多条蓝色说明默认折叠成一行，不再占用首屏大块高度 */
.lg-help { margin: 10px 0 12px; border: 1px solid #d6e5f3; border-radius: 10px; background: var(--info-soft); color: #2d5b80; }
.lg-help > summary { display: flex; align-items: center; gap: 12px; padding: 8px 14px; cursor: pointer; font-size: 12.5px; font-weight: 650; list-style: none; }
.lg-help > summary::-webkit-details-marker { display: none; }
.lg-help > summary::after { content: '▾'; margin-left: auto; flex: none; }
.lg-help[open] > summary::after { content: '▴'; }
.lg-help-hint { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-help-body { display: grid; gap: 8px; padding: 0 14px 12px; }

.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; }
.lg-grid.is-compact-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
.lg-card { padding: 0; overflow: hidden; }
.lg-card.is-compact { overflow: visible; }
.lg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lg-card.is-compact .lg-head { border-radius: var(--radius) var(--radius) 0 0; }
.lg-head-main { min-width: 0; }
.lg-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; margin-bottom: 7px; }
.lg-title strong { font-weight: 650; }
.lg-head .tiny { margin-top: 3px; line-height: 1.55; }
.lg-links { padding: 4px 18px 14px; }
.lg-link { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lg-link:last-child { border-bottom: 0; }
.lg-link-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.lg-url { display: flex; gap: 6px; align-items: center; margin-bottom: 5px; }
.lg-url .input { flex: 1; min-width: 0; font-size: 12px; }
.lg-link-empty { opacity: .72; }
.lg-head .table-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 320px; }

/* 紧凑视图：卡片头两行、按钮收拢；每条链接一行，统计信息一键展开 */
.lg-card.is-compact .lg-head { align-items: center; gap: 8px; padding: 9px 12px; }
.lg-card.is-compact .lg-head-main { flex: 1 1 auto; }
.lg-card.is-compact .lg-title { flex-wrap: nowrap; overflow: hidden; font-size: 13.5px; margin-bottom: 1px; gap: 5px; }
.lg-card.is-compact .lg-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-card.is-compact .lg-title .badge { padding: 1px 6px; font-size: 11px; }
.lg-card.is-compact .lg-meta-one { margin-top: 0; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-card.is-compact .lg-actions { flex: 0 0 auto; flex-wrap: nowrap; gap: 4px; max-width: none; justify-content: flex-end; }
.lg-card.is-compact .lg-actions > .btn { padding: 3px 7px; font-size: 11.5px; border-radius: 6px; }
.lg-card.is-compact .lg-links { padding: 4px 12px 8px; }
.lg-card.is-compact .lg-link { padding: 5px 0; }
.lg-card.is-compact .lg-link.lg-row { display: grid; grid-template-columns: minmax(146px, 156px) minmax(0, 1fr); gap: 6px 8px; align-items: center; }
.lg-card.is-compact .lg-row-label { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; }
.lg-card.is-compact .lg-row-label strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lg-card.is-compact .lg-row-label .badge { padding: 1px 5px; font-size: 10.5px; }
.lg-card.is-compact .lg-url { margin: 0; gap: 4px; min-width: 0; }
.lg-card.is-compact .lg-url .input { padding: 4px 8px; font-size: 11.5px; border-radius: 7px; }
.lg-card.is-compact .lg-url .btn { padding: 3px 7px; font-size: 11.5px; border-radius: 6px; }
.lg-card.is-compact .lg-url-empty { padding-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-card.is-compact .lg-row-meta { display: none; grid-column: 2 / -1; line-height: 1.45; }
.lg-card.is-compact.show-stats .lg-row-meta { display: block; }
.lg-more { position: relative; }
.lg-more > summary { list-style: none; cursor: pointer; }
.lg-more > summary::-webkit-details-marker { display: none; }
.lg-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; display: grid; gap: 6px; min-width: 132px; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lg); }
.lg-menu .btn { width: 100%; padding: 5px 8px; font-size: 12px; }

@media (max-width: 900px) {
  .lg-grid, .lg-grid.is-compact-grid { grid-template-columns: 1fr; }
  .lg-head { flex-direction: column; }
  .lg-head .table-actions { max-width: none; justify-content: flex-start; }
  .lg-card.is-compact .lg-actions { flex-wrap: wrap; }
  .lg-card.is-compact .lg-link.lg-row { grid-template-columns: 1fr; }
  .lg-card.is-compact .lg-row-meta { grid-column: 1; }
}

/* ===== 支付与结算配置中心 ===== */
.pay-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.pay-status { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.pay-status .label { font-size: 12px; color: var(--muted); }
.pay-status .value { font-size: 17px; font-weight: 650; margin: 6px 0; }
.pay-status .hint { font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.pay-card { margin-bottom: 16px; }
.pay-card > h3 { font-size: 15px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 14px; }
.pay-h { font-size: 13px; font-weight: 650; margin: 16px 0 8px; }
.pay-h:first-child { margin-top: 0; }
.pay-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.pay-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; word-break: break-all; }
.pay-code-block { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.8; margin: 10px 0; }
.pay-kv-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pay-kv-row:last-child { border-bottom: 0; }
.pay-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); grid-column: 1 / -1; word-break: break-all; }
.pay-val { font-size: 13px; }
.pay-val .tiny { line-height: 1.55; margin-top: 3px; }
.pay-chip { display: inline-block; align-self: start; font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pay-chip.ok { background: var(--ok-soft); color: var(--ok); }
.pay-chip.todo { background: var(--warn-soft); color: var(--warn); }
.pay-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pay-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-step { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12px; line-height: 1.7; }
.pay-step strong { display: block; margin-bottom: 6px; font-size: 13px; }
.pay-guide .pay-step { min-width: 0; overflow-wrap: anywhere; }
/* 微信 Native 扫码支付 */
.pay-qr-card { margin-top: 14px; text-align: center; }
.pay-qr { display: flex; justify-content: center; align-items: center; min-height: 200px; }
.pay-qr svg { display: block; max-width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.pay-qr .empty { width: 100%; }
/* 支付场景对照卡 */
.pay-scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-scene { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 12px; line-height: 1.7; }
.pay-scene.current { border-color: var(--accent); background: var(--accent-soft); }
.pay-scene.blocked { border-color: var(--danger); }
.pay-scene h4 { font-size: 13px; margin: 0 0 6px; }
.pay-scene .tiny { margin-top: 6px; }
/* 简易收款：零配置收款码（配置中心）与结账页收款码 */
.pay-easy { border-color: var(--accent); }
.pay-easy-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; margin-top: 16px; }
.pay-qr-preview { display: flex; justify-content: center; align-items: center; min-height: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.pay-qr-preview img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; }
.pay-qr-preview .empty { width: 100%; }
.pay-field { display: block; margin-bottom: 12px; }
.pay-field > span { display: block; font-size: 12px; font-weight: 650; margin-bottom: 6px; }
.pay-field input[type="text"], .pay-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.pay-field input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.pay-qr-img { display: block; max-width: 100%; max-height: 320px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.pay-amount { margin-top: 12px; font-size: 15px; }
.pay-amount strong { font-size: 19px; color: var(--accent); }
/* 三档方案对比 */
.pay-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay-mode { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 12px; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.pay-mode.current { border-color: var(--accent); background: var(--accent-soft); }
.pay-mode strong { font-size: 13px; }
.pay-mode .pay-h { margin: 10px 0 4px; }
/* 高级设置：默认收起，避免把简单收款弄复杂 */
.pay-advanced { margin-top: 18px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px 16px; }
.pay-advanced > summary { cursor: pointer; font-size: 13px; font-weight: 650; padding: 4px 0; }
.pay-advanced[open] > summary { margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
@media (max-width: 900px) {
  .pay-status-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; gap: 10px; }
  .pay-guide { grid-template-columns: 1fr; }
  .pay-scene-grid { grid-template-columns: 1fr; }
  .pay-easy-grid { grid-template-columns: 1fr; }
  .pay-mode-grid { grid-template-columns: 1fr; }
}
