/*
Theme Name: EWOOD Single
Version: 2.4
Description: EWOOD 单页目录（B1-B8）· L3 视觉规范 v1.1 实现（无图期版式）
Author: EWOOD
*/

/*
Theme Name: EWOOD Child
Template: twentytwentyfive
Version: 1.1
Description: EWOOD 单页目录（B1–B8）实现 · L3 视觉规范 v1.1（无图期版式）
*/

/* ===== Design tokens (L3 视觉规范 v1.1 §3/§4/§2) ===== */
:root {
  --ink: #14213D;        /* Ink Navy：标题/表头/页脚 */
  --steel: #4A5568;      /* Steel：正文 */
  --bg: #FAFAF7;         /* Warm White：页面底 */
  --accent: #C05621;     /* Burnt Orange：主 CTA */
  --accent-deep: #A8491B;/* 链接/hover */
  --border: #E2E2DC;     /* 描边/分隔线 */
  --card: #FFFFFF;
  --img-bg: #F7F7F5;
  --error: #A61B1B;
  --container: 1180px;
  --section-y: 80px;
  --section-y-t: 64px;
  --section-y-m: 48px;
  --radius: 4px;         /* v1.1 §8.3/§8.5：卡片/表格容器/输入框统一 4px（Wave 2 W2-03） */
  /* v1.1 §8.1 锁定值：按钮三值，实现不得偏离 */
  --btn-radius: 4px;
  --btn-pad: 24px;
  --btn-fs: 15px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ew { margin: 0; background: var(--bg); color: var(--steel); font-family: var(--font); font-size: 16px; line-height: 1.6; font-weight: 400; }
.ew a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.ew a:hover, .ew a:focus { color: var(--ink); }
.ew :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ew img { max-width: 100%; height: auto; display: block; }
.ew h1, .ew h2, .ew h3 { color: var(--ink); margin: 0; }
.ew .wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== B1 Header ===== */
.ew-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.ew-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.ew-brand { font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
/* T-02：wordmark 只允许 Ink Navy，压过 .ew a 的强调色与下划线 */
.ew .ew-brand { color: var(--ink); text-decoration: none; }
.ew-tagline { font-size: 13px; color: var(--steel); margin: 2px 0 0; }
.ew-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.ew-nav a { color: var(--steel); text-decoration: none; }
.ew-nav a:hover { color: var(--ink); }
.ew-lang a { font-weight: 600; }
.ew-lang .on { color: var(--ink); text-decoration: underline; }
/* W2-09：桌面页头显示真号，<768 只显示 WhatsApp 文字（避免撑破 64px 页头） */
.ew-wa .ew-wa-short { display: none; }

/* ===== B2 Hero（v1.1 §19.1 无图期：整幅深底反白） ===== */
.ew-hero { background: var(--ink); color: #FAFAF7; }
.ew-hero .wrap { padding-top: 88px; padding-bottom: 88px; }
.ew-hero h1 { color: #FAFAF7; font-size: 40px; line-height: 1.2; font-weight: 600; max-width: 820px; letter-spacing: -.01em; }
.ew-hero p { color: #FAFAF7; font-size: 16px; line-height: 1.6; max-width: 640px; margin: 20px 0 0; }
.ew-cta-row { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
/* T-04：按钮三值 4px / 15px / 24px（主·次·提交一致，高 48 不变） */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--btn-pad); background: var(--accent); color: #fff !important; font-size: var(--btn-fs); line-height: 1.2; font-weight: 600; text-decoration: none; border: 0; border-radius: var(--btn-radius); cursor: pointer; }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-deep); color: #fff !important; }
.btn-primary:active { transform: translateY(1px); }
.ew-hero .link-arrow { color: #FAFAF7; font-size: 15px; }
/* v1.1 §19.1：深底上的焦点环用 #FAFAF7 */
.ew-hero :focus-visible, .ew-footer :focus-visible { outline-color: #FAFAF7; }

/* ===== Sections ===== */
.ew-section { padding: var(--section-y) 0; }
.ew-section.alt { background: var(--bg); }
.ew-section.white { background: var(--card); }
.ew-section h2 { font-size: 28px; line-height: 1.25; font-weight: 600; margin-bottom: 32px; }
.ew-lead { max-width: 640px; margin: 0 0 32px; }
.ew-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }

/* ===== B3 categories ===== */
.ew-cat { margin-bottom: 40px; }
.ew-cat:last-child { margin-bottom: 0; }
.ew-cat h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.ew-cat ul { list-style: none; margin: 0; padding: 0; }
.ew-cat li { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.ew-cat li:last-child { border-bottom: 0; }
.ew-cat .mat { color: var(--steel); font-size: 14px; }
.ew-cat .moq { color: var(--steel); font-size: 13px; text-align: right; white-space: nowrap; }
.ew-cat .thumb { width: 100%; aspect-ratio: 1/1; background: var(--img-bg); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #9AA3AF; font-size: 13px; margin-bottom: 16px; }

/* ===== B4/B5 tables ===== */
.ew-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.ew-table-wrap:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* T-05：<768 滚动提示（Small 13 / #4A5568 / 右对齐；滚到最右淡出，无渐变遮罩） */
.ew-scroll-hint { display: none; margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--steel); text-align: right; opacity: 1; transition: opacity .15s ease; }
.ew-scroll-hint.is-hidden { opacity: 0; }
.ew-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.ew-table th { background: var(--ink); color: #fff; text-align: left; font-weight: 600; padding: 12px 16px; font-size: 14px; }
.ew-table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
/* B5/B4 行首用 <th scope="row">（M-2）：视觉沿用数据行，不套表头深底 */
.ew-table tbody th[scope="row"] { background: transparent; color: inherit; font-weight: 400; border-top: 1px solid var(--border); }
.ew-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ew-note { font-size: 13px; color: var(--steel); margin: 16px 0 0; }

/* ===== B6 steps ===== */
.ew-steps { list-style: none; margin: 0; padding: 0; counter-reset: ewstep; }
.ew-steps li { counter-increment: ewstep; position: relative; padding: 0 0 20px 44px; max-width: 720px; }
.ew-steps li::before { content: counter(ewstep); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ew-steps li:last-child { padding-bottom: 0; }

/* ===== B7 form（v1.1 §8.5：桌面 2 列 6+6 / 768 两列 / 375 单列） ===== */
.ew-form { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 720px; }
.ew-form > .ew-error-box,
.ew-form > .ew-promise,
.ew-form > button[type=submit],
.ew-form > [data-field="notes"],
.ew-form > [data-field="privacy_consent"] { grid-column: 1 / -1; }
.ew-field .ew-consent { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400; color: var(--steel); min-height: 44px; line-height: 1.4; }
.ew-field .ew-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: 0 0 auto; }
/* 单选/复选组不用 fieldset 默认外框（v1.1 §8.5：只有 label + 控件，无卡片框） */
.ew-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ew-field legend { padding: 0; }
.ew-field { margin-bottom: 0; }
.ew-field label, .ew-field legend { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.ew-field .req { color: var(--error); }
.ew-field input[type=text], .ew-field input[type=email], .ew-field input[type=tel], .ew-field input[type=number], .ew-field select, .ew-field textarea {
  width: 100%; min-height: 44px; padding: 10px 16px; font-size: 16px; font-family: var(--font); color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.ew-field textarea { min-height: 120px; resize: vertical; }
.ew-field input:focus, .ew-field select:focus, .ew-field textarea:focus { border-color: var(--ink); }
.ew-choices { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.ew-choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; color: var(--steel); margin: 0; min-height: 44px; }
.ew-choices input { width: 18px; height: 18px; accent-color: var(--ink); }
.ew-field-hint { font-size: 13px; color: var(--steel); margin: 6px 0 0; }
.ew-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ew-error-box { display: none; background: #FDF2F2; border: 1px solid var(--error); color: var(--error); padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 0; }
.ew-error-box.show { display: block; }
.ew-field .err { display: none; color: var(--error); font-size: 13px; margin-top: 4px; }
.ew-field.invalid .err { display: block; }
.ew-field.invalid input, .ew-field.invalid select, .ew-field.invalid textarea { border-color: var(--error); }
.ew-promise { font-size: 13px; color: var(--steel); margin: 0; max-width: 640px; }
.ew-success { display: none; }
.ew-success.show { display: block; }
.ew-success h2, .ew-success h3 { margin-bottom: 12px; }
.ew-form.hide { display: none; }

/* ===== B8 footer（v1.1 §19.1：深底文字统一 #FAFAF7） ===== */
.ew-footer { background: var(--ink); color: #FAFAF7; padding: 64px 0 32px; font-size: 14px; }
.ew-footer a { color: #FAFAF7; }
.ew-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.ew-footer h3 { color: #FAFAF7; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.ew-footer p, .ew-footer ul { margin: 0; padding: 0; }
.ew-footer ul { list-style: none; }
.ew-footer li { margin-bottom: 8px; }
.ew-footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(250,250,247,.16); font-size: 13px; color: #FAFAF7; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ===== T-06 Cookie 同意条（v1.1 §19.3：底部整宽横条，覆盖 CookieYes 默认左下白卡） ===== */
.cky-consent-container,
.cky-consent-container.cky-box-bottom-left {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 9999;
}
.cky-consent-container .cky-consent-bar {
  background: #FFFFFF !important;
  border: 0 !important;
  border-top: 1px solid #E2E2DC !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 24px !important;
}
.cky-consent-container .cky-notice {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  max-width: 1180px;
  margin: 0 auto !important;
}
.cky-consent-container .cky-notice-group {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  flex: 1 1 auto;
}
.cky-consent-container .cky-title {
  display: block !important; /* L7 文案给标题 Cookies（W2-10）；移动端高度上限按 D-050 放宽到 130 */
  color: #14213D !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  flex: 0 0 auto;
}
.cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des p {
  color: #4A5568 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.cky-consent-container .cky-notice-des { flex: 1 1 auto; }
.cky-consent-container .cky-notice-btn-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 0 !important;
  flex: 0 0 auto;
}
.cky-consent-container .cky-btn {
  display: inline-block !important;
  width: auto !important;
  order: 0 !important; /* 视觉顺序 = DOM 顺序：Customise → Reject → Accept（次 → 主），与 Tab 顺序一致 */
  min-height: 44px !important;
  height: 44px !important;
  min-width: 0;
  margin: 0 !important;
  border-radius: 4px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 0 24px !important;
  box-shadow: none !important;
  white-space: nowrap;
}
.cky-consent-container .cky-btn-accept { background: #C05621 !important; border: 1px solid #C05621 !important; color: #FFFFFF !important; }
.cky-consent-container .cky-btn-accept:hover, .cky-consent-container .cky-btn-accept:focus { background: #A8491B !important; border-color: #A8491B !important; color: #FFFFFF !important; }
.cky-consent-container .cky-btn-reject,
.cky-consent-container .cky-btn-customize { background: transparent !important; border: 1px solid #14213D !important; color: #14213D !important; }
.cky-consent-container .cky-btn-reject:hover,
.cky-consent-container .cky-btn-customize:hover,
.cky-consent-container .cky-btn-reject:focus,
.cky-consent-container .cky-btn-customize:focus { background: #14213D !important; color: #FFFFFF !important; }
.cky-consent-container a { color: #A8491B !important; text-decoration: underline !important; }
.cky-consent-container :focus-visible { outline: 2px solid #14213D !important; outline-offset: 2px !important; }
/* 重访按钮（revisit）：Ink Navy 圆形 44，右下 16 */
.cky-btn-revisit-wrapper .cky-btn-revisit { background: #14213D !important; border-radius: 50% !important; width: 44px !important; height: 44px !important; color: #FAFAF7 !important; }

/* ===== W2-04 Cookie 偏好面板（§19.3 token 覆盖；不改插件 JS、不改插件 consent 逻辑） ===== */
.cky-preference-center {
  border-radius: 4px !important;
  border-color: #E2E2DC !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.10) !important;
}
.cky-preference-center,
.cky-preference-center p,
.cky-preference-center .cky-preference-title,
.cky-preference-center .cky-accordion-btn,
.cky-preference-center .cky-accordion-header-des p { color: #14213D !important; }
.cky-preference-center .cky-prefrence-btn-wrapper {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
}
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn {
  display: inline-block !important;
  width: auto !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  border-radius: 4px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 0 24px !important;
  white-space: nowrap;
}
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-accept {
  background: #C05621 !important;
  border: 1px solid #C05621 !important;
  color: #FFFFFF !important;
}
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-accept:hover,
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-accept:focus {
  background: #A8491B !important;
  border-color: #A8491B !important;
  color: #FFFFFF !important;
}
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-reject,
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-preferences {
  background: transparent !important;
  border: 1px solid #14213D !important;
  color: #14213D !important;
}
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-reject:hover,
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-preferences:hover,
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-reject:focus,
.cky-preference-center .cky-prefrence-btn-wrapper .cky-btn-preferences:focus {
  background: #14213D !important;
  color: #FFFFFF !important;
}
.cky-preference-center .cky-show-desc-btn,
.cky-preference-center .cky-policy,
.cky-preference-center a { color: #A8491B !important; text-decoration: underline !important; }
.cky-preference-center .cky-always-active { color: #4A5568 !important; }
.cky-preference-center .cky-audit-table { color: #14213D !important; background-color: #FAFAF7 !important; border-color: #E2E2DC !important; }
.cky-preference-center :focus-visible { outline: 2px solid #14213D !important; outline-offset: 2px !important; }

/* ===== 政策页（/privacy /terms /returns，L7 正文 v1.0 + terms v1.1） ===== */
.ew-policy { background: var(--bg); color: var(--steel); padding: 64px 0 80px; }
.ew-policy .wrap { max-width: 900px; }
.ew-policy h1 { font-size: 40px; line-height: 1.2; color: var(--ink); margin: 0 0 8px; }
.ew-policy h2 { font-size: 22px; line-height: 1.3; color: var(--ink); margin: 40px 0 12px; }
.ew-policy h3 { font-size: 18px; color: var(--ink); margin: 28px 0 10px; }
.ew-policy p, .ew-policy li, .ew-policy td, .ew-policy th { font-size: 16px; line-height: 1.7; }
.ew-policy p { margin: 0 0 14px; }
.ew-policy strong { color: var(--ink); }
.ew-policy ul, .ew-policy ol { margin: 0 0 16px; padding-left: 22px; }
.ew-policy li { margin-bottom: 8px; }
.ew-policy a { color: var(--accent-deep); }
.ew-policy table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.ew-policy th { background: var(--ink); color: #fff; text-align: left; font-weight: 600; padding: 10px 14px; vertical-align: top; }
.ew-policy td { border-top: 1px solid var(--border); padding: 10px 14px; vertical-align: top; }
.ew-policy-back { font-size: 13px; margin: 0 0 24px; }
.ew-policy-back a { color: var(--steel); text-decoration: none; }
@media (max-width: 767px) {
  .ew-policy { padding: 40px 0 56px; }
  .ew-policy h1 { font-size: 30px; }
  .ew-policy h2 { font-size: 19px; margin-top: 32px; }
  .ew-policy p, .ew-policy li { font-size: 16px; }
  .ew-policy table { font-size: 13px; }
}

/* ===== Turnstile（W2-07 配套） ===== */
.ew-turnstile-field { margin-top: 4px; }
.ew-turnstile-field .cf-turnstile { margin: 0 0 8px; }

/* ===== Responsive (L3 §4：375 / 768 / 1200 / 1440) ===== */
@media (max-width: 1199px) {
  .ew-section { padding: var(--section-y-t) 0; }
  .ew-header .wrap { min-height: 72px; }
  .ew-footer { padding: 64px 0 32px; }
  /* Cookie 条在平板档收一行：正文最多 2 行（标题保留，D-050 高度上限 130） */
  .cky-consent-container .cky-notice-des p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 899px) {
  .ew-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .ew-footer .cols { grid-template-columns: 1fr; gap: 24px; }
}
/* T-01：<768 页头 64 高、定位句隐藏、只留 EWOOD + EN|DE + 邮箱 + WhatsApp 一行、热区 ≥44×44 */
@media (max-width: 767px) {
  .ew-header .wrap { min-height: 63px; flex-wrap: nowrap; gap: 12px; padding: 0 16px; }
  .ew .ew-header .wrap { padding-left: 16px; padding-right: 16px; }
  .ew-brand { font-size: 18px; letter-spacing: 0; }
  .ew .ew-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .ew-tagline { display: none; }
  .ew-nav { gap: 6px; font-size: 13px; }
  .ew-lang { display: inline-flex; align-items: center; gap: 2px; }
  .ew-nav a, .ew-lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; white-space: nowrap; }
  /* W2-09：移动页头只显示 WhatsApp 文字，号码留给页脚 */
  .ew-wa .ew-wa-full { display: none; }
  .ew-wa .ew-wa-short { display: inline; }
  .ew-scroll-hint { display: block; }
  .cky-consent-container .cky-consent-bar { padding: 6px 16px !important; }
  .cky-consent-container .cky-notice { display: block !important; }
  .cky-consent-container .cky-notice-group { display: block !important; }
  .cky-consent-container .cky-notice-des p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cky-consent-container .cky-notice-btn-wrapper { margin-top: 6px !important; gap: 6px !important; }
  .cky-consent-container .cky-btn { flex: 1 1 0 !important; padding: 0 8px !important; font-size: 13px !important; }
}
@media (max-width: 599px) {
  .ew .wrap { padding: 0 20px; }
  .ew-section { padding: var(--section-y-m) 0; }
  .ew-section h2 { font-size: 22px; margin-bottom: 24px; }
  .ew-hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  .ew-hero h1 { font-size: 30px; }
  .ew-cat li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .ew-cat .moq { text-align: left; }
  .ew-card { padding: 20px; }
  .ew-table { min-width: 640px; }
  /* 移动端表格：首列固定 + 横向滑动（L3 §8.4 / §7.5） */
  .ew-table th:first-child,
  .ew-table td:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; box-shadow: 1px 0 0 var(--border); }
  .ew-table thead th:first-child { background: var(--ink); color: #fff; }
}
/* B7 提交按钮：移动端全宽；桌面（≥768）左对齐 240 宽（v1.1 §8.5） */
.ew-form > button[type=submit] { width: 100%; justify-self: stretch; }
/* B7 桌面 2 列（6+6，gutter 24；768 起两列，375 单列） */
@media (min-width: 768px) {
  .ew-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: none; }
  .ew-form > button[type=submit] { width: 240px; justify-self: start; }
}

/* ============================================================
   W2-34 扁皮筋站（/flat-bands/ · /product/ · /inquiry/）
   仅新增类，不改既有 token 与 B1–B8 规则
   ============================================================ */
.ewpg { padding-bottom: var(--section-y-m); }
.ew-header-email { color: var(--steel); text-decoration: none; }
.ew-hero-sm { padding: var(--section-y-m) 0 calc(var(--section-y-m) - 8px); }
.ew-hero-sm h1 { font-size: 30px; line-height: 1.2; margin-bottom: 16px; }
.ew-hero-sm .ew-lead { max-width: 760px; }
.ew-small { font-size: 13px; line-height: 1.55; color: var(--steel); }
.ew-crumbs { font-size: 13px; color: var(--steel); margin-bottom: 12px; }
.ew-crumbs a { color: var(--accent-deep); }
.ew-btn-s { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--btn-radius); background: var(--card); color: var(--ink); font-size: 13px; text-decoration: none; cursor: pointer; }
.ew-btn-s:hover { border-color: var(--ink); }
.ew-filters { margin: 8px 0 20px; display: grid; gap: 10px; }
.ew-filter-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ew-filter-label { min-width: 74px; font-size: 13px; font-weight: 600; color: var(--ink); padding-top: 8px; }
.ew-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ew-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--btn-radius); background: var(--card); color: var(--steel); font-size: 13px; cursor: pointer; }
.ew-chip:hover { border-color: var(--ink); }
.ew-chip.is-active { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ew-chip.is-disabled, .ew-chip:disabled { opacity: .45; cursor: not-allowed; }
.ew-chip-clear { font-weight: 600; }
.ew-filter-count { font-size: 13px; color: var(--steel); padding-top: 8px; }
.ew-swatch { display: inline-flex; align-items: center; gap: 6px; }
.ew-swatch-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(20,33,61,.25); display: inline-block; }
.ew-swatch-name { font-size: 13px; }
.ew-cart-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.ew-cart-bar #ew-range-selected { font-size: 13px; color: var(--steel); }
.ew-product-grid { display: grid; gap: 32px; margin-top: 24px; }
.ew-product-media .ew-img-ph { aspect-ratio: 1/1; background: var(--img-bg); border: 1px dashed var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #8A93A0; font-size: 13px; }
.ew-product-info .ew-table { min-width: 0; }
.ew-product-info .ew-params th[scope="row"] { width: 44%; }
.ew-product-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.ew-options { list-style: none; margin: 0 0 0 0; padding: 0; font-size: 13px; color: var(--steel); }
.ew-options li { padding: 4px 0; border-top: 1px solid var(--border); }
.ew-compliance p { margin: 0 0 8px; }
.ew-related { list-style: none; margin: 0; padding: 0; }
.ew-related li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.ew-form #ew-inquiry-form, .ew-form { margin-top: 8px; }
.ew-cart-table .ew-qty { width: 68px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.ew-cart-table .ew-item-note { min-width: 160px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.ew-legal-line { font-size: 12px; color: var(--steel); }
.ew-cart-bar .btn-primary, .ew-product-cta .btn-primary { white-space: nowrap; }
@media (min-width: 900px) {
  .ew-product-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .ew-product-media .ew-img-ph { position: sticky; top: 24px; }
}
@media (max-width: 899px) {
  .ew-header .ew-nav a:not(.ew-lang a):not(.ew-header-email) { font-size: 13px; }
  .ew-header .ew-nav { gap: 12px; flex-wrap: wrap; }
  .ew-hero-sm h1 { font-size: 26px; }
}
@media (max-width: 599px) {
  .ew-header .ew-nav a[href$="/accessories/"] { display: none; }
  .ew-filter-label { min-width: 100%; padding-top: 0; }
}

.ew-product-figure { margin: 0 0 12px; }
.ew-product-img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: var(--img-bg); }
.ew-thumb { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius); display: block; }
.ew-thumb-ph { display: block; width: 56px; height: 56px; background: var(--img-bg); border: 1px dashed var(--border); border-radius: var(--radius); }
.ew-round-figure { margin: 0; max-width: 360px; }
.ew-round-img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius); }

.ew-illustrative { color: var(--steel); font-style: italic; }
.ew-forms-strip { padding-top: 8px; }
.ew-forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ew-form-figure { margin: 0; }
.ew-form-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: var(--img-bg); }
@media (max-width: 599px) { .ew-forms-grid { grid-template-columns: 1fr; } }

/* 成片/编辑 CTA：btn-primary 在非表单容器内的完整样式（白底不可见问题修复） */
.ew-product-cta .btn-primary,
.ew-cart-bar .btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 0;
  padding: 0 var(--btn-pad); height: 48px;
  border-radius: var(--btn-radius); font-size: var(--btn-fs); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.ew-product-cta .btn-primary:hover,
.ew-cart-bar .btn-primary:hover { background: var(--accent-deep); }

/* 强制补齐：非表单容器 CTA 用字面值（避免 token 解析异常时白底不可见） */
.ew-product-cta .btn-primary,
.ew-cart-bar .btn-primary {
  background: #C05621 !important;
  color: #FFFFFF !important;
  border: 0 !important;
  padding: 0 24px !important;
  min-height: 48px !important;
  height: 48px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  text-decoration: none !important;
}
.ew-product-cta .btn-primary:hover,
.ew-cart-bar .btn-primary:hover { background: #A8491B !important; }
/* 新首页（D-170） */
.ew-home-cards { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 768px) { .ew-home-cards { grid-template-columns: 1fr 1fr; } }
.ew-home-cards .ew-card { padding: 24px; }
.ew-home-qa { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 768px) { .ew-home-qa { grid-template-columns: 1fr 1fr; } }
.ew-home-qa h3 { margin-bottom: 6px; }
.ew-home-qa p { margin: 0; color: var(--steel); }
.ew-safety { margin-top: 12px; }
.ew-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
