/* ============================================================
   Boyue Astra Child — 页面内容样式
   适用：Home / About / Certifications / OEM / FAQ / Contact
   配色变量继承 style.css 中的 --boyue-*
   ============================================================ */

/* ---------- 页面外壳 ---------- */
.by-page{ max-width:1120px; margin:0 auto; }
.by-page h1{ font-size:clamp(28px,3.4vw,40px); line-height:1.25; margin:0 0 14px; letter-spacing:-.01em; }
.by-page h2{ font-size:clamp(22px,2.4vw,28px); margin:46px 0 16px; }
.by-page h3{ font-size:17px; margin:0 0 8px; line-height:1.4; }
.by-page p{ color:var(--boyue-sub); }

.by-eyebrow{
  display:inline-block; font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--boyue-champagne); font-weight:600; margin-bottom:10px;
}
.by-lead{ font-size:16.5px; line-height:1.75; color:var(--boyue-ink); opacity:.86; max-width:72ch; }
.by-example{ font-size:12px; color:#b08968; margin:0 0 14px; }

/* ---------- 统计块 ---------- */
.by-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; margin:26px 0 8px; }
.by-stats > div{
  background:var(--boyue-card); border:1px solid var(--boyue-line); border-radius:14px;
  padding:18px 16px; text-align:center;
}
.by-stats b{ display:block; font-size:26px; color:var(--boyue-rose); line-height:1.2; }
.by-stats span{ display:block; font-size:12.5px; color:var(--boyue-sub); margin-top:6px; }

/* ---------- 卡片网格 ---------- */
.by-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; margin:18px 0 0; }
/* 首页 10 个分类：固定 5 列，正好两排，不会在最后一行空出两格 */
.by-cats{ grid-template-columns:repeat(5,1fr); }
@media (max-width:1100px){ .by-cats{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:700px){ .by-cats{ grid-template-columns:repeat(2,1fr); } }
.by-card{
  background:var(--boyue-card); border:1px solid var(--boyue-line); border-radius:14px;
  padding:20px 18px; transition:box-shadow .18s ease, transform .18s ease;
}
.by-card:hover{ box-shadow:0 8px 24px rgba(58,47,42,.07); transform:translateY(-2px); }
.by-card h3{ color:var(--boyue-ink); }
.by-card p{ margin:0; font-size:14px; line-height:1.65; }
/* 卡片/行首的小图标：原始是 emoji（彩色位图，放在 B2B 站上显廉价），
   这里统一改成玫瑰色小菱形，保持克制又不丢视觉锚点。 */
.by-ic{
  font-size:0 !important; line-height:0; display:block;
  width:9px; height:9px; margin:0 0 12px;
  border-radius:2px; background:var(--boyue-rose); opacity:.55;
  transform:rotate(45deg);
}
.by-row .by-ic{ margin:6px 0 0; flex:0 0 auto; }
.by-big{ font-size:28px; font-weight:700; color:var(--boyue-rose); line-height:1.1; margin-bottom:4px; }

/* ---------- 步骤 ---------- */
.by-steps{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:16px; margin:18px 0 0; }
.by-step{ background:var(--boyue-card); border:1px solid var(--boyue-line); border-radius:14px; padding:18px; }
.by-step .by-n{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.08em;
  color:#fff; background:var(--boyue-rose); border-radius:6px; padding:2px 8px; margin-bottom:10px;
}
.by-step h3{ font-size:15px; }
.by-step p{ margin:0; font-size:13.5px; line-height:1.6; }

/* ---------- 证书卡 ---------- */
.by-cert{ background:var(--boyue-card); border:1px solid var(--boyue-line); border-radius:14px; padding:20px 18px; }
.by-cert h3{ font-size:16px; margin-bottom:6px; }
.by-cert .by-iss{ font-size:12.5px; color:var(--boyue-rose); margin-top:8px; }
.by-cert .by-code{ font-size:12px; color:var(--boyue-sub); font-family:ui-monospace,Consolas,monospace; margin-top:4px; }

/* ---------- 表格 ---------- */
.by-table{
  width:100%; border-collapse:collapse; margin:14px 0 0; font-size:14px;
  background:var(--boyue-card); border:1px solid var(--boyue-line); border-radius:12px; overflow:hidden;
}
.by-table td{ padding:11px 16px; border-bottom:1px solid var(--boyue-line); vertical-align:top; }
.by-table tr:last-child td{ border-bottom:none; }
.by-table td:first-child{ width:38%; color:var(--boyue-sub); font-size:13.5px; }

/* ---------- FAQ ---------- */
.by-faqcat{
  font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--boyue-champagne); font-weight:600; margin:30px 0 10px;
}
.by-page details{
  background:var(--boyue-card); border:1px solid var(--boyue-line); border-radius:12px;
  padding:14px 18px; margin-bottom:10px;
}
.by-page details summary{ cursor:pointer; font-weight:600; font-size:15px; color:var(--boyue-ink); list-style:none; }
.by-page details summary::-webkit-details-marker{ display:none; }
.by-page details summary::after{ content:"+"; float:right; color:var(--boyue-rose); font-weight:400; }
.by-page details[open] summary::after{ content:"\2013"; }
.by-page details p{ margin:10px 0 0; font-size:14px; }

/* ---------- 提示条 ---------- */
.by-note{
  background:#fdf6ee; border:1px solid var(--boyue-line); border-left:3px solid var(--boyue-champagne);
  border-radius:10px; padding:14px 18px; font-size:13.5px; color:#7a6250; margin:18px 0;
}

/* ---------- 按钮 ---------- */
.by-btn{
  display:inline-block; background:var(--boyue-rose); color:#fff !important;
  padding:12px 26px; border-radius:99px; font-size:14px; font-weight:600;
  text-decoration:none; transition:background .18s ease;
}
.by-btn:hover{ background:var(--boyue-champagne); color:#fff; }
.by-btn-row{ margin-top:30px; }

/* ---------- 联系方式行 ---------- */
.by-row{ display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-bottom:1px solid var(--boyue-line); }
.by-row:last-child{ border-bottom:none; }
.by-row .by-ic{ margin:6px 0 0; flex:0 0 auto; }
.by-row b{ display:block; font-size:13.5px; color:var(--boyue-ink); margin-bottom:3px; }
.by-row span{ font-size:13.5px; color:var(--boyue-sub); line-height:1.6; }

/* ---------- 首页 hero ---------- */
.by-hero{ text-align:center; padding:26px 0 8px; }
.by-hero h1{ font-size:clamp(30px,4.2vw,48px); margin-bottom:16px; }
.by-hero .by-lead{ margin:0 auto; }
.by-split{ display:grid; grid-template-columns:1.15fr .85fr; gap:34px; align-items:start; margin-top:10px; }
.by-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.by-tag{
  font-size:12.5px; color:var(--boyue-rose); background:#fdf3ef;
  border:1px solid var(--boyue-line); border-radius:99px; padding:5px 13px;
}

@media (max-width:820px){
  .by-split{ grid-template-columns:1fr; gap:24px; }
}
@media (max-width:600px){
  .by-steps, .by-grid{ grid-template-columns:1fr; }
  .by-table td:first-child{ width:45%; }
}

/* ============================================================
   与 Astra 默认正文样式的冲突修正
   Astra 给 .entry-content a 加了蓝色 + 下划线，会穿透进卡片和按钮
   ============================================================ */
a.by-card, a.by-btn,
a.by-card:hover, a.by-btn:hover{ text-decoration:none !important; }

.by-page a{ color:var(--boyue-accent); }
.by-page a.by-card, .by-page a.by-btn{ color:inherit; }
.by-page a.by-card h3{ color:var(--boyue-ink); }
.by-page a.by-card p{ color:var(--boyue-sub); }

/* topbar 与页眉之间不保留额外间距 */
.site-header{ margin-top:0 !important; border-top:0 !important; }

/* FAQ 默认全部展开，破折号改为更轻的减号 */
.by-page details[open] summary::after{ content:"\2212"; opacity:.5; }
