:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --accent: #007aff;
  --accent-soft: #e5f1ff;
  --pink: #ff6fae;
  --mint: #4fc3bd;
  --shadow: 0 24px 80px rgba(24, 32, 48, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 111, 174, 0.18), transparent 26rem),
    radial-gradient(circle at 90% 16%, rgba(79, 195, 189, 0.16), transparent 24rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 58%, #ffffff 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 48px rgba(24, 32, 48, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-links .nav-subscribe,
.source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links .nav-subscribe {
  color: #ffffff;
  background: var(--text);
  box-shadow: 0 12px 28px rgba(29, 29, 31, 0.16);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(29, 29, 31, 0.06);
}

.nav-links .nav-subscribe:hover {
  color: #ffffff;
  background: #333336;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.15fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 72px);
  padding: 72px 0 56px;
}

.hero-copy {
  text-align: left;
}

.hero-logo {
  width: clamp(128px, 18vw, 218px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(255, 111, 174, 0.18));
}

.eyebrow {
  margin: 16px 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(45px, 5.5vw, 80px);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 25px);
  line-height: 1.35;
}

.video-shell {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0d12;
  box-shadow: var(--shadow);
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(24, 32, 48, 0.1);
  transform: translateX(-50%);
  backdrop-filter: saturate(180%) blur(18px);
}

.scroll-cue::before {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  animation: scroll-cue-bounce 1.6s ease-in-out infinite;
}

.scroll-cue:hover {
  border-color: rgba(0, 122, 255, 0.35);
  background: #ffffff;
}

.scroll-cue:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 4px;
}

.section {
  padding: 56px 0;
}

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

.section-heading .eyebrow {
  margin: 0 0 8px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.feature-card,
.resource-block,
.announcement-panel,
.plugin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(24, 32, 48, 0.08);
  backdrop-filter: saturate(180%) blur(18px);
}

.feature-card {
  min-height: 176px;
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--accent));
  font-size: 20px;
  font-weight: 700;
}

.feature-card h3,
.resource-block h3,
.plugin-section h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.feature-card p,
.resource-block p,
.subsection-heading p,
.plugin-card p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-card p,
.resource-block p,
.plugin-card p {
  margin-bottom: 0;
}

.announcement-panel {
  padding: 6px;
  background: var(--surface-strong);
}

.announcement-list {
  display: grid;
  min-height: 236px;
}

.announcement-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.announcement-item + .announcement-item {
  border-top: 1px solid var(--line);
}

.announcement-item:hover {
  background: #f5f8ff;
}

.announcement-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-meta {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.pin {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
}

.resource-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
}

.resource-block {
  padding: 24px;
}

.link-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
}

.link-list a::after {
  content: "↗";
  color: var(--muted);
  font-size: 14px;
}

.link-list a:hover {
  border-color: rgba(0, 122, 255, 0.28);
  color: var(--accent);
}

.link-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.link-label span {
  min-width: 0;
}

.bilibili-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #00aeec;
  fill: rgba(0, 174, 236, 0.12);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bilibili-antenna {
  fill: none;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.primary-button:hover {
  background: #333336;
}

.plugin-section {
  padding-top: 28px;
}

.subsection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.subsection-heading p {
  margin-bottom: 0;
  font-size: 14px;
}

.source-button {
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
}

.source-button-dark {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
}

.source-button-dark:hover {
  background: #333336;
}

.source-button-light {
  background: #ffffff;
  color: var(--text);
}

.source-button-light:hover {
  border-color: rgba(0, 122, 255, 0.28);
  color: var(--accent);
}

.source-button-primary {
  min-height: 48px;
  padding: 0 22px;
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 14px 34px rgba(0, 122, 255, 0.22);
}

.source-button-primary:hover {
  border-color: #006ee6;
  background: #006ee6;
}

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

.plugin-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  min-height: 154px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.plugin-card:hover {
  border-color: rgba(0, 122, 255, 0.28);
  background: #ffffff;
}

.plugin-logo {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f2f4f8;
}

.plugin-body {
  min-width: 0;
}

.plugin-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.plugin-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.plugin-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* standard property for compatibility */
  line-clamp: 2;
}

.version-tag {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}

.plugin-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed rgba(29, 29, 31, 0.18);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
}

.skeleton-line {
  height: 58px;
  margin: 3px 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f2f5, #ffffff, #f1f2f5);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    opacity: 0.48;
    transform: translateY(-5px) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(3px) rotate(45deg);
  }
}

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

  .scroll-cue::before,
  .skeleton-line {
    animation: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 88px;
  }

  .hero-copy {
    text-align: center;
  }

  .subtitle {
    margin-right: auto;
    margin-left: auto;
  }

  .feature-grid,
  .resource-layout,
  .plugin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .nav-links a {
    text-align: center;
  }

  .section {
    padding: 40px 0;
  }

  .section-heading,
  .subsection-heading,
  .announcement-item {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .announcement-title {
    white-space: normal;
  }

  .plugin-card {
    grid-template-columns: 58px 1fr;
    padding: 16px;
  }

  .plugin-logo {
    width: 58px;
    height: 58px;
  }
}
