/* ============================================================
 * 恒立安官网 全站样式 —— 工业风：黑 + 工业橙 + 灰
 * ============================================================ */
:root {
  --ink: #17191d;
  --ink-2: #22252b;
  --ink-3: #0d0f12;
  --orange: #f57c1f;
  --orange-d: #d96a12;
  --gray: #6b7280;
  --gray-l: #9ca3af;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(23, 25, 29, .08);
}
* { 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(--ink); background: var(--white); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--ink-3); color: #9aa0a8; font-size: 12.5px;
  padding: 6px 0; border-bottom: 1px solid #26292f;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #9aa0a8; transition: color .2s; }
.topbar a:hover { color: var(--orange); }
.topbar .uniway-link { display: inline-flex; align-items: center; gap: 5px; }
.topbar .uniway-link::before { content: "⬡"; color: var(--orange); font-size: 11px; }

/* ---------- 主导航 ---------- */
.header {
  background: var(--ink); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo-chip {
  background: var(--white); border-radius: 8px; padding: 6px 12px;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo-chip img { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text b { font-size: 19px; color: var(--ink); letter-spacing: 2px; }
.logo-text span { font-size: 10.5px; color: var(--gray); letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #d7dae0; font-size: 15px; padding: 8px 16px; border-radius: 6px;
  position: relative; transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a.active { color: var(--orange); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--orange); border-radius: 2px;
}
.menu-btn { display: none; background: none; border: 1px solid #3a3e46; color: #d7dae0; border-radius: 6px; padding: 7px 12px; font-size: 16px; }

/* ---------- 通用布局 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.gray { background: var(--bg); }

.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .tag {
  display: inline-block; color: var(--orange); font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px;
}
.sec-head h2 { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
.sec-head h2 em { color: var(--orange); font-style: normal; }
.sec-head .sub { color: var(--gray); font-size: 15px; margin-top: 8px; }
.sec-head .rule { width: 48px; height: 3px; background: var(--orange); margin: 16px auto 0; border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: var(--white); border: none; border-radius: 6px;
  padding: 12px 28px; font-size: 15px; font-weight: 600;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--orange-d); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245,124,31,.35); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px; padding: 12px 28px; font-size: 15px; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; box-shadow: 0 6px 16px rgba(23,25,29,.3); }

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(13,15,18,.82), rgba(13,15,18,.9)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,.035) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,.035) 40px),
    var(--ink-3);
  color: var(--white); padding: 110px 0 100px; text-align: center;
}
.hero .company { color: var(--orange); font-size: 15px; letter-spacing: 6px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: 2px; line-height: 1.35; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { color: #b8bdc5; font-size: clamp(14px, 2vw, 17px); margin: 22px auto 36px; max-width: 720px; }
.hero .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-strip {
  background: var(--orange); color: var(--white); padding: 14px 0; font-size: 14.5px;
}
.hero-strip .wrap { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; font-weight: 600; letter-spacing: 1px; }
.hero-strip span::before { content: "✓ "; opacity: .85; }

/* ---------- 四大业务卡片 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.biz-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px 28px; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); }
.biz-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-d));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.biz-card:hover::before { transform: scaleX(1); }
.biz-card .num { font-size: 44px; font-weight: 800; color: var(--line); line-height: 1; margin-bottom: 14px; transition: color .3s; }
.biz-card:hover .num { color: var(--orange); }
.biz-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.biz-card .desc { color: var(--gray); font-size: 14px; min-height: 66px; }
.biz-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.biz-card .tags i {
  font-style: normal; font-size: 12px; color: var(--orange-d);
  background: #fdf1e7; border-radius: 4px; padding: 3px 8px;
}
.biz-card .more { color: var(--orange); font-size: 14px; font-weight: 600; }
.biz-card .more:hover { color: var(--orange-d); }

/* ---------- 母子公司关系带 ---------- */
.relation { background: var(--ink-2); color: var(--white); padding: 70px 0; }
.relation .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; }
.relation .company { text-align: right; }
.relation .company.left { text-align: left; }
.relation h3 { font-size: 22px; margin-bottom: 10px; }
.relation h3 span { color: var(--orange); }
.relation p { color: #aab0b8; font-size: 14px; max-width: 420px; }
.relation .company.left p { margin-left: 0; }
.relation .company p { display: inline-block; }
.relation .mid {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--orange); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 12px; font-weight: 700; line-height: 1.4; box-shadow: 0 0 0 10px rgba(245,124,31,.15);
}
.relation .company a { color: var(--orange); font-size: 13px; display: inline-block; margin-top: 10px; border-bottom: 1px dashed var(--orange); }
.relation .company a:hover { color: #ffab5e; }

/* ---------- 通用卡片（案例 / 设备） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--orange); }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--ink-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: #6f7580;
  background:
    repeating-linear-gradient(45deg, #262a31, #262a31 12px, #22252b 12px, #22252b 24px);
}
.thumb-ph svg { width: 44px; height: 44px; opacity: .5; }
.thumb-ph span { font-size: 12.5px; letter-spacing: 1px; }
.card .body { padding: 20px 20px 18px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { color: var(--gray); font-size: 13px; margin-bottom: 8px; }
.card .summary { color: var(--gray); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.card .date { color: var(--gray-l); font-size: 12.5px; }
.card .price { color: var(--orange); font-weight: 800; font-size: 17px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; border-radius: 4px; padding: 2px 9px;
}
.badge.on { color: #0e9f6e; background: #def7ec; }
.badge.off { color: var(--gray); background: #f3f4f6; }
.specs { font-size: 13px; color: var(--gray); background: var(--bg); border-radius: 6px; padding: 10px 12px; margin: 8px 0; line-height: 1.8; white-space: pre-line; }

/* ---------- 页面小标题 Hero ---------- */
.page-hero {
  background: linear-gradient(rgba(13,15,18,.85), rgba(13,15,18,.92)), var(--ink-3);
  color: var(--white); text-align: center; padding: 58px 0;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: 2px; }
.page-hero h1 em { color: var(--orange); font-style: normal; }
.page-hero p { color: #a9aeb6; margin-top: 10px; font-size: 15px; }
.page-hero .crumbs { margin-top: 14px; font-size: 12.5px; color: #7d838c; }
.page-hero .crumbs a { color: #7d838c; }
.page-hero .crumbs a:hover { color: var(--orange); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; color: var(--gray-l); padding: 70px 20px;
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink-3), #2a2013 60%, #4a2c10), var(--ink-3);
  color: var(--white); padding: 56px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; }
.cta-band h2 em { color: var(--orange); font-style: normal; }
.cta-band p { color: #b0b5bd; margin: 14px 0 26px; }
.cta-band .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 优势条 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px;
  text-align: center; border: 1px solid var(--line);
}
.feature .ico {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: #fdf1e7; color: var(--orange); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--gray); font-size: 13.5px; }

/* ---------- Tab 切换 ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 24px; padding: 9px 26px; font-size: 15px; transition: all .2s;
}
.tab:hover { border-color: var(--orange); color: var(--orange); }
.tab.active { background: var(--orange); border-color: var(--orange); color: var(--white); font-weight: 600; }

/* ---------- 表单 ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { margin-bottom: 16px; }
.f-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.f-field label .req { color: #e02424; margin-left: 2px; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px;
  outline: none; transition: border-color .2s, box-shadow .2s; background: var(--white);
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,124,31,.12);
}
.f-field textarea { resize: vertical; min-height: 110px; }
.form-msg { font-size: 13.5px; margin-top: 12px; padding: 10px 14px; border-radius: 6px; display: none; }
.form-msg.ok { display: block; background: #def7ec; color: #046c4e; }
.form-msg.err { display: block; background: #fde8e8; color: #cd2c2c; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: all .25s; }
.contact-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-4px); }
.contact-card .ico { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: #fdf1e7; color: var(--orange); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { color: var(--gray); font-size: 14px; word-break: break-all; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.about-text h2 { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.about-text h2 em { color: var(--orange); font-style: normal; }
.about-text p { color: #4b5563; font-size: 15px; margin-bottom: 14px; text-align: justify; }
.about-panel { background: var(--ink-2); color: var(--white); border-radius: var(--radius); padding: 36px 32px; }
.about-panel h3 { color: var(--orange); font-size: 16px; letter-spacing: 2px; margin-bottom: 18px; }
.about-panel li { padding: 11px 0; border-bottom: 1px dashed #3a3e46; font-size: 14.5px; color: #c7ccd3; display: flex; gap: 10px; align-items: baseline; }
.about-panel li:last-child { border-bottom: none; }
.about-panel li b { color: var(--white); }
.about-panel li .dot { color: var(--orange); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step .no { font-size: 34px; font-weight: 800; color: #f3d8bd; line-height: 1; margin-bottom: 12px; }
.step h4 { font-size: 16px; margin-bottom: 7px; }
.step p { color: var(--gray); font-size: 13.5px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(13,15,18,.66); z-index: 200;
  display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--white); border-radius: 12px; max-width: 760px; width: 100%;
  overflow: hidden; animation: pop .25s ease; margin-bottom: 5vh;
}
@keyframes pop { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--gray-l); line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 24px; max-height: 70vh; overflow-y: auto; }
.modal-body .m-meta { color: var(--gray); font-size: 13.5px; margin-bottom: 14px; }
.modal-body .m-content { font-size: 14.5px; color: #374151; white-space: pre-line; }
.modal-body .m-imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.modal-body .m-imgs img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink-3); color: #9aa0a8; padding: 56px 0 0; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; position: relative; padding-left: 14px; }
.footer h4::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; background: var(--orange); border-radius: 2px; }
.footer p { margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.footer .k { color: #6f7580; flex-shrink: 0; }
.footer a:hover { color: var(--orange); }
.footer li { padding: 5px 0; }
.footer .f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .f-logo .chip { background: var(--white); border-radius: 8px; padding: 6px 10px; }
.footer .f-logo .chip img { height: 38px; }
.footer .f-logo b { color: var(--white); font-size: 17px; letter-spacing: 2px; display: block; }
.footer .f-logo span { font-size: 11px; color: #6f7580; }
.copyright { border-top: 1px solid #26292f; padding: 18px 0; text-align: center; font-size: 12.5px; color: #6f7580; line-height: 1.9; }
.copyright a { color: #6f7580; }
.copyright .en-name { font-size: 11.5px; color: #565c66; letter-spacing: 0.3px; }
.copyright .icp-no { margin-top: 2px; }
.about-en { font-size: 12px; color: #8a9099; letter-spacing: 0.3px; line-height: 1.6; margin: -4px 0 14px; padding-bottom: 12px; border-bottom: 1px dashed #2a2e35; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .relation .wrap { grid-template-columns: 1fr; text-align: center; }
  .relation .company, .relation .company.left { text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink-2); flex-direction: column; align-items: stretch;
    padding: 10px 16px 16px; gap: 2px; box-shadow: 0 12px 24px rgba(0,0,0,.35);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .topbar .wrap { justify-content: center; }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .biz-grid, .card-grid, .feature-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .hero-strip .wrap { gap: 10px; font-size: 13px; }
  .logo-text b { font-size: 15px; }
  .logo-text span { display: none; }
  .sec-head h2 { font-size: 24px; }
  .footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .modal-body .m-imgs { grid-template-columns: 1fr; }
}
