/* 真泰科技 · 共享样式表 —— 与 index.html 视觉语言一致，供多页站点复用 */
:root {
  --paper: #f5f2eb;
  --paper-deep: #ece7dd;
  --ink: #13202b;
  --muted: #69747b;
  --orange: #e99224;
  --orange-soft: #ffc76f;
  --cyan: #00a8c6;
  --navy: #071a2c;
  --navy-2: #0b2944;
  --line: rgba(19, 32, 43, .15);
  --white: #fff;
  --shadow: 0 24px 70px rgba(10, 27, 41, .16);
  --radius: 24px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
::selection { color: var(--navy); background: var(--orange-soft); }

/* i18n：根据 <html lang> 切换中英文本，未激活语言隐藏 */
[data-en] { display: none; }
html[lang="en"] [data-en] { display: revert; }
html[lang="en"] [data-zh] { display: none; }

.scroll-progress {
  position: fixed;
  z-index: 1000;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { position: relative; padding: 120px 0; overflow: hidden; }
.section > .container { position: relative; z-index: 2; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-heading {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.section-number {
  position: absolute;
  top: 78px;
  right: max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(19, 32, 43, .055);
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  pointer-events: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  z-index: 900;
  inset: 0 0 auto;
  height: 78px;
  color: white;
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
}
.site-header.solid,
.site-header.scrolled {
  color: var(--ink);
  background: rgba(247, 244, 237, .88);
  box-shadow: 0 12px 30px rgba(7, 26, 44, .08);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1380px, calc(100% - 48px));
  height: 100%;
  margin: auto;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img {
  width: 220px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 5px 15px rgba(0, 0, 0, .24));
  transition: filter .3s ease, opacity .3s ease;
}
.site-header.solid .brand img,
.site-header.scrolled .brand img { filter: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { position: relative; font-size: .86rem; text-decoration: none; opacity: .82; }
.nav a.active { opacity: 1; }
.nav a:not(.nav-cta):not(.nav-download):not(.lang-toggle)::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.nav-cta):not(.nav-download):not(.lang-toggle).active::after,
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 18px;
  color: var(--navy);
  background: var(--orange);
  border-radius: 999px;
  font-weight: 800;
  opacity: 1 !important;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  color: currentColor;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  opacity: 1 !important;
}
.site-header.solid .lang-toggle,
.site-header.scrolled .lang-toggle { border-color: rgba(19, 32, 43, .25); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  color: currentColor; background: transparent; border: 0; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--navy); background: var(--orange); }
.btn-ghost { color: white; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .07); }
.btn-dark { color: white; background: var(--navy); }
.btn-outline { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, .55); }

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  padding: 168px 0 80px;
  color: white;
  background: linear-gradient(135deg, #071a2c 0%, #0b2944 60%, #122432 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(0,168,198,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,198,.18) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 82%, transparent);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  color: var(--orange-soft); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.page-hero .eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--orange); }
.page-hero h1 {
  max-width: 900px; margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.03; letter-spacing: -.05em; text-wrap: balance;
}
.page-hero p { max-width: 640px; margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem,1.4vw,1.18rem); }
.crumbs { display: flex; gap: 10px; align-items: center; margin: 0 0 22px; color: rgba(255,255,255,.55); font-size: .78rem; }
.crumbs a { text-decoration: none; opacity: .85; }
.crumbs a:hover { opacity: 1; color: var(--orange-soft); }
.crumbs span { opacity: .4; }

/* ---------- Products index ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 0 0 40px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(10,27,41,.06);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 9px 16px; color: var(--muted); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip.active { color: white; background: var(--navy); border-color: var(--navy); }
.filter-search { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 0 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.filter-search input { min-width: 180px; padding: 11px 0; color: var(--ink); background: transparent; border: 0; outline: none; font-size: .86rem; }
.filter-search svg { flex: none; opacity: .5; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-tile {
  display: flex; flex-direction: column; overflow: hidden;
  color: inherit; background: white; border: 1px solid var(--line); border-radius: 20px; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-tile:hover { transform: translateY(-7px); box-shadow: 0 22px 55px rgba(10,27,41,.12); }
.product-tile .thumb { display: grid; place-items: center; aspect-ratio: 4/3; padding: 26px; background: var(--paper-deep); }
.product-tile .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.product-tile:hover .thumb img { transform: scale(1.05); }
.product-tile .body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.product-tile .tag { color: var(--cyan); font-size: .66rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.product-tile h3 { margin: 7px 0 8px; font-size: 1.18rem; }
.product-tile p { margin: 0; color: var(--muted); font-size: .85rem; }
.product-tile .specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.product-tile .specs span { padding: 6px 9px; background: var(--paper); border-radius: 7px; font-size: .68rem; }
.product-tile .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--cyan); font-size: .76rem; font-weight: 850; }
.product-tile .more::after { content: "→"; transition: transform .2s ease; }
.product-tile:hover .more::after { transform: translateX(4px); }
.empty-state { padding: 60px 0; color: var(--muted); text-align: center; }

/* ---------- Cases index ---------- */
.case-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-tile {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  background: white; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  box-shadow: 0 18px 50px rgba(12,26,38,.06); transition: transform .25s ease, box-shadow .25s ease;
}
.case-tile:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(12,26,38,.12); }
.case-tile .visual { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #dfe4e4; }
.case-tile .visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.2,1); }
.case-tile:hover .visual img { transform: scale(1.04); }
.case-tile .visual.contain img { object-fit: contain; padding: 22px; background: #edf0ee; }
.case-tile .label { position: absolute; top: 14px; left: 14px; padding: 7px 12px; color: white; background: rgba(7,26,44,.72); border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; backdrop-filter: blur(8px); }
.case-tile .body { padding: 28px; }
.case-tile h3 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.22; }
.case-tile p { margin: 0; color: var(--muted); font-size: .9rem; }
.case-tile .metrics { display: flex; gap: 22px; margin-top: 20px; }
.case-tile .metrics b { display: block; font-size: 1.05rem; }
.case-tile .metrics small { color: var(--muted); font-size: .68rem; }

/* ---------- Case detail ---------- */
.case-detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 8px; }
.case-detail-hero .frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-deep); aspect-ratio: 16/11; }
.case-detail-hero .frame img { width: 100%; height: 100%; object-fit: cover; }
.case-detail-hero .frame.contain img { object-fit: contain; padding: 26px; background: #edf0ee; }
.flow-steps { display: grid; gap: 0; margin-top: 8px; }
.flow-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.flow-step:last-child { border-bottom: 1px solid var(--line); }
.flow-step b { color: var(--orange); font-size: 1.5rem; font-weight: 900; line-height: 1; }
.flow-step h4 { margin: 0 0 5px; font-size: 1.05rem; }
.flow-step p { margin: 0; color: var(--muted); font-size: .88rem; }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 8px; }
.metric-card { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.metric-card b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.metric-card small { color: var(--muted); font-size: .74rem; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  background: white; border: 1px solid var(--line); border-radius: 20px; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 22px 55px rgba(10,27,41,.1); }
.news-card .cover { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-deep); }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .cover img { transform: scale(1.05); }
.news-card .body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.news-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: .72rem; }
.news-meta .cat { padding: 5px 10px; color: var(--orange); background: rgba(233,146,36,.1); border-radius: 999px; font-weight: 800; letter-spacing: .06em; }
.news-meta time { color: var(--muted); }
.news-card h3 { margin: 0 0 10px; font-size: 1.14rem; line-height: 1.35; }
.news-card p { margin: 0 0 16px; color: var(--muted); font-size: .86rem; }
.news-card .more { margin-top: auto; color: var(--cyan); font-size: .76rem; font-weight: 850; }
.news-featured { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden; margin-bottom: 22px; background: var(--navy); border-radius: var(--radius); color: white; }
.news-featured .cover { aspect-ratio: auto; }
.news-featured .cover img { height: 100%; }
.news-featured .body { padding: 44px; justify-content: center; }
.news-featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.2; }
.news-featured p { color: rgba(255,255,255,.66); font-size: .95rem; }
.news-featured .news-meta time { color: rgba(255,255,255,.6); }

/* ---------- About ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.stat-band div { padding: 26px 24px 0 0; }
.stat-band b { display: block; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
.stat-band span { color: var(--muted); font-size: .8rem; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.value-card .vn { color: var(--orange); font-size: 1.7rem; font-weight: 900; }
.value-card h3 { margin: 12px 0 8px; font-size: 1.16rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.timeline { position: relative; margin-top: 8px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 34px; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 5px; width: 12px; height: 12px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 4px var(--paper); }
.timeline-item b { display: block; color: var(--cyan); font-size: .95rem; }
.timeline-item h4 { margin: 4px 0 5px; font-size: 1.1rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .88rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; }
.team-card .photo { aspect-ratio: 1; background: repeating-linear-gradient(135deg, #e5e0d6 0 12px, #ece7dd 12px 24px); display: grid; place-items: center; color: var(--muted); font-family: ui-monospace, monospace; font-size: .68rem; }
.team-card .who { padding: 18px 20px 22px; }
.team-card h4 { margin: 0 0 3px; font-size: 1.02rem; }
.team-card span { color: var(--muted); font-size: .8rem; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info .info-item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-info .info-item:first-child { border-top: 0; padding-top: 0; }
.contact-info .info-item b { display: block; margin-bottom: 4px; color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.contact-info .info-item p, .contact-info .info-item a { margin: 0; color: var(--ink); font-size: 1.05rem; text-decoration: none; }
.contact-info .info-item a:hover { color: var(--cyan); }
.form-card { padding: 34px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { margin-bottom: 7px; font-size: .82rem; font-weight: 700; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  padding: 13px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .9rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,168,198,.12); }
.field .hint { margin-top: 6px; color: var(--muted); font-size: .72rem; }
.form-note { margin: 6px 0 18px; padding: 14px 16px; color: var(--muted); background: var(--paper); border-left: 3px solid var(--cyan); border-radius: 8px; font-size: .78rem; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .86rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #0a6b4f; background: rgba(16,185,129,.12); }
.form-status.err { color: #9a3412; background: rgba(233,146,36,.14); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 30px; color: rgba(255,255,255,.6); background: #04111e; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 200px; height: auto; margin-bottom: 16px; }
.footer-brand p { margin: 0; color: rgba(255,255,255,.5); font-size: .82rem; max-width: 280px; }
.footer-col h5 { margin: 0 0 16px; color: white; font-size: .82rem; letter-spacing: .04em; }
.footer-col a { display: block; margin-bottom: 10px; color: rgba(255,255,255,.6); font-size: .82rem; text-decoration: none; }
.footer-col a:hover { color: var(--orange-soft); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: .74rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }

/* ---------- Reveal / Lightbox ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.lightbox { position: fixed; z-index: 1200; inset: 0; display: none; place-items: center; padding: 30px; background: rgba(2,10,18,.92); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 84vh; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.lightbox button { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; color: white; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 0; display: none; flex-direction: column; place-content: center; gap: 22px; color: white; background: rgba(7,26,44,.97); text-align: center; }
  .menu-open .nav { display: flex; }
  .nav a { font-size: 1.25rem; }
  .menu-toggle { position: relative; z-index: 2; display: block; }
  .menu-open .site-header { color: white; }
  .product-grid, .news-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .case-index-grid, .case-detail-hero, .contact-layout, .news-featured { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container, .header-inner { width: calc(100% - 32px); }
  .brand img { width: 170px; height: 48px; }
  .section { padding: 80px 0; }
  .page-hero { padding: 130px 0 60px; }
  .filter-search { margin-left: 0; width: 100%; }
  .product-grid, .news-grid, .team-grid, .form-row, .stat-band { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
