:root {
  color-scheme: dark;
  --bg: #030816;
  --bg-2: #071527;
  --panel: rgba(7, 20, 38, 0.76);
  --panel-strong: rgba(9, 30, 54, 0.88);
  --line: rgba(83, 211, 255, 0.26);
  --line-strong: rgba(110, 236, 255, 0.58);
  --text: #eef8ff;
  --muted: #9bb5c9;
  --faint: #5f7890;
  --cyan: #37d9ff;
  --blue: #2d7dff;
  --green: #75ffb7;
  --warning: #ffcf66;
  --shadow: 0 24px 90px rgba(0, 8, 24, 0.62);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Avenir Next Condensed", "DIN Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(55, 217, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(45, 125, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 72% 86%, rgba(117, 255, 183, 0.12), transparent 30rem),
    linear-gradient(135deg, #030816 0%, #061226 44%, #020713 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(238, 248, 255, 0.035) 0,
    rgba(238, 248, 255, 0.035) 1px,
    transparent 1px,
    transparent 7px
  );
  mix-blend-mode: screen;
  opacity: 0.18;
}

a {
  color: inherit;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(83, 211, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 211, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 46%, rgba(117, 255, 183, 0.14) 46% 46.2%, transparent 46.2%),
    linear-gradient(0deg, transparent 0 62%, rgba(55, 217, 255, 0.11) 62% 62.2%, transparent 62.2%);
  background-size: 52px 52px, 52px 52px, 360px 360px, 420px 420px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.38), transparent 92%);
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(55, 217, 255, 0.11) 42.2%, transparent 42.6%),
    linear-gradient(155deg, transparent 0 64%, rgba(117, 255, 183, 0.08) 64.2%, transparent 64.5%);
  opacity: 0.82;
}

.orb {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.32;
  animation: drift 13s ease-in-out infinite alternate;
}

.orb-a {
  top: -21rem;
  left: -14rem;
  background: radial-gradient(circle, rgba(55, 217, 255, 0.74), transparent 62%);
}

.orb-b {
  right: -18rem;
  bottom: -4rem;
  background: radial-gradient(circle, rgba(45, 125, 255, 0.68), transparent 64%);
  animation-delay: -5s;
}

.grid-light {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -16%;
  height: 44%;
  background:
    linear-gradient(rgba(55, 217, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 217, 255, 0.3) 1px, transparent 1px);
  background-size: 64px 34px;
  transform: perspective(580px) rotateX(64deg);
  transform-origin: center bottom;
  opacity: 0.22;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.hero-copy,
.card,
.share-card {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(9, 30, 54, 0.92), rgba(3, 12, 28, 0.74)),
    linear-gradient(90deg, rgba(55, 217, 255, 0.08), rgba(117, 255, 183, 0.04));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(238, 248, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hero-copy::before,
.card::before,
.share-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(55, 217, 255, 0.7), transparent 32%, rgba(117, 255, 183, 0.5));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-copy {
  min-height: 168px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: clamp(20px, 5vw, 48px);
  bottom: clamp(14px, 3vw, 32px);
  width: min(24vw, 240px);
  height: min(24vw, 240px);
  border: 1px solid rgba(55, 217, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(55, 217, 255, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(55, 217, 255, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%);
  opacity: 0.3;
  pointer-events: none;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  padding: 0.08em 0 0.14em;
  color: transparent;
  background: linear-gradient(92deg, #f4fbff 0%, var(--cyan) 54%, var(--green) 100%);
  background-clip: text;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 0 34px rgba(55, 217, 255, 0.26);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.02;
}

h3 {
  margin-bottom: 0;
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.35;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 30px;
}

.card {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-xl);
}

.next-card {
  overflow: hidden;
}

.next-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background:
    radial-gradient(circle at 72% 34%, rgba(55, 217, 255, 0.28), transparent 26%),
    repeating-linear-gradient(
      135deg,
      rgba(238, 248, 255, 0.07) 0,
      rgba(238, 248, 255, 0.07) 1px,
      transparent 1px,
      transparent 14px
    );
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.46;
  pointer-events: none;
}

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

.next-card p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.module-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 6px 11px;
  border: 1px solid rgba(117, 255, 183, 0.34);
  border-radius: 999px;
  color: var(--green);
  background: rgba(117, 255, 183, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 24px;
}

.detail-list div {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(83, 211, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(3, 12, 28, 0.46);
  overflow: hidden;
}

.detail-list div::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(55, 217, 255, 0.9);
}

.detail-list dt {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 0.82rem;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1.5;
}

.primary-action,
.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(55, 217, 255, 0.58);
  border-radius: 999px;
  color: #02101f;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 26px rgba(55, 217, 255, 0.2);
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.primary-action:hover,
.share-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(55, 217, 255, 0.34);
}

.primary-action.is-disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(9, 30, 54, 0.7);
  border-color: rgba(83, 211, 255, 0.22);
  box-shadow: none;
}

.primary-action.is-disabled:hover {
  transform: none;
}

.history-section {
  padding-top: 4px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 0;
}

.share-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.share-card {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(8, 26, 48, 0.88), rgba(3, 12, 28, 0.78)),
    linear-gradient(90deg, rgba(55, 217, 255, 0.055), rgba(117, 255, 183, 0.025));
  box-shadow: 0 18px 62px rgba(0, 8, 24, 0.44), inset 0 1px 0 rgba(238, 248, 255, 0.06);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.share-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(55, 217, 255, 0.2);
  transform: rotate(45deg);
  opacity: 0.42;
}

.share-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 22px 70px rgba(0, 8, 24, 0.58), 0 0 24px rgba(55, 217, 255, 0.11);
}

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

.share-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(83, 211, 255, 0.24);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 12, 28, 0.5);
  font-size: 0.84rem;
  font-weight: 900;
}

.speaker {
  color: var(--green);
}

.share-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.share-number {
  color: rgba(83, 211, 255, 0.2);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(55, 217, 255, 0.22);
}

[hidden] {
  display: none !important;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(4rem, 3rem, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .card,
  .share-card {
    animation: rise-in 560ms ease both;
  }

  .share-card:nth-child(2) {
    animation-delay: 80ms;
  }

  .share-card:nth-child(3) {
    animation-delay: 150ms;
  }

  .share-card:nth-child(4) {
    animation-delay: 220ms;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .shell {
    width: min(100% - 28px, 720px);
    padding: 28px 0 40px;
  }

  .share-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 520px);
  }

  .hero-copy {
    min-height: 156px;
    padding: 28px;
  }

  .hero-copy::after {
    width: 160px;
    height: 160px;
    opacity: 0.18;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.9rem);
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .section-title-row,
  .share-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action,
  .share-link {
    width: 100%;
  }
}
