:root {
  --bg: #07080c;
  --bg-glow: rgba(212, 175, 106, 0.10);
  --surface: #0d0c0a;
  --surface-2: #14110b;
  --text: #ece6d8;
  --text-dim: #b3a888;
  --text-mute: #7c7560;
  --gold: #e8c987;
  --gold-deep: #c9a45e;
  --gold-line: #2a2417;
  --radius: 16px;
}

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

html, body {
  background: var(--bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  background:
    radial-gradient(circle at 50% -8%, var(--bg-glow), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

.page {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 18px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

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

/* 视觉头图 */
.hero {
  margin-top: 56px;
  padding: 24px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% -12%, rgba(232, 201, 135, 0.22), transparent 58%),
    linear-gradient(160deg, #121009 0%, #0c0a06 100%);
  border: 1px solid var(--gold-line);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px -22px rgba(212, 175, 106, 0.30);
}
.hero .hero-avatar {
  width: 76px; height: 76px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(201, 164, 94, 0.55);
  box-shadow: 0 8px 24px -10px rgba(212, 175, 106, 0.55);
  display: block;
  position: relative;
  margin-bottom: 18px;
}
.hero .hero-main { position: relative; }
.hero .brand {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(95deg, #f3dca0, #c9a45e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero .tagline {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mute);
  position: relative;
  letter-spacing: 0.5px;
}
.hero .accent-bar {
  margin-top: 18px;
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 2px;
  position: relative;
}

/* 人设一句话 */
.bio {
  margin-top: 26px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.85;
}

/* 关于我 */
.about {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
}
.about-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}
.about-d {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* 标签 */
.tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 201, 135, 0.06);
  border: 1px solid rgba(201, 164, 94, 0.45);
  color: #d9c08a;
  letter-spacing: 0.5px;
}

/* 作品区 */
.section-title {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 2px;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.link-row:active,
.link-row:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 164, 94, 0.6);
  box-shadow: 0 10px 30px -16px rgba(212, 175, 106, 0.45);
}
.link-icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.link-text { flex: 1; display: flex; flex-direction: column; }
.link-text strong { font-size: 15px; font-weight: 500; }
.link-text em { font-size: 12px; color: var(--text-mute); font-style: normal; }
.link-arrow { color: var(--gold-deep); font-size: 20px; }

/* 加微信 */
.wechat {
  margin-top: 36px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 18px 50px -26px rgba(212, 175, 106, 0.30);
}
.wechat .w-title {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.qr-box {
  width: 158px; height: 158px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box.placeholder {
  background: #161310;
  color: var(--text-mute);
  font-size: 12px;
  padding: 10px;
  text-align: center;
}
.copy-btn {
  display: inline-block;
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #e8c987, #c9a45e);
  color: #1a160c;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s;
}
.copy-btn:active { filter: brightness(1.08); }
.wx-id {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-mute);
  word-break: break-all;
}
.wx-warn {
  margin-top: 10px;
  font-size: 12px;
  color: #e2a44f;
}

.footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--gold-line);
  text-align: center;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.5px;
}
