/* ============================================================
   XX科技有限公司 官网单页
   亮色 / 居中单页 / 单一强调色 / 无外部依赖
   颜色令牌集中在 :root，改主题只需动这里
   ============================================================ */

:root {
  --bg: #f5f4f1;
  --bg-deep: #eceae5;
  --line: rgba(24, 26, 22, 0.10);
  --text: #171a16;
  --text-muted: #5f645b;
  --text-dim: #8a8f86;
  --accent: #1f7a4d;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI",
    "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* 背景：柔和光晕 + 极细网格，避免大面积纯白/纯色 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 340px at 50% 24%, rgba(31, 122, 77, 0.10), transparent 72%),
    radial-gradient(900px 480px at 86% 92%, rgba(31, 122, 77, 0.05), transparent 70%),
    linear-gradient(180deg, #f8f7f4 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 68%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------------- 居中主体 ---------------- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 6vw, 56px) clamp(48px, 8vh, 88px);
}

.stage-title {
  margin: 0;
  font-size: clamp(1.75rem, 6.2vw, 4rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--text);
  max-width: 20em;
  word-break: break-word;
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* 标题下方强调线 */
.stage-title::after {
  content: "";
  display: block;
  width: clamp(48px, 8vw, 84px);
  height: 2px;
  margin: clamp(22px, 3.4vw, 34px) auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.9;
}

.stage-sub {
  margin: clamp(16px, 2.6vw, 24px) 0 0;
  font-family: var(--font-mono);
  font-size: clamp(12px, 2.4vw, 14px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s both;
}

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

/* ---------------- 页脚 ---------------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding-block: 22px 28px;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.copyright,
.legal {
  margin: 0;
}

.legal a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.sep {
  margin-inline: 8px;
  opacity: 0.6;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
  }

  .stage-title {
    letter-spacing: 0;
  }
}

/* 首次加个淡入，避免生硬；禁用动效时直接显示 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .stage-title,
  .stage-sub {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
