/* =========================================================
   中国越电电气设备有限公司 - 官网样式
   配色:工业蓝 #0d5cad / 深灰 #1f2733
   ========================================================= */

:root {
  --blue: #0d5cad;
  --blue-dark: #09407e;
  --blue-light: #3d8bfd;
  --sky: #e8f1fc;
  --dark: #1f2733;
  --dark-2: #141a22;
  --gray: #5c6673;
  --gray-light: #9aa4b0;
  --line: #e3e8ee;
  --bg: #f5f7fa;
  --white: #ffffff;
  --accent: #f5a623;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 35, 60, .08);
  --shadow-lg: 0 14px 40px rgba(15, 35, 60, .14);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--dark-2);
  color: #c9d4e0;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a:hover { color: #fff; }
.topbar .sep { margin: 0 10px; color: #4a5563; }
.lang { display: flex; align-items: center; gap: 4px; }
.lang a {
  padding: 2px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  color: #c9d4e0;
  transition: .2s;
}
.lang a:hover { color: #fff; }
.lang a.on { color: #ffd27a; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

/* ---------- Logo 图片 ---------- */
.logo-img { height: 46px; width: auto; border-radius: 8px; }

/* ---------- 首页 Hero 背景图 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: #0a1e38;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/hero.jpg") center/cover no-repeat;
  filter: brightness(.62) saturate(1.06);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(6, 20, 38, .55), rgba(8, 28, 52, .72));
  background-size: 44px 44px, 44px 44px, 100% 100%;
  pointer-events: none;
}
.hero > .container,
.hero .hero-inner,
.hero .model-strip { position: relative; z-index: 2; }

/* ---------- 关于我们背景图 ---------- */
.about-visual {
  background:
    linear-gradient(120deg, rgba(10, 25, 45, .82), rgba(13, 92, 173, .55)),
    url("../assets/factory.jpg") center/cover no-repeat;
}

/* ---------- 首页型号图横排 ---------- */
.model-strip { margin-top: 40px; }
.strip-title { color: #d7e4f3; font-size: 14px; font-weight: 600; letter-spacing: 1px; margin-bottom: 12px; }
.strip-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.strip-items a {
  background: rgba(255, 255, 255, .96);
  border-radius: 10px;
  min-height: 88px;
  padding: 10px 8px;
  display: grid;
  place-items: center;
  transition: .2s;
}
.strip-items a:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.strip-items img { max-width: 100%; max-height: 68px; object-fit: contain; }

/* ---------- 产品型号参数卡片 ---------- */
.model-intro { color: var(--gray); margin: -6px 0 24px; font-size: 15px; }
.model-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.model-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.model-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--blue-dark); }
.model-img {
  display: grid; place-items: center;
  background: linear-gradient(150deg, #eaf2fb, #d7e6f7);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  min-height: 210px;
}
.model-img img { max-width: 100%; max-height: 230px; object-fit: contain; }
.model-card .spec-table { font-size: 13.5px; }
.model-card .spec-table th, .model-card .spec-table td { padding: 8px 10px; }
.model-card .spec-table th { width: 45%; }

@media (max-width: 960px) {
  .strip-items { grid-template-columns: repeat(3, 1fr); }
  .model-grid { grid-template-columns: 1fr; }
  .logo-img { height: 40px; }
}

/* ---------- 页头导航 ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15, 35, 60, .05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
  border-radius: 10px;
  letter-spacing: 1px;
}
.brand-name { font-size: 19px; font-weight: 800; color: var(--dark); line-height: 1.25; }
.brand-sub { font-size: 12px; color: var(--gray-light); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 15px;
  transition: .2s;
}
.nav a:hover { color: var(--blue); background: var(--sky); }
.nav a.active { color: #fff; background: var(--blue); }

.nav-toggle {
  display: none;
  border: 0;
  background: var(--blue);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.section-head h2 span { color: var(--blue); }
.section-head p { color: var(--gray); }
.section-head .en {
  display: inline-block;
  font-size: 13px; letter-spacing: 3px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 104px 0 116px;
  max-width: 760px;
}
.hero .tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #ffd27a; }
.hero p { font-size: 17px; color: #d7e4f3; max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  transition: .2s;
}
.btn-primary { background: #fff; color: var(--blue-dark); }
.btn-primary:hover { background: #eaf2ff; transform: translateY(-2px); }
.btn-line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }

.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: -58px;
  backdrop-filter: blur(4px);
}
.hero-stats .stat {
  background: rgba(10, 32, 58, .45);
  padding: 22px 18px;
  text-align: center;
  color: #fff;
}
.hero-stats .num { font-size: 28px; font-weight: 800; color: #ffd27a; }
.hero-stats .label { font-size: 13px; color: #d7e4f3; margin-top: 2px; }

/* ---------- 产品卡片 ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #c8d8ec;
}
.product-thumb {
  height: 235px;
  display: block;
  background: linear-gradient(150deg, #eaf2fb, #d7e6f7);
  position: relative;
  overflow: hidden;
}
.product-thumb svg { width: 130px; height: 130px; margin: 52px auto 0; display: block; }
.product-thumb img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
}
.product-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.product-body h3 a:hover { color: var(--blue); }
.product-body p { color: var(--gray); font-size: 14.5px; flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.product-meta span {
  font-size: 12.5px;
  color: var(--blue);
  background: var(--sky);
  border-radius: 999px;
  padding: 4px 12px;
}
.more { font-weight: 700; color: var(--blue); font-size: 14.5px; }
.more:hover { color: var(--blue-dark); }

/* ---------- 优势/特性 ---------- */
.feature { display: flex; gap: 16px; }
.feature .icon {
  flex: 0 0 54px; height: 54px;
  background: var(--sky);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--blue);
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--gray); }

/* ---------- 关于/CTA ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-visual {
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-visual h3 { font-size: 26px; margin-bottom: 14px; }
.about-visual p { color: #c9d8ea; }
.about-visual .big { font-size: 42px; font-weight: 800; color: #ffd27a; margin-bottom: 8px; }

.check-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  color: var(--dark);
  border-bottom: 1px dashed var(--line);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
}

.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff;
  border-radius: 16px;
  padding: 46px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; margin-bottom: 6px; }
.cta-band p { color: #d7e4f3; }

/* ---------- 内页 Banner ---------- */
.page-hero {
  background: linear-gradient(135deg, #0a2a4d, #0d5cad 60%, #14365e);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 10px; }
.crumbs { font-size: 14px; color: #c9d8ea; }
.crumbs a:hover { color: #fff; }

/* ---------- 详情页 ---------- */
.detail { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 40px; margin-top: -40px; position: relative; z-index: 3; box-shadow: var(--shadow); }
.detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.detail-thumb {
  background: linear-gradient(150deg, #eaf2fb, #d7e6f7);
  border-radius: 14px;
  display: grid; place-items: center;
  min-height: 320px;
}
.detail-thumb svg { width: 200px; height: 200px; }
.detail-thumb img { width: 230px; height: auto; }
.detail-info h1 { font-size: 28px; margin-bottom: 8px; }
.detail-info .sub { color: var(--gray-light); letter-spacing: 1px; font-size: 13px; text-transform: uppercase; margin-bottom: 16px; }
.detail-info .desc { color: var(--gray); margin-bottom: 20px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.detail-tags span { background: var(--sky); color: var(--blue); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 600; }

.detail h2 { font-size: 22px; margin: 34px 0 16px; padding-left: 14px; border-left: 4px solid var(--blue); }
.features-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; }
.features-2col li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px dashed var(--line); font-size: 15px; }
.features-2col li::before { content: "◆"; position: absolute; left: 4px; color: var(--blue); font-size: 12px; top: 12px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.spec-table th { background: var(--sky); color: var(--blue-dark); font-weight: 700; width: 200px; }
.spec-table tr:nth-child(even) td { background: #fafcfe; }

.app-scenes { display: flex; flex-wrap: wrap; gap: 10px; }
.app-scenes span { background: #f0f4f9; border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; font-size: 14px; color: var(--gray); }

/* ---------- 联系页 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-bottom: 44px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; text-align: center; }
.contact-card .icon { width: 56px; height: 56px; margin: 0 auto 14px; background: var(--sky); color: var(--blue); border-radius: 50%; display: grid; place-items: center; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--gray); font-size: 15px; }
.contact-card .qr { display: block; width: 150px; height: 150px; margin: 0 auto 12px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }

.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: #fbfcfe;
  transition: .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 92, 173, .12);
}

/* ---------- 页脚 ---------- */
.footer { background: var(--dark-2); color: #b7c3d0; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: #8b97a6; }
.footer-bottom { border-top: 1px solid #2a3542; padding: 18px 0; text-align: center; font-size: 13px; color: #8b97a6; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  background: var(--blue); color: #fff;
  border: 0; border-radius: 10px;
  font-size: 20px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: .25s;
  z-index: 90;
  box-shadow: var(--shadow-lg);
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .detail-top { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero h1 { font-size: 34px; }
  .section { padding: 54px 0; }
  .section-head h2 { font-size: 26px; }
  .grid-3 { grid-template-columns: 1fr; }
  .features-2col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .detail { padding: 24px; }
  .topbar .sep, .topbar .hide-sm { display: none; }

  .nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 4% 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .nav-toggle { display: block; }

  /* 长品牌名在窄屏不撑破页头 */
  .header-inner { height: auto; min-height: 74px; position: relative; }
  .header-inner .brand { flex: 1; min-width: 0; }
  .header-inner .brand > span { min-width: 0; }
  .header-inner .logo, .header-inner .logo-img { flex-shrink: 0; }
  .header-inner .brand-name { font-size: 14px; line-height: 1.35; display: block; }
  .header-inner .brand-sub { font-size: 9px; line-height: 1.3; display: block; overflow-wrap: anywhere; }
  .header-inner .nav-toggle { flex-shrink: 0; }
  .header-inner .nav { top: 100%; }

  /* 顶部信息条文字可换行，避免横向溢出 */
  .topbar-inner { flex-wrap: wrap; row-gap: 6px; }
  .topbar a { overflow-wrap: anywhere; }
}
