/* ============================================================
   ARTISAN HERO — 2026-11-14 迁移自 artisan-child-maniluma/assets/css/artisan.css
   (§5 HERO 整段 + §13 响应式 hero 部分)
   目的: blocksy-child-maniluma(回滚主题)也保有 artisan 首页 hero
   视觉口径: 与 artisan 线上渲染一致 —— .arts-hero 作用域内重映射 token
             (值逐字取自 artisan-child-maniluma/assets/css/base.css :root),
             不动 luma.css 的 :root 全局 token
   注: artisan 线上 hero 背后是 body 级纸色 #f6f3ec; 本主题 body 白底,
       hero 自身不铺底色(纯结构迁移)。要纸色底给 .arts-hero 加 background 即可。
   ============================================================ */

/* 作用域 token (仅 .arts-hero 及其后代生效) */
.arts-hero {
  --luma-accent: #a63c26;
  --luma-ink: #232019;
  --luma-soft: #6f6a5e;
  --luma-line: rgba(35,32,25,.14);
  --luma-faint: #9a948a;
  --luma-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- HERO (逐字自 artisan.css §5, 仅去掉 .arts-home .wrap 容器规则; hero 自身已带 max-width) ---------- */
.arts-hero {
  display: grid; grid-template-columns: 460px 1fr; gap: 64px; align-items: center;
  padding: 36px 24px 40px; max-width: 1200px; margin: 0 auto;
}
.arts-eyebrow { font-size: 13px; color: var(--luma-accent); margin-bottom: 20px; }
.arts-h1 {
  font-family: Georgia, "Palatino Linotype", serif !important; font-weight: 400 !important;
  font-size: clamp(34px, 3.4vw, 46px) !important; line-height: 1.08 !important;
  letter-spacing: 0 !important; color: var(--luma-ink) !important; margin: 0 0 24px;
}
.arts-hero-body { color: var(--luma-soft); font-size: 17px; max-width: 400px; margin: 0 0 36px; }
.arts-cta-row { display: flex; gap: 12px; margin-bottom: 40px; }
.arts-btn {
  display: inline-block; font-family: var(--luma-font); font-size: 15px;
  padding: 13px 24px; border-radius: 4px; border: 1px solid transparent;
  transition: background 160ms cubic-bezier(.2,.6,.2,1), color 160ms cubic-bezier(.2,.6,.2,1), border-color 160ms cubic-bezier(.2,.6,.2,1);
}
.arts-btn-primary { background: var(--luma-ink); color: #f6f3ec !important; }
.arts-btn-primary:hover { background: #3a352b; color: #f6f3ec !important; }
.arts-btn-secondary { border-color: var(--luma-line); color: var(--luma-ink) !important; }
.arts-btn-secondary:hover { border-color: var(--luma-ink); }
.arts-proof {
  display: flex; gap: 24px; font-size: 13px; color: var(--luma-faint);
  border-top: 1px solid rgba(35,32,25,.08); padding-top: 20px;
}
.arts-hero-fig { margin: 0; border-radius: 8px; overflow: hidden; }
.arts-hero-fig img { width: 100%; height: 560px; object-fit: cover; display: block; }

/* ---------- 响应式 (逐字自 artisan.css §13, 仅保留 hero 相关行) ---------- */
@media (max-width: 1080px) {
  .arts-hero { grid-template-columns: 1fr; padding: 24px 24px 28px; gap: 40px; }
  .arts-hero-fig img { height: 420px; }
}
@media (max-width: 640px) {
  .arts-hero { padding: 20px 24px 24px; }
  .arts-h1 { font-size: 32px !important; }
  .arts-hero-fig img { height: 320px; }
}

/* ---------- HERO-SLIDER (2026-11-14, 后台可编辑 ≤3 屏) ----------
   叠放原理: 容器 display:grid + 各 slide grid-area:1/1 → 容器高度=最高一屏(无 CLS),
   非当前屏 opacity+visibility 隐藏, fade 切换; 圆点叠在 hero 底部内边距区 */
.arts-hero-slider { display: grid; position: relative; }
.arts-hero-slide {
  width: 100%;
  grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 600ms cubic-bezier(.2,.6,.2,1), visibility 0s linear 600ms;
}
.arts-hero-slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 600ms cubic-bezier(.2,.6,.2,1), visibility 0s linear 0s;
}
.arts-hero-fit-contain .arts-hero-fig img { object-fit: contain; }
.arts-hero-dots {
  grid-area: 1 / 1; align-self: end; justify-self: center; z-index: 2;
  display: flex; gap: 10px; padding: 0 0 16px; margin: 0;
}
.arts-hero-dot {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--luma-ink); background: transparent; opacity: .45;
}
.arts-hero-dot.is-active { background: var(--luma-ink); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .arts-hero-slide { transition: none; } }

/* ---------- INTENT-CHIPS (2026-11-14 移植自 artisan.css §4) ----------
   文字/底色用本主题 luma token (ink #232323 / surface #fff), 石点与 hover 染色为 per-stone 固有色;
   用户指令: chips 上下间距压到最小 → 行上边距 0(紧贴标题, 标题自身 margin-bottom 6px) / 下边距 8px(原 tags 24px) */
.arts-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 8px; }
.arts-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--luma-ink);
  background: var(--luma-surface); border: 1px solid rgba(35,32,25,.10); border-radius: 999px;
  padding: 6px 14px; text-decoration: none;
  transition: background 160ms cubic-bezier(.2,.6,.2,1), border-color 160ms cubic-bezier(.2,.6,.2,1);
}
.arts-chip .arts-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.arts-chip[data-stone="wealth"]        .arts-dot { background: #d8a13c; }
.arts-chip[data-stone="protection"]    .arts-dot { background: #2e2b28; }
.arts-chip[data-stone="calm"]          .arts-dot { background: #8f6db4; }
.arts-chip[data-stone="love"]          .arts-dot { background: #cf9a96; }
.arts-chip[data-stone="balance"]       .arts-dot { background: #7fa38f; }
.arts-chip[data-stone="communication"] .arts-dot { background: #5f97a8; }
.arts-chip[data-stone="confidence"]    .arts-dot { background: #9e3d45; }
.arts-chip[data-stone="intuition"]     .arts-dot { background: #3d5a8f; }
/* hover: 换 14% 石色浅染底; 圆点与文字颜色不变 (styleguide §4) */
.arts-chip[data-stone="wealth"]:hover        { background: #f8eedd; border-color: rgba(216,161,60,.35); }
.arts-chip[data-stone="protection"]:hover    { background: #ebeae8; border-color: rgba(46,43,40,.32); }
.arts-chip[data-stone="calm"]:hover          { background: #efeaf4; border-color: rgba(143,109,180,.35); }
.arts-chip[data-stone="love"]:hover          { background: #f6ebea; border-color: rgba(207,154,150,.4); }
.arts-chip[data-stone="balance"]:hover       { background: #eaf0ec; border-color: rgba(127,163,143,.38); }
.arts-chip[data-stone="communication"]:hover { background: #e8eff2; border-color: rgba(95,151,168,.35); }
.arts-chip[data-stone="confidence"]:hover    { background: #f2e5e6; border-color: rgba(158,61,69,.35); }
.arts-chip[data-stone="intuition"]:hover     { background: #e7ecf3; border-color: rgba(61,90,143,.35); }

/* ---------- HERO-NIGHT (2026-11-14, 屏幕风格=night; 值逐字自 artisan.css §8 夜仪式带) ----------
   全宽夜底: 夜屏直接铺满容器宽(容器=视口宽, 实测 1262=1262), 无 vw hack 无滚动条风险;
   眉题/标题/正文/按钮换夜色配色; 图去固定高改自适应比(MAC 窗框贴图) */
.arts-hero-night { position: relative; max-width: none; width: 100%; background: #1c1a16; padding: 36px max(24px, calc((100% - 1200px) / 2 + 24px)) 40px; }
.arts-hero-night .arts-eyebrow { color: #d8906f; }
.arts-hero-night .arts-h1 { color: #f6f3ec !important; font-size: clamp(26px, 2.4vw, 34px) !important; margin: 0 0 16px; }
.arts-hero-night .arts-hero-body { color: rgba(246,243,236,.72); font-size: 16px; margin: 0 0 32px; }
.arts-hero-night .arts-btn-primary { border-color: rgba(246,243,236,.3); color: #f6f3ec !important; background: transparent; }
.arts-hero-night .arts-btn-primary:hover { border-color: #f6f3ec; background: transparent; }
.arts-hero-night .arts-hero-fig img { height: auto; }
/* MAC 窗框 (artisan §8 原值) */
.arts-mac { margin: 0; border-radius: 12px; overflow: hidden; background: #2b2b2d; border: 1px solid rgba(246,243,236,.14); box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.arts-mac-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #3a3a3c; }
.arts-mac-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.arts-mac-r { background: #ff5f57; }
.arts-mac-y { background: #febc2e; }
.arts-mac-g { background: #28c840; }
.arts-mac-title { flex: 1; text-align: center; font-size: 12px; color: rgba(246,243,236,.55); font-family: var(--luma-font); }
.arts-mac-spacer { width: 52px; flex: none; }

/* ---------- KEYPOINTS-BAND (2026-11-14) — 诚信带扁平化（用户指令: 扁平无间隙+加高+补充内容, 区分上下板块）
   全幅纸色带 #f7f4ee + 上下 hairline（纸色家族与 hero 同源, 区分上下白底板块）; 内容 1152px 居中（=hero 内容宽）;
   四格等宽无间隙, 格间 1px 竖线; 每格竖排: 图标/标题/副题/新增描述行（加高） */
.luma-keypoints {
  display: block; max-width: none; width: 100%; margin: 0; padding: 0;
  background: #f7f4ee;
  border-top: 1px solid rgba(35,32,25,.10);
  border-bottom: 1px solid rgba(35,32,25,.10);
}
.luma-kp-wrap {
  max-width: 1152px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.luma-kp {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  padding: 32px 32px 34px;
  border-radius: 0; background: transparent;
  border-left: 1px solid rgba(35,32,25,.08);
}
.luma-kp:first-child { border-left: 0; }
.luma-kp svg { color: var(--luma-accent); margin-bottom: 2px; }
.luma-kp strong { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--luma-ink); }
.luma-kp span { display: block; font-size: 12.5px; color: var(--luma-ink); margin-top: 0; opacity: .85; }
.luma-kp .luma-kp-desc { font-size: 12.5px; line-height: 1.65; color: var(--luma-soft); opacity: 1; margin-top: 5px; }
@media (max-width: 1180px) {
  .luma-kp-wrap { max-width: none; }
  .luma-kp { padding: 28px 24px 30px; }
}
@media (max-width: 900px) {
  .luma-kp-wrap { grid-template-columns: repeat(2, 1fr); }
  .luma-kp:nth-child(odd) { border-left: 0; }
  .luma-kp:nth-child(n+3) { border-top: 1px solid rgba(35,32,25,.08); }
}
@media (max-width: 520px) {
  .luma-kp-wrap { grid-template-columns: 1fr; }
  .luma-kp { border-left: 0; padding: 22px 24px; }
  .luma-kp:nth-child(n+2) { border-top: 1px solid rgba(35,32,25,.08); }
}
.arts-mac img { width: 100%; display: block; }
/* 夜屏激活时圆点换浅色 (hero-slider.js 依当前屏同步 .arts-on-night) */
.arts-on-night .arts-hero-dot { border-color: rgba(246,243,236,.5); }
.arts-on-night .arts-hero-dot.is-active { background: #f6f3ec; }

/* KEYPOINTS-BAND spacing (2026-11-14): 用户指令 诚信带与上一板块间隔 20px */
.luma-keypoints { margin-top: 20px; }

/* ---------- CHIPS-SELECT (2026-11-14) — 仅移动端: chips 行换成下拉选择框（用户指令） ----------
   桌面: chips 显示 / select 隐藏; ≤689px(站内移动断点): chips 隐藏 / select 显示(原生下拉, 选中跳分类页) */
.arts-chips-select { display: none; }
@media (max-width: 689px) {
  .arts-chips { display: none; }
  .arts-chips-select {
    display: block; width: 100%; margin: 0 0 8px; height: 44px; padding: 0 32px 0 14px; line-height: 42px;
    font-size: 14px; color: var(--luma-ink); background: var(--luma-surface);
    border: 1px solid var(--luma-line); border-radius: 8px;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23232323' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
  }
}
