:root {
  --bg: #0b0f14;
  --bg-soft: #11171f;
  --card: #141c26;
  --card-2: #18212d;
  --line: #232f3d;
  --text: #e8edf3;
  --muted: #8a98a8;
  --gold: #d9a441;
  --gold-soft: #f0c878;
  --green: #2fae7a;
  --red: #e2574c;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body { position: relative; min-height: 100vh; overflow-x: hidden; }

/* 背景纹理与光晕 */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; top: -160px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 520px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(217,164,65,.18), transparent 65%);
  filter: blur(20px);
}

.container {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  padding: 0 18px 60px;
}

.loading { text-align: center; padding: 120px 0; color: var(--muted); }

/* 通用区块标题 */
.section { margin-top: 34px; opacity: 0; transform: translateY(16px); animation: rise .6s forwards; }
.section:nth-child(2){animation-delay:.05s}
.section:nth-child(3){animation-delay:.1s}
.section:nth-child(4){animation-delay:.15s}
.section:nth-child(5){animation-delay:.2s}
.section:nth-child(6){animation-delay:.25s}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.sec-title {
  font-size: 15px; font-weight: 700; letter-spacing: 3px;
  color: var(--gold-soft); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sec-title::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }

/* 头部 */
.hero { text-align: center; padding-top: 52px; }
.hero .avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); padding: 3px; background: var(--bg-soft);
  box-shadow: 0 0 0 6px rgba(217,164,65,.08), var(--shadow);
}
.hero .avatar.placeholder {
  display: grid; place-items: center; font-size: 30px; color: var(--gold);
}
.hero .name {
  font-size: 30px; font-weight: 800; margin-top: 18px; letter-spacing: 4px;
  background: linear-gradient(180deg, #fff, var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tagline { color: var(--muted); font-size: 13px; margin-top: 10px; letter-spacing: 1px; }
.hero .subtitle {
  display: inline-block; margin-top: 16px; padding: 6px 16px; font-size: 12px;
  color: var(--gold-soft); border: 1px solid var(--line); border-radius: 999px;
  background: rgba(217,164,65,.05); letter-spacing: 2px;
}

/* 卡片网格 */
.cards { display: grid; gap: 12px; }
.cards.col-1 { grid-template-columns: 1fr; }
.cards.col-2 { grid-template-columns: 1fr 1fr; }

.card {
  background: linear-gradient(160deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: transform .2s, border-color .2s;
}
.card:active { transform: scale(.98); border-color: var(--gold); }
.card .c-title { font-size: 16px; font-weight: 700; }
.card .c-desc { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* 资讯工具（带箭头的链接卡片） */
a.linkcard {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; color: inherit;
}
a.linkcard .arrow { color: var(--gold); font-size: 18px; }

/* 社群服务卡片 */
.service {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.service .s-left .s-name { font-size: 17px; font-weight: 700; }
.service .s-left .s-tag { font-size: 11px; color: var(--muted); margin-top: 4px; }
.service .s-right { text-align: right; }
.service .s-price { font-size: 20px; font-weight: 800; color: var(--gold-soft); }
.service .s-price.free { color: var(--green); }
.service .s-go { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 联系方式 */
.contacts { display: grid; gap: 10px; }
a.contact {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; text-decoration: none; color: inherit;
}
a.contact .ct-label { color: var(--muted); font-size: 13px; }
a.contact .ct-value { color: var(--gold-soft); font-size: 14px; font-weight: 600; }

/* 文章栏目（手风琴） */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.acc + .acc { margin-top: 10px; }
.acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; cursor: pointer; font-weight: 700; font-size: 15px;
}
.acc-head .chev { color: var(--gold); transition: transform .25s; font-size: 13px; }
.acc.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc.open .acc-body { max-height: 1500px; }
.acc-body a {
  display: block; padding: 12px 16px; border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 14px;
}
.acc-body a:active { background: var(--bg-soft); color: var(--gold-soft); }

/* 页脚 */
.footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 44px; letter-spacing: 2px; }
.footer .admin-link { display: block; margin-top: 14px; color: #3a4757; font-size: 11px; text-decoration: none; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; width: calc(100% - 40px); max-width: 360px;
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px;
  box-shadow: var(--shadow); animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.modal-title { text-align: center; font-size: 20px; font-weight: 800; }
.modal-price { text-align: center; color: var(--gold-soft); font-size: 16px; font-weight: 700; margin-top: 4px; }
.modal-features { list-style: none; margin: 16px 0; }
.modal-features li { font-size: 13px; color: var(--muted); padding: 5px 0 5px 18px; position: relative; }
.modal-features li::before { content: "•"; color: var(--gold); position: absolute; left: 4px; }
.modal-qrs { display: flex; gap: 12px; margin-top: 8px; }
.modal-qrs .qr { flex: 1; text-align: center; }
.modal-qrs .qr img { width: 100%; border-radius: 10px; background: #fff; aspect-ratio: 1/1; object-fit: contain; }
.modal-qrs .qr .qr-label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.modal-qrs .qr.empty { display: grid; place-items: center; aspect-ratio: 1/1; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
