:root {
  --ink: #0a0608;
  --ink-soft: #161012;
  --ink-lift: #22151a;
  --moon: #e23a3a;
  --moon-hot: #ff5a4a;
  --moon-glow: rgba(226, 58, 58, 0.45);
  --gold: #d4a574;
  --paper: #f3e8df;
  --muted: rgba(243, 232, 223, 0.62);
  --line: rgba(243, 232, 223, 0.12);
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(226, 58, 58, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(80, 20, 30, 0.4), transparent 50%),
    linear-gradient(180deg, #12090c 0%, var(--ink) 40%, #0d080a 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-top {
  background: #1a1216;
  width: 100%;
}

.site-header {
  position: relative;
  z-index: 50;
  background: #1a1216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 55px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

.nav a {
  position: relative;
  padding: 0 18px;
  height: 55px;
  line-height: 55px;
  font-size: 1rem;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a::after {
  display: none;
}

.nav a:hover,
.nav a.is-active {
  background: var(--moon);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.site-banner {
  position: relative;
  width: 100%;
  height: auto;
  background-color: #000;
  overflow: hidden;
  line-height: 0;
}

.site-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.section--home {
  padding-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--moon-hot), var(--moon));
  color: #fff;
  box-shadow: 0 10px 30px rgba(226, 58, 58, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff6b5c, #d62f2f);
}

.btn-ghost {
  border-color: rgba(243, 232, 223, 0.28);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--moon);
  color: #fff;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.16em;
  color: var(--paper);
}

.section-title span {
  display: block;
  margin-top: 6px;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--moon), transparent);
}

.section-more {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.section-more:hover {
  color: var(--moon-hot);
}

.section-head--compact {
  margin-bottom: 8px;
  padding-bottom: 10px;
}

.section-title--sm {
  font-size: 1.35rem;
}

.stack-gap {
  margin-top: 16px;
}

.action-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.wechat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 188px;
}

.wechat-qr {
  width: 168px;
  height: 168px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(243, 232, 223, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.wechat-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wechat-card figcaption {
  margin: 0;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.wechat-card .wechat-tip {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.wechat-showcase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}

.wechat-showcase .wechat-card {
  width: 220px;
}

.wechat-showcase .wechat-qr {
  width: 200px;
  height: 200px;
}

@media (max-width: 700px) {
  .contact-grid,
  .wechat-showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .contact-grid .intro-list li,
  .wechat-showcase .intro-list li {
    justify-content: center;
  }
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
}

.wechat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.wechat-frame {
  width: 100%;
  max-width: 168px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(243, 232, 223, 0.18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.wechat-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.wechat-label {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.wechat-tip {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.store-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.btn-store {
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  text-align: center;
}

.btn-android {
  background: linear-gradient(135deg, #3ddc84, #1f9d57);
  color: #fff;
}

.btn-android:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-ios {
  background: linear-gradient(135deg, #5ac8fa, #007aff);
  color: #fff;
}

.btn-ios:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-store.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.wechat-show {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}

.wechat-show .wechat-frame {
  max-width: 200px;
}

.intro-panel,
.news-panel,
.page-panel {
  position: relative;
  padding: 28px 26px;
  background:
    linear-gradient(160deg, rgba(34, 21, 26, 0.92), rgba(16, 10, 12, 0.88));
  border: 1px solid var(--line);
}

.intro-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--moon-hot), transparent);
}

.intro-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.intro-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(243, 232, 223, 0.12);
  font-size: 0.98rem;
}

.intro-list li:last-child {
  border-bottom: 0;
}

.intro-list strong {
  min-width: 5.5em;
  color: var(--muted);
  font-weight: 500;
}

.intro-list em {
  font-style: normal;
  color: var(--moon-hot);
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.quick-links a {
  padding: 12px 14px;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quick-links a:hover {
  color: var(--paper);
  border-color: rgba(226, 58, 58, 0.55);
  background: rgba(226, 58, 58, 0.1);
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(243, 232, 223, 0.14);
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-tag {
  color: var(--moon-hot);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.news-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.news-list a:hover {
  color: var(--moon-hot);
}

.news-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.page-hero {
  padding: 54px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.18em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
}

.page-panel {
  margin-top: 24px;
}

.page-panel h2,
.page-html h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.page-html h2 + h2,
.page-html p + h2,
.page-html ul + h2 {
  margin-top: 24px;
}

.page-html ul {
  margin: 0;
  padding-left: 1.2em;
}

.page-html li + li {
  margin-top: 8px;
}

.page-html img {
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}

.page-html a {
  color: var(--moon-hot);
}

.page-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.page-html th,
.page-html td {
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.page-panel p,
.page-panel li {
  color: rgba(243, 232, 223, 0.82);
}

.page-panel ul {
  margin: 0;
  padding-left: 1.2em;
}

.page-panel li + li {
  margin-top: 8px;
}

.empty-hint {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 80px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.site-footer a {
  color: var(--gold);
}

.site-footer a:hover {
  color: var(--moon-hot);
}

@keyframes moon-breathe {
  0%,
  100% {
    box-shadow:
      0 0 60px rgba(226, 58, 58, 0.5),
      0 0 120px rgba(226, 58, 58, 0.22);
  }
  50% {
    box-shadow:
      0 0 80px rgba(226, 58, 58, 0.72),
      0 0 160px rgba(226, 58, 58, 0.34);
  }
}

@keyframes moon-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

@media (max-width: 900px) {
  .intro-hide-mobile {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 16px 18px;
    background: #1a1216;
    border-bottom: 1px solid var(--line);
    z-index: 60;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0 12px;
    height: 44px;
    line-height: 44px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .contact-block,
  .wechat-show {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .contact-block .intro-list,
  .wechat-show .intro-list {
    width: 100%;
    text-align: left;
  }

  .news-list li {
    grid-template-columns: auto 1fr;
  }

  .news-date {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .brand-name {
    letter-spacing: 0.08em;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .btn {
    flex: 1;
  }
}
