/* 晨阳科技工作室 — 主题色 rgb(51, 128, 255) #3380ff */
:root {
  --theme: rgb(51, 128, 255);
  --theme-dim: rgba(51, 128, 255, 0.35);
  /* 由主题色推导的色阶 */
  --blue-900: #1a3366;
  --blue-800: #2448a3;
  --blue-700: #2d5cc9;
  --blue-600: #3380ff;
  --blue-500: #5c9dff;
  --blue-100: #e8f1ff;
  --blue-50: #f4f8ff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --white: #ffffff;
  --border: #dbe4f0;
  --shadow: 0 10px 40px rgba(51, 128, 255, 0.1);
  --shadow-sm: 0 4px 14px rgba(51, 128, 255, 0.07);
  --radius: 4px;
  --radius-lg: 8px;
  --container: 1200px;
  --section-y: clamp(3.5rem, 8vw, 5.5rem);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--theme);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  gap: 1.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--theme);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--theme);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 2.25rem;
}

.site-nav a {
  font-size: 1.02rem;
  color: var(--slate-700);
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--theme);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--slate-700);
  transition: transform 0.2s, top 0.2s, opacity 0.2s;
}

.nav-toggle::before {
  top: 16px;
  box-shadow: 0 7px 0 var(--slate-700);
}

.nav-toggle::after {
  top: 30px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.5rem, 4vw, 2.5rem) 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .header-inner {
    position: relative;
  }
}

/* —— 首屏横幅 —— */
.hero-banner {
  position: relative;
  background: #0b1530;
  color: var(--white);
  overflow: hidden;
}

/* 与设计稿一致：1920 × 768（宽高比 5:2） */
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 768;
  min-height: 11rem;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  background-color: #0b1530;
  /* 铺满整张幻灯片（与 .hero-slides 同高） */
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: border-box;
  background-clip: border-box;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-slide > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  min-height: 0;
}

/* 横向把整块文案推到左/右侧，避免把标题/段落当成 flex 横排子项 */
.hero-slide--align-right .hero-slide__inner {
  justify-content: flex-end;
}

.hero-slide--align-left .hero-slide__inner {
  justify-content: flex-start;
}

.hero-slide--banner1 {
  background-image: url("../images/banner1.jpg");
}

.hero-slide--banner1::after {
  /* 文案靠右：右侧加深保证可读 */
  background: linear-gradient(
    270deg,
    rgba(15, 30, 72, 0.9) 0%,
    rgba(15, 30, 72, 0.48) 42%,
    rgba(51, 128, 255, 0.08) 72%,
    transparent 100%
  );
}

.hero-slide--banner2 {
  background-image: url("../images/banner2.jpg");
}

.hero-slide--banner2::after {
  /* 文案靠左：左侧加深 */
  background: linear-gradient(
    90deg,
    rgba(15, 30, 72, 0.9) 0%,
    rgba(15, 30, 72, 0.48) 42%,
    rgba(51, 128, 255, 0.08) 72%,
    transparent 100%
  );
}

/* 激活层仍绝对定位铺满父级，不能用 relative，否则高度随内容塌陷、背景只占一截 */
.hero-slide--active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.hero-slide--align-right .hero-copy {
  text-align: right;
}

.hero-slide--align-right .hero-actions {
  justify-content: flex-end;
}

.hero-slide--align-left .hero-copy {
  text-align: left;
}

.hero-copy {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  width: 100%;
  max-width: min(36rem, 100%);
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero-banner h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  margin: 0 0 2rem;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-slide {
    padding: clamp(1rem, 3vw, 2rem) 0;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .hero-banner h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1.3;
  }

  .hero-desc {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero-actions {
    display: none;
  }

  .hero-slide--align-right .hero-copy {
    text-align: left;
  }

  .hero-slide--align-right .hero-actions {
    justify-content: flex-start;
  }

  .hero-slide--align-left .hero-copy {
    text-align: left;
  }

  .hero-slide--align-left .hero-actions {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.65rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--white);
  color: var(--blue-700);
}

.btn-primary:hover {
  background: var(--blue-50);
  color: var(--blue-800);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* 叠在轮播图底部，不占文档流高度，避免把 1920×768 区域「顶短」导致图被压扁 */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 1rem 1rem;
  z-index: 2;
  pointer-events: none;
}

.hero-dot {
  pointer-events: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.is-active {
  background: var(--white);
  transform: scale(1.15);
}

/* —— 通用区块 —— */
.section {
  padding: var(--section-y) 0;
}

.section--alt {
  background: linear-gradient(180deg, #152a52 0%, #0f1a38 100%);
  color: rgba(255, 255, 255, 0.88);
}

/* .section--muted {
  background: var(--blue-50);
} */

.block-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.block-head--left {
  text-align: left;
}

.block-head--light .block-title {
  color: var(--white);
}

.block-head--light .block-lead {
  color: rgba(255, 255, 255, 0.75);
}

.block-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.block-lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-500);
}

.block-head--left .block-lead {
  margin: 0;
}

.block-dash {
  display: block;
  width: 56px;
  height: 3px;
  margin: 1.35rem auto 0;
  background: linear-gradient(90deg, var(--theme), var(--blue-500));
  border-radius: 2px;
}

.block-dash--light {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), var(--theme));
}

.block-head--left .block-dash {
  margin: 1rem 0 0;
}

/* —— 服务网格 —— */
.section-services {
  background: var(--white) url('../images/back.jpg') no-repeat center center;
  background-size: cover;
}


.services-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.35rem, 3vw, 1.75rem);
  box-shadow: 0 4px 20px rgba(51, 128, 255, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(51, 128, 255, 0.2);
  transform: translateY(-5px);
}

.service-card__icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  color: var(--slate-900);
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--slate-600);
  line-height: 1.82;
}

/* —— 数据条 —— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
}

.stat-num {
  display: block;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* —— 优势 —— */
.section-advantages {
  background: var(--white) url('../images/back.jpg') no-repeat center center;
  background-size: cover;
}


.advantages-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 640px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.adv-card {
  border: none;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.35rem, 3vw, 1.85rem);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(51, 128, 255, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.adv-card:hover {
  box-shadow: 0 12px 40px rgba(51, 128, 255, 0.2);
  transform: translateY(-5px);
}

.adv-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  color: var(--slate-900);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--blue-100);
}

.adv-card p {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  color: var(--slate-600);
  line-height: 1.82;
}

/* —— 关于内：合作说明（原新闻动态文案） —— */
.coop-notes {
  margin: 2.25rem 0 2rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(51, 128, 255, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.coop-notes:hover {
  box-shadow: 0 12px 40px rgba(51, 128, 255, 0.2);
  transform: translateY(-5px);
}

.coop-notes__title {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: 0.04em;
}

.coop-notes__p {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--slate-600);
}

.coop-notes__p:last-of-type {
  margin-bottom: 0;
}

/* —— 关于 —— */
.about-layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 800px) {
  .about-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.about-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.88;
}

.text-link {
  display: block;
  margin: 1.75rem auto 0;
  font-weight: 600;
  font-size: 1.02rem;
  text-align: center;
  width: fit-content;
}

.about-panel {
  min-height: 240px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--blue-700), var(--blue-500));
  box-shadow: var(--shadow);
}

.about-panel__inner {
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  font-weight: 600;
  font-size: 1.02rem;
}

.about-panel__inner span {
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  max-width: 13rem;
}

/* —— 合作流程 —— */
.section-process {
  background: var(--white) url('../images/back.jpg') no-repeat center center;
  background-size: cover;
}


.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 900px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.process-timeline > li {
  display: flex;
  gap: 1.15rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: none;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(51, 128, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.process-timeline > li:hover {
  box-shadow: 0 12px 40px rgba(51, 128, 255, 0.2);
  transform: translateY(-5px);
}

.process-timeline > li:first-child {
  border-radius: var(--radius-lg);
}

.process-timeline > li:last-child {
  border-radius: var(--radius-lg);
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .process-timeline > li {
    flex-direction: column;
    text-align: center;
    align-items: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(51, 128, 255, 0.1);
    margin-bottom: 0;
  }

  .process-timeline > li:first-child,
  .process-timeline > li:last-child {
    border-radius: var(--radius-lg);
  }
}

.process-step {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  line-height: 2.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 50%;
}

.process-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--slate-900);
}

.process-body p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--slate-600);
  line-height: 1.78;
}

/* —— 联系 —— */
.contact-panel {
  max-width: 56rem;
  margin: 0 auto;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 720px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-split__wechat {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
}

.contact-split__title {
  text-align: center;
  margin: 0 0 1.15rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: 0.02em;
}

.contact-dl {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  box-shadow: 0 4px 20px rgba(51, 128, 255, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.contact-dl:hover {
  box-shadow: 0 12px 40px rgba(51, 128, 255, 0.2);
  transform: translateY(-5px);
}

.contact-dl dt {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.contact-dl dd {
  margin: 0.35rem 0 1.25rem;
  font-size: 1.02rem;
  color: var(--slate-900);
  line-height: 1.65;
}

.contact-dl dd:last-child {
  margin-bottom: 0;
}

.contact-dl a {
  word-break: break-all;
}

.contact-split__wechat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-split__wechat img {
  display: block;
  width: 200px;
  height: auto;
}

.wechat-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate-600);
  text-align: center;
  line-height: 1.6;
}

/* —— 提示 / 关键词 / 信任条 —— */
.notice-bar {
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
}

.notice-bar p {
  margin: 0 auto;
  max-width: 52rem;
  font-size: 0.95rem;
  color: #92400e;
  line-height: 1.8;
}

.keywords-section {
  padding: clamp(1.5rem, 4vw, 2rem) 0;
  background: var(--slate-900);
  color: rgba(255, 255, 255, 0.75);
}

.keywords {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.95;
  text-align: center;
}

.keywords span {
  color: rgba(255, 255, 255, 0.95);
}

.trust-bar {
  background: var(--blue-50);
  border-top: 1px solid var(--border);
  padding: clamp(1rem, 3vw, 1.35rem) 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.75rem;
  font-size: 0.95rem;
  color: var(--slate-600);
}

.trust-sep {
  color: var(--border);
  user-select: none;
}

/* —— 页脚 —— */
.site-footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 2.75rem) 0 clamp(2.25rem, 5vw, 3rem);
  text-align: center;
}

.footer-inner p {
  margin: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.65;
}

.footer-copy {
  color: var(--slate-700);
  font-weight: 500;
}

.icp a {
  color: var(--slate-600);
}

.icp a:hover {
  color: var(--theme);
}

.footer-note {
  font-size: 0.85rem;
}
