/* ============================================================
   张家界非遗网 — 内页专用样式 pages.css
   栏目页 / 详情页 / 单页 共用：面包屑、页头 Banner、
   列表布局、卡片、分页、文章详情、侧边栏、表单等
   ============================================================ */

/* ======== 面包屑 ======== */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 0.5px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-sub); transition: color .15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.6; }
.breadcrumb-current { color: var(--text-main); font-weight: 500; }

/* ======== 页头 Banner（内页通用） ======== */
.page-banner {
  background: linear-gradient(135deg, #6b2509 0%, #a8450f 45%, #c87a2a 100%);
  color: var(--white);
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}
.page-banner h1 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.page-banner-desc {
  font-size: 14px;
  opacity: 0.82;
  max-width: 600px;
  line-height: 1.8;
}
.page-banner-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-banner-stat strong {
  display: block;
  font-size: 26px;
  color: var(--accent-light);
  font-weight: 500;
}
.page-banner-stat span { font-size: 12px; opacity: 0.7; }

/* ======== 主区通用容器 ======== */
.main-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px;
}
.main-wrap-sm { max-width: 880px; margin: 0 auto; padding: 40px 24px; }

/* ======== 栏目布局：主区 + 侧边栏 ======== */
.column-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.column-main { min-width: 0; }
.column-aside { position: sticky; top: 88px; }

/* ======== 子级 Tab ======== */
.sub-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.sub-tab:hover { color: var(--primary); }
.sub-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

/* ======== 文章列表（带缩略图） ======== */
.article-list { }
.article-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
  transition: background .15s;
}
.article-card:hover { background: var(--bg-light); }
.article-card:hover .article-title { color: var(--primary); }
.article-thumb {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--bg-section) 0%, #e8d5c0 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--accent);
  overflow: hidden;
}
.article-body { min-width: 0; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.article-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}
.article-tag.news { background: #e8f4ff; color: #0066cc; }
.article-tag.research { background: #fde8e8; color: var(--tag-red); }
.article.tag.culture { background: #f0e8ff; color: #6c3a8a; }
.article-date { font-size: 12px; color: var(--text-muted); }
.article-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.5;
  transition: color .18s;
}
.article-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.article-author { font-size: 12px; color: var(--text-muted); }
.article-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }

/* 无图文章列表（紧凑型） */
.text-list { }
.text-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 0.5px dashed var(--border);
  gap: 16px;
  transition: color .15s;
  cursor: pointer;
}
.text-list-item:hover .text-list-title { color: var(--primary); }
.text-list-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.text-list-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.text-list-title {
  font-size: 14px;
  color: var(--text-sub);
  transition: color .15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-list-date { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* ======== 分页 ======== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn,
a.page-num {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 0.5px solid var(--border-mid);
  background: var(--white);
  color: var(--text-sub);
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
a.page-num { min-width: 36px; padding: 0; }
.page-btn:hover:not(:disabled),
a.page-num:hover:not(.page-num-current) { border-color: var(--primary); color: var(--primary); }
.page-btn.active,
a.page-num.page-num-current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  cursor: default;
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis,
.pagination span.page-num { padding: 0 6px; color: var(--text-muted); font-size: 13px; }

/* ======== 侧边栏（通用） ======== */
.aside-block {
  background: var(--bg-light);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.aside-block-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.aside-block-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
}
.aside-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 0.5px dashed var(--border);
  font-size: 13px;
  color: var(--text-sub);
  transition: color .18s;
  cursor: pointer;
}
.aside-link:last-child { border-bottom: none; }
.aside-link:hover { color: var(--primary); }
.aside-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.aside-link-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aside-link-date { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* 排行榜样式 */
.rank-list { }
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px dashed var(--border);
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--bg-section);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-num { background: var(--tag-red); color: #fff; }
.rank-item:nth-child(2) .rank-num { background: #ff7a3d; color: #fff; }
.rank-item:nth-child(3) .rank-num { background: var(--accent); color: #fff; }
.rank-title {
  flex: 1;
  font-size: 13px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s;
}
.rank-title:hover { color: var(--primary); }
.rank-meta { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-sub);
  transition: all .15s;
}
.tag-cloud a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ======== 文章详情页 ======== */
.article-detail {
  background: var(--white);
  padding: 36px 40px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.detail-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.detail-title {
  font-size: 26px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 14px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.detail-meta-item { display: flex; align-items: center; gap: 4px; }
.detail-meta-icon { font-size: 14px; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.detail-tag {
  padding: 3px 10px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  border-radius: 3px;
}

.detail-cover {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, var(--bg-section) 0%, #e8d5c0 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: var(--accent);
  margin-bottom: 24px;
}

.detail-content {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-sub);
}
.detail-content p { margin-bottom: 18px; }
.detail-content h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-main);
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.detail-content h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-main);
  margin: 22px 0 10px;
}
.detail-content img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 16px 0;
}
.detail-content blockquote {
  background: var(--primary-bg);
  border-left: 3px solid var(--primary);
  padding: 12px 18px;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 14px;
}
.detail-content ul, .detail-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.detail-content li { margin-bottom: 6px; }
.detail-content strong { color: var(--text-main); font-weight: 600; }

/* 文章底部 */
.detail-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-share { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.share-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
}
.share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.detail-actions { display: flex; gap: 8px; }
.detail-action-btn {
  padding: 7px 16px;
  border: 0.5px solid var(--border-mid);
  background: var(--white);
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.detail-action-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 上下篇导航 */
.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.detail-nav-item {
  padding: 16px 20px;
  background: var(--bg-light);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .15s;
  cursor: pointer;
}
.detail-nav-item:hover { background: var(--primary-bg); border-color: var(--primary); }
.detail-nav-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.detail-nav-title { font-size: 14px; color: var(--text-main); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-nav-item.next { text-align: right; }

/* ======== 项目详情页 ======== */
.project-hero {
  background: linear-gradient(135deg, #6b2509 0%, #a8450f 55%, #c87a2a 100%);
  color: #fff;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
}
.project-hero-img {
  width: 100%;
  height: 220px;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.project-hero-info h1 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.project-hero-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.project-hero-tag {
  padding: 3px 12px;
  background: rgba(255,255,255,0.15);
  border: 0.5px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  font-size: 12px;
}
.project-hero-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.8;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
  text-align: left;
}
.info-table th {
  background: var(--bg-light);
  color: var(--text-muted);
  font-weight: 500;
  width: 120px;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ======== 传承人详情 ======== */
.inheritor-hero {
  background: var(--bg-light);
  padding: 36px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  border: 0.5px solid var(--border);
}
.inheritor-portrait {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--bg-section) 0%, #dcc5a8 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--accent);
}
.inheritor-info h1 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}
.inheritor-info .skill-line {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 500;
}
.inheritor-info .level-line {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.inheritor-info .desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.85;
}

/* ======== 单页（关于我们系列） ======== */
.single-page {
  background: var(--white);
  padding: 40px 48px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.single-page h1 {
  font-size: 26px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
  text-align: center;
}
.single-page-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.single-page h2 {
  font-size: 19px;
  font-weight: 500;
  color: var(--primary);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.single-page h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  margin: 20px 0 10px;
}
.single-page p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-sub);
  margin-bottom: 16px;
  text-indent: 2em;
}
.single-page ul, .single-page ol {
  padding-left: 32px;
  margin-bottom: 16px;
}
.single-page li { font-size: 15px; color: var(--text-sub); margin-bottom: 8px; line-height: 1.85; }
.single-page strong { color: var(--text-main); font-weight: 600; }
.single-page .no-indent p { text-indent: 0; }

/* 章程条款样式 */
.charter-article {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.charter-article-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}
.charter-article-content { font-size: 14px; color: var(--text-sub); line-height: 1.85; text-indent: 2em; }

/* 机构/会员单位网格 */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.org-card {
  padding: 20px;
  background: var(--bg-light);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all .2s;
}
.org-card:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.org-card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
}
.org-card-name { font-size: 15px; font-weight: 500; color: var(--text-main); margin-bottom: 4px; }
.org-card-role { font-size: 12px; color: var(--text-muted); }

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-light);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .2s;
}
.member-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.member-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 14px; font-weight: 500; color: var(--text-main); margin-bottom: 2px; }
.member-type { font-size: 12px; color: var(--text-muted); }

/* 工作回顾时间线 */
.timeline {
  position: relative;
  padding-left: 28px;
  margin: 24px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 24px 16px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 6px;
}
.timeline-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
}
.timeline-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ======== 商城 ======== */
.mall-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.mall-filter-item {
  padding: 6px 16px;
  background: var(--white);
  border: 0.5px solid var(--border-mid);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all .15s;
}
.mall-filter-item:hover { border-color: var(--primary); color: var(--primary); }
.mall-filter-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-section) 0%, #e8d5c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--accent);
}
.product-info { padding: 14px; }
.product-name { font-size: 14px; font-weight: 500; color: var(--text-main); margin-bottom: 6px; }
.product-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--tag-red);
}
.product-price small { font-size: 11px; font-weight: 400; }
.product-buy {
  padding: 5px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  transition: background .15s;
}
.product-buy:hover { background: var(--primary-light); }

/* ======== 表单 ======== */
.form-section {
  background: var(--white);
  padding: 36px 40px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
}
.form-label .required { color: var(--tag-red); margin-left: 2px; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: var(--white);
  font-family: inherit;
  transition: border-color .2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
}
.form-checkbox input { accent-color: var(--primary); }
.form-submit {
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.form-submit:hover { background: var(--primary-light); }
.form-reset {
  padding: 12px 24px;
  background: var(--white);
  color: var(--text-sub);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 15px;
  cursor: pointer;
  margin-left: 8px;
  transition: all .2s;
}
.form-reset:hover { border-color: var(--primary); color: var(--primary); }

/* 招聘卡片 */
.job-list { }
.job-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: all .2s;
  cursor: pointer;
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.job-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.job-title { font-size: 16px; font-weight: 500; color: var(--text-main); }
.job-salary { font-size: 16px; font-weight: 600; color: var(--tag-red); }
.job-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.job-meta-item { display: flex; align-items: center; gap: 4px; }
.job-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.job-tag {
  padding: 2px 8px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 11px;
  border-radius: 3px;
}

/* 搜索结果 */
.search-box-wrap {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border);
  margin-bottom: 28px;
  text-align: center;
}
.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
}
.search-input {
  flex: 1;
  padding: 12px 18px;
  border: 0.5px solid var(--border-mid);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--primary); }
.search-btn {
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.search-btn:hover { background: var(--primary-light); }
.search-summary {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.search-result-item {
  padding: 18px 0;
  border-bottom: 0.5px solid var(--border);
}
.search-result-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 6px;
  cursor: pointer;
}
.search-result-title:hover { text-decoration: underline; }
.search-result-excerpt {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 6px;
}
.search-result-meta { font-size: 12px; color: var(--text-muted); }
.search-highlight { background: #fff3cd; color: #856404; padding: 0 2px; border-radius: 2px; }

/* ============================================================
   RESPONSIVE — pages.css
   ============================================================ */
@media (max-width: 1024px) {
  .column-layout { grid-template-columns: 1fr; }
  .column-aside { position: static; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .org-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-banner { padding: 36px 16px 40px; }
  .page-banner h1 { font-size: 22px; }
  .page-banner-desc { font-size: 13px; }
  .page-banner-stats { gap: 16px; margin-top: 16px; }
  .page-banner-stat strong { font-size: 22px; }

  .main-wrap { padding: 28px 16px; }

  .article-card { grid-template-columns: 120px 1fr; gap: 14px; padding: 16px 0; }
  .article-thumb { height: 90px; font-size: 28px; }
  .article-title { font-size: 15px; }
  .article-excerpt { display: none; }
  .article-footer { margin-top: 8px; }

  .article-detail { padding: 22px 18px; }
  .detail-title { font-size: 20px; }
  .detail-cover { height: 200px; font-size: 48px; }
  .detail-content { font-size: 14px; }
  .detail-content h2 { font-size: 17px; }
  .detail-nav { grid-template-columns: 1fr; }

  .project-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .project-hero-img { height: 180px; font-size: 60px; }
  .project-hero-info h1 { font-size: 20px; }

  .inheritor-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .inheritor-portrait { height: 200px; font-size: 60px; }

  .single-page { padding: 24px 18px; }
  .single-page h1 { font-size: 21px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img { height: 130px; font-size: 40px; }

  .form-section { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }

  .org-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }

  .sub-tabs { padding-bottom: 0; }
  .sub-tab { padding: 8px 14px; font-size: 13px; }

  .info-table th, .info-table td { padding: 10px 12px; font-size: 13px; }
  .info-table th { width: 90px; }

  .job-card { padding: 16px; }
  .job-card-head { flex-direction: column; gap: 8px; }
  .job-title { font-size: 15px; }
  .job-salary { font-size: 15px; }

  .search-box-wrap { padding: 22px 16px; }
}

@media (max-width: 480px) {
  .page-banner h1 { font-size: 19px; }
  .article-card { grid-template-columns: 1fr; gap: 10px; }
  .article-thumb { height: 140px; }
  .article-title { font-size: 14px; }
  .article-meta { gap: 6px; }
  .article-tag { font-size: 10px; padding: 1px 6px; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-img { height: 100px; font-size: 32px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 14px; }
  .product-buy { padding: 4px 8px; font-size: 11px; }

  .detail-title { font-size: 18px; }
  .detail-meta { font-size: 12px; gap: 10px; }
  .detail-content { font-size: 13.5px; line-height: 1.85; }

  .form-submit, .form-reset { width: 100%; padding: 11px; }
  .form-reset { margin-left: 0; margin-top: 8px; }

  .pagination { gap: 4px; }
  .page-btn, a.page-num { min-width: 32px; height: 32px; padding: 0 8px; font-size: 12px; }
  a.page-num { min-width: 32px; padding: 0; }

  .single-page h1 { font-size: 19px; }
  .single-page p, .single-page li { font-size: 14px; }
}

@media (max-width: 375px) {
  .product-grid { grid-template-columns: 1fr; }
}


/* ===== 以下为静态模板内联样式合并（保证内容区样式完整） ===== */

/* >> 来源 index.html */
:root {
    --primary: #8b3a10;
    --primary-light: #b5521a;
    --primary-bg: #fdf6f0;
    --accent: #c9871f;
    --accent-light: #f0c060;
    --text-main: #1a1209;
    --text-sub: #5a4a3a;
    --text-muted: #9a8878;
    --border: rgba(139,58,16,0.12);
    --border-mid: rgba(139,58,16,0.22);
    --white: #ffffff;
    --bg-light: #faf5ef;
    --bg-section: #f5ede3;
    --tag-red: #c1392b;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 4px rgba(80,30,0,0.08);
    --shadow-md: 0 4px 16px rgba(80,30,0,0.10);
  }

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

  html { font-size: 15px; scroll-behavior: smooth; }

  body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.7;
  }

  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  ul { list-style: none; }

  /* ======== TOP BAR ======== */
  .topbar {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    padding: 0 0;
  }
  .topbar-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .topbar a {
    color: rgba(255,255,255,0.75);
    margin-left: 16px;
    font-size: 12px;
    transition: color .2s;
  }
  .topbar a:hover { color: var(--accent-light); }
  .topbar-sites { display: flex; align-items: center; gap: 4px; }
  .topbar-sites a {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    padding: 2px 8px;
    margin-left: 0;
    font-size: 11px;
    transition: background .2s;
  }
  .topbar-sites a:hover { background: rgba(255,255,255,0.22); }

  /* ======== HEADER ======== */
  .header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
  }
  .header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 40px;
    height: 42px;
    border-radius: var(--radius-md);
    object-fit: contain;
    flex-shrink: 0;
    display: block;
  }
  .logo-text { line-height: 1.2; }
  .logo-text strong { font-size: 18px; font-weight: 700; color: var(--primary); display: block; }
  .logo-text span { font-size: 11px; color: var(--text-muted); }

  /* NAV */
  .nav { flex: 1; }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  .nav-item { position: relative; }
  .nav-item > a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--text-sub);
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
    white-space: nowrap;
  }
  .nav-item > a:hover,
  .nav-item.active > a {
    color: var(--primary);
    background: var(--primary-bg);
  }
  .nav-item.active > a { font-weight: 500; }

  /* dropdown */
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 120px;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 200;
  }
  .nav-item:hover .nav-dropdown { display: block; }
  .nav-dropdown a {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-sub);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: background .15s, color .15s;
  }
  .nav-dropdown a:hover { background: var(--primary-bg); color: var(--primary); }

  .header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .btn-search {
    width: 34px;
    height: 34px;
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: border-color .2s, color .2s;
    font-size: 16px;
  }
  .btn-search:hover { border-color: var(--primary); color: var(--primary); }
  .btn-clue {
    padding: 7px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: background .2s;
    white-space: nowrap;
  }
  .btn-clue:hover { background: var(--primary-light); }

  /* ======== HERO ======== */
  .hero {
    background: linear-gradient(135deg, #6b2509 0%, #a8450f 45%, #c87a2a 100%);
    color: var(--white);
    padding: 64px 24px 72px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
  }
  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 0.5px solid rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }
  .hero-title {
    font-size: 38px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: 1px;
  }
  .hero-title em {
    font-style: normal;
    color: var(--accent-light);
  }
  .hero-desc {
    font-size: 15px;
    opacity: 0.82;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
  }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-btn {
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    cursor: pointer;
  }
  .hero-btn-primary {
    background: var(--white);
    color: var(--primary);
  }
  .hero-btn-primary:hover { background: var(--accent-light); color: var(--primary); }
  .hero-btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
  }
  .hero-btn-outline:hover { background: rgba(255,255,255,0.1); }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hero-stat {
    background: rgba(255,255,255,0.1);
    border: 0.5px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(6px);
  }
  .hero-stat-num {
    font-size: 32px;
    font-weight: 500;
    color: var(--accent-light);
    display: block;
  }
  .hero-stat-label {
    font-size: 13px;
    opacity: 0.75;
    margin-top: 4px;
  }

  /* ======== SECTION COMMON ======== */
  .section { padding: 56px 24px; }
  .section-alt { background: var(--bg-light); }
  .section-inner { max-width: 1160px; margin: 0 auto; }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    border-bottom: 1.5px solid var(--border);
    padding-bottom: 16px;
  }
  .section-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
  }
  .section-more {
    font-size: 13px;
    color: var(--primary);
    transition: color .2s;
  }
  .section-more:hover { color: var(--primary-light); }

  /* ======== QUICK NAV CARDS ======== */
  .quick-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 0;
  }
  .qnav-card {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    cursor: pointer;
  }
  .qnav-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
  }
  .qnav-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--primary-bg);
  }
  .qnav-label { font-size: 14px; font-weight: 500; color: var(--text-sub); }
  .qnav-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

  /* ======== 非遗项目 GRID ======== */
  .project-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .tab-btn {
    padding: 6px 18px;
    border-radius: 20px;
    border: 0.5px solid var(--border-mid);
    background: var(--white);
    color: var(--text-sub);
    font-size: 13px;
    cursor: pointer;
    transition: all .18s;
  }
  .tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .project-card {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
  }
  .project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
  }
  .project-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent);
  }
  .project-img-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--bg-section) 0%, #e8d5c0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent);
  }
  .project-img-placeholder span { font-size: 32px; }
  .project-img-placeholder small { font-size: 11px; color: var(--text-muted); }
  .project-info { padding: 14px; }
  .project-level {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    font-weight: 500;
  }
  .level-world { background: #fff3cd; color: #b77800; }
  .level-national { background: #fde8e8; color: var(--tag-red); }
  .level-province { background: #e8f4ff; color: #0066cc; }
  .level-city { background: #e8f8e8; color: #2a7a2a; }
  .project-name { font-size: 15px; font-weight: 500; color: var(--text-main); margin-bottom: 6px; }
  .project-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

  /* ======== 新闻动态 ======== */
  .news-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
  }
  .news-list { }
  .news-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 0.5px solid var(--border);
    transition: background .15s;
    cursor: pointer;
  }
  .news-item:last-child { border-bottom: none; }
  .news-item:hover .news-title { color: var(--primary); }
  .news-date {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
  }
  .news-date-day { font-size: 22px; font-weight: 500; color: var(--primary); line-height: 1; }
  .news-date-ym { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
  .news-content { flex: 1; }
  .news-title { font-size: 14px; font-weight: 500; color: var(--text-main); line-height: 1.5; margin-bottom: 6px; transition: color .18s; }
  .news-abstract { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
  .news-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--primary-bg);
    color: var(--primary);
    margin-bottom: 6px;
  }

  /* sidebar */
  .sidebar-block {
    background: var(--bg-light);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
  }
  .sidebar-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid var(--border);
  }
  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 0.5px dashed var(--border);
    font-size: 13px;
    color: var(--text-sub);
    transition: color .18s;
    cursor: pointer;
  }
  .sidebar-link:last-child { border-bottom: none; }
  .sidebar-link:hover { color: var(--primary); }
  .sidebar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
  .sidebar-link-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-link-date { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

  /* ======== 传承人 ======== */
  .inheritor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .inheritor-card {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    padding-bottom: 16px;
    transition: box-shadow .2s, transform .2s;
  }
  .inheritor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .inheritor-avatar {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-section) 0%, #dcc5a8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 14px;
  }
  .inheritor-name { font-size: 16px; font-weight: 500; color: var(--text-main); margin-bottom: 6px; }
  .inheritor-skill { font-size: 13px; color: var(--primary); margin-bottom: 4px; }
  .inheritor-level { font-size: 11px; color: var(--text-muted); }

  /* ======== 培训视窗 ======== */
  .training-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .training-card {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: box-shadow .2s, border-color .2s;
    cursor: pointer;
  }
  .training-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
  .training-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: var(--primary-bg);
  }
  .training-name { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
  .training-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
  .training-count { font-size: 12px; color: var(--primary); margin-top: 10px; font-weight: 500; }

  /* ======== 非遗商城 banner ======== */
  .mall-banner {
    background: linear-gradient(135deg, #3a1a05 0%, #7a3010 55%, #a85520 100%);
    border-radius: var(--radius-lg);
    padding: 36px 48px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .mall-banner-text strong {
    display: block;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
  }
  .mall-banner-text p { font-size: 14px; opacity: 0.8; }
  .mall-products {
    display: flex;
    gap: 12px;
  }
  .mall-product {
    background: rgba(255,255,255,0.1);
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    min-width: 80px;
  }
  .mall-product-icon { font-size: 24px; margin-bottom: 6px; }
  .mall-btn {
    background: var(--accent-light);
    color: #4a2000;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    transition: background .2s;
    white-space: nowrap;
  }
  .mall-btn:hover { background: #ffe090; }

  /* ======== 关于我们条带 ======== */
  .about-strip {
    background: var(--primary-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 24px;
  }
  .about-strip-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .about-text h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-main);
  }
  .about-text p { font-size: 14px; color: var(--text-sub); line-height: 1.9; margin-bottom: 20px; }
  .about-links { display: flex; gap: 10px; flex-wrap: wrap; }
  .about-link {
    padding: 7px 18px;
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-sub);
    background: var(--white);
    transition: all .2s;
  }
  .about-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
  .about-contact { }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .contact-item {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
  }
  .contact-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
  .contact-value { font-size: 14px; font-weight: 500; color: var(--text-main); }

  /* ======== FOOTER ======== */
  .footer {
    background: #2a1005;
    color: rgba(255,255,255,0.65);
    padding: 48px 24px 24px;
  }
  .footer-inner {
    max-width: 1160px;
    margin: 0 auto;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 220px repeat(4, 1fr);
    gap: 28px;
    padding-bottom: 32px;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
  }
  .footer-brand .logo-text strong { color: var(--accent-light); font-size: 16px; }
  .footer-brand .logo-text span { color: rgba(255,255,255,0.4); }
  .footer-brand p { font-size: 13px; margin-top: 12px; line-height: 1.8; color: rgba(255,255,255,0.5); }
  .footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
  }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color .18s;
  }
  .footer-col ul li a:hover { color: var(--accent-light); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
  }
  .footer-bottom a { color: rgba(255,255,255,0.45); }
  .footer-bottom a:hover { color: var(--accent-light); }

  /* ======== RESPONSIVE ======== */
  @media (max-width: 1024px) {
    .project-grid, .inheritor-grid, .training-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-nav { grid-template-columns: repeat(3, 1fr); }
    .news-layout { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
  }

  /* ======== TABLET 768px ======== */
  @media (max-width: 768px) {
    .topbar .topbar-info { display: none; }
    .topbar-inner { justify-content: flex-end; }

    /* Hero — reorder: stats above, text below on mobile */
    .hero { padding: 36px 16px 44px; }
    .hero-inner { flex-direction: column-reverse; }
    .hero-inner > .hero-right { width: 100%; margin-bottom: 24px; }
    .hero-inner > .hero-left { width: 100%; }
    .hero-title { font-size: 26px; }
    .hero-desc { font-size: 14px; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
    .hero-stat { padding: 12px 8px; }
    .hero-stat-num { font-size: 24px; }
    .hero-stat-label { font-size: 11px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-btn { width: 100%; text-align: center; }

    /* Section */
    .section { padding: 40px 16px; }
    .section-title { font-size: 19px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Quick Nav */
    .quick-nav { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .qnav-card { padding: 14px 8px; }
    .qnav-icon { width: 40px; height: 40px; font-size: 18px; }
    .qnav-label { font-size: 13px; }
    .qnav-sub { display: none; }

    /* Project */
    .project-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .project-img-placeholder { height: 120px; }
    .project-info { padding: 10px; }
    .project-name { font-size: 13px; }
    .project-desc { display: none; }
    .project-level { font-size: 10px; padding: 1px 6px; }
    .project-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
    .project-tabs::-webkit-scrollbar { display: none; }

    /* Inheritor */
    .inheritor-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .inheritor-avatar { height: 140px; font-size: 38px; }
    .inheritor-name { font-size: 14px; }

    /* Training */
    .training-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .training-card { padding: 16px 12px; }
    .training-icon { width: 46px; height: 46px; font-size: 22px; }
    .training-name { font-size: 14px; }
    .training-desc { display: none; }
    .training-count { font-size: 11px; }

    /* Mall Banner */
    .mall-banner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
    .mall-banner-text strong { font-size: 20px; }
    .mall-products { display: none; }
    .mall-btn { width: 100%; text-align: center; }

    /* About Strip */
    .about-strip-inner { grid-template-columns: 1fr; gap: 28px; }
    .about-text h2 { font-size: 19px; }
    .about-text p { font-size: 13px; }
    .about-links { gap: 8px; }
    .about-link { padding: 6px 14px; font-size: 12px; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

    /* News */
    .news-item { gap: 12px; }
    .news-date { width: 48px; height: 48px; }
    .news-date-day { font-size: 18px; }
    .news-date-ym { font-size: 9px; }
    .news-title { font-size: 13px; }
    .news-abstract { display: none; }

    /* Header */
    .header-inner { gap: 16px; padding: 0 16px; }
    .header-actions .btn-clue { display: none; }
    .nav-list { display: none; }
  }

  /* ======== SMALL MOBILE 480px ======== */
  @media (max-width: 480px) {
    /* Topbar */
    .topbar { font-size: 11px; }
    .topbar-inner { padding: 5px 12px; }

    /* Hero */
    .hero { padding: 28px 14px 36px; }
    .hero-tag { font-size: 11px; padding: 3px 10px; }
    .hero-title { font-size: 22px; margin-bottom: 12px; }
    .hero-desc { font-size: 13px; margin-bottom: 24px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hero-stat { padding: 12px 8px; }
    .hero-stat-num { font-size: 22px; }
    .hero-stat-label { font-size: 11px; }

    /* Section */
    .section { padding: 32px 14px; }
    .section-inner { padding: 0; }
    .section-head { margin-bottom: 20px; }
    .section-title { font-size: 17px; }
    .section-title::before { height: 18px; width: 3px; }
    .section-more { font-size: 12px; }

    /* Quick Nav */
    .quick-nav { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .qnav-card { padding: 10px 4px; border-radius: 10px; }
    .qnav-icon { width: 34px; height: 34px; font-size: 16px; margin-bottom: 6px; }
    .qnav-label { font-size: 11px; }

    /* Project */
    .project-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .project-img-placeholder { height: 100px; font-size: 28px; }
    .project-img-placeholder span { font-size: 26px; }
    .project-img-placeholder small { display: none; }
    .project-info { padding: 8px; }
    .project-level { font-size: 9px; padding: 1px 5px; margin-bottom: 5px; }
    .project-name { font-size: 12px; }

    /* Inheritor */
    .inheritor-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .inheritor-avatar { height: 120px; font-size: 32px; }
    .inheritor-name { font-size: 13px; }
    .inheritor-skill { font-size: 11px; }
    .inheritor-level { font-size: 10px; }

    /* Training */
    .training-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .training-card { padding: 14px 8px; }
    .training-icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 10px; }
    .training-name { font-size: 13px; margin-bottom: 6px; }
    .training-count { font-size: 10px; }

    /* Mall Banner */
    .mall-banner { border-radius: 10px; padding: 20px 14px; }
    .mall-banner-text strong { font-size: 17px; }
    .mall-banner-text p { font-size: 12px; }
    .mall-btn { padding: 10px 20px; font-size: 13px; }

    /* About Strip */
    .about-strip { padding: 28px 14px; }
    .about-text h2 { font-size: 17px; margin-bottom: 10px; }
    .about-text p { font-size: 12px; margin-bottom: 14px; }
    .about-links { gap: 6px; }
    .about-link { padding: 5px 12px; font-size: 11px; }
    .contact-grid { grid-template-columns: 1fr; gap: 8px; }
    .contact-item { padding: 10px 12px; }
    .contact-value { font-size: 13px; }

    /* Footer */
    .footer { padding: 32px 14px 16px; }
    .footer-top { grid-template-columns: 1fr; gap: 20px; }
    .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
    .footer-col ul li { margin-bottom: 6px; }
    .footer-col ul li a { font-size: 12px; }
    .footer-bottom { font-size: 11px; }

    /* News */
    .news-item { padding: 12px 0; gap: 10px; }
    .news-date { width: 44px; height: 44px; flex-shrink: 0; }
    .news-date-day { font-size: 16px; }
    .news-date-ym { font-size: 8px; }
    .news-title { font-size: 12px; }
    .news-tag { font-size: 9px; }

    /* Sidebar */
    .sidebar-block { padding: 14px; margin-bottom: 14px; }
    .sidebar-title { font-size: 13px; margin-bottom: 12px; }
    .sidebar-link { padding: 7px 0; font-size: 12px; }
    .sidebar-link-title { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

    /* Header */
    .logo-text strong { font-size: 15px; }
    .logo-text span { display: none; }
    .logo-icon { width: 34px; height: 36px; }
  }

  /* ======== EXTRA SMALL 375px ======== */
  @media (max-width: 375px) {
    .hero-title { font-size: 20px; }
    .hero-stat-num { font-size: 20px; }
    .quick-nav { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .project-grid { grid-template-columns: 1fr; }
    .inheritor-grid { grid-template-columns: 1fr 1fr; }
    .training-grid { grid-template-columns: 1fr 1fr; }
  }

  /* ======== MOBILE MENU OVERLAY ======== */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 98;
    backdrop-filter: blur(2px);
  }
  .nav-overlay.active { display: block; }

  /* ======== MOBILE MENU PANEL ======== */
  .mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: border-color .2s;
  }
  .mobile-menu-btn:hover { border-color: var(--primary); }
  .mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-sub);
    border-radius: 1px;
    transition: transform .25s, opacity .25s;
  }
  .mobile-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Mobile nav panel */
  .nav-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    z-index: 200;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .nav-panel.open { transform: translateX(0); }
  .nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 0.5px solid var(--border);
    background: var(--primary);
    color: var(--white);
  }
  .nav-panel-title { font-size: 15px; font-weight: 500; }
  .nav-panel-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
  }
  .nav-panel-close:hover { background: rgba(255,255,255,0.25); }
  .nav-panel-section {
    padding: 8px 0;
    border-bottom: 0.5px solid var(--border);
  }
  .nav-panel-section:last-child { border-bottom: none; }
  .nav-panel-section-title {
    padding: 6px 16px 4px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .nav-panel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-sub);
    cursor: pointer;
    transition: background .15s, color .15s;
  }
  .nav-panel-item:hover { background: var(--primary-bg); color: var(--primary); }
  .nav-panel-item.primary { color: var(--primary); font-weight: 500; background: var(--primary-bg); }
  .nav-panel-arrow { font-size: 12px; color: var(--text-muted); transition: transform .2s; }
  .nav-panel-item.expanded .nav-panel-arrow { transform: rotate(90deg); }

  /* Sub-items */
  .nav-panel-sub {
    display: none;
    background: var(--bg-light);
    padding: 4px 0;
  }
  .nav-panel-item.expanded + .nav-panel-sub { display: block; }
  .nav-panel-sub-item {
    padding: 10px 16px 10px 28px;
    font-size: 14px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, color .15s;
  }
  .nav-panel-sub-item:hover { background: var(--primary-bg); color: var(--primary); }
  .nav-panel-sub-item::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }

  .nav-panel-footer {
    padding: 16px;
    background: var(--bg-light);
    border-top: 0.5px solid var(--border);
  }
  .nav-panel-footer-btns { display: flex; gap: 8px; }
  .nav-panel-footer-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
    font-weight: 500;
  }
  .nav-panel-footer-btn.primary {
    background: var(--primary);
    color: var(--white);
  }
  .nav-panel-footer-btn.secondary {
    background: var(--accent);
    color: var(--white);
  }

  @media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-panel { display: block; }
  }

  /* ======== BACK TO TOP BUTTON ======== */
  .back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 58, 16, 0.35);
    z-index: 90;
    font-size: 18px;
    transition: opacity .3s, transform .3s, background .2s;
    opacity: 0;
    transform: translateY(12px);
  }
  .back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .back-to-top:hover { background: var(--primary-light); }
  .back-to-top:active { transform: scale(0.92); }

  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .back-to-top {
      bottom: calc(24px + env(safe-area-inset-bottom));
      right: calc(24px + env(safe-area-inset-right));
    }
  }

  /* ======== HERO GRID SUB-CLASSES ======== */
  .hero-left { }
  .hero-right { }

  /* ======== HERO SECTION: RIGHT COL STATS ======== */
  .hero .hero-inner > .hero-right { display: flex; align-items: center; justify-content: center; }

  /* ======== SAFE AREA INSET for notched phones ======== */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .nav-panel { padding-bottom: env(safe-area-inset-bottom); }
  }

/* >> 来源 inheritor-detail.html */
.related-projects { margin: 32px 0 24px; }
  .related-projects h2 { font-size: 20px; font-weight: 500; color: var(--text-main); margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--primary); }
  .related-project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .related-project-card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 16px 14px; text-align: center; transition: box-shadow .2s, transform .2s; cursor: pointer; }
  .related-project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
  .related-project-icon { font-size: 40px; margin-bottom: 8px; }
  .related-project-name { font-size: 14px; font-weight: 500; color: var(--text-main); margin-bottom: 4px; }
  .related-project-level { font-size: 11px; color: var(--text-muted); }
  @media (max-width: 768px) { .related-project-grid { grid-template-columns: repeat(2, 1fr); } }

/* >> 来源 inheritors.html */
.inheritor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .inheritor-card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-align: center; padding-bottom: 16px; transition: box-shadow .2s, transform .2s; cursor: pointer; }
  .inheritor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .inheritor-avatar { width: 100%; height: 180px; background: linear-gradient(135deg, var(--bg-section) 0%, #dcc5a8 100%); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--accent); margin-bottom: 14px; }
  .inheritor-name { font-size: 16px; font-weight: 500; color: var(--text-main); margin-bottom: 6px; }
  .inheritor-skill { font-size: 13px; color: var(--primary); margin-bottom: 4px; }
  .inheritor-level { font-size: 11px; color: var(--text-muted); }
  @media (max-width: 1024px) { .inheritor-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 768px) { .inheritor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .inheritor-avatar { height: 140px; font-size: 36px; } }

/* >> 来源 project-detail.html */
.related-inheritors { margin: 32px 0 24px; }
  .related-inheritors h2 { font-size: 20px; font-weight: 500; color: var(--text-main); margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--primary); }
  .related-inheritor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .related-inheritor-card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 20px 16px; text-align: center; transition: box-shadow .2s, transform .2s; cursor: pointer; }
  .related-inheritor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .related-inheritor-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg, var(--bg-section) 0%, #dcc5a8 100%); display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--accent); }
  .related-inheritor-name { font-size: 15px; font-weight: 500; color: var(--text-main); margin-bottom: 4px; }
  .related-inheritor-skill { font-size: 12px; color: var(--primary); margin-bottom: 4px; }
  .related-inheritor-level { font-size: 11px; color: var(--text-muted); }
  @media (max-width: 768px) { .related-inheritor-grid { grid-template-columns: repeat(2, 1fr); } }

/* >> 来源 projects.html */
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 0; }
  .project-card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; cursor: pointer; }
  .project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .project-img-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, var(--bg-section) 0%, #e8d5c0 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--accent); }
  .project-img-placeholder span { font-size: 32px; }
  .project-img-placeholder small { font-size: 11px; color: var(--text-muted); }
  .project-info { padding: 14px; }
  .project-level { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; font-weight: 500; }
  .level-world { background: #fff3cd; color: #b77800; }
  .level-national { background: #fde8e8; color: var(--tag-red); }
  .level-province { background: #e8f4ff; color: #0066cc; }
  .level-city { background: #e8f8e8; color: #2a7a2a; }
  .project-name { font-size: 15px; font-weight: 500; color: var(--text-main); margin-bottom: 6px; }
  .project-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  @media (max-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .project-img-placeholder { height: 120px; } .project-img-placeholder span { font-size: 24px; } .project-name { font-size: 14px; } }
  @media (max-width: 480px) { .project-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* >> 来源 training.html */
.train-meta-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
  .train-instructor { color: var(--primary); font-weight: 500; }
  .train-deadline { color: var(--tag-red); }
  .enroll-block { text-align: center; }
  .enroll-block p { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin-bottom: 14px; }
  .enroll-btn { display: block; padding: 12px 14px; background: #e8a400; color: #fff; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-align: center; transition: background .2s; }
  .enroll-btn:hover { background: #c9871f; }

/* ===== 模板标签化后图片适配 ===== */
.project-img-placeholder { position: relative; overflow: hidden; }
.project-img-placeholder > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.inheritor-avatar { overflow: hidden; }
.inheritor-avatar > img { width: 100%; height: 100%; object-fit: cover; }
.news-content .news-title { display: block; color: var(--text-main); transition: color .15s; }
.news-content .news-title:hover { color: var(--primary); }
a.project-card, a.inheritor-card, a.training-card { text-decoration: none; color: inherit; display: block; }
a.project-card:hover, a.inheritor-card:hover, a.training-card:hover { text-decoration: none; }
a.sidebar-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
a.sidebar-link:hover .sidebar-link-title { color: var(--primary); }
.tab-btn { text-decoration: none; }
a.tab-btn:hover { text-decoration: none; }
