/* UX SURPLUS
 * 白牌就是不做多余的表达：一种字体、黑白灰，所有内容按同一条索引线排列。
 * 全站唯一的颜色来自面料照片。
 */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}

:root {
  --paper: #f3f3f0;
  --ink: #151514;
  --ink-2: #41413d;
  --muted: #6d6d67;
  --rule: #d6d6d0;
  --night: #121211;
  --night-ink: #f0f0ec;
  --night-2: #bdbdb6;
  --night-muted: #8f8f88;
  --night-rule: #30302d;

  --sans: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;

  --index: 23vw;
  --gutter: clamp(20px, 2.8vw, 40px);
  --section: clamp(88px, 17vh, 176px);
  --ease: cubic-bezier(.2, .6, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 15px/1.95 var(--sans);
  letter-spacing: .02em;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, address { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }
#cooperation, #contact { scroll-margin-top: clamp(48px, 8vh, 80px); }
p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.skip { position: absolute; top: -80px; left: var(--gutter); z-index: 5; padding: 8px 14px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }

h1, h2 { font-weight: 300; color: var(--ink); }
h1 { font-size: clamp(33px, 4.6vw, 72px); line-height: 1.3; letter-spacing: .015em; }
h2 { font-size: clamp(24px, 2.7vw, 40px); line-height: 1.45; letter-spacing: .015em; }
h3 { font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--ink); }
.small { font-size: 12px; line-height: 1.9; color: var(--muted); }
.latin { letter-spacing: .04em; }

.js .fade { opacity: 0; transition: opacity 1.1s var(--ease); }
.js .fade.is-loaded { opacity: 1; }

/* 索引线：左边一栏放标签，所有内容从同一条线开始 */
.row { display: grid; grid-template-columns: var(--index) minmax(0, 1fr); padding-inline: var(--gutter); }
.row > :first-child { padding-right: 24px; }
.label { font-size: 13px; line-height: 1.7; color: var(--muted); }
.lead { max-width: 38em; margin-top: 1.9em; color: var(--ink-2); }

.head { display: grid; grid-template-columns: var(--index) minmax(0, 1fr); align-items: baseline; padding: clamp(20px, 3.2vh, 30px) var(--gutter) 0; }
.wordmark { font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: .16em; color: var(--ink); white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3vw, 44px); font-size: 13px; line-height: 1.5; color: var(--ink); }
.nav a { padding-block: 4px; transition: opacity .3s; }
.nav a:hover { opacity: .5; }

/* 首屏 */
.hero { padding-top: clamp(72px, 14vh, 140px); }
.hero .label { padding-top: clamp(6px, 1.4vw, 22px); }
.hero-photo { margin-top: clamp(64px, 11vh, 112px); padding-right: 0; align-items: end; }
.hero-photo figcaption { font-size: 12px; line-height: 1.9; color: var(--muted); }
.hero-photo img { background: #cfcfca; }

/* 分节 */
.section { padding-block: var(--section); }
.section + .section:not(.dark) { padding-top: 0; }
.dark + .section { padding-top: var(--section) !important; }

.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3.4vw, 52px); margin-top: clamp(52px, 7vh, 76px); padding-right: var(--gutter); }
.columns p { margin-top: .6em; font-size: 14px; color: var(--muted); }

/* 供应链能力：全站唯一的深色段落，让黑白照片和面料的颜色立起来 */
.dark { background: var(--night); color: var(--night-2); }
.dark h2, .dark h3 { color: var(--night-ink); }
.dark .label, .dark .small, .dark figcaption { color: var(--night-muted); }
.dark .lead { color: var(--night-2); }

.abilities { margin-top: clamp(72px, 11vh, 120px); }
.ability { display: grid; grid-template-columns: var(--index) minmax(0, 1fr) minmax(0, 1.28fr); padding-inline: var(--gutter); align-items: start; }
.ability + .ability { margin-top: clamp(64px, 10vh, 112px); }
.ability-text { grid-column: 2; padding-right: clamp(24px, 4vw, 64px); }
.ability-text p { margin-top: .6em; font-size: 14px; max-width: 24em; }
.ability-photo { grid-column: 3; }
.ability-photo img { background: #2a2a28; }
.ability-photo-small { width: 62%; }
.ability-photo figcaption { margin-top: 12px; font-size: 12px; line-height: 1.8; }
.dark .abilities + .row { margin-top: clamp(64px, 10vh, 112px); }
.dark .abilities + .row .small { max-width: 44em; }

/* 企业背景 */
.company-name { margin-top: .5em; color: var(--muted); font-size: 14px; }
.chain { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: clamp(56px, 8vh, 84px); padding-right: var(--gutter); font-size: 13px; color: var(--ink); }
.chain::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); }
.chain li { position: relative; padding: 16px 8px 0 0; white-space: nowrap; }
.chain li::before { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 7px; background: var(--ink); }

/* 合作沟通 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.6vw, 40px); margin-top: clamp(52px, 7vh, 76px); padding-right: var(--gutter); }
.steps .num { display: block; font-size: 13px; color: var(--muted); margin-bottom: .9em; }
.steps p { margin-top: .6em; font-size: 14px; color: var(--muted); }
.start-note { max-width: 38em; margin-top: clamp(48px, 7vh, 72px); }
.faq { margin: 1.6em var(--gutter) 2em 0; max-width: 46em; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary, .legal summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.faq summary { padding: .95em 0; color: var(--ink); }
.faq summary::-webkit-details-marker, .legal summary::-webkit-details-marker { display: none; }
.faq summary::after, .legal summary::after { content: "+"; color: var(--muted); }
.faq details[open] > summary::after, .legal[open] > summary::after { content: "−"; }
.faq details > p, .faq details > ul { padding-bottom: 1.2em; font-size: 14px; color: var(--muted); }

/* 企业联络 */
.office-label { margin-top: 2.2em; font-size: 13px; color: var(--muted); }
address { margin-top: .5em; font-size: clamp(20px, 1.9vw, 28px); font-weight: 300; line-height: 1.65; letter-spacing: .02em; color: var(--ink); }
.office-entity { margin-top: .8em; font-size: 14px; color: var(--muted); }
.copy-address { margin-top: 1.8em; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 13px; color: var(--ink); transition: opacity .3s; }
.copy-address:hover { opacity: .5; }
.copy-state { min-height: 1.9em; margin-top: .5em; }

/* 页尾 */
.foot { padding: clamp(36px, 6vh, 56px) 0 clamp(24px, 4vh, 36px); border-top: 1px solid var(--ink); }
.foot-note { margin-top: .4em; }
.sisters { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3vw, 44px); font-size: 13px; color: var(--ink); }
.sisters span { width: 100%; font-size: 12px; color: var(--muted); }
.sisters a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--rule); transition: text-decoration-color .3s; }
.sisters a:hover { text-decoration-color: currentColor; }
.legal { max-width: 46em; margin-top: 2.6em; margin-right: var(--gutter); font-size: 12px; line-height: 1.9; color: var(--muted); }
.legal summary { color: var(--ink-2); }
.legal p { margin-top: .8em; }
.copyright { margin-top: 1.4em; }

/* 404 */
.lost { padding-block: 22vh; }
.lost a { display: inline-block; margin-top: 1.8em; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 13px; color: var(--ink); }

/* 中等宽度：能力段落的文字和图片上下排 */
@media (max-width: 1080px) {
  .ability { grid-template-columns: var(--index) minmax(0, 1fr); }
  .ability-text, .ability-photo { grid-column: 2; }
  .ability-text { padding-right: 0; }
  .ability-photo { margin-top: 28px; }
  .ability-photo-small { width: 58%; }
  .chain { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; }
  .chain::before { display: none; }
  .chain li { border-top: 1px solid var(--ink); }
  .chain li::before { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}

/* 手机：索引线收回到左边距，标签放到内容上方 */
@media (max-width: 820px) {
  :root { --section: clamp(72px, 11vh, 104px); }
  .row, .head { grid-template-columns: minmax(0, 1fr); }
  .row > :first-child { padding-right: 0; }
  .label { margin-bottom: 1.5em; }
  .head { row-gap: 8px; }
  .nav { gap: 2px 18px; }
  .hero { padding-top: 64px; }
  .hero .label { padding-top: 0; }
  h1 { font-size: clamp(33px, 9.4vw, 54px); }
  .hero-photo { padding-inline: 0; }
  .hero-photo figcaption { order: 2; margin-top: 12px; padding-inline: var(--gutter); }
  .columns { display: block; padding-right: 0; }
  .columns article + article { margin-top: 1.9em; }
  .abilities { margin-top: 64px; }
  .ability { display: block; padding-inline: 0; }
  .ability-text { padding-inline: var(--gutter); }
  .ability-photo { margin-top: 28px; }
  .ability-photo figcaption { padding-inline: var(--gutter); }
  .ability-photo-small { width: 72%; }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 0; gap: 18px 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); padding-right: 0; row-gap: 28px; }
  .faq { margin-right: 0; }
  .legal { margin-right: 0; }
  .foot .row { row-gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade { opacity: 1; transition: none; }
}
