/* ============================================================
   TZ 公司官网模板 / Corporate Website Template
   纯 HTML + CSS + JS，无框架依赖，加载极快
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #faf9f6;
  --ink: #171512;
  --ink-2: #6f6b63;
  --line: #e7e4de;
  --red: #ee1e14;
  --red-dark: #c91400;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 36px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name .cn { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.brand-name .en {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.main-nav a:hover { border-color: var(--ink); }
.main-nav a.active { color: var(--red); }

.header-right { display: flex; align-items: center; gap: 18px; }

/* 语言切换 中 / EN */
.lang-switch { display: flex; align-items: center; font-size: 13px; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--ink-2);
  padding: 4px 2px; transition: color 0.3s;
}
.lang-btn.active { color: var(--red); font-weight: 700; }
.lang-sep { color: var(--line); margin: 0 6px; }

/* 汉堡按钮（移动端） */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--ink);
  cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--ink); transition: 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* 移动端菜单面板 */
.mobile-panel {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  z-index: 190;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 28px;
  transform: translateY(-12px);
  opacity: 0; visibility: hidden;
  transition: 0.4s var(--ease);
}
.mobile-panel.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-panel a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a:last-of-type { border-bottom: none; }
.mobile-panel .mp-en {
  display: block; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-2); margin-top: 2px;
}

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url("../img/hero-bg.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.82) 42%,
    rgba(255,255,255,0.35) 75%,
    rgba(255,255,255,0.15) 100%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-kicker {
  display: flex; align-items: center; gap: 14px;
  color: var(--red);
  font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-kicker::before { content: ""; width: 36px; height: 1px; background: var(--red); }
.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 5.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0.02em;
  max-width: 14em;
}
.hero h1 .dot { color: var(--red); }
.hero-en {
  margin-top: 20px;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 34em;
  letter-spacing: 0.04em;
}
.hero-actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px;
  font-size: 14px; letter-spacing: 0.12em;
  border: 1px solid var(--red);
  background: var(--red); color: #fff;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* 向下滚动提示 */
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--red), transparent);
  animation: hint 2s var(--ease) infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 通用区块 ---------- */
.section { padding: clamp(76px, 10vw, 124px) 0; }
.section-soft { background: var(--bg-soft); }

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-kicker {
  color: var(--red);
  font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase;
  font-weight: 600;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.sec-kicker::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.sec-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.2; font-weight: 800; letter-spacing: 0.02em;
}
.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.more-link {
  font-size: 13px; letter-spacing: 0.15em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.more-link:hover { color: var(--red); border-color: var(--red); }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 88px);
}
.about-left { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.about-text p { color: var(--ink-2); margin-bottom: 22px; font-size: 15.5px; }
.about-text p strong { color: var(--ink); }

.stats {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 28px 18px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 18px;
}
.stat:last-child { border-right: none; margin-right: 0; }
.stat .num {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: 0.01em;
}
.stat .num sup { color: var(--red); font-size: 0.55em; margin-left: 2px; }
.stat .lbl { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; letter-spacing: 0.05em; }

/* ---------- 产品中心（6 模块） ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.p-card {
  border: 1px solid var(--line);
  background: #fff;
  display: flex; flex-direction: column;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.p-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.p-card figure {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.p-card figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.p-card:hover figure img { transform: scale(1.05); }
.p-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.p-index {
  font-size: 11px; letter-spacing: 0.25em; color: var(--red);
  font-weight: 700; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.p-index .p-more {
  color: var(--ink-2); font-weight: 400; letter-spacing: 0.1em;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.p-card:hover .p-more { color: var(--red); transform: translateX(4px); }
.p-name { font-size: 18px; font-weight: 700; margin-top: 14px; letter-spacing: 0.02em; }
.p-name-en {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 4px;
}
.p-desc {
  font-size: 13.5px; color: var(--ink-2); margin-top: 14px;
  line-height: 1.8;
}

/* ---------- 核心优势 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.adv {
  padding: 8px 28px 8px 24px;
  border-left: 1px solid var(--line);
}
.adv:first-child { border-left: none; padding-left: 0; }
.adv .no {
  font-size: 12px; letter-spacing: 0.25em; color: var(--red); font-weight: 700;
}
.adv h3 { font-size: 17.5px; font-weight: 700; margin: 14px 0 10px; letter-spacing: 0.02em; }
.adv p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 联系 CTA ---------- */
.cta {
  position: relative;
  background: var(--ink) url("../img/about-bg.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: clamp(80px, 11vw, 130px) 0;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(18, 16, 14, 0.86);
}
.cta .container { position: relative; z-index: 1; }
.cta .sec-kicker { justify-content: center; }
.cta .sec-kicker::after { content: ""; width: 28px; height: 1px; background: var(--red); }
.cta h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 800; line-height: 1.25; letter-spacing: 0.02em;
}
.cta p { color: rgba(255,255,255,0.65); margin: 20px auto 40px; max-width: 36em; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.f-brand img { height: 34px; margin-bottom: 18px; }
.f-brand p { font-size: 13px; color: var(--ink-2); max-width: 26em; }
.f-col h4 {
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 20px; font-weight: 700;
}
.f-col li { margin-bottom: 12px; font-size: 13.5px; }
.f-col a { color: var(--ink-2); transition: color 0.3s; }
.f-col a:hover { color: var(--red); }
.f-contact li { color: var(--ink-2); display: flex; gap: 10px; }
.f-contact .k { color: var(--red); flex: none; }
.footer-bar {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-2);
}
.footer-bar a:hover { color: var(--red); }

/* ---------- 产品子页面 ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 88px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.06em;
  margin-bottom: 30px; display: flex; gap: 10px; flex-wrap: wrap;
}
.crumb a:hover { color: var(--red); }
.crumb .sep { color: var(--line); }
.pd-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.pd-title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
.pd-title-en {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.pd-title-en::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.pd-intro { color: var(--ink-2); margin-top: 24px; font-size: 15.5px; max-width: 34em; }
.pd-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.pd-figure { border: 1px solid var(--line); background: #fff; }
.pd-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.pd-section { padding: clamp(56px, 8vw, 96px) 0; }
.pd-section + .pd-section { border-top: 1px solid var(--line); }
.pd-cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(36px, 5vw, 72px); }
.pd-cols h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.3; }
.pd-cols .txt p { color: var(--ink-2); margin-bottom: 18px; font-size: 15px; }

.feature-list li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list li:first-child { padding-top: 0; }
.feature-list .sq {
  flex: none; width: 9px; height: 9px; background: var(--red); margin-top: 9px;
}
.feature-list h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.feature-list p { font-size: 13.5px; color: var(--ink-2); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  border: 1px solid var(--line);
  padding: 13px 18px;
  text-align: left;
}
.spec-table th {
  width: 32%; background: var(--bg-soft);
  font-weight: 600; color: var(--ink);
}
.spec-table td { color: var(--ink-2); }

.tag-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-row span {
  border: 1px solid var(--line);
  padding: 9px 20px; font-size: 13px; color: var(--ink-2);
  transition: border-color 0.3s, color 0.3s;
}
.tag-row span:hover { border-color: var(--red); color: var(--red); }

/* 上一个 / 下一个产品 */
.pn-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.pn-nav a {
  padding: 34px 0;
  font-size: 14px;
  display: flex; flex-direction: column; gap: 6px;
  transition: color 0.3s;
}
.pn-nav a:hover { color: var(--red); }
.pn-nav .dir { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-2); }
.pn-nav .next { text-align: right; border-left: 1px solid var(--line); }

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .main-nav { display: none; }
  .header-right { gap: 14px; }
  .menu-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .about-left { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .adv:nth-child(3) { border-left: none; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-figure { order: -1; }
  .pd-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .brand img { height: 30px; }
  .brand-name .cn { font-size: 13.5px; }
  .header-right { gap: 12px; }
  .hero { min-height: 84vh; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .product-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; margin-right: 0; }
  .stat { margin-bottom: 24px; }
  .adv-grid { grid-template-columns: 1fr; }
  .adv { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
  .adv:first-child { border-top: none; padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pn-nav { grid-template-columns: 1fr; }
  .pn-nav .next { text-align: left; border-left: none; border-top: 1px solid var(--line); }
  .spec-table th, .spec-table td { padding: 11px 12px; font-size: 13px; }
}
