:root {
  --bg: #060816;
  --bg-soft: rgba(15, 19, 39, 0.72);
  --panel: rgba(11, 15, 31, 0.7);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f5f7ff;
  --muted: #b5bdd9;
  --accent: #ff5ea8;
  --accent-soft: #6e7dff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(110, 125, 255, 0.2), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 94, 168, 0.18), transparent 28%),
    linear-gradient(160deg, #050711 0%, #090d1d 40%, #04050b 100%);
  overflow-x: hidden;
}

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

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-left {
  top: 10vh;
  left: -80px;
  width: 240px;
  height: 240px;
  background: rgba(255, 94, 168, 0.28);
}

.orb-right {
  right: -90px;
  bottom: 8vh;
  width: 280px;
  height: 280px;
  background: rgba(110, 125, 255, 0.22);
}

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

.toolbar {
  position: relative;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.lang-switcher {
  position: relative;
  z-index: 41;
}

.lang-trigger,
.lang-option {
  font: inherit;
  color: inherit;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(10, 13, 28, 0.72);
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.lang-trigger-label {
  color: #98a7da;
  font-family: "Segoe UI Semibold", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-current {
  font-weight: 700;
}

.lang-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #e4e9ff;
  border-bottom: 2px solid #e4e9ff;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 160ms ease;
}

.lang-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(6, 9, 20, 0.985);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.lang-option {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.lang-option:hover {
  transform: translateX(2px);
}

.hero-card,
.links-panel {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(18, 23, 46, 0.72), rgba(7, 9, 20, 0.84));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border-radius: 32px;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 520px;
  background: #0a0d19;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(3, 4, 10, 0.7), transparent);
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  padding: 8px 8px 8px 4px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-family: "Segoe UI Semibold", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: #92a0d8;
}

h1,
h2 {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.lead {
  max-width: 34rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.links-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
}

.section-head {
  margin-bottom: 20px;
}

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

.link-card {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 94, 168, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 94, 168, 0.35);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.link-card::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255, 180, 212, 0.9);
  border-right: 2px solid rgba(255, 180, 212, 0.9);
  transform: rotate(45deg);
}

.link-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.link-desc {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-right: 24px;
}

.site-footer {
  padding: 22px 8px 4px;
  text-align: center;
  color: #95a0c8;
  font-size: 0.95rem;
}

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

  .hero-image-wrap {
    min-height: 420px;
  }

  .hero-copy {
    padding: 4px 2px 2px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 16px 0 28px;
  }

  .toolbar {
    margin-bottom: 18px;
  }

  .lang-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .lang-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .hero-card,
  .links-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-image-wrap {
    min-height: 320px;
    border-radius: 18px;
  }

  .lead {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .site-footer {
    padding-top: 18px;
    font-size: 0.9rem;
  }
}
