/* =========================================================
   盐城北工自动化装置有限公司 · 阿拉伯语独立站样式
   纯本地资源：@font-face 引入 fonts/ 可变字体，图片走 image/
   ========================================================= */

/* ----- 可变字体引入 ----- */
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-Variable.ttf') format('truetype-variations');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Readex Pro';
  src: url('../fonts/ReadexPro-Variable.ttf') format('truetype-variations');
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
}

/* ----- 设计变量 ----- */
:root {
  --navy: #0B2A4A;
  --navy-2: #123B66;
  --navy-deep: #071C33;
  --ink: #1E2A38;
  --muted: #5B6B7C;
  --accent: #F97316;
  --accent-dark: #D95F0B;
  --accent-soft: #FFF1E6;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --line: #E4E9F0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .08);
  --shadow-lg: 0 18px 50px rgba(11, 42, 74, .14);
  --header-h: 72px;
}

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

html { scroll-behavior: auto; } /* 平滑滚动由 JS 实现 */

body {
  font-family: 'Readex Pro', 'Cairo', Tahoma, Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text strong {
  font-family: 'Cairo', 'Readex Pro', Tahoma, sans-serif;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
}

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

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ----- 按钮 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(249, 115, 22, .35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.btn-lg { padding: 16px 42px; font-size: 1.1rem; }

/* ----- 顶部导航 ----- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11, 42, 74, .12); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.12rem; }
.brand-text small { color: var(--muted); font-size: .74rem; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--accent); background: var(--accent-soft); }
.nav-cta { background: var(--navy); color: #fff; margin-inline-start: 8px; }
.nav-cta:hover { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- 首屏 Hero ----- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--navy-deep) url('../image/hero.jpg') center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(7, 28, 51, .93) 20%, rgba(11, 42, 74, .78) 55%, rgba(11, 42, 74, .45) 100%);
}

.hero-inner { padding-block: 80px; max-width: 780px; }
.hero-kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  background: rgba(249, 115, 22, .12);
  border: 1px solid rgba(249, 115, 22, .35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 18px; }
.hero-lead { color: rgba(255, 255, 255, .85); font-size: 1.08rem; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li {
  color: rgba(255, 255, 255, .9);
  font-size: .88rem;
  font-weight: 600;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

/* ----- 通用区块 ----- */
.section { padding-block: 90px; }
.section-head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 52px; }
.section-kicker {
  color: var(--accent);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); }

/* ----- 主推产品（桌面端通栏横排） ----- */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  border: 1px solid var(--line);
}
.product-feature-media { position: relative; min-height: 420px; }
.product-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-feature-body { padding: 44px 42px; }
.product-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .85rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-feature-body h3 { font-size: 1.55rem; margin-bottom: 14px; }
.product-feature-body > p { color: var(--muted); margin-bottom: 20px; }

.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.spec-chips li {
  background: #EEF3F9;
  color: var(--navy-2);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.check-list { margin-bottom: 28px; }
.check-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 10px;
  font-size: .96rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ----- 产品网格（桌面 2×2） ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.06); }
.product-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.product-card-body p { color: var(--muted); font-size: .94rem; flex: 1; margin-bottom: 16px; }
.card-link {
  color: var(--accent);
  font-weight: 700;
  font-size: .94rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link::after { content: '←'; transition: transform .25s ease; }
.card-link:hover::after { transform: translateX(-5px); }
.card-link:hover { color: var(--accent-dark); }

/* ----- 关于我们 ----- */
.about { background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-media { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 16px; }
.about-body > p { color: var(--muted); margin-bottom: 14px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.stats li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stats span { font-size: .8rem; color: var(--muted); line-height: 1.5; display: block; margin-top: 4px; }

/* ----- 为什么选择我们 ----- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.why-card:hover { transform: translateY(-5px); border-color: rgba(249, 115, 22, .45); }
.why-icon {
  width: 46px;
  height: 46px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .92rem; }

/* ----- 服务行业 ----- */
.industries { background: #fff; }
.industry-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}
.industry-chips li {
  border: 1.5px solid var(--navy-2);
  color: var(--navy-2);
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 24px;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.industry-chips li:hover { background: var(--navy-2); color: #fff; }

/* ----- 联系我们 ----- */
.contact {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--navy-2));
}
.contact .section-head h2 { color: #fff; }
.contact .section-sub { color: rgba(255, 255, 255, .75); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}
.contact-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(6px);
  transition: border-color .25s ease, background .25s ease;
}
.contact-card:hover { border-color: rgba(249, 115, 22, .6); background: rgba(255, 255, 255, .1); }
.contact-label { color: var(--accent); font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
.contact-card strong { color: #fff; font-size: 1.08rem; font-family: 'Cairo', sans-serif; }
.contact-card span { color: rgba(255, 255, 255, .65); font-size: .88rem; }
.contact-link { color: var(--accent); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.contact-link:hover { color: #fff; }
.contact-cta { text-align: center; }

/* ----- 页脚 ----- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.footer-col strong { color: #fff; font-family: 'Cairo', sans-serif; margin-bottom: 6px; font-size: 1rem; }
.footer-brand { font-size: 1.15rem !important; }
.footer-col a:hover { color: var(--accent); }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 18px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}

/* ----- 渐显动画（由 JS 触发） ----- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   响应式断点
   ========================================================= */

/* ----- 平板端 ≤960px：主推产品上下堆叠，产品保持 2×2 ----- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 14px 20px 20px;
    gap: 4px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: 12px; }
  .nav-cta { margin-inline-start: 0; text-align: center; }

  .product-feature { grid-template-columns: 1fr; }
  .product-feature-media { position: relative; min-height: 0; aspect-ratio: 16 / 10; }
  .product-feature-media img { position: absolute; }

  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ----- 移动端 ≤720px：所有产品模块单列堆叠 ----- */
@media (max-width: 720px) {
  .section { padding-block: 64px; }
  .hero-inner { padding-block: 56px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .product-grid { grid-template-columns: 1fr; }
  .product-feature-body { padding: 30px 24px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
}
