/* ==========================================================================
   tokens.css — 设计变量 / 基础样式 / 排版 / 按钮
   Wuxi TUT Machinery — Industrial B2B design system
   ========================================================================== */

:root {
  /* Brand */
  --navy: #15283d;
  --navy-deep: #0e1c2c;
  --navy-soft: #1e3550;
  --navy-700: #1c3450;
  --orange: #f28c28;
  --orange-dark: #dd7a16;

  /* Surfaces */
  --bg: #f4f6f8;
  --white: #ffffff;

  /* Text */
  --text: #283442;
  --muted: #6b7785;
  --line: #e1e6eb;

  /* On dark */
  --on-dark: #ffffff;
  --on-dark-muted: #a8b6c6;
  --on-dark-line: rgba(255, 255, 255, 0.14);

  /* Radius — industrial, restrained */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 56px;
  --sp-9: 72px;
  --sp-10: 96px;

  /* Layout */
  --container: 1340px;
  --header-h: 76px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --lh-tight: 1.12;
  --lh-body: 1.68;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(21, 40, 61, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(21, 40, 61, 0.22);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: var(--lh-tight);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.h1 {
  font-size: clamp(2rem, 3.35vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 750;
}

.h2 {
  font-size: clamp(1.6rem, 2.35vw, 2.35rem);
  letter-spacing: -0.02em;
}

.h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.008em;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.body-sm {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 2px;
  margin-right: 10px;
  margin-top: -3px;
  background: var(--orange);
}

.eyebrow--on-dark {
  color: var(--orange);
}

.eyebrow--plain::before {
  display: none;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.section {
  padding: var(--sp-9) 0;
}

.section--tight {
  padding: var(--sp-8) 0;
}

.section--alt {
  background: var(--bg);
}

.section--dark {
  background: var(--navy);
  color: var(--on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.section--dark .lead,
.section--dark .body-sm {
  color: var(--on-dark-muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.section-head .h2 {
  margin-top: var(--sp-3);
}

.section-head p {
  margin-top: var(--sp-4);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}



.section-foot {
  margin-top: var(--sp-7);
  display: flex;
  justify-content: center;
}

.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--orange);
  /* 深色文字保证对比度 ≥ 4.5:1 */
  color: #14263a;
  border-color: var(--orange);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #14263a;
}

.btn--navy {
  background: var(--navy);
  color: var(--on-dark);
  border-color: var(--navy);
}

.btn--navy:hover,
.btn--navy:focus-visible {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: #c6d0d9;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--navy);
  background: rgba(21, 40, 61, 0.04);
}

.btn--outline-light {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  border-color: var(--on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  --btn-h: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn__arrow {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--navy);
  transition: color 0.18s var(--ease);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--orange-dark);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.link-arrow--light {
  color: var(--on-dark);
}

.link-arrow--light:hover,
.link-arrow--light:focus-visible {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.section--dark :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.anchor-top {
  position: absolute;
  top: 0;
  left: 0;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Scroll reveal（尊重 prefers-reduced-motion）
   -------------------------------------------------------------------------- */

/* 仅在 JS 可用时隐藏（html.js 由页头内联脚本添加），
   避免脚本失败时内容被永久隐藏 */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    will-change: opacity, transform;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
