/* 黑金主题：取自 logo 的纯黑底 + 香槟金（#f7e9c8 / #d4b483 / #a9822f） */

:root {
  color-scheme: dark;
  --bg-1: #0c0b09;
  --bg-2: #070707;
  --bg-3: #000000;
  --card-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.014));
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --line: rgba(212, 180, 131, 0.18);
  --line-strong: rgba(212, 180, 131, 0.5);
  --text-main: #f2ead8;
  --text-sub: rgba(242, 234, 216, 0.63);
  --gold-hi: #f7e9c8;
  --gold: #d4b483;
  --gold-deep: #a9822f;
}

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

html,
body {
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(212, 180, 131, 0.18), transparent 62%),
    radial-gradient(760px 420px at 82% 108%, rgba(212, 180, 131, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 42%, var(--bg-3) 100%);
  padding: 22px 14px 36px;
}

::selection {
  background: rgba(212, 180, 131, 0.32);
  color: var(--gold-hi);
}

.page {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile {
  text-align: center;
  padding: 20px 18px 16px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 180, 131, 0.75);
  box-shadow:
    0 0 0 4px rgba(212, 180, 131, 0.1),
    0 0 22px rgba(212, 180, 131, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}

.title-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.title {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--gold);
}

/* 金属渐变字；不支持 background-clip:text 的环境自动退回上面的实心金色 */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .title {
    background: linear-gradient(180deg, var(--gold-hi) 6%, var(--gold) 58%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.flag {
  display: inline-block;
  background: linear-gradient(100deg, #f7e9c8, #d4b483 48%, #a9822f);
  color: #1b1206;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow:
    0 4px 12px rgba(212, 180, 131, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-weight: bold;
  letter-spacing: 0.5px;
}

.desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.link-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.link-item {
  text-decoration: none;
  color: var(--text-main);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.014));
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 62px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.link-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.item-logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  margin-right: 10px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #17110a;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(120, 84, 20, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.55);
}

.item-logo::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 3px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}

/* 图标统一收进黑金体系，靠明度与色温区分 */
.logo-shop1 { background: linear-gradient(135deg, #f0c26a, #a86e12); }
.logo-shop2 { background: linear-gradient(135deg, #eceadd, #94896b); }
.logo-shop3 { background: linear-gradient(135deg, #dcb26a, #8a5a1e); }
.logo-join { background: linear-gradient(135deg, #f5e6bd, #b99445); }
.logo-free { background: linear-gradient(135deg, #cfc07a, #6f5c1c); }
.logo-notice { background: linear-gradient(135deg, #eda76a, #8f3f18); }
.logo-faq { background: linear-gradient(135deg, #f7e9c8, #b8892f); }
.logo-tg { background: linear-gradient(135deg, #f5e6bd, #b99445); }
.logo-qq { background: linear-gradient(135deg, #dcb26a, #8a5a1e); }

.view[hidden] {
  display: none !important;
}

button.link-item,
button.back-btn {
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button.link-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.subhead {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.back-btn:hover,
.back-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: var(--gold-hi);
}

.link-item:hover,
.link-item:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 180, 131, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}

.link-item:hover .link-arrow,
.link-item:focus-visible .link-arrow {
  color: var(--gold);
  opacity: 1;
}

/* 按压反馈：放在 hover 之后，保证按下时压过 hover 的位移 */
.link-item.is-pressed {
  transform: translateY(0) scale(0.995);
  border-color: var(--line-strong);
}

.link-copy {
  display: grid;
  min-width: 0;
}

.link-title {
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.2;
}

.link-arrow {
  font-size: 22px;
  color: rgba(212, 180, 131, 0.5);
  opacity: 0.9;
  line-height: 1;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.brand {
  margin-top: 18px;
  text-align: center;
  opacity: 0.85;
}

.brand-text {
  font-size: 12px;
  color: rgba(212, 180, 131, 0.62);
  letter-spacing: 0.4px;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: rise-in 0.45s ease forwards;
}

.link-list .reveal:nth-child(1) { animation-delay: 0.06s; }
.link-list .reveal:nth-child(2) { animation-delay: 0.1s; }
.link-list .reveal:nth-child(3) { animation-delay: 0.14s; }
.link-list .reveal:nth-child(4) { animation-delay: 0.18s; }
.link-list .reveal:nth-child(5) { animation-delay: 0.22s; }
.link-list .reveal:nth-child(6) { animation-delay: 0.26s; }
.link-list .reveal:nth-child(7) { animation-delay: 0.3s; }
.link-list .reveal:nth-child(8) { animation-delay: 0.34s; }
.link-list .reveal:nth-child(9) { animation-delay: 0.38s; }
.link-list .reveal:nth-child(10) { animation-delay: 0.42s; }
.link-list .reveal:nth-child(11) { animation-delay: 0.46s; }
.link-list .reveal:nth-child(12) { animation-delay: 0.5s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  body {
    padding: 14px 10px 28px;
  }

  .profile {
    padding: 16px 14px 12px;
  }

  .title {
    font-size: 20px;
  }

  .link-title {
    font-size: 14px;
  }

  .link-sub {
    font-size: 11px;
  }
}

/* ---------- 常见问题（FAQ）页面 ---------- */

#faq-page .faq-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

#faq-page .faq-item {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.014));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#faq-page .faq-item:hover,
#faq-page .faq-item[open] {
  border-color: var(--line-strong);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 180, 131, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#faq-page .faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
}

#faq-page .faq-q::-webkit-details-marker {
  display: none;
}

#faq-page .faq-q::marker {
  content: "";
}

#faq-page .faq-no {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(212, 180, 131, 0.14);
  border: 1px solid rgba(212, 180, 131, 0.24);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

#faq-page .faq-q-text {
  flex: 1 1 auto;
  min-width: 0;
}

#faq-page .faq-chev {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: rgba(212, 180, 131, 0.55);
  transition: transform 0.2s ease, color 0.2s ease;
}

#faq-page .faq-item[open] .faq-chev {
  transform: rotate(90deg);
  color: var(--gold);
}

#faq-page .faq-a {
  padding: 0 14px 13px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(242, 234, 216, 0.74);
}

#faq-page .faq-a ul {
  margin: 0;
  padding-left: 20px;
}

#faq-page .faq-a li {
  margin: 5px 0;
}

#faq-page .faq-a li::marker {
  color: rgba(212, 180, 131, 0.75);
}

#faq-page .faq-tip {
  margin: 9px 0 0;
  padding: 8px 11px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: rgba(212, 180, 131, 0.1);
  color: #e8d3a2;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 420px) {
  #faq-page .faq-q {
    padding: 12px;
    font-size: 14px;
  }

  #faq-page .faq-a {
    padding: 0 12px 12px;
    font-size: 13px;
  }
}
