/* ==========================================================
   新动云智科技官网 - 全局样式
   文件：css/style.css
   说明：整站统一风格样式，所有 HTML 页面共享
   ========================================================== */

/* ---------- 基础 Reset 与变量 ---------- */
:root {
  --primary: #1a5cff;
  --primary-dark: #0b2b6b;
  --primary-light: #4d8dff;
  --accent: #00c6ff;
  --grad-main: linear-gradient(135deg, #0b2b6b 0%, #1a5cff 60%, #00c6ff 100%);
  --text-main: #1f2430;
  --text-body: #4a5264;
  --text-light: #8a92a6;
  --bg-light: #f5f8ff;
  --bg-white: #ffffff;
  --border: #e6ebf5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 43, 107, 0.08);
  --shadow-hover: 0 18px 40px rgba(26, 92, 255, 0.16);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #1a5cff, #00b6ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 92, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(26, 92, 255, 0.42);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(11, 43, 107, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-text em {
  font-style: normal;
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(26, 92, 255, 0.06);
}

.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #1a5cff, #00b6ff);
}

.nav-cta a {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50px;
  padding: 8px 18px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-cta a:hover {
  background: var(--primary);
  color: #fff;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary-dark);
  border-radius: 2px;
}

/* ---------- 首页 Hero ---------- */
.hero {
  background: var(--grad-main);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #8ee4ff;
}

.hero p.lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 30px;
}

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

.hero-stats {
  display: flex;
  gap: 42px;
  flex-wrap: wrap;
}

.hero-stats .num {
  font-size: 30px;
  font-weight: 800;
}

.hero-stats .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-img {
  position: relative;
}

.hero-img img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* ---------- 内页 Banner ---------- */
.page-banner {
  background: var(--grad-main);
  color: #fff;
  padding: 74px 0 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.page-banner h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 14px;
}


.page-banner .banner-sub {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 84px 0;
}

.section.bg-light {
  background: var(--bg-light);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(26, 92, 255, 0.08);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-body);
  font-size: 16px;
}

.section.white .section-title {
  color: #fff;
}

.section.white .section-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: 26px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26, 92, 255, 0.35);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 92, 255, 0.12), rgba(0, 198, 255, 0.12));
  margin-bottom: 18px;
}

.card-icon img {
  width: 34px;
  height: 34px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  color: var(--text-body);
}

/* ---------- 图文内容区 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 100%;
}

.split-content h3 {
  font-size: 27px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.split-content p {
  margin-bottom: 14px;
}

.split-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.split-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ---------- 流程步骤 ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.step .step-no {
  width: 52px;
  height: 52px;
  line-height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5cff, #00c6ff);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(26, 92, 255, 0.3);
}

.step h4 {
  color: var(--text-main);
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
}

/* ---------- CTA 引导区 ---------- */
.cta-band {
  background: var(--grad-main);
  color: #fff;
  border-radius: 22px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(26, 92, 255, 0.28);
}

.cta-band h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-phone {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ---------- 联系信息卡 ---------- */
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.contact-card {
  text-align: center;
  padding: 36px 22px;
}

.contact-card img {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
}

.contact-card h4 {
  color: var(--text-main);
  font-size: 17px;
  margin-bottom: 6px;
}

.contact-card p,
.contact-card a {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 案例展示 ---------- */
.case-card {
  background: var(--bg-light);
  border: 1px dashed #b9c9ea;
  border-radius: var(--radius);
  overflow: hidden;
}

.case-card .case-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1b4e, #12358a);
}

.case-card .case-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-card .case-info {
  padding: 18px 20px;
  background: #fff;
}

.case-card .case-info h4 {
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 4px;
}

.case-card .case-info p {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0a1b3d;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 60px 0 46px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-brand h4 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
}

.footer-col h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-contact a.phone {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.footer-contact a.phone:hover {
  color: #8ee4ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .footer-icp {
  margin-top: 8px;
  font-size: 12px;
}

.footer-bottom .footer-icp a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom .footer-icp a:hover {
  color: #8ee4ff;
}

/* ---------- 优势点列表 ---------- */
.advantage-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
}

.advantage-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: rgba(26, 92, 255, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

/* ---------- 滚动淡入动画 ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-init.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .main-nav a {
    padding: 7px 9px;
    font-size: 14px;
  }

  .nav-cta a {
    font-size: 13.5px;
    padding: 8px 14px;
  }
}

@media (max-width: 1080px) {
  .main-nav a {
    padding: 7px 7px;
    font-size: 13.5px;
  }

  .nav-cta a {
    font-size: 13px;
    padding: 7px 12px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 74px;
    right: -320px;
    width: 300px;
    height: calc(100vh - 74px);
    background: #fff;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.3s ease;
    padding: 22px 18px;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .main-nav a {
    font-size: 15px;
    padding: 12px 14px;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }

  .page-banner h1 {
    font-size: 30px;
  }

  .hero-stats {
    gap: 24px;
  }
}


/* ---------- 通用工具类 ---------- */
.txt-primary-strong {
  color: var(--primary);
  font-weight: 600;
}

.txt-muted-sm {
  font-weight: 400;
  color: var(--text-light);
  font-size: 13px;
}

.fs-22 {
  font-size: 22px;
}

.no-top-pad {
  padding-top: 0;
}

/* ---------- 新闻资讯列表 ---------- */
.news-list {
  display: grid;
  gap: 26px;
}

.news-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: center;
  padding: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.news-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.news-thumb img {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
}

.news-card-body h3 {
  font-size: 20px;
  line-height: 1.5;
  margin: 8px 0 10px;
}

.news-card-body h3 a {
  color: var(--text-main);
}

.news-card-body h3 a:hover {
  color: var(--primary);
}

.news-date {
  font-size: 13px;
  color: var(--text-light);
}

.news-summary {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 12px;
}

.news-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- 文章详情 ---------- */
.article-meta {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 22px;
}

.article-hero {
  margin: 0 auto 36px;
  max-width: 960px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--text-body);
}

.article-body h2 {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-main);
  margin: 38px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul {
  margin: 0 0 18px 22px;
  list-style: disc;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body a {
  color: var(--primary);
}

.article-body strong {
  color: var(--text-main);
}

/* ---------- 品牌板块 / 相关阅读 ---------- */
.brand-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-box h3 {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.brand-box p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
}

.brand-box .brand-contact {
  margin-top: 10px;
}

.brand-box a {
  color: var(--primary);
}

.section.tight-top {
  padding-top: 0;
}

.related-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.related-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.related-list li:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.related-list li a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.related-list li a:hover {
  color: var(--primary);
}

.related-list li span {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-thumb img {
    height: 190px;
  }

  .article-body {
    font-size: 16px;
  }

  .brand-box {
    padding: 24px 20px;
  }

  .related-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
