:root {
  --paper: #f8fbfb;
  --paper-deep: #edf4f4;
  --ink: #17212b;
  --muted: #677684;
  --line: rgba(31, 54, 68, 0.13);
  --cyan: #75c7d9;
  --blue: #2f75a8;
  --green: #6f9b79;
  --gold: #c5a15b;
  --coral: #dc7e6e;
  --shadow: 0 24px 80px rgba(46, 75, 92, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 12%, rgba(130, 199, 217, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(197, 161, 91, 0.16), transparent 24rem),
    linear-gradient(180deg, #fbfdfd 0%, var(--paper) 42%, #eef5f2 100%);
  color: var(--ink);
  font-family:
    "Noto Serif SC",
    "Source Han Serif SC",
    "Songti SC",
    "PingFang SC",
    serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(35, 58, 69, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 58, 69, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.66), transparent 82%);
}

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

img,
canvas {
  display: block;
  max-width: 100%;
}

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

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

.orbit {
  position: absolute;
  border: 1px solid rgba(60, 107, 130, 0.13);
  border-radius: 50%;
  transform-origin: center;
  animation: rotateSlow 42s linear infinite;
}

.orbit::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: rgba(197, 161, 91, 0.72);
  box-shadow: 0 0 24px rgba(197, 161, 91, 0.44);
}

.orbit-one {
  top: 9vh;
  right: 9vw;
  width: 320px;
  height: 320px;
}

.orbit-one::after {
  top: 54px;
  left: 32px;
}

.orbit-two {
  bottom: 20vh;
  left: -120px;
  width: 440px;
  height: 440px;
  animation-duration: 58s;
  animation-direction: reverse;
}

.orbit-two::after {
  right: 88px;
  bottom: 34px;
  background: rgba(117, 199, 217, 0.76);
}

.drift {
  position: absolute;
  width: 30vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 117, 168, 0.18), transparent);
  transform: rotate(-13deg);
  animation: driftLine 18s ease-in-out infinite;
}

.drift-one {
  top: 28vh;
  left: 12vw;
}

.drift-two {
  right: 8vw;
  bottom: 24vh;
  animation-delay: -8s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 12px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
}

.brand > span:last-child {
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(47, 117, 168, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 30px rgba(51, 91, 107, 0.1);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(34, 63, 76, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 40px rgba(52, 80, 91, 0.08);
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #435462;
  font-size: 13px;
  transition: background 220ms ease, color 220ms ease;
}

.nav-links a:hover {
  background: rgba(117, 199, 217, 0.16);
  color: #173344;
}

/* 登录按钮样式 */
.nav-links .login-link {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(47, 117, 168, 0.2);
}

.nav-links .login-link:hover {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 4px 16px rgba(47, 117, 168, 0.3);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.15fr);
  gap: clamp(24px, 4vw, 58px);
  min-height: calc(100vh - 88px);
  padding: clamp(30px, 5vw, 78px) 0 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.kicker,
.eyebrow,
.section-head p {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.particle-title-wrap {
  position: relative;
  width: min(100%, 580px);
  height: clamp(124px, 18vw, 206px);
  margin-left: -8px;
  cursor: crosshair;
}

#particleTitle {
  width: 100%;
  height: 100%;
}

.particle-title-wrap::after {
  position: absolute;
  right: 7%;
  bottom: 16%;
  width: 120px;
  height: 34px;
  content: "";
  border-top: 1px solid rgba(197, 161, 91, 0.5);
  border-bottom: 1px solid rgba(117, 199, 217, 0.28);
  transform: rotate(-5deg);
  opacity: 0.65;
  animation: breathe 4.8s ease-in-out infinite;
}

.hero-deck {
  max-width: 620px;
  margin: 6px 0 28px;
  color: #3f4f5d;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.86;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.primary-link {
  background: #172c3a;
  color: #fff;
  box-shadow: 0 14px 36px rgba(23, 44, 58, 0.22);
}

.secondary-link {
  border: 1px solid rgba(23, 44, 58, 0.14);
  background: rgba(255, 255, 255, 0.64);
  color: #223746;
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 54, 68, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 45%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: min(62vh, 620px);
  min-height: 420px;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #335061;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.status-chip {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  min-width: 116px;
  padding: 11px 13px;
  border: 1px solid rgba(34, 63, 76, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(46, 75, 92, 0.11);
  backdrop-filter: blur(16px);
  animation: floatSoft 8s ease-in-out infinite;
}

.status-chip span {
  color: var(--muted);
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-chip strong {
  color: #1f3544;
  font-size: 20px;
  font-weight: 600;
}

.chip-pages {
  top: 18%;
  right: 38%;
}

.chip-entities {
  right: 3%;
  bottom: 20%;
  animation-delay: -2s;
}

.chip-daily {
  left: 6%;
  bottom: 14%;
  animation-delay: -4s;
}

.edition-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 20px 0 clamp(58px, 8vw, 96px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.edition-strip article {
  min-height: 112px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.edition-strip span,
.topic-card span,
.daily-card span,
.note-card span {
  display: block;
  color: var(--muted);
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.edition-strip strong {
  display: block;
  margin-top: 16px;
  color: #203748;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.15;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}

.section-head h2,
.daily-section h2 {
  margin: 0;
  color: #172b39;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(58px, 8vw, 102px);
}

.topic-card {
  position: relative;
  min-height: 242px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(31, 54, 68, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 60px rgba(56, 84, 98, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.topic-card::before {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(47, 117, 168, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(117, 199, 217, 0.22)), transparent 65%);
}

.topic-card:hover {
  border-color: rgba(47, 117, 168, 0.28);
  box-shadow: 0 22px 68px rgba(42, 75, 91, 0.12);
  transform: translateY(-4px);
}

.topic-card h3,
.daily-card h3,
.note-card h3 {
  position: relative;
  margin: 46px 0 14px;
  color: #182d3b;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.22;
}

.topic-card p,
.daily-card p,
.note-card p {
  position: relative;
  margin: 0;
  color: #536371;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

.topic-ai {
  --card-glow: rgba(117, 199, 217, 0.32);
}

.topic-energy {
  --card-glow: rgba(111, 155, 121, 0.3);
}

.topic-compute {
  --card-glow: rgba(197, 161, 91, 0.28);
}

.topic-network {
  --card-glow: rgba(47, 117, 168, 0.22);
}

.topic-epc {
  --card-glow: rgba(220, 126, 110, 0.2);
}

.topic-air {
  --card-glow: rgba(143, 182, 198, 0.28);
}

.daily-section {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: clamp(22px, 5vw, 72px);
  align-items: stretch;
  margin-bottom: clamp(58px, 8vw, 102px);
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(31, 54, 68, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(234, 246, 247, 0.66)),
    radial-gradient(circle at 12% 18%, rgba(197, 161, 91, 0.13), transparent 34rem);
  box-shadow: var(--shadow);
}

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

.daily-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(31, 54, 68, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 260ms ease, border-color 260ms ease;
}

.daily-card:hover {
  border-color: rgba(197, 161, 91, 0.32);
  transform: translateY(-4px);
}

.daily-card h3 {
  margin-top: 64px;
}

.daily-fable {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 248, 242, 0.62)),
    radial-gradient(circle at 84% 16%, rgba(220, 126, 110, 0.16), transparent 15rem);
}

.masonry {
  column-count: 3;
  column-gap: 16px;
  margin-bottom: clamp(58px, 8vw, 102px);
}

.note-card {
  display: inline-block;
  width: 100%;
  min-height: 220px;
  margin: 0 0 16px;
  padding: 22px;
  break-inside: avoid;
  border: 1px solid rgba(31, 54, 68, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 42px rgba(50, 82, 94, 0.07);
}

.note-card.tall {
  min-height: 310px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(235, 246, 246, 0.7)),
    radial-gradient(circle at 88% 18%, rgba(117, 199, 217, 0.2), transparent 14rem);
}

.note-card.wide {
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 244, 232, 0.5)),
    radial-gradient(circle at 82% 22%, rgba(197, 161, 91, 0.18), transparent 14rem);
}

.note-card h3 {
  margin-top: 36px;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  margin-bottom: 46px;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-panel p {
  margin: 0;
  color: #3d4f5f;
  font-size: 18px;
  line-height: 1.88;
}

.about-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(23, 44, 58, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #213746;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.sound-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(34, 63, 76, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(44, 72, 86, 0.14);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.sound-toggle span,
.sound-toggle span::before,
.sound-toggle span::after {
  display: block;
  width: 4px;
  border-radius: 99px;
  background: #2f75a8;
  content: "";
}

.sound-toggle span {
  position: relative;
  height: 15px;
}

.sound-toggle span::before,
.sound-toggle span::after {
  position: absolute;
  bottom: 0;
}

.sound-toggle span::before {
  left: -8px;
  height: 9px;
}

.sound-toggle span::after {
  right: -8px;
  height: 20px;
  background: var(--gold);
}

.sound-toggle.is-muted {
  opacity: 0.5;
}

.sound-toggle.is-playing {
  border-color: rgba(47, 117, 168, 0.24);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 16px 40px rgba(44, 72, 86, 0.14),
    0 0 0 7px rgba(117, 199, 217, 0.12);
}

.sound-toggle.is-muted::after {
  position: absolute;
  width: 24px;
  height: 1px;
  content: "";
  background: #172c3a;
  transform: rotate(-38deg);
}

@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes driftLine {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(-2vw, 0, 0) rotate(-13deg);
  }
  50% {
    opacity: 0.72;
    transform: translate3d(4vw, -2vh, 0) rotate(-13deg);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.48;
    transform: rotate(-5deg) scaleX(0.94);
  }
  50% {
    opacity: 0.86;
    transform: rotate(-5deg) scaleX(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .hero-section,
  .daily-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual img {
    height: 52vh;
    min-height: 340px;
  }

  .chip-pages {
    top: 22%;
    right: auto;
    left: 4%;
  }

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

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
  }

  .brand {
    max-width: calc(100vw - 60px);
  }

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

  .brand small {
    max-width: 205px;
    overflow: hidden;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links {
    display: none;
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  .hero-section {
    padding-top: 20px;
  }

  .particle-title-wrap {
    height: 124px;
    margin-left: 0;
  }

  .kicker {
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1.5;
  }

  .hero-deck {
    font-size: 16px;
  }

  .status-chip {
    position: static;
    display: inline-grid;
    margin: 8px 8px 0 0;
  }

  .edition-strip,
  .topic-grid,
  .daily-grid {
    grid-template-columns: 1fr;
  }

  .daily-section {
    padding: 24px 18px;
  }

  .masonry {
    column-count: 1;
  }

  .about-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    min-height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
