/* 江南官网改版：暖白阅读区、深色导航、红色主视觉。 */
@font-face { font-family: "JN Display"; src: url("/assets/display.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --paper: #f1eee8;
  --paper-2: #e8e4dc;
  --card: #faf8f4;
  --ink: #15171a;
  --ink-2: #4a4d52;
  --ink-3: #7b7e83;
  --line: #d5d0c6;
  --night: #0f1214;
  --night-2: #1a1e21;
  --night-line: #2c3136;
  --red: #c4162b;
  --red-dark: #a10f21;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --display: "JN Display", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* 双语：两种语言同在页面，按 html[lang] 显示其一。 */
html[lang="en"] [lang="zh-CN"]:not(button), html[lang="zh-CN"] [lang="en"]:not(button) { display: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 880px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 84px); }
h2 { font-size: clamp(30px, 3.6vw, 52px); }
h3 { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -0.005em; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2 { letter-spacing: 0; line-height: 1.16; font-weight: 700; }
/* 中文标题只在标点、空格和文案里的“|”断行点处换行，避免把词拆开；实在放不下再兜底任意断行。 */
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { word-break: keep-all; overflow-wrap: anywhere; }
.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
html[lang="zh-CN"] .lead { max-width: 30em; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
html[lang="zh-CN"] .kicker { letter-spacing: 0.2em; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--red); letter-spacing: 0.02em; }
.muted { color: var(--ink-3); }

/* 按钮 */
.arrow { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
/* 按钮悬停：底色从左向右扫入（--sweep 为扫入色），文字颜色随之切换。 */
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 24px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: color .35s, border-color .35s; --sweep: var(--red); }
.button::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--sweep); transform: scaleX(0); transform-origin: right center; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.button:hover::before, .button:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.button:hover { border-color: var(--sweep); }
.button:hover .arrow, .text-link:hover .arrow, a:hover > .arrow, a:hover .card-caption .arrow { transform: translate(2px, -2px); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost { --sweep: var(--ink); }
.button.ghost:hover { color: #fff; }
.button.light { background: #fff; color: var(--ink); border-color: #fff; }
.button.light:hover { color: #fff; }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px; background: var(--red); border-color: var(--red); }
.button.small { --sweep: #fff; }
.button.small:hover { color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: none; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.text-link { border-bottom-color: transparent; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: color .25s, background-size .45s cubic-bezier(.2, .7, .2, 1); }
.text-link:hover { color: var(--red); animation: underline-run .7s cubic-bezier(.7, 0, .2, 1); }
/* 下划线先向右收起，再从左侧重新画出 */
@keyframes underline-run {
  0% { background-size: 100% 1px; background-position: right bottom; }
  50% { background-size: 0 1px; background-position: right bottom; }
  50.01% { background-size: 0 1px; background-position: left bottom; }
  100% { background-size: 100% 1px; background-position: left bottom; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* 页眉 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; color: #fff; }
.brand img { width: 46px; height: auto; filter: brightness(0) invert(1); }
#site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
#site-nav > a, .nav-item > a { display: inline-flex; align-items: center; height: 68px; padding: 0 14px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: #d9dbdd; border-bottom: 2px solid transparent; border-top: 2px solid transparent; }
#site-nav > a:hover, .nav-item:hover > a, #site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.mega { position: absolute; left: 0; right: 0; top: 68px; background: var(--night-2); border-top: 1px solid var(--night-line); visibility: hidden; opacity: 0; transition: opacity .18s, visibility .18s; }
.has-menu:hover .mega, .has-menu:focus-within .mega { visibility: visible; opacity: 1; }
.mega-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding-block: 36px 44px; }
.mega a { display: block; padding: 5px 0; font-size: 14.5px; color: #c3c6c9; text-decoration: none; }
.mega a:hover { color: #fff; }
.mega .menu-group { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--night-line); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; border: 1px solid var(--night-line); }
.lang button { background: none; border: 0; padding: 7px 10px; font-size: 12.5px; font-weight: 600; color: #9da1a5; cursor: pointer; }
html[lang="en"] .lang [data-language="en"], html[lang="zh-CN"] .lang [data-language="zh-CN"] { background: #fff; color: var(--ink); }
.nav-toggle { display: none; }

/* 首页首屏 */
/* 左栏宽度 = 页边留白 + 版心的 45%，宽屏下文字区不再随屏幕变宽而被挤窄。 */
.hero { display: grid; grid-template-columns: minmax(0, max(41.667%, calc((100% - var(--wrap)) / 2 + var(--wrap) * 0.45))) minmax(0, 1fr); min-height: min(calc(100vh - 68px - 132px), 720px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(28px, 4vw, 72px) 56px max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.hero-copy h1 { font-size: clamp(44px, 5.4vw, 84px); margin-bottom: 28px; }
html[lang="zh-CN"] .hero-copy h1 { font-size: clamp(40px, 4.8vw, 76px); }
.hero-image { position: relative; min-height: 420px; background: var(--night); overflow: hidden; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-image figcaption { position: absolute; right: 0; bottom: 0; padding: 8px 14px; background: rgba(15, 18, 20, .72); color: #d9dbdd; font-size: 11.5px; }

.facts { background: var(--night); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 30px 28px 32px 0; }
.facts-grid > div + div { padding-left: 28px; border-left: 1px solid var(--night-line); }
.facts-grid strong { display: block; font-family: var(--display); font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.facts-grid span span, .facts-grid > div > span { font-size: 13.5px; color: #a9adb1; }
.facts-grid > div > span { display: block; margin-top: 8px; }

/* 版块 */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section.flush { padding-top: 0; }
.section.tinted { background: var(--paper-2); }
.section.dark { background: var(--night); color: #fff; }
.section.dark .lead, .section.dark p { color: #b4b8bc; }
.section.dark .kicker { color: #ff5c6e; }
.section.dark .num { color: #ff5c6e; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.split > div:first-child h2 { margin-bottom: 24px; }
@media (min-width: 1081px) {
  /* 左栏以红色小标题开头时，右栏下移一个小标题高度，与大标题顶边对齐。 */
  .split:has(> :first-child > .kicker:first-child) > :last-child { margin-top: calc(12.5px * 1.6 + 18px); }
}
.split > div:first-child .text-link { margin-top: 28px; }

/* 产品卡片 */
.product-card { display: flex; flex-direction: column; background: var(--card); text-decoration: none; overflow: hidden; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
@media (hover: hover) { .product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21, 23, 26, .12); } }
.product-card figure { position: relative; flex: 1; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #e3dfd7; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.product-card img.cutout { object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.product-card:hover img { transform: scale(1.06); }
.card-caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 20px 20px; }
.card-caption h3 { font-family: var(--display); font-size: 21px; font-weight: 750; letter-spacing: -0.01em; margin-top: 4px; }
.card-caption p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.card-caption .arrow { width: 18px; height: 18px; margin-bottom: 4px; color: var(--red); }
.range-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 16px; }
.range-grid .product-card figure { aspect-ratio: auto; height: 240px; flex: none; }
.range-grid .wide { grid-column: span 2; }
.range-grid .big { grid-column: span 2; grid-row: span 2; }
.range-grid .big figure { flex: 1; height: auto; }
.range-grid .big h3 { font-size: 28px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* 工序（深色） */
/* 工序区：标题在上，图片与工序表等高并排，上下边都对齐。 */
.factory-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: stretch; }
.factory-grid figure { position: relative; min-height: 360px; overflow: hidden; background: var(--night-2); }
.factory-grid figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 列表用 subgrid：标题列按最长标题自动定宽，中英文都不会留出大块空白。 */
.process-list { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 28px; align-content: space-between; }
.process-list li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 8px; align-items: baseline; align-content: center; padding: 22px 0; border-top: 1px solid var(--night-line); }
.process-list li:last-child { border-bottom: 1px solid var(--night-line); }
.process-list h3 { font-family: var(--display); font-size: 22px; font-weight: 750; }
.process-list p { font-size: 15px; }

/* 定制 */
.custom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.custom-grid figure { aspect-ratio: 4 / 3; overflow: hidden; background: #e3dfd7; margin-bottom: 20px; }
.custom-grid img { width: 100%; height: 100%; object-fit: cover; }
.custom-grid h3 { font-family: var(--display); font-size: 21px; font-weight: 750; margin-bottom: 8px; }
.custom-grid p { font-size: 15px; color: var(--ink-2); }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { padding: 28px 28px 8px 0; border-top: 2px solid currentColor; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.section.dark .steps li + li { border-left-color: var(--night-line); }
.steps .num { display: block; font-size: 15px; margin-bottom: 36px; }
.steps h3 { font-family: var(--display); font-size: 22px; font-weight: 750; margin-bottom: 10px; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* 面料与问答 */
.fabric-rows { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 28px; }
.fabric-rows article { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 8px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.fabric-rows article:last-child { border-bottom: 1px solid var(--line); }
.fabric-rows h3 { font-family: var(--display); font-size: 24px; font-weight: 750; }
.fabric-rows p { font-size: 15px; color: var(--ink-2); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; color: var(--red); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 62ch; }

/* 行动区与页脚 */
/* 询价区与页脚连成一整块深色收尾，红色只用于按钮，避免浅色正文后突然出现大面积红色。 */
.cta { background: var(--night); color: #fff; padding-block: clamp(64px, 8vw, 112px) clamp(56px, 6vw, 80px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: end; }
.cta h2 { font-size: clamp(36px, 4.6vw, 68px); margin-bottom: 18px; }
.cta p { font-size: 18px; max-width: 44ch; color: #b4b8bc; }
.cta .contact-line { color: #d9dbdd; }
.cta .contact-line:hover { color: #fff; }
.button.accent { background: var(--red); border-color: var(--red); color: #fff; }
.button.accent { --sweep: #fff; }
.button.accent:hover { color: var(--ink); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-line { font-size: 16px; font-weight: 600; text-underline-offset: 4px; }
.site-footer { background: var(--night); color: #c3c6c9; padding-block: 0 32px; font-size: 14.5px; }
.site-footer > .wrap { padding-top: 56px; border-top: 1px solid var(--night-line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr); gap: 40px 48px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-brand .muted { font-size: 13px; color: #8a8e92; }
.site-footer h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-links { display: grid; gap: 9px; }
.footer-links.two { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 12.5px; color: #8a8e92; }

/* 内页首屏 */
.page-hero { padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(40px, 5vw, 76px); margin-bottom: 24px; max-width: 14em; }
html[lang="zh-CN"] .page-hero h1 { font-size: clamp(36px, 4.4vw, 68px); }
.page-hero-inner { display: grid; gap: 48px 72px; align-items: center; }
.page-hero.with-image .page-hero-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.page-hero-image { aspect-ratio: 3 / 2; overflow: hidden; background: #e3dfd7; }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* 目录 */
.catalog-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 16px; border-block: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a { padding: 10px 16px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { background: var(--ink); color: #fff; }
.catalog-bar input { width: min(100%, 280px); padding: 10px 14px; border: 1px solid var(--line); background: var(--card); }
.catalog-count { margin: 20px 0; font-size: 14px; color: var(--ink-3); }
.empty { padding: 72px 0; text-align: center; }
.empty h2 { font-size: 32px; margin-bottom: 12px; }
.empty .button { margin-top: 24px; }
[hidden] { display: none !important; }

/* 详情 */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 24px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; padding-bottom: 8px; }
.gallery-main { display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #e3dfd7; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.cutout { object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumbs button { position: relative; width: 132px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; opacity: .62; transition: opacity .2s; }
.thumbs button:hover, .thumbs button[aria-pressed="true"] { opacity: 1; }
.thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; outline: 2px solid transparent; outline-offset: -2px; background: #e3dfd7; }
.thumbs button[aria-pressed="true"] img { outline-color: var(--ink); }
.thumbs span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.product-info { position: sticky; top: 100px; }
.product-info h1 { font-size: clamp(40px, 4.4vw, 68px); margin-bottom: 20px; }
.facts-table { margin-top: 32px; border-top: 1px solid var(--ink); }
.facts-table > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts-table dt { color: var(--ink-3); }
.facts-table dd { font-weight: 600; }
.facts-table.large { margin-top: 0; }
.facts-table.large > div { padding: 20px 0; font-size: 17px; }
.options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.options li { display: flex; flex-direction: column; gap: 48px; min-height: 168px; padding: 22px; background: var(--card); border-top: 2px solid var(--ink); font-family: var(--display); font-size: 22px; font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; }
.brief { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px 80px; align-items: center; }
.brief figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e3dfd7; }
.brief figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.brief h2 { margin-bottom: 20px; }
.brief .button { margin-top: 32px; }
.checklist { margin-top: 28px; counter-reset: item; }
.checklist li { counter-increment: item; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: "0" counter(item); font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--red); }
.callout { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--red); background: var(--card); }
.callout h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.callout p { font-size: 15px; color: var(--ink-2); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.three article { padding: 28px 32px 8px 0; border-top: 2px solid var(--ink); }
.three article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.three h3 { font-family: var(--display); font-size: 24px; font-weight: 750; margin-bottom: 12px; }
.three p { font-size: 15.5px; color: var(--ink-2); }
.three.boxed h3 { font-size: 34px; }

/* 应用分类、资料入口、视频占位 */
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.group-card { display: block; background: var(--card); text-decoration: none; overflow: hidden; }
.group-card figure { aspect-ratio: 16 / 9; overflow: hidden; }
.group-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.group-card:hover img { transform: scale(1.04); }
.group-card > div { padding: 26px 28px 30px; }
.group-card h2 { font-size: 30px; margin-bottom: 10px; }
.group-card p { color: var(--ink-2); }
.group-items { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink) !important; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card { position: relative; display: block; padding: 32px 72px 36px 32px; background: var(--card); border-top: 2px solid var(--ink); text-decoration: none; }
.info-card h2 { font-size: 30px; margin-bottom: 10px; }
.info-card p { color: var(--ink-2); }
.info-card .arrow { position: absolute; right: 28px; top: 36px; width: 22px; height: 22px; color: var(--red); }
.video-slot { display: grid; place-items: center; align-content: center; gap: 14px; aspect-ratio: 21 / 9; background: var(--paper-2); border: 1px dashed var(--line); color: var(--ink-3); }
.video-slot span { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--ink-3); border-radius: 50%; font-size: 20px; padding-left: 4px; }

/* 弹窗 */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(15, 18, 20, .72); }
.inquiry { width: min(100% - 32px, 560px); background: var(--paper); }
.inquiry form { display: grid; gap: 16px; padding: 36px; }
.inquiry h2 { font-size: 34px; }
.inquiry form > p { font-size: 14.5px; color: var(--ink-2); }
.inquiry label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.inquiry input, .inquiry select, .inquiry textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 400; color: var(--ink); border-radius: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inquiry .button { justify-content: center; margin-top: 4px; }
.dialog-close { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; }
.dialog-alt { font-size: 13.5px !important; }
.lightbox { max-width: none; max-height: none; width: 100vw; height: 100vh; background: rgba(15, 18, 20, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox .dialog-close { color: #fff; }

/* 平板 */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px var(--gutter) 48px; }
  .hero-image { min-height: 0; aspect-ratio: 16 / 9; }
  .factory-grid figure { min-height: 0; aspect-ratio: 16 / 9; }
  .range-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-grid, .options, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 32px; }
  .section-head, .split, .factory-grid, .cta-inner, .brief, .product, .page-hero.with-image .page-hero-inner { grid-template-columns: 1fr; }
  .brief.reverse figure { order: -1; }
  .product-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; margin-left: auto; padding: 8px 14px; background: none; border: 1px solid var(--night-line); color: #fff; font-size: 14px; cursor: pointer; }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 24px; background: var(--night); border-top: 1px solid var(--night-line); max-height: calc(100vh - 68px); overflow: auto; }
  #site-nav.open { display: flex; }
  #site-nav > a, .nav-item > a { height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--night-line); font-size: 17px; }
  .mega { position: static; visibility: visible; opacity: 1; background: none; border: 0; }
  .mega-inner { width: 100%; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 18px; }
  .header-inner { gap: 14px; }
}

/* 手机 */
@media (max-width: 680px) {
  .header-actions .button { display: none; }
  .brand span { font-size: 17px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: 22px 16px 22px 0; }
  .facts-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .facts-grid > div + div { padding-left: 16px; }
  .range-grid, .catalog-grid, .custom-grid, .options, .steps, .three, .group-grid, .info-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .range-grid .wide, .range-grid .big { grid-column: auto; grid-row: auto; }
  .range-grid .product-card figure, .range-grid .big figure { height: auto; aspect-ratio: 4 / 3; flex: none; }
  .steps li, .steps li + li, .three article, .three article + article { padding-left: 0; border-left: 0; padding-bottom: 28px; }
  .steps .num { margin-bottom: 16px; }
  .options li { min-height: 0; gap: 20px; }
  .process-list, .fabric-rows { display: block; }
  .process-list li, .fabric-rows article { grid-template-columns: 36px 1fr; }
  .process-list p, .fabric-rows p { grid-column: 2; }
  .fabric-rows .tag { grid-column: 1 / -1; }
  .fabric-rows article { grid-template-columns: 1fr; }
  .fabric-rows p { grid-column: auto; }
  .thumbs button { width: 104px; }
  .faq-list summary { font-size: 17px; }
  .faq-list details p { padding-right: 0; }
  .inquiry form { padding: 28px 20px; }
  .catalog-bar input { width: 100%; font-size: 16px; }

  /* 产品筛选：单行横向滑动，不再折成两行 */
  .catalog-bar .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .catalog-bar .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; padding: 10px 14px; }
  /* —— 手机端专项适配 —— */
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; gap: 16px; }
  .kicker { margin-bottom: 12px; }
  .tag { font-size: 12px; }

  /* 页头：语言切换与菜单按钮加大点击区 */
  .lang button { min-height: 40px; padding: 0 12px; }
  .nav-toggle { min-height: 40px; }

  /* 首屏：图片改 4:3，说明条缩小 */
  .hero-copy { padding: 40px var(--gutter) 36px; }
  .hero-copy h1 { margin-bottom: 18px; }
  .hero .actions, .hero-copy .actions { gap: 10px; }
  .hero-image { aspect-ratio: 4 / 3; }
  .hero-image figcaption { padding: 6px 10px; font-size: 11px; }

  /* 产品卡：两列紧凑排布，十个品类从 10 屏缩到 5 行 */
  .range-grid, .catalog-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .range-grid .product-card figure, .range-grid .big figure, .catalog-grid .product-card figure { aspect-ratio: 1 / 1; height: auto; flex: none; }
  .card-caption { padding: 12px 12px 14px; gap: 8px; }
  .card-caption .tag { font-size: 11px; letter-spacing: 0.06em; }
  .card-caption h3, .range-grid .big h3 { font-size: 16px; line-height: 1.25; }
  .card-caption p { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-caption .arrow { display: none; }

  /* 定制项与相关产品：横向滑动，露出下一张提示可滑 */
  .custom-grid, .catalog-grid.related { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .custom-grid::-webkit-scrollbar, .catalog-grid.related::-webkit-scrollbar { display: none; }
  .custom-grid > *, .catalog-grid.related > * { scroll-snap-align: start; }
  .custom-grid figure { margin-bottom: 14px; }
  .custom-grid h3 { font-size: 18px; }
  .custom-grid p { font-size: 14px; }
  .catalog-grid.related .product-card figure { aspect-ratio: 4 / 3; }

  /* 合作流程：序号与标题同行，压缩竖向空白 */
  .steps li, .steps li + li { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; padding: 18px 0; border-top: 1px solid currentColor; }
  .steps li:first-child { border-top-width: 2px; }
  .steps .num { margin: 0; }
  .steps h3 { font-size: 18px; margin-bottom: 4px; }
  .steps p { grid-column: 2; font-size: 14px; }
  .process-list li { padding: 16px 0; }
  .process-list h3 { font-size: 18px; }
  .process-list p { font-size: 14px; }
  .fabric-rows article { padding: 20px 0; }
  .fabric-rows h3 { font-size: 20px; }
  /* 可沟通配置：两列小卡 */
  .options { grid-template-columns: 1fr 1fr; gap: 10px; }
  .options li { min-height: 0; gap: 14px; padding: 16px 14px; font-size: 17px; }
  .checklist li { padding: 14px 0; font-size: 16px; grid-template-columns: 36px 1fr; }
  .facts-table.large > div { padding: 14px 0; font-size: 15px; }

  /* 面包屑与联系方式：加大点击区 */
  .crumbs { gap: 0 8px; padding-block: 10px; align-items: center; }
  .crumbs a { display: inline-block; padding-block: 8px; }
  .contact-line { display: inline-block; padding-block: 8px; }
  .cta { padding-block: 48px 40px; }
  .cta h2 { font-size: 32px; }
  .cta p { font-size: 16px; }

  /* 页脚：品牌与产品通栏，公司与联系两列并排；链接行高加大便于点击 */
  .site-footer > .wrap { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .footer-links { gap: 0; }
  .footer-links a { display: block; padding-block: 8px; overflow-wrap: anywhere; }
  .footer-base { margin-top: 32px; flex-direction: column; gap: 6px; }

  /* 询价表单：16px 字号避免 iOS 聚焦时自动放大 */
  .inquiry input, .inquiry select, .inquiry textarea { font-size: 16px; }
  /* 询价弹窗在手机上全屏显示，内容可滚动 */
  .inquiry { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; overflow-y: auto; }
  .inquiry h2 { font-size: 28px; }

}
.mobile-bar { display: none; }
/* 底部询价栏：手机与平板（无右侧联系栏的宽度）显示 */
@media (max-width: 1080px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 18, 20, .96); border-top: 1px solid var(--night-line); }
  .mobile-bar .button { min-height: 46px; justify-content: center; padding: 0 18px; }
  .button.ghost-dark { background: transparent; color: #fff; border-color: #4a5056; --sweep: #fff; }
  .button.ghost-dark:hover { color: var(--ink); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body:has(#site-nav.open) .mobile-bar { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* PC 右侧悬浮联系栏：深色窄条贴右边垂直居中，悬停向左展开浅色信息卡。 */
.contact-rail { display: none; }
@media (min-width: 1081px) {
  .contact-rail { position: fixed; right: 0; top: 50%; z-index: 45; display: flex; flex-direction: column; width: 56px; background: var(--night); box-shadow: 0 12px 32px rgba(15, 18, 20, .22); transform: translate(0, -50%); animation: rail-in .7s .4s cubic-bezier(.2, .7, .2, 1) both; }
  .contact-rail button { font: inherit; }
  .rail-quote { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 12px; border: 0; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; cursor: pointer; transition: background .2s; }
  .rail-quote:hover { background: var(--red-dark); }
  .rail-icon { width: 22px; height: 22px; flex: none; }
  .rail-item { position: relative; }
  .rail-btn { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-top: 1px solid var(--night-line); background: none; color: #d9dbdd; cursor: pointer; transition: background .2s, color .2s; }
  .rail-item:hover .rail-btn, .rail-item.open .rail-btn, .rail-btn:focus-visible { background: var(--night-2); color: #fff; }
  .rail-item:hover .rail-btn::before, .rail-item.open .rail-btn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--red); }
  .rail-item.is-pending .rail-btn { color: #7d8287; }
  .rail-card { position: absolute; right: 100%; top: 50%; display: grid; gap: 4px; min-width: 248px; padding: 16px 20px 16px 18px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 36px rgba(15, 18, 20, .18); opacity: 0; visibility: hidden; transform: translate(12px, -50%); transition: opacity .22s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; }
  .rail-item:hover .rail-card, .rail-item:focus-within .rail-card, .rail-item.open .rail-card { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
  .rail-label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
  .rail-card strong { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; }
  .rail-card strong.pending { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--ink-3); }
  .rail-actions { display: flex; gap: 14px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
  .rail-actions a, .rail-actions button { padding: 0; border: 0; background: none; color: var(--ink-2); font-weight: 600; text-decoration: none; cursor: pointer; }
  .rail-actions a:hover, .rail-actions button:hover { color: var(--red); }
  .rail-qr { display: grid; place-items: center; width: 132px; height: 132px; margin: 6px 0 4px; background: #fff; border: 1px solid var(--line); }
  .rail-qr img { width: 100%; height: 100%; object-fit: contain; }
  .rail-qr.empty { border-style: dashed; color: var(--ink-3); font-size: 12px; text-align: center; padding: 12px; }
  .rail-note { font-size: 12px; color: var(--ink-3); }
  .rail-top { display: grid; place-items: center; width: 56px; height: 0; padding: 0; border: 0; background: var(--night-2); color: #d9dbdd; overflow: hidden; cursor: pointer; transition: height .3s cubic-bezier(.2, .7, .2, 1), color .2s; }
  .contact-rail.scrolled .rail-top { height: 48px; border-top: 1px solid var(--night-line); }
  .rail-top:hover { color: #fff; }
  .rail-top .rail-icon { width: 20px; height: 20px; }
}
@keyframes rail-in { from { opacity: 0; transform: translate(100%, -50%); } }

/* ===== 动效 =====
   html.motion 由页头脚本在支持且未开启“减弱动效”时添加；脚本未就绪会自动移除，保证内容可见。 */
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); background: rgba(15, 18, 20, .94); backdrop-filter: blur(10px); }

/* 首屏：文字依次升起，主图由放大缓缓归位 */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes settle { from { transform: scale(1.12); } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.motion :is(.hero-copy, .page-hero-inner > div:first-child) > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.motion :is(.hero-copy, .page-hero-inner > div:first-child) > :nth-child(2) { animation-delay: .1s; }
.motion :is(.hero-copy, .page-hero-inner > div:first-child) > :nth-child(3) { animation-delay: .2s; }
.motion :is(.hero-copy, .page-hero-inner > div:first-child) > :nth-child(n+4) { animation-delay: .3s; }
.motion .hero-image { animation: wipe 1.1s .1s cubic-bezier(.7, 0, .2, 1) both; }
.motion .hero-image img, .motion .page-hero-image img { animation: settle 2.4s .1s cubic-bezier(.2, .7, .2, 1) both; }
.motion .page-hero-image { animation: wipe 1s .15s cubic-bezier(.7, 0, .2, 1) both; }
.hero-image img { will-change: transform; }
/* 视差位移时主图上方预留余量，避免露出底色 */
@media (min-width: 1081px) { .motion .hero-image img { top: -16%; height: 116%; } }

/* 滚动出现：上浮淡入；同组元素由脚本写入 --i 依次延迟 */
.motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.motion .reveal.in { opacity: 1; transform: none; }
/* 大图：自下而上揭开并轻微缩放归位 */
.motion .reveal-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.motion .reveal-media img { transform: scale(1.15); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal-media.in { clip-path: inset(0 0 0 0); }
.motion .reveal-media.in img { transform: none; }
/* 工序与配置行悬停 */
.process-list li, .fabric-rows article { transition: padding-left .35s cubic-bezier(.2, .7, .2, 1), background-color .35s; }
@media (hover: hover) and (min-width: 1081px) {
  .process-list li:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(196, 22, 43, .14), transparent 70%); }
  .fabric-rows article:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(196, 22, 43, .07), transparent 70%); }
  .options li { transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
  .options li:hover { transform: translateY(-4px); border-top-color: var(--red); }
  .custom-grid figure img, .brief figure img, .factory-grid figure img { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
  .custom-grid article:hover figure img, .brief figure:hover img { transform: scale(1.05); }
}
.faq-list summary::after { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.faq-list details[open] summary::after { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
