/* =========================================================
   CarbEX 官网样式 v0.1 — 高通风格（浅色底 + 品牌蓝）
   色板：#3253DC（品牌蓝）/ #14142B（标题） / #3C3C50（正文）
   字体：Inter（OFL 开源），回退系统字体栈
   ========================================================= */

:root {
  --blue: #3253DC;
  --blue-dark: #2540B8;
  --navy: #14142B;
  --text: #3C3C50;
  --muted: #6E6E8A;
  --bg: #FFFFFF;
  --bg-alt: #F5F6FA;
  --border: #E4E6F0;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(20, 20, 43, 0.08);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

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

/* ---------- 通用排版 ---------- */
h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

.eyebrow {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-inverse { background: #fff; color: var(--blue); }
.btn-inverse:hover { background: var(--bg-alt); }

/* ---------- 吸顶导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }

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

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 38px; width: auto; display: block; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
}
.logo-text { font-size: 1.2rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-cta {
  color: var(--blue); border: 1.5px solid var(--blue);
  padding: 8px 18px; border-radius: 8px;
}
.main-nav .nav-cta:hover { background: var(--blue); color: #fff; }
.lang-switch { font-size: 0.88rem; }
.lang-switch:hover { color: var(--blue) !important; }

/* ---------- 中文版排版适配 ---------- */
html[lang="zh-CN"] body {
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 { letter-spacing: 0; }

.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: var(--navy); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, #FBFBFE 0%, #FFFFFF 100%); }
.hero-grid { display: grid; gap: 44px; }
.hero-copy { max-width: 760px; }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 20px 0 28px; max-width: 40em; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  list-style: none; margin-top: 32px;
}
.hero-points li {
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
  padding-left: 20px; position: relative;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 10px; transform: translateY(-50%);
  border-radius: 3px; background: var(--blue);
}
.hero-visual { margin: 0; }
.hero-visual img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 21 / 9; object-fit: cover; object-position: center 30%; }

/* ---------- 主打产品卡 ---------- */
.feature-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  background: var(--bg-alt); border-radius: 18px; overflow: hidden;
  padding: 40px; margin-bottom: 28px;
  border: 1px solid var(--border);
}
.feature-media img { border-radius: 12px; background: var(--navy); }
.spec-list { list-style: none; margin: 18px 0 22px; }
.spec-list li { padding: 7px 0 7px 24px; position: relative; font-size: 0.95rem; }
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.spec-list strong { color: var(--navy); }
.text-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- 生态产品矩阵 ---------- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.eco-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.eco-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.eco-card p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.eco-concept { position: relative; }
.badge-concept {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
  border: 1px solid var(--blue); border-radius: 99px; padding: 3px 10px;
}

/* ---------- 技术四卡 ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tech-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.tech-card h3 { margin-bottom: 14px; }
.tech-card ul { list-style: none; }
.tech-card li {
  font-size: 0.9rem; color: var(--text);
  padding: 6px 0 6px 16px; position: relative;
}
.tech-card li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}

/* ---------- 全链路流程 ---------- */
.process-flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  list-style: none; counter-reset: step;
}
.process-flow li {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.step-num {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--blue); letter-spacing: 0.1em; margin-bottom: 10px;
}
.process-flow p { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* ---------- 应用场景 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case-body { padding: 24px; }
.case-body p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

/* ---------- 合作模式 ---------- */
.engage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.engage-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; background: var(--bg);
  border-top: 4px solid var(--blue);
}
.engage-card p { color: var(--muted); font-size: 0.94rem; margin-top: 10px; }

/* ---------- 关于 / 愿景 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-copy p { margin-top: 16px; }
.vision-quote {
  border-left: 4px solid var(--blue);
  padding: 8px 0 8px 28px;
}
.vision-quote p {
  font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1.45;
}
.vision-quote cite {
  display: block; margin-top: 14px; color: var(--muted);
  font-style: normal; font-size: 0.9rem;
}

/* ---------- 解决方案轮播 ---------- */
.carousel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-alt);
  overflow: hidden;
}
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide {
  min-width: 100%;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 36px; padding: 28px 36px;
  align-items: center;
}
.slide-media { margin: 0; }
.slide-media img {
  border-radius: 12px; width: 100%;
  aspect-ratio: 21 / 9; object-fit: cover;
}
.slide-tag {
  color: var(--blue); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
}
html[lang="zh-CN"] .slide-tag { letter-spacing: 0.06em; }
.slide-body h3 { font-size: 1.5rem; margin-bottom: 14px; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.prod-chips span {
  font-size: 0.8rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--border);
  border-radius: 99px; padding: 4px 12px;
}
.slide-feats { list-style: none; margin-bottom: 16px; }
.slide-feats li { padding: 5px 0 5px 22px; position: relative; font-size: 0.94rem; }
.slide-feats li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.slide-feats strong { color: var(--navy); }
.scene-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-chips em {
  font-style: normal; font-size: 0.8rem; color: var(--blue);
  background: rgba(50, 83, 220, 0.08); border-radius: 99px; padding: 4px 12px;
}
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; padding: 0 0 22px;
}
.car-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--navy); font-size: 1.2rem; line-height: 1;
  cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
.car-arrow:hover { border-color: var(--blue); color: var(--blue); }
.car-dots { display: flex; gap: 8px; }
.car-dot {
  width: 8px; height: 8px; border-radius: 99px; border: none;
  background: var(--border); cursor: pointer; padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}
.car-dot.active { background: var(--blue); width: 22px; }

/* ---------- 底部 CTA ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 80px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B8BAD0; margin: 14px 0 28px; }
.cta-alt { margin-top: 18px !important; font-size: 0.9rem; }
.cta-alt a { color: #fff; font-weight: 600; }

/* ---------- 询价弹窗 ---------- */
.inquiry-dialog {
  position: relative;
  border: none; border-radius: 16px;
  padding: 32px; width: min(560px, 92vw);
  box-shadow: 0 24px 64px rgba(20, 20, 43, 0.28);
}
.inquiry-dialog::backdrop { background: rgba(20, 20, 43, 0.55); }
.inquiry-dialog h2 { font-size: 1.4rem; margin-bottom: 6px; }
.dialog-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.dialog-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 1.6rem;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.dialog-close:hover { color: var(--navy); }
.inquiry-dialog form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-dialog label {
  display: grid; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--navy);
}
.inquiry-dialog input,
.inquiry-dialog select,
.inquiry-dialog textarea {
  font: inherit; font-weight: 400; width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text);
}
.inquiry-dialog input:focus,
.inquiry-dialog select:focus,
.inquiry-dialog textarea:focus { outline: none; border-color: var(--blue); }
.btn-submit { justify-self: start; margin-top: 4px; }
button.btn { font-family: inherit; cursor: pointer; }
.btn-primary, .btn-inverse { border: none; }
.dialog-note { font-size: 0.82rem; color: var(--muted); }
.dialog-note a { color: var(--blue); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */
.site-footer { background: #0E0E20; color: #8A8CA8; padding: 56px 0 0; font-size: 0.9rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px; padding-bottom: 40px;
}
.site-footer .logo img { height: 30px; }
.footer-note { margin-top: 14px; line-height: 1.7; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { color: #8A8CA8; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.footer-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-contact p { margin-top: 10px; }
.footer-legal { border-top: 1px solid #22224a; padding: 20px 24px; }
.footer-legal p { font-size: 0.8rem; }

/* ---------- 滚动淡入动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .about-grid, .feature-card { grid-template-columns: 1fr; }
  .carousel-slide { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .tech-grid, .process-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-grid, .case-grid, .engage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual img { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .tech-grid, .process-flow, .eco-grid, .case-grid, .engage-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 60px 0; }
}
