/* ============================================================
   seoz.net · 极简白色主题
   白底 + 蓝色强调 + 雪山背景 + 大号水印
   ============================================================ */

:root {
  --bg: #ffffff;
  --text: #111111;
  --text-2: #333333;
  --muted: #777777;
  --faint: #aaaaaa;
  --accent: #0000ff;
  --accent-hover: #1a1aff;
  --accent-dim: rgba(0, 0, 255, 0.08);
  --card-bg: #eef1ff;
  --card-bg-2: #f5f6ff;
  --border: #e5e5e5;
  --border-strong: #cccccc;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1100px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Fira Code", Consolas,
          "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

/* ---------------- 背景层 ---------------- */

.bg-glow {
  position: fixed;
  top: 10%;
  right: 0;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  /* background: radial-gradient(circle, rgba(160, 175, 255, 0.18) 0%, rgba(160, 175, 255, 0.06) 40%, transparent 70%); */
  background: radial-gradient(circle, rgba(160, 175, 255, 0.4) 0%, rgba(160, 175, 255, 0.2) 40%, transparent 70%);
  z-index: -3;
  pointer-events: none;
}

.bg-watermark {
  position: fixed;
  bottom: 0;
  left:20%;
  font-size: 10vw;
  font-weight: 900;
  font-style:italic;
  color: rgb(243, 245, 255);
  z-index: -2;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.bg-mountain {
  position: fixed;
  bottom: -100px;
  right: 0;
  width: 65vw;
  max-width: 1000px;
  z-index: -1;
  pointer-events: none;
}
.bg-mountain img {
  width: 100%;
  display: block;
  opacity: 0.95;
}

/* ---------------- 布局 ---------------- */

.main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 120px;
}

/* ---------------- 顶栏 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.brand:hover { color: var(--text); }
.brand-z { color: var(--accent); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- 侧边菜单 ---------------- */

.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
  z-index: 200;
  transition: right .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 32px 32px;
}
.side-menu.open { right: 0; }

.side-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-link {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 1px;
  transition: color .15s ease, padding-left .15s ease;
}
.side-link:hover {
  color: var(--accent);
  padding-left: 8px;
}
.side-link.active { color: var(--accent); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---------------- 返回按钮 ---------------- */

.back-btn {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0, 0, 255, 0.3);
  transition: background .15s ease, transform .15s ease;
}
.back-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.08);
}

/* 首页不需要返回按钮 */
.home .back-btn { display: none; }

/* ---------------- 页脚 ---------------- */

.site-footer {
  padding: 20px 24px;
  font-size: 12.5px;
  color: var(--muted);
  z-index: 1;
  position: fixed;
  left:0;
  bottom:0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-tagline { color: var(--text-2); }
.footer-bottom { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: var(--accent); }
.footer-social a:hover { color: var(--accent-hover); }

/* ---------------- 通用区块标题 ---------------- */

.page-head {
  margin-bottom: 40px;
}
.page-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.page-title .en {
  color: var(--accent);
  margin-left: 10px;
  font-size: 0.7em;
  letter-spacing: 1px;
}
.page-desc {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14.5px;
}

/* ---------------- 首页 Hero ---------------- */

.hero {
  padding: 100px 0 60px;
  max-width: 700px;
}
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.hero-title {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero-title > span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.hero-title .alt {
  color: var(--accent);
  position: relative;
}
.hero-title .dot {
  color: var(--accent);
  margin: 0 4px;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.95;
  margin-bottom: 36px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.hero-nav a {
  color: var(--text);
  padding: 4px 0;
  transition: color .15s ease;
}
.hero-nav a:hover { color: var(--accent); }
.hero-nav .sep {
  color: var(--faint);
  margin: 0 14px;
  font-weight: 400;
}

/* ---------------- About 页 ---------------- */

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 30px 0;
}
.about-images {
  position: relative;
}
.about-img-main {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--card-bg);
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-img-sub {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 55%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--card-bg-2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.about-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-text { color: var(--text-2); }
.about-text h1,
.about-text h2,
.about-text h3 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.about-text h1 {
  font-size: 28px;
  margin-bottom: 24px;
}
.about-text h2 {
  font-size: 20px;
  margin-bottom: 18px;
  margin-top: 32px;
}
.about-text h3 {
  font-size: 17px;
  margin-bottom: 14px;
  margin-top: 24px;
}
.about-text p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 18px;
}
.about-text ul,
.about-text ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.about-text ul { list-style: disc; }
.about-text ol { list-style: decimal; }
.about-text li {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 8px;
}
.about-text li:last-child { margin-bottom: 0; }
.about-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.about-text a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.about-text strong { color: var(--text); font-weight: 700; }
.about-text code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--card-bg);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--accent);
}
.about-text pre {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  margin-bottom: 18px;
}
.about-text pre code {
  background: transparent;
  padding: 0;
  color: var(--text-2);
}
.about-text blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-left: 0;
  margin-bottom: 18px;
  color: var(--muted);
  font-style: italic;
}
.about-text hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.about-stat {
  text-align: center;
}
.about-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.about-stat-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------------- Skills 页 ---------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.skill-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 255, 0.1);
}
.skill-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.skill-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
}
.skill-card .skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.skill-card .skill-item {
  font-size: 11.5px;
  color: var(--accent);
  background: rgba(0, 0, 255, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ---------------- Works 页 ---------------- */

.works-carousel {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
}
.works-track {
  display: flex;
  gap: 24px;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-card {
  flex: 0 0 calc((100% - 72px) / 4);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}
.work-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #e8ecff, #d0d8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: rgba(0, 0, 255, 0.2);
  overflow: hidden;
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.work-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.work-card-title a { color: var(--text); }
.work-card-title a:hover { color: var(--accent); }
.work-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.work-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
  margin-top: 8px;
  text-align: center;
}
.work-card-btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.works-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}
.works-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
  color: #ffffff;
}
.works-arrow.prev { background: #cccccc; }
.works-arrow.prev:hover { background: #bbbbbb; }
.works-arrow.next { background: var(--text); }
.works-arrow.next:hover { background: #333333; }
.works-arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.works-dots {
  display: flex;
  gap: 8px;
}
.works-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cccccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.works-dot.active {
  background: var(--text);
  transform: scale(1.2);
}

/* ---------------- Notes 列表页 ---------------- */

.note-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: calc(100vh - 400px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.note-list::-webkit-scrollbar { width: 0; height: 0; display: none; }
.note-item {
  padding: 20px 0;
}
.note-item:first-child { padding-top: 10px; }
.note-item-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.note-item-title a { color: var(--text); }
.note-item-title a:hover { color: var(--accent); }
.note-item-excerpt {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.note-item-images {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.note-item-thumb {
  width: 200px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  overflow: hidden;
}
.note-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.read-more-btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}
.page-link {
  font-size: 13.5px;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 500;
  transition: all .15s ease;
}
.page-link:hover { border-color: var(--accent); background: var(--accent-dim); }
.page-link.disabled { color: var(--faint); border-color: var(--border); cursor: not-allowed; pointer-events: none; }
.page-info { font-size: 13.5px; color: var(--muted); }

/* ---------------- Note 详情页 ---------------- */

.article {
  max-width: 780px;
  margin: 0 auto;
}
.article-breadcrumb {
  margin-bottom: 36px;
}
.article-breadcrumb h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}
.article-breadcrumb h1 .en {
  color: var(--accent);
  margin-left: 8px;
  font-size: 0.65em;
  letter-spacing: 1px;
}
.article-breadcrumb p {
  font-size: 13.5px;
  color: var(--muted);
}
.article-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- Prose (Markdown 正文) ---------------- */

.prose { color: var(--text-2); font-size: 15px; line-height: 1.9; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  margin: 32px 0 14px;
  color: var(--text);
  line-height: 1.4;
  font-weight: 700;
}
.prose h1 { font-size: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.prose h2 { font-size: 20px; }
.prose h3 { font-size: 17px; }
.prose p { margin: 14px 0; }
.prose a { border-bottom: 1px dashed var(--accent); }
.prose ul, .prose ol { margin: 14px 0 14px 24px; }
.prose li { margin: 6px 0; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--card-bg-2);
  padding: 12px 18px;
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}
.prose code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
  background: var(--card-bg-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--accent);
}
.prose pre {
  background: #f7f8fc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0;
  overflow-x: auto;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: #333333;
  font-size: 13.5px;
  line-height: 1.75;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 14px;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 9px 14px;
  text-align: left;
}
.prose th { background: var(--card-bg-2); font-weight: 600; }
.prose img { max-width: 100%; border-radius: 8px; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 22px;
}
.article-nav-link { display: flex; flex-direction: column; gap: 4px; max-width: 46%; }
.article-nav-link span { font-size: 12px; color: var(--faint); }
.article-nav-link strong { font-size: 14.5px; color: var(--text); font-weight: 600; line-height: 1.5; }
.article-nav-link:hover strong { color: var(--accent); }
.article-nav-link.next { margin-left: auto; text-align: right; }

/* ---------------- Contact 页 ---------------- */

.contact-form {
  max-width: 640px;
  margin-top: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.1);
}
.form-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.65;
}
.form-full {
  margin-bottom: 24px;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 36px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.submit-btn:hover { background: var(--accent-hover); }

.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.alert-success {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
}
.alert-error {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ---------------- Work 详情页 ---------------- */

.work-detail {
  max-width: 780px;
  margin: 0 auto;
}
.work-detail-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 16px;
}
.work-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.work-detail-tag {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.work-detail-links {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}
.work-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: 30px;
  transition: all .15s ease;
}
.work-detail-link:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ---------------- 空状态 ---------------- */

.empty {
  color: var(--faint);
  padding: 40px 0;
  font-size: 15px;
}

/* ---------------- 错误页 ---------------- */

.error-page {
  text-align: center;
  padding: 80px 0;
}
.error-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
}
.error-desc {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-img-sub { right: 0; bottom: -16px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card { flex: 0 0 calc((100% - 24px) / 2); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .main { padding: 24px 18px 40px; }
  .site-header { padding: 0 18px; height: 56px; }
  .brand { font-size: 20px; }

  /* Hero 更紧凑 */
  .hero { padding: 40px 0 32px; }
  .hero-kicker { font-size: 11px; letter-spacing: 2px; padding: 5px 10px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(28px, 9vw, 40px); line-height: 1.25; margin-bottom: 18px; }
  .hero-sub { font-size: 15px; padding-left: 14px; margin-bottom: 28px; }
  .hero-nav { font-size: 12.5px; }
  .hero-nav .sep { margin: 0 9px; }

  .skills-grid { grid-template-columns: 1fr; }
  .work-card { flex: 0 0 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .article-nav-link, .article-nav-link.next { max-width: 100%; text-align: left; }

  /* 返回按钮放到右下角，避免遮挡正文 */
  .back-btn {
    right: 14px;
    bottom: 14px;
    top: auto;
    transform: none;
    width: 38px;
    height: 38px;
    background: var(--card-bg);
    color: var(--accent);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .back-btn:hover { transform: scale(1.08); }

  .bg-watermark { font-size: 22vw; bottom: 12%; left: 10px; }
  .bg-mountain { bottom: -20px; width: 100vw; opacity: 0.55; }
  .bg-glow { bottom: 10vh; width:90vw; top: initial; }
  .note-item-thumb { width: 140px; }
  .about-stats { gap: 12px; }
  .about-stat-num { font-size: 24px; }

  /* 页脚取消 fixed，改流式 + 加底边和背景，避免叠在雪山上 */
  .site-footer {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 20px 18px;
    text-align: center;
    align-items: center;
    background: var(--bg);
    border-top: 1px solid var(--border);
  }
  .footer-bottom { justify-content: center; gap: 8px; }
}
