/* =========================================================
   陕西众智汇创科技有限公司 官网样式
   主题色：以企业 Logo 红色（#D81121）为主色
   ========================================================= */

:root {
  --red: #d81121;
  --red-dark: #a80d19;
  --red-light: #fdeef0;
  --ink: #22252a;
  --gray: #5c6470;
  --line: #e8e8ec;
  --bg-soft: #f8f8fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 30, 40, .08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background: #fff;
}

img { max-width: 100%; display: block; }

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

/* ---------- 通用板块 ---------- */
.section { padding: 88px 0; }
.section-eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 6px;
}
.section-eyebrow.center { text-align: center; }
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-title.center { text-align: center; }
.section-desc {
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(216, 17, 33, .28);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .75);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--red); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span {
  width: 24px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 12, 12, .78) 0%, rgba(60, 16, 20, .55) 46%, rgba(90, 20, 26, .18) 100%);
}
.hero-content { position: relative; color: #fff; padding: 140px 0 100px; }
.hero-tagline {
  font-size: 18px;
  letter-spacing: 6px;
  opacity: .92;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.22;
  margin-bottom: 22px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  opacity: .94;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 数据亮点 ---------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 44px 0;
}
.stat-item { text-align: center; padding: 0 10px; }
.stat-item strong {
  display: block;
  font-size: 40px;
  color: var(--red);
  line-height: 1.2;
}
.stat-item .unit { font-size: 20px; margin-left: 2px; }
.stat-item span { color: var(--gray); font-size: 15px; }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-media { position: relative; }
.about-media > img:first-child {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 150px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.about-text p { color: var(--gray); margin-bottom: 16px; }
.about-points {
  list-style: none;
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.about-points li {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 12px 18px;
  color: var(--ink);
  font-size: 15px;
}

/* ---------- 业务板块 ---------- */
.business { background: var(--bg-soft); }
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.biz-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform .25s ease, border-color .25s ease;
}
.biz-card:hover { transform: translateY(-8px); border-top-color: var(--red); }
.biz-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  background: var(--red-light);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.biz-icon svg { width: 34px; height: 34px; }
.biz-card h3 { font-size: 21px; margin-bottom: 10px; }
.biz-card p { color: var(--gray); font-size: 15px; }

/* ---------- 新闻资讯 ---------- */
.news-list { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.news-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(216, 17, 33, .35);
}
.news-date {
  flex: 0 0 76px;
  text-align: center;
  color: var(--red);
  border-right: 1px dashed var(--line);
  padding-right: 20px;
  align-self: center;
}
.news-date strong { display: block; font-size: 30px; line-height: 1.1; }
.news-date strong.is-new { font-size: 20px; padding: 5px 0; }
.news-date span { font-size: 14px; color: var(--gray); }
.news-body h3 { font-size: 18px; margin-bottom: 8px; }
.news-item:hover .news-body h3 { color: var(--red); }
.news-body p {
  color: var(--gray);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta { display: inline-block; margin-top: 10px; font-size: 13px; color: #9aa1ab; }
.news-updated {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: #9aa1ab;
}

/* ---------- 联系我们 ---------- */
.contact { background: var(--bg-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info > p { color: var(--gray); margin-bottom: 18px; }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
}
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 600; font-size: 15px; }
.form-row input,
.form-row textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 17, 33, .12);
  background: #fff;
}
.form-tip { min-height: 22px; font-size: 14px; color: var(--red); }
.form-tip.ok { color: #1a8a4a; }

/* ---------- 页脚 ---------- */
.footer {
  background: #1d1113;
  color: #cfc6c7;
  text-align: center;
  padding: 54px 0 40px;
}
.footer-logo {
  height: 58px;
  width: auto;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: #fff;      /* 深色页脚上垫白色底卡，保证品牌红色 logo 清晰可读 */
  padding: 10px 16px;
}
.footer-slogan { letter-spacing: 4px; margin-bottom: 14px; color: #fff; }
.footer-copy { font-size: 14px; }
.footer-note { font-size: 12px; opacity: .55; margin-top: 4px; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(216, 17, 33, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--red-dark); }

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

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-badge { right: 6px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open { max-height: 320px; }
  .nav-link { padding: 15px 6%; border-top: 1px solid var(--line); }
  .menu-btn { display: flex; }
  .business-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 10px; padding: 20px; }
  .news-date {
    flex: none;
    border-right: none;
    border-bottom: 1px dashed var(--line);
    padding: 0 0 10px;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .news-date strong { font-size: 22px; }
  .hero { min-height: 76vh; }
  .stat-item strong { font-size: 32px; }
}
