/* 蜉熵阁 · 外宣 —— 账号墙 */

:root {
  --bg-deep: #0f0f1a;
  --bg-mid: #1a1a2e;
  --gold: #ffd700;
  --gold-dim: rgba(255, 215, 0, 0.22);
  --gold-faint: rgba(255, 215, 0, 0.07);
  --ink: #e8e6e3;
  --ink-dim: #9ca3af;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.06) 0%, transparent 56%),
    radial-gradient(ellipse at 12% 36%, rgba(162, 155, 254, 0.035) 0%, transparent 46%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 28%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.9;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ---- 容器 ---- */

.xuan {
  max-width: 42rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 6rem;
}

/* ---- Hero ---- */

.xuan__hero {
  text-align: center;
  margin-bottom: 4.5rem;
}

.xuan__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  color: var(--ink-dim);
  margin-bottom: 2rem;
}

.xuan__title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--gold);
  text-shadow: 0 0 80px rgba(255, 215, 0, 0.3);
}

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

.xuan__sub {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}

/* ---- 账号墙 ---- */

.xuan__list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.xuan-card {
  border: 1px solid var(--gold-faint);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s ease, background 0.3s ease;
}

a.xuan-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.8rem;
}

a.xuan-card:hover {
  border-color: var(--gold-dim);
  background: rgba(255, 215, 0, 0.04);
}

/* 微信卡（折叠型） */

details.xuan-card {
  display: block;
  padding: 0;
}

details.xuan-card:hover {
  border-color: var(--gold-dim);
  background: rgba(255, 215, 0, 0.04);
}

.xuan-card__trigger {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.8rem;
  cursor: pointer;
  list-style: none;
}

.xuan-card__trigger::-webkit-details-marker {
  display: none;
}

.xuan-card__trigger::marker {
  content: "";
}

/* 图标 / 文案 */

.xuan-card__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.xuan-card__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.xuan-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.xuan-card__platform {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}

.xuan-card__name {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.xuan-card__arrow {
  flex: none;
  color: var(--gold-dim);
  font-size: 1.2rem;
  line-height: 1;
}

.xuan-card__chevron {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s ease;
}

details[open] .xuan-card__chevron {
  transform: rotate(225deg) translateY(-2px);
}

/* 二维码面板（点开才显示） */

.xuan-card__qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 1.8rem 1.9rem;
  animation: xuan-reveal 0.25s ease;
}

.xuan-card__qrcode img {
  width: 150px;
  height: 150px;
  display: block;
  border-radius: 6px;
}

.xuan-card__hint {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}

@keyframes xuan-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Footer ---- */

.xuan__footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--ink-dim);
}

/* ---- 响应式 ---- */

@media (max-width: 600px) {
  .xuan {
    padding: 4rem 1.25rem 4rem;
  }
  .xuan__hero {
    margin-bottom: 3.5rem;
  }
  a.xuan-card,
  .xuan-card__trigger {
    padding: 1.4rem 1.3rem;
    gap: 1.1rem;
  }
  .xuan-card__icon {
    width: 38px;
    height: 38px;
  }
  .xuan-card__icon svg {
    width: 26px;
    height: 26px;
  }
  .xuan-card__qrcode {
    padding: 0.2rem 1.3rem 1.5rem;
  }
  .xuan-card__qrcode img {
    width: 128px;
    height: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}