/*
Theme Name: Blocksy Child - Jewelry B2B
Template: blocksy
Author: In-house
Description: Custom child theme for the jewelry OEM/ODM B2B site.
Version: 1.0.0
*/

:root {
  --brand-accent: #8a6a3b;
}

/* 顶部联系方式条 */
.site-topbar {
  background: #1c1c1c;
  color: #f5f1ea;
  font-size: 13px;
  padding: 8px 0;
}
.site-topbar .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-topbar a { color: #f5f1ea; text-decoration: none; }

/* 首页 hero */
.hero {
  background: linear-gradient(140deg, #1c1c1c 0%, #2f2a24 60%, #4a3d2d 100%);
  color: #fff;
  padding: 84px 20px;
}
.hero .wrap { max-width: 1180px; margin: 0 auto; }
.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: #fff;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
  color: #e8e2d8;
  margin-bottom: 28px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}
.btn-primary { background: var(--brand-accent); color: #fff; }
.btn-primary:hover { background: #6f5430; }
.btn-ghost { border: 1px solid #8d8377; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* 三列卡片 */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}
.card {
  border: 1px solid #e6e1d8;
  border-radius: 6px;
  padding: 26px 24px;
  background: #fff;
}
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: #55504a; line-height: 1.65; font-size: 15px; }

/* 流程条 */
.process {
  background: #f7f4ef;
  padding: 56px 20px;
}
.process .wrap { max-width: 1180px; margin: 0 auto; }
.process h2 { margin: 0 0 28px; font-size: 28px; }
.process ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.process li {
  counter-increment: step;
  background: #fff;
  border-radius: 6px;
  padding: 20px 18px;
  border: 1px solid #e6e1d8;
  font-size: 15px;
  line-height: 1.6;
}
.process li::before {
  content: counter(step);
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: 8px;
}

/* 占位提示 */
.ph {
  background: #fff4e5;
  border-left: 3px solid #d99a3d;
  padding: 8px 12px;
  font-size: 13px;
  color: #7a5a20;
  margin: 16px 0;
}

@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .hero { padding: 56px 20px; }
}
/* ===== 定制补充 ===== */

/* 首页不显示默认页面标题栏 */
body.home .hero-section,
body.page-id-5 .hero-section { display: none; }

/* 首页英雄区贴顶 */
body.home .site-main > .entry-content,
body.page-id-5 .site-main > .entry-content { margin-top: 0; }

/* 正文容器宽度（首页全宽） */
body.home article > .entry-content > * { max-width: 100%; }

/* 卡片内链接 */
.card a { color: var(--brand-accent); text-decoration: none; font-weight: 600; }
.card a:hover { text-decoration: underline; }

/* 流程区标题跟随主题 */
.process h2 { color: #1c1c1c; }CSSADD
echo "已追加 CSS，当前行数: $(wc -l < "$CSS")"
cd "$W"
wp litespeed-purge all 2>&1 | tail -1
rm -rf "$W/wp-content/cache/litespeed" 2>/dev/null
wp cache flush 2>&1 | tail -1

/* ===== custom ===== */
body.home .hero-section,
body.page-id-5 .hero-section { display: none; }
body.home article > .entry-content > * { max-width: 100%; }
.card a { color: var(--brand-accent); text-decoration: none; font-weight: 600; }
.card a:hover { text-decoration: underline; }
.process h2 { color: #1c1c1c; }
body.home .site-main { margin-top: 0; }
