/* =========================================================
   Syzerly · 站点基础样式
   重置 / 排版 / 导航 / 页脚 / 组件 / 页面区块
   依赖 tokens.css
   ========================================================= */

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-zh);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 英文站正文用 Inter：此前继承了中文栈，拉丁字母走 Noto Sans SC，
   与 .meta / .stat .v 等已用 Inter 的元件不是同一套字形，且多下一份字库。 */
html[lang="en"] body { font-family: var(--font-en); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--moss); color: #fff; }

/* ---------- 排版工具 ---------- */
.en { font-family: var(--font-en); }
.meta {
  font-family: var(--font-en);
  font-size: var(--type-meta);
  font-weight: 300;
  letter-spacing: .22em;
  line-height: 1.9;
  color: var(--muted);
  text-transform: uppercase;
}
.zh-lead {
  font-size: var(--type-body-l);
  font-weight: 300;
  line-height: 2;
  color: var(--muted);
}
.dot-mark { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--moss); }

/* ---------- 容器与区块 ---------- */
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--page-margin); }
.section { padding-top: 120px; padding-bottom: 120px; }
.section--tight { padding-top: 88px; padding-bottom: 88px; }
.section--dark { background: var(--dark); color: var(--bg); }
.hr { height: 1px; background: var(--line); border: 0; }
.hr--dark { background: var(--dark-line); }

/* 栅格 */
.grid { display: grid; gap: var(--grid-gutter); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--12 { grid-template-columns: repeat(12, 1fr); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 1px solid var(--muted);
  padding: 10px 16px;
  font-size: 11px; letter-spacing: .12em; color: var(--muted);
  white-space: nowrap;
}
.tag b {
  font-family: var(--font-en); font-weight: 300;
  color: var(--ink); letter-spacing: .18em;
}
.tag--dark { border-color: var(--dark-line); color: var(--dark-muted); }
.tag--dark b { color: var(--bg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 32px; height: 52px;
  background: var(--ink); color: var(--bg);
  font-size: var(--type-body-m); font-weight: 500; letter-spacing: .08em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: transparent; color: var(--bg); }
.btn--wide { width: 280px; }

/* 文字链接箭头 */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--type-body-s); font-weight: 500; letter-spacing: .06em;
}
.arrow-link span { transition: transform var(--dur-fast) var(--ease); }
.arrow-link:hover span { transform: translateX(6px); }

/* ---------- 区块标题组 ---------- */
.sec-head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.sec-head__title { font-size: var(--type-h2); font-weight: 900; line-height: 1.25; letter-spacing: .01em; }
.sec-head__sub { font-size: var(--type-body-l); font-weight: 300; line-height: 2; color: var(--muted); max-width: 46em; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--type-label); color: var(--muted);
}
.breadcrumb .sep { font-family: var(--font-en); color: var(--faint); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ---------- 页面页头 ---------- */
.page-head { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 56px; }
.page-head__group { display: flex; flex-direction: column; gap: 28px; }
.page-title { font-size: var(--type-display-3); font-weight: 900; line-height: 1.14; letter-spacing: .01em; }
.page-lead { font-size: var(--type-body-l); font-weight: 300; line-height: 2; color: var(--muted); max-width: 880px; }

/* =========================================================
   导航
   沉浸态（首页顶部） / 实色态（内页） / 滚动磨砂态
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              backdrop-filter var(--dur-base) var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--page-margin);
  max-width: var(--content-max); margin: 0 auto;
}
.nav__logo { display: flex; align-items: baseline; gap: 10px; }
.nav__logo .nav__mark {
  height: 18px; width: auto; display: block;
  align-self: center; margin-right: 2px;
}
.nav__logo .mark { font-family: var(--font-en); font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.nav__logo .desc {
  font-family: var(--font-en); font-size: 9px; font-weight: 300;
  letter-spacing: .28em; color: var(--muted); text-transform: uppercase;
}
.nav__list { display: flex; align-items: center; gap: 44px; }
.nav__item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--type-body-s); color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}
.nav__item:hover { color: var(--ink); }
.nav__item.is-current { color: var(--ink); font-weight: 500; }
.nav__item .dot-mark { opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.nav__item.is-current .dot-mark { opacity: 1; }

/* 滚动磨砂态 */
.nav.is-scrolled {
  background: rgba(250, 250, 247, .45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(217, 214, 209, .6);
}

/* 首页沉浸态：首屏透明，滚动后磨砂。
   注意：这里不用 mix-blend-mode: difference —— 反色混合会把彩色商标打成墨色，
   且滚过深色区块时商标会消失。商标在所有状态下都保持品牌绿原色。 */
.nav--immersive {
  background: transparent; border-bottom-color: transparent;
  color: var(--ink);
}
.nav--immersive .nav__logo .desc,
.nav--immersive .nav__item { color: var(--muted); }
.nav--immersive .nav__item:hover,
.nav--immersive .nav__item.is-current { color: var(--ink); }
.nav--immersive .nav__logo .mark { color: var(--ink); }
.nav__mark { filter: none; }
/* 首页有深色区块，磨砂底要比内页实一点，保证墨色文字与绿色商标始终清楚 */
.nav--immersive.is-scrolled {
  background: rgba(250, 250, 247, .92);
  border-bottom-color: rgba(217, 214, 209, .6);
}

/* 语言切换：只显示「另一种语言」这一个入口，桌面贴导航右侧、移动端常驻可见 */
.nav__list { margin-left: auto; }
.nav__lang {
  display: flex; align-items: center;
  margin-left: 34px;
  font-family: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
}
.nav__lang__link {
  display: inline-flex; align-items: center;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.nav__lang__link:hover,
.nav__lang__link:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

/* 移动端菜单按钮 */
.nav__toggle { display: none; }
@media (max-width: 900px) {
  .nav__inner { padding: 0 24px; height: 68px; }
  .nav__list { margin-left: 0; }
  .nav__lang { margin-left: auto; margin-right: 18px; font-size: 11px; }
  .nav__toggle { margin-left: 0; }
  /* 小屏挪出语言切换的位置：隐藏副标，避免 "TEXTILE TO / TEXTILE" 被挤成两行 */
  .nav__logo .desc { display: none; }
  .nav__list {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0 24px;
    max-height: 0; overflow: hidden;
    transition: max-height var(--dur-base) var(--ease), padding var(--dur-base) var(--ease);
  }
  .nav.is-open .nav__list { max-height: 420px; padding: 12px 24px 28px; }
  .nav__item { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 26px; height: 22px; padding: 0; margin: 0;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav__toggle i { display: block; flex: 0 0 2px; width: 100%; background: currentColor; transition: transform var(--dur-fast) var(--ease); }
  .nav.is-open .nav__toggle i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  .nav.is-open .nav__toggle i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
}

/* =========================================================
   页脚
   ========================================================= */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 96px 0 0; }
.footer__links {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 72px;
}
.footer__brand { display: flex; flex-direction: column; gap: 20px; padding-right: 48px; }
.footer__brand .mark { font-family: var(--font-en); font-size: 19px; font-weight: 600; }
.footer__brand .desc {
  font-family: var(--font-en); font-size: 9px; font-weight: 300;
  letter-spacing: .28em; color: var(--muted); text-transform: uppercase;
}
.footer__brand p { font-size: var(--type-body-s); font-weight: 300; line-height: 2; color: var(--muted); max-width: 30em; }
.footer__brand .cert { font-family: var(--font-en); font-size: var(--type-meta); letter-spacing: .18em; color: var(--faint); text-transform: uppercase; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col .k {
  font-family: var(--font-en); font-size: var(--type-meta);
  letter-spacing: .28em; color: var(--muted); text-transform: uppercase;
  margin-bottom: 4px;
}
.footer__col a { font-size: var(--type-body-s); color: var(--ink); transition: color var(--dur-fast) var(--ease); }
.footer__col a:hover { color: var(--moss); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); padding: 28px 0 40px;
}
.footer__bottom .back-top { cursor: pointer; transition: color var(--dur-fast) var(--ease); }
.footer__bottom .back-top:hover { color: var(--ink); }
@media (max-width: 900px) {
  .footer { padding-top: 64px; }
  .footer__links { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer__brand { grid-column: 1 / -1; padding-right: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =========================================================
   基础组件
   ========================================================= */

/* 不换行单元：数字区间、带连字符的复合词不该被拆到两行 */
.nb { white-space: nowrap; }

/* 数据条 */
.stat-row { display: flex; gap: var(--space-4); }
.stat {
  flex: 1; border: 1px solid var(--muted); padding: 26px 22px; min-height: 190px;
  display: flex; flex-direction: column; gap: 14px;
}
.stat .v { font-family: var(--font-en); font-weight: 300; font-size: var(--type-h3); line-height: 1.1; }
.stat .l { font-size: var(--type-label); font-weight: 300; line-height: 1.8; color: var(--muted); }
@media (max-width: 900px) { .stat-row { flex-direction: column; } .stat { min-height: auto; } }

/* 列表行（产品索引 / 新闻行） */
.row-item {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  transition: background var(--dur-base) var(--ease), padding var(--dur-base) var(--ease);
}
.row-item:first-of-type { border-top: 1px solid var(--line); }
.row-item:hover { background: var(--bg-secondary); padding-left: 16px; padding-right: 16px; }
.row-item .en-name {
  font-family: var(--font-en); font-weight: 300;
  font-size: var(--type-h3); letter-spacing: .04em;
  transition: transform var(--dur-base) var(--ease);
}
.row-item:hover .en-name { transform: translateX(8px); }
.row-item .cn-name { font-size: var(--type-body-m); font-weight: 300; color: var(--muted); }

/* 新闻卡 */
.card-news { display: flex; flex-direction: column; }
.card-news__media {
  width: 100%; aspect-ratio: 16 / 10; background: var(--bg-secondary);
  border: 1px solid var(--line); overflow: hidden;
}
.card-news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-xslow) var(--ease); }
.card-news:hover .card-news__media img { transform: scale(1.04); }
.card-news__body { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.card-news__meta { font-size: 11px; font-weight: 300; color: var(--muted); }
.card-news__title { font-size: 20px; font-weight: 900; line-height: 1.5; }
.card-news__desc { font-size: var(--type-body-s); font-weight: 300; line-height: 1.85; color: var(--muted); }
.card-news:hover .card-news__title { color: var(--moss-deep); }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label {
  font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 400;
}
.input, .textarea, .select {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 16px; height: 52px;
  font-size: var(--type-body-s); font-weight: 300;
  transition: border-color var(--dur-fast) var(--ease);
  outline: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--moss); }
.textarea { height: 120px; padding: 16px; resize: vertical; line-height: 1.8; }
.select {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; color: var(--ink);
}
.select svg { flex: none; }
.checkbox { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox .box {
  flex: none; width: 20px; height: 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.checkbox .box svg { opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.checkbox input:checked + .box { background: var(--moss); border-color: var(--moss); }
.checkbox input:checked + .box svg { opacity: 1; }
.checkbox .txt { font-size: var(--type-body-s); font-weight: 300; }

/* 表格 */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left; padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--type-body-s); font-weight: 300;
}
.spec-table th {
  font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 400;
  border-bottom-color: var(--ink);
}
.spec-table .better { color: var(--moss); font-weight: 500; }
.spec-table .param { font-weight: 400; color: var(--ink); }

/* 分页 */
.pagination { display: flex; align-items: center; gap: var(--space-3); justify-content: flex-end; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); font-family: var(--font-en);
  font-size: var(--type-body-s); color: var(--muted);
  transition: all var(--dur-fast) var(--ease);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* 信息三栏（联系我们） */
.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.info-col { display: flex; flex-direction: column; gap: 18px; padding-right: 48px; }
.info-col + .info-col { padding-left: 48px; border-left: 1px solid transparent; }
.info-col__no { font-family: var(--font-en); font-size: 11px; color: var(--moss); letter-spacing: .16em; }
.info-col__label { font-size: var(--type-body-s); color: var(--muted); }
.info-col__value { font-size: 20px; font-weight: 500; line-height: 1.6; }
.info-col__note { font-size: var(--type-body-s); font-weight: 300; line-height: 1.9; color: var(--muted); }
.info-col__line { height: 1px; background: var(--line); }
@media (max-width: 900px) {
  .info-cols { grid-template-columns: 1fr; }
  .info-col { padding: 0; }
  .info-col + .info-col { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
}

/* 媒体占位框 */
.ph {
  position: relative; background: var(--bg-secondary);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  font-size: var(--type-label); letter-spacing: .18em; color: var(--faint);
}
.ph--dark { background: #1A1A17; border-color: #2A2A26; }
.ph--dark::after { color: #4A4A44; }

/* ---------- 响应式通用 ---------- */
@media (max-width: 1024px) {
  :root { --page-margin: 48px; }
  .section { padding-top: 96px; padding-bottom: 96px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --page-margin: 24px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .page-head { padding-top: 56px; padding-bottom: 48px; gap: 36px; }
  .page-title { font-size: 56px; }
  .grid--2, .grid--3, .grid--4, .grid--12 { grid-template-columns: 1fr; }
  .sec-head__title { font-size: 32px; }
  .row-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 0; }
}

/* =========================================================
   老内核兼容层（由 @supports 守护，现代浏览器跳过）
   ========================================================= */
@media (max-width: 900px) {
  @supports not (inset: 0) {
    .nav__list { top: 68px; right: 0; bottom: auto; left: 0; }
  }
}
