/* 茂码科技 企业官网样式
 *
 * 设计取向：暖白底 + 深墨蓝字 + 朱砂红点缀。
 *
 * 为什么不用黑白：中文语境里纯黑底白字容易联想到白事场合，
 * 企业官网第一印象不能用这个。改为「宣纸暖白 + 墨色字 + 一点朱砂」，
 * 既是中国人熟悉的纸墨调子，又比纯白柔和、久看不刺眼。
 *
 * 仍然零依赖：无框架、无 Web Font、无位图背景，首屏只有一次 CSS 请求。
 */

:root {
  /* —— 底色：暖白，最底一层偏米，用来区分区块 —— */
  --bg: #fdfcfa;
  --bg-2: #f7f4ef;
  --bg-3: #f1ece4;

  /* —— 线：暖灰，不用纯灰否则发脏 —— */
  --line: #e6dfd4;
  --line-soft: #efe9df;
  --line-hi: #d8cfc1;

  /* —— 字：墨蓝黑，不是纯黑 —— */
  --text: #1f2933;
  --text-2: #55606d;
  --text-3: #8a939e;

  /* —— 强调：朱砂红，只用在数字、序号、主按钮 —— */
  --accent: #b5382e;
  --accent-deep: #962c24;
  --accent-soft: rgba(181, 56, 46, .08);
  --accent-ink: #ffffff;

  /* —— 辅助：靛青，用于第二组小圆点 —— */
  --second: #2f5d7c;

  --radius: 14px;
  --wrap: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans CJK SC", sans-serif;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(181, 56, 46, .16); color: var(--text); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}

/* 主按钮：朱砂实心。不用渐变，平涂更端正 */
.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -10px rgba(181, 56, 46, .55);
}
.btn-solid:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(181, 56, 46, .65);
}

.btn-line {
  border-color: var(--line-hi);
  color: var(--text);
  background: transparent;
}
.btn-line:hover {
  border-color: var(--text-2);
  background: #fff;
  transform: translateY(-1px);
}

.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 8px; }

/* ---------- 顶栏 ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .28s var(--ease), border-color .28s var(--ease),
              box-shadow .28s var(--ease);
}

.nav.is-scrolled {
  background: rgba(253, 252, 250, .88);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 16px -8px rgba(31, 41, 51, .18);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 78px;
  transition: height .28s var(--ease);
}
.nav.is-scrolled .nav-inner { height: 66px; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

/* 标志：一方一圆的朱砂色块，比黑白竖条更喜气，也更像印章 */
.logo-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}
.logo-mark i {
  position: absolute;
  display: block;
  background: var(--accent);
}
.logo-mark i:nth-child(1) {
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
.logo-mark i:nth-child(2) {
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: .72;
}

.logo-text { font-size: 18px; letter-spacing: 1.4px; line-height: 1.15; color: var(--text); }
.logo-text em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: var(--text-3);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 15px;
  color: var(--text-2);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  transition: transform .24s var(--ease);
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }

/* ================= 首屏（居中大留白 + 主视觉） ================= */

.hero {
  position: relative;
  padding: 156px 0 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

/* 底层：几乎看不见的细网格 + 一点中心光，像产品摄影的背景纸 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(27, 58, 99, .07), transparent 70%),
    linear-gradient(to right, rgba(15, 30, 51, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 30, 51, .028) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 92%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: -320px;
  left: 50%;
  width: 1200px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(27, 58, 99, .10), transparent 72%);
  pointer-events: none;
}

.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 顶部小字：公司名，很轻，只是为了不让人不知道这是哪家 */
.hero-kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text-3);
  margin: 0 0 34px;
  font-weight: 600;
}

/* 主标题：极大、居中、行高紧，两行之间留出呼吸 */
.hero-title {
  font-size: clamp(38px, 6.2vw, 84px);
  line-height: 1.18;
  letter-spacing: -2px;
  margin: 0 0 30px;
  font-weight: 800;
  color: var(--text);
  max-width: 16em;
}

.hero-title-accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-2);
  margin: 0 0 36px;
  max-width: 34em;
  line-height: 1.8;
}

/* 华为那种：文字链 + 箭头，比大按钮更轻、更大气 */
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 76px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.hero-link:hover { border-bottom-color: currentColor; }
.hero-link span { transition: transform .2s var(--ease); }
.hero-link:hover span { transform: translateX(4px); }

.hero-link-quiet { color: var(--text-2); }

/* ----- 主视觉台：中央光晕 + 几层设备窗口 ----- */

.stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 460px;
  margin: 0 auto;
}

.stage-aura {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 720px;
  height: 380px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(27, 58, 99, .16), transparent 72%),
    radial-gradient(closest-side at 60% 55%, rgba(60, 100, 160, .14), transparent 72%);
  filter: blur(6px);
}

.stage-grid {
  position: absolute;
  inset: 0;
}

/* 三层窗口共用同一套底子 */
.win {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 34px 70px -40px rgba(15, 30, 51, .55),
              0 2px 6px -2px rgba(15, 30, 51, .06);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.stage:hover .win-1 { transform: translateY(-8px) rotate(-1deg); }
.stage:hover .win-2 { transform: translateY(-4px) rotate(1deg); }
.stage:hover .win-3 { transform: translateY(-10px); }

.win-bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.win-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-hi);
}

.win-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 20px;
}

.win-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.win-code {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 位置：左后、右后、正中偏前 */
.win-1 {
  left: 0;
  top: 86px;
  width: 340px;
  transform: rotate(-2.5deg);
  opacity: .96;
}

.win-2 {
  right: 0;
  top: 140px;
  width: 320px;
  transform: rotate(2.5deg);
  opacity: .96;
}

/* 手机：居中最前，是被聚光的主体 */
.win-3 {
  left: 50%;
  top: 34px;
  width: 236px;
  height: 400px;
  transform: translateX(-50%);
  border-radius: 28px;
  padding: 10px;
  background: #fff;
  z-index: 2;
  box-shadow: 0 50px 90px -46px rgba(15, 30, 51, .7),
              0 2px 8px -2px rgba(15, 30, 51, .08);
}

.phone-notch {
  width: 58px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-hi);
  margin: 4px auto 12px;
}

.phone-screen {
  height: calc(100% - 26px);
  border-radius: 18px;
  background: var(--bg-2);
  padding: 20px 16px;
}

.ph-line {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
  margin-bottom: 10px;
}
.ph-line.w55 { width: 55%; }
.ph-line.w60 { width: 60%; }
.ph-line.w75 { width: 75%; }
.ph-line.w80 { width: 80%; }
.ph-line.w90 { width: 90%; }

.ph-hi {
  display: inline-block;
  margin: 12px 0 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
}

.stage-note {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ================= 三张能力卡（华为那种） ================= */

.pillars { padding: 96px 0 40px; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 40px -38px rgba(15, 30, 51, .5);
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.pillar:hover {
  border-color: var(--line-hi);
  transform: translateY(-4px);
  box-shadow: 0 26px 52px -34px rgba(15, 30, 51, .55);
}

.pillar-ico {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1;
}

.pillar h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.pillar p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.pillar-link span { transition: transform .2s var(--ease); }
.pillar:hover .pillar-link span { transform: translateX(4px); }

/* ================= 首屏轮播（微软式全宽） ================= */

.hero-slider {
  position: relative;
  margin-top: 0;
  padding-top: 78px;          /* 让出固定顶栏的高度 */
  overflow: hidden;
  background: var(--bg);
}

.slides { position: relative; }

/* 每屏：进退场用 opacity + 微位移，不用 display 切换，过渡才连贯 */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
  pointer-events: none;
}

/* 第一屏撑开容器高度，其余屏绝对定位叠在上面 */
.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.slide-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 40px;
  min-height: 560px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 28px 88px;
}

.slide-reverse .slide-text { order: 2; }
.slide-reverse .slide-art { order: 1; }

.slide-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.slide-text h1,
.slide-text h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--text);
}

.slide-text p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.85;
  margin: 0 0 32px;
  max-width: 30em;
}

.slide-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* 微软那种实心蓝按钮 */
.ms-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.ms-btn:hover { background: var(--accent-deep); transform: translateY(-1px); }

.ms-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.ms-link:hover { border-bottom-color: currentColor; }

/* ----- 每屏右侧的图形（纯 CSS） ----- */

.slide-art {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
}

.art-ring {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(27, 58, 99, .13), transparent 70%);
}

.art-phone {
  position: relative;
  z-index: 2;
  width: 232px;
  height: 388px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 44px 80px -44px rgba(15, 30, 51, .75),
              0 2px 8px -2px rgba(15, 30, 51, .08);
}

.art-notch {
  width: 54px; height: 5px; border-radius: 3px;
  background: var(--line-hi); margin: 4px auto 12px;
}

.art-screen {
  height: calc(100% - 26px);
  border-radius: 18px;
  background: var(--bg-2);
  padding: 20px 16px;
}

.al {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--line);
  margin-bottom: 10px;
}
.al.w55 { width: 55%; } .al.w60 { width: 60%; }
.al.w75 { width: 75%; } .al.w80 { width: 80%; }
.al.w90 { width: 90%; }

.art-hi {
  display: inline-block;
  margin: 12px 0 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px; font-weight: 700;
}

.art-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -30px rgba(15, 30, 51, .6);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.art-card code {
  font-size: 11px;
  color: var(--text-3);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 400;
}
.art-1 { left: 6%; top: 84px; transform: rotate(-3deg); }
.art-2 { right: 6%; bottom: 92px; transform: rotate(3deg); }

/* 第二屏：四本书脊 */
.art-books { position: relative; z-index: 2; display: flex; gap: 14px; align-items: flex-end; }

.bk {
  display: grid;
  place-items: center;
  width: 74px;
  height: 250px;
  border-radius: 6px 6px 4px 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  writing-mode: vertical-rl;
  box-shadow: 0 30px 56px -34px rgba(15, 30, 51, .7);
  transition: transform .35s var(--ease);
}
.bk:hover { transform: translateY(-10px); }
.bk-sg  { background: linear-gradient(180deg, #9a3b32, #6f2921); height: 262px; }
.bk-hlm { background: linear-gradient(180deg, #7d3550, #572338); height: 238px; }
.bk-shz { background: linear-gradient(180deg, #3c6b4d, #274a34); height: 250px; }
.bk-xyj { background: linear-gradient(180deg, #a87a32, #7a5520); height: 226px; }

/* 第三屏：三个数字 */
.art-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 440px;
}
.art-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 16px;
  text-align: center;
  box-shadow: 0 24px 48px -36px rgba(15, 30, 51, .6);
}
.art-stats b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.5px;
}
.art-stats span { font-size: 12px; color: var(--text-3); }

/* ----- 底部控制条 ----- */

.slider-ctrl {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--wrap);
  margin: -30px auto 0;
  padding: 0 28px 40px;
}

.ctrl-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: #fff;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .2s, color .2s, background .2s;
}
.ctrl-arrow:hover { border-color: var(--accent); color: var(--accent); }
.ctrl-arrow:disabled { opacity: .35; cursor: default; }

.ctrl-mid {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  justify-content: center;
}

.ctrl-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex: 0 0 auto;
}

/* 播放/暂停用两个小方块拼，避免引图标库 */
.play-icon {
  width: 9px;
  height: 10px;
  border-left: 3px solid var(--text-2);
  border-right: 3px solid var(--text-2);
}
.ctrl-play.is-paused .play-icon {
  width: 0; height: 0;
  border-left: 9px solid var(--text-2);
  border-right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.ctrl-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 1 260px;
}

.seg {
  height: 3px;
  flex: 1 1 0;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.seg.is-on { background: var(--line-hi); }

/* 当前这一段跑一条进度线，看得见「还要等多久」 */
.seg.is-on::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
}
.seg.is-on.is-running::after {
  animation: segFill var(--seg-dur, 6000ms) linear forwards;
}
@keyframes segFill { to { width: 100%; } }

/* ================= 阅读页轮播（五本） ================= */

.readshow { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.sec-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head-center h2::after { margin-left: auto; margin-right: auto; }

/* 视口横向滚，不显示滚动条；用 snap 让松手时自动对齐到某一屏 */
.read-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.read-viewport::-webkit-scrollbar { display: none; }

.read-track {
  display: flex;
  gap: 24px;
  padding: 8px max(28px, calc((100% - 1080px) / 2)) 24px;
}

.read-slide {
  flex: 0 0 340px;
  scroll-snap-align: center;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.read-phone {
  width: 100%;
  max-width: 300px;
  height: 400px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 34px 64px -46px rgba(15, 30, 51, .7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.read-slide:hover .read-phone {
  transform: translateY(-6px);
  box-shadow: 0 44px 76px -44px rgba(15, 30, 51, .75);
}

.read-screen {
  height: 100%;
  border-radius: 18px;
  background: var(--bg);
  padding: 22px 18px;
  overflow: hidden;
}

.rs-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.read-screen h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.rs-para {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-2);
  margin-bottom: 10px;
}

/* 正文里的注释锚点：带小圆角边框的方字，跟应用里一个观感 */
.rs-note {
  display: inline-block;
  padding: 0 4px;
  margin: 0 2px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

.rs-tip {
  font-size: 11.5px;
  color: var(--text-3);
  border-left: 2px solid var(--accent);
  padding-left: 8px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.rs-en {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-2);
  font-style: italic;
  margin: 0 0 14px;
}

.rs-line {
  height: 6px;
  border-radius: 3px;
  background: var(--line-soft);
  margin-bottom: 8px;
}
.rs-line.w65 { width: 65%; } .rs-line.w70 { width: 70%; }
.rs-line.w72 { width: 72%; } .rs-line.w75 { width: 75%; }
.rs-line.w80 { width: 80%; } .rs-line.w85 { width: 85%; }
.rs-line.w88 { width: 88%; } .rs-line.w90 { width: 90%; }

.read-info { text-align: center; max-width: 90%; }
.read-info h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.read-info p { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.read-meta { font-size: 12px; color: var(--text-3); letter-spacing: .4px; }

.read-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

.read-dots { display: flex; gap: 10px; }

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--line-hi);
  cursor: pointer;
  transition: background .2s, width .2s var(--ease);
}
.dot.is-on { background: var(--accent); width: 26px; border-radius: 5px; }

/* ---------- 通用区块 ---------- */

.section { padding: 108px 0; position: relative; }

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.sec-head { max-width: 660px; margin-bottom: 56px; }

h2 {
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.28;
  letter-spacing: -.6px;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--text);
}

/* 标题下一道短朱砂线，替代纯文字标题的分量感 */
.sec-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 18px;
}

.sec-sub {
  color: var(--text-2);
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- 服务卡片 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px -34px rgba(31, 41, 51, .55);
  transition: border-color .28s var(--ease), transform .28s var(--ease),
              box-shadow .28s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  border-color: var(--line-hi);
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -32px rgba(31, 41, 51, .5);
}
.card:hover::before { transform: scaleX(1); }

.card-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.card p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.8;
}

.ticks {
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-3);
  border-top: 1px solid var(--line-soft);
}
.ticks li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .5;
}

/* ---------- 案例 ---------- */

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 64px;
  align-items: center;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}
.case-tags span {
  font-size: 12px;
  letter-spacing: .6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: #fff;
  font-weight: 500;
}

.case h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -.4px;
}

.case > div > p { color: var(--text-2); font-size: 15.5px; margin: 0 0 32px; line-height: 1.85; }

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.case-grid h4 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
}
.case-grid h4::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 9px;
}
.case-grid p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.75;
}

/* 右侧「阅读页」示意：浅底上做成纸张卡片 */
.case-side { text-align: center; }

.mock {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 11px;
  box-shadow: 0 28px 60px -38px rgba(31, 41, 51, .55);
}
.mock-bar {
  display: flex;
  gap: 5px;
  padding: 4px 4px 11px;
}
.mock-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-hi);
}
.mock-body {
  border-radius: 10px;
  background: var(--bg-2);
  padding: 22px 18px;
  text-align: left;
}
.mock-line {
  height: 7px;
  border-radius: 4px;
  background: #e2dbd0;
  margin-bottom: 11px;
}
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; }
.w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }

.mock-quote {
  margin: 16px 0;
  padding: 11px 13px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
  color: var(--accent-deep);
  line-height: 1.55;
}

.mock-cap {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 16px 0 0;
}

/* ---------- 流程 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px -34px rgba(31, 41, 51, .5);
  transition: border-color .28s var(--ease), transform .28s var(--ease);
}
.steps li:hover { border-color: var(--line-hi); transform: translateY(-4px); }

.step-n {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.steps h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.steps p { margin: 0 0 16px; font-size: 14px; color: var(--text-2); line-height: 1.8; }

.step-out {
  font-size: 12.5px !important;
  color: var(--text-3) !important;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin: 0 !important;
}

/* ---------- 公司动态 ---------- */

.news-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.news-item:hover { background: rgba(255, 255, 255, .6); }

.news-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 2px;
}

.news-date time {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: .4px;
  font-variant-numeric: tabular-nums;
}

.news-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  color: var(--text-3);
  background: #fff;
  font-weight: 600;
}

/* 标签用极淡的四色区分类型，不能抢主色 */
.tag-release { color: var(--accent); border-color: rgba(181, 56, 46, .3); background: var(--accent-soft); }
.tag-tech    { color: var(--second); border-color: rgba(47, 93, 124, .28); background: rgba(47, 93, 124, .07); }
.tag-company { color: #4a7c59; border-color: rgba(74, 124, 89, .28); background: rgba(74, 124, 89, .07); }

.news-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.2px;
  color: var(--text);
}

.news-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 62em;
}

/* ---------- 关于 ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: start;
}

.about-text p { color: var(--text-2); font-size: 16px; line-height: 1.9; }
.about-text strong { color: var(--text); font-weight: 700; }

.about-facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -36px rgba(31, 41, 51, .5);
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  background: #fff;
  font-size: 14px;
  transition: background .22s;
}
.fact:hover { background: var(--bg); }
.fact span { color: var(--text-3); flex: 0 0 auto; }
.fact b { font-weight: 600; text-align: right; color: var(--text); }

/* ---------- 联系 ---------- */

.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(181, 56, 46, .07), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.contact-actions { display: grid; gap: 12px; }

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 30px -30px rgba(31, 41, 51, .5);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
a.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -30px rgba(181, 56, 46, .5);
}
.contact-item span { font-size: 13px; color: var(--text-3); }
.contact-item b { font-size: 16px; font-weight: 600; letter-spacing: .2px; }

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 72px 0 44px;
  background: var(--bg-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 56px;
}

.footer-brand p { color: var(--text-3); font-size: 14px; margin: 14px 0 0; }
.footer-brand .footer-addr { margin-top: 6px; font-size: 13px; opacity: .85; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-nav h4 {
  font-size: 13px;
  letter-spacing: .6px;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-nav a {
  display: block;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 11px;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.footer-bottom p { margin: 0; }
.footer-note { color: var(--text-3); opacity: .8; }

/* ---------- 入场动画（尊重系统「减弱动效」） ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.cards .reveal:nth-child(2),
.steps .reveal:nth-child(2) { transition-delay: .06s; }
.cards .reveal:nth-child(3),
.steps .reveal:nth-child(3) { transition-delay: .12s; }
.cards .reveal:nth-child(4),
.steps .reveal:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  .btn-solid:hover, .btn-line:hover, .card:hover,
  .steps li:hover, .contact-item:hover, .stack-layer:hover { transform: none; }
}

/* ---------- 中等屏 ---------- */

@media (max-width: 1000px) {
  .hero { padding: 130px 0 0; }
  .hero-cta { margin-bottom: 56px; gap: 28px; }
  .stage { height: 400px; }
  .win-1 { width: 280px; left: -40px; top: 70px; }
  .win-2 { width: 264px; right: -40px; top: 120px; }
  .win-3 { width: 210px; height: 360px; }
  .pillars { padding: 72px 0 32px; }
  .pillar-grid { grid-template-columns: 1fr; }

  .case, .about, .contact-inner, .footer-inner { grid-template-columns: 1fr; gap: 44px; }
  .case-side { order: -1; max-width: 300px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }

  .nav-inner { height: 66px; gap: 16px; }
  .nav.is-scrolled .nav-inner { height: 60px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(253, 252, 250, .98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 22px;
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-inner > .btn { display: none; }

  .hero { padding: 104px 0 0; }
  .hero-kicker { margin-bottom: 22px; letter-spacing: 2px; }
  .hero-title { letter-spacing: -1px; margin-bottom: 22px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 16px; margin-bottom: 44px; }

  /* 手机端：主视觉缩小，两侧窗口只露一点边，突出中间的手 */
  .stage { height: 320px; }
  .stage-aura { width: 420px; height: 240px; }
  .win-1 { width: 220px; left: -80px; top: 60px; }
  .win-2 { width: 210px; right: -80px; top: 100px; }
  .win-3 { width: 176px; height: 300px; }
  .phone-screen { padding: 14px 12px; }
  .stage-note { font-size: 11px; letter-spacing: 1.2px; }

  .pillars { padding: 56px 0 24px; }
  .pillar { padding: 26px 22px 24px; }
  .section { padding: 76px 0; }
  .sec-head { margin-bottom: 40px; }
  .stats { margin-top: 52px; }
  .stats > div { padding: 22px 18px; }
  .case-grid { grid-template-columns: 1fr; gap: 24px; }

  /* 动态：宽屏是左右两栅，窄屏改成上下堆，日期在上 */
  .news-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .news-date {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .news-body h3 { font-size: 16.5px; }
  .fact { flex-direction: column; gap: 6px; }
  .fact b { text-align: left; }
  .contact-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; }
  .footer { padding: 56px 0 36px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}
