/* ===== 主题变量（跟随系统深浅色） ===== */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-hover: #fbfbfc;
  --text: #18181b;
  --muted: #8a8a94;
  --border: #e6e6e9;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --surface: #17171a;
    --surface-hover: #1c1c20;
    --text: #e4e4e7;
    --muted: #7d7d85;
    --border: #27272c;
    color-scheme: dark;
  }
}

/* ===== 基础 ===== */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  width: 100%;
  max-width: 900px;
  padding: 56px 24px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 左右两栏 ===== */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== 左侧：个人介绍 ===== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  object-fit: cover;
}

.name {
  margin: 18px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bio {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

.group {
  margin-top: 20px;
}

.group-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  padding: 2px 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.github-link,
.qq-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.github-link {
  margin-top: 24px;
}

.qq-link {
  margin-top: 10px;
}

.github-link:hover,
.qq-link:hover {
  color: var(--text);
}

.github-link svg,
.qq-link svg {
  width: 15px;
  height: 15px;
}

/* ===== 右侧：网站列表 ===== */
.sites {
  min-width: 0;
}

.section-label {
  margin: 4px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.row + .row {
  border-top: 1px solid var(--border);
}

.row:hover {
  background: var(--surface-hover);
}

.row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-name {
  font-size: 14.5px;
  font-weight: 500;
}

.row-desc {
  font-size: 12px;
  color: var(--muted);
}

.row-arrow {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ===== 手机：上下排布 ===== */
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile {
    align-items: center;
    text-align: center;
  }

  .tags {
    justify-content: center;
  }
}

/* ===== 辅助 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 40px 16px 24px;
  }

  .row {
    padding: 14px 16px;
  }
}
