/* 通用配置：字体、页面颜色、主题变量与动效时长，PC / 手机共用。 */
:root {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', Arial, sans-serif;
  color: #171717;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --text-body: #8c8c8c;
  --text-muted: #a5a5a5;
  --placeholder-blue: #2475d8;
  --footer-background: #f8f7f4;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-distance: 24px;
  --reveal-duration: 700ms;
}
/* 基础重置：统一盒模型、默认间距、链接样式及键盘焦点提示。 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--placeholder-blue);
  outline-offset: 5px;
}
/* 通用图片：场景图铺满容器；关于我们、品牌和优势卡片各自保留布局比例。 */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--about,
.media--brand {
  aspect-ratio: 454 / 282;
}
.media--card {
  aspect-ratio: 356 / 240;
}
/* 页脚品牌标识：短横线、品牌名、品牌口号的通用排版。 */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-logo__mark {
  width: 23px;
  height: 4px;
  margin-bottom: 11px;
  background: currentColor;
}
.brand-logo__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.brand-logo__slogan {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
/* 页脚渠道码：保留正方形和完整图案；height: auto 避免 HTML 固有高度撑开容器。 */
.channel__code {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}
/* 预留二维码占位样式：后续缺少真实渠道码时可恢复使用。 */
.channel__placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1;
  gap: 2px;
  background: var(--placeholder-blue);
  color: #fff;
  font-size: 10px;
}
.channel__placeholder small {
  font-size: 9px;
}
.channel__mobile-size {
  display: none;
}
/* 页脚文字：渠道标签、版权及备案链接的通用样式。 */
.channel figcaption {
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}
.copyright {
  color: var(--text-muted);
  white-space: nowrap;
}
.copyright a:hover {
  text-decoration: underline;
}

/* 动效定义：模块淡入上移、首屏标题上移、品牌短横线展开。 */
@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 var(--reveal-distance);
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes hero-rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes hero-mark {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
/* 动效状态：main.js 在观察器注册后添加 pending，进入视口后切为 revealed。 */
.is-reveal-pending {
  opacity: 0;
}
.is-revealed {
  animation: reveal-up var(--reveal-duration) var(--motion-ease) var(--reveal-delay, 0ms) both;
}
/* 首屏动效：短横线、标题、口号依次出现，无需依赖滚动观察器。 */
.motion-hero-mark {
  transform-origin: left center;
  animation: hero-mark 700ms var(--motion-ease) 80ms both;
}
.motion-hero-title {
  animation: hero-rise 850ms var(--motion-ease) 180ms both;
}
.motion-hero-subtitle {
  animation: hero-rise 850ms var(--motion-ease) 320ms both;
}
/* 无障碍：系统开启“减少动态效果”时，取消动画并立即展示内容。 */
@media (prefers-reduced-motion: reduce) {
  .is-reveal-pending,
  .is-revealed,
  .motion-hero-mark,
  .motion-hero-title,
  .motion-hero-subtitle {
    opacity: 1;
    translate: none;
    animation: none;
  }
}
