/* ===== 基础变量与重置 ===== */
:root {
  --brand: #e8631f;
  --brand-dark: #c24e12;
  --brand-light: #fff3ec;
  --ink: #1c1c1e;
  --ink-2: #4a4a4e;
  --ink-3: #8a8a8e;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --line: #e8e8ea;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

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

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

/* ===== 中英文切换 ===== */
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="en"] body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif; }

/* ===== 导航栏 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

.menu-toggle { display: none; border: none; background: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ===== 首屏横幅 ===== */
.hero {
  position: relative;
  aspect-ratio: 1920 / 1051;
  max-width: 1000px;
  max-height: calc(100vh - 64px);
  margin: 64px auto 0;
  background: #ececec;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-p3.jpg") center / contain no-repeat;
}

.hero-bar {
  background: rgba(16, 18, 22, 0.96);
  padding: 14px max(24px, calc((100% - 1140px) / 2));
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
}

.hero-title {
  color: #fff;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(13px, 1.2vw, 15px);
  flex: 1 1 320px;
}

.hero-cta { display: flex; gap: 10px; margin-left: auto; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(232, 99, 31, 0.4); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

/* ===== 通用区块 ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-eyebrow {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.3; }
.section-sub { color: var(--ink-2); margin-top: 16px; font-size: 16px; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.about-text p { color: var(--ink-2); margin-bottom: 18px; font-size: 16px; }

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* ===== 产品与技术 ===== */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}

.product-name { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.product-name small { display: block; font-size: 15px; font-weight: 500; color: var(--brand); margin-top: 6px; }
.product-desc { color: var(--ink-2); margin-bottom: 22px; }

.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 15px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.product-gallery img:hover { transform: scale(1.03); }

/* 具身大脑 */
.brain-block {
  background: var(--ink);
  border-radius: calc(var(--radius) * 1.4);
  padding: 56px;
  color: #fff;
}
.brain-block .product-desc { color: rgba(255,255,255,0.72); max-width: 760px; }
.brain-block .product-name { color: #fff; }

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 36px;
}
.pipeline-step {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.25s, background 0.25s;
}
.pipeline-step:hover { border-color: var(--brand); background: rgba(232,99,31,0.10); }
.pipeline-num { color: var(--brand); font-weight: 800; font-size: 15px; letter-spacing: 1px; }
.pipeline-title { font-size: 19px; font-weight: 700; margin: 8px 0 6px; }
.pipeline-desc { font-size: 13.5px; color: rgba(255,255,255,0.62); }
.pipeline-arrow { align-self: center; color: var(--brand); font-size: 22px; font-weight: 700; }

/* ===== 应用场景 ===== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.scenario-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.25s;
}
.scenario-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.scenario-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.scenario-icon svg { width: 26px; height: 26px; }
.scenario-card h4 { font-size: 17px; font-weight: 700; }

.fruit-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.fruit-tag {
  padding: 7px 20px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.scene-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.scene-gallery figure { border-radius: var(--radius); overflow: hidden; position: relative; }
.scene-gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.scene-gallery figure:hover img { transform: scale(1.06); }
.scene-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}

/* ===== 资质荣誉 ===== */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.honor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.25s;
}
.honor-card:hover { box-shadow: var(--shadow); }
.honor-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.honor-card p { color: var(--ink-2); font-size: 15px; }
.honor-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 340px;
  margin: 18px auto 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: zoom-in;
}

/* 证书大图预览 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(8, 9, 12, 0.92);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(94vw, 1000px);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.media-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.media-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow 0.25s; }
.media-card:hover { box-shadow: var(--shadow); }
.media-card img { width: 100%; height: 200px; object-fit: cover; object-position: top; }
.media-card figcaption { padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }

.media-note { margin-top: 24px; color: var(--ink-3); font-size: 14px; }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.contact-label { font-size: 13px; color: var(--brand); font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.contact-value { font-size: 16.5px; font-weight: 600; }
.contact-value a { transition: color 0.2s; }
.contact-value a:hover { color: var(--brand); }

/* ===== 页脚 ===== */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 48px 0 36px; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; color: #fff; font-size: 17px; }
.footer-logo { width: 34px; height: 34px; border-radius: 8px; }
.footer-slogan { margin-top: 14px; color: var(--brand); font-size: 14.5px; letter-spacing: 2px; }
.footer-copy { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-copy a { transition: color 0.2s; }
.footer-copy a:hover { color: var(--brand); }

/* ===== 视频展示（占位） ===== */
.section-video { padding: 48px 0 32px; }
.video-tabs { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.video-tab {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #555;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.video-tab:hover { border-color: var(--brand); color: var(--brand); }
.video-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 99, 31, 0.35);
}
.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #14161a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .about-grid, .product-block { grid-template-columns: 1fr; gap: 32px; }
  .brain-block { padding: 36px 28px; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
  .scene-gallery { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 24px; font-size: 16px; }
  .menu-toggle { display: block; }

  .section { padding: 64px 0; }
  .hero-bar { padding: 12px 20px; gap: 10px 16px; }
  .hero-cta { margin-left: 0; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .honor-grid, .contact-grid, .media-grid { grid-template-columns: 1fr; }
  .product-gallery img { height: 180px; }
}
