/* ==========================================================
   企业官网 · PLC 工业自动化
   配色：深海军蓝 + 科技蓝 + 白色，简约大气
   ========================================================== */
:root {
  --navy: #0b1f3a;
  --navy-2: #122a4d;
  --blue: #1e6fff;
  --blue-dark: #0f4fd6;
  --text: #2b3445;
  --muted: #6b7686;
  --line: #e6eaf0;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(11, 31, 58, .10);
  --radius: 14px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a:hover { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.logo-text small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 2.5px; }

.nav { display: flex; gap: 38px; }
.nav a {
  font-size: 16px; color: var(--text); font-weight: 500;
  padding: 26px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; background: var(--blue); transition: width .25s;
}
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------- Banner / Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(30,111,255,.35), transparent 60%),
    radial-gradient(700px 350px at 10% 110%, rgba(30,111,255,.18), transparent 60%),
    linear-gradient(120deg, #081830 0%, var(--navy) 55%, #10315e 100%);
  color: #fff;
  padding: 120px 0 140px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block; padding: 6px 16px; margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.85);
}
.hero h1 { font-size: 46px; line-height: 1.3; letter-spacing: 2px; font-weight: 700; }
.hero h1 span { color: #4d9bff; }
.hero p.sub { margin-top: 20px; max-width: 640px; font-size: 17px; color: rgba(255,255,255,.72); }
.hero-actions { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 34px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .25s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(30,111,255,.4); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ---------- 页面内页头 ---------- */
.page-hero {
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(30,111,255,.3), transparent 60%),
    linear-gradient(120deg, #081830, var(--navy));
  color: #fff; text-align: center; padding: 72px 0;
}
.page-hero h1 { font-size: 34px; letter-spacing: 3px; }
.page-hero .crumbs { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: 1px; }
.page-hero .crumbs a:hover { color: #fff; }

/* ---------- 通用板块 ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .en {
  font-size: 12px; letter-spacing: 4px; color: var(--blue);
  text-transform: uppercase; font-weight: 600;
}
.section-head h2 { font-size: 32px; color: var(--navy); margin-top: 8px; letter-spacing: 2px; }
.section-head .bar { width: 46px; height: 4px; background: var(--blue); margin: 18px auto 0; border-radius: 2px; }
.section-head p.desc { color: var(--muted); margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- 数字统计 ---------- */
.stats { background: var(--navy-2); color: #fff; padding: 52px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { font-size: 40px; color: #4d9bff; font-weight: 700; }
.stat b i { font-style: normal; font-size: 18px; margin-left: 2px; }
.stat p { margin-top: 4px; color: rgba(255,255,255,.65); font-size: 14px; letter-spacing: 1px; }

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

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .img-wrap {
  background: #fff; padding: 26px; display: flex; align-items: center; justify-content: center;
  height: 240px; border-bottom: 1px solid var(--line);
}
.product-card .img-wrap img { max-height: 185px; object-fit: contain; transition: transform .35s; }
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.product-card p { font-size: 14px; color: var(--muted); flex: 1; }
.product-card .more {
  margin-top: 18px; font-size: 14px; color: var(--blue); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card .more:hover { gap: 10px; }

/* ---------- 优势 ---------- */
.feature {
  background: #fff; border-radius: var(--radius); padding: 34px 28px;
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature .icon {
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(30,111,255,.12), rgba(30,111,255,.05));
  display: flex; align-items: center; justify-content: center;
}
.feature .icon svg { width: 28px; height: 28px; stroke: var(--blue); }
.feature h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- 关于简介（首页） ---------- */
.about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-split h2 { font-size: 30px; color: var(--navy); letter-spacing: 2px; margin-bottom: 8px; }
.about-split .en-line { font-size: 12px; letter-spacing: 4px; color: var(--blue); text-transform: uppercase; font-weight: 600; }
.about-split p { margin-top: 18px; color: var(--muted); font-size: 15px; }
.about-visual {
  background: linear-gradient(135deg, var(--navy), #10315e);
  border-radius: 18px; padding: 44px; color: #fff; position: relative; overflow: hidden;
}
.about-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.about-visual .row { position: relative; display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.15); font-size: 15px; }
.about-visual .row:last-child { border-bottom: none; }
.about-visual .row span:last-child { color: #4d9bff; font-weight: 700; }

/* ---------- 产品页参数表 ---------- */
.product-detail {
  display: grid; grid-template-columns: 460px 1fr; gap: 48px; align-items: center;
  padding: 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.product-detail + .product-detail { margin-top: 32px; }
.product-detail .img-box {
  background: var(--bg-soft); border-radius: 12px; padding: 30px;
  display: flex; align-items: center; justify-content: center; height: 320px;
}
.product-detail .img-box img { max-height: 260px; object-fit: contain; }
.product-detail h3 { font-size: 24px; color: var(--navy); margin-bottom: 14px; }
.product-detail p { color: var(--muted); font-size: 15px; }
.product-detail ul.specs { margin-top: 20px; }
.product-detail ul.specs li {
  padding: 9px 0 9px 26px; font-size: 14.5px; color: var(--text);
  border-bottom: 1px dashed var(--line); position: relative;
}
.product-detail ul.specs li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--blue);
}

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-card {
  background: linear-gradient(150deg, var(--navy), #10315e);
  color: #fff; border-radius: var(--radius); padding: 44px 40px;
}
.contact-info-card h3 { font-size: 22px; margin-bottom: 26px; letter-spacing: 1px; }
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
}
.contact-item .ci-icon svg { width: 20px; height: 20px; stroke: #4d9bff; }
.contact-item b { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-item p { font-size: 14px; color: rgba(255,255,255,.7); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 40px; }
.contact-form h3 { font-size: 22px; color: var(--navy); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--text); background: var(--bg-soft);
  transition: border .25s, box-shadow .25s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(30,111,255,.12);
}
.form-note { font-size: 12.5px; color: #9aa4b2; margin-top: 12px; }
.form-tip { display: none; margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: #e8f7ee; color: #1c7c46; font-size: 14px; }
.form-tip.show { display: block; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff; text-align: center; padding: 64px 24px;
}
.cta-band h2 { font-size: 28px; letter-spacing: 2px; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.8); }
.cta-band .btn { margin-top: 28px; background: #fff; color: var(--blue-dark); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.footer { background: #071426; color: rgba(255,255,255,.55); padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 1px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer .about p { line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: 13px; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; padding: 28px; }

  .nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; gap: 0;
    box-shadow: 0 20px 30px rgba(0,0,0,.08); max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav.open { max-height: 420px; }
  .nav a { padding: 15px 24px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
}
