/* ============================================================
   DiaRecap — 官方单页
   设计基调：深海军蓝 / 蓝黑底 + 蓝 → Mint 品牌光效
   只依赖系统字体与 CSS，不引入任何第三方资源
   ============================================================ */

/* ---------- 设计 Token ---------- */
:root {
  --bg: #080c13;
  --bg-deep: #060a10;
  --ink: #f2f6fa;
  --ink-dim: rgba(226, 235, 245, 0.64);
  --ink-faint: rgba(226, 235, 245, 0.56);
  --blue: #2e8bff;
  --mint: #35e3c0;
  --mint-soft: #7ff7d8;
  --line: rgba(255, 255, 255, 0.085);

  --page-max: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(84px, 9vw, 120px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.65, 0.2, 1);
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(46, 139, 255, 0.16), transparent 68%),
    radial-gradient(820px 560px at 102% 4%, rgba(53, 227, 192, 0.1), transparent 66%),
    radial-gradient(1100px 700px at 50% 104%, rgba(46, 139, 255, 0.1), transparent 70%);
}

main {
  flex: 1 0 auto;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: rgba(127, 247, 216, 0.28);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #0e1620;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

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

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(88px, 13vh, 136px) var(--gutter) clamp(64px, 9vh, 112px);
  overflow: hidden;
  isolation: isolate;
}

.hero__aura {
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(1120px, 132vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(46, 139, 255, 0.26) 0%,
    rgba(53, 227, 192, 0.1) 36%,
    rgba(8, 12, 19, 0) 68%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  text-align: center;
}

.hero__icon {
  display: block;
  width: clamp(88px, 7vw, 104px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 32px;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.5));
  animation: rise-in 0.9s var(--ease) both;
}

.hero__title {
  font-size: clamp(56px, 12vw, 104px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.84) 62%, rgba(206, 232, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
  animation: rise-in 1s var(--ease) 0.06s both;
}

.hero__tagline {
  margin-top: clamp(20px, 3vw, 26px);
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #fff;
  text-wrap: balance;
  animation: rise-in 1s var(--ease) 0.14s both;
}

.hero__lead {
  margin: 16px auto 0;
  max-width: 34em;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  color: var(--ink-dim);
  text-wrap: pretty;
  animation: rise-in 1s var(--ease) 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 40px);
  animation: rise-in 1s var(--ease) 0.3s both;
}

.hero__contact {
  margin-top: 22px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  animation: rise-in 1s var(--ease) 0.38s both;
}

.hero__contact a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero__contact a:hover {
  color: #fff;
  border-color: rgba(127, 247, 216, 0.6);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.btn--primary {
  color: #0e1620;
  background: linear-gradient(100deg, #89dcff 0%, #87fce8 100%);
  box-shadow: 0 18px 44px -20px rgba(135, 252, 232, 0.6);
}

.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 22px 52px -20px rgba(135, 252, 232, 0.72);
}

.btn--primary:active {
  transform: translateY(0) scale(0.99);
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn__apple {
  flex: none;
  margin-top: -2px;
}

/* 只在宽屏生效的换行 */
.only-wide {
  display: none;
}

@media (min-width: 860px) {
  .only-wide {
    display: initial;
  }
}

/* ---------- 版块通用 ---------- */
.section {
  padding: var(--section-y) var(--gutter);
}

.section--more {
  padding-top: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
}

/* ---------- 功能版块 ---------- */
.feature {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
}

.feature__title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #f4f8fc;
  text-wrap: balance;
}

.feature__body {
  margin-top: 22px;
  max-width: 30em;
  font-size: clamp(16px, 1.6vw, 17px);
  line-height: 1.92;
  color: var(--ink-dim);
  text-wrap: pretty;
}

@media (max-width: 919px) {
  .feature {
    max-width: 620px;
  }
}

@media (min-width: 920px) {
  .feature {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .feature--reverse .feature__media {
    order: -1;
  }
}

/* ---------- 产品截图 ---------- */
.feature__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 24px) 0;
}

.shot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  isolation: isolate;
}

.shot__glow {
  position: absolute;
  z-index: -1;
  width: min(560px, 112%);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(46, 139, 255, 0.26) 0%,
    rgba(53, 227, 192, 0.12) 44%,
    rgba(8, 12, 19, 0) 70%
  );
}

.shot__screen {
  display: block;
  width: clamp(248px, 24vw, 320px);
  height: auto;
  border-radius: clamp(34px, 3.2vw, 44px);
  background: #060a10;
  box-shadow:
    0 0 0 6px rgba(10, 15, 23, 0.9),
    0 0 0 7px rgba(255, 255, 255, 0.11),
    0 48px 90px -40px rgba(0, 0, 0, 0.95);
}

@media (max-width: 919px) {
  .shot__screen {
    width: min(78vw, 340px);
  }
}

/* ---------- 会后能力 ---------- */
.more {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.more__head {
  max-width: 660px;
}

.more__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #f4f8fc;
  text-wrap: balance;
}

.more__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: clamp(34px, 5vw, 54px) 0 0;
  padding: 0;
  list-style: none;
}

.more__item {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.more__item + .more__item {
  padding-top: 26px;
}

.more__item:last-child {
  border-bottom: 0;
}

.more__index {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(127, 247, 216, 0.62);
}

.more__item h3 {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #eef4f9;
}

.more__item p {
  margin-top: 10px;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-dim);
  text-wrap: pretty;
}

@media (min-width: 760px) {
  .more__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .more__item,
  .more__item + .more__item {
    padding: 0 clamp(18px, 2.6vw, 34px);
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .more__item:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .more__item:last-child {
    padding-right: 0;
  }
}

/* ---------- 结尾 CTA ---------- */
.closing {
  position: relative;
  padding: clamp(96px, 15vw, 190px) var(--gutter);
  overflow: hidden;
  text-align: center;
}

.closing__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(920px, 140vw);
  aspect-ratio: 1.7;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(46, 139, 255, 0.22) 0%,
    rgba(53, 227, 192, 0.1) 42%,
    rgba(8, 12, 19, 0) 72%
  );
}

.closing__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.closing__title {
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #f6fafd;
  text-wrap: balance;
}

.closing__accent {
  background: linear-gradient(92deg, #89dcff 0%, #87fce8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.closing__lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.7vw, 16.5px);
  line-height: 1.8;
  color: var(--ink-dim);
}

.closing__actions {
  margin-top: clamp(28px, 4vw, 36px);
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 16, 0.6);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 30px var(--gutter) 38px;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer__brand {
  font-weight: 600;
  color: rgba(226, 235, 245, 0.72);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer__links a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  color: rgba(226, 235, 245, 0.5);
}

/* ---------- 动效 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- 横屏手机 / 高度很小的窗口 ---------- */
@media (max-height: 620px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero__icon {
    width: 72px;
    margin-bottom: 22px;
  }

  .hero__title {
    font-size: 64px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero__icon {
    width: 56px;
    margin-bottom: 14px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__tagline {
    margin-top: 14px;
    font-size: 19px;
  }

  .hero__lead {
    display: none;
  }

  .hero__actions {
    margin-top: 18px;
  }
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 430px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------- 降低动效偏好 ---------- */
@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;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 文档页（隐私政策等） ---------- */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 132px) var(--gutter) clamp(72px, 10vw, 112px);
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(36px, 6vw, 56px);
  font-size: 13.5px;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.doc__back:hover {
  color: #fff;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #f4f8fc;
  text-wrap: balance;
}

.doc__lead {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.doc__note {
  margin-top: 34px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-dim);
}

.doc p + p {
  margin-top: 16px;
}

.doc a:not(.doc__back) {
  color: var(--mint-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 247, 216, 0.35);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.doc a:not(.doc__back):hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.doc__meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}
