/* ============================================================
   东 · 极简扁平 + 玻璃拟态
   背景：纯白 / 纯黑，自适应明暗
   卡片：保留毛玻璃（backdrop-filter）
   按键：统一纯色 #00FFFF，无交互效果
   ============================================================ */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== 设计变量（纯白 / 纯黑 · 自适应明暗）===== */
html { color-scheme: light dark; }
:root {
  --bg: #ffffff;
  --text: #000000;
  --text-light: rgba(0, 0, 0, 0.55);

  /* 毛玻璃（基于纯白背景，用半透明 + 阴影体现质感） */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(0, 0, 0, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);

  --accent: #00ffff;                 /* 唯一强调色：按键 */
  --btn-text: #000000;
  --footer-text: rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-btn: 10px;
  --clock-opacity: 0.7;
}

/* ===== 暗色（跟随系统）===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ffffff;
    --text-light: rgba(255, 255, 255, 0.6);

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

    --btn-text: #000000;
    --footer-text: rgba(255, 255, 255, 0.5);
    --clock-opacity: 0.6;
  }
}

/* ===== Body ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* ===== 容器（自适应宽度：宽屏自动加宽内容列，收窄两侧留白）===== */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 10px;
}
@media (min-width: 768px)  { .container { max-width: 760px;  padding: 40px 10px; } }
@media (min-width: 1024px) { .container { max-width: 920px;  padding: 40px 10px; } }
@media (min-width: 1440px) { .container { max-width: 1440px; padding: 40px 10px; } }

/* ===== 右上角时钟 ===== */
#time {
  position: fixed;
  top: 24px;
  right: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", monospace;
  letter-spacing: 0.5px;
  opacity: var(--clock-opacity);
  z-index: 999;
  user-select: none;
}

/* ===== 头部 ===== */
header { text-align: center; margin-bottom: 20px; }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: var(--glass-shadow);
  margin-bottom: 0;
  display: block;}
header a {
  display: block;
  width: 64px;
  margin: 0 auto;}
header h1 { font-size: 1.6rem; margin-bottom: 2px; }
.tagline { color: var(--text-light); font-size: 1rem; }

/* ===== 卡片（毛玻璃）===== */
section {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--glass-shadow);
}
section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
section h2::after {
  content: "";
  display: block;
  width: 30px; height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--text);
}

/* ===== 标签 ===== */
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li {
  border: 1px solid var(--text);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ===== 按键（统一纯色 #00FFFF · 无效果）===== */
.button-group { display: flex; flex-wrap: wrap; gap: 12px; }
.button-group a {
  flex: 1 1 calc(33% - 12px);
  padding: 10px 22px;
  background: var(--accent);
  color: var(--btn-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-btn);
  text-align: center;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}

.links { display: flex; gap: 12px; flex-wrap: wrap; }
.links a {
  flex: 1; min-width: 120px;
  padding: 10px 0;
  background: var(--accent);
  color: var(--btn-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-btn);
  text-align: center;
  box-sizing: border-box;
}

.transparent-button { display: flex; gap: 12px; flex-wrap: wrap; }
.transparent-button a {
  flex: 1; min-width: 120px;
  padding: 10px 0;
  background: var(--accent);
  color: var(--btn-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-btn);
  text-align: center;
  box-sizing: border-box;
}

/* ===== 页脚 ===== */
footer {
  text-align: center;
  color: var(--footer-text);
  font-size: 0.85rem;
  margin-top: 20px;
}

/* ===== 关于页链接颜色 ===== */
.about a {
  color: #00ffff;
}
.about a:hover {
  color: #00ffff;
}
