/* ============================================================
   砼模科技 TOMO FORMWORK — Apple-style white minimal theme
   ============================================================ */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --industrial: #ff6a00;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --nav-h: 52px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.nav-logo .en {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-2);
}
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 13px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.nav-links a .en {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }
.nav-links a:hover .en, .nav-links a.active .en { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (homepage poster) ---------- */
.hero {
  margin-top: var(--nav-h);
  position: relative;
  width: 100%;
  background: #0b1c33;
}
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: calc(100vh - var(--nav-h));
  margin: 0 auto;
  overflow: hidden;
}
.hero-stage img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Robot pupils — absolutely positioned over the robot's eyes,
   moved subtly by JS on scroll / mouse move */
.pupil {
  position: absolute;
  width: 1.05%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #eafcff 0%, #7fdcff 45%, #1f9dff 100%);
  box-shadow: 0 0 6px 2px rgba(90, 200, 255, 0.85), 0 0 18px 6px rgba(60, 170, 255, 0.35);
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  z-index: 3;
}
.pupil-l { left: 32.96%; top: 13.6%; }
.pupil-r { left: 36.76%; top: 14.8%; }

/* Company sign hanging on the gate */
.gate-sign {
  position: absolute;
  left: 20.5%;
  top: 46%;
  width: 30%;
  z-index: 4;
  background: linear-gradient(160deg, rgba(28, 30, 34, 0.92), rgba(48, 50, 56, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.2vw;
  padding: 2.2% 3%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
}
.gate-sign::before, .gate-sign::after {
  content: "";
  position: absolute;
  top: -14%;
  width: 2.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8d8dc, #6a6a70 70%);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}
.gate-sign::before { left: 12%; }
.gate-sign::after { right: 12%; }
.gate-sign .zh {
  font-size: clamp(20px, 3.4vw, 56px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #f5f5f7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}
.gate-sign .en {
  margin-top: 0.35em;
  font-size: clamp(9px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: #ffb27a;
  text-transform: uppercase;
}

/* Hero scroll hint */
.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.hero-hint::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
  animation: hintDrop 1.8s ease-in-out infinite;
}
@keyframes hintDrop {
  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; }
}

/* ---------- Typography blocks ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--industrial);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.section-head .sub {
  margin-top: 14px;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-2);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .sub .en { display: block; margin-top: 6px; font-size: 0.82em; color: var(--text-3); }

/* ---------- Entry cards (App-style) ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.entry-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.entry-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.entry-card .thumb {
  background: #fafafc;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.entry-card .thumb img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.entry-card:hover .thumb img { transform: scale(1.05); }
.entry-card .label { padding: 22px 26px 26px; text-align: center; }
.entry-card .label .zh { font-size: 22px; font-weight: 700; letter-spacing: 0.06em; }
.entry-card .label .en {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-3);
}
.entry-card .label .more {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Feature strip (homepage) ---------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.feature-item { padding: 28px 16px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.feature-item .num { font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.feature-item .num span { color: var(--industrial); }
.feature-item .cap { margin-top: 6px; font-size: 14px; font-weight: 600; }
.feature-item .cap-en { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  margin-top: var(--nav-h);
  padding: 88px 0 64px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-soft), #fff);
}
.page-hero .kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--industrial); margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; }
.page-hero .sub { margin: 18px auto 0; max-width: 680px; font-size: clamp(15px, 1.7vw, 19px); color: var(--text-2); }
.page-hero .sub .en { display: block; margin-top: 6px; font-size: 0.82em; color: var(--text-3); }
.page-hero img.page-hero-img { width: min(420px, 72vw); margin: 40px auto 0; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.product-card .thumb {
  aspect-ratio: 4 / 3;
  background: #fafafc;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .thumb svg { width: 72px; height: 72px; stroke: var(--text); }
.product-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.product-card .body h3 { font-size: 20px; font-weight: 700; }
.product-card .body .en {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-3); margin-top: 3px;
}
.product-card .body p { margin-top: 12px; font-size: 14px; color: var(--text-2); flex: 1; }
.product-card .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.product-card .tags span {
  font-size: 11px; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line);
}

/* ---------- Services ---------- */
.service-list { display: flex; flex-direction: column; gap: 20px; max-width: 860px; margin: 0 auto; }
.service-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-row:hover { transform: translateX(6px); box-shadow: var(--shadow-card-hover); }
.service-row .ico {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, #fff4ec, #ffe3cf);
  display: flex; align-items: center; justify-content: center;
}
.service-row .ico svg { width: 30px; height: 30px; stroke: var(--industrial); }
.service-row h3 { font-size: 19px; font-weight: 700; }
.service-row h3 .en { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.service-row p { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.service-row p .en { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }

/* ---------- Team ---------- */
.team-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fafafc;
  max-width: 760px;
  margin: 0 auto;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.member-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.member-card .avatar {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, var(--av1), var(--av2));
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.12);
}
.member-card h3 { font-size: 17px; font-weight: 700; }
.member-card .role { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--industrial); }
.member-card .role-en { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.member-card p { margin-top: 12px; font-size: 12.5px; color: var(--text-2); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(160deg, #101418, #1f2937);
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  color: #f5f5f7;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 700; letter-spacing: -0.01em; }
.cta-band .en { margin-top: 10px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: #9ca3af; }
.cta-band .btn {
  display: inline-block;
  margin-top: 30px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 34px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.cta-band .btn:hover { background: var(--accent-hover); transform: scale(1.04); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid rgba(0,0,0,0.06); padding: 56px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .zh { font-size: 20px; font-weight: 800; letter-spacing: 0.1em; }
.footer-brand .en { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; color: var(--text-3); text-transform: uppercase; margin-top: 4px; }
.footer-brand p { margin-top: 14px; font-size: 12.5px; color: var(--text-2); max-width: 280px; }
.footer h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer h4 .en { font-weight: 600; color: var(--text-3); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; margin-left: 6px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { font-size: 13px; color: var(--text-2); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.qr-box {
  width: 96px; height: 96px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}
.qr-box svg { width: 100%; height: 100%; }
.footer-contact .qr-cap { margin-top: 8px; font-size: 11px; color: var(--text-3); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .entries, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .entries, .product-grid, .team-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: 4 / 5; max-height: none; }
  .hero-stage img.hero-img { object-position: 28% 20%; }
  .gate-sign { left: 8%; top: 52%; width: 56%; border-radius: 14px; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 14px 24px; flex-direction: row; gap: 10px; align-items: baseline; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
