:root {
  --bg-a: #0b1320;
  --bg-b: #10213a;
  --bg-c: #19345b;
  --text-main: #eaf3ff;
  --text-sub: #a8bbd6;
  --line: rgba(225, 238, 255, 0.22);
  --glass: rgba(12, 29, 52, 0.52);
  --glass-strong: rgba(11, 25, 44, 0.72);
  --accent: #4bd9c9;
  --accent-soft: #9ae4cb;
  --accent-warm: #eebc7a;
  --ok: #39d88d;
  --warn: #f5bb6f;
  --danger: #f07a7a;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 50px rgba(4, 13, 26, 0.45);
}

html[data-theme="light"] {
  --bg-a: #dfefff;
  --bg-b: #edf5ff;
  --bg-c: #ffffff;
  --text-main: #10243d;
  --text-sub: #445f82;
  --line: rgba(16, 36, 61, 0.16);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --shadow: 0 20px 44px rgba(22, 56, 93, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", "Microsoft YaHei", sans-serif;
  color: var(--text-sub);
  background: linear-gradient(145deg, var(--bg-a), var(--bg-b) 50%, var(--bg-c));
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img.webp") center/cover no-repeat;
  opacity: 0.56;
  z-index: -4;
  transform: scale(1.05);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1300px 500px at var(--mx, 75%) var(--my, 30%), rgba(75, 217, 201, 0.17), transparent 68%),
    linear-gradient(160deg, rgba(8, 18, 36, 0.42), rgba(8, 18, 36, 0.2));
  z-index: -3;
}

html[data-theme="light"] body::before {
  opacity: 0.4;
}

html[data-theme="light"] body::after {
  background:
    radial-gradient(1300px 500px at var(--mx, 75%) var(--my, 30%), rgba(75, 217, 201, 0.13), transparent 68%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.6));
}

.ambient-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(30rem 20rem at 10% 12%, rgba(238, 188, 122, 0.16), transparent 75%),
    radial-gradient(26rem 20rem at 85% 8%, rgba(75, 217, 201, 0.22), transparent 70%),
    radial-gradient(26rem 24rem at 58% 82%, rgba(154, 228, 203, 0.2), transparent 72%);
}

.shell {
  width: min(1160px, calc(100% - 2.6rem));
  margin: 0 auto;
}

.top-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(9px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.brand-mark:hover {
  transform: translateY(-2px);
  border-color: var(--line);
}

.avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-home {
  font-weight: 800;
}

.brand-copy small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
}

.theme-switch {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(75, 217, 201, 0.25), rgba(238, 188, 122, 0.18));
  transition: transform 0.32s ease, filter 0.32s ease;
}

.theme-switch:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.theme-switch:active {
  transform: translateY(0) scale(0.97);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: clamp(2rem, 7vw, 4.2rem);
}

.hero-copy,
.hero-panel,
.section-shell,
.about-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--glass-strong), var(--glass));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.2rem, 3.8vw, 2.3rem);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(75, 217, 201, 0.28), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero-title {
  margin: 0.35rem 0 0;
  font-family: "Noto Serif SC", serif;
  color: transparent;
  background: linear-gradient(110deg, #f3fbff 0%, #b7ffe5 34%, #f7ddb5 58%, #f3fbff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2rem, 7.6vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 12px 30px rgba(4, 17, 29, 0.34);
}

html[data-theme="light"] .hero-title {
  background: linear-gradient(110deg, #0f2744 0%, #176071 34%, #7a5f2c 60%, #0f2744 92%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.hero-desc {
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  max-width: 52ch;
  text-wrap: pretty;
}

.route-pill {
  margin-top: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 14, 26, 0.36);
}

html[data-theme="light"] .route-pill {
  background: rgba(255, 255, 255, 0.58);
}

.route-pill span {
  font-size: 0.66rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.route-pill strong {
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.56rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(75, 217, 201, 0.42), rgba(154, 228, 203, 0.28));
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
}

.hero-panel {
  padding: 1.15rem;
  display: grid;
  gap: 0.55rem;
  backdrop-filter: blur(3px);
}

.hero-panel h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
}

.hero-panel a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(7, 16, 30, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-panel a::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.25) 50%, transparent 90%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.35s ease;
}

.hero-panel a:hover {
  transform: translateX(4px);
  border-color: var(--line);
  box-shadow: 0 14px 26px rgba(6, 14, 25, 0.35);
}

.hero-panel a:hover::after {
  transform: translateX(120%);
  opacity: 1;
}

.hero-panel a:active {
  transform: translateX(2px) scale(0.985);
}

.article-chip.chip-a {
  background: linear-gradient(120deg, rgba(67, 179, 255, 0.24), rgba(124, 235, 222, 0.14));
  border-color: rgba(91, 195, 255, 0.4);
}

.article-chip.chip-b {
  background: linear-gradient(120deg, rgba(160, 123, 255, 0.24), rgba(247, 151, 255, 0.14));
  border-color: rgba(188, 141, 255, 0.42);
}

.article-chip.chip-c {
  background: linear-gradient(120deg, rgba(255, 152, 92, 0.24), rgba(255, 208, 138, 0.14));
  border-color: rgba(255, 172, 119, 0.4);
}

.hero-panel strong {
  display: block;
  color: var(--text-main);
  font-size: 0.9rem;
}

.hero-panel span {
  display: block;
  font-size: 0.76rem;
}

.section-shell,
.about-hero {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.7rem);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 1.15rem;
}

.section-head p {
  margin: 0;
  font-size: 0.78rem;
}

.action-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

@media (min-width: 980px) {
  .action-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .action-grid .action-card:nth-child(1) {
    grid-column: span 3;
  }

  .action-grid .action-card:nth-child(2) {
    grid-column: span 3;
  }

  .action-grid .action-card:nth-child(3) {
    grid-column: span 2;
  }

  .action-grid .action-card:nth-child(4) {
    grid-column: span 4;
  }
}

.action-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  color: inherit;
  text-align: left;
  text-decoration: none;
  padding: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(7, 16, 30, 0.18);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.28), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 228, 203, 0.62);
  box-shadow: 0 16px 30px rgba(5, 12, 24, 0.36);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
}

.action-card:hover::before {
  opacity: 1;
}

.action-card:active {
  transform: translateY(-1px) scale(0.985);
  box-shadow: 0 10px 18px rgba(5, 12, 24, 0.3);
}

.tone-ocean {
  background: linear-gradient(145deg, rgba(67, 179, 255, 0.22), rgba(102, 224, 239, 0.11));
  border-color: rgba(86, 195, 255, 0.5);
}

.tone-sun {
  background: linear-gradient(145deg, rgba(255, 176, 94, 0.24), rgba(255, 217, 137, 0.11));
  border-color: rgba(255, 194, 120, 0.5);
}

.tone-forest {
  background: linear-gradient(145deg, rgba(76, 213, 162, 0.24), rgba(147, 239, 186, 0.11));
  border-color: rgba(111, 223, 178, 0.5);
}

.tone-rose {
  background: linear-gradient(145deg, rgba(255, 124, 165, 0.24), rgba(255, 181, 208, 0.11));
  border-color: rgba(255, 151, 183, 0.5);
}

.action-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 0.93rem;
}

.action-card p {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
}

.site-footer {
  margin: 1.2rem auto 2rem;
  text-align: center;
  font-size: 0.74rem;
}

.dialog-wrap {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 9, 18, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-wrap.active {
  opacity: 1;
  visibility: visible;
}

.dialog-panel {
  width: min(92vw, 430px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(11, 27, 49, 0.96), rgba(22, 48, 84, 0.96));
  padding: 1.3rem 1rem 1rem;
  position: relative;
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.96);
  transition: transform 0.3s ease;
}

html[data-theme="light"] .dialog-panel {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(237, 246, 255, 0.95));
}

.dialog-wrap.active .dialog-panel {
  transform: translateY(0) scale(1);
}

.dialog-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 1rem;
}

.dialog-panel h3 {
  margin: 0 0 0.65rem;
  color: var(--text-main);
  font-size: 1rem;
}

.dialog-panel img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dialog-panel p {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
}

.about-hero h1 {
  margin: 0.34rem 0 0;
  color: var(--text-main);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.72rem, 5.8vw, 3.1rem);
  line-height: 1.16;
}

.about-hero p {
  margin: 0.75rem 0 0;
  max-width: 64ch;
}

.notice-strip {
  margin-top: 0.8rem;
  border: 1px solid rgba(238, 188, 122, 0.4);
  border-radius: 12px;
  background: rgba(238, 188, 122, 0.12);
  color: #f4d39d;
  padding: 0.66rem 0.74rem;
  font-size: 0.78rem;
}

.status-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.status-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.38rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  font-size: 0.74rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warn);
}

.dot.ok {
  background: var(--ok);
}

.dot.warn {
  background: var(--warn);
}

.dot.fail {
  background: var(--danger);
}

.test-text {
  font-size: 0.75rem;
}

.mirror-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.mirror-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  padding: 0.88rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(5, 12, 24, 0.2);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.mirror-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(154, 228, 203, 0.2));
}

.mirror-card:nth-child(2n) {
  background: linear-gradient(140deg, rgba(118, 192, 255, 0.16), rgba(255, 255, 255, 0.03));
}

.mirror-card:nth-child(3n) {
  background: linear-gradient(140deg, rgba(255, 170, 119, 0.16), rgba(255, 255, 255, 0.03));
}

.mirror-card:nth-child(5n) {
  background: linear-gradient(140deg, rgba(155, 132, 255, 0.16), rgba(255, 255, 255, 0.03));
}

.mirror-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 228, 203, 0.62);
  box-shadow: 0 18px 30px rgba(5, 12, 24, 0.34);
}

.mirror-card:active {
  transform: translateY(-1px) scale(0.987);
}

.mirror-card.clickable {
  cursor: pointer;
}

.mirror-head {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
}

.mirror-title {
  margin: 0;
  color: var(--text-main);
  font-size: 0.88rem;
}

.copy-mini {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.copy-mini:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.copy-mini:active {
  transform: scale(0.92);
}

.mirror-url {
  margin-top: 0.25rem;
  font-size: 0.73rem;
  word-break: break-all;
}

.mirror-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

.mirror-meta {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.63rem;
  padding: 0.2rem 0.5rem;
}

.tier-premium {
  background: rgba(57, 216, 141, 0.2);
}

.tier-standard {
  background: rgba(75, 217, 201, 0.2);
}

.tier-fallback {
  background: rgba(245, 187, 111, 0.2);
}

.tier-offline {
  background: rgba(240, 122, 122, 0.2);
}

.speed-ok {
  background: rgba(57, 216, 141, 0.2);
}

.speed-slow {
  background: rgba(245, 187, 111, 0.2);
}

.speed-fail {
  background: rgba(240, 122, 122, 0.2);
}

.about-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  padding: 0.95rem;
  box-shadow: 0 12px 22px rgba(7, 16, 28, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(154, 228, 203, 0.52);
  box-shadow: 0 16px 28px rgba(7, 16, 28, 0.32);
}

.about-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 0.95rem;
}

.about-card p,
.about-card ol {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
}

.about-card li {
  margin-bottom: 0.3rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 19, 35, 0.92);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  font-size: 0.73rem;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 640px) {
  .shell {
    width: min(1160px, calc(100% - 1.3rem));
  }

  .top-rail {
    padding-top: 0.6rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
