/* ===================================================
   教育项目展示平台 - 全局样式 v3.0
   设计语言：知识生长 — 深靛青 + 琥珀金
   =================================================== */

/* --- CSS 变量 --- */
:root {
  /* 主色系：深靛青 */
  --primary: #2D4FBF;
  --primary-dark: #1E3A9E;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(45, 79, 191, 0.16);
  --primary-mid: #4A6FD4;

  /* 点睛色：琥珀金（教育温暖感） */
  --accent: #E8922A;
  --accent-light: #FFF4E6;
  --accent-dark: #C97520;

  /* 语义色 */
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #0891B2;

  /* 中性色系 */
  --bg: #F4F6FB;
  --bg-white: #FFFFFF;
  --bg-subtle: #F8F9FC;
  --card-bg: #FFFFFF;
  --border: #E2E8F4;
  --border-hover: #BDC9E4;
  --border-focus: var(--primary);

  /* 文字色 */
  --text-main: #111827;
  --text-sub: #5A6680;
  --text-light: #9AA3B5;
  --text-inverse: #FFFFFF;

  /* 圆角系统 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* 阴影系统 */
  --shadow-xs: 0 1px 3px rgba(17,24,39,0.05);
  --shadow-sm: 0 2px 8px rgba(17,24,39,0.07);
  --shadow: 0 4px 20px rgba(17,24,39,0.10);
  --shadow-lg: 0 8px 40px rgba(17,24,39,0.14);
  --shadow-xl: 0 16px 60px rgba(17,24,39,0.18);
  --shadow-primary: 0 4px 20px rgba(45,79,191,0.30);
  --shadow-accent: 0 4px 16px rgba(232,146,42,0.28);

  /* 间距 */
  --nav-height: 64px;
  --section-gap: 72px;

  /* 动效 */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }
ul { list-style: none; }

/* --- 布局 --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-wrap { min-height: calc(100vh - var(--nav-height)); padding-top: var(--nav-height); }

/* ===================================================
   动画系统
   =================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-wrap { animation: fadeIn 0.3s ease; }

/* ===================================================
   导航栏 — 更精致的毛玻璃效果
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,244,0.6);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(17,24,39,0.07);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 品牌标志 */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.3px;
}
.nav-brand:hover { opacity: 0.8; }
.nav-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px;
  box-shadow: 0 2px 10px rgba(45,79,191,0.32);
  transition: var(--transition-bounce);
  flex-shrink: 0;
}
.nav-brand:hover .brand-icon { transform: rotate(-6deg) scale(1.06); }
.nav-brand .brand-name {
  display: flex; flex-direction: column; gap: 0;
  line-height: 1.1;
}
.nav-brand .brand-name-main { font-size: 16px; font-weight: 700; color: var(--text-main); }
.nav-brand .brand-name-sub { font-size: 11px; font-weight: 400; color: var(--text-light); letter-spacing: 0; }

/* 导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

/* 导航操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(45,79,191,0.28);
  transition: var(--transition-bounce);
  border: 2.5px solid #fff;
}
.nav-avatar:hover { transform: scale(1.1); box-shadow: var(--shadow-primary); }
.nav-avatar-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
  display: none;
  z-index: 100;
  animation: slideDown 0.18s ease;
}
.nav-avatar-menu.open { display: block; }
.nav-avatar-menu a, .nav-avatar-menu button {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-main);
  width: 100%;
  background: none; border: none;
  cursor: pointer;
  transition: var(--transition);
}
.nav-avatar-menu a:hover, .nav-avatar-menu button:hover {
  background: var(--bg); color: var(--primary);
}
.nav-avatar-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* 移动端 */
.nav-mobile-toggle {
  display: none; cursor: pointer; font-size: 20px;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--text-sub);
  transition: var(--transition);
  border: 1.5px solid var(--border);
}
.nav-mobile-toggle:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }
.mobile-nav-panel {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 999;
  padding: 12px 20px 16px;
  display: none;
  animation: slideDown 0.2s ease;
}
.mobile-nav-panel.open { display: block; }
.mobile-nav-panel a {
  display: flex; align-items: center;
  padding: 11px 10px;
  font-size: 15px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav-panel a:hover { background: var(--bg); color: var(--primary); padding-left: 16px; }
.mobile-nav-panel a.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }

/* ===================================================
   按钮系统
   =================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-accent {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,146,42,0.35);
}

.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text-sub);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text-main); border-color: var(--border-hover); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(0.9); transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 32px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ===================================================
   卡片
   =================================================== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-subtle); }

/* ===================================================
   项目卡片 — 完全重设计
   =================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.project-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.35s ease both;
  position: relative;
}
/* 卡片左侧色条（主色调性） */
.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.22s;
  border-radius: 0 0 0 var(--radius);
}
.project-card:hover::before { background: var(--primary); }

.project-card:nth-child(1) { animation-delay: 0.04s; }
.project-card:nth-child(2) { animation-delay: 0.08s; }
.project-card:nth-child(3) { animation-delay: 0.12s; }
.project-card:nth-child(4) { animation-delay: 0.16s; }
.project-card:nth-child(5) { animation-delay: 0.06s; }
.project-card:nth-child(6) { animation-delay: 0.10s; }

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(45,79,191,0.12);
  border-color: rgba(45,79,191,0.25);
}

.project-card-header {
  padding: 18px 18px 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.project-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, #EEF2FF 0%, #DDE4FF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(45,79,191,0.10);
  transition: var(--transition-bounce);
}
.project-card:hover .project-icon { transform: scale(1.08) rotate(-3deg); }
.project-icon img { width: 100%; height: 100%; object-fit: cover; }

.project-card-info { flex: 1; min-width: 0; }
.project-name {
  font-size: 15px; font-weight: 700;
  color: var(--text-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: var(--transition);
  letter-spacing: -0.2px;
}
.project-card:hover .project-name { color: var(--primary); }
.project-type-label {
  font-size: 12px; color: var(--text-sub); margin-top: 5px;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}

.project-card-body { padding: 0 18px 12px; flex: 1; }
.project-tagline {
  font-size: 13px; color: var(--text-sub);
  line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
}

/* 标签系统 */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 500;
}
.tag-success { background: #DCFCE7; color: #166534; }
.tag-warning { background: #FEF3C7; color: #92400E; }
.tag-danger { background: #FEE2E2; color: #991B1B; }
.tag-secondary { background: #F3F4F6; color: #4B5563; }
.tag-info { background: #CFFAFE; color: #155E75; }
.tag-accent { background: var(--accent-light); color: var(--accent-dark); }

.project-card-footer {
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-subtle);
}
.project-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-light);
}
.project-meta span { display: flex; align-items: center; gap: 3px; }
.project-meta .like-meta { transition: color 0.2s; cursor: pointer; }
.project-meta .like-meta.liked { color: var(--danger); font-weight: 600; }
.project-meta .like-meta:hover { color: var(--danger); }

.project-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 500;
}
.badge-fund { background: #FFF4E6; color: #C05D00; border: 1px solid rgba(232,146,42,0.2); }
.badge-collab { background: #F0FDF4; color: #166534; border: 1px solid rgba(22,163,74,0.2); }

/* ===================================================
   表单
   =================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-control:hover { border-color: var(--border-hover); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,79,191,0.10); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-control.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,0.08); }
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-item, .checkbox-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px;
  transition: var(--transition); user-select: none;
}
.radio-item:hover, .checkbox-item:hover { border-color: var(--primary); color: var(--primary); }
.radio-item.selected, .checkbox-item.selected {
  border-color: var(--primary);
  background: var(--primary-light); color: var(--primary);
}
.radio-item input, .checkbox-item input { display: none; }

/* 文件上传 */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-subtle);
}
.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-area input[type="file"] { display: none; }
.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-text { font-size: 14px; color: var(--text-sub); }
.upload-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* 图片预览 */
.preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.preview-item {
  position: relative;
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.preview-item:hover { transform: scale(1.05); box-shadow: var(--shadow); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove-btn {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.6);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; cursor: pointer;
  opacity: 0; transition: opacity 0.2s;
}
.preview-item:hover .remove-btn { opacity: 1; }

/* ===================================================
   标签选择
   =================================================== */
.tag-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-option {
  padding: 5px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px; cursor: pointer;
  transition: var(--transition); user-select: none;
}
.tag-option:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.tag-option.selected {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 6px var(--primary-glow);
}

/* ===================================================
   搜索栏
   =================================================== */
.search-bar {
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,79,191,0.10), var(--shadow);
}
.search-bar input {
  flex: 1; padding: 12px 18px;
  border: none; outline: none;
  font-size: 14px; background: transparent; color: var(--text-main);
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar button {
  padding: 11px 24px;
  background: var(--primary); color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.search-bar button:hover { background: var(--primary-dark); }

/* ===================================================
   筛选区
   =================================================== */
.filter-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.filter-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 12px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-sub);
  width: 70px; flex-shrink: 0;
}
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px; color: var(--text-sub);
  background: #fff; cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.filter-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 6px var(--primary-glow);
}

/* ===================================================
   Toast
   =================================================== */
.toast-msg {
  position: fixed;
  top: 80px; left: 50%; transform: translateX(-50%) translateY(-14px);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-info { background: var(--text-main); color: #fff; }
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-warning { background: var(--warning); color: #fff; }

/* ===================================================
   模态框
   =================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,15,30,0.52);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-header {
  padding: 22px 24px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.modal-close {
  width: 30px; height: 30px;
  border-radius: 50%; background: var(--bg);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-sub);
  transition: var(--transition);
}
.modal-close:hover { background: #FEE2E2; color: var(--danger); transform: rotate(90deg); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 10px; }

/* ===================================================
   分页
   =================================================== */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 40px;
}
.page-btn {
  min-width: 36px; height: 36px;
  padding: 0 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; background: #fff;
  transition: var(--transition); color: var(--text-sub); font-weight: 500;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.page-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===================================================
   空状态
   =================================================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-sub); }
.empty-icon { font-size: 56px; margin-bottom: 16px; animation: float 3s ease infinite; }
.empty-title { font-size: 17px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.empty-desc { font-size: 14px; margin-bottom: 24px; line-height: 1.7; }

/* ===================================================
   骨架屏
   =================================================== */
.skeleton {
  background: linear-gradient(90deg, #f1f3f6 25%, #e8ebf0 50%, #f1f3f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===================================================
   统计数字
   =================================================== */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-num { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

/* ===================================================
   侧边栏布局
   =================================================== */
.sidebar-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding-top: 24px;
}
.sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 0;
  height: fit-content;
  position: sticky; top: calc(var(--nav-height) + 16px);
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  font-size: 14px; color: var(--text-sub);
  cursor: pointer; transition: var(--transition);
}
.sidebar-item:hover { background: var(--bg); color: var(--text-main); padding-left: 24px; }
.sidebar-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-item .icon { font-size: 18px; }

/* ===================================================
   徽章
   =================================================== */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  line-height: 1.5;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-secondary { background: #F3F4F6; color: #4B5563; }

/* ===================================================
   分隔线
   =================================================== */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ===================================================
   头像
   =================================================== */
.avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-md { width: 44px; height: 44px; font-size: 18px; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; }

/* ===================================================
   Hero 区域 — 重新设计：深靛青 + 几何纹理
   =================================================== */
.hero {
  background:
    radial-gradient(ellipse 80% 70% at 110% -10%, rgba(74,111,212,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at -10% 110%, rgba(45,79,191,0.28) 0%, transparent 60%),
    linear-gradient(150deg, #0F1E5A 0%, #1A3080 35%, #2D4FBF 70%, #3960D0 100%);
  color: #fff;
  padding: 100px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 几何装饰 */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 35%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 65%, rgba(232,146,42,0.12) 0%, transparent 50%);
  pointer-events: none;
}
/* 点阵网格纹理 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232,146,42,0.18);
  border: 1px solid rgba(232,146,42,0.35);
  color: #FFD088;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease both;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 50px; font-weight: 850;
  line-height: 1.15; margin-bottom: 18px;
  letter-spacing: -2px;
  animation: fadeInUp 0.55s ease both;
}
.hero-title .highlight {
  background: linear-gradient(90deg, #FFD088 0%, #FFBA4D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px; opacity: 0.75; margin-bottom: 36px;
  font-weight: 400; line-height: 1.7;
  animation: fadeInUp 0.55s 0.10s ease both;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.hero-subtitle b { opacity: 1; color: rgba(255,255,255,0.92); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero .btn-primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  font-size: 15px; padding: 13px 30px;
  box-shadow: var(--shadow-accent);
}
.hero .btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,146,42,0.40);
}
.hero .btn-outline {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  font-size: 15px; padding: 13px 30px;
  background: rgba(255,255,255,0.08);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex; justify-content: center; gap: 60px;
  margin-top: 52px;
  animation: fadeInUp 0.55s 0.22s ease both;
  position: relative;
}
.hero-stats::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 480px; height: 1px;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
.hero-stat-num {
  font-size: 32px; font-weight: 850;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label { font-size: 13px; opacity: 0.65; font-weight: 400; }
.hero-stats > div { position: relative; }
.hero-stats > div:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -30px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ===================================================
   Footer — 重设计：更有质感
   =================================================== */
.footer {
  background: #0C1233;
  color: rgba(255,255,255,0.5);
  padding: 48px 0 32px;
  font-size: 13px;
  margin-top: 80px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-brand-name {
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 8px;
}
.footer-brand-desc {
  font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6;
  max-width: 380px;
}
.footer-links-col {
  display: flex; flex-direction: column; gap: 6px; text-align: right;
}
.footer-links-col a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: color 0.2s;
  line-height: 1.8;
}
.footer-links-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer a:hover { color: rgba(255,255,255,0.9); }

/* 兼容旧版footer结构 */
.footer-links {
  display: flex; justify-content: center; gap: 20px;
  margin-bottom: 12px;
}
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-links a:hover { color: #fff; }

/* ===================================================
   响应式
   =================================================== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links-col { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-title { font-size: 32px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 15px; }
  .hero { padding: 72px 0 52px; }
  .hero-stats { gap: 32px; }
  .hero-stat-num { font-size: 26px; }
  .hero-stats > div:not(:last-child)::after { right: -16px; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .filter-label { width: auto; }
  .modal-box { width: 95%; }
  .nav-brand .brand-name-sub { display: none; }
}
@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stats > div:not(:last-child)::after { display: none; }
  .hero-badge { font-size: 11px; }
}

/* ===================================================
   工具类
   =================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-sub { color: var(--text-sub); }
.text-light { color: var(--text-light); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }
.w-full { width: 100%; }

/* ===================================================
   公告栏 — 新配色
   =================================================== */
.ann-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: rgba(255,255,255,0.95);
  padding: 9px 0;
  font-size: 13px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ann-bar .close-btn {
  margin-left: 16px; opacity: 0.65; cursor: pointer;
  background: none; border: none; color: #fff; font-size: 16px;
  transition: opacity 0.2s;
}
.ann-bar .close-btn:hover { opacity: 1; }
/* 兼容旧结构 */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  color: #fff; padding: 10px 0;
  font-size: 13px; text-align: center;
}
.announcement-bar a { color: #fff; text-decoration: underline; margin-left: 6px; }

/* ===================================================
   分类标题
   =================================================== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px; font-weight: 750;
  letter-spacing: -0.4px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.section-more {
  font-size: 13px; color: var(--primary); cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; gap: 4px;
  font-weight: 500;
}
.section-more:hover { text-decoration: underline; transform: translateX(2px); }

/* 产品类型颜色 */
.type-miniapp { background: #FCE7F3; color: #9D174D; }
.type-app { background: #DBEAFE; color: #1E40AF; }
.type-website { background: #D1FAE5; color: #065F46; }

/* ===================================================
   滚动条
   =================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 文本选中 */
::selection { background: rgba(45,79,191,0.15); color: var(--primary-dark); }

/* ===================================================
   焦点可见性
   =================================================== */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* ===================================================
   搜索清除按钮
   =================================================== */
.search-bar { position: relative; }
.search-clear-btn {
  display: none;
  width: 28px; height: 28px;
  border: none; border-radius: 50%;
  background: var(--bg); color: var(--text-sub);
  cursor: pointer; font-size: 14px;
  margin-right: 4px; flex-shrink: 0;
  transition: var(--transition);
}
.search-clear-btn.visible { display: flex; align-items: center; justify-content: center; }
.search-clear-btn:hover { background: var(--primary-light); color: var(--primary); }

/* ===================================================
   收藏快捷按钮
   =================================================== */
.fav-quick-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: var(--bg); cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-bounce);
}
.fav-quick-btn:hover { background: #FEF3C7; transform: scale(1.15); }
.fav-quick-btn.faved { background: #FEF3C7; }

/* ===================================================
   骨架屏
   =================================================== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.skeleton-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px; overflow: hidden;
}
.skeleton-card .sk-line { height: 12px; margin-bottom: 10px; border-radius: 6px; }
.skeleton-card .sk-line.w60 { width: 60%; }
.skeleton-card .sk-line.w80 { width: 80%; }
.skeleton-card .sk-line.w40 { width: 40%; }
.skeleton-card .sk-header { display: flex; gap: 14px; margin-bottom: 14px; }
.skeleton-card .sk-icon { width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0; }

/* ===================================================
   已选筛选标签
   =================================================== */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(45,79,191,0.2);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500;
  animation: fadeIn 0.2s ease;
}
.filter-chip button {
  width: 16px; height: 16px;
  border: none; border-radius: 50%;
  background: rgba(45,79,191,0.12);
  color: var(--primary); cursor: pointer; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); padding: 0;
}
.filter-chip button:hover { background: var(--primary); color: #fff; }

/* ===================================================
   列表粘性工具栏
   =================================================== */
.list-toolbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: rgba(244,246,251,0.96);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  margin: -12px 0 8px;
}
.list-toolbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

/* ===================================================
   首页分类快捷入口
   =================================================== */
.cat-chip.active {
  background: rgba(255,255,255,0.96);
  color: var(--primary);
  border-color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}

/* ===================================================
   首页 Tab 粘性
   =================================================== */
.sticky-tabs {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: rgba(244,246,251,0.96);
  backdrop-filter: blur(10px);
  padding-top: 4px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===================================================
   移动端底部操作栏
   =================================================== */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px; gap: 8px;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-action-bar .btn { flex: 1; justify-content: center; font-size: 13px; padding: 10px 8px; }
.mobile-action-bar .btn-primary { flex: 1.4; }

/* ===================================================
   登录引导条
   =================================================== */
.login-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--primary-light), #E8EDFF);
  border: 1px solid rgba(45,79,191,0.16);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.login-banner-text { font-size: 14px; color: var(--text-main); }
.login-banner-text strong { color: var(--primary); }

/* ===================================================
   响应式辅助
   =================================================== */
@media (max-width: 768px) {
  .result-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .result-sort { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .list-toolbar { top: calc(var(--nav-height) - 1px); }
  .sticky-tabs { top: calc(var(--nav-height) - 1px); }
  .mobile-action-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 72px; }
  .nav-brand span { display: none; }
  .search-bar button { padding: 10px 16px; font-size: 13px; }
  .nav-brand .brand-name { display: none; }
  .sticky-tabs { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
}

/* ===================================================
   首页特有：精选项目区块
   =================================================== */
.featured-section {
  padding: 40px 0 0;
}
.featured-label {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(232,146,42,0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ===================================================
   SEO/信任信号区
   =================================================== */
.trust-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-items {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-sub);
}
.trust-item .ti-icon { font-size: 18px; }

/* ===================================================
   Misc
   =================================================== */
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
