/* ===================================================================
   羲创自动化 Trinnova — 浅色高级企业站样式
   =================================================================== */

:root {
  --primary-red: #cf0010;
  --primary-red-soft: #e23d49;
  --primary-red-pale: #fff1f2;
  --bg-base: #fafafa;
  --bg-elev: #ffffff;
  --bg-elev-2: #f8f6f2;
  --bg-soft: #f4f1ec;
  --text-light: #2f3338;
  --text-mid: #646a72;
  --text-dim: #9aa0a8;
  --line: rgba(47, 51, 56, 0.12);
  --line-soft: rgba(47, 51, 56, 0.07);
  --shadow: 0 18px 48px rgba(31, 35, 40, 0.08);
  --shadow-soft: 0 8px 28px rgba(31, 35, 40, 0.06);
  --max-width: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(207, 0, 16, 0.045), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-base) 46%, #f7f4ef 100%);
  color: var(--text-light);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-red { color: var(--primary-red); }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary-red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(207, 0, 16, 0.28);
}
.btn--primary:hover {
  background: #e2101f;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(207, 0, 16, 0.4);
}
.btn--line {
  border-color: var(--line);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.42);
}
.btn--line:hover {
  border-color: var(--primary-red);
  background: var(--primary-red);
  color: #fff;
  transform: translateY(-2px);
}
.hero .btn--line {
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.hero .btn--line:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.btn--ghost {
  border-color: rgba(207, 0, 16, 0.20);
  color: var(--text-light);
  background: rgba(255,255,255,0.72);
  padding: 10px 22px;
  font-size: 14px;
}
.btn--ghost:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
  box-shadow: 0 10px 26px rgba(207,0,16,0.18);
}

/* ===================== 通用区块 ===================== */
.section { padding: 110px 0; }
.section__eyebrow {
  color: var(--primary-red-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.section__head { margin-bottom: 56px; max-width: 640px; }

/* 箭头链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 15px;
  margin-top: 8px;
}
.link-arrow span { transition: transform 0.3s var(--ease); color: var(--primary-red); }
.link-arrow:hover { color: var(--primary-red); }
.link-arrow:hover span { transform: translateX(6px); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header:hover {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px rgba(31, 35, 40, 0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__img {
  height: 40px;
  width: auto;
  display: block;
  background: #fff;
  padding: 5px 8px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(31,35,40,0.08);
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__mark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-light);
}
.logo__sub {
  font-size: 12px;
  color: var(--text-mid);
  letter-spacing: 3px;
}

/* Nav */
.nav__list { display: flex; gap: 34px; align-items: center; }
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.3s var(--ease);
  padding: 28px 0;
}
.nav__link--dropdown::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  order: 2;
  opacity: 0.58;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 20px;
  width: 0; height: 2px;
  background: var(--primary-red);
  transition: width 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active,
.nav__item--has-dropdown:hover .nav__link { color: var(--text-light); }
.nav__link:hover::after,
.nav__link.is-active::after,
.nav__item--has-dropdown:hover .nav__link::after { width: 100%; }
.nav__item--has-dropdown:hover .nav__link--dropdown::before {
  transform: rotate(225deg) translate(-1px, -1px);
  opacity: 1;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 240px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 51, 56, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(31, 35, 40, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.94);
  border-left: 1px solid rgba(47, 51, 56, 0.08);
  border-top: 1px solid rgba(47, 51, 56, 0.08);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown--wide { width: 284px; }
.nav__item--has-dropdown:hover .nav-dropdown,
.nav__item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.nav-dropdown__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text-light);
  overflow: hidden;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease), color 0.28s var(--ease);
}
.nav-dropdown__link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary-red);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.nav-dropdown__link span {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 700;
}
.nav-dropdown__link small {
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.5px;
  transition: color 0.28s var(--ease);
}
.nav-dropdown__link:hover {
  background: linear-gradient(90deg, var(--primary-red-pale), rgba(248, 246, 242, 0.78));
  color: var(--primary-red);
  transform: translateX(3px);
}
.nav-dropdown__link:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
.nav-dropdown__link:hover small { color: rgba(207, 0, 16, 0.58); }
.nav-dropdown__link--accent {
  background: linear-gradient(135deg, rgba(207,0,16,0.08), rgba(255,255,255,0));
}

.header__cta { margin-left: 8px; }

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text-light);
  transition: all 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO 大幻灯 ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
  z-index: 1;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
/* 背景图片占位：渐变叠加 + 缓慢放大 Ken Burns 动效 */
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}
.hero__slide.is-active .hero__media {
  transform: scale(1.12);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42,45,50,0.78) 0%, rgba(42,45,50,0.46) 44%, rgba(42,45,50,0.12) 100%),
    linear-gradient(0deg, rgba(39,35,30,0.34) 0%, rgba(255,255,255,0) 58%);
}
.hero__media[data-placeholder] {
  background-image:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,0.56), transparent 28%),
    linear-gradient(135deg, #ebe5da 0%, #d9dfe4 50%, #c9d2d8 100%);
}
.hero__slide:nth-child(2) .hero__media[data-placeholder] {
  background-image:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,0.52), transparent 30%),
    linear-gradient(135deg, #f0e7dd 0%, #d8cbc0 48%, #b9c6cb 100%);
}
.hero__slide:nth-child(3) .hero__media[data-placeholder] {
  background-image:
    radial-gradient(circle at 68% 26%, rgba(255,255,255,0.50), transparent 31%),
    linear-gradient(135deg, #e8edf0 0%, #cfd8dc 48%, #d8c8bd 100%);
}
.hero__media[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.22);
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.hero__content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero__inner { max-width: 760px; }
.hero__eyebrow {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  letter-spacing: 3px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 50px;
  margin-bottom: 26px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
}
.hero__title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0,0,0,0.20);
}
.hero__lead {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* 幻灯内容入场动效：随激活态滑入淡入 */
.hero__slide .hero__inner > * {
  opacity: 0;
  transform: translateY(26px);
}
.hero__slide.is-active .hero__inner > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero__slide.is-active .hero__inner > *:nth-child(1) { transition-delay: 0.30s; }
.hero__slide.is-active .hero__inner > *:nth-child(2) { transition-delay: 0.42s; }
.hero__slide.is-active .hero__inner > *:nth-child(3) { transition-delay: 0.54s; }
.hero__slide.is-active .hero__inner > *:nth-child(4) { transition-delay: 0.66s; }

/* 左右箭头 */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(31,34,38,0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.hero__arrow:hover { background: var(--primary-red); border-color: var(--primary-red); }
.hero__arrow--prev { left: 28px; }
.hero__arrow--next { right: 28px; }

/* Dot 标签导航 */
.hero__dots {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 14px;
}
.hero__dot {
  position: relative;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s var(--ease);
  padding: 0;
}
.hero__dot::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--primary-red);
}
.hero__dot.is-active { background: rgba(255,255,255,0.35); }
.hero__dot.is-active::after {
  width: 100%;
  transition: width 6s linear;
}

/* 向下滚动提示 */
.hero__scroll {
  position: absolute;
  bottom: 34px;
  right: 40px;
  z-index: 10;
  color: var(--text-mid);
  font-size: 12px;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(var(--primary-red-soft), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===================== STATS ===================== */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.72);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 52px 24px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
  letter-spacing: -1px;
}
.stat__plus, .stat__suffix {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-red);
}
.stat__label {
  display: block;
  margin-top: 14px;
  color: var(--text-mid);
  font-size: 15px;
}

/* ===================== ABOUT ===================== */
.about__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.about__desc { color: var(--text-mid); font-size: 17px; margin: 24px 0 28px; }
.about__list { margin-bottom: 32px; }
.about__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--line-soft);
}
.tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(207, 0, 16, 0.14);
  position: relative;
  flex-shrink: 0;
}
.tick::after {
  content: "";
  position: absolute;
  left: 7px; top: 4px;
  width: 4px; height: 8px;
  border: solid var(--primary-red-soft);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.about__card {
  background: linear-gradient(155deg, #ffffff 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary-red);
}
.about__card-label {
  color: var(--primary-red-soft);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.about__quote {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin: 20px 0 24px;
}
.about__card-en { color: var(--text-dim); font-size: 14px; font-style: italic; }

/* 图片占位通用样式（hero 媒体有独立占位逻辑，此处排除） */
[data-placeholder]:not(.hero__media) {
  background-size: cover;
  background-position: center;
  position: relative;
}
[data-placeholder]:not(.hero__media):not([style*="background-image"]) {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0)),
    linear-gradient(135deg, #f0ece4 0%, #dce3e5 52%, #d4c5ba 100%);
}
[data-placeholder]:not(.hero__media):not([style*="background-image"])::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(47,51,56,0.22);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.about__img {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

/* ===================== SOLUTIONS ===================== */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sol-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 18px 34px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}
.sol-card:hover {
  transform: translateY(-6px);
  border-color: rgba(207, 0, 16, 0.22);
  background: #fff;
  box-shadow: var(--shadow);
}
.sol-card__media {
  height: 170px;
  border-radius: 12px;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid rgba(47,51,56,0.06);
  transition: transform 0.45s var(--ease);
}
.sol-card:hover .sol-card__media { transform: scale(1.018); }
.sol-card__media--auto {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.30), rgba(255,255,255,0)),
    linear-gradient(135deg, #ede7df 0%, #dce3e5 54%, #bdcad0 100%) !important;
}
.sol-card__media--rail {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.30), rgba(255,255,255,0)),
    linear-gradient(135deg, #e7edf0 0%, #d3d9dc 52%, #d7c7ba 100%) !important;
}
.sol-card__media--custom {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0)),
    linear-gradient(135deg, #f2ede4 0%, #e1d7cd 48%, #d9e0df 100%) !important;
}
.sol-card__index {
  display: block;
  padding: 0 18px;
  font-size: 40px;
  font-weight: 800;
  color: var(--text-dim);
  opacity: 0.5;
}
.sol-card:hover .sol-card__index { color: var(--primary-red); opacity: 1; }
.sol-card__title { font-size: 24px; font-weight: 700; margin: 18px 18px 14px; }
.sol-card__desc { color: var(--text-mid); font-size: 15.5px; margin: 0 18px 22px; }
.sol-card .link-arrow { margin-left: 18px; }
.sol-card--accent {
  background: linear-gradient(160deg, rgba(207,0,16,0.055), #fff);
  border-color: rgba(207, 0, 16, 0.16);
}

/* ===================== APPLICATIONS ===================== */
.apps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.app-item {
  padding: 16px 16px 30px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}
.app-item:hover {
  transform: translateY(-4px);
  border-color: rgba(207,0,16,0.18);
  box-shadow: var(--shadow);
}
.app-item__media {
  height: 112px;
  border-radius: 11px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(47,51,56,0.06);
}
.app-item__media--bonding { background-image: linear-gradient(135deg, #f0e7dd 0%, #d6dee0 100%) !important; }
.app-item__media--sealing { background-image: linear-gradient(135deg, #e9eef0 0%, #d6c9bf 100%) !important; }
.app-item__media--hemming { background-image: linear-gradient(135deg, #ede8df 0%, #cfd8dc 100%) !important; }
.app-item__media--nvh { background-image: linear-gradient(135deg, #e7ecee 0%, #ddd2c8 100%) !important; }
.app-item__media--battery { background-image: linear-gradient(135deg, #f1ede5 0%, #d2dcda 100%) !important; }
.app-item__media--glass { background-image: linear-gradient(135deg, #e6edf1 0%, #d8cdc3 100%) !important; }
.app-item__icon { color: var(--primary-red); font-size: 18px; margin-left: 4px; }
.app-item h4 { font-size: 19px; font-weight: 700; margin: 14px 4px 10px; }
.app-item p { color: var(--text-mid); font-size: 15px; margin: 0 4px; }
.apps__grid .app-item:nth-child(3n) { border-right: 1px solid var(--line-soft); }
.apps__grid .app-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }

/* ===================== WHY US ===================== */
.why { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.why__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.why__head { position: sticky; top: 110px; }
.why__lead { color: var(--text-mid); font-size: 17px; margin-top: 22px; }
.why__grid { display: grid; gap: 18px; }
.why-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px 30px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-card:hover { transform: translateX(6px); border-color: rgba(207,0,16,0.22); box-shadow: var(--shadow); }
.why-card__no {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(207, 0, 16, 0.10);
  color: var(--primary-red);
  font-weight: 800;
  font-size: 18px;
}
.why-card__body h4 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.why-card__body p { color: var(--text-mid); font-size: 15px; }

/* ===================== CTA ===================== */
.cta { padding: 100px 0; }
.cta__inner {
  background:
    radial-gradient(circle at 50% -20%, rgba(207,0,16,0.10) 0%, transparent 54%),
    linear-gradient(135deg, #ffffff 0%, #f7f2eb 100%);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta__inner::before {
  content: "";
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(207,0,16,0.08) 0%, transparent 65%);
}
.cta__title { font-size: 40px; font-weight: 800; line-height: 1.25; position: relative; }
.cta__desc { color: var(--text-mid); font-size: 18px; margin: 20px auto 36px; max-width: 560px; position: relative; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===================== FOOTER ===================== */
.footer { background: #f2eee7; border-top: 1px solid var(--line-soft); padding-top: 72px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__name { margin-top: 16px; font-size: 15px; color: var(--text-light); }
.footer__en { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.footer__col h5 {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer__col a, .footer__col p {
  display: block;
  color: var(--text-mid);
  font-size: 14.5px;
  margin-bottom: 11px;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--primary-red-soft); }
.footer__bottom { border-top: 1px solid var(--line-soft); padding: 24px 0; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===================== CONTACT / 404 PAGE ===================== */
.contact-page {
  background:
    radial-gradient(circle at 86% 8%, rgba(207, 0, 16, 0.06), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 44%, #f7f4ef 100%);
}
.contact-hero {
  position: relative;
  min-height: 680px;
  padding: 170px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.contact-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.86) 44%, rgba(255,255,255,0.42) 100%),
    radial-gradient(circle at 74% 38%, rgba(207,0,16,0.12), transparent 22%),
    linear-gradient(135deg, #f3eee6 0%, #dde5e7 52%, #d5c9bd 100%);
}
.contact-hero__bg::before,
.contact-hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(207, 0, 16, 0.10);
}
.contact-hero__bg::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: 88px;
}
.contact-hero__bg::after {
  width: 260px;
  height: 260px;
  right: 196px;
  bottom: 76px;
  background: rgba(255,255,255,0.22);
}
.contact-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: end;
}
.contact-hero__content { max-width: 720px; }
.contact-hero__title {
  font-size: 56px;
  line-height: 1.14;
  letter-spacing: -1.2px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 24px;
}
.contact-hero__lead {
  max-width: 620px;
  color: var(--text-mid);
  font-size: 18px;
  margin-bottom: 38px;
}
.contact-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-hero__panel {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.contact-hero__panel-kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--primary-red-pale);
  color: var(--primary-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.contact-hero__panel strong {
  display: block;
  color: var(--text-light);
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 12px;
}
.contact-hero__panel p { color: var(--text-mid); font-size: 15px; }

.contact-info { padding-top: 86px; padding-bottom: 74px; }
.contact-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  min-height: 260px;
  padding: 34px 32px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(207,0,16,0.18);
  box-shadow: var(--shadow);
}
.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(207,0,16,0.09);
  color: var(--primary-red);
  font-size: 22px;
  margin-bottom: 28px;
}
.contact-card__label {
  color: var(--primary-red-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.contact-card h2 {
  font-size: 24px;
  line-height: 1.28;
  margin-bottom: 18px;
  color: var(--text-light);
}
.contact-card h2 a { transition: color 0.3s var(--ease); }
.contact-card h2 a:hover { color: var(--primary-red); }
.contact-card p:last-child { color: var(--text-mid); font-size: 15px; }

.contact-map-section {
  background: #f4f1ec;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
}
.map-card {
  position: relative;
  min-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(47,51,56,0.10);
  background: #e7e1d8;
  box-shadow: var(--shadow);
}
.map-card__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: #e7e1d8;
}
.map-card__loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--text-mid);
  font-size: 15px;
  text-align: center;
  background:
    radial-gradient(circle at 70% 28%, rgba(207,0,16,0.08), transparent 28%),
    linear-gradient(135deg, #f7f2eb 0%, #e7e1d8 100%);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.map-card.is-loaded .map-card__loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.map-card__info {
  min-width: 220px;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.map-card__info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #222;
}
.map-card__info span {
  display: block;
  margin-bottom: 10px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}
.map-card__info a {
  color: #cf0010;
  font-weight: 700;
  text-decoration: none;
}
.map-card__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.88);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(31,35,40,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.map-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 36px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(207,0,16,0.08), transparent 34%),
    #ffffff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}
.map-side__tag {
  color: var(--primary-red-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.map-side h3 {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 18px;
}
.map-side__address {
  color: var(--text-mid);
  font-size: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 26px;
}
.map-side__list { display: grid; gap: 14px; margin-bottom: 30px; }
.map-side__list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  color: var(--text-mid);
  font-size: 14.5px;
}
.map-side__list span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-red);
  margin-top: 10px;
}
.map-side__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.map-side__actions .btn { padding: 12px 20px; font-size: 14px; }
.map-side__copy.is-copied {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
}
.contact-cta { background: transparent; }

/* ===================== 滚动渐显动效 ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media { transform: none !important; transition: none; }
  .hero__dot.is-active::after { transition: none; }
  .hero__scroll::after { animation: none; }
}

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .hero__title { font-size: 46px; }
  .section__title, .cta__title { font-size: 34px; }
  .about__inner, .why__inner, .contact-hero__inner, .map-layout { grid-template-columns: 1fr; gap: 48px; }
  .why__head { position: static; }
  .contact-hero { min-height: auto; padding: 140px 0 82px; }
  .contact-hero__title { font-size: 44px; }
  .contact-info__grid { grid-template-columns: 1fr; }
  .map-side { padding: 36px 30px; }
  .solutions__grid { grid-template-columns: 1fr; }
  .apps__grid { grid-template-columns: repeat(2, 1fr); }
  .apps__grid .app-item:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .apps__grid .app-item:nth-child(2n) { border-right: none; }
  .apps__grid .app-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .apps__grid .app-item:nth-last-child(-n+2) { border-bottom: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding: 0 20px; }

  /* 移动端导航 */
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 78px; right: 0;
    width: 82%;
    max-width: 340px;
    height: calc(100vh - 78px);
    background: rgba(255,255,255,0.96);
    border-left: 1px solid var(--line-soft);
    box-shadow: -18px 0 40px rgba(31,35,40,0.10);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    padding: 28px;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; align-items: stretch; }
  .nav__item { width: 100%; }
  .nav__link { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav__link::after { display: none; }
  .nav-dropdown {
    position: static;
    width: 100%;
    padding: 8px 0 10px 12px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
  }
  .nav-dropdown::before { display: none; }
  .nav__item--has-dropdown:hover .nav-dropdown,
  .nav__item--has-dropdown:focus-within .nav-dropdown { transform: none; }
  .nav-dropdown__link { padding: 10px 12px; }

  .hero { height: auto; min-height: 88vh; }
  .contact-hero { padding: 124px 0 70px; }
  .contact-hero__title { font-size: 34px; }
  .contact-hero__lead { font-size: 16px; }
  .contact-hero__panel { padding: 28px; }
  .contact-hero__actions .btn,
  .map-side__actions .btn { flex: 1; min-width: 100%; }
  .contact-info { padding-top: 70px; }
  .contact-card { min-height: auto; padding: 30px 26px; }
  .contact-card h2 { font-size: 21px; }
  .map-card,
  .map-card__canvas { min-height: 430px; }
  .map-card__badge { left: 16px; right: 16px; bottom: 16px; text-align: center; }
  .map-side h3 { font-size: 23px; }
  .hero__content { padding: 110px 0 90px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { flex: 1; }
  .hero__arrow { display: none; }
  .hero__scroll { display: none; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(42,45,50,0.80) 0%, rgba(42,45,50,0.62) 100%),
      linear-gradient(0deg, rgba(39,35,30,0.28) 0%, rgba(255,255,255,0) 60%);
  }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line-soft); padding: 36px 16px; }
  .stat:nth-child(2n) { border-right: none; }
  .stat__num { font-size: 42px; }

  .section { padding: 70px 0; }
  .section__title, .cta__title { font-size: 28px; }
  .section__head { margin-bottom: 40px; }

  .apps__grid { grid-template-columns: 1fr; }
  .apps__grid .app-item { border-right: none !important; border-bottom: 1px solid var(--line-soft) !important; }
  .apps__grid .app-item:last-child { border-bottom: none !important; }

  .about__card { padding: 36px 28px; }
  .about__quote { font-size: 22px; }
  .cta__inner { padding: 50px 28px; }
  .cta__actions .btn { flex: 1; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat:nth-child(2n) { border-right: none; }
  .hero__title { font-size: 28px; }
  .contact-hero__title { font-size: 30px; }
  .contact-hero__actions .btn,
  .cta__actions .btn { min-width: 100%; }
  .map-card,
  .map-card__canvas { min-height: 360px; }
  .map-side { padding: 30px 24px; }
  .logo__sub { display: none; }
  .hero__dot { width: 30px; }
}
