/*
 * 大连辰昕服装销售有限公司 — 官网 v2 样式
 * 炭黑底 · 暖金点缀 · 经纬织纹
 * 仅使用系统字体，无远程资源，无动画依赖。
 */

:root {
  color-scheme: dark;

  --bg: #121110;
  --bg-raise: #191816;
  --text: #f4efe6;
  --muted: #aba498;          /* 对 --bg 约 7.5:1 */
  --gold: #d9aa55;           /* 对 --bg 约 8.8:1 */
  --gold-hi: #f2c878;
  --ink: #121110;
  --focus: #ffd07a;
  --rule: rgba(244, 239, 230, 0.12);
  --grid: rgba(244, 239, 230, 0.028);

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --section-y: clamp(112px, 14vw, 200px);

  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
  --sans-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- 基础 ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* 细经纬网格：织物经纬线的暗示 */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:lang(zh) {
  font-family: var(--sans-zh);
}

:lang(en) {
  font-family: var(--sans);
}

svg {
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* 焦点：:focus 与 :focus-visible 均保持高对比、粗轮廓 + 偏移 */
:focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

main:focus,
main:focus-visible {
  outline-offset: -3px;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 断行控制：组内不拆，只在组与组之间换行 */
.nowrap {
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- 跳转正文 ---------- */

.skip-link {
  position: absolute;
  top: 12px;
  left: var(--pad);
  z-index: 100;
  padding: 12px 20px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline-color: var(--text);
}

/* ---------- 页眉 ---------- */

.site-header {
  padding-block: 28px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.lang-switch {
  flex: none;
  padding: 6px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.6;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  padding-top: clamp(96px, 13vw, 184px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 46% at 50% 36%, rgba(217, 170, 85, 0.09), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.9375rem;
  letter-spacing: 0.24em;
}

.hero-title {
  margin: 0;
  /* 10 字一行：上限 104px × 10 ≈ 1040px < 1104px 内容宽；8vw 始终小于内容宽 */
  font-size: clamp(30px, 8vw, 104px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.hero-title:lang(en) {
  font-size: clamp(34px, 6.6vw, 88px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--gold);
}

.hero-lede {
  max-width: 36em;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 52px;
  padding: 16px 32px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--gold-hi);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* 织带：内联 SVG 平纹组织，左右渐隐 */
.weave-band {
  position: relative;
  height: clamp(64px, 8vw, 112px);
  margin-top: clamp(96px, 12vw, 168px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.weave-band svg {
  width: 100%;
  height: 100%;
}

/* ---------- 区块 ---------- */

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
}

.hero + .section {
  border-top: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}

.section-index::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.15;
}

.section-head h2:lang(en) {
  letter-spacing: -0.02em;
}

.lead {
  max-width: 34em;
  margin: 0 0 56px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
}

/* 业务列表：排版行，不用卡片 */
.biz-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.biz-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: clamp(22px, 2.6vw, 32px);
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.biz-list li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

/* 公司信息 */
.facts {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.fact {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 8px 32px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}

.fact dt {
  padding-top: 0.2em;
  color: var(--muted);
  font-size: 0.9375rem;
}

.fact dd {
  margin: 0;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.code {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.original {
  display: block;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

/* 联系 */
.contact-mail {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  color: var(--text);
  font-family: var(--sans);
  /* 仅允许在 @ 后（<wbr>）换行；域名整体 nowrap */
  font-size: clamp(1.375rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  transition: color 0.2s ease;
}

.contact-mail:hover {
  color: var(--gold-hi);
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding-block: 56px 72px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  align-items: start;
}

.footer-inner p {
  margin: 0;
}

.footer-brand {
  color: var(--text);
  font-weight: 600;
}

.footer-mail a {
  color: var(--text);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
}

.footer-mail a:hover {
  color: var(--gold-hi);
}

.footer-privacy {
  grid-column: 1 / -1;
  max-width: 60em;
}

.footer-label {
  margin-right: 0.75em;
  color: var(--text);
}

/* ---------- 404 ---------- */

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 36px;
  margin-top: 52px;
}

.nf-actions .btn {
  margin-top: 0;
}

.text-link {
  color: var(--text);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: var(--gold-hi);
}

.hero--notfound {
  padding-bottom: var(--section-y);
}

/* ---------- 响应式 ---------- */

@media (max-width: 800px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-block: 24px;
  }

  .lead {
    margin-bottom: 40px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-block: 20px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .lang-switch {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
  }

  .site-nav ul {
    gap: 24px;
  }

  .eyebrow {
    margin-bottom: 24px;
    font-size: 0.875rem;
    letter-spacing: 0.16em;
  }

  .btn {
    margin-top: 44px;
  }

  .biz-list li {
    gap: 16px;
  }

  .biz-list li::before {
    width: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 偏好与特殊模式 ---------- */

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

@media (forced-colors: active) {
  .btn,
  .lang-switch {
    border: 2px solid ButtonText;
  }

  :focus,
  :focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .skip-link,
  .weave-band,
  .site-nav,
  .lang-switch {
    display: none;
  }

  .hero-title .accent,
  .section-index,
  .eyebrow,
  .note,
  .fact dt,
  .site-footer,
  .contact-mail,
  .footer-brand,
  .footer-label,
  .footer-mail a {
    color: #000;
  }
}
