/* 椿萱小铺 官网样式 —— 展示型 · 备案合规优先 · 无外部依赖 */
:root {
  --brand: #ff4444;
  --brand-2: #ff9500;
  --ink: #1f2328;
  --ink-2: #4a5158;
  --ink-3: #79828b;
  --line: #e6e8eb;
  --bg-soft: #f7f8fa;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; height: 66px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 34px; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink-2); font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--brand); }
.nav a.on { font-weight: 600; }
.mnav { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 7px 10px; font-size: 18px; color: var(--ink); }

/* ---------- 通用 ---------- */
.hero { background: linear-gradient(165deg, #fff5f3 0%, #fff 46%, #f4f9f7 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { padding: 64px 20px 60px; }
h1 { font-size: 40px; line-height: 1.28; margin: 0 0 16px; letter-spacing: .5px; }
h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: .3px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 720px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
.sec-head { margin-bottom: 28px; }
.sec-head p { color: var(--ink-2); margin: 0; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover { border-color: #ffd0cc; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255, 68, 68, .07); }
.card p { color: var(--ink-2); margin: 0; font-size: 15px; }
.card .ic { width: 42px; height: 42px; margin-bottom: 12px; }
.badge {
  display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 20px;
  background: #fff1ef; color: var(--brand); border: 1px solid #ffd9d4; margin-right: 6px;
}
.badge.ok { background: #eaf7f0; color: #1a7f4b; border-color: #c6ead6; }
.badge.warn { background: #fff7e8; color: #9a6400; border-color: #ffe3b0; }
.badge.gray { background: #f2f4f6; color: var(--ink-3); border-color: #e4e7ea; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff;
  font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- 资质条 ---------- */
.qual-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qual-strip > div { background: #fff; padding: 20px 18px; }
.qual-strip .t { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.qual-strip .v { font-weight: 600; font-size: 15px; margin-top: 4px; word-break: break-all; }

/* ---------- 产品 ---------- */
.prod { display: flex; gap: 16px; align-items: flex-start; }
.prod .pic {
  width: 108px; height: 108px; flex: none; border-radius: 12px; background: linear-gradient(160deg, #fff4f2, #f6f8f7);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.prod .pic svg { width: 64px; height: 64px; }
.prod h3 { margin: 0 0 4px; font-size: 17px; }
.prod .meta { color: var(--ink-3); font-size: 13.5px; margin: 6px 0 0; }
.prod .price { color: var(--brand); font-weight: 700; font-size: 19px; }
.notice {
  border-left: 3px solid var(--brand-2); background: #fffaf2; border-radius: 0 10px 10px 0;
  padding: 14px 18px; color: #6a4a10; font-size: 14.5px; margin-top: 10px;
}
.notice b { color: #8a5a00; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.tbl th { background: var(--bg-soft); font-weight: 600; white-space: nowrap; }
.tbl td.k { background: #fcfcfd; color: var(--ink-2); white-space: nowrap; width: 190px; font-weight: 500; }

/* ---------- 文档页 ---------- */
.doc { max-width: 860px; }
.doc h2 { margin: 34px 0 10px; font-size: 22px; }
.doc h3 { margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .updated { color: var(--ink-3); font-size: 14px; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 46px; margin-bottom: 18px; }
.step:before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.step p { margin: 0; color: var(--ink-2); }
.step b { color: var(--ink); }

/* ---------- 页脚 ---------- */
.foot { background: #14181d; color: #aeb6be; padding: 44px 0 26px; margin-top: 60px; font-size: 14px; }
.foot h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.foot a { color: #aeb6be; }
.foot a:hover { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 7px 0; }
.foot .logo img { height: 30px; filter: brightness(0) invert(1); opacity: .92; }
.foot .icp { margin-top: 24px; padding-top: 18px; border-top: 1px solid #262c33; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot .icp a { color: #8b949d; }
.foot .icp .police { display: inline-flex; align-items: center; gap: 6px; }
.foot .police img { width: 16px; height: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 30px; }
  .qual-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .mnav { display: block; }
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
  .qual-strip { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .hero .wrap { padding: 40px 20px 36px; }
  section { padding: 40px 0; }
  .tbl td.k { width: auto; }
  .tbl, .tbl thead, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
  .tbl td { border: 0; border-bottom: 1px solid var(--line); }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td.k { width: auto; background: var(--bg-soft); }
}

/* ══════════ 品牌视觉系统 v2（2026-10-27） ══════════ */
:root {
  --brand: #ff4444;
  --brand-2: #ff9500;
  --brand-soft: #fff3f0;
  --ink: #171b20;
  --ink-2: #4c545c;
  --ink-3: #8b949c;
  --line: #e8eaed;
  --bg-soft: #f7f8fa;
  --ok: #1a7f4b;
  --ok-soft: #eaf7f0;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 24, 29, .05);
  --shadow: 0 10px 30px rgba(20, 24, 29, .07);
  --shadow-lg: 0 20px 50px rgba(255, 68, 68, .10);
  --max: 1160px;
}
h1 { font-size: clamp(28px, 4.6vw, 44px); letter-spacing: -.5px; }
h2 { font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-size: 17px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wrap { padding: 0 22px; }
section { padding: 68px 0; }
.card { box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow); }

/* Hero v2 */
.hero-v2 { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff6f4 0%, #fff 46%, #f2f8f6 100%); border-bottom: 1px solid var(--line); }
.hero-v2 .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 72px 22px 64px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ffdcd7; color: var(--brand); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: block; }
.hero-v2 h1 { margin: 0 0 16px; }
.hero-v2 .lead { font-size: 17px; max-width: 560px; }
.hero-visual { position: relative; }
.hero-visual img.main { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.float-card b { display: block; font-size: 14px; }
.float-card span { color: var(--ink-3); }
.float-card .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-weight: 700; flex: none; }
.fc-1 { left: -16px; bottom: 26px; }
.fc-2 { right: -12px; top: 22px; }
.fc-2 .dot { background: var(--brand-soft); color: var(--brand); }

/* 信任条 */
.trust { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.trust-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.trust-item .n { font-size: 12px; color: var(--ink-3); letter-spacing: .5px; }
.trust-item .t { font-weight: 600; margin-top: 5px; font-size: 14.5px; line-height: 1.5; }
.trust-item .ok { color: var(--ok); }

/* 品类卡 */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { position: relative; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.cat .art { height: 132px; margin: -26px -26px 18px; background: linear-gradient(135deg, #fff1ee, #eef7f4); display: grid; place-items: center; }
.cat .art svg { width: 74px; height: 74px; }
.cat h3 { margin-bottom: 6px; }
.cat p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; }
.cat .go { color: var(--brand); font-weight: 600; font-size: 14px; }

/* 商品卡 v2 */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.shop:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shop .ph { height: 150px; background: linear-gradient(150deg, #fff4f1, #f3f8f6); display: grid; place-items: center; }
.shop .ph svg { width: 66px; height: 66px; }
.shop .bd { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop .cat2 { font-size: 12px; color: var(--ink-3); }
.shop h3 { font-size: 15.5px; margin: 0; line-height: 1.5; }
.shop .price { color: var(--brand); font-weight: 700; font-size: 18px; margin-top: auto; }
.shop .price s { color: var(--ink-3); font-weight: 400; font-size: 13px; margin-left: 6px; }
.shop .row { display: flex; justify-content: space-between; align-items: center; }
.shop .more { font-size: 13.5px; font-weight: 600; color: var(--brand); }

/* 科普卡 */
.know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.know { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.know .no { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.know h3 { margin: 7px 0 8px; font-size: 16.5px; }
.know p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 12px; }
.know a { font-size: 13.5px; font-weight: 600; }

/* CTA */
.cta-band { background: linear-gradient(135deg, #ff4444 0%, #ff8a00 100%); border-radius: var(--radius-lg); color: #fff; padding: 46px 44px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 620px; }
.cta-band .btn { background: #fff; color: var(--brand); }

/* 文章体 */
.article { max-width: 780px; }
.article .item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; }
.article .item h3 { margin: 0 0 10px; }
.article .item ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.article .item li { margin: 6px 0; line-height: 1.8; }
.tips { border-radius: var(--radius); background: var(--brand-soft); border: 1px solid #ffe0da; padding: 16px 20px; color: #8a3a2c; font-size: 14.5px; margin-top: 14px; }

/* 面包屑 */
.crumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 16px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

/* 打印样式：资质材料可直接打印归档 */
@media print {
  .topbar, .foot, .btn, .float-card, .hero-visual, nav { display: none !important; }
  body { font-size: 12pt; color: #000; }
  section { padding: 12px 0; }
  a { color: #000; text-decoration: none; }
  .card, .tbl, .cert-item { break-inside: avoid; box-shadow: none; }
  .qual-strip, .cert-grid { break-inside: avoid; }
}

@media (max-width: 1024px) {
  .hero-v2 .wrap { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .know-grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 34px 26px; }
}
@media (max-width: 640px) {
  .shop-grid, .cat-grid, .know-grid, .trust { grid-template-columns: 1fr; }
  .float-card { display: none; }
  section { padding: 44px 0; }
}
