:root {
  --bg-1: #0a1022;
  --bg-2: #141d38;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(42, 39, 54, 0.42);
  --panel-strong: rgba(72, 53, 32, 0.5);
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.76);
  --accent: #f6aa1c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body.is-loading .page {
  opacity: 0;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    var(--custom-bg-image, none),
    radial-gradient(circle at 15% 20%, rgba(116, 141, 255, 0.3), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(112, 180, 255, 0.2), transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(255, 176, 76, 0.12), transparent 30%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  background-size: cover, auto, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 32px,
      rgba(255, 255, 255, 0.025) 33px,
      transparent 34px
    );
  opacity: 0.45;
}

body::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px);
  background-size: 320px 320px;
  opacity: 0.4;
}

.background-layer,
.background-mask {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background-layer {
  background:
    radial-gradient(circle at left 60%, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at right 68%, rgba(255, 192, 120, 0.07), transparent 22%);
  filter: blur(20px);
}

.background-mask {
  background: rgba(8, 14, 32, 0.08);
}

.page {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px 20px 32px;
  opacity: 1;
  transition: opacity 160ms ease;
}

.hero {
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(15, 21, 44, 0.2));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  background-position: center;
  background-size: cover;
}

.avatar-image {
  color: transparent;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.28em;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  min-height: 186px;
  padding: 28px 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.quote-panel {
  background:
    linear-gradient(135deg, rgba(95, 105, 152, 0.22), rgba(255, 255, 255, 0.03)),
    rgba(34, 44, 73, 0.32);
  display: flex;
  flex-direction: column;
}

.time-panel,
.link-card {
  background:
    linear-gradient(135deg, rgba(138, 102, 55, 0.25), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.panel-kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  letter-spacing: 0.18em;
}

.quote {
  margin: 0;
  max-width: none;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.55;
  white-space: pre-line;
}

.quote-author {
  margin: auto 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.9vw, 24px);
  text-align: right;
  white-space: pre-line;
  width: 100%;
}

.date {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 1.8vw, 28px);
  text-align: center;
  line-height: 1.45;
}

.time {
  margin: 26px 0 0;
  text-align: center;
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.link-card {
  min-height: 126px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 170, 28, 0.55);
  background:
    linear-gradient(135deg, rgba(170, 121, 58, 0.3), rgba(255, 255, 255, 0.04)),
    rgba(88, 59, 28, 0.56);
}

.link-icon {
  font-size: 28px;
  line-height: 1;
}

.link-name {
  font-size: 30px;
  font-weight: 700;
}

.link-desc {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding-top: 24px;
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease;
}

.social:hover {
  transform: translateY(-3px);
  background: rgba(246, 170, 28, 0.22);
}

.social-mark {
  font-size: 22px;
}

.social-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-note {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

@media (max-width: 860px) {
  .page {
    padding: 16px 16px 28px;
  }

  .brand {
    align-items: flex-start;
  }

  .avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 28px;
  }

  .info-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 0;
    padding: 24px 22px;
    border-radius: 24px;
  }

  .link-card {
    min-height: 116px;
  }

  .link-name {
    font-size: 22px;
  }

  .quote-author {
    margin-top: 18px;
    text-align: left;
  }

  .time {
    white-space: normal;
  }
}
