/* ============================================
   多原系统下载站 - 主样式表
   基于 Windows 11 Fluent Design 风格指南
   ============================================ */

/* ============ 全局重置 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色系 - Fluent Blue */
  --primary: #0078D4;
  --primary-hover: #0069C0;
  --primary-active: #0054A6;
  --primary-light: #50C0E8;
  --primary-bg: #E8F3FC;

  /* 中性色 */
  --bg-page: #F3F3F3;
  --bg-card: #FFFFFF;
  --bg-subtle: #F9F9F9;
  --border: #E5E5E5;
  --border-strong: #D1D1D1;

  /* 文字色 */
  --text-primary: #1A1A1A;
  --text-secondary: #5F5F5F;
  --text-tertiary: #8A8A8A;
  --text-inverse: #FFFFFF;

  /* 功能色 */
  --success: #0F7B3F;
  --success-bg: #E6F4EA;
  --warning: #FFB020;
  --warning-bg: #FFF5E0;
  --error: #C50F0F;
  --error-bg: #FDE7E7;
  --info: #0078D4;
  --info-bg: #E8F3FC;

  /* 阴影 - Fluent Elevation */
  --shadow-2: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-4: 0 2px 4px rgba(0,0,0,0.10);
  --shadow-8: 0 4px 8px rgba(0,0,0,0.12);
  --shadow-16: 0 8px 16px rgba(0,0,0,0.14);
  --shadow-28: 0 14px 28px rgba(0,0,0,0.16);

  /* 圆角 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* 字体 */
  --font-sans: "Microsoft YaHei UI", "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "Courier New", monospace;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* 布局 */
  --nav-height: 60px;
  --max-width: 1200px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--primary-hover); }

img { max-width: 100%; display: block; }

/* ============ 顶部导航栏 ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-4);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  gap: var(--space-xl);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}

.navbar-item {
  padding: 6px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.navbar-item:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.navbar-item.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.navbar-badge {
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 100px;
  margin-left: 4px;
  line-height: 1.4;
}

.navbar-badge.hot {
  background: var(--warning);
}

.navbar-search {
  display: flex;
  align-items: center;
}

.navbar-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.navbar-toggle:hover { background: var(--primary-bg); }

.navbar-toggle svg { width: 24px; height: 24px; color: var(--text-primary); }

/* ============ Hero 区 ============ */
.hero {
  margin-top: var(--nav-height);
  background: linear-gradient(135deg, #0078D4 0%, #0054A6 50%, #003B7A 100%);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px var(--space-lg) 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 600px; }

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-stat-label {
  font-size: 13px;
  opacity: 0.8;
}

.hero-decoration {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-decoration svg {
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: 10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

/* ============ 按钮组件 ============ */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  box-shadow: var(--shadow-4);
}
.btn-primary:active { background: var(--primary-active); }

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-bg); }

.btn-success { background: var(--success); color: white; }
.btn-error { background: var(--error); color: white; }

.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ 标签组件 ============ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-blue { background: var(--info-bg); color: var(--info); }
.tag-green { background: var(--success-bg); color: var(--success); }
.tag-orange { background: var(--warning-bg); color: var(--warning); }
.tag-red { background: var(--error-bg); color: var(--error); }
.tag-gray { background: var(--bg-subtle); color: var(--text-secondary); border: 1px solid var(--border); }

.badge {
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 100px;
  line-height: 1.4;
}
.badge.hot { background: var(--warning); }

/* ============ 主布局 ============ */
.main-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: var(--space-lg);
  align-items: start;
}

/* ============ 左侧边栏 ============ */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  padding-left: var(--space-xs);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.sidebar-link.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-link .badge {
  margin-left: auto;
}

/* ============ 内容区 ============ */
.content { min-width: 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
}
.section-more:hover { color: var(--primary-hover); }

/* ============ 筛选栏 ============ */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.filter-row + .filter-row {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 64px;
  flex-shrink: 0;
}

.filter-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.filter-tag {
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-tag:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-tag.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

/* ============ 系统下载卡片 ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.sys-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.sys-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}

.sys-card:hover {
  box-shadow: var(--shadow-16);
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.sys-card:hover::before { transform: scaleX(1); }

.sys-card-head {
  display: flex;
  align-items: start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.sys-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sys-card-icon svg { width: 28px; height: 28px; }

.sys-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sys-card-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.sys-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  flex: 1;
}

.sys-card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sys-card-meta-item {
  font-size: 12px;
  color: var(--text-tertiary);
}

.sys-card-meta-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.sys-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.sys-card-downloads {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============ 右侧推荐栏 ============ */
.aside { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); }

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.aside-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.aside-title svg { width: 18px; height: 18px; color: var(--primary); }

.rank-list { list-style: none; }

.rank-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s ease;
}

.rank-item:last-child { border-bottom: none; }
.rank-item:hover .rank-name { color: var(--primary); }

.rank-num {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-subtle);
  color: var(--text-tertiary);
}

.rank-item:nth-child(1) .rank-num { background: var(--error); color: white; }
.rank-item:nth-child(2) .rank-num { background: var(--warning); color: white; }
.rank-item:nth-child(3) .rank-num { background: var(--primary); color: white; }

.rank-name {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.rank-count {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* 公告 */
.notice-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.notice-item:last-child { border-bottom: none; }

.notice-date {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ============ 分页 ============ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 var(--space-sm);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============ 回到顶部 ============ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-16);
  transform: translateY(-2px);
}

.back-to-top svg { width: 22px; height: 22px; }

/* ============ 页脚 ============ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .navbar-logo { margin-bottom: var(--space-md); }
.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-link {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.15s ease;
}

.footer-link:hover { color: var(--primary); }

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.8;
}

.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--primary); }

/* ============ 模态弹窗 ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay.show { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-28);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 18px; font-weight: 600; }

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
}

.modal-close:hover { background: var(--bg-subtle); color: var(--text-primary); }
.modal-close svg { width: 20px; height: 20px; }

.modal-body { padding: var(--space-lg); }

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  transition: all 0.15s ease;
}

.download-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
}

.download-info { flex: 1; }
.download-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.download-meta { font-size: 12px; color: var(--text-tertiary); }

/* ============ 搜索高亮 ============ */
mark {
  background: var(--warning-bg);
  color: var(--warning);
  padding: 1px 3px;
  border-radius: 2px;
}

/* ============ 空状态 ============ */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-tertiary);
}

.empty-state svg { width: 64px; height: 64px; margin-bottom: var(--space-md); opacity: 0.4; }
.empty-state h4 { font-size: 18px; margin-bottom: var(--space-sm); color: var(--text-secondary); }
.empty-state p { font-size: 14px; }

/* ============ 详情页 ============ */
.detail-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.detail-breadcrumb a { color: var(--text-secondary); }
.detail-breadcrumb a:hover { color: var(--primary); }

.detail-head-row {
  display: flex;
  gap: var(--space-lg);
  align-items: start;
}

.detail-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon svg { width: 40px; height: 40px; }

.detail-info { flex: 1; }
.detail-info h1 { font-size: 24px; font-weight: 700; margin-bottom: var(--space-sm); }
.detail-tags { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-bottom: var(--space-sm); }
.detail-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.detail-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.detail-table-head {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
}

.detail-table-row {
  display: flex;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: var(--space-lg);
}

.detail-table-row:last-child { border-bottom: none; }

.detail-table-label {
  width: 140px;
  font-size: 14px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.detail-table-value {
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .main-wrap {
    grid-template-columns: 180px 1fr;
  }
  .aside { display: none; }
  .hero-decoration { display: none; }
}

@media (max-width: 768px) {
  .navbar-inner { padding: 0 var(--space-md); gap: var(--space-md); }
  .navbar-search { display: none; }
  .navbar-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: var(--space-xs);
    box-shadow: var(--shadow-16);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 999;
  }
  .navbar-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .navbar-toggle { display: flex; }

  .main-wrap {
    grid-template-columns: 1fr;
    padding: var(--space-md);
  }
  .sidebar { display: none; }

  .hero-inner { padding: 32px var(--space-md); }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: var(--space-md); }
  .hero-stat-number { font-size: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .detail-head-row { flex-direction: column; }

  .filter-label { width: 100%; margin-bottom: var(--space-xs); }
  .filter-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .hero-subtitle { font-size: 14px; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-md); }
  .card-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 18px; }
}

/* ============ 动画 ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.3s ease; }

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

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
}
