/*
 * 展示页样式（2026-10-14 用户指定：直接模仿参考站的模块化首页，配色不受应用 RootSeek
 * 令牌约束；本页为独立静态页，不属于应用 UI，故此处为独立色板）。
 */
:root {
  --font-stack: 'HarmonyOS Sans', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
  /*
   * 展示字体（2026-10-14 用户要求更换）：高对比衬线做标题层，正文仍用系统黑体。
   * 不引 webfont（仓库禁远程 CDN、国内不可达），全部走各系统自带字形：
   * macOS 命中 Didot / Songti SC，Windows 命中 Georgia / SimSun，其余回落 serif。
   */
  --font-display:
    'Didot', 'Bodoni 72', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
  --ink: #0b1526;
  --ink-2: #4a5563;
  --ink-3: #6b7280;
  --blue: #1d5bf0;
  --green: #00c46a;
  --green-dark: #00a85a;
  --card-line: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  /* 移动端地址栏收起/展开时 100vh 偏高，优先用动态视口高度；不支持的浏览器回落 100vh。 */
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-stack);
  color: var(--ink);
  background:
    radial-gradient(58rem 30rem at 88% -6%, rgba(29, 91, 240, 0.14), transparent 62%),
    radial-gradient(48rem 26rem at 6% 104%, rgba(0, 196, 106, 0.14), transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, #f4f9f6 100%);
  background-attachment: fixed;
  /* 背景艺术字按最小 6rem 渲染，窄屏下两侧溢出会顶出横向滚动条；
     clip 不创建滚动容器，不影响顶栏 sticky。旧浏览器回落 hidden。 */
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
}

.brand__mark {
  display: block;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0 1.7rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 196, 106, 0.28);
  transition:
    background 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.cta:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 20px rgba(0, 168, 90, 0.32);
}

.cta:active {
  transform: translateY(1px);
}

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5vh 5rem;
  text-align: center;
}

.hero {
  position: relative;
}

/* 背景艺术字：描边空心大字，只做展示，不参与阅读顺序 */
.hero-ghost {
  position: absolute;
  left: 50%;
  top: -3.2rem;
  transform: translateX(-50%);
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(6rem, 17vw, 13rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(29, 91, 240, 0.16);
  pointer-events: none;
  user-select: none;
}

.hero-kicker,
.hero-title {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  animation: rise 0.5s ease-out both;
}

.hero-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: rise 0.5s ease-out 0.06s both;
}

/* 渐变艺术字 */
.grad {
  background: linear-gradient(92deg, var(--blue) 8%, var(--green) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 模块卡 ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  text-align: left;
}

.module {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 13.5rem;
  padding: 2.25rem;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(23, 58, 110, 0.08);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
  animation: rise 0.5s ease-out both;
}

.module:nth-child(1) {
  animation-delay: 0.16s;
}

.module:nth-child(2) {
  animation-delay: 0.24s;
}

.module:nth-child(3) {
  animation-delay: 0.32s;
}

.module:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(23, 58, 110, 0.14);
}

.module:active {
  transform: translateY(-1px);
}

.module__mark {
  position: absolute;
  right: 1.25rem;
  bottom: 0.75rem;
  width: 6.5rem;
  height: 6.5rem;
  color: var(--blue);
  opacity: 0.08;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.module h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--blue);
}

.module p {
  margin-top: 0.9rem;
  max-width: 24rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.module__action {
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue);
}

.module:hover .module__action,
.module:focus-visible .module__action {
  text-decoration: underline;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- 动效与响应式 ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero-title,
  .module {
    animation: none;
  }

  .module,
  .cta {
    transition: none;
  }
}

@media (max-width: 64rem) {
  .hero-ghost {
    top: -2rem;
    /* 窄屏降到与视口成比例的最小字号，避免首尾字母被大幅裁切。 */
    font-size: clamp(4.5rem, 18vw, 8rem);
  }

  /* iOS 对 fixed 背景有性能与渲染缺陷，窄屏改回随文档滚动。 */
  body {
    background-attachment: scroll;
  }

  .modules {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
    margin-inline: auto;
  }

  .module {
    min-height: 0;
    /* 低端移动设备省掉三层 backdrop-filter：改用更实的卡片底色保持可读性。 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.78);
  }
}
