/*
 * 莱迎（重庆）游戏科技有限公司 官网样式（多页面共用）
 * 主题取自 SpCode 浅色主题：浅灰底 #e8ebf0、面板 #f8f9fc、深墨 #171923、
 * 强调红 #d92340、亮红 #ff3855、淡粉 #ffe4e7；统一 2px 墨线与 5px 硬投影，全站不用颜色渐变。
 * 页面清单：index（首页）、business（业务）、news（资讯列表）、三篇文章页、about（关于）、privacy（隐私政策）。
 * 区块顺序：变量 -> 基础 -> 按钮 -> 头部 -> 品牌标识 -> 首屏 -> 业务 -> 资讯卡片 -> 内页标题 -> 文章页 -> 隐私页 -> 页脚 -> 响应式 -> 动效降级。
 */

:root {
  --ink: #171923;          /* 主文字与描边墨色 */
  --ink-soft: #3d404b;     /* 次要正文，浅底上仍有强对比 */
  --ink-muted: #5a5e6b;    /* 小号辅助文字 */
  --accent: #d92340;       /* 主强调红，配白字 */
  --accent-bright: #ff3855;/* 聚焦圈用亮红 */
  --pink: #ffe4e7;         /* 淡粉平涂 */
  --paper: #f8f9fc;        /* 面板浅底 */
  --gray: #e8ebf0;         /* 首屏与内页标题区浅灰底 */
  --white: #ffffff;
  --line: 2px solid var(--ink);
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-lg: 7px 7px 0 var(--ink);
  --wrap-max: 1280px;
  --header-h: 72px;
}

/* ---------- 基础 ---------- */

* {
  box-sizing: border-box;
}

html {
  /* 锚点跳转带一点过渡，减少“瞬移”感；降级在文件末尾处理 */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  /* 硬投影会略微向右下溢出，这里兜底避免窄屏出现横向滚动条 */
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 800;
}

p {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg {
  max-width: 100%;
}

/* 内容容器：最大 1280px，两侧留舒适空隙 */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* 键盘聚焦统一给一圈亮红描边，位置偏移避免被 2px 墨线吃掉 */
:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

/* 跳到主要内容：只在获得焦点时出现 */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow-hard);
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 按钮：墨线 + 硬投影，悬停靠位移与投影收缩表达状态 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-solid {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-hard);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
}

/* 按下感：向前顶 2px 并收掉投影，视觉上“落到纸面上” */
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn:active {
  transform: translate(5px, 5px);
  box-shadow: none;
}

.btn-small {
  padding: 11px 16px;
  font-size: 0.86rem;
}

/* ---------- 头部 ---------- */

.site-header {
  position: relative;
  background: var(--white);
  border-bottom: var(--line);
  /* 桌面头部总高 72px：用 border-box 把下方 2px 墨线算进高度，内容区实际 70px */
  box-sizing: border-box;
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

/* 品牌：四叶标识 + 中英文小字标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

/* 主导航：桌面横向排列，当前页用红字 + 2px 红下划线标记 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s ease;
}

.nav-link:hover::after,
.nav-link[aria-current]::after {
  transform: scaleX(1);
}

.nav-link[aria-current] {
  color: var(--accent);
}

/* 头部右端的硬投影按钮，尺寸略小于正文按钮以保持一行高度 */
.btn-nav {
  padding: 11px 18px;
  font-size: 0.9rem;
}

/* 移动端折叠按钮：桌面隐藏，图标由两条横线变形为叉 */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: var(--line);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.menu-toggle-bars i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.16s ease, top 0.16s ease;
}

.menu-toggle-bars i:first-child {
  top: 0;
}

.menu-toggle-bars i:last-child {
  top: 10px;
}

/* 展开时两条横线交叉成叉，形状差异明确（不只靠颜色） */
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

/* ---------- 品牌标识：四叶图形 ---------- */

/* 墨线方框内放四叶图形（两片斜上、两片向左右），红白双色配硬投影，保持编辑器海报语汇 */
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: var(--line);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  flex: 0 0 auto;
}

/* 四叶图形尺寸由这里控制，叶片形状与颜色写在页面里的内联 SVG 中 */
.brand-mark svg {
  display: block;
  width: 26px;
  height: 26px;
}

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

/* 浅灰底 + 极淡均匀点阵：用内联 SVG 圆点铺 20px 网格，纯本地、无渐变 */
.hero {
  background-color: var(--gray);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23171923' fill-opacity='0.10'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border-bottom: var(--line);
  padding: 72px 0 84px;
}

/* 首屏单列：文案组收窄到易读行宽并整体水平居中，左右留白由 .wrap 负责 */
.hero-grid {
  max-width: 860px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: var(--line);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

/* 标记前的小红方块，与四叶里的红片同一语汇 */
.eyebrow-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* 超大中文重字标题：两行，第二行红字；clamp 保证 390px 窄屏也不溢出 */
.hero-title {
  margin: 22px 0 0;
  font-size: clamp(2.4rem, 5.6vw, 5.125rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  color: var(--accent);
}

/* 简介段落：限制行长，用 margin 左右 auto 跟着单列布局居中 */
.hero-lede {
  max-width: 34em;
  margin: 22px auto 0;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 两个主要入口按钮：单列布局下在文案组正下方居中排列，窄屏自动换行 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- 首页区块通用 ---------- */

.services {
  background: var(--white);
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

/* 低调的英文副标题：小号、加字距、灰色，只作一条节奏线，不抢中文标题 */
.section-en {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* 区块右上角的“看全部”入口，与标题同一行 */
.section-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.section-more:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- 业务卡片 ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

/* 第二张换成淡粉平涂，两张卡在白/粉之间可直接区分 */
.service-card--news {
  background: var(--pink);
}

.service-card h3 {
  font-size: 1.42rem;
}

.service-card p {
  color: var(--ink-soft);
}

.service-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
}

.service-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* 描边小图形：四叶轮廓，直接复用品牌形状（业务一） */
.service-mark {
  position: relative;
  width: 96px;
  height: 88px;
}

.mark-mini {
  width: 78px;
  height: 78px;
}

/* 描边小图形：交叠纸页（业务二） */
.sheet {
  position: absolute;
  display: block;
  border: var(--line);
  background: var(--white);
}

.sheet-back {
  left: 8px;
  top: 6px;
  width: 54px;
  height: 44px;
}

.sheet-front {
  left: 18px;
  top: 16px;
  width: 58px;
  height: 50px;
  padding: 10px 9px;
}

/* 纸页上的两行文字线，长短不同，看起来像正文 */
.sheet-line {
  display: block;
  height: 3px;
  background: var(--ink);
  margin-bottom: 7px;
}

.sheet-line--short {
  width: 60%;
  background: var(--accent);
}

/* ---------- 资讯卡片（首页摘要与资讯列表共用） ---------- */

.news {
  background: var(--paper);
  border-top: var(--line);
  padding: 88px 0;
}

.section-head--split {
  align-items: center;
}

/* 分类按钮组：未选中白底墨线带投影，选中红底白字且投影收起，状态差异明显 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  padding: 9px 16px;
  border: var(--line);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.filter:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--accent);
  color: var(--white);
  box-shadow: none;
  transform: translate(3px, 3px);
}

/* 筛选结果播报，同时给一条可见的短说明 */
.filter-status {
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.post {
  display: flex;
}

.post-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

/* 类别标签：开发札记用淡粉，行业观察用浅灰，文字本身也不同 */
.post-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border: var(--line);
  background: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.post-tag--industry {
  background: var(--gray);
}

.post-title {
  font-size: 1.24rem;
  line-height: 1.3;
}

/* 卡片标题本身就是进文章页的链接 */
.post-title a {
  color: var(--ink);
}

.post-title a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.post-summary {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.post-foot {
  margin-top: auto;
  padding-top: 8px;
}

/* 被分类隐藏的条目用 hidden 属性真正移除，必须压过 display:flex */
[hidden] {
  display: none !important;
}

/* ---------- 内页标题区（业务 / 资讯 / 关于 / 文章 / 隐私共用） ---------- */

.page-head {
  background-color: var(--gray);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23171923' fill-opacity='0.10'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border-bottom: var(--line);
  padding: 56px 0 52px;
}

.page-head h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

/* 内页引子：一行到两行，说明这一页讲什么 */
.page-lede {
  max-width: 44em;
  margin-top: 16px;
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 面包屑：小号、墨色弱，链接带下划线表明可点 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.crumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-muted);
}

.crumbs a:hover {
  color: var(--accent);
}

/* 面包屑分隔符用文字“/”，不额外加图形 */
.crumbs-sep {
  color: var(--ink-muted);
}

/* ---------- 业务页：两块业务各成一段 ---------- */

.business-main {
  background: var(--white);
  padding: 72px 0 88px;
}

.business-block {
  padding: 34px;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.business-block + .business-block {
  margin-top: 34px;
}

/* 第二块用淡粉平涂，和第一块在浅色上就能分开 */
.business-block--alt {
  background: var(--pink);
}

.business-block h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 12px;
}

.business-block > p {
  max-width: 46em;
  color: var(--ink-soft);
}

.business-block > p + p {
  margin-top: 12px;
}

/* 要点网格：四类工作一眼看清，每格独立墨线框 */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-item {
  padding: 16px 18px;
  border: var(--line);
  background: var(--white);
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* 业务页底部：两组继续阅读按钮 */
.business-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

/* ---------- 文章页 ---------- */

.article-main {
  background: var(--paper);
  border-top: var(--line);
  padding: 64px 0 88px;
}

.article-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.article-head {
  margin-bottom: 24px;
}

.article-card h1 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.28;
}

/* 正文行长限制在 40em 内，避免长行难读 */
.article-body {
  max-width: 40em;
}

.article-body p {
  margin-bottom: 15px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 1.18rem;
}

/* 正文里的项目符号列表 */
.article-body ul {
  margin-bottom: 15px;
  padding-left: 1.4em;
  list-style: disc;
  color: var(--ink-soft);
}

.article-body li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.85;
}

/* 提示块：左侧红竖条，用来标出最容易被忽略的判断 */
.article-note {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--paper);
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* 文章底部：返回列表与相邻文章 */
.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 25, 35, 0.16);
}

.article-next {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.article-next:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* 文章页下方继续阅读：两张小卡 */
.article-more {
  max-width: 880px;
  margin: 34px auto 0;
}

.article-more h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* ---------- 关于页 ---------- */

.about {
  background: var(--white);
  border-top: var(--line);
  padding: 72px 0 88px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 18px;
}

.about-copy p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* 公司信息卡：淡粉底 + 墨线，与地址、名称等可核对信息放一起 */
.about-card {
  padding: 26px;
  border: var(--line);
  background: var(--pink);
  box-shadow: var(--shadow-hard);
}

.about-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.about-list {
  margin: 0;
}

.about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(23, 25, 35, 0.2);
}

.about-row:first-child {
  border-top: none;
  padding-top: 0;
}

.about-row dt {
  flex: 0 0 76px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.about-row dd {
  flex: 1 1 180px;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
}

/* ---------- 隐私政策页 ---------- */

.legal-main {
  background: var(--paper);
  border-top: var(--line);
  padding: 64px 0 88px;
}

.legal-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

/* 生效说明：左侧红竖条标记，只说明范围与版本口径 */
.legal-updated {
  margin: 14px 0 8px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.legal-body section {
  padding: 22px 0;
  border-top: 1px solid rgba(23, 25, 35, 0.16);
}

/* 每节标题前加一个小红方块，与首屏标记同语汇 */
.legal-body h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.legal-body h2::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.legal-body p {
  margin-bottom: 10px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.legal-body p:last-child {
  margin-bottom: 0;
}

/* 法务正文恢复项目符号列表，便于逐条阅读 */
.legal-body ul {
  padding-left: 1.4em;
  list-style: disc;
  color: var(--ink-soft);
}

.legal-body li {
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.8;
}

/* 隐私页底部：返回入口与说明并排 */
.legal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 25, 35, 0.16);
}

.legal-foot-note {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

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

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 44px 0;
  border-top: var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-en {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-addr {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

/* 页脚导航：每页都能直达业务、资讯、关于与隐私政策 */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
}

.footer-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-link:hover {
  color: var(--pink);
}

/* 返回顶部：白线描边按钮，与正文按钮同一套硬边语言 */
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease;
}

.footer-top:hover {
  background: var(--white);
  color: var(--ink);
}

/* ---------- 响应式：960px 转单列，860px 收起导航，760px 收紧留白 ---------- */

@media (max-width: 1024px) {
  .site-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .btn-nav {
    padding: 10px 14px;
    font-size: 0.84rem;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 56px 0 64px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  /* 折叠导航：绝对定位在头部下方，展开时白底墨线覆盖内容，不影响页面占位 */
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--white);
    border-bottom: var(--line);
    box-shadow: 0 5px 0 var(--ink);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(23, 25, 35, 0.16);
    font-size: 1rem;
  }

  /* 折叠态的下划线标记改用左侧红条，避免与分隔线重叠 */
  .nav-link::after {
    left: -12px;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 4px;
    height: 18px;
    margin-top: -9px;
    transform: none;
    opacity: 0;
  }

  .nav-link[aria-current]::after {
    opacity: 1;
  }

  .nav-link:hover::after {
    opacity: 0.45;
  }

  .btn-nav {
    justify-content: center;
    margin-top: 16px;
    padding: 13px 18px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 40px 0 52px;
  }

  .services,
  .news,
  .about,
  .business-main,
  .article-main,
  .legal-main {
    padding: 56px 0;
  }

  .page-head {
    padding: 40px 0 36px;
  }

  .service-grid,
  .feature-list,
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 26px;
  }

  .business-block,
  .article-card,
  .legal-card {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 420px) {
  /* 极窄屏头部略矮：总高 64px（含下方 2px 墨线） */
  .site-header {
    height: 64px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark svg {
    width: 23px;
    height: 23px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text span {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  /* 极窄屏把首屏两个按钮排成整行，点击区域更稳 */
  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .section-head h2 {
    font-size: 1.7rem;
  }
}

/* ---------- 动效降级：系统开启“减少动态效果”时不位移、不播放过渡 ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .btn:hover,
  .filter:hover {
    transform: none;
  }
}
