/* EchoTalk 官网 · 白紫主题
   色板沿用 App 的设计规范（Docs/设计规范/app-redesign-v1/design-system.md）：
   品牌紫 #7650B5，暖白底 #FAF8F5，浅紫面 #EEE8F6。 */

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;

  --bg: #fbf9fe;
  --surface: #ffffff;
  --ink: #26232b;
  --ink-2: #6b6672;
  --ink-3: #948b99;
  --line: #e6e1ea;
  --brand: #7650b5;
  --brand-strong: #5f3e9b;
  --brand-soft: #eee8f6;
  --brand-tint: #f5f0fa;
  --brand-line: rgba(118, 80, 181, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 24px 64px rgba(56, 36, 96, 0.12);
  --shadow-soft: 0 12px 36px rgba(56, 36, 96, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 110% -6%, rgba(167, 139, 250, 0.16), transparent 62%),
    radial-gradient(760px 480px at -8% 12%, rgba(201, 180, 240, 0.2), transparent 60%),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto; /* 宽高属性只作占位，实际尺寸跟随 CSS 宽度 */
}

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

button {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* ----- 顶部导航 ----- */

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 254, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(118, 80, 181, 0.1);
}

.navBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.brandLockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brandLockup__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(118, 80, 181, 0.24);
}

.brandLockup__text {
  display: grid;
  gap: 1px;
}

.brandLockup__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brandLockup__meta {
  font-size: 0.76rem;
  color: var(--ink-3);
}

.headerLinks {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.headerLinks a {
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: color 160ms ease;
}

.headerLinks a:hover {
  color: var(--brand-strong);
}

.navButton,
.storeButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease,
    border-color 200ms ease;
}

.navButton {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.navButton:hover {
  color: var(--brand-strong);
  border-color: var(--brand-line);
  transform: translateY(-1px);
}

/* ----- Hero ----- */

.hero {
  padding: 34px 0 20px;
}

.heroCard {
  display: grid;
  grid-template-columns: minmax(320px, 0.96fr) minmax(0, 1.04fr);
  gap: 40px;
  align-items: center;
  min-height: 680px;
  padding: 44px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(640px 400px at 16% 18%, rgba(167, 139, 250, 0.22), transparent 58%),
    radial-gradient(560px 380px at 88% 88%, rgba(201, 180, 240, 0.28), transparent 60%),
    linear-gradient(155deg, #f8f4fd 0%, #fdfcff 58%, #f7f2fc 100%);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.heroVisual {
  position: relative;
  min-height: 580px;
}

.heroPhones {
  position: absolute;
  inset: 0;
  width: 100%;
}

.heroPhones__shot {
  position: absolute;
  width: 42%;
  filter:
    drop-shadow(0 26px 34px rgba(56, 36, 96, 0.2))
    drop-shadow(0 6px 10px rgba(56, 36, 96, 0.12));
}

.heroPhones__shot--left {
  left: 0;
  top: 168px;
  transform: rotate(-9deg);
  z-index: 1;
}

.heroPhones__shot--center {
  left: 29%;
  top: 24px;
  width: 44%;
  z-index: 2;
}

.heroPhones__shot--right {
  right: 0;
  top: 150px;
  transform: rotate(8deg);
  z-index: 3;
}

.heroContent {
  position: relative;
  z-index: 1;
}

.eyebrow,
.sectionHeading__eyebrow,
.featureCard__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.heroTitle,
.sectionHeading__title,
.downloadCard__title {
  margin: 20px 0 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.heroTitle {
  font-size: clamp(2.6rem, 4.6vw, 4.3rem);
}

.heroDescription,
.sectionHeading__text,
.featureCard__description,
.downloadCard__text {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.9;
}

.heroDescription {
  max-width: 56ch;
  margin: 18px 0 0;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.storeButton {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1rem;
}

.storeButton--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 32px rgba(118, 80, 181, 0.32);
}

.storeButton--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(118, 80, 181, 0.38);
}

.storeButton--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.storeButton--ghost:hover {
  border-color: var(--brand-line);
  color: var(--brand-strong);
  transform: translateY(-2px);
}

.storeButton--ghost:disabled {
  cursor: not-allowed;
  color: var(--ink-3);
}

.storeButton--ghost:disabled:hover {
  transform: none;
  border-color: var(--line);
  color: var(--ink-3);
}

.metricStrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.metricPill {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--brand-line);
}

.metricPill__label {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metricPill__value {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ----- 通用区块 ----- */

.section {
  padding: 88px 0;
}

.sectionHeading {
  max-width: 780px;
  margin-bottom: 36px;
}

.sectionHeading__title {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.sectionHeading__text {
  margin: 16px 0 0;
  max-width: 64ch;
}

/* ----- 功能卡片 ----- */

.featureGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.featureCard {
  display: grid;
  position: relative;
  overflow: hidden;
  gap: 16px;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.featureCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(118, 80, 181, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.featureCard > * {
  position: relative;
  z-index: 1;
}

.featureCard__copy {
  display: grid;
  align-content: center;
  align-self: center;
  gap: 8px;
  padding: 34px;
}

.featureCard__kicker {
  width: fit-content;
  padding: 0;
  background: transparent;
  color: var(--brand);
}

.featureCard__title {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.featureCard__description {
  margin: 0;
  font-size: 0.98rem;
}

.featureCard__media {
  display: flex;
  padding: 0 28px;
}

.featureCard__shot {
  width: min(100%, 250px);
  filter:
    drop-shadow(0 22px 30px rgba(56, 36, 96, 0.18))
    drop-shadow(0 5px 9px rgba(56, 36, 96, 0.1));
}

.featureCard--media-left {
  grid-template-columns: 270px minmax(0, 1fr);
}

.featureCard--media-left .featureCard__media {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-end;
}

.featureCard--media-left .featureCard__shot {
  transform: translateY(14%);
}

.featureCard--media-left .featureCard__copy {
  grid-column: 2;
  grid-row: 1;
  padding-left: 0;
}

.featureCard--media-right {
  grid-template-columns: minmax(0, 1fr) 270px;
}

.featureCard--media-right .featureCard__media {
  grid-column: 2;
  grid-row: 1;
  align-items: flex-start;
}

.featureCard--media-right .featureCard__shot {
  transform: translateY(-14%);
}

.featureCard--media-right .featureCard__copy {
  grid-column: 1;
  grid-row: 1;
  padding-right: 0;
}

/* ----- 四步学习法 ----- */

.section--tint {
  background: linear-gradient(180deg, var(--brand-tint), var(--bg));
  border-top: 1px solid rgba(118, 80, 181, 0.08);
  border-bottom: 1px solid rgba(118, 80, 181, 0.08);
}

.methodSteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stepCard {
  display: grid;
  gap: 8px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stepCard__no {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.stepCard__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.stepCard__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.75;
}

.personaHeading {
  margin: 44px 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.personaGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.personaCard {
  display: grid;
  gap: 10px;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.personaCard__tag {
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.personaCard__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ----- 下载 ----- */

.download {
  padding-bottom: 96px;
}

.downloadCard {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  padding: 26px 24px 0;
}

.downloadCard__icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(118, 80, 181, 0.28);
}

.downloadCard__title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.downloadCard__text {
  max-width: 44ch;
  margin: 0;
}

.downloadCard .heroActions {
  justify-content: center;
  margin-top: 6px;
}

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

.siteFooter {
  border-top: 1px solid rgba(118, 80, 181, 0.1);
  background: var(--surface);
  padding: 40px 0 30px;
}

.siteFooter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.siteFooter__brand {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.siteFooter__brand .brandLockup__icon {
  width: 40px;
  height: 40px;
}

.siteFooter__tagline {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin: 0;
}

.siteFooter__colTitle {
  margin: 4px 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.siteFooter__links {
  display: grid;
  gap: 10px;
}

.siteFooter__links a {
  color: var(--ink-2);
  font-size: 0.94rem;
  width: fit-content;
}

.siteFooter__links a:hover {
  color: var(--brand-strong);
}

.siteFooter__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.82rem;
}

.siteFooter__beian a {
  color: var(--ink-3);
}

.siteFooter__beian a:hover {
  color: var(--brand-strong);
}

/* ----- 法律页 ----- */

.legalContent {
  max-width: 800px;
  padding: 64px 0 96px;
  color: var(--ink-2);
}

.legalContent h1 {
  color: var(--ink);
  font-size: 2.4rem;
  margin: 0 0 2.4rem;
  text-align: center;
}

.legalContent h2 {
  color: var(--ink);
  font-size: 1.4rem;
  margin: 2.8rem 0 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.legalContent h3 {
  color: var(--ink);
  font-size: 1.08rem;
  margin: 1.9rem 0 0.9rem;
}

.legalContent p {
  margin-bottom: 1.1rem;
  line-height: 1.9;
}

.legalContent ul {
  margin-bottom: 1.1rem;
  padding-left: 1.4rem;
}

.legalContent li {
  margin-bottom: 0.45rem;
}

.legalContent a {
  color: var(--brand-strong);
  text-decoration: underline;
}

.legalContent strong {
  color: var(--ink);
  font-weight: 600;
}

.legalNav {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.legalNav a {
  color: var(--ink-2);
  font-size: 0.94rem;
}

.legalNav a:hover {
  color: var(--brand-strong);
}

/* ----- 响应式 ----- */

@media (max-width: 1080px) {
  .heroCard {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px;
    gap: 32px;
  }

  /* 手机图按容器宽度缩放，容器高度跟随宽度，避免压住下方标题。 */
  .heroVisual {
    min-height: 0;
  }

  .heroPhones {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 5 / 7;
  }

  .featureGrid {
    grid-template-columns: 1fr;
  }

  .featureCard,
  .featureCard--media-left,
  .featureCard--media-right {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .featureCard--media-left .featureCard__media,
  .featureCard--media-right .featureCard__media {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    padding-top: 8px;
  }

  .featureCard--media-left .featureCard__copy,
  .featureCard--media-right .featureCard__copy {
    grid-column: 1;
    grid-row: 1;
    padding: 30px;
  }

  .featureCard--media-left .featureCard__shot,
  .featureCard--media-right .featureCard__shot {
    transform: none;
  }

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

  .siteFooter__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 32px);
  }

  .headerLinks {
    display: none;
  }

  .hero {
    padding-top: 20px;
  }

  .heroCard {
    padding: 24px;
  }

  .heroPhones__shot--left {
    display: none;
  }

  .heroPhones__shot--center {
    left: 4%;
    top: 30px;
    width: 52%;
  }

  .heroPhones__shot--right {
    right: 4%;
    top: 96px;
    width: 50%;
  }

  .section {
    padding: 64px 0;
  }

  .personaGrid {
    grid-template-columns: 1fr;
  }

  .downloadCard__icon {
    width: 78px;
    height: 78px;
  }

  .legalNav {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .heroActions,
  .metricStrip {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .storeButton {
    width: 100%;
  }

  .methodSteps {
    grid-template-columns: 1fr;
  }
}

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

  .navButton,
  .storeButton,
  .headerLinks a {
    transition: none;
  }
}
