/* ============================================
   个人主页样式 · 温暖柔和风
   配色、字号都在文件开头这组变量里，改这里就能整体换风格
   ============================================ */

:root {
  --bg: #FDF9F4;            /* 页面底色：米白 */
  --bg-glow: #FBEEE2;       /* 背景柔光：暖橙 */
  --surface: #FFFFFF;       /* 卡片白 */
  --border: #F0E4D8;        /* 描边 */
  --text: #33302C;          /* 主文字 */
  --text-soft: #857A70;     /* 次要文字 */
  --accent: #D97757;        /* 强调色：陶土橙 */
  --accent-soft: #F8E7DC;   /* 强调色浅底 */
  --radius: 20px;
  --maxw: 640px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* 顶部一层暖色柔光，让纯色底不显得死板 */
  background-image:
    radial-gradient(120% 60% at 50% -10%, var(--bg-glow) 0%, rgba(253, 249, 244, 0) 62%);
  background-repeat: no-repeat;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 56px;
}

/* ---------- 头部 ---------- */
.hero {
  text-align: center;
  margin-bottom: 56px;
  animation: rise .7s cubic-bezier(.22, .68, .36, 1) both;
}

/* 头像：img 直接使用；若无图片可改回文字圆形占位 */
.avatar {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 10px 30px -12px rgba(217, 119, 87, .45);
}

.name {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .5px;
}

.tagline {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.chip {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12.5px;
  letter-spacing: .3px;
}

/* ---------- 链接卡片 ---------- */
.links {
  display: grid;
  gap: 12px;
  animation: rise .7s cubic-bezier(.22, .68, .36, 1) .08s both;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: #E7D3C2;
  box-shadow: 0 14px 28px -18px rgba(120, 85, 60, .45);
  outline: none;
}

.link-card:active { transform: translateY(0); }

.link-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg { width: 21px; height: 21px; }

.link-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.link-title {
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: .2px;
}

.link-desc {
  font-size: 13px;
  color: var(--text-soft);
}

.link-arrow {
  color: #C9B7A8;
  font-size: 15px;
  transition: transform .22s ease, color .22s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ---------- 联系方式 ---------- */
.contact {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: rise .7s cubic-bezier(.22, .68, .36, 1) .16s both;
}

.section-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B7A698;
}

.contact-list p {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--text);
}

.contact-list .label {
  display: inline-block;
  width: 52px;
  color: var(--text-soft);
  font-size: 13px;
}

/* ---------- 底部 ---------- */
.footer {
  margin-top: 48px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 12.5px;
  color: #B7A698;
}

/* ---------- 复制提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 14px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(51, 48, 44, .92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100vw - 48px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 入场动画 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 尊重系统的“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 手机适配 ---------- */
@media (max-width: 480px) {
  .page { padding: 52px 20px 44px; }
  .avatar { width: 88px; height: 88px; font-size: 32px; }
  .name { font-size: 26px; }
  .link-card { padding: 15px 16px; gap: 12px; }
  .link-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; }
}
