/* ============================================================
   About 页（品牌故事页）— 移植自 yhouson-brand-site/index.html
   仅在 ?r=about 加载；类名统一 .ab- 前缀，避免与 site.css 冲突
   ============================================================ */

.ab {
  --ab-bg: #ffffff;
  --ab-surface: #f5f3ee;
  --ab-surface2: #efece5;
  --ab-line: #e3dfd6;
  --ab-text: #1f2125;
  --ab-muted: #5b6068;
  --ab-faint: #8a8f97;
  --ab-ember: #c9622f;
  --ab-ember2: #e07a3e;
  --ab-brass: #a07d2c;
  --ab-maxw: 1180px;
  background: var(--ab-bg);
  color: var(--ab-text);
  font-weight: 300;
  line-height: 1.75;
}
.ab *, .ab *::before, .ab *::after { box-sizing: border-box; }
.ab img { max-width: 100%; display: block; }
.ab a { color: inherit; text-decoration: none; }
.ab-wrap { max-width: var(--ab-maxw); margin: 0 auto; padding: 0 24px; }
.ab h1, .ab h2, .ab h3 {
  font-family: "Cinzel", Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ab-text);
  line-height: 1.15;
}
.ab section { padding: 76px 0; }

/* ---------- 通用件 ---------- */
.ab-sec-head { margin-bottom: 40px; max-width: 780px; }
.ab-sec-tag {
  color: var(--ab-ember);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ab-sec-head h2 { font-size: clamp(24px, 3.2vw, 38px); margin-bottom: 14px; }
.ab-sec-head p { color: var(--ab-muted); font-size: 15.5px; }

.ab-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 7px;
  font-size: 14px;
  letter-spacing: .04em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background .2s, color .2s, border-color .2s;
}
.ab-btn-primary { background: var(--ab-ember); color: #1a0f08; }
.ab-btn-primary:hover { background: var(--ab-ember2); }
.ab-btn-ghost { border-color: var(--ab-line); color: var(--ab-text); margin-left: 10px; }
.ab-btn-ghost:hover { border-color: var(--ab-brass); color: var(--ab-brass); }
.ab-note { color: var(--ab-faint); font-size: 12.5px; margin-top: 16px; font-style: italic; }

/* ---------- HERO ---------- */
.ab-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 !important;
}
.ab-hero-img { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; filter: saturate(1.05); }
.ab-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,15,18,.55) 0%, rgba(14,15,18,.78) 60%, rgba(14,15,18,1) 100%),
    linear-gradient(90deg, rgba(14,15,18,.85), rgba(14,15,18,.25));
}
.ab-hero .ab-wrap { position: relative; z-index: 2; padding: 88px 24px; }
.ab-hero .ab-eyebrow { color: #e6c477; letter-spacing: .3em; text-transform: uppercase; font-size: 12.5px; font-weight: 500; margin-bottom: 18px; }
.ab-hero h1 { font-size: clamp(30px, 5.4vw, 62px); line-height: 1.1; margin-bottom: 20px; color: #f4f1ea; }
.ab-hero h1 .ab-accent { color: var(--ab-ember); }
.ab-hero .ab-lead { font-size: clamp(15px, 1.9vw, 19px); color: #d6d2c9; max-width: 640px; margin-bottom: 30px; }
.ab-hero .ab-btn-ghost { color: #f4f1ea; border-color: rgba(255,255,255,.32); }
.ab-hero .ab-btn-ghost:hover { color: #fff; border-color: var(--ab-brass); }

/* ---------- STORY 时间轴 ---------- */
.ab-story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.ab-timeline { display: grid; gap: 0; border-left: 1px solid var(--ab-line); margin-left: 8px; }
.ab-tl-item { position: relative; padding: 0 0 32px 34px; }
.ab-tl-item::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ab-ember); box-shadow: 0 0 0 4px rgba(201,98,47,.18);
}
.ab-tl-year { font-family: "Cinzel", Georgia, serif; color: var(--ab-brass); font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.ab-tl-item h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600; font-size: 16.5px; margin-bottom: 5px; color: var(--ab-text);
}
.ab-tl-item p { color: var(--ab-muted); font-size: 14.5px; }
.ab-story-media img { width: 100%; border-radius: 10px; border: 1px solid var(--ab-line); display: block; }
.ab-quote {
  font-family: "Cinzel", Georgia, serif; font-size: 19px; color: var(--ab-brass);
  border-left: 3px solid var(--ab-ember); padding-left: 18px; margin: 24px 0; line-height: 1.5;
}
.ab-story-media > p { color: var(--ab-muted); font-size: 14.5px; }

/* ---------- 数据指标 ---------- */
.ab-stats { background: var(--ab-surface); }
.ab-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ab-stat {
  background: var(--ab-surface2); border: 1px solid var(--ab-line);
  border-radius: 10px; padding: 24px 20px; box-shadow: 0 1px 3px rgba(31,33,37,.07);
}
.ab-stat .num { font-family: "Cinzel", Georgia, serif; font-size: 28px; color: var(--ab-ember); font-weight: 700; line-height: 1.1; }
.ab-stat .lbl { color: var(--ab-muted); font-size: 13px; margin-top: 7px; }
.ab-img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.ab-img-pair img { width: 100%; border-radius: 10px; border: 1px solid var(--ab-line); display: block; }

/* ---------- 工艺卡 ---------- */
.ab-craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-card { background: var(--ab-surface); border: 1px solid var(--ab-line); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(31,33,37,.07); }
.ab-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ab-card .ab-body { padding: 20px 22px 24px; }
.ab-card h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 16.5px; margin-bottom: 8px; }
.ab-card p { color: var(--ab-muted); font-size: 14px; }

/* ---------- 产品卡 ---------- */
.ab-prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-prod { transition: transform .25s, border-color .25s; }
.ab-prod:hover { transform: translateY(-4px); border-color: var(--ab-ember); }
.ab-prod img { height: 240px; background: #000; }

/* ---------- OEM ---------- */
.ab-oem { background: var(--ab-surface); }
.ab-oem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-oem-item { border: 1px solid var(--ab-line); border-radius: 10px; padding: 22px; background: var(--ab-surface2); box-shadow: 0 1px 3px rgba(31,33,37,.07); }
.ab-oem-item .ab-ic { color: var(--ab-brass); font-family: "Cinzel", Georgia, serif; font-size: 21px; margin-bottom: 9px; }
.ab-oem-item h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.ab-oem-item p { color: var(--ab-muted); font-size: 13.5px; }

/* ---------- 品质四道关 ---------- */
.ab-q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ab-q-item {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--ab-line); border-radius: 10px; padding: 22px;
  background: var(--ab-surface); box-shadow: 0 1px 3px rgba(31,33,37,.07);
}
.ab-q-item .n { font-family: "Cinzel", Georgia, serif; color: var(--ab-ember); font-size: 24px; font-weight: 700; min-width: 40px; }
.ab-q-item h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.ab-q-item p { color: var(--ab-muted); font-size: 13.5px; }

/* ---------- 厂房实拍 ---------- */
.ab-facility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ab-facility-card img { height: 340px; }
.ab-facility-cap { color: var(--ab-faint); font-size: 12.5px; margin-top: 10px; font-style: italic; }

/* 车间横向滚动 */
.ab-marquee {
  position: relative; overflow: hidden; margin-top: 30px;
  border: 1px solid var(--ab-line); border-radius: 10px;
  background: var(--ab-surface); padding: 18px 0;
}
.ab-marquee::before, .ab-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none;
}
.ab-marquee::before { left: 0; background: linear-gradient(90deg, var(--ab-surface), transparent); }
.ab-marquee::after { right: 0; background: linear-gradient(270deg, var(--ab-surface), transparent); }
.ab-marquee-track { display: flex; gap: 18px; width: max-content; animation: abScrollX 30s linear infinite; }
.ab-marquee:hover .ab-marquee-track { animation-play-state: paused; }
@keyframes abScrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ab-m-item { flex: 0 0 auto; width: 360px; }
.ab-m-item img { width: 100%; height: 230px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ab-line); display: block; }
.ab-m-item .cap { margin-top: 10px; color: var(--ab-muted); font-size: 13px; letter-spacing: .03em; }
.ab-m-item .cap b { color: var(--ab-brass); font-weight: 600; }

/* ---------- CONTACT ---------- */
.ab-contact { background: linear-gradient(180deg, #ffffff, #f5f3ee); text-align: center; }
.ab-contact h2 { font-size: clamp(24px, 3.2vw, 38px); margin-bottom: 14px; }
.ab-contact > .ab-wrap > p { color: var(--ab-muted); max-width: 580px; margin: 0 auto 28px; font-size: 15.5px; }

.ab-inquiry {
  background: var(--ab-surface); border: 1px solid var(--ab-line); border-radius: 12px;
  padding: 32px 30px; max-width: 780px; margin: 34px auto 0; text-align: left;
  box-shadow: 0 1px 3px rgba(31,33,37,.07);
}
.ab-inquiry h3 { font-size: 20px; color: var(--ab-brass); margin-bottom: 6px; text-align: center; }
.ab-inquiry .ab-sub { color: var(--ab-muted); font-size: 13.5px; text-align: center; margin-bottom: 24px; }
.ab-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-form-grid .full { grid-column: 1 / -1; }
.ab-field label { display: block; color: var(--ab-muted); font-size: 13px; margin-bottom: 7px; letter-spacing: .03em; }
.ab-field input, .ab-field select, .ab-field textarea {
  width: 100%; background: var(--ab-bg); border: 1px solid var(--ab-line); border-radius: 7px;
  color: var(--ab-text); padding: 11px 13px; font-family: inherit; font-size: 14.5px; font-weight: 300;
  transition: border-color .2s;
}
.ab-field input:focus, .ab-field select:focus, .ab-field textarea:focus { outline: none; border-color: var(--ab-ember); }
.ab-field textarea { resize: vertical; min-height: 110px; }
.ab-form-note { color: var(--ab-faint); font-size: 12px; margin-top: 12px; text-align: center; }
.ab-inquiry .ab-btn-primary { width: 100%; margin-top: 18px; text-align: center; border: none; display: block; }

/* ---------- 图片署名（原品牌站页脚 credits） ---------- */
.ab-credits { background: var(--ab-surface); border-top: 1px solid var(--ab-line); padding: 34px 0 30px; }
.ab-credits h4 { font-size: 14px; letter-spacing: .1em; color: var(--ab-brass); margin-bottom: 6px; font-weight: 600; }
.ab-credits .ab-disclaimer { color: var(--ab-faint); font-size: 12px; margin-bottom: 14px; max-width: 860px; }
.ab-cred-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ab-cred-table th { text-align: left; color: var(--ab-brass); font-weight: 600; padding: 7px 10px; border-bottom: 1px solid var(--ab-line); letter-spacing: .04em; }
.ab-cred-table td { padding: 7px 10px; border-bottom: 1px solid var(--ab-line); color: var(--ab-muted); vertical-align: top; }
.ab-cred-table a { color: var(--ab-ember2); text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .ab-story-grid, .ab-img-pair { grid-template-columns: 1fr; gap: 28px; }
  .ab-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-craft-grid, .ab-prod-grid, .ab-oem-grid { grid-template-columns: 1fr; }
  .ab-q-grid, .ab-facility-grid { grid-template-columns: 1fr; }
  .ab-m-item { width: 78vw; }
  .ab-cred-table { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
  .ab section { padding: 52px 0; }
  .ab-form-grid { grid-template-columns: 1fr; }
  .ab-btn-ghost { margin-left: 0; }
  .ab-hero .ab-wrap { padding: 60px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-marquee-track { animation: none; }
}