/* =========================================================
   Blissspray — storefront design system
   ========================================================= */

:root {
  /* 主色取自产品实拍蓝（宝蓝 → 深藏蓝），与包装、机身同色系 */
  --ink: #0d1a33;
  --ink-2: #2b3952;
  --muted: #67748c;
  --line: #dfe6f2;
  --line-2: #edf2f9;
  --bg: #f7f9fd;
  --surface: #ffffff;
  --sand: #edf3fd;
  --accent: #1447d6;
  --accent-dark: #0e33a3;
  --accent-bright: #2f6bff;
  --accent-soft: #e7eefc;
  --accent-grad: linear-gradient(135deg, #1a52e0 0%, #10329f 100%);
  --gold: #c0a05b;
  --ok: #1f7a55;

  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(13, 26, 51, .05);
  --shadow: 0 12px 32px -12px rgba(13, 26, 51, .18);
  --shadow-l: 0 32px 80px -32px rgba(13, 26, 51, .3);

  /* 正文/引用用系统衬线，界面标题统一无衬线，接近专业护理品牌的观感 */
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.024em;
  margin: 0;
}

p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { color: var(--muted); font-size: 17px; line-height: 1.7; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
/* 注意：渐变放在 CSS 变量里，个别浏览器（尤其 iOS Safari）解析会失败，
   那样 background 会整条失效、露出白底 + 白字 = 按钮像空的一样。
   所以先用 background-color 兜一个实色，再叠渐变，文字色永远压得住。 */
.btn-primary {
  background-color: #1447d6;
  background-image: linear-gradient(135deg, #1a52e0 0%, #10329f 100%);
  color: #fff;
  -webkit-text-fill-color: currentColor;
}
.btn-primary:hover {
  background-color: #0e33a3;
  background-image: linear-gradient(135deg, #1749c9 0%, #0a2a8a 100%);
  box-shadow: 0 14px 30px -14px rgba(20, 71, 214, .62);
}
.btn-accent {
  background-color: #1740c4;
  background-image: linear-gradient(135deg, #1c50d8 0%, #0d2f9e 100%);
  color: #fff;
  -webkit-text-fill-color: currentColor;
}
.btn-accent:hover {
  background-color: #0e33a3;
  background-image: linear-gradient(135deg, #1747c8 0%, #0a2680 100%);
  box-shadow: 0 14px 30px -14px rgba(20, 71, 214, .62);
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(13, 26, 51, .16); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: gap .25s var(--ease), color .25s;
}
.link-arrow:hover { gap: 14px; color: var(--accent); }

/* ---------- announcement + header ---------- */
.announce {
  background: linear-gradient(90deg, #0c2b7d 0%, #1447d6 52%, #0c2b7d 100%);
  color: #eaf1ff;
  font-size: 12px;
  letter-spacing: .06em;
  text-align: center;
  padding: 9px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 249, 253, .84);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-color: var(--line); background: rgba(247, 249, 253, .95); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; height: 74px;
}
.brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 23px; letter-spacing: -.035em; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.brand em { font-style: normal; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s; position: relative;
}
.icon-btn:hover { background: rgba(13, 26, 51, .06); }
.icon-btn svg { width: 19px; height: 19px; stroke-width: 1.6; }
.cart-count {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.lang-pick {
  height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-size: 12px; letter-spacing: .02em;
}
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 84% 12%, rgba(47, 107, 255, .12) 0%, rgba(47, 107, 255, 0) 68%),
    radial-gradient(620px 380px at 6% 92%, rgba(20, 71, 214, .07) 0%, rgba(20, 71, 214, 0) 70%),
    linear-gradient(180deg, #f4f7fe 0%, var(--bg) 78%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px;
  align-items: center; padding: 68px 0 46px;
}
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); margin: 18px 0 22px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .04em; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

.hero-visual { position: relative; }
.hero-shot {
  position: relative; border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(150deg, #dde8fb 0%, #eef4fd 58%, #ffffff 100%);
  box-shadow: 0 40px 90px -42px rgba(13, 26, 51, .4), 0 0 0 1px rgba(20, 71, 214, .07);
  aspect-ratio: 1 / 1;
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 16px; font-size: 12px; line-height: 1.4;
  border: 1px solid rgba(20, 71, 214, .08);
}
.hero-badge b { display: block; font-family: var(--sans); font-weight: 700; font-size: 17px; }
.hero-badge.b1 { left: -18px; bottom: 84px; }
.hero-badge.b2 { right: -10px; top: 64px; }

/* 中文标题字面更宽、行高需求更大，单独收敛字号与行距 */
html[lang="zh-CN"] .hero h1 { font-size: clamp(34px, 4.3vw, 52px); line-height: 1.24; letter-spacing: -.02em; }
html[lang="zh-CN"] .section-head h2 { letter-spacing: -.018em; }
html[lang="zh-CN"] .section-head h2,
html[lang="zh-CN"] .blog-hero h1 { line-height: 1.26; }
/* 中文标题字数多，收小字号避免在词中间断行 */
html[lang="zh-CN"] .article-head h1 { font-size: clamp(26px, 2.9vw, 36px); line-height: 1.32; letter-spacing: -.01em; }
html[lang="zh-CN"] .blog-hero h1 { font-size: clamp(28px, 3.4vw, 42px); }
html[lang="zh-CN"] .article-body h2 { font-size: 24px; line-height: 1.4; }
html[lang="zh-CN"] .article-body h3 { font-size: 19px; }

/* ---------- trust ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 22px; display: flex; gap: 13px; align-items: flex-start; }
.trust-item + .trust-item { border-left: 1px solid var(--line-2); }
.trust-item svg { width: 20px; height: 20px; stroke-width: 1.4; color: var(--gold); flex: none; margin-top: 3px; }
.trust-item b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.trust-item span { font-size: 12px; color: var(--muted); }

/* ---------- section ---------- */
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 12px 0 10px; }
.section-head .lede { max-width: 52ch; }

/* ---------- product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
  background: var(--surface); border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line-2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.tag {
  position: absolute; top: 14px; left: 14px; background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
}
.tag.sale { background: var(--accent); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.card-body .sub { font-size: 13px; color: var(--muted); }
.card-price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 14px; }
.card-price .now { font-size: 16px; font-weight: 600; }
.card-price .was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card-price .off { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { border-radius: var(--radius-l); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; gap: 26px; margin-top: 32px; }
.feature { display: flex; gap: 16px; }
.feature-num {
  font-family: var(--serif); font-size: 13px; color: var(--accent);
  width: 26px; flex: none; padding-top: 2px; letter-spacing: .04em;
}
.feature b { display: block; font-size: 15px; margin-bottom: 3px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.step { background: var(--surface); padding: 34px 28px; }
.step-num { font-family: var(--sans); font-weight: 800; font-size: 38px; color: #fff; line-height: 1; -webkit-text-stroke: 1.4px rgba(20, 71, 214, .38); }
.step h3 { font-size: 18px; margin: 14px 0 7px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- journal ---------- */
.grid-journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-cover {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0a1a3a 0%, #10307f 58%, #1a52e0 100%);
  display: flex; align-items: flex-end; padding: 20px;
}
.post-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 82% at 84% 6%, rgba(47, 107, 255, .6) 0%, rgba(47, 107, 255, 0) 62%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .055) 0 1px, rgba(255, 255, 255, 0) 1px 10px);
}
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* 无封面图时按卡片顺序换一档蓝，避免三张纯色块看起来重复 */
.grid-journal .post-card:nth-child(3n+2) .post-cover { background: linear-gradient(135deg, #0a2f56 0%, #14588f 58%, #1f8ad0 100%); }
.grid-journal .post-card:nth-child(3n+3) .post-cover { background: linear-gradient(135deg, #101c4d 0%, #26307f 55%, #4352c8 100%); }
.post-list .post-row:nth-child(2n) .post-cover { background: linear-gradient(135deg, #0a2f56 0%, #14588f 58%, #1f8ad0 100%); }
.post-cover .cat {
  position: relative; z-index: 2; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 999px;
}
.post-meta { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; }
.post-card h3 { font-size: 20px; line-height: 1.28; transition: color .2s; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; }
.stars { color: var(--gold); font-size: 13px; letter-spacing: .18em; }
.review p { font-size: 15.5px; line-height: 1.65; margin: 12px 0 16px; color: var(--ink-2); }
.review cite { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left; font-size: 16px; font-weight: 500;
}
.faq-q i { font-style: normal; font-size: 20px; color: var(--accent); transition: transform .3s var(--ease); line-height: 1; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
/* 用 grid 行高 0fr→1fr 做展开动画：高度自适应内容，不会像 max-height 那样先跳后停 */
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
  overflow: hidden; overflow-anchor: none;
}
.faq-a > * { min-height: 0; overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
/* 底部间距放在伪元素里：内边距留在折叠元素上会让 0fr 收不干净，露出一条内容 */
.faq-a p { padding: 0 40px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.faq-a p::after { content: ""; display: block; height: 22px; }

/* ---------- newsletter ---------- */
.newsletter { background: linear-gradient(120deg, #0a1c40 0%, #10307f 52%, #1447d6 100%); color: #eaf1ff; border-radius: var(--radius-l); padding: 56px 52px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.newsletter h2 { font-size: 34px; color: #fff; }
.newsletter p { color: rgba(234, 241, 255, .74); font-size: 14px; margin-top: 8px; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input {
  flex: 1 1 170px; min-width: 0; height: 52px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07); color: #fff; padding: 0 22px; outline: none;
}
.nl-form .btn { flex: 0 0 auto; white-space: nowrap; }
.nl-form input::placeholder { color: rgba(255, 255, 255, .45); }
.nl-form .btn { background: #fff; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-top h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top li a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.footer-top li a:hover { color: var(--accent); }
.footer-brand p { font-size: 13.5px; color: var(--muted); margin-top: 14px; max-width: 30ch; }
.paymarks { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.paymarks span {
  font-size: 10px; letter-spacing: .04em; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 7px; background: #fff;
}
.footer-legal {
  border-top: 1px solid var(--line-2); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted);
}
.disclaimer { font-size: 11px; color: #7c8aa4; line-height: 1.6; max-width: 720px; }

/* ---------- cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 19, 26, .42); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw; z-index: 100;
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .42s var(--ease);
  box-shadow: var(--shadow-l);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line-2); }
.drawer-head h3 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line-2); padding: 20px 24px 26px; }
.line-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.line-item img { width: 74px; height: 92px; object-fit: cover; border-radius: 8px; background: var(--sand); flex: none; }
.line-item .info { flex: 1; min-width: 0; }
.line-item h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 0 0 3px; }
.line-item .price { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; height: 32px; margin-top: 10px; }
.qty button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.link-remove { font-size: 11.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; color: var(--ink-2); }
.sum-row.total { font-size: 17px; font-weight: 600; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line-2); color: var(--ink); }
.empty-state { text-align: center; padding: 60px 10px; color: var(--muted); font-size: 14px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  height: 50px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 14px; outline: none;
  transition: border-color .2s, box-shadow .2s; font-size: 14.5px;
}
.field textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 71, 214, .13);
}
.field .err { font-size: 11.5px; color: var(--accent); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--accent); }
.field.invalid .err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .col-2 { grid-column: span 2; }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; padding: 46px 0 90px; }
.co-section { margin-bottom: 38px; }
.co-section > h2 { font-size: 22px; margin-bottom: 18px; }
.order-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: 26px; position: sticky; top: 100px; }
.order-box h3 { font-size: 18px; margin-bottom: 16px; }
.mini-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.mini-item img { width: 54px; height: 66px; object-fit: cover; border-radius: 6px; background: var(--sand); }
.mini-item .n { font-size: 13px; font-weight: 500; }
.mini-item .q { font-size: 11.5px; color: var(--muted); }
.pay-methods { display: grid; gap: 10px; margin-top: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s;
}
.pay-method.active { border-color: var(--accent); background: #f4f8ff; }
.pay-method input { accent-color: var(--ink); }
.pay-method .pm-name { font-size: 14px; font-weight: 500; }
.pay-method .pm-note { font-size: 11.5px; color: var(--muted); margin-left: auto; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; padding: 44px 0 80px; align-items: start; }
.pdp-gallery { position: sticky; top: 100px; }
.pdp-main { border-radius: var(--radius-l); overflow: hidden; background: var(--sand); aspect-ratio: 1 / 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumbs button { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs button.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pdp-info h1 { font-size: clamp(32px, 3.6vw, 46px); margin: 14px 0 12px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 8px; }
.pdp-price .now { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.pdp-price .was { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.pdp-price .save { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.pdp-buy { display: flex; gap: 12px; margin: 28px 0 10px; }
.pdp-buy .qty { height: 52px; border-radius: 999px; }
.pdp-buy .qty button { width: 42px; height: 50px; }
.pdp-buy .btn { flex: 1; }
/* 折叠面板：卡片式，行高留白更舒展，图标做成圆形按钮 */
.accordion {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden; overflow-anchor: none;
}
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 0; }
.acc-head {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  text-align: left;
  transition: background .2s, color .2s;
}
.acc-head:hover { background: #f6f9ff; }
.acc-item.open .acc-head { color: var(--accent); }
.acc-head i {
  flex: 0 0 26px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-style: normal; font-size: 17px; line-height: 1;
  transition: transform .32s var(--ease), background .2s, color .2s;
}
.acc-item.open .acc-head i { transform: rotate(45deg); background: var(--accent); color: #fff; }
.acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease);
  overflow: hidden; overflow-anchor: none;
}
.acc-body > .inner { min-height: 0; overflow: hidden; padding: 0; }
.acc-body .inner {
  padding: 0 22px;
  font-size: 14px; color: #43506a; line-height: 1.8;
}
.acc-body .inner p { margin: 0 0 12px; }
.acc-body .inner p:last-child { margin-bottom: 0; }
.acc-body .inner ul, .acc-body .inner ol { margin: 0 0 12px; padding-left: 20px; }
.acc-body .inner li { margin-bottom: 6px; }
.acc-body .inner strong, .acc-body .inner b { color: var(--ink); font-weight: 600; }
.acc-body .inner::after { content: ""; display: block; height: 22px; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { padding: 10px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 38%; }
.spec-table td:last-child { text-align: right; font-weight: 500; }

/* ---------- blog ---------- */
.blog-hero { padding: 70px 0 40px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 14px 0 14px; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; padding: 56px 0 90px; align-items: start; }
/* 分页（带记忆） */
.pager-nav { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pg-count { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.pg-rows { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pg-num, .pg-arrow {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: border-color .18s, color .18s, background .18s, transform .18s;
}
.pg-num:hover, .pg-arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pg-num.is-cur {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(20, 71, 214, .8);
}
.pg-num.is-cur:hover { color: #fff; transform: none; }
.pg-arrow.is-off { opacity: .35; pointer-events: none; }
.pg-gap { min-width: 24px; text-align: center; color: var(--muted); letter-spacing: .12em; }
.pg-tip {
  margin: 0 0 4px; font-size: 12px; color: var(--muted);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 14px;
}
.pg-tip a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.post-list { display: grid; gap: 40px; }
.post-row { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
.post-row .post-cover { aspect-ratio: 4 / 3; }
.post-row h2 { font-size: 25px; margin-bottom: 8px; line-height: 1.25; }
.post-row h2 a:hover { color: var(--accent); }
.post-row p { font-size: 14px; color: var(--muted); }
.side-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.side-card h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-card a { font-size: 13.5px; }
.side-card a:hover { color: var(--accent); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: 28px; margin: 44px 0 14px; }
.article-body h3 { font-size: 20px; margin: 30px 0 10px; }
.article-body p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.8; color: #2a374b; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; color: #2a374b; }
.article-body li { margin-bottom: 9px; line-height: 1.75; }
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 2px solid var(--accent);
  background: var(--accent-soft); font-family: var(--serif); font-size: 18px; line-height: 1.6;
}
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: var(--radius); margin: 26px 0; }
.article-head { text-align: center; max-width: 780px; margin: 0 auto; padding: 54px 0 36px; }
.article-head h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 16px 0 18px; }
.article-head .meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.article-cta { background: var(--sand); border-radius: var(--radius-l); padding: 30px 34px; margin: 48px 0; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.article-cta h3 { font-size: 22px; }
.article-cta p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- utilities ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: #e6f4ee; padding: 5px 11px; border-radius: 999px; font-weight: 600; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.stack-8 { display: grid; gap: 8px; }
.stack-16 { display: grid; gap: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
[hidden] { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; padding-top: 46px; }
  .hero-visual { max-width: 520px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .grid-products, .grid-journal, .reviews { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 40px 32px; }
  .pdp { grid-template-columns: 1fr; gap: 36px; }
  .pdp-gallery { position: static; }
  .checkout-grid { grid-template-columns: 1fr; gap: 34px; }
  .order-box { position: static; }
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 62px 0; }
  .grid-products, .grid-journal, .reviews { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line-2); }
  .post-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col-2 { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 40px; }
  .header-inner { height: 66px; }
  .hero-badge { display: none; }
  .article-body p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- accordion rich text ---------- */
.acc-body .inner p { margin: 0 0 10px; }
.acc-body .inner h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  margin: 16px 0 6px;
}
.acc-body .inner ul { margin: 0 0 12px; padding-left: 18px; }
.acc-body .inner li { margin-bottom: 6px; }
.acc-body .inner strong { color: var(--ink); }

/* ---------- single product grid ---------- */
.grid-products.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
@media (max-width: 640px) { .grid-products.single { grid-template-columns: 1fr; } }

/* =========================================================
   Policy pages (shipping / privacy / terms)
   ========================================================= */
.policy-head { max-width: 860px; padding: 54px 0 30px; }
.policy-head h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 14px 0 18px; }
.policy-head .lede { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.policy-updated {
  margin-top: 20px; font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #8695ae;
}

.policy-switch {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding-bottom: 34px; border-bottom: 1px solid var(--line);
}
.policy-pill {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-s);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.policy-pill strong { font-size: 14px; font-weight: 600; }
.policy-pill span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.policy-pill:hover { border-color: #b9c9e2; transform: translateY(-2px); box-shadow: var(--shadow); }
.policy-pill.on { border-color: var(--ink); background: var(--sand); }
.policy-pill.on strong { color: var(--ink); }

.policy-grid {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px;
  padding: 40px 0 90px; align-items: start;
}
.policy-toc { position: sticky; top: 96px; }
.policy-toc ol {
  list-style: none; counter-reset: toc; margin: 14px 0 0; padding: 0;
  border-left: 1px solid var(--line);
}
.policy-toc li { counter-increment: toc; }
.policy-toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  font-size: 13px; line-height: 1.45; color: var(--muted);
  border-left: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.policy-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 9.5px; letter-spacing: .08em; color: #a4b2c8;
  display: inline-block; width: 22px;
}
.policy-toc a:hover { color: var(--ink); border-left-color: var(--accent); }

.policy-body { max-width: 760px; }
.policy-body section { scroll-margin-top: 100px; }
.policy-body section + section { margin-top: 40px; }
.policy-body h2 {
  font-size: 26px; margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.policy-body p { margin: 0 0 16px; font-size: 15.6px; line-height: 1.82; color: #2a374b; }
.policy-body ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.policy-body ul li {
  position: relative; padding-left: 22px; margin-bottom: 11px;
  font-size: 15.6px; line-height: 1.75; color: #2a374b;
}
.policy-body ul li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.policy-body strong { font-weight: 600; color: var(--ink); }
.policy-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.policy-body a:hover { color: var(--accent-dark); }

.policy-foot {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.policy-foot p { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 980px) {
  .policy-switch { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 26px; }
  .policy-toc {
    position: static; padding: 14px 0 22px; border-bottom: 1px solid var(--line-2); margin-bottom: 26px;
  }
  .policy-toc ol { columns: 2; column-gap: 20px; border-left: 0; }
  .policy-toc a { padding-left: 0; }
  .policy-toc a::before { width: 18px; }
}
@media (max-width: 600px) {
  .policy-head { padding-top: 34px; }
  .policy-body h2 { font-size: 22px; }
  .policy-toc ol { columns: 1; }
}

/* 极窄屏：订阅表单纵向排列，避免输入框与按钮挤出容器 */
@media (max-width: 560px) {
  .newsletter { padding: 34px 24px; gap: 24px; }
  .newsletter h2 { font-size: 27px; }
  .nl-form { flex-direction: column; align-items: stretch; }
  .nl-form input { flex: 1 1 auto; width: 100%; }
  .nl-form .btn { width: 100%; height: 52px; }
  .drawer { max-width: 100vw; }
}

/* =========================================================
   移动端导航：把主菜单变成可横向滚动的第二行
   （此前 <=1024px 直接 display:none，手机上没有导航入口）
   ========================================================= */
@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap; height: auto;
    padding-top: 11px; padding-bottom: 0;
    gap: 0; row-gap: 0;
  }
  .brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .nav {
    order: 3; display: flex; width: 100%; gap: 22px;
    margin-top: 9px; padding: 8px 0 10px;
    border-top: 1px solid var(--line-2);
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 12.5px; white-space: nowrap; color: var(--muted); }
  .nav a:first-child { color: var(--ink); }
  .site-header.is-stuck .header-inner { padding-top: 8px; }
  .site-header.is-stuck .nav { margin-top: 6px; padding-bottom: 8px; }
}

/* =========================================================
   在线客服挂件
   ========================================================= */
.bsc { position: fixed; right: 22px; bottom: 22px; z-index: 9500; font-family: var(--sans); }

.bsc-launcher {
  position: relative;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--ink); color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(13, 26, 51, .5);
  transition: transform .22s var(--ease), background .22s var(--ease);
}
.bsc-launcher svg { width: 23px; height: 23px; }
.bsc-launcher:hover { background: var(--accent); transform: translateY(-2px); }
.bsc-launcher.is-open { background: var(--accent); }

.bsc-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 700;
  border: 2px solid #fff;
}
.bsc-launcher.is-open .bsc-badge { display: none !important; }

.bsc-panel {
  position: absolute;
  right: 0; bottom: 70px;
  width: 372px; height: min(552px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(13, 26, 51, .45);
  overflow: hidden;
  animation: bscIn .26s var(--ease);
  transform-origin: bottom right;
}
@keyframes bscIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

.bsc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 15px;
  background: var(--ink); color: #fff;
}
.bsc-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bsc-avatar {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-size: 17px;
}
.bsc-id strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.bsc-state { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.bsc-state em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .62); }
.bsc-dot-live { width: 6px; height: 6px; border-radius: 50%; background: #4ec98a; box-shadow: 0 0 0 3px rgba(78, 201, 138, .18); }
.bsc-x {
  border: 0; background: none; color: rgba(255, 255, 255, .6);
  font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px;
  transition: color .18s;
}
.bsc-x:hover { color: #fff; }

.bsc-body {
  flex: 1; overflow-y: auto; padding: 16px 15px 12px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 9px;
  /* 必须是 auto：程序化 scrollTop（首屏定位 / 上滚保持位置）在 smooth 下
     会变成异步动画，连续赋值会被打断，导致停在顶部或中途 */
  scroll-behavior: auto;
  overflow-anchor: none;
}
.bsc-msg { display: flex; flex-direction: column; max-width: 86%; }
.bsc-msg.is-user { align-self: flex-end; align-items: flex-end; }
.bsc-msg.is-agent { align-self: flex-start; }
.bsc-msg.is-sys { align-self: center; max-width: 92%; }
.bsc-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.bsc-msg.is-user .bsc-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bsc-msg.is-agent .bsc-bubble { background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bsc-msg.is-ai { align-self: flex-start; }
.bsc-msg.is-ai .bsc-bubble {
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-bottom-left-radius: 5px;
}
.bsc-tag {
  font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 3px 2px;
}
.bsc-typing .bsc-bubble { display: flex; gap: 4px; align-items: center; padding: 11px 14px; }
.bsc-typing i {
  width: 5px; height: 5px; border-radius: 50%; background: #9db0cc;
  animation: bscDot 1.1s infinite ease-in-out;
}
.bsc-typing i:nth-child(2) { animation-delay: .15s; }
.bsc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bscDot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* 新消息浮层提示（窗口关着时出现，点一下直接打开） */
.bsc-toast {
  position: absolute; right: 0; bottom: 70px;
  width: 302px; max-width: calc(100vw - 40px);
  display: block; text-align: left;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px -18px rgba(13, 26, 51, .38);
  cursor: pointer;
  animation: bscToastIn .26s var(--ease);
}
.bsc-toast[hidden] { display: none; }
.bsc-toast b { display: block; font-size: 11px; color: var(--accent); letter-spacing: .04em; margin-bottom: 3px; }
.bsc-toast span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
@keyframes bscToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bsc-msg.is-sys .bsc-bubble {
  background: var(--sand); color: #5f6d85;
  font-size: 11.5px; text-align: center; line-height: 1.5;
}
.bsc-time { font-size: 9.5px; color: #a3b1c7; margin-top: 3px; }
.bsc-loading { margin: auto; font-size: 12px; color: var(--muted); text-align: center; }

.bsc-form {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.bsc-inputrow { display: flex; align-items: flex-end; gap: 8px; }
.bsc-form textarea {
  flex: 1; min-height: 40px; max-height: 110px;
  padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg);
  font-family: var(--sans); font-size: 13px; line-height: 1.5;
  color: var(--ink); resize: none; outline: none;
  transition: border-color .18s, background .18s;
}
.bsc-form textarea:focus { border-color: var(--ink); background: #fff; }
.bsc-inputrow > button {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; cursor: pointer;
  transition: background .18s, transform .18s;
}
.bsc-inputrow > button svg { width: 17px; height: 17px; }
.bsc-inputrow > button:hover:not(:disabled) { background: var(--accent); }
.bsc-inputrow > button:disabled { opacity: .45; cursor: not-allowed; }

/* 顶部工具：搜索 / 关闭 */
.bsc-tools { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.bsc-ico {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; color: rgba(255, 255, 255, .62);
}
.bsc-ico svg { width: 16px; height: 16px; }
.bsc-ico:hover, .bsc-ico.on { color: #fff; background: rgba(255, 255, 255, .12); }

/* 搜索栏 */
.bsc-searchbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bsc-searchbar[hidden] { display: none; }
.bsc-searchbar input {
  flex: 1; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: 12.5px; color: var(--ink); outline: none;
}
.bsc-searchbar input:focus { border-color: var(--accent); background: #fff; }
.bsc-searchbar button {
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.bsc-searchbar button:hover { color: var(--ink); background: var(--bg); }

/* 搜索结果 */
.bsc-results {
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; overflow: hidden; flex: 0 0 auto;
}
.bsc-results-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; background: var(--bg);
  font-size: 11px; color: var(--muted);
}
.bsc-results-head button {
  border: 0; background: none; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer;
}
.bsc-results-row {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border: 0; border-top: 1px solid var(--line);
  background: #fff; cursor: pointer;
}
.bsc-results-row:hover { background: var(--accent-soft); }
.bsc-results-meta { display: block; font-size: 10px; color: var(--accent); margin-bottom: 2px; }
.bsc-results-tx {
  display: block; font-size: 12px; color: var(--ink-2); line-height: 1.45;
  max-height: 38px; overflow: hidden;
}
.bsc-results-tip {
  padding: 8px 10px; font-size: 11px; color: var(--muted);
  border-top: 1px dashed var(--line); background: #fffaf0;
}

/* 加载更早 */
.bsc-more {
  align-self: center; margin: 2px 0 6px;
  padding: 5px 12px; border: 0; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.bsc-more:hover { background: #dbe7fb; }
.bsc-more[hidden] { display: none; }

/* 引用 */
.bsc-quote {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 10px; border-radius: 10px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
}
.bsc-quote[hidden] { display: none; }
.bsc-quote-in { flex: 1; min-width: 0; }
.bsc-quote-lb { display: block; font-size: 9.5px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.bsc-quote-tx {
  display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bsc-quote > button {
  width: 22px; height: 22px; flex: 0 0 22px; border: 0; border-radius: 50%;
  background: rgba(20, 71, 214, .1); color: var(--accent);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.bsc-quote > button:hover { background: rgba(20, 71, 214, .2); }

.bsc-quote-blk {
  max-width: 100%; margin-bottom: 4px; padding: 5px 9px;
  border-radius: 8px; border-left: 3px solid currentColor;
  background: rgba(13, 26, 51, .05);
  font-size: 11px; line-height: 1.4;
  opacity: .85;
}
.bsc-msg.is-user .bsc-quote-blk { background: rgba(255, 255, 255, .18); border-left-color: rgba(255, 255, 255, .7); }
.bsc-quote-who { display: block; font-size: 9.5px; font-weight: 700; opacity: .8; margin-bottom: 1px; }
.bsc-quote-bd {
  display: block; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.bsc-quote-btn {
  position: absolute; top: 2px;
  width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--muted);
  box-shadow: 0 1px 4px rgba(13, 26, 51, .14);
  opacity: 0; transition: opacity .16s; cursor: pointer;
}
.bsc-quote-btn svg { width: 12px; height: 12px; }
.bsc-quote-btn:hover { color: var(--accent); }
.bsc-msg:hover .bsc-quote-btn { opacity: 1; }
.bsc-msg.is-user .bsc-quote-btn { left: -28px; }
.bsc-msg.is-agent .bsc-quote-btn, .bsc-msg.is-ai .bsc-quote-btn { right: -28px; }

.bsc-msg { position: relative; }
.bsc-msg.hit .bsc-bubble { box-shadow: 0 0 0 2px var(--accent); }
.bsc-msg.flash .bsc-bubble { animation: bscFlash 1.4s ease; }
@keyframes bscFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 71, 214, 0); }
  20% { box-shadow: 0 0 0 4px rgba(20, 71, 214, .35); }
}
.bsc-bubble.is-hidden { color: var(--muted); font-style: italic; letter-spacing: .1em; }

.bsc-note {
  margin: 0; padding: 0 12px 10px;
  font-size: 10px; color: #a3b1c7; text-align: center;
  background: var(--surface);
}

@media (max-width: 600px) {
  .bsc { right: 14px; bottom: 14px; }
  .bsc-launcher { width: 52px; height: 52px; }
  .bsc-panel {
    position: fixed; inset: 0;
    width: 100%; height: 100%; max-height: 100%;
    border-radius: 0; border: 0;
  }
  .bsc-panel .bsc-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .bsc-panel .bsc-note { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .bsc-form textarea { font-size: 16px; }
}

/* 结账运费时效提示 */
.co-eta{
  margin:-2px 0 8px;font-size:11.5px;line-height:1.5;color:var(--muted);
  min-height:0;
}
.co-eta:empty{display:none}
