/* 成衣线组件（方案 docs/garment-line-plan-2026-11-11.md §4.3）。
   只加新类、只用 maoxing-ds.css 已有的 token，不新增颜色。成衣页在 maoxing-ds.css 之后引用本文件。
   上线时 Codex 需把本文件加入 deploy/publish.ps1 的 $DesignRuntimeAssets 白名单。 */

/* 当前栏目：主导航里本栏目链接加一条金色下划线 */
.header-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: .45em; text-decoration-thickness: 1px; }

/* 成衣图是 1:1 平铺图，所有视口都按正方形放，避免 4:5 裁掉衣边 */
.product-media--square { aspect-ratio: 1; }
.product-media--square img { object-fit: contain; background: var(--ivory-50); }
.card-media--square { aspect-ratio: 1; }
/* 成衣款数少（首批 1–2 款）：卡片居中、限宽，不贴左排在三栏里 */
@media (min-width: 48rem) { .cards--garments { grid-template-columns: repeat(auto-fit, minmax(16rem, 24rem)); justify-content: center; } }

/* 成衣品名比面料名长：标题降一档；数据里的 titleLines 按词分段，每段不断行 */
.product-head .garment-title { font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem); }
.garment-title .nowrap { display: inline-block; }

/* 审阅稿专用：未确认字段显示「待补」。正式页不输出该类 */
.draft-pending { color: var(--umber-600); font-size: var(--fs-small); font-style: italic; }

/* 款号下的一句定位 */
.garment-tagline { margin: 0 0 var(--s-5); max-width: 34rem; color: var(--umber-600); }

/* 卖点：细金线分隔的短句列表 */
.highlights { margin: 0 0 var(--s-6); padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.highlights li { padding-left: 1.1em; position: relative; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .78em; width: .5em; border-top: 1px solid var(--gold-500); }

/* 颜色色块：色名是文字，不只靠颜色区分 */
.swatch-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); }
.swatch-row li { display: inline-flex; align-items: center; gap: var(--s-2); }
.swatch-dot { width: 1.125rem; height: 1.125rem; border: 1px solid var(--line-soft); border-radius: 50%; flex: none; }

/* 现货 / 定制双栏 */
.mode-split { display: grid; gap: var(--s-7); max-width: var(--wrap); margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 48rem) { .mode-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-9); } }
.mode-split li { padding-top: var(--s-5); border-top: 1px solid var(--line-gold); }
.mode-split h3 { margin: 0 0 var(--s-4); font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--umber-600); }
.mode-split p { margin: 0 0 var(--s-3); line-height: 1.85; }
.mode-split .mode-extra { color: var(--umber-600); font-size: var(--fs-small); }

/* 面料到成衣四步 */
.process-steps { display: grid; gap: var(--s-6); max-width: var(--wrap); margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 36rem) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .process-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.process-steps li { counter-increment: step; padding-top: var(--s-5); border-top: 1px solid var(--line-gold); }
.process-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display-en); font-size: var(--fs-h3); color: var(--gold-300); margin-bottom: var(--s-3); }
.process-steps .step-name { display: block; font-size: var(--fs-lead); }
.process-steps .step-where { display: block; margin-top: var(--s-2); font-size: var(--fs-small); color: rgba(245,240,231,.82); }

/* 尺码表：手机横向滚动、首列固定 */
.size-table-wrap { max-width: var(--wrap); margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: lining-nums tabular-nums; }
.size-table caption { text-align: left; padding-bottom: var(--s-3); color: var(--umber-600); }
.size-table th, .size-table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.size-table thead th { border-bottom-color: var(--line-gold); font-weight: 500; color: var(--umber-600); }
.size-table tbody th { position: sticky; left: 0; background: var(--ivory-100); font-weight: 500; }

/* 详情页图廊：多于一张图时才输出 */
.gallery-thumbs { display: flex; gap: var(--s-2); margin-top: var(--s-3); padding: 0; list-style: none; overflow-x: auto; }
.gallery-thumbs button { width: 4.5rem; aspect-ratio: 1; padding: 0; border: 1px solid var(--line-soft); background: var(--ivory-50); cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold-500); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 面料页上的「用这款面料做的成衣」小卡（面料款号确认后才用） */
.cross-line-card { display: grid; grid-template-columns: 5rem 1fr; gap: var(--s-4); align-items: center; max-width: 34rem; padding: var(--s-4); border: 1px solid var(--line-gold); text-decoration: none; color: inherit; }
.cross-line-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
