/* 12-bulk.css · 首页「批量定制」与两条定制路径页面的新区块
   关键数字条、阶梯价表、快速选型、规格表、两条路径卡、质检卡、流程补充信息。 */

/* ---------- 关键数字条 ---------- */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact-strip > div {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  background: var(--paper);
}

.fact-strip strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.fact-strip span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- 阶梯价 ---------- */
.tier-table {
  width: min(560px, 100%);
  margin: 22px 0 10px;
  border-collapse: collapse;
  font-size: 15px;
}

.tier-table th,
.tier-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tier-table th {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------- 流程补充信息 ---------- */
.process-meta {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 快速选型 ---------- */
.quick-pick {
  background: var(--pink);
}

.quick-pick-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 40px;
  align-items: center;
  padding-block: 56px;
}

.quick-pick h2 {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.quick-points {
  margin: 0 0 22px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.quick-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-family: var(--serif);
  font-size: 30px;
  text-align: center;
}

.quick-visual span {
  padding: 18px 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(33, 78, 62, 0.14);
}

.quick-visual em {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 定制总览：标准配置与路径 ---------- */
.custom-spec .spec-list,
.spec-list {
  margin: 20px 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 880px;
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.path-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.path-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.path-card .button {
  justify-self: start;
}

.custom-capability {
  background: var(--soft);
}

.custom-capability h2 {
  margin: 8px 0 18px;
  font-size: 28px;
}

.qc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.qc-grid article {
  padding: 22px;
  border-top: 2px solid var(--autumn-accent);
  background: var(--paper);
}

.qc-grid h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.qc-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.capability-copy {
  max-width: 62ch;
}

@media (max-width: 960px) {
  .fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .quick-pick-inner,
  .path-grid,
  .qc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-visual {
    order: -1;
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .fact-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* ============================================================
   页头修正：品牌不被压缩、联系区在窄屏只留图标
   ============================================================ */
.header-inner .brand {
  flex: none;
}

.header-contact {
  align-items: flex-start;
}

@media (max-width: 1279px) {
  .header-contact-email span {
    display: none;
  }

  .header-contact-email {
    min-width: 34px;
  }
}

@media (max-width: 1080px) {
  .header-contact {
    display: none;
  }
}

/* 首页主视觉的说明文字：贴在底部，不再溢出裁切 */
.hero-collage {
  position: relative;
  overflow: hidden;
}

.hero-collage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(to top, rgba(255, 254, 250, 0.92), rgba(255, 254, 250, 0));
}

.hero-collage figcaption span {
  white-space: normal;
}

/* 数字条不再压住主视觉 */
.fact-strip {
  margin-top: 0;
}

/* 页面标题区与后续区块之间收紧留白（原来空一大截） */
.page-intro {
  padding-block: 56px 30px;
}

.custom-spec.section {
  padding-top: 12px;
}

/* ---------- 首页：现有亚克力色卡 ---------- */
.colour-card {
  background: var(--paper);
}

.colour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 18px;
}

.colour-chip {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--swatch);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.12),
    0 2px 6px -3px rgba(28, 43, 37, 0.45);
  cursor: default;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.colour-chip::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.colour-chip:hover,
.colour-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.14),
    0 10px 16px -10px rgba(28, 43, 37, 0.6);
}

.colour-chip:hover::after,
.colour-chip:focus-visible::after {
  opacity: 1;
}

@media (max-width: 640px) {
  .colour-chip {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
}

/* 顶部导航常驻：不再折叠成汉堡菜单 */
.menu-toggle {
  display: none !important;
}

.header-inner nav,
.header-inner nav.open {
  display: flex !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  flex-wrap: wrap;
  gap: 14px;
  margin: auto;
  padding: 0;
  background: transparent;
  border: 0;
}

.header-inner nav a {
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    padding-block: 10px;
  }

  .header-inner nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0;
  }
}

/* 导航横排（覆盖响应式里的竖排绝对定位） */
.header-inner nav,
.header-inner nav.open {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center;
  height: auto !important;
  min-height: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

.header-inner nav a {
  padding: 6px 2px;
}

.header-inner {
  min-height: 76px;
  height: auto !important;
  position: relative;
  overflow: visible !important;
}

/* 流程标题不再压住说明文字 */
.process-list { margin-top: 26px; }
.section > h2, .process-section h2 { line-height: 1.14; margin-bottom: 12px; }
.section-note { margin: 0 0 10px; max-width: 62ch; }

/* 文件选择：隐藏原生控件，用英文按钮 */
.file-input { display: none; }
.file-button {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(33, 78, 62, 0.3);
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 10px;
}
.file-button:hover { border-color: var(--ink); }

/* 目标预算输入 */
.quote-budget {
  display: grid;
  gap: 6px;
  margin: 14px 0 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-budget input {
  padding: 10px 12px;
  border: 1px solid rgba(33, 78, 62, 0.2);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

/* 麻将牌图标替代花朵符号 */
.tile-glyph {
  display: inline-block;
  width: 15px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  position: relative;
  vertical-align: -4px;
  margin-right: 2px;
}
.tile-glyph::after {
  content: "";
  position: absolute;
  inset: 4px 4px auto 4px;
  height: 2px;
  background: currentColor;
  opacity: .55;
  box-shadow: 0 4px 0 rgba(33,78,62,.35);
}

/* 主页精简：去掉大标题后收紧留白 */
.hero-copy { padding-top: 64px; }
.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 6px 0 26px;
}
.hero .actions { margin-bottom: 18px; }

/* 文件选择：彻底隐藏原生控件（浏览器语言决定其文字，无法翻译） */
input[type="file"] {
  display: none !important;
}

/* 三扇门 */
.doors h2 { margin-bottom: 26px; }

.door-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.door {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdf8;
}

.door-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--autumn-accent);
}

.door h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.door p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.door .button {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .door-grid { grid-template-columns: 1fr; }
}

/* ================= 首页 V1：品牌叙事 ================= */
.why-head { max-width: 720px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
}
.why-item { border-top: 1px solid var(--line); padding-top: 18px; }
.why-number { font-size: 11px; letter-spacing: .18em; color: var(--accent); }
.why-item h3 { font-size: 24px; margin: 10px 0 8px; }
.why-item p { font-size: 14px; line-height: 1.65; color: var(--muted); }

.steps-section { background: var(--cream); padding: 84px 0; margin-top: 20px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 44px 0 40px;
}
.step { border-top: 1px solid rgba(41,40,38,.18); padding-top: 18px; }
.step-number { font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.step h3 { font-size: 24px; margin: 10px 0 8px; }
.step p { font-size: 14px; line-height: 1.65; color: var(--muted); }

.explore-list { list-style: none; margin: 40px 0 0; padding: 0; }
.explore-list li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.explore-list li:last-child { border-bottom: 1px solid var(--line); }
.explore-index { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.explore-list h3 { font-size: 20px; margin: 0 0 4px; }
.explore-list p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 64ch; }

.creation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 40px;
}
.creation-media {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, #f1ece1 0 10px, #ece5d6 10px 20px);
}
.creation-media span {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a9284;
}
.creation-tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 16px 0 6px; }
.creation h3 { font-size: 21px; margin: 0 0 6px; }
.creation p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.creations .note { margin-top: 26px; }

.story-section { background: var(--cream); padding: 90px 0; margin-top: 30px; }
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.story-art {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #eae3d4 0 12px, #e4dbc9 12px 24px);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9a9284;
}
.story-copy h2 { font-size: 40px; line-height: 1.15; margin: 10px 0 18px; }
.story-copy p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.story-closing { color: var(--ink) !important; font-weight: 600; margin-top: 22px !important; }

.final-cta { padding: 96px 0 60px; text-align: center; }
.final-cta h2 { font-size: 44px; line-height: 1.12; margin: 12px auto 16px; max-width: 18ch; }
.final-cta .section-note { margin: 0 auto 28px; }
.signature { margin-top: 40px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }

@media (max-width: 900px) {
  .why-grid, .steps-grid, .creation-grid { grid-template-columns: 1fr; gap: 26px; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .explore-list li { grid-template-columns: 40px 1fr; }
  .explore-list .text-link { grid-column: 2; }
  .story-copy h2, .final-cta h2 { font-size: 30px; }
  .steps-section, .story-section { padding: 56px 0; }
}

/* 新版首屏标题 */
.hero h1 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 10px 0 18px;
  max-width: 16ch;
}

/* ===== 品牌 tokens 落地：红为主 CTA，粉仅点缀 ===== */
:root {
  --brand-red: #CB0E2B;
  --brand-red-hover: #AA0A24;
  --brand-pink: #FC9CB0;
  --brand-ivory: #FAF8F4;
  --brand-blush: #F3EAE6;
  --brand-charcoal: #292526;
  --brand-text: #66595B;
}

.button,
button.button {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #FFFFFF !important;
}

.button:hover,
button.button:hover {
  background: var(--brand-red-hover) !important;
  border-color: var(--brand-red-hover) !important;
}

.button.outline {
  background: transparent !important;
  color: var(--brand-charcoal) !important;
  border: 1px solid var(--brand-charcoal) !important;
}

.button.outline:hover {
  background: var(--brand-charcoal) !important;
  color: #FFFFFF !important;
}

.eyebrow,
.door-tag,
.why-number,
.step-number,
.creation-tag,
.explore-index {
  color: var(--brand-red) !important;
}

a,
.text-link {
  text-underline-offset: 3px;
}

.topbar {
  background: var(--brand-blush) !important;
}

::selection {
  background: var(--brand-pink);
  color: var(--brand-charcoal);
}

/* 四大优势：4 栏 → 移动 1 栏 */
.why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .why-grid { grid-template-columns: 1fr; } }

/* 品牌宣言 */
.manifesto { padding: 90px 0; text-align: center; }
.manifesto h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.08; max-width: 18ch; margin: 0 auto 16px; }
.manifesto p { font-size: 15px; color: var(--brand-text); max-width: 52ch; margin: 0 auto; }

/* 导航项保持纯文字，不要按钮化 */
.header-inner nav a {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  color: var(--brand-charcoal) !important;
  font-weight: 400;
}

.header-inner nav a.current {
  color: var(--brand-red) !important;
  box-shadow: inset 0 -1px 0 var(--brand-red);
}

.header-cta {
  background: var(--brand-red) !important;
  color: #fff !important;
}

.header-cta:hover {
  background: var(--brand-red-hover) !important;
}

/* 可选字段折叠区 */
.optional-fields { display: grid; gap: 14px; margin: 6px 0 10px; }
.optional-toggle {
  background: none;
  border: 0;
  padding: 0;
  margin: 4px 0 14px;
  font: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--brand-red);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 作品图：填了 image 就铺满卡片 */
.creation-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background: #f1ece1;
}

/* ============================================================
   定制路径页（/custom/artwork、/custom/design）
   折叠的文件要求 + 底部上传 / 咨询入口
   ============================================================ */

/* 文件要求：默认收起，只留一行标题，点开才展开规范明细 */
.details-fold details {
  max-width: 880px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.details-fold summary {
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--ink);
}

.details-fold summary:hover {
  color: var(--brand-red);
}

.details-fold summary span {
  flex: none;
  font-family: var(--sans);
  font-size: 20px;
  color: var(--brand-red);
}

.details-fold details[open] summary {
  border-bottom: 1px solid var(--line);
}

/* 展开后由 summary 的下边框当分隔线，规格表不再画第二条 */
.details-fold .spec-list {
  margin-top: 0;
  border-top: 0;
}

/* 底部入口：上传图稿，或先带着想法来聊 */
.path-cta {
  border-top: 1px solid var(--line);
}

.path-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.14;
}

.path-cta > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   关于页：品牌故事与使命
   ============================================================ */

/* 故事有八段，配图与文字顶端对齐，不再垂直居中 */
.about-story {
  align-items: start;
}

/* 配图跟着滚动停在视野里，右侧长文下方不留一大片空白 */
.about-story > .media-slot,
.about-story > img {
  position: sticky;
  top: 24px;
}

@media (max-width: 800px) {
  .about-story > .media-slot,
  .about-story > img {
    position: static;
  }
}

.about-mission {
  max-width: 880px;
}

/* 使命是独立区块，标题沿用站点 h2 字号，只收紧下边距 */
.about-mission h2 {
  margin: 0 0 18px;
}

.about-mission p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

/* ============================================================
   响应式回归修复（390 / 768）
   ============================================================ */

/* 390 页头：导航常驻后仍带着 32px 的导航间距和 32px 底部内边距，
   五个链接被挤成两行，页头高达 194px。收紧内边距，并在 480 以下
   压缩字号与间距，让导航回到一行。 */
@media (max-width: 900px) {
  .header-inner {
    min-height: 0 !important;
    padding-block: 10px 12px !important;
    row-gap: 6px;
  }

  .header-inner #primary-nav {
    row-gap: 4px;
  }
}

@media (max-width: 480px) {
  .header-inner #primary-nav {
    gap: 8px;
    flex-wrap: nowrap;
    font-size: 12px;
  }

  .header-inner #primary-nav a {
    font-size: 12px;
    padding-block: 12px !important;
  }
}

/* 文件选择：全站为了隐藏浏览器原生控件把 input[type=file] 设为 display:none，
   但 /design/builder 没有像询盘表单那样的 .file-button 替代入口，
   导致上传按钮完全不可见、无法选文件。这里只给配置器恢复原生控件。 */
#builder-form input[type="file"] {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
}

#builder-form input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: 10px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* 询盘表单的“Choose files”标签也补到 40px 触控高度 */
.file-button {
  min-height: 40px;
}

/* 询盘表单在 481–900：app.js 把 company / quantity / budget / parts
   移进 .optional-fields 后，整个 shell 只占两列网格中的一格，右半边空白。
   让 shell 的 children 直接参与表单网格；mode 固定回第二行右侧，
   parts 与折叠按钮占满整行。 */
@media (min-width: 481px) and (max-width: 900px) {
  .form-grid:has(> .optional-fields) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid > .optional-fields {
    display: contents;
  }

  .optional-fields[hidden] {
    display: none !important;
  }

  .form-grid > .optional-fields > fieldset,
  .form-grid > .optional-fields > .optional-toggle {
    grid-column: 1 / -1;
  }

  .form-grid > label:has(> select[name="mode"]) {
    grid-column: 2;
    grid-row: 2;
  }

  /* quantity 被移走后，第二个 form-grid 只剩设计状态一个字段，别让它半宽 */
  .form-grid:has(> label:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 作品区：说明文字不再与卡片标签重叠 */
.creations .note {
  position: static !important;
  display: block;
  margin: 26px 0 0 !important;
  clear: both;
}

.creation-tag { margin-top: 18px; }

/* QA 修复（2026-11-21）：09-overrides 里给 .creations .creation-img 加了 height:100%，
   图片被拉到整张卡片高度，把标签/标题/正文挤出卡片，压到下一张作品图和区块说明上。
   这里让作品图按 4:5 自适应高度，卡片高度重新由内容决定。 */
.creations .creation-img {
  height: auto;
}

/* 无图占位：只留品牌色底板 + 麻将牌标记，不显示任何占位文字 */
.media-slot-empty {
  display: grid !important;
  place-items: center;
  background: linear-gradient(135deg, #F3EAE6 0%, #FAF8F4 60%, #F3EAE6 100%) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(41, 37, 38, 0.06);
}

.media-slot-mark {
  width: 34px;
  height: 46px;
  border-radius: 9px;
  border: 1.5px solid rgba(203, 14, 43, 0.28);
  position: relative;
}

.media-slot-mark::after {
  content: "";
  position: absolute;
  inset: 9px 7px auto 7px;
  height: 2px;
  background: rgba(203, 14, 43, 0.24);
  box-shadow: 0 7px 0 rgba(203, 14, 43, 0.16);
}

.media-slot-label {
  display: none;
}

/* 首页节奏收紧：宣言 → 作品 */
.manifesto {
  padding: 68px 0 34px;
}

.manifesto h2 {
  margin-bottom: 14px;
}

.manifesto p {
  max-width: 46ch;
  margin-inline: auto;
}

.creations {
  padding: 26px 0 76px;
}

.creations .section-note {
  margin-bottom: 0;
}

.creation-grid {
  margin-top: 30px;
  gap: 22px;
}

.creations .note {
  margin-top: 22px !important;
  font-size: 11.5px;
}

/* 作品图与文字的间距 */
.creation-tag {
  margin: 14px 0 4px;
}

.creation h3 {
  margin-bottom: 4px;
}

.creation .text-link {
  margin-top: 10px;
  display: inline-block;
}

.why {
  padding-top: 64px;
}

/* ================= 移动端专项优化 ================= */
@media (max-width: 640px) {
  /* 版式节奏 */
  .section { padding-block: 52px; }
  .manifesto { padding: 48px 0 24px; }
  .creations { padding: 18px 0 56px; }
  .why { padding-top: 44px; }
  .final-cta { padding: 60px 0 40px; }
  .story-section { padding: 48px 0; }
  .steps-section { padding: 48px 0; }

  /* 标题层级 */
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .section > h2, .why h2, .final-cta h2 { font-size: 28px; line-height: 1.15; }
  .manifesto h2 { font-size: 26px; }
  .story-copy h2 { font-size: 26px; }
  .hero-lead { font-size: 16px; }

  /* 抬头导航：一行放不下就两行，字号收小 */
  .header-inner nav a { font-size: 12.5px; }
  .header-inner nav { gap: 10px 14px; }

  /* 按钮触控区 */
  .button, .button.outline, a.button { min-height: 46px; padding: 12px 18px; }

  /* 作品卡：图片比例不变，文字更紧凑 */
  .creation-grid { gap: 18px; }
  .creation h3 { font-size: 19px; }

  /* 政策/长文阅读宽度 */
  .policy-body, .policy article, .legal, .prose { max-width: 34em; font-size: 15px; line-height: 1.72; }

  /* 规格表：标签与值上下排 */
  .spec-list, .fact-table { display: block; }
  .spec-list div, .fact-table div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 0;
  }

  /* 价格阶梯表可横向滚动而不是撑破 */
  .tier-table, .tier-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .header-inner nav a { font-size: 12px; }
}

/* 首屏主图：按容器铺满，不留上下空白 */
.hero-image {
  aspect-ratio: auto !important;
  min-height: 560px;
  overflow: hidden;
}

.hero-image img,
.hero-collage img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-collage figcaption {
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-image, .hero-image img, .hero-collage img {
    min-height: 320px;
    max-height: 420px;
  }
}

/* About 车间视频 */
.workshop-video {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #000;
  display: block;
}

/* About 故事图：海报类图片按 16:9 裁切，避免文字被压扁 */
.about-story img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 首页 OUR STORY：纯文字居中排版 */
.story-grid-text {
  grid-template-columns: minmax(0, 720px) !important;
  justify-content: center;
  text-align: left;
}

.story-grid-text .story-copy {
  max-width: 720px;
}

/* 页脚 WhatsApp 账号链接 */
.contact-whatsapp-link {
  display: inline-block;
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 6px;
}

.contact-whatsapp-link:hover {
  color: var(--brand-red);
}

/* 邮箱地址必须始终可见（之前 1279px 以下被隐藏，只剩一个空图标） */
@media (max-width: 1279px) {
  .header-contact-email span {
    display: inline !important;
  }

  .header-contact-email {
    min-width: 0;
  }
}

/* 邮箱与 WhatsApp 颜色/可读性 */
.header-contact a,
.direct-contact a,
.header-contact-email span {
  color: var(--ink) !important;
  opacity: 1 !important;
}

.header-contact a:hover,
.direct-contact a:hover {
  color: var(--brand-red) !important;
}

/* 全站邮箱链接：始终可见、可读 */
.contact-email,
.direct-contact-email,
.header-contact-email,
.company-contact-details a,
footer a[href^="mailto:"],
aside a[href^="mailto:"] {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--ink) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email:hover,
.direct-contact-email:hover,
.company-contact-details a:hover {
  color: var(--brand-red) !important;
}
