/* =========================================================
   深圳市锋邦科技有限公司 · 企业展示官网
   现代科技蓝设计系统 / 纯静态 / 中英双语共用
   ========================================================= */

:root {
  /* 主色 */
  --c-primary: #0A66FF;
  --c-primary-deep: #0747B8;
  --c-accent: #22C5FF;
  /* 文字 */
  --c-ink: #0F1B2D;
  --c-body: #5A6577;
  --c-muted: #8A94A6;
  /* 背景 */
  --c-bg: #FFFFFF;
  --c-bg-soft: #F5F8FC;
  --c-bg-dark: #0B1B33;
  --c-border: #E5ECF5;
  /* 渐变 */
  --grad-brand: linear-gradient(135deg, #0A66FF 0%, #22C5FF 100%);
  --grad-dark: linear-gradient(135deg, #0B1B33 0%, #123a66 100%);
  /* 阴影 */
  --shadow-sm: 0 4px 14px rgba(15, 27, 45, .06);
  --shadow-md: 0 12px 32px rgba(15, 27, 45, .10);
  --shadow-lg: 0 24px 60px rgba(10, 102, 255, .18);
  /* 圆角 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  /* 间距 */
  --maxw: 1200px;
  /* 字体 */
  --font-cn: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
  --font-en: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font: var(--font-en), var(--font-cn);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.25; font-weight: 700; }

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

.section { padding: 96px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--grad-dark); color: #cfe0f5; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- 文字工具 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(10, 102, 255, .08);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.section-head p { font-size: 16px; color: var(--c-body); }
.section--dark .section-head p { color: #b9cfe8; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-lg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 28px 70px rgba(10,102,255,.30); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 18px; }
.nav.is-scrolled .brand { color: var(--c-ink); }
.brand__logo {
  width: 36px; height: 36px; border-radius: 9px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand__logo svg { width: 20px; height: 20px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--c-muted); letter-spacing: .04em; }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: 9px 14px; font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.9); border-radius: 8px; transition: color .2s ease;
}
.nav.is-scrolled .nav__link { color: var(--c-body); }
.nav__link:hover { color: #fff; }
.nav.is-scrolled .nav__link:hover { color: var(--c-primary); }
.nav__link.is-active { color: #fff; }
.nav.is-scrolled .nav__link.is-active { color: var(--c-primary); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}
.nav__cta { margin-left: 10px; }
.nav__lang { margin-left: 6px; display: flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.nav.is-scrolled .nav__lang { background: var(--c-bg-soft); }
.nav__lang a { padding: 5px 11px; font-size: 13px; font-weight: 600; border-radius: 999px; color: rgba(255,255,255,.8); }
.nav.is-scrolled .nav__lang a { color: var(--c-muted); }
.nav__lang a.active { background: var(--grad-brand); color: #fff; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav.is-scrolled .nav__toggle span { background: var(--c-ink); }

/* 移动抽屉 */
.nav__drawer {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
  background: #fff; z-index: 1100; transform: translateX(100%);
  transition: transform .3s ease; box-shadow: var(--shadow-md); padding: 88px 24px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer a { padding: 14px 12px; font-size: 16px; color: var(--c-ink); border-radius: 10px; font-weight: 500; }
.nav__drawer a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.nav__drawer .btn { margin-top: 14px; }
.nav__overlay {
  position: fixed; inset: 0; background: rgba(11,27,51,.45); z-index: 1050;
  opacity: 0; visibility: hidden; transition: .3s;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--grad-dark); color: #fff; overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(34,197,255,.22), transparent 60%),
    radial-gradient(900px 520px at 12% 90%, rgba(10,102,255,.30), transparent 60%);
}
.hero__grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); letter-spacing: -.5px; margin-bottom: 22px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #cfe0f5; max-width: 520px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero__stats .num { font-size: 30px; font-weight: 700; color: #fff; }
.hero__stats .lbl { font-size: 13px; color: #9fb8d6; }
.hero__visual { position: relative; }

/* 全景车示意 SVG 容器 */
.ring-visual { width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.4)); }

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

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: 32px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(10,102,255,.08);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--c-primary);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; }
.card .tag { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--c-primary); font-weight: 600; }

/* 产品卡 */
.product-card { overflow: hidden; padding: 0; }
.product-card__media {
  height: 220px; background: #F5F8FC; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.product-card__media svg { width: 96px; height: 96px; opacity: .9; }
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }

/* 安装效果实拍画廊 */
.install-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.install-gallery__item { position: relative; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #F5F8FC; }
.install-gallery__item img { width: 100%; height: 250px; object-fit: fill; display: block; transition: transform .5s ease; }
.install-gallery__item:hover img { transform: scale(1.04); }
.install-gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; background: linear-gradient(transparent, rgba(7,26,54,.85)); color: #fff; font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) { .install-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .install-gallery { grid-template-columns: 1fr; } .install-gallery__item img { height: 220px; } }
.product-card__media .badge {
  position: absolute; top: 14px; left: 14px; background: rgba(10,102,255,.9);
  color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.product-card__body { padding: 26px; }
.product-card__body h3 { font-size: 18px; margin-bottom: 8px; }
.product-card__body p { font-size: 14px; min-height: 44px; }
.product-card__models { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.chip {
  font-size: 12.5px; color: var(--c-primary); background: rgba(10,102,255,.08);
  padding: 5px 11px; border-radius: 999px; font-weight: 600;
}
.product-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--c-primary); font-weight: 600; font-size: 14px; }
.product-card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.product-card__link:hover svg { transform: translateX(4px); }

/* 解决方案块 */
.sol {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--c-border); background: #fff; margin-bottom: 28px;
}
.sol__media { background: var(--grad-dark); min-height: 280px; display: grid; place-items: center; position: relative; }
.sol__media svg { width: 120px; height: 120px; opacity: .9; }
.sol__body { padding: 40px; }
.sol__body .tag { color: var(--c-primary); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sol__body h3 { font-size: 24px; margin: 8px 0 14px; }
.sol__body ul { margin-top: 16px; display: grid; gap: 10px; }
.sol__body li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.sol__body li svg { width: 18px; height: 18px; color: var(--c-primary); flex-shrink: 0; margin-top: 3px; }
.sol--reverse .sol__media { order: 2; }

/* 案例 */
.case {
  border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 28px; background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case__logo {
  height: 64px; width: 64px; border-radius: 14px; background: var(--c-bg-soft);
  display: grid; place-items: center; font-weight: 700; color: var(--c-primary); margin-bottom: 16px; font-size: 20px;
}
.case h4 { font-size: 16px; margin-bottom: 8px; }
.case p { font-size: 14px; }

/* 时间轴 */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border); }
.tl-item { position: relative; padding: 0 0 34px 28px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px rgba(10,102,255,.15);
}
.tl-item .yr { font-weight: 700; color: var(--c-primary); font-size: 15px; }
.tl-item h4 { font-size: 17px; margin: 4px 0 6px; }
.tl-item p { font-size: 14.5px; }

/* 新闻 */
.news-card { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card__media { height: 168px; background: var(--grad-dark); display: grid; place-items: center; }
.news-card__media svg { width: 72px; height: 72px; opacity: .85; }
.news-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card__meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--c-muted); margin-bottom: 10px; }
.news-card__cat { color: var(--c-primary); font-weight: 600; background: rgba(10,102,255,.08); padding: 3px 10px; border-radius: 999px; }
.news-card h3 { font-size: 17px; margin-bottom: 8px; }
.news-card p { font-size: 14px; flex: 1; }
.news-card__more { margin-top: 14px; color: var(--c-primary); font-weight: 600; font-size: 14px; }
.news-card__more svg { width: 15px; height: 15px; vertical-align: -2px; }

/* CTA 区 */
.cta {
  background: var(--grad-brand); color: #fff; border-radius: var(--r-lg);
  padding: 60px 48px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 20%, rgba(255,255,255,.18), transparent 60%); }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); position: relative; }
.cta p { color: rgba(255,255,255,.9); max-width: 560px; margin: 14px auto 28px; position: relative; }

/* ---------- 关于页 ---------- */
.page-hero {
  background: var(--grad-dark); color: #fff; padding: 150px 0 80px; position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 75% 10%, rgba(34,197,255,.22), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.page-hero p { color: #cfe0f5; font-size: 17px; max-width: 640px; }
.breadcrumb { font-size: 13px; color: #9fb8d6; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

.about-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-intro p { margin-bottom: 16px; font-size: 15.5px; }
.about-intro .stat-row { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.about-intro .stat-row .num { font-size: 28px; font-weight: 700; color: var(--c-primary); }
.about-intro .stat-row .lbl { font-size: 13px; color: var(--c-muted); }
.about-media { height: 360px; border-radius: var(--r-lg); background: var(--grad-dark); display: grid; place-items: center; }
.about-media svg { width: 140px; height: 140px; opacity: .9; }

/* 价值/能力 */
.value-card .card__icon { background: var(--grad-brand); color: #fff; }

/* ---------- 联系页 ---------- */
.contact-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; }
.contact-info > div { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.contact-info .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(10,102,255,.08); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ic svg { width: 22px; height: 22px; }
.contact-info h4 { font-size: 14px; color: var(--c-muted); font-weight: 500; margin-bottom: 4px; }
.contact-info p { font-size: 16px; color: var(--c-ink); font-weight: 600; }

.map-placeholder {
  height: 240px; border-radius: var(--r-md); background: var(--grad-dark);
  display: grid; place-items: center; color: #cfe0f5; margin-top: 24px; position: relative; overflow: hidden;
}
.map-placeholder svg { width: 90px; height: 90px; opacity: .8; }

.form-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card .sub { font-size: 14px; color: var(--c-muted); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--c-ink); margin-bottom: 8px; }
.field label .req { color: #ff5a5a; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--c-ink);
  padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(10,102,255,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .err { color: #ff5a5a; font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff5a5a; }
.field.invalid .err { display: block; }
.form-note { font-size: 12.5px; color: var(--c-muted); margin-top: 8px; }
.form-success {
  display: none; background: rgba(34,197,128,.1); border: 1px solid rgba(34,197,128,.4);
  color: #1a9e63; border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; margin-top: 16px;
}
.form-success.show { display: block; }

/* ---------- 页脚 ---------- */
.footer { background: #0B1B33; color: #9fb8d6; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p.desc { font-size: 14px; max-width: 300px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; padding: 6px 0; color: #9fb8d6; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; font-size: 14px; padding: 6px 0; }
.footer__contact svg { width: 18px; height: 18px; color: var(--c-accent); flex-shrink: 0; margin-top: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7e93b3;
}
.footer__bottom a:hover { color: #fff; }

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

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 900;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 22px; height: 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: -1; }
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .sol { grid-template-columns: 1fr; }
  .sol--reverse .sol__media { order: 0; }
  .sol__media { min-height: 200px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .cta { padding: 44px 24px; }
  .section-head { margin-bottom: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__stats { gap: 22px; }
  .hero__stats .num { font-size: 24px; }
}
