/* =========================================================
   发卡站 · 设计系统 v5 —— Aurora Deep Blue 极光深蓝（全站深色）
   底色：深海军蓝 / 氛围：蔚蓝·青·靛紫三色极光光斑
   主色：蔚蓝 #2F7DFF / CTA：蔚蓝→靛紫渐变 / 价格：极光青 #4FE0FF
   风格：深蓝底 + 极光光斑 + 玻璃拟态 + 冷白描边
   说明：v4「深空紫」主题备份在 theme-v4-space-purple.css，
        如需回滚只需把该文件复制回 style.css 并换 header 里的版本号
   ========================================================= */

:root {
  /* ---------- 品牌：极光蔚蓝 ---------- */
  --brand:        #2F7DFF;
  --brand-600:    #1B57D6;
  --brand-700:    #7FB0FF;
  --brand-glow:   rgba(47,125,255,.45);
  --brand-soft:   rgba(47,125,255,.14);
  --brand-line:   rgba(47,125,255,.32);

  /* ---------- 强调：极光靛紫（CTA 渐变另一端 / 徽标） ---------- */
  --acid:         #2F7DFF;
  --acid-2:       #7C5CFF;
  --acid-ink:     #FFFFFF;

  /* ---------- 价格 / 转化：极光青 ---------- */
  --accent:       #4FE0FF;
  --accent-2:     #7C5CFF;
  --accent-soft:  rgba(79,224,255,.14);
  --accent-line:  rgba(79,224,255,.32);

  /* ---------- 语义色（暗底适配） ---------- */
  --success:      #2DD4BF;
  --success-soft: rgba(45,212,191,.14);
  --success-line: rgba(45,212,191,.32);
  --warn:         #FFB15C;
  --warn-soft:    rgba(255,177,92,.14);
  --warn-line:    rgba(255,177,92,.32);
  --danger:       #FF6B6B;
  --danger-soft:  rgba(255,107,107,.14);
  --danger-line:  rgba(255,107,107,.32);
  --info:         #4FD8FF;
  --info-soft:    rgba(79,216,255,.14);

  /* ---------- 层级（极光深蓝） ---------- */
  --bg:           #070C18;
  --bg-2:         #0A1220;
  --bg-soft:      #101A2C;
  --surface:      #111B2E;
  --surface-2:    #17233A;
  --surface-3:    #1F2C46;
  --deep:         #00071D;

  --heading:      #EAF2FF;
  --text:         #AEBEDB;
  --muted:        #7183A6;

  --line:         rgba(255,255,255,.09);
  --line-strong:  rgba(255,255,255,.16);

  /* 兼容旧变量名（浅色版遗留引用） */
  --ink:          #EAF2FF;
  --ink-2:        #17233A;
  --card:         rgba(17,27,46,.72);
  --brand-50:     rgba(47,125,255,.14);
  --brand-100:    rgba(47,125,255,.26);

  /* ---------- v5 新增：极光辅助色 / 玻璃面 ---------- */
  --brand-2:      #1B57D6;            /* 品牌渐变深端 */
  --price:        #4FE0FF;            /* 价格专用（等同 --accent） */
  --cyan:         #4FD8FF;            /* 青：链接 hover / 成功态 */
  --cyan-soft:    rgba(79,216,255,.14);
  --violet:       #9B7CF0;            /* 靛紫：标签 / 渐变另一端 */
  --violet-2:     #7C5CFF;            /* CTA 渐变末端 */
  --violet-soft:  rgba(155,124,240,.16);
  --warm:         #FFB15C;            /* 琥珀：仅用于待支付 / 库存紧张徽章 */
  --teal:         #2DD4BF;            /* 已支付 / 已完成 */
  --slate:        #64748B;            /* 已关闭 / 失效 */
  --card-solid:   #111B2E;            /* 需要不透明时的卡片面 */
  --card-2:       #17233A;            /* hover / 嵌套层 */
  --grad-brand:   linear-gradient(120deg, #2F7DFF 0%, #7C5CFF 100%);

  /* ---------- 形状 ---------- */
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  26px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 2px 6px rgba(0,0,0,.45), 0 12px 30px -14px rgba(0,0,0,.8);
  --shadow-lg: 0 4px 10px rgba(0,0,0,.5), 0 26px 56px -20px rgba(0,0,0,.9);
  --shadow-brand: 0 10px 26px -8px var(--brand-glow);
  --shadow-accent: 0 10px 26px -8px rgba(79,224,255,.40);

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* 全站背景：单层固定极光渐变，无网格、无叠加层、不随滚动 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text); line-height: 1.65; font-size: 15px;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(58vw 46vw at 12% 4%,  rgba(47,125,255,.26), transparent 60%),
    radial-gradient(46vw 40vw at 86% 12%, rgba(141,109,184,.20), transparent 60%),
    radial-gradient(62vw 50vw at 54% 96%, rgba(45,200,255,.13), transparent 62%),
    linear-gradient(180deg, #080E1C 0%, var(--bg) 42%, #060A14 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { color: var(--heading); margin: 0; font-weight: 700; letter-spacing: -.01em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 13px; }
.text-danger { color: var(--danger); }

/* 深色滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(47,125,255,.26); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(47,125,255,.45); background-clip: content-box; }

/* =========================================================
   顶部导航（玻璃拟态）
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,14,28,.56);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--heading); font-size: 17.5px; flex-shrink: 0; letter-spacing: -.02em; }
.brand-mark {
  width: 33px; height: 33px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #4FD8FF 0%, var(--brand) 45%, #9B7CF0 135%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px -6px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-mark svg { width: 18px; height: 18px; }
/* 站点图标：后台配置了 Logo 时用图片铺满方块（去渐变底、按圆角裁切） */
.brand-mark.has-img { background: none; overflow: hidden; padding: 0; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 后台「站点图标」设置项的预览行 */
.brand-cur { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.brand-cur .muted { font-size: 12.5px; color: var(--muted); }
.fav-preview { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,.06); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 7px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text); font-weight: 500; transition: .15s; }
.nav-links a:hover { background: var(--brand-soft); color: var(--cyan); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 9px; }

.nav-search { position: relative; }
.nav-search input {
  width: 210px; padding: 8px 12px 8px 34px; font-size: 13.5px; font-family: inherit;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.07); color: var(--heading); outline: none; transition: .18s;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { background: rgba(255,255,255,.11); box-shadow: 0 0 0 3px var(--brand-soft); width: 250px; }
.nav-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }

/* =========================================================
   Hero —— 与页面融合的极光光幕
   ========================================================= */
/* Hero —— 完全透明，让全站背景直接透出，不做二次叠加 */
.hero {
  position: relative;
  padding: 62px 0 54px;
}
.hero-inner { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { font-size: 36px; line-height: 1.28; letter-spacing: -.03em; color: #fff; }
/* 专用横幅（后台可上传横幅图 + 标题/副标题/按钮） */
.hero-banner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 34px 20px; border-radius: var(--r-lg); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-banner h1 { margin: 0; font-size: 36px; line-height: 1.28; letter-spacing: -.03em; color: #fff; }
.hero-banner .slogan { margin: 0; font-size: 16px; color: #C6D8F5; max-width: 760px; }
.hero-banner.has-img { min-height: 240px; }
.hero-banner.has-img h1, .hero-banner.has-img .slogan { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
@media (max-width: 640px) { .hero-banner { padding: 24px 14px; } .hero-banner h1 { font-size: 26px; } .hero-banner.has-img { min-height: 180px; } }
/* 后台「首页 Hero 实时预览」容器：深色底 + 虚线框，内部复用前台 .hero-banner/.hero-badges 样式 */
.hero-preview { background: #0A1220; border-radius: var(--r-lg); padding: 18px 14px; border: 1px dashed rgba(255,255,255,.16); overflow: hidden; }
.hero-preview .hero-banner h1 { font-size: 30px; }
.hero-preview .hero-banner .slogan { font-size: 15px; }
.hero-preview .hp-default { text-align: center; padding: 18px 10px; }
.hero-preview .hp-default h1 { color: #fff; font-size: 30px; margin: 0; letter-spacing: -.02em; }
.hero-preview .hp-default .slogan { color: #C6D8F5; margin: 6px 0 0; font-size: 15px; }
.hero-preview .hero-badges { justify-content: center; }
.hero-preview .hero-custom { color: #DCE8FA; font-size: 14px; }

/* ===== 售后/工单（support.php）+ 导航下拉 ===== */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop-menu { position: absolute; top: 100%; left: 0; min-width: 252px; background: #0E1730; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 8px; margin-top: 8px; display: none; box-shadow: 0 18px 44px -14px rgba(0,0,0,.75); z-index: 60; }
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 9px 12px; border-radius: 8px; white-space: nowrap; font-size: 13.5px; }
.nav-drop-menu a:hover { background: rgba(255,255,255,.07); }
.sup-hero { padding: 30px 0 6px; }
.sup-hero h1 { color: #fff; font-size: 27px; margin: 0 0 8px; letter-spacing: -.02em; }
.sup-hero p { color: var(--muted); margin: 0; font-size: 14px; }
.sup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
@media (max-width: 820px) { .sup-grid { grid-template-columns: 1fr; } }
.steps-ol { counter-reset: s; list-style: none; padding: 0; margin: 8px 0 0; }
.steps-ol li { counter-increment: s; position: relative; padding: 7px 0 7px 34px; font-size: 13.5px; }
.steps-ol li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(79,224,255,.14); color: #4FE0FF; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.kv { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.10); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv b { color: var(--muted); font-weight: 600; min-width: 84px; flex-shrink: 0; }
.ts { display: inline-flex; align-items: center; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.ts-0 { background: rgba(255,177,92,.16); color: #FFB15C; }
.ts-1 { background: rgba(79,224,255,.16); color: #4FE0FF; }
.ts-2 { background: rgba(94,234,212,.16); color: #5EEAD4; }
.ts-3 { background: rgba(255,255,255,.10); color: var(--muted); }
.tk-card { border: 1px solid rgba(255,255,255,.10); border-radius: var(--r); padding: 14px 16px; margin-top: 14px; }
.tk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tk-body { background: rgba(255,255,255,.04); border-radius: 10px; padding: 11px 14px; margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.tk-reply { border-left: 3px solid #4FE0FF; background: rgba(79,224,255,.06); border-radius: 0 10px 10px 0; padding: 10px 14px; margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.hero .slogan { margin: 13px 0 0; font-size: 15.5px; color: rgba(234,242,255,.80); max-width: 560px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.08);
  color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-badge svg { width: 14px; height: 14px; color: var(--cyan); }

/* Hero 自定义富文本（后台「首页横幅内容」）：图文/视频自适应排版 */
.hero-custom { color: rgba(234,242,255,.86); font-size: 15.5px; line-height: 1.75; }
.hero-custom h1, .hero-custom h2, .hero-custom h3, .hero-custom h4 { color: #fff; letter-spacing: -.02em; margin: 0 0 10px; }
.hero-custom h1 { font-size: 36px; } .hero-custom h2 { font-size: 28px; } .hero-custom h3 { font-size: 21px; } .hero-custom h4 { font-size: 17px; }
.hero-custom p { margin: 0 0 10px; }
.hero-custom a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.hero-custom img { max-width: 100%; height: auto; border-radius: var(--r, 12px); display: inline-block; }
.hero-custom iframe { max-width: 100%; border: 0; border-radius: var(--r, 12px); aspect-ratio: 16 / 9; width: 100%; max-height: 420px; }
.hero-custom video { max-width: 100%; border-radius: var(--r, 12px); }
.hero-custom blockquote { margin: 10px 0; padding: 8px 16px; border-left: 3px solid var(--cyan); background: rgba(255,255,255,.05); border-radius: 8px; }
.hero-custom ul, .hero-custom ol { margin: 0 0 10px; padding-left: 22px; }
.hero-custom hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 16px 0; }

/* 旧类名兼容 */
.site-header { background: linear-gradient(120deg, #0A1220 0%, var(--brand) 130%); color: #fff; padding: 26px 0; }
.site-header .logo { margin: 0; font-size: 25px; font-weight: 800; }
.site-header .slogan { margin: 6px 0 0; opacity: .9; font-size: 14px; }

/* =========================================================
   分类筛选
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 0 4px; }
.filter-chip {
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,.06); border: 0; color: var(--text); transition: .16s;
}
.filter-chip:hover { color: var(--cyan); background: rgba(47,125,255,.14); }
.filter-chip.active {
  background: linear-gradient(120deg, var(--brand), var(--violet-2));
  color: #fff; box-shadow: var(--shadow-brand);
}
.filters .count-note { margin-left: auto; font-size: 13px; color: var(--muted); }

/* #24 首页公告条 */
.announce-bar {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 2px;
  padding: 11px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5;
  color: var(--warn, #FFB15C);
  background: linear-gradient(120deg, rgba(255,177,92,.14), rgba(47,125,255,.10));
  border: 1px solid var(--warn-line, rgba(255,177,92,.32));
}
.announce-bar svg { flex: none; color: var(--warn, #FFB15C); }

/* #15 移动端：窄屏下商品网格与仪表盘单列、筛选条换行 */
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .filters { padding: 14px 0 4px; }
  .filter-chip { padding: 6px 12px; font-size: 13px; }
  .filters .count-note { width: 100%; margin: 4px 0 0; }
  .stats { grid-template-columns: repeat(2, 1fr) !important; }
  .dash-grid { grid-template-columns: 1fr !important; }
  .product-detail { grid-template-columns: 1fr !important; }
}

/* =========================================================
   商品网格 / 卡片
   ========================================================= */
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 0; }
.section-title h2 { font-size: 19px; }
.section-title .line { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; padding: 18px 0 8px; }
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(28,43,70,.60) 0%, rgba(12,21,37,.50) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 0;
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 44px -28px rgba(0,0,0,.95);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 62px -28px var(--brand-glow);
}
.card-cover {
  aspect-ratio: 4/3; background: linear-gradient(135deg, #16233D 0%, #0D1626 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.card-cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(7,12,24,.62) 100%);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.cover-ph { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.cover-icon { width: 46px; height: 46px; opacity: .5; color: var(--brand-700); }

.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(7,12,24,.80); color: #C6D8F5;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card-badge.file { color: #8FD8FF; }
.card-badge.link { color: #C3B0FF; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; }
.card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.price { color: var(--price); font-weight: 800; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(79,224,255,.35); }
.price small { font-size: 12px; font-weight: 700; margin-right: 1px; }
.stock { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-cta {
  font-size: 12.5px; font-weight: 800; color: var(--acid-ink); padding: 6px 13px; border-radius: 999px;
  background: linear-gradient(120deg, var(--acid), var(--acid-2)); white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(47,125,255,.5);
}
.card:hover .card-cta { filter: brightness(1.06); box-shadow: 0 8px 22px -6px rgba(124,92,255,.65); }
.card.is-out { opacity: .58; }
.card.is-out .card-cta { background: var(--surface-3); color: var(--muted); box-shadow: none; }

.stock-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.stock-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--violet-2)); box-shadow: 0 0 10px var(--brand-glow); }
.stock-bar i.low { background: linear-gradient(90deg, var(--warn), #FF8F6B); box-shadow: 0 0 10px rgba(255,177,92,.5); }
.stock-bar i.out { background: var(--line-strong); box-shadow: none; }

/* =========================================================
   商品详情
   ========================================================= */
.page { padding: 26px 0 8px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb svg { width: 13px; height: 13px; opacity: .6; }

.product-detail {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 30px;
  background: linear-gradient(180deg, var(--card) 0%, rgba(10,18,32,.70) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 0; border-radius: var(--r-xl);
  padding: 24px; box-shadow: var(--shadow); margin-top: 14px;
}
.product-detail .cover {
  background: linear-gradient(135deg, #16233D, #0D1626); border-radius: var(--r-lg);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-detail .cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; padding: 18px; gap: 20px; } }

/* 商品图集画廊 */
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main {
  position: relative; background: linear-gradient(135deg, #16233D, #0D1626);
  border-radius: var(--r-lg); aspect-ratio: 4/3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 0;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.gallery-main img.fading { opacity: 0; }
.gallery-count {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 11px; border-radius: 999px;
  background: rgba(0,7,29,.72); color: #fff; font-size: 12px; letter-spacing: .03em;
  backdrop-filter: blur(8px); pointer-events: none;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery-thumbs .thumb {
  padding: 0; margin: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: var(--bg-soft); cursor: pointer;
  aspect-ratio: 1; line-height: 0; transition: transform .15s ease, border-color .15s ease;
}
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .thumb:hover { transform: translateY(-2px); }
.gallery-thumbs .thumb.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), 0 0 18px var(--brand-glow); }
@media (max-width: 520px) { .gallery-thumbs { grid-template-columns: repeat(4, 1fr); } }

/* 后台图片选择器 */
.img-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.img-thumb { position: relative; display: block; cursor: pointer; line-height: 0; }
.img-thumb input { position: absolute; top: 6px; left: 6px; z-index: 2; width: 15px; height: 15px; accent-color: var(--brand); }
.img-thumb img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; }
.img-thumb input:checked + img { border-color: var(--brand); }
.img-thumb .idx { position: absolute; right: 5px; bottom: 5px; font-size: 11px; line-height: 1; color: #fff; background: rgba(0,7,29,.72); padding: 3px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); }

.pd-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.pd-title { font-size: 24px; line-height: 1.35; }
.pd-desc { margin: 14px 0 0; color: var(--text); font-size: 14.5px; white-space: pre-wrap; }

.pd-pricebox {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent-soft), rgba(47,125,255,.08));
  border: 1px solid var(--accent-line); border-radius: var(--r); padding: 14px 16px; margin: 16px 0 14px;
}
.pd-pricebox .price { font-size: 28px; }
.pd-pricebox .price small { font-size: 15px; }

.steps-mini { display: flex; align-items: center; gap: 6px; padding: 14px 0 4px; }
.steps-mini .s { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.steps-mini .s b { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-700); font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.steps-mini .sep { width: 22px; height: 1px; background: var(--line-strong); }

/* 表单 & 按钮 */
.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 0; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: rgba(255,255,255,.06); outline: none;
  transition: .16s; color: var(--heading);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { background: var(--surface-2); color: var(--heading); }
.field input:focus, .field textarea:focus, .field select:focus { background: rgba(47,125,255,.12); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input[type=checkbox] { width: auto; accent-color: var(--brand); }
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field input[type=file] { padding: 9px 12px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(120deg, #2F7DFF 0%, #7C5CFF 100%); color: #fff;
  border: none; padding: 12px 22px; border-radius: 11px; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.22);
  transition: .18s; font-family: inherit;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(47,125,255,.55), inset 0 1px 0 rgba(255,255,255,.22); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 13px; }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--brand-700); border: 0; box-shadow: none; }
.btn-ghost:hover { background: var(--brand-soft); transform: none; }
.btn[disabled], .btn.disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; cursor: not-allowed; }

/* =========================================================
   收银台
   ========================================================= */
.checkout-wrap { max-width: 470px; margin: 30px auto; }
.stepbar { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 20px; }
.stepbar .st { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.stepbar .st b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.06); color: var(--muted); font-weight: 700; }
.stepbar .st.on { color: var(--heading); font-weight: 700; }
.stepbar .st.on b { background: linear-gradient(120deg, var(--brand), var(--violet-2)); color: #fff; box-shadow: var(--shadow-brand); }
.stepbar .st.done b { background: linear-gradient(120deg, var(--teal), #5EEAD4); color: #052B2A; }
.stepbar .bar { width: 34px; height: 2px; background: var(--line-strong); border-radius: 2px; }

.checkout {
  background: linear-gradient(180deg, var(--card) 0%, rgba(10,18,32,.70) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 0; border-radius: var(--r-xl);
  padding: 26px; box-shadow: var(--shadow-lg); text-align: center;
}
.checkout h2 { font-size: 19px; }
.co-amt { font-size: 34px; font-weight: 800; color: var(--price); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 10px 0 2px; text-shadow: 0 0 26px rgba(79,224,255,.4); }
.co-amt small { font-size: 17px; font-weight: 700; }
.co-meta { font-size: 13px; color: var(--muted); }
.co-coupon { display:inline-block; margin:4px 0 2px; padding:4px 10px; border-radius:999px; font-size:13px; font-weight:700; color:#5EEAD4; background:var(--success-soft); border:1px solid var(--success-line); }

/* 二维码必须保持白底，否则手机扫不出来 */
.qr {
  margin: 20px auto 14px; width: 224px; height: 224px; padding: 10px; background: #fff;
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 64px -10px var(--brand-glow);
  position: relative;
}
.qr img { max-width: 100%; }
.qr-scan { position: absolute; inset: 10px; border-radius: 12px; pointer-events: none; overflow: hidden; }
.qr-scan::after {
  content: ''; position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(47,125,255,.20), transparent);
  animation: scanline 2.4s ease-in-out infinite;
}
@keyframes scanline { 0%{top:-34%} 100%{top:100%} }

.pay-tips { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--brand-700); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; padding: 7px 14px; margin-top: 4px; font-weight: 600; }
.pay-tips svg { width: 14px; height: 14px; }
.copy-line { font-size: 11.5px; color: var(--muted); word-break: break-all; background: rgba(0,0,0,.28); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 9px 10px; margin-top: 12px; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--success-soft); color: #5EEAD4; border: 1px solid var(--success-line); font-weight: 700; }
.tag.test { background: var(--warn-soft); color: var(--warm); border-color: var(--warn-line); }

.co-status { margin-top: 16px; padding: 12px; border-radius: var(--r); background: var(--brand-soft); border: 1px solid var(--brand-line); font-size: 13.5px; color: var(--brand-700); display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(47,125,255,.28); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.co-trust { display: flex; justify-content: center; gap: 16px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.co-trust span { display: inline-flex; align-items: center; gap: 4px; }
.co-trust svg { width: 12px; height: 12px; color: var(--success); }

/* =========================================================
   订单结果 / 发货
   ========================================================= */
.result-wrap { max-width: 600px; margin: 30px auto; }
.result-head { text-align: center; padding: 26px 0 22px; }
.result-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), #5EEAD4); color: #052B2A;
  box-shadow: 0 10px 30px -8px rgba(45,212,191,.6), 0 0 0 8px rgba(45,212,191,.10);
  animation: pop .45s cubic-bezier(.2,1.3,.4,1) both;
}
.result-icon svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.5); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.result-head h2 { font-size: 22px; }
.result-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.deliver {
  background: linear-gradient(180deg, rgba(47,125,255,.12), rgba(47,125,255,.03));
  border: 1px solid var(--brand-line);
  border-radius: var(--r-lg); padding: 18px; margin-top: 4px;
  box-shadow: 0 10px 34px -18px var(--brand-glow);
}
.deliver-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.deliver-head strong { font-size: 14.5px; color: var(--heading); }
.deliver .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px;
  background: rgba(0,0,0,.34); border: 1px solid var(--brand-line); border-radius: 10px; padding: 12px 14px;
  margin: 8px 0; word-break: break-all; color: #DCE8FA; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.code-copy { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(120deg, var(--brand), var(--violet-2)); border: none; padding: 6px 13px; border-radius: 8px; cursor: pointer; font-family: inherit; transition: .15s; box-shadow: 0 6px 14px -8px var(--brand-glow); }
.code-copy:hover { filter: brightness(1.1); }
.deliver a.dl {
  display: flex; align-items: center; gap: 8px; color: var(--brand-700); font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid var(--brand-line); border-radius: 10px; padding: 11px 14px; margin: 8px 0; word-break: break-all; transition: .15s;
}
.deliver a.dl:hover { background: var(--brand-soft); border-color: var(--brand); }
.dl-block { margin-top: 14px; }
.dl-label { font-size: 12px; color: rgba(234,242,255,.6); margin: 14px 0 8px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.order-meta .m { flex: 1; min-width: 130px; background: var(--surface); border: 0; border-radius: var(--r); padding: 11px 13px; }
.order-meta .m .k { font-size: 12px; color: var(--muted); }
.order-meta .m .v { font-size: 13.5px; color: var(--heading); font-weight: 600; word-break: break-all; }

.notice {
  display: flex; align-items: flex-start; gap: 9px; background: var(--warn-soft); border: 1px solid var(--warn-line);
  color: var(--warn); border-radius: var(--r); padding: 11px 14px; font-size: 13.5px; margin: 14px 0;
}
.notice svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }

/* 支付宝一键自检结果 */
.check-result { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.check-result.ok  { border-color: var(--success-line); background: var(--success-soft); }
.check-result.bad { border-color: var(--warn-line);    background: var(--warn-soft); }
.check-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--heading); }
.check-detail { color: var(--muted); line-height: 1.6; font-size: 13px; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty svg { width: 62px; height: 62px; opacity: .3; margin-bottom: 14px; color: var(--brand-700); }
.empty p { margin: 0 0 4px; font-size: 15px; color: var(--text); font-weight: 600; }
.empty small { font-size: 13px; }

/* =========================================================
   页脚
   ========================================================= */
.site-footer { margin-top: 46px; padding: 34px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--heading); margin-bottom: 8px; font-size: 15.5px; }
.foot-col h4 { font-size: 13.5px; margin-bottom: 10px; }
.foot-col a, .foot-col p { display: block; font-size: 13px; color: var(--muted); padding: 3px 0; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom { margin-top: 30px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* =========================================================
   后台
   ========================================================= */
.admin-wrap { display: flex; min-height: 100vh; background: transparent; }
.admin-side {
  width: 218px; background: rgba(9,16,31,.60);
  display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.admin-side .side-head { padding: 18px 20px; }
.admin-side h2 { font-size: 15px; padding: 0; margin: 0; border: none; display: flex; align-items: center; gap: 9px; }
.admin-side .side-nav { padding: 12px; flex: 1; overflow-y: auto; }
.admin-side a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--text); font-size: 14px; margin-bottom: 2px; transition: .15s; font-weight: 500;
}
.admin-side a svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.admin-side a:hover { background: rgba(255,255,255,.05); color: var(--heading); }
.admin-side a:hover svg { color: var(--brand); }
.admin-side a.active { background: linear-gradient(120deg, rgba(47,125,255,.22), rgba(124,92,255,.16)); color: #DCE8FF; font-weight: 700; }
.admin-side a.active svg { color: var(--brand-700); }
.side-foot { padding: 16px 12px; }
.side-foot a { color: var(--muted); font-size: 13.5px; }

.admin-main { flex: 1; padding: 0; overflow: auto; min-width: 0; }
.admin-top {
  background: rgba(9,16,31,.56); padding: 16px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.admin-top h1 { font-size: 18px; }
.admin-top .crumb { font-size: 12.5px; color: var(--muted); }
.admin-body { padding: 22px 26px 40px; }
@media (max-width: 900px) {
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; }
  .admin-side .side-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .admin-side a { margin: 0; padding: 8px 12px; }
  .side-foot { display: none; }
  .admin-body, .admin-top { padding-left: 16px; padding-right: 16px; }
}

.panel { background: linear-gradient(180deg, var(--card) 0%, rgba(10,18,32,.70) 100%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 0; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-xs); margin-bottom: 18px; }
.panel > h3 { font-size: 15.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.panel > h3 + .panel-sub { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.panel > h3 svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--cyan); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { font-size: 15.5px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px,1fr)); gap: 14px; }
.stat {
  background: linear-gradient(180deg, var(--card) 0%, rgba(10,18,32,.70) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 0; border-radius: var(--r-lg); padding: 17px 18px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-xs); transition: .18s;
}
.stat:hover { box-shadow: 0 18px 38px -22px var(--brand-glow); border-color: var(--brand-line); }
.stat .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.stat .ico svg { width: 20px; height: 20px; }
.stat .ico.v { background: linear-gradient(135deg, var(--brand), var(--violet-2)); box-shadow: 0 8px 18px -8px var(--brand-glow); }
.stat .ico.green { background: linear-gradient(135deg, #14B8A6, #5EEAD4); box-shadow: 0 8px 18px -8px rgba(45,212,191,.6); }
.stat .ico.amber { background: linear-gradient(135deg, var(--warn), #FFCB85); box-shadow: 0 8px 18px -8px rgba(255,177,92,.6); }
.stat .ico.rose  { background: linear-gradient(135deg, #2F7DFF, #7C5CFF); box-shadow: 0 8px 18px -8px rgba(47,125,255,.6); }
.stat .n { font-size: 23px; font-weight: 800; color: var(--heading); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 12.5px; }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.tbl th, table.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.tbl th { background: rgba(255,255,255,.035); color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
table.tbl th:first-child { border-top-left-radius: 10px; }
table.tbl th:last-child { border-top-right-radius: 10px; }
table.tbl tbody tr:hover td { background: rgba(47,125,255,.06); }
table.tbl tbody tr:last-child td { border-bottom: none; }
.row-actions a { margin-right: 10px; color: var(--brand-700); font-weight: 500; white-space: nowrap; }
.row-actions a:hover { text-decoration: underline; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge.ok   { background: var(--success-soft); color: #5EEAD4; border: 1px solid var(--success-line); }
.badge.wait { background: var(--warn-soft); color: var(--warm); border: 1px solid var(--warn-line); }
.badge.off  { background: rgba(255,255,255,.10); color: var(--muted); }
.badge.brand{ background: var(--brand-soft); color: var(--brand-700); border: 1px solid var(--brand-line); }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; }
.login-box {
  position: relative; z-index: 2; width: 100%; max-width: 372px;
  background: rgba(20,32,55,.72); border-radius: var(--r-xl);
  padding: 30px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.login-box .lg-head { text-align: center; margin-bottom: 22px; }
.login-box .lg-head .brand-mark { width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 12px; }
.login-box .lg-head h2 { font-size: 19px; }
.login-box .lg-head p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }

.alert { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: 13.5px; }
.alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.alert.err { background: var(--danger-soft); color: #FF9B9B; border: 1px solid var(--danger-line); }
.alert.ok  { background: var(--success-soft); color: #5EEAD4; border: 1px solid var(--success-line); }
.alert.warn { background: rgba(255, 196, 87, 0.10); color: #FFD58A; border: 1px solid rgba(255, 196, 87, 0.35); }

.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(20,32,55,.94); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.9);
  animation: toastIn .25s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

@media (max-width: 640px) {
  .hero { padding: 40px 0 34px; }
  .hero h1 { font-size: 27px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .card-body { padding: 11px 12px 13px; }
  .card-body h3 { font-size: 14px; min-height: 40px; }
  .card-desc { display: none; }
  .price { font-size: 17px; }
  .nav-search { display: none; }
  /* 窄屏不再隐藏导航（否则手机上「售后和反馈」等入口会消失）：改为换行铺满一整行 */
  .nav .nav-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  .nav-links { display: flex; order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 13.5px; }
  .pd-title { font-size: 20px; }
  .qr { width: 200px; height: 200px; }
  .container { padding: 0 14px; }
}

/* =========================================================
   富文本编辑器（商品详情）· v6 极简风
   ========================================================= */
.rt-wrap { position: relative; }
.rt-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px;
  padding: 8px; background: var(--bg-soft); border-radius: 10px 10px 0 0;
}
.rt-toolbar.rt-busy { opacity: .6; pointer-events: none; }
.rt-btn {
  min-width: 30px; height: 30px; padding: 0 9px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font-size: 13px; cursor: pointer;
  transition: background .15s, color .15s; white-space: nowrap;
}
.rt-btn:hover { background: var(--surface-3); color: var(--heading); }
.rt-btn.on { background: var(--brand-soft); color: var(--brand-700); }
.rt-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.rt-editor {
  min-height: 260px; max-height: 520px; overflow-y: auto;
  padding: 14px 16px; background: var(--surface); border-radius: 0 0 10px 10px;
  color: var(--text); font-size: 14.5px; line-height: 1.85; outline: 0;
}
.rt-editor:focus { box-shadow: 0 0 0 2px var(--brand-soft); border-radius: 0 0 10px 10px; }
.rt-editor:empty:before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.rt-editor img, .rt-editor video, .rt-editor iframe {
  max-width: 100%; border-radius: 10px; margin: 8px 0;
}
.rt-editor blockquote {
  margin: 10px 0; padding: 8px 14px; background: var(--bg-soft);
  border-left: 3px solid var(--brand); border-radius: 8px; color: var(--muted);
}
.rt-dialog {
  position: fixed; z-index: 90; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 12px; background: var(--surface-2); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.rt-dialog-title { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }

/* 前台商品详情排版 */
.rich-desc { font-size: 14.5px; color: var(--text); line-height: 1.85; }
.rich-desc img, .rich-desc video, .rich-desc iframe {
  max-width: 100%; border-radius: 12px; margin: 10px 0;
}
.rich-desc h3, .rich-desc h4 { color: var(--heading); margin: 18px 0 8px; }
.rich-desc ul, .rich-desc ol { padding-left: 22px; margin: 8px 0; }
.rich-desc li { margin: 3px 0; }
.rich-desc blockquote {
  margin: 10px 0; padding: 8px 14px; background: var(--bg-soft);
  border-left: 3px solid var(--brand); border-radius: 8px; color: var(--muted);
}
.rich-desc a { color: var(--cyan); }
.rich-desc hr { border: 0; height: 1px; background: var(--line); margin: 16px 0; }
