/* ============================================
   个人作品集 - 温暖简约风格（Warm Minimal Portfolio）
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700;800&display=swap');

/* --- 设计系统变量 --- */
:root {
  /* 颜色 */
  --bg-primary: #F8F3EA;
  --bg-card: #FFFDF8;
  --text-primary: #2B2B2B;
  --text-secondary: #7A7168;
  --text-tertiary: #B0A89E;
  --border-color: #E6DED2;
  --border-light: #F0EAE0;
  --accent-blue: #3E6D9C;
  --accent-blue-hover: #2D5A85;
  --accent-orange: #B86B3C;
  --accent-orange-light: rgba(184, 107, 60, 0.1);
  --tag-bg: #F2EDE4;
  --tag-text: #7A7168;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.07);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* 字体 */
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* z-index 体系 */
  --z-nav: 100;
  --z-fab: 90;
  --z-back-to-top: 80;
  --z-modal-overlay: 1000;
  --z-modal: 1001;
  --z-toast: 2000;

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* --- 全局重置 & 基础 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 动画 --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 入场动画类 */
.fade-in    { animation: fadeIn 0.6s ease forwards; }
.slide-up   { animation: slideUp 0.6s ease forwards; }
.scale-in   { animation: scaleIn 0.5s ease forwards; }

/* 滚动可见性动画（由 JS 触发） */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 逐项延迟 */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.10s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.20s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.30s; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   导航栏（通用）
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(248, 243, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-base);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-item {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-item.active::after {
  width: 100%;
  background: var(--accent-orange);
}

/* ============================================
   按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.btn-solid {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
}

.btn-solid:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(62, 109, 156, 0.25);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(62, 109, 156, 0.04);
}

.btn-danger {
  background: rgba(220, 60, 60, 0.06);
  border-color: rgba(220, 60, 60, 0.25);
  color: #dc3c3c;
}

.btn-danger:hover {
  background: rgba(220, 60, 60, 0.12);
  border-color: rgba(220, 60, 60, 0.4);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
}

/* ============================================
   输入框 & 表单
   ============================================ */
.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

.input-field:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(62, 109, 156, 0.1);
}

select.input-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7168' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.input-field {
  resize: vertical;
  min-height: 80px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-helper {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin-top: -8px;
}

.field-error {
  font-size: 13px;
  color: #dc3c3c;
  line-height: 1.5;
}

/* 搜索框 */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-bar .search-input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.search-bar .search-input::placeholder {
  color: var(--text-tertiary);
}

.search-bar .search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(62, 109, 156, 0.1);
}

/* ============================================
   标签
   ============================================ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
}

.tag-pill.tag-empty {
  color: var(--text-tertiary);
  font-style: italic;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 分类筛选胶囊 */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(62, 109, 156, 0.04);
}

.filter-pill.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #FFFFFF;
}

.filter-pill.accent {
  background: var(--accent-orange-light);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.filter-pill.accent.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #FFFFFF;
}

/* ============================================
   卡片（通用）
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* ============================================
   分页器
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-2xl);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.page-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.page-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #FFFFFF;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.page-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ============================================
   首页（index.html）
   ============================================ */
.home-page {
  padding-top: 60px; /* navbar height */
}

/* Hero 区 */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  max-width: 720px;
  margin: 0 auto;
}

.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

.hero-name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* 打字机（首页） */
.typewriter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-2xl);
}

.typewriter-prefix {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex: 0 0 18px;
}

.typewriter-prefix-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.typewriter-text {
  color: var(--accent-blue);
  font-weight: 500;
  min-width: 20px;
}

.typewriter-cursor {
  color: var(--accent-blue);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  line-height: 1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 首页 section 通用 */
.home-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--accent-blue-hover);
}

.section-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.section-link:hover::after {
  transform: translateX(3px);
}

/* 精选作品（首页） */
.featured-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.featured-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.featured-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.featured-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-lg);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

.featured-card:hover {
  border-color: var(--border-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.featured-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.featured-desc {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* 首页笔记板块 */
.notes-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.note-preview-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.note-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.note-preview-card:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.note-preview-card {
  cursor: pointer;
}

.note-preview-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.note-preview-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.note-preview-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.note-preview-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* 分类卡片网格（首页分类入口） */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
}

.category-card {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blue);
}

.category-card:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.category-card::after {
  content: '→';
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 16px;
  color: var(--text-tertiary);
  transition: all var(--transition-base);
}

.category-card:hover::after {
  color: var(--accent-blue);
  transform: translateX(4px);
}

.category-icon {
  font-size: 40px;
  margin-bottom: var(--space-md);
  display: block;
}

.category-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.category-count-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* 进度环 */
.progress-ring-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  width: 52px;
  height: 52px;
}

.progress-ring-fill {
  transition: stroke-dashoffset 1s ease;
}

.progress-ring-count {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* 联系区 */
.contact-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.contact-inner {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-base);
}

.contact-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 底部版权 */
.footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--border-light);
}

.visitor-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* 首页错误 */
.home-error {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.home-retry {
  min-width: 120px;
}

/* ============================================
   作品分类页（category.html）& 作品分页（works.html）
   ============================================ */
.category-page,
.works-page,
.notes-page {
  padding-top: 60px; /* navbar height */
  min-height: 100vh;
}

/* 页面头部 Hero */
.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.page-hero-content {
  flex: 1;
  max-width: 600px;
}

.page-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-sm);
}

.page-hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.page-hero-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 480px;
}

/* 筛选 & 搜索工具栏 */
.toolbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.toolbar-search {
  flex-shrink: 0;
}

/* 作品网格 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
}

/* 作品卡片（category.js 动态渲染） */
.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 272px;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255, 253, 248, 0.86) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(43, 43, 43, 0.02);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
  overflow: hidden;
  position: relative;
  cursor: default;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: #D9D0C4;
  box-shadow: 0 6px 8px rgba(43, 43, 43, 0.045);
}

.project-card-clickable {
  cursor: pointer;
}

.project-card-featured {
  border-color: rgba(184, 107, 60, 0.24);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(184, 107, 60, 0.035) 100%);
}

.project-card-featured:hover {
  border-color: rgba(184, 107, 60, 0.34);
}

/* 卡片主体内容区 */
.card-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.project-card-topline {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 14px;
}

.project-kicker {
  min-width: 0;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-featured-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: rgba(184, 107, 60, 0.1);
  color: var(--accent-orange);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.project-name {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.45;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.project-card .tag-pill {
  background: rgba(242, 237, 228, 0.78);
  border: 1px solid rgba(230, 222, 210, 0.82);
  color: #746C63;
}

.project-card .tag-empty {
  color: var(--text-tertiary);
}

.project-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

.project-status.completed {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.15);
}

.project-status.progressing {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.15);
}

.project-status.iterating {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.15);
}

.project-status.pending {
  color: #9a3412;
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.15);
}

/* 卡片底部 */
.card-footer {
  padding: 0 22px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.project-link-btn:hover {
  color: var(--accent-blue-hover);
}

.project-link-arrow {
  transition: transform var(--transition-fast);
}

.project-link-btn:hover .project-link-arrow {
  transform: translateX(3px);
}

.project-link-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* 管理模式下卡片上的按钮 */
.project-actions {
  display: flex;
  gap: 8px;
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-light);
  opacity: 0;
  transition: opacity var(--transition-base);
  justify-content: center;
}

.project-card.admin-mode .project-actions {
  opacity: 1;
}

.project-card.admin-mode {
  cursor: grab;
}

.project-card.admin-mode:active {
  cursor: grabbing;
}

.project-card.dragging {
  opacity: 0.35;
  transform: scale(0.95);
}

.project-card.drag-over {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 2px rgba(62, 109, 156, 0.2), var(--shadow-hover);
  transform: translateY(-3px);
}

/* 分组筛选 Tab 栏 */
.group-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.group-tab {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
}

.group-tab:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.group-tab.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* 作品分组徽章 */
.project-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--tag-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-state .empty-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.works-loading-icon {
  width: 32px;
  height: 32px;
  animation: worksLoadingPulse 1.35s ease-in-out infinite;
  transform-origin: center;
}

@keyframes worksLoadingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .works-loading-icon { animation: none !important; }
}

.empty-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empty-state p {
  font-size: 15px;
}

/* ============================================
   笔记分页（notes.html）
   ============================================ */

/* 笔记页面布局 */
.notes-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
}

.notes-main {
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
}

/* 精选笔记 */
.featured-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-2xl);
  transition: box-shadow var(--transition-base);
}

.featured-note:hover {
  box-shadow: var(--shadow-hover);
}

.featured-note-cover {
  background: linear-gradient(135deg, #E8F0FE 0%, #DCE8F5 100%);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.featured-note-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

.featured-note-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
}

.featured-note-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.featured-note-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.featured-note-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-tertiary);
}

.featured-note-btn {
  align-self: flex-start;
}

/* 笔记网格 */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.note-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 292px;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.note-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  padding: 10px;
  background: linear-gradient(135deg, #F5EEE4 0%, #FFF8EF 100%);
  border: 1px solid rgba(184, 107, 60, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.note-card:hover .note-card-icon {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(184, 107, 60, 0.08);
}

.note-card-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.note-card-featured-label {
  align-self: flex-start;
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.note-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.note-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.note-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  max-height: 56px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.note-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.note-card-read {
  color: var(--accent-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.note-card-read::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.note-card:hover .note-card-read::after {
  transform: translateX(3px);
}

/* ============================================
   分类页顶栏（category.html）
   ============================================ */
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: var(--space-xl) auto var(--space-xl);
  padding: var(--space-md) var(--space-xl);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-blue);
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ============================================
   浮动管理按钮
   ============================================ */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: var(--z-fab);
  box-shadow: var(--shadow-md);
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.fab:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.fab.active {
  background: rgba(220, 60, 60, 0.06);
  border-color: rgba(220, 60, 60, 0.25);
  color: #dc3c3c;
}

.fab-add {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: var(--z-fab);
  box-shadow: var(--shadow-md);
}

.fab-add.visible {
  display: flex;
}

.fab-add:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.fab-folder {
  position: fixed;
  bottom: 156px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: var(--z-fab);
  box-shadow: var(--shadow-md);
}

.fab-folder.visible {
  display: flex;
}

.fab-folder:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ============================================
   管理员侧边栏（category.html）
   ============================================ */
.admin-sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 180px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: var(--space-md);
  z-index: 50;
  display: none;
}

.admin-sidebar.visible {
  display: block;
  animation: sidebarIn 0.3s ease;
}

@keyframes sidebarIn {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.sidebar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  border: 2px dashed transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: default;
  transition: all var(--transition-fast);
  user-select: none;
}

.sidebar-group:hover {
  background: var(--tag-bg);
}

.sidebar-group.active {
  background: rgba(62, 109, 156, 0.08);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.sidebar-group.sidebar-drop-hover {
  border-color: var(--accent-blue);
  background: rgba(62, 109, 156, 0.06);
  box-shadow: 0 0 0 3px rgba(62, 109, 156, 0.1);
}

.sidebar-group-count {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: auto;
  white-space: nowrap;
}

.project-grid.has-sidebar {
  margin-left: 200px;
}

/* ============================================
   返回顶部按钮
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: var(--z-back-to-top);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Toast 通知
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 200px;
  right: 32px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease forwards;
  pointer-events: auto;
  max-width: 280px;
  text-align: center;
}

.toast-success {
  background: var(--bg-card);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: #0f766e;
}

.toast-error {
  background: var(--bg-card);
  border: 1px solid rgba(220, 60, 60, 0.3);
  color: #dc3c3c;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

.toast-out {
  animation: toastOut 0.25s ease forwards;
}

/* ============================================
   模态框
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 43, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal-overlay);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 480px;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.modal-footer {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

.confirm-overlay .modal-box {
  max-width: 380px;
  text-align: center;
}

.confirm-text {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.confirm-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .featured-note {
    grid-template-columns: 1fr;
  }

  .featured-note-cover {
    min-height: 160px;
  }
}

@media (max-width: 900px) {
  .hero-name {
    font-size: 28px;
  }

  .page-hero-title {
    font-size: 28px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .notes-preview-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-search {
    max-width: none;
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 24px;
    --space-2xl: 36px;
    --space-3xl: 48px;
  }

  .nav-inner {
    padding: 0 var(--space-md);
  }

  .nav-links {
    gap: var(--space-md);
  }

  .nav-item {
    font-size: 13px;
  }

  .hero-section {
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
  }

  .hero-avatar {
    width: 80px;
    height: 80px;
  }

  .hero-name {
    font-size: 24px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .page-hero {
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-sm);
  }

  .page-hero-title {
    font-size: 24px;
  }

  .page-hero-sub {
    font-size: 14px;
  }

  .featured-inner {
    padding: var(--space-md);
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: 0 var(--space-md) var(--space-xl);
  }

  .category-card {
    padding: var(--space-lg) var(--space-md);
  }

  .home-section {
    padding: var(--space-xl) var(--space-md);
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: 0 var(--space-md) var(--space-xl);
  }

  .card-body {
    padding: var(--space-md);
  }

  .card-footer {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .works-page,
  .notes-page {
    padding-top: 60px;
  }

  .toolbar {
    padding: 0 var(--space-md) var(--space-md);
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .toolbar-filters::-webkit-scrollbar {
    display: none;
  }

  .search-bar {
    max-width: none;
  }

  .notes-layout {
    padding: 0 var(--space-md) var(--space-xl);
  }

  .featured-note-body {
    padding: var(--space-md);
  }

  .note-card {
    padding: var(--space-md);
  }

  .fab {
    width: 46px;
    height: 46px;
    font-size: 18px;
    bottom: 20px;
    right: 20px;
  }

  .fab-add {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 74px;
    right: 20px;
  }

  .fab-folder {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 124px;
    right: 20px;
    border-radius: var(--radius-sm);
  }

  .admin-sidebar {
    width: 140px;
    top: 62px;
    height: calc(100vh - 80px);
    padding: var(--space-sm);
  }

  .sidebar-group {
    font-size: 13px;
    padding: 8px 10px;
  }

  .project-grid.has-sidebar {
    margin-left: 150px;
  }

  .back-to-top {
    left: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }

  .toast-container {
    right: 16px;
    left: 16px;
    bottom: 140px;
  }

  .toast {
    max-width: none;
  }

  .modal-box {
    padding: var(--space-lg);
  }

  .contact-link {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .pagination {
    gap: 4px;
  }

  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .category-header {
    padding: var(--space-md);
    margin-top: var(--space-md);
  }

  .category-title {
    font-size: 18px;
  }
}

/* ============================================
   工具类
   ============================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* ============================================
   联系页（contact.html）
   ============================================ */
.contact-page {
  padding-top: 60px;
  min-height: 100vh;
}

.contact-hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-lg);
  text-align: center;
}

.contact-title {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 0;
}

.contact-panel {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
}

.contact-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-xl);
  padding: var(--space-xl);
  align-items: stretch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 253, 248, 0.95));
  box-shadow: var(--shadow-md);
}

.contact-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 0;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
}

.contact-row-compact {
  align-items: center;
}

.contact-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-value {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  word-break: break-word;
}

.contact-value-link {
  color: var(--accent-blue);
}

.contact-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.contact-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border-light);
}

.contact-qr-frame {
  display: flex;
  flex: 1;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-light);
}

.contact-qr-image {
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.contact-qr-caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.contact-value-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .contact-panel-inner {
    grid-template-columns: 1fr;
  }

  .contact-list {
    grid-template-rows: none;
  }

  .contact-qr-card {
    height: auto;
  }
}

@media (max-width: 640px) {
  .contact-title {
    font-size: 30px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-label {
    font-size: 13px;
  }

  .contact-value,
  .contact-text {
    font-size: 14px;
  }

  .contact-panel-inner {
    padding: var(--space-lg);
  }

  .contact-qr-frame {
    padding: 18px;
  }
}

/* 作品页项目证据卡片：仅作用于 works.html */
.works-page .project-card {
  min-height: 500px;
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(43, 43, 43, 0.02);
}

.works-page .project-card:hover {
  box-shadow: 0 6px 8px rgba(43, 43, 43, 0.045);
}

.works-page .card-body {
  padding: 28px 28px 22px;
}

.works-page .project-name {
  font-size: 21px;
  line-height: 1.42;
  margin-bottom: 12px;
}

.works-page .project-desc {
  font-size: 15px;
  line-height: 1.72;
  -webkit-line-clamp: 5;
}

.works-page .project-evidence {
  width: 100%;
  margin: 24px 0 0;
  border-top: 1px solid var(--border-light);
}

.works-page .project-evidence-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.works-page .project-evidence dt,
.works-page .project-evidence dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.works-page .project-evidence dt {
  color: var(--text-secondary);
  white-space: nowrap;
}

.works-page .project-evidence dd {
  color: var(--text-primary);
}

.works-page .project-evidence-empty {
  color: var(--text-tertiary) !important;
}

.works-page .project-meta {
  padding-top: 22px;
}

.works-page .card-footer {
  padding: 0 28px 28px;
}

.works-page .project-link-btn {
  min-height: 44px;
  font-size: 15px;
  color: var(--text-primary);
}

.works-page .project-link-btn:hover {
  color: var(--accent-blue-hover);
}

.works-page .project-link-btn-disabled {
  color: var(--text-tertiary);
  cursor: default;
}

.project-form-modal .modal-box {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

@media (max-width: 600px) {
  .works-page .project-card {
    min-height: 0;
  }

  .works-page .card-body {
    padding: 22px 20px 18px;
  }

  .works-page .project-name {
    font-size: 19px;
  }

  .works-page .project-desc {
    font-size: 14px;
  }

  .works-page .project-evidence-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
  }

  .works-page .card-footer {
    padding: 0 20px 22px;
  }
}
