/* Copyright (c) 2026 杭州星辰转智能科技有限公司. All rights reserved.
 * 软件名称：百辩AI软件
 * 版本号：V1.0
 */

:root {
  --text: #f7f8ff;
  --muted: #b8c0e0;
  --accent: #5a6bff;
  --accent-strong: #7f62ff;
  --panel-border: rgba(130, 146, 255, 0.24);
  --paper: rgba(10, 13, 28, 0.78);
  --shadow: 0 28px 80px rgba(4, 8, 24, 0.48);
  --action-space: 156px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  overflow: hidden;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(54, 92, 255, 0.26), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(114, 82, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #0a0c1c 0%, #080915 48%, #04050d 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  filter: blur(14px);
}

body::before {
  top: 12%;
  left: -6%;
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.24), rgba(90, 107, 255, 0));
  transform: rotate(-12deg);
}

body::after {
  right: -6%;
  bottom: 10%;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, rgba(255, 142, 76, 0.16), rgba(112, 83, 255, 0));
  transform: rotate(18deg);
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 24px));
  height: 100dvh;
  margin: 0 auto;
  padding: clamp(10px, 2.4vh, 22px) 0 calc(var(--action-space) + 18px);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.94fr);
  gap: clamp(18px, 2.8vw, 40px);
  height: 100%;
  padding: clamp(18px, 3vh, 30px) clamp(18px, 3vw, 34px) 0;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(17, 22, 49, 0.92), rgba(7, 9, 21, 0.98)),
    linear-gradient(180deg, rgba(90, 107, 255, 0.14), rgba(0, 0, 0, 0));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 107, 255, 0.34), rgba(90, 107, 255, 0));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 520px;
  padding-top: 4px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 14px 28px rgba(6, 8, 22, 0.32);
}

.brand-logo {
  width: 54px;
  height: 54px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(8, 11, 28, 0.24);
}

.brand-story {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-name {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand-note {
  margin: 0;
  color: rgba(233, 237, 255, 0.76);
  font-size: 14px;
  line-height: 1.4;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin: 16px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(98, 79, 255, 0.96), rgba(58, 164, 255, 0.92));
  box-shadow: 0 10px 24px rgba(44, 84, 255, 0.24);
  color: #f8f9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  max-width: 8.5ch;
  margin: 0 0 10px;
  font-size: clamp(34px, 3.8vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 20em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.48;
}

.scene-copy {
  max-width: 20em;
  margin: 8px 0 0;
  color: rgba(224, 229, 250, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.showcase-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.phone-glow {
  position: absolute;
  bottom: clamp(88px, 14vh, 160px);
  width: min(90%, 470px);
  height: min(62%, 560px);
  border-radius: 48px;
  background:
    radial-gradient(circle at 50% 20%, rgba(84, 103, 255, 0.52), transparent 42%),
    radial-gradient(circle at 68% 84%, rgba(128, 46, 255, 0.42), transparent 38%);
  filter: blur(34px);
}

.phone-shell {
  position: relative;
  height: clamp(520px, 74dvh, 820px);
  width: min(calc(clamp(520px, 74dvh, 820px) * 0.49), 408px);
  padding: 12px 9px 13px;
  border: 2px solid rgba(111, 121, 255, 0.94);
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f4fd 100%);
  box-shadow:
    0 0 0 3px rgba(122, 97, 255, 0.2),
    0 28px 72px rgba(4, 10, 30, 0.5);
  transform: translateY(clamp(48px, 7vh, 88px));
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 86px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #10121a;
}

.phone-screen {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 2400;
  margin-top: 8px;
  border-radius: 18px;
  object-fit: cover;
  object-position: top center;
}

.action-bar {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 30;
  width: min(920px, calc(100% - 16px));
  padding: 12px 14px 14px;
  border: 1px solid rgba(136, 151, 255, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(10, 12, 25, 0.92)),
    var(--paper);
  box-shadow: 0 22px 50px rgba(5, 10, 30, 0.42);
  backdrop-filter: blur(18px);
  text-align: center;
  transform: translateX(-50%);
}

.download-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 680px);
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(72, 88, 225, 0.32);
}

.download-button.is-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 248, 255, 0.72);
  box-shadow: none;
  cursor: not-allowed;
}

.download-hint {
  margin: 8px 0 0;
  color: #d6dbf9;
  font-size: 12px;
}

.support-copy {
  margin-top: 6px;
  color: rgba(225, 229, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.icp-link {
  display: inline-block;
  margin-top: 8px;
  color: rgba(225, 229, 255, 0.54);
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
}

.icp-link:hover {
  color: rgba(236, 240, 255, 0.82);
}

.legal-copy {
  margin-top: 4px;
  color: rgba(225, 229, 255, 0.48);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  :root {
    --action-space: 156px;
  }

  .page-shell {
    width: min(100% - 10px, 100%);
    padding-top: 6px;
    padding-bottom: calc(var(--action-space) + 10px);
  }

  .hero-card {
    gap: 6px;
    padding: 12px 12px 0;
    border-radius: 24px;
  }

  .hero-copy {
    width: 100%;
    padding-right: 0;
  }

  .brand-lockup {
    gap: 10px;
    margin-bottom: 10px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-note {
    font-size: 12px;
  }

  .hero-kicker {
    align-self: center;
    margin-top: 12px;
    padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .hero-copy h1 {
    max-width: none;
    margin-bottom: 6px;
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.06;
  }

  .lead {
    max-width: none;
    font-size: 12px;
    line-height: 1.42;
  }

  .scene-copy {
    max-width: none;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.4;
  }

  .showcase-panel {
    position: absolute;
    inset: auto 0 -14px;
    pointer-events: none;
  }

  .phone-glow {
    bottom: calc(var(--action-space) - 8px);
    width: 86vw;
    height: 42vh;
  }

  .phone-shell {
    height: clamp(470px, calc(100dvh - 270px), 760px);
    width: min(calc(clamp(470px, calc(100dvh - 270px), 760px) * 0.485), 84vw);
    max-width: 388px;
    padding: 11px 8px 12px;
    border-radius: 28px;
    transform: translateY(clamp(74px, 10vh, 96px));
  }

  .phone-notch {
    top: 8px;
    width: 78px;
    height: 10px;
  }

  .phone-screen {
    margin-top: 6px;
    border-radius: 16px;
  }

  .action-bar {
    width: calc(100% - 10px);
    padding: 10px 10px 12px;
    border-radius: 20px;
  }

  .download-button {
    min-height: 48px;
    font-size: 15px;
  }

  .download-hint,
  .support-copy {
    font-size: 10px;
  }

  .icp-link {
    margin-top: 6px;
    font-size: 9px;
  }

  .legal-copy {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.2;
  }
}

@media (max-width: 420px) {
  .hero-card {
    padding-inline: 10px;
  }

  .phone-shell {
    width: min(calc(clamp(470px, calc(100dvh - 270px), 760px) * 0.49), 86vw);
  }
}
