/* style.css — 双主题变量 + 全部样式 */
:root { color-scheme: dark; }
:root[data-theme="dark"] {
  --bg-top: #7c7c7c;
  --bg-bottom: #565656;
  --text: #ffffff;
  --text-dim: #ececec;
  --card: #1e1f21;
  --corner-bg: rgba(20, 20, 20, 0.55);
  --corner-icon: #ffffff;
  --thumb-bg: #ffffff;
  --thumb-icon: #111111;
  --toast-bg: rgba(0, 0, 0, 0.8);
}
:root[data-theme="light"] {
  --bg-top: #fafafa;
  --bg-bottom: #d9d9d9;
  --text: #1b1b1b;
  --text-dim: #4c4c4c;
  --card: #ffffff;
  --corner-bg: rgba(255, 255, 255, 0.85);
  --corner-icon: #333333;
  --thumb-bg: #f0f0f0;
  --thumb-icon: #111111;
  --toast-bg: rgba(30, 30, 30, 0.9);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 顶部两角按钮 */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 16px; z-index: 10;
}
.corner-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--corner-bg); color: var(--corner-icon);
  display: grid; place-items: center; cursor: pointer;
}
.corner-btn svg { width: 18px; height: 18px; fill: currentColor; }
.corner-btn:hover { filter: brightness(1.2); }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }

/* 居中主列 */
.column {
  max-width: 680px; margin: 0 auto;
  padding: 72px 20px 56px;
  display: flex; flex-direction: column; align-items: center;
}
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--thumb-bg); }
.name { margin: 16px 0 6px; font-size: 20px; font-weight: 700; }
.bio { margin: 0 0 22px; font-size: 14px; color: var(--text-dim); }

/* 社交图标行 */
.socials { display: flex; gap: 26px; margin-bottom: 30px; }
.socials a { color: var(--text); display: inline-flex; }
.socials a:hover { opacity: 0.75; }
.socials svg, .socials img { width: 24px; height: 24px; }
.socials svg { fill: currentColor; }

/* 链接按钮列 */
.links { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.link-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 8px 24px;
  border-radius: 9999px;
  background: var(--card); color: var(--text);
  text-decoration: none; font-size: 15px; text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.link-btn:hover { filter: brightness(1.15); transform: translateY(-2px); }
.thumb {
  position: absolute; left: 6px; top: 50%; translate: 0 -50%;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--thumb-bg); color: var(--thumb-icon);
  display: grid; place-items: center; overflow: hidden;
}
.thumb svg { width: 26px; height: 26px; fill: currentColor; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 0;
  background: var(--toast-bg); color: #fff;
  font-size: 13px; padding: 9px 16px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.toast.show { opacity: 1; }
