/**
 * Copyright © 2024-2026 MCLINYUNHAI. All Rights Reserved.
 * 凌云海工作室 保留所有权利。
 */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主题色（橙） */
  --brand: #ff7a18;
  --brand-dark: #e8650a;
  --brand-soft: rgba(255,122,24,.12);
  --brand-line: rgba(255,122,24,.35);

  /* 暗色中性 */
  --bg: #0b0e14;
  --surface: #121620;
  --surface-2: #171d2a;
  --border: #232a38;
  --border-strong: #313b52;

  /* 文字 */
  --text: #e7eaf0;
  --text-2: #a7b0c0;
  --muted: #6c7689;

  /* 深色区 */
  --deep: #05070b;
  --deep-2: #0c1019;
  --deep-line: rgba(255,255,255,.08);

  /* 几何 */
  --radius: 0px;
  --radius-sm: 0px;
  --radius-lg: 0px;

  /* 布局 */
  --nav-h: 56px;              /* 导航栏高度（nav.css 引用此变量） */
  --container: 1200px;

  /* 字体 */
  --sans: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",
    "Microsoft YaHei",Roboto,Helvetica,Arial,sans-serif;
  --mono: ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,
    "Liberation Mono",monospace;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
*,*::before,*::after { border-radius: var(--radius) !important; }

html {
  background: var(--bg);      /* 页面切换空白帧不闪白 */
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}


/* ---------- 通用排版 ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
/* 「横线 — 字母 — 横线」风格：两侧对称短横线 */
.section-label::before,
.section-label::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.25;
}
.section-sub {
  font-size: 15px;
  color: var(--text-2);
  margin: 0;
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(255,122,24,.2), transparent 60%),
    linear-gradient(160deg, #06080d 0%, #0c1019 100%);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--deep-line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 80% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 104px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.72);
  margin-bottom: 18px;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  flex-shrink: 0;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -.02em;
}
.accent { color: var(--brand); }
.hero .lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Hero 研究方向标签（无边框纯文本，呼应工程/研究主题） */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
}
.hero-tags span {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: .04em;
}
.hero-tags span::before {
  content: "#";
  color: var(--brand);
  margin-right: 3px;
  font-weight: 700;
}

/* ---------- 404 居中 Hero ---------- */
.hero--center {
  min-height: 72vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.hero--center .hero-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 0;
}
.err-code {
  font-size: clamp(72px, 15vw, 128px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  background: linear-gradient(180deg, var(--brand), #ffb27a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}
.hero--center .lead {
  margin-left: auto;
  margin-right: auto;
}
.hero--center .hero-actions {
  justify-content: center;
}


/* ---------- 统计带 ---------- */
.stat-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat-cell {
  background: var(--surface);
  padding: 28px 16px;
  text-align: center;
  transition: background .2s ease;
}
.stat-cell:hover {
  background: var(--surface-2);
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat-num .unit {
  font-size: .55em;
  font-weight: 600;
  color: var(--brand-dark);
  margin-left: 2px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
}


/* ---------- 时间线（关于我们 · 发展历程）双栏：左 编号/日期/节点名，右 标题/描述 ---------- */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 32px;
  padding: 0 0 40px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--brand);
  transition: transform .2s ease;
}
.timeline-item:hover::before {
  transform: scale(1.25);
}
.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.timeline-num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--brand);
}
.timeline-date {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}
.timeline-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brand-dark);
}
.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  transition: color .2s ease;
}
.timeline-item:hover .timeline-title {
  color: var(--brand);
}
.timeline-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}
@media (max-width: 640px) {
  .timeline { padding-left: 20px; }
  .timeline-item {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 10px;
  }
  .timeline-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .timeline-num { font-size: 18px; }
  .timeline-date { margin-top: 0; }
  .timeline-item::before { left: -25px; }
}

/* ---------- 核心团队（关于我们）头像左、身份右 ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.team-card {
  background: var(--surface);
  padding: 28px;
  transition: background .2s ease;
}
.team-card:hover {
  background: var(--surface-2);
}
/* 卡片头部：圆形头像左，姓名+职务右 */
.team-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.team-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.team-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50% !important;
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, .08);
  box-sizing: border-box;
}
.team-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand);
  margin: 0;
}
.team-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 16px;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.team-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--brand);
}
.team-tags span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand);
  margin-right: 7px;
  vertical-align: 1px;
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}


/* ---------- 特性卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.feature-card {
  background: var(--surface);
  padding: 32px 24px;
  transition: background .2s ease;
}
.feature-card:hover { background: var(--surface-2); }
.feature-ic {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 19px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}
/* 卡片内链接（产品矩阵：了解详情 →） */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: color .2s ease;
}
.card-link::after {
  content: "→";
  transition: transform .2s ease;
}
.card-link:hover {
  color: var(--brand-dark);
}
.card-link:hover::after {
  transform: translateX(3px);
}


/* ---------- 作品多行排版（通栏区块，无嵌套卡片） ---------- */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: work;
}
.work-row {
  counter-increment: work;
  padding: 72px 0;
}
/* 内容直接落在黑色页面背景上；板块之间用发丝线分隔，不做成卡片 */
.work-row + .work-row { border-top: 1px solid var(--border); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.work-info {
  position: relative;
  display: flex;
  flex-direction: column;
}
.work-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-media .ph {
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .55;
}
/* 完整显示，不裁剪；无内层底色，直接落在区块背景上；hover 不再放大 */
.work-img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}

/* 产品序号 01 / 02 / 03，落在右上角，避免与左上角图标重叠 */
.work-info::before {
  content: counter(work, decimal-leading-zero);
  position: absolute;
  top: 0;
  right: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--brand);
}
/* 偶数行：图文左右互换 */
.work-row:nth-child(even) .work-info { order: 2; }
.work-row:nth-child(even) .work-media { order: 1; }
.work-ic {
  color: var(--brand);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.work-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: .01em;
}
.work-mark {
  color: var(--brand);
  font-weight: 700;
  margin-left: 2px;
}
.work-tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  margin: 0 0 16px;
}
.work-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0 0 18px;
}
.work-feats {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.work-feats li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.work-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--brand);
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}
.work-tag {
  font-size: 11px;
  color: var(--brand);
  letter-spacing: .03em;
}
.works-note {
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  max-width: 640px;
  margin: 38px auto 0;
  line-height: 1.75;
}
@media (max-width: 768px) {
  .work-row { padding: 48px 0; }
  .work-grid { grid-template-columns: 1fr; gap: 28px; }
  .work-row:nth-child(even) .work-info { order: 1; }
  .work-row:nth-child(even) .work-media { order: 2; }
  .work-media { min-height: 0; }
}


/* ---------- 作品页：其他介绍 / 适用场景 / FAQ ---------- */
.intro-band {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.intro-band .container {
  max-width: 760px;
}
.intro-band p {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-2);
  text-align: center;
}
.intro-band .accent {
  color: var(--brand);
}

/* 适用场景：仿首页「工程化能力」卡片网格（1px 发丝线分隔 + surface 底 + hover 提亮），图标无背景 */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 32px;
}
.uc-item {
  background: var(--surface);
  padding: 32px 24px;
  transition: background .2s ease;
}
.uc-item:hover {
  background: var(--surface-2);
}
.uc-ic {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 19px;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.uc-item h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.uc-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
}

/* FAQ：Bootstrap 5 原生 accordion（自带 collapse 高度过渡 + 淡入），仅做视觉定制，保持平铺 + 发丝线 */
.faq {
  margin-top: 8px;
}
.faq .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
}
.faq .accordion-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq .accordion-header {
  margin: 0;
}
.faq .accordion-button {
  position: relative;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  padding: 18px 40px 18px 4px;
  border: 0;
  box-shadow: none;
}
.faq .accordion-button:not(.collapsed),
.faq .accordion-button:hover,
.faq .accordion-button:focus,
.faq .accordion-button:focus-visible {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
/* 隐藏 BS 默认 chevron，沿用站点自有的 +/− 指示器：横杠固定 + 竖杠旋转淡出 */
.faq .accordion-button::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-left: 0;
  background: var(--brand);
  background-image: none;
  transform: translateY(-50%);
  transition: none;
}
.faq .accordion-button::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 2px;
  height: 14px;
  background: var(--brand);
  transform: translateY(-50%);
  transition: transform .25s ease, opacity .25s ease;
}
.faq .accordion-button:not(.collapsed)::before {
  transform: translateY(-50%) rotate(90deg);
  opacity: 0;
}
/* B5 collapse 自带 height 过渡；补一层淡入，展开更柔和 */
.faq .accordion-collapse {
  transition: height .35s ease, opacity .3s ease;
}
.faq .accordion-collapse.collapsing {
  opacity: 0;
}
.faq .accordion-collapse.show {
  opacity: 1;
}
.faq .accordion-body {
  padding: 0 4px 18px;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
}
@media (max-width: 768px) {
  .intro-band { padding: 48px 0; }
}
@media (max-width: 480px) {
  .uc-grid { grid-template-columns: 1fr; }
}

/* ---------- 服务行 ---------- */
.services { background: var(--bg); }
.svc-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.svc-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  padding: 28px 28px;
  transition: background .2s ease;
}
.svc-card:hover { background: var(--surface-2); }
.svc-ic {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 19px;
  flex-shrink: 0;
  margin-top: 2px;
}
.svc-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.svc-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}


/* ---------- 合作伙伴滚动墙（marquee，纯文字无缝循环，边缘渐隐） ---------- */
.marquee {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.marquee-group span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .45);
  transition: color .2s ease;
}
.marquee-group span:hover {
  color: var(--brand);
}
/* 名字之间的分隔符 */
.marquee-group span + span::before {
  content: "·";
  margin: 0 30px;
  color: rgba(255, 255, 255, .22);
}
/* 循环衔接处：每组末尾追加同样分隔符，避免「上一轮结尾 + 下一轮开头」粘在一起 */
.marquee-group::after {
  content: "·";
  margin: 0 30px;
  color: rgba(255, 255, 255, .22);
}

/* ---------- 返回顶部（右下角圆形按钮，单图标） ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- 图片放大查看（lightbox） ---------- */
.work-zoom {
  display: block;
  width: 100%;
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 11, .92);
  cursor: zoom-out;
  animation: lightboxIn .25s ease;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ---------- 加载动画（六边形矩阵，主题橙描边） ---------- */
.loading_block {
  stroke: var(--brand, #ff7a18);
  stroke-width: 0.8;
  stroke-dasharray: 100;
}


/* ---------- 页面级响应式 ---------- */
@media (max-width: 992px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-inner { padding: 64px 0 72px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
