/* ============================================================
   闲聊闲逛 - 静态站点样式表
   设计语言：复刻 seabrid.cn（Next.js + Tailwind 风格）
   - 主色：蓝色系 blue-500/600
   - 动效：Hero 渐变光斑 + 网格背景
   - 支持：浅色 / 暗色双主题
   ============================================================ */

/* ---------- 设计令牌 Design Tokens ---------- */
:root {
  --primary: #3b82f6;            /* blue-500 */
  --primary-600: #2563eb;        /* blue-600 */
  --primary-700: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-50: #eff6ff;

  --text-900: #111827;
  --text-800: #1f2937;
  --text-700: #374151;
  --text-600: #4b5563;
  --text-500: #6b7280;
  --text-400: #9ca3af;

  --bg: #ffffff;
  --bg-alt: #f9fafb;             /* gray-50 */
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.82);
  --border: #e5e7eb;             /* gray-200 */
  --border-light: #f3f4f6;       /* gray-100 */

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --container: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

[data-theme="dark"] {
  --primary: #60a5fa;            /* 暗色下提亮 */
  --primary-600: #3b82f6;
  --primary-700: #2563eb;
  --primary-50: rgba(59, 130, 246, 0.15);

  --text-900: #f3f4f6;
  --text-800: #e5e7eb;
  --text-700: #d1d5db;
  --text-600: #9ca3af;
  --text-500: #6b7280;
  --text-400: #4b5563;

  --bg: #0b1220;
  --bg-alt: #0e1626;
  --bg-card: #131c30;
  --bg-nav: rgba(11, 18, 32, 0.82);
  --border: #1f2a44;
  --border-light: #17223a;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* ---------- Reset / 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-800);
  background-color: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: inside; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-800);
  transition: color 0.3s;
}
.nav-brand:hover { color: var(--primary); }
.nav-brand .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-600);
  padding: 0.35rem 0;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--text-600);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.icon-btn:hover { background: var(--border-light); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }

/* 移动端菜单 */
.menu-btn { display: none; }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-700);
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--primary); }

/* ---------- Hero 区 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, var(--hero-from, #eff6ff), var(--bg) 50%, var(--hero-from, #eff6ff));
  min-height: 70vh;
  display: flex;
  align-items: center;
}
[data-theme="dark"] .hero { --hero-from: #0c1425; }

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.22) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
}

.hero-blob { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); }
.hero-blob--main {
  top: 0; right: 0; width: 66%; height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.20) 0%, rgba(139, 92, 246, 0.15) 50%, transparent 100%);
  transform: translateX(15%) translateY(-15%);
  animation: mainGradientMove 15s ease-in-out infinite alternate;
}
.hero-blob--secondary {
  bottom: 0; left: 0; width: 50%; height: 100%;
  background: linear-gradient(45deg, rgba(167, 139, 250, 0.15) 0%, rgba(103, 232, 249, 0.10) 50%, transparent 100%);
  transform: translateX(-10%) translateY(10%);
  animation: secondaryGradientMove 12s ease-in-out infinite alternate-reverse;
}
.hero-spotlight {
  position: absolute;
  top: 33%; left: 25%;
  width: 256px; height: 256px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: spotlightMove 25s ease-in-out infinite;
}

@keyframes mainGradientMove {
  0%   { transform: translateX(15%) translateY(-15%) scale(1.1); opacity: 0.2; }
  100% { transform: translateX(-15%) translateY(15%) scale(1.4); opacity: 0.3; }
}
@keyframes secondaryGradientMove {
  0%   { transform: translateX(-10%) translateY(10%) scale(1); opacity: 0.15; }
  100% { transform: translateX(10%) translateY(-10%) scale(1.3); opacity: 0.25; }
}
@keyframes spotlightMove {
  0%   { top: 33%; left: 25%; opacity: 0.15; }
  33%  { top: 50%; left: 75%; opacity: 0.10; }
  66%  { top: 66%; left: 50%; opacity: 0.15; }
  100% { top: 33%; left: 25%; opacity: 0.15; }
}

.hero-content { position: relative; z-index: 10; text-align: center; padding: 4rem 0; }
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-800);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.hero .hero-sub {
  font-size: 1.2rem;
  color: var(--text-600);
  max-width: 42rem;
  margin-inline: auto;
}
.hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary-50); }

/* ---------- 通用区块 ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-800);
  margin-bottom: 0.6rem;
}
.section-head p { color: var(--text-600); max-width: 40rem; margin-inline: auto; }

/* ---------- 技能卡片 ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.skill-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border);
}
.skill-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-800); margin-bottom: 0.75rem; }
.skill-card p { color: var(--text-600); margin-bottom: 1rem; font-size: 0.95rem; }
.skill-card .card-icon { font-size: 1.6rem; margin-bottom: 0.75rem; display: block; }

/* 渐变标签胶囊 */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.pill-blue    { background: linear-gradient(to right, #3b82f6, #2563eb); }
.pill-green   { background: linear-gradient(to right, #22c55e, #16a34a); }
.pill-purple  { background: linear-gradient(to right, #a855f7, #9333ea); }
.pill-orange  { background: linear-gradient(to right, #f97316, #ea580c); }
.pill-pink    { background: linear-gradient(to right, #ec4899, #db2777); }
.pill-cyan    { background: linear-gradient(to right, #06b6d4, #0891b2); }
.pill-gray    { background: linear-gradient(to right, #64748b, #475569); }

/* ---------- 文章卡片 ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border);
}
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-400);
  margin-bottom: 0.7rem;
}
.post-meta .post-tag {
  padding: 0.08rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}
.post-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--text-800); margin-bottom: 0.6rem; line-height: 1.5; }
.post-card h3 a { transition: color 0.25s; }
.post-card h3 a:hover { color: var(--primary); }
.post-card .post-excerpt {
  color: var(--text-600);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.25s ease;
}
.read-more:hover { gap: 0.55rem; }

/* 列表页的文章条目（大卡片） */
.post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.post-item:hover { box-shadow: var(--shadow-card-hover); border-color: var(--border); }
.post-item h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.post-item h3 a { color: var(--text-800); transition: color 0.25s; }
.post-item h3 a:hover { color: var(--primary); }
.post-item .post-excerpt { color: var(--text-600); font-size: 0.95rem; }

/* ---------- 文章详情排版 ---------- */
.page-head {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.page-head h1 { font-size: 1.9rem; font-weight: 700; color: var(--text-800); line-height: 1.4; margin-bottom: 1rem; }
.page-head .page-sub { color: var(--text-600); font-size: 1.05rem; max-width: 42rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-400); margin-bottom: 0.8rem; }
.breadcrumb a:hover { color: var(--primary); }

.post-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 4rem; }

.prose { max-width: 780px; color: var(--text-700); font-size: 1.02rem; line-height: 1.85; }
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-800);
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.prose h3 { font-size: 1.22rem; font-weight: 700; color: var(--text-800); margin: 2rem 0 0.8rem; }
.prose h4 { font-size: 1.05rem; font-weight: 700; color: var(--text-800); margin: 1.6rem 0 0.6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose strong { color: var(--text-800); font-weight: 700; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary-700); }

.prose ul, .prose ol { margin-bottom: 1.1rem; padding-left: 0.25rem; }
.prose ul li, .prose ol li { margin-bottom: 0.45rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 4px solid var(--primary);
  background: var(--primary-50);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-700);
}
.prose blockquote p { margin-bottom: 0.3rem; }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--border-light);
  color: var(--primary-600);
  padding: 0.15em 0.45em;
  border-radius: 0.35rem;
}
[data-theme="dark"] .prose code { color: #93c5fd; background: rgba(59,130,246,.15); }

.prose pre {
  position: relative;
  margin: 1.4rem 0;
  padding: 1.2rem 1.3rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.75rem;
  overflow-x: auto;
  line-height: 1.65;
  font-size: 0.9rem;
}
.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.prose pre .copy-btn {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(255,255,255,0.08);
  border-radius: 0.375rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.prose pre:hover .copy-btn { opacity: 1; }
.prose pre .copy-btn:hover { color: #fff; background: rgba(255,255,255,0.16); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  text-align: left;
}
.prose th { background: var(--bg-alt); font-weight: 700; color: var(--text-800); }
.prose img { border-radius: 0.75rem; margin: 1.4rem auto; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.2rem 0; }
.prose .highlight { background: linear-gradient(transparent 60%, rgba(250, 204, 21, 0.4) 60%); }
.prose em { color: var(--text-600); }

/* 文章页脚：上一篇/下一篇等 */
.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.post-footer a { color: var(--primary); font-weight: 500; }
.post-footer a:hover { text-decoration: underline; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.about-avatar {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.about-avatar img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.2rem; }
.about-avatar h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-800); }
.about-avatar p { color: var(--text-500); font-size: 0.9rem; margin-top: 0.3rem; }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}
.about-card h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-800); margin-bottom: 1rem; }
.about-card h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 0.5rem;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
.about-card p { color: var(--text-600); margin-bottom: 0.8rem; }
.about-card ul { list-style: none; padding: 0; }
.about-card ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-600);
  margin-bottom: 0.6rem;
}
.about-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}
.tech-pills .pill { margin: 0.25rem; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-700); margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--bg);
  color: var(--text-800);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.6rem;
  background: linear-gradient(to right, var(--primary), var(--primary-600));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: all 0.25s ease;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.contact-item .c-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--primary-50);
  border-radius: 0.75rem;
}
.contact-item h3 { font-size: 0.82rem; color: var(--text-400); font-weight: 500; }
.contact-item p { font-size: 1rem; font-weight: 600; color: var(--text-800); word-break: break-all; }
.contact-item p a:hover { color: var(--primary); }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { font-weight: 700; color: var(--text-800); }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { color: var(--text-500); font-size: 0.9rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: var(--text-400); font-size: 0.85rem; margin-top: 1.2rem; text-align: center; width: 100%; }
.footer-icp { color: var(--text-400); font-size: 0.8rem; margin-top: 0.35rem; text-align: center; width: 100%; }
.footer-icp a { color: var(--text-400); text-decoration: none; transition: color .2s; }
.footer-icp a:hover { color: var(--primary); }

/* ---------- 阅读进度条 ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 150;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary); color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-900);
  color: var(--bg);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 300;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-blob, .hero-spotlight { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 分页 / 空状态 ---------- */
.page-tip { text-align: center; color: var(--text-400); padding: 3rem 0; font-size: 0.95rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .skills-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions .theme-btn { display: none; }
  .menu-btn { display: inline-flex; }
  .skills-grid, .posts-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero .hero-sub { font-size: 1.05rem; }
  .section { padding: 3.2rem 0; }
  .section-head h2 { font-size: 1.6rem; }
  .page-head h1 { font-size: 1.55rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
