/* ============================================================
   拓亨塑业 TuoHeng Plastic — 设计系统
   配色：深黑 + 金色（高端工业风，参考晖尔CNC）
   布局：顶部玻璃胶囊导航，全屏 hero + 轮播
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --black: #050505;
  --black-2: #0d0d0d;
  --black-3: #161616;
  --gold: #d4a853;
  --gold-2: #e8c87a;
  --gold-dim: #b8933f;

  --bg: #faf8f3;          /* 内页浅色内容区 */
  --bg-2: #f2eee6;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e2d6;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 顶部玻璃胶囊导航 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 20px 16px 0;
  pointer-events: none;
}
.header__nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,5,5,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 5px;
  transition: background 0.4s;
}
.header__nav.is-scrolled { background: rgba(5,5,5,0.82); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.header__brand {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px 6px 8px;
}
.header__logo {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(212,168,83,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.header__brand-name {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.92);
  white-space: nowrap;
}
.header__links { display: flex; align-items: center; padding: 0 8px; }
.header__link {
  padding: 8px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.68);
  transition: all 0.3s;
  white-space: nowrap;
}
.header__link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.header__link.is-active { color: #fff; background: rgba(255,255,255,0.09); }
.header__actions { display: flex; align-items: center; gap: 2px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.08); }
.header__lang {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.78);
  transition: all 0.3s;
}
.header__lang:hover { color: #fff; background: rgba(255,255,255,0.05); }
.header__burger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: 4px; border-radius: 50%;
}
.header__burger span {
  display: block; width: 18px; height: 1.5px; background: rgba(255,255,255,0.8);
  position: relative; transition: all 0.3s;
}
.header__burger span::before, .header__burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: rgba(255,255,255,0.8);
  transition: all 0.3s;
}
.header__burger span::before { top: -5px; }
.header__burger span::after { top: 5px; }

/* 移动端全屏菜单 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__link {
  padding: 14px 40px; font-size: 22px; font-weight: 700;
  color: rgba(255,255,255,0.8); border-radius: 16px; transition: all 0.3s;
}
.mobile-menu__link:hover { color: #fff; }
.mobile-menu__link.is-active { color: var(--gold); }
.mobile-menu__lang {
  margin-top: 24px; display: flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600;
}

/* ---------- 全屏 Hero + 轮播 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  overflow: hidden;
}
.hero__glow {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero__glow--1 { top: -200px; right: -200px; width: 800px; height: 800px; opacity: 0.2;
  background: radial-gradient(circle, rgba(212,168,83,0.35) 0%, transparent 70%); filter: blur(80px); }
.hero__glow--2 { bottom: -200px; left: -200px; width: 600px; height: 600px; opacity: 0.12;
  background: radial-gradient(circle, rgba(212,168,83,0.25) 0%, transparent 70%); filter: blur(60px); }

.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__slide video, .hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,5,5,0.15) 0%, rgba(5,5,5,0) 40%, rgba(5,5,5,0.55) 72%, rgba(5,5,5,0.95) 100%);
}

.hero__inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 10;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 0 24px 100px;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 24px;
}
.hero__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero__title {
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 800; line-height: 1.06; letter-spacing: -1px;
  color: #fff; max-width: 800px;
}
.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.72); font-weight: 300;
  margin-top: 20px; max-width: 560px; line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.2px;
  transition: all 0.3s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background: #fff; color: #050505; }
.btn--primary:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); backdrop-filter: blur(10px); color: rgba(255,255,255,0.85); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.08); color: #fff; }

/* 轮播控制 */
.hero__controls {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  z-index: 20; display: flex; align-items: center; gap: 14px;
}
.hero__arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all 0.3s;
}
.hero__arrow:hover { color: #fff; border-color: rgba(255,255,255,0.32); }
.hero__arrow svg { width: 14px; height: 14px; }
.hero__dots { display: flex; gap: 7px; }
.hero__dot {
  height: 3px; border-radius: 999px; background: rgba(255,255,255,0.18);
  transition: all 0.5s; width: 8px;
}
.hero__dot.is-active { width: 30px; background: var(--gold); }

/* ---------- 内页内容区 ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.page-hero {
  background: var(--black); color: #fff;
  padding: 150px 0 70px;
}
.page-hero .container { max-width: 1200px; }
.page-hero__title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -0.5px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.lead { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 640px; }

/* ---------- 数据统计 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.stat__num { font-size: 36px; font-weight: 800; color: var(--gold-dim); letter-spacing: -1px; }
.stat__num .unit { font-size: 17px; font-weight: 600; color: var(--muted); }
.stat__label { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px; }
.card__title { font-size: 17px; font-weight: 700; }
.card__desc { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* 产品分类入口 */
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0) 40%, rgba(5,5,5,0.85) 100%);
  display: flex; align-items: flex-end; padding: 18px;
}
.cat-card__name { color: #fff; font-size: 16px; font-weight: 700; }
.cat-card__count { color: var(--gold-2); font-size: 12.5px; }

/* ---------- 发展历程时间线 ---------- */
.section--dark { background: var(--black); padding: 72px 0; }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 9px; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.22);
}
.tl-item { position: relative; padding-top: 30px; }
.tl-dot {
  position: absolute; top: 0; left: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 4px solid var(--black);
  box-shadow: 0 0 0 3px var(--gold); z-index: 1;
}
.tl-year { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.5px; line-height: 1; }
.tl-event { font-size: 14px; font-weight: 600; color: #fff; margin-top: 8px; line-height: 1.4; }
.tl-desc { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 5px; line-height: 1.5; }

/* ---------- 表单 ---------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg);
  font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-dim); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-status.sending { color: var(--muted); }
.form-status.success { color: #1a7f4d; }
.form-status.error { color: #c0392b; }

/* 联系信息 */
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--black-3); color: var(--gold); display: grid; place-items: center;
}
.contact-item__label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-item__value { font-size: 16px; font-weight: 600; margin-top: 2px; }
.contact-item__value a:hover { color: var(--gold-dim); }

/* ---------- 页脚 ---------- */
.footer { background: var(--black); color: rgba(255,255,255,0.6); }
.footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer a:hover { color: #fff; }
.footer__brand { font-size: 15px; font-weight: 700; color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .header__links { display: none; }
  .header__actions { border-left: none; }
  .header__burger { display: flex; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .container { padding: 0 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat__num { font-size: 26px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { padding: 0 18px 90px; }
  .footer__inner { padding: 28px 18px; flex-direction: column; }
}
