/* 辰一极智官网样式
   设计要点：「一站交付」→ 地铁线路。站点 + 线段是全站唯一的图形语言；
   全页只有两种底色（纸白、黛青），双栏统一用 .grid-2，右栏与线路第 3 站对齐。 */

@font-face {
  font-family: "Heading Serif";
  src: url("../fonts/heading-serif.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F7F5;          /* 纸白：页面底色 */
  --surface: #FFFFFF;
  --ink: #172430;         /* 墨：正文与标题 */
  --ink-2: #4D5966;       /* 次级文字 */
  --ink-3: #6F7A84;       /* 辅助文字、标签 */
  --ink-4: #A9B2B9;       /* 「现在」状态的空心站点 */
  --teal: #0D5862;        /* 黛青：主色、深色区块 */
  --teal-deep: #0A454D;
  --tint: #E4EDEB;        /* 浅青：悬停底色 */
  --signal: #EFB22E;      /* 信号黄：只用于终点站标记 */
  --rule: #D6DDDA;

  --serif: "Heading Serif", "Source Han Serif SC", "Source Han Serif CN", "Noto Serif SC",
           "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --col-gap: 24px;
  --section-space: clamp(80px, 10vw, 144px);
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

p { text-wrap: pretty; }

a { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2 * var(--gutter), 1160px);
  margin-inline: auto;
}

/* 统一双栏：所有区块的右栏都从同一条竖线开始 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

@media (max-width: 759px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* 词组不拆行 */
.nw { white-space: nowrap; }

/* 宋体标题统一开启标点挤压 */
.hero-title,
.section-title,
.process-title,
.contact-title,
.stop-name,
.principle-term,
.about-belief,
.shift-from,
.qr-title,
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-feature-settings: "palt" 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- 按钮与链接 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--tint); }

.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-large { height: 58px; padding: 0 34px; font-size: 17px; }

.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.text-link:hover { color: var(--teal-deep); }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  text-decoration: none;
}

.brand-name {
  font-size: 21px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.site-nav a:hover { color: var(--teal); }

.header-cta { margin-left: 32px; }

/* ---------- 首屏 ---------- */

.hero {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(64px, 6vw, 88px);
}

.hero-title {
  margin: 0 0 0 -0.04em;
  font-size: clamp(2rem, 0.2rem + 8.6vw, 8rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* 中文里的拉丁词只留窄空隙，不用整个空格 */
.latin { margin-inline: 0.12em; }

.hero-lede {
  margin: clamp(28px, 3vw, 44px) 0 0;
  max-width: 36em;
  color: var(--ink-2);
  font-size: clamp(16px, 0.85rem + 0.45vw, 20px);
}

.br-wide { display: none; }
@media (min-width: 760px) {
  .br-wide { display: inline; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 40px;
}

/* ---------- 通用区块 ---------- */

.section { padding-block: var(--section-space); }

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ---------- 适合这些企业：痛点为主，回应为辅 ---------- */

.fit {
  padding-top: clamp(56px, 5vw, 72px);
  border-top: 1px solid var(--rule);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legend::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-from::before {
  background: var(--bg);
  border: 2.5px solid var(--ink-4);
}

.legend-to::before {
  background: var(--signal);
  border: 3px solid var(--teal);
}

.shift-head {
  margin-top: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
}

.shift-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shift {
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.shift-from {
  margin: 0;
  padding-right: 32px;
  color: var(--ink);
  font-size: clamp(21px, 1.1rem + 0.7vw, 28px);
  line-height: 1.45;
}

.shift-to {
  margin: 0;
  color: var(--teal);
  font-size: 17px;
  line-height: 1.7;
}

.shift-tag { display: none; }

@media (max-width: 759px) {
  .shift-head { display: none; }

  .shift-list {
    margin-top: 32px;
    border-top: 1px solid var(--rule);
  }

  .shift {
    row-gap: 12px;
    padding: 24px 0;
  }

  .shift-from { padding-right: 0; }

  .shift-tag {
    display: flex;
    margin-bottom: 4px;
    color: var(--ink-3);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
  }
}

/* ---------- 服务与流程：线路图（深色区块） ---------- */

.process {
  padding-block: var(--section-space);
  background: var(--teal);
  color: #fff;
  overflow-x: clip;
}

.process-title {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.process-lede {
  margin: 20px 0 0;
  max-width: 36em;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 0.9rem + 0.3vw, 19px);
}

/* 四站四栏；每站内部用 subgrid 对齐，让三行内容（站名 / 说明 / 你会拿到）横向齐平 */
.route {
  list-style: none;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: var(--col-gap);
}

.stop {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding-top: 60px;
}

/* 站与站之间的线段：从本站圆心画到下一站圆心 */
.stop::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 14px;
  width: calc(100% + var(--col-gap));
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
}

/* 终点站之后的线不收口：虚线延伸到屏幕边缘，表示持续运维 */
.stop-terminal::before {
  width: calc(100% - 14px + (100vw - 100%) / 2);
  border-radius: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0 14px, transparent 14px 24px);
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
  mask-image: linear-gradient(90deg, #000 55%, transparent);
}

.stop-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  border: 6px solid #fff;
}

.stop-terminal .stop-dot { background: var(--signal); }

.stop-name {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.05rem + 0.45vw, 24px);
  line-height: 1.4;
}

.stop-desc {
  margin: 0;
  padding-right: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.8;
}

/* 「你会拿到」一行：细线贯穿四栏，标签只在第一栏显示 */
.stop-get {
  position: relative;
  margin-top: 28px;
  padding-top: 18px;
}

.stop-get::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + var(--col-gap));
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}
.stop:last-child .stop-get::before { width: 100%; }

.get-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.stop:not(:first-child) .get-label { visibility: hidden; }

.get-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.get-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  color: #fff;
  font-size: 15.5px;
  line-height: 1.6;
}

.get-list li::before {
  content: "";
  position: absolute;
  top: calc(4px + 0.8em - 5px); /* 对准第一行文字的中线 */
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.8);
}

@media (max-width: 899px) {
  .route {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .stop {
    display: block;
    padding: 0 0 48px 52px;
  }
  .stop:last-child { padding-bottom: 0; }

  .stop::before {
    top: 14px;
    left: 11px;
    width: 6px;
    height: 100%;
  }

  .stop-terminal::before {
    width: 6px;
    height: 100%;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0 14px, transparent 14px 24px);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
  }

  .stop-name { margin-bottom: 6px; }

  .stop-get { margin-top: 18px; padding-top: 14px; }
  .stop-get::before,
  .stop:last-child .stop-get::before { width: 100%; }

  .stop:not(:first-child) .get-label { visibility: visible; }
}

/* ---------- 关于我们 ---------- */

.about-belief {
  margin: 40px 0 0;
  color: var(--teal);
  font-size: clamp(26px, 1.1rem + 1.6vw, 40px);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.about-intro {
  margin: 0;
  max-width: 30em;
  font-size: clamp(17px, 1rem + 0.3vw, 19px);
  line-height: 1.85;
}

.principles {
  margin: 40px 0 0;
  border-bottom: 1px solid var(--rule);
}

.principles div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.principle-term {
  font-size: 18px;
  line-height: 1.7;
}

.principles dd {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.8;
}

@media (max-width: 759px) {
  .about-belief { margin: 20px 0 32px; }

  .principles div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- 联系 ---------- */

.contact {
  padding-block: var(--section-space);
  background: var(--teal);
  color: #fff;
}

.contact-inner { align-items: center; }

.contact-title {
  margin: 0;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.contact-text p {
  margin: 24px 0 0;
  max-width: 22em;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.qr {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 0 0 9px; /* 外框向外偏 9px，整体右移让外框贴住网格线 */
}

.qr-img {
  flex: none;
  display: block;
  width: 228px;
  height: 228px;
  padding: 14px;
  background: #fff;
  outline: 1px solid rgba(255, 255, 255, 0.32);
  outline-offset: 8px;
}

.qr-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 14em;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.7;
}

.qr-title {
  color: #fff;
  font-size: 22px;
  line-height: 1.4;
}

.qr-hint-mobile { display: none; }

/* 手机上直接唤起微信的按钮；电脑上扫码更顺手，不显示 */
.contact-open { display: none; }

@media (max-width: 759px) {
  .contact-inner { row-gap: 48px; }
  .qr-hint-mobile { display: inline; }
  .contact-open { display: flex; margin-top: 32px; }
}

@media (max-width: 559px) {
  .qr {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 56px 0 48px;
  color: var(--ink-3);
  font-size: 14px;
}

.footer-brand .brand-name { font-size: 18px; }

.footer-brand p,
.footer-meta p { margin: 12px 0 0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--teal); }

.footer-meta a { color: inherit; }

@media (max-width: 759px) {
  .footer-inner { row-gap: 28px; }
}

/* ---------- 手机端 ---------- */

.mobile-cta { display: none; }

@media (max-width: 759px) {
  .site-nav,
  .header-cta { display: none; }

  .header-inner { height: 60px; }

  html { scroll-padding-top: 72px; }

  .mobile-cta {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 20;
    /* 浅色描边：滑到深青区块上时按钮不会和背景融在一起 */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(13, 88, 98, 0.28);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-cta.is-hidden {
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 760px) and (max-width: 939px) {
  .site-nav { gap: 22px; }
  .header-cta { margin-left: 22px; }
}
