/* ============================================================
   spectrum-detail 页面美化覆盖层
   设计方向：新中式雅致 · 宣纸肌理 · 印章纹装饰
   配色基线：global.css 赭石 #8B4513 + 茶金 #C9A96E + 米白 #FAF7F2
   ============================================================ */

/* --- 全局页面肌理 --- */
.detail-page {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 169, 110, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 69, 19, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(139, 69, 19, 0.015) 1px, rgba(139, 69, 19, 0.015) 2px),
    #FAF7F2;
}

/* --- Hero 区强化 --- */
.spectrum-hero {
  border-radius: 6px;
  box-shadow:
    0 8px 32px rgba(139, 69, 19, 0.25),
    inset 0 1px 0 rgba(201, 169, 110, 0.4);
  background:
    linear-gradient(135deg, #6B3410 0%, #8B4513 35%, #A0522D 65%, #6B3410 100%);
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.hero-title {
  font-size: 34px;
  letter-spacing: 6px;
  position: relative;
  padding-left: 18px;
}
.hero-title::before {
  content: '宗';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(201, 169, 110, 0.7);
  border: 1px solid rgba(201, 169, 110, 0.5);
  padding: 2px 4px;
  border-radius: 2px;
  font-family: 'STKaiti', 'KaiTi', serif;
}

.surname-seal {
  border: 4px double rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, #D4B87F, #C9A96E);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  position: relative;
}
.surname-seal::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

/* --- 面包屑 --- */
.breadcrumb {
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 1px;
}

/* --- 卡片统一 --- */
.detail-section,
.side-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFAF5 100%);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(139, 69, 19, 0.04),
    0 0 0 1px rgba(201, 169, 110, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.detail-section:hover,
.side-card:hover {
  box-shadow:
    0 4px 16px rgba(139, 69, 19, 0.07),
    0 0 0 1px rgba(201, 169, 110, 0.1);
}

/* --- 章节标题装饰 --- */
.section-header {
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
  position: relative;
}
.section-header::before {
  content: '';
  position: absolute;
  left: -4px;
  bottom: -1px;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #C9A96E);
}
.section-header::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 10px;
  width: 32px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #C9A96E 0, #C9A96E 3px, transparent 3px, transparent 6px);
}

.section-title {
  font-family: 'STKaiti', 'KaiTi', 'SimSun', serif !important;
  font-size: 19px !important;
  color: #5D3A1A !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  position: relative !important;
  padding: 0 0 0 18px !important;
  margin-bottom: 14px !important;
  border-bottom: none !important;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #C9A96E, #8B4513);
  border-radius: 2px;
}
.section-title::after {
  display: none !important;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #C9A96E, #8B4513);
  border-radius: 2px;
}

.side-title {
  font-family: 'STKaiti', 'KaiTi', 'SimSun', serif;
  font-size: 17px;
  color: #5D3A1A;
  font-weight: 600;
  letter-spacing: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
  position: relative;
}
.side-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 20px;
  height: 2px;
  background: #C9A96E;
}

/* --- 本谱介绍 --- */
.intro-text {
  font-family: 'STSong', 'SimSun', serif;
  color: #4A3728;
  letter-spacing: 0.5px;
  text-indent: 2em;
  position: relative;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.05) 0%, transparent 100%);
  border-radius: 6px;
  border-left: 3px solid rgba(201, 169, 110, 0.5);
  border-right: 3px solid rgba(201, 169, 110, 0.5);
}

.section-badge {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.3);
  font-family: 'STKaiti', 'KaiTi', serif;
}

/* --- 信息条 --- */
.info-strip-card {
  background: linear-gradient(135deg, #FDF5E8 0%, #FBF0DC 100%);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.info-col-label {
  font-family: 'STSong', 'SimSun', serif;
  color: #8B6914;
  font-weight: 500;
  letter-spacing: 1px;
}
.info-col-value {
  color: #3D2B1F;
  font-weight: 600;
  letter-spacing: 1px;
}
.info-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.6), transparent);
  margin: 0 18px;
}

/* --- 统计高亮卡 --- */
.stats-highlight-card {
  background: linear-gradient(135deg, #FBF0DC 0%, #FDFAF5 100%);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 12px;
  padding: 20px 12px;
  position: relative;
}
.stats-highlight-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(201, 169, 110, 0.25);
  border-radius: 9px;
  pointer-events: none;
}
.sh-item {
  position: relative;
  z-index: 1;
}
.sh-num {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #8B4513, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.sh-label {
  font-family: 'STSong', 'SimSun', serif;
  color: #8B7E6E;
  letter-spacing: 1px;
}

/* --- 数据统计 9 宫格 --- */
.data-stat-grid {
  gap: 10px;
}
.data-stat-item {
  background: linear-gradient(145deg, #FFFFFF 0%, #FAF3E3 100%);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.data-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--item-accent, #C9A96E);
  opacity: 0.6;
}
.data-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}
.data-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 16px;
  border: 1px solid currentColor;
  box-sizing: border-box;
  opacity: 0.9;
}
.data-stat-label {
  font-size: 11px;
  color: #8B7E6E;
  margin-bottom: 3px;
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.data-stat-num {
  font-size: 14px;
  font-weight: 700;
  color: #5D3A1A;
  font-family: 'Georgia', serif;
}

/* --- 家族工具 --- */
.family-tool-grid .ft-item {
  padding: 14px 4px 10px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}
.family-tool-grid .ft-item:hover {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(139, 69, 19, 0.03) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(139, 69, 19, 0.08);
}
.family-tool-grid .ft-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid currentColor;
  box-sizing: border-box;
  opacity: 0.9;
  position: relative;
}
.family-tool-grid .ft-name {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 13px;
  color: #5D3A1A;
  font-weight: 500;
  letter-spacing: 1px;
}

/* --- 族人休闲 --- */
.game-item {
  background: linear-gradient(135deg, #FDF5E8 0%, #FFFFFF 100%);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 14px;
  padding: 14px 8px 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-item::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(7, 193, 96, 0.7);
}
.game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.1);
  border-color: rgba(201, 169, 110, 0.5);
}
.game-ico-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.3);
  background: linear-gradient(145deg, #FFFFFF, #FDFAF5);
  margin-bottom: 8px;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.08);
}
.game-name {
  font-family: 'STKaiti', 'KaiTi', serif;
  color: #5D3A1A;
  letter-spacing: 1px;
}
.game-badge {
  background: linear-gradient(135deg, #07C160, #06AD56);
  box-shadow: 0 2px 4px rgba(7, 193, 96, 0.3);
}

/* --- 基本信息列表 --- */
.info-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(201, 169, 110, 0.2);
  font-size: 13px;
  transition: background 0.2s;
}
.info-list li:hover {
  background: rgba(201, 169, 110, 0.04);
  margin: 0 -4px;
  padding: 10px 4px;
  border-radius: 4px;
}
.info-list .label {
  color: #8B7E6E;
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 1px;
}
.info-list .value {
  color: #3D2B1F;
  font-weight: 600;
}

/* --- 操作按钮组 --- */
.action-btn {
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 8px;
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 2px;
  transition: all 0.25s;
  background: linear-gradient(135deg, #FFFFFF, #FDFAF5);
  color: #5D3A1A;
  font-weight: 500;
}
.action-btn:hover {
  border-color: #8B4513;
  color: #8B4513;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
  transform: translateY(-1px);
}
.action-btn.primary.view-tree-btn {
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-family: 'STKaiti', 'KaiTi', serif;
  letter-spacing: 3px;
}

/* --- 权限徽章 --- */
.perm-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'STSong', serif;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.perm-public {
  background: linear-gradient(135deg, #5D875C, #4A6F49);
  color: #fff;
}
.perm-vip {
  background: linear-gradient(135deg, #D4B87F, #B8956A);
  color: #fff;
}
.perm-private {
  background: linear-gradient(135deg, #8B4513, #6B3410);
  color: #fff;
}

/* --- 公告栏 --- */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ann-item {
  background: linear-gradient(135deg, #FDF5E8 0%, #FFFFFF 100%);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-left: 3px solid #C9A96E;
  border-radius: 8px;
  padding: 14px 18px;
  transition: box-shadow 0.2s;
}
.ann-item:hover {
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
}
.ann-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ann-title {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 16px;
  font-weight: 600;
  color: #5D3A1A;
  letter-spacing: 1px;
}
.ann-top-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: linear-gradient(135deg, #B35D5D, #8B4513);
  color: #fff;
  border-radius: 3px;
  font-family: 'STSong', serif;
  letter-spacing: 1px;
}
.ann-content {
  color: #5D4E3F;
  font-size: 14px;
  line-height: 1.8;
  font-family: 'STSong', 'SimSun', serif;
  margin-bottom: 8px;
}
.ann-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9B8E7E;
  font-family: 'STSong', serif;
}

/* --- 捐款 --- */
.donation-banner {
  background: linear-gradient(135deg, #6B3410 0%, #8B4513 50%, #6B3410 100%);
  color: #FDF5E8;
  padding: 14px 22px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
  font-family: 'STKaiti', 'KaiTi', serif;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.donation-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 20px, rgba(201, 169, 110, 0.1) 20px, rgba(201, 169, 110, 0.1) 21px);
  pointer-events: none;
}
.donation-banner::after {
  content: '❤';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(201, 169, 110, 0.6);
}
.don-label {
  color: rgba(201, 169, 110, 0.9);
  font-size: 14px;
}
.don-amount {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #D4B87F, #FFFFFF, #D4B87F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.don-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* --- 本谱管理员 --- */
.managers-card {
  border-left: 3px solid #C9A96E;
}
.managers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mgmt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FDF5E8 0%, #FFFFFF 100%);
  border: 1px solid rgba(201, 169, 110, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mgmt-item:hover {
  transform: translateX(2px);
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.08);
}
.mgmt-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4B87F, #C9A96E);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  overflow: hidden;
}
.mgmt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mgmt-info {
  flex: 1;
  min-width: 0;
}
.mgmt-name {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 14px;
  font-weight: 600;
  color: #3D2B1F;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.mgmt-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-family: 'STSong', serif;
  letter-spacing: 1px;
}
.mgmt-badge.creator {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #FDF5E8;
  box-shadow: 0 2px 4px rgba(139, 69, 19, 0.25);
}
.mgmt-badge.normal {
  background: linear-gradient(135deg, #C9A96E, #D4B87F);
  color: #FFFFFF;
}

/* --- 居住地分布 --- */
.location-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loc-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.loc-name {
  font-family: 'STSong', 'SimSun', serif;
  color: #3D2B1F;
  font-weight: 500;
  min-width: 80px;
  letter-spacing: 1px;
}
.loc-bar-wrap {
  height: 10px;
  background: rgba(201, 169, 110, 0.1);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 110, 0.15);
}
.loc-bar {
  height: 100%;
  background: linear-gradient(90deg, #C9A96E, #8B4513);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.loc-count {
  font-family: 'Georgia', serif;
  font-size: 13px;
  color: #8B6914;
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}

/* --- 最近访问 --- */
.visitors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.visitor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #FDF5E8 0%, #FFFFFF 100%);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 20px;
  transition: all 0.2s;
  min-width: 140px;
}
.visitor-item:hover {
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.1);
  border-color: rgba(201, 169, 110, 0.35);
}
.visitor-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4B87F, #C9A96E);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  overflow: hidden;
}
.visitor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.visitor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visitor-info {
  min-width: 0;
}
.visitor-nick {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 13px;
  color: #3D2B1F;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.visitor-time {
  font-size: 11px;
  color: #9B8E7E;
  font-family: 'STSong', serif;
}

/* --- 弹窗（小程序码 / 分享） --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 5, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-body {
  position: relative;
  background: linear-gradient(145deg, #FDFAF5, #FAF3E3);
  border-radius: 14px;
  padding: 32px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(201, 169, 110, 0.3);
  animation: modalSlideUp 0.3s ease;
  font-family: 'STSong', 'SimSun', serif;
}
@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-body::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(201, 169, 110, 0.3);
  border-radius: 10px;
  pointer-events: none;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(139, 69, 19, 0.1);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #5D3A1A;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.modal-close:hover {
  background: rgba(139, 69, 19, 0.2);
  transform: rotate(90deg);
}
.modal-title {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 20px;
  color: #5D3A1A;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.modal-qrcode-wrap,
.share-qrcode-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #FFFFFF;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.08);
}
.modal-qrcode,
.share-qrcode {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.modal-appname {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 22px;
  color: #8B4513;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 6px;
}
.modal-tip {
  font-size: 13px;
  color: #8B7E6E;
  letter-spacing: 1px;
  line-height: 1.6;
  font-family: 'STSong', serif;
}

/* --- 分享链接 --- */
.share-link-box {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
}
.share-link-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 8px;
  font-size: 13px;
  background: #FFFFFF;
  color: #3D2B1F;
  font-family: 'STSong', serif;
}
.share-link-input:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}
.share-copy-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #FDF5E8;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'STKaiti', 'KaiTi', serif;
  letter-spacing: 2px;
  white-space: nowrap;
}
.share-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* --- 默认左右两栏布局（桌面 1200px+） --- */
.detail-content {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

/* --- 响应式 --- */
@media (max-width: 1200px) {
  .detail-content {
    grid-template-columns: 1fr 300px;
  }
}
@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
  .family-tool-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .data-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .spectrum-hero {
    padding: 28px 24px;
  }
  .hero-title {
    font-size: 26px;
    letter-spacing: 4px;
  }
}
@media (max-width: 640px) {
  .family-tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .info-strip-card {
    flex-wrap: wrap;
    gap: 8px;
  }
  .info-divider {
    display: none;
  }
}

/* --- 页面入场动画 --- */
.detail-header,
.detail-section,
.side-card {
  animation: fadeSlideUp 0.5s ease both;
}
.detail-header { animation-delay: 0.05s; }
.detail-section:nth-of-type(1) { animation-delay: 0.12s; }
.detail-section:nth-of-type(2) { animation-delay: 0.18s; }
.detail-section:nth-of-type(3) { animation-delay: 0.24s; }
.detail-section:nth-of-type(4) { animation-delay: 0.30s; }
.detail-section:nth-of-type(5) { animation-delay: 0.36s; }
.detail-section:nth-of-type(6) { animation-delay: 0.42s; }
.detail-side .side-card:nth-of-type(1) { animation-delay: 0.10s; }
.detail-side .side-card:nth-of-type(2) { animation-delay: 0.16s; }
.detail-side .side-card:nth-of-type(3) { animation-delay: 0.22s; }
.detail-side .side-card:nth-of-type(4) { animation-delay: 0.28s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   收藏按钮状态
   ============================================================ */
.follow-icon {
  display: inline-block;
  margin-right: 4px;
  font-size: 14px;
  transition: transform 0.2s;
}
.action-btn.collected {
  background: linear-gradient(135deg, #8B4513, #A0522D) !important;
  color: #FDF5E8 !important;
  border-color: rgba(255,255,255,0.2);
}
.action-btn.collected .follow-icon {
  color: #D4B87F;
  transform: scale(1.1);
}

/* ============================================================
   族谱封面卡片
   ============================================================ */
.cover-card {
  padding: 14px;
}
#coverCard {
  text-align: center;
}
.cover-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 110, 0.3);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
  margin-bottom: 10px;
  position: relative;
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-seal-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 110, 0.3);
  box-shadow: inset 0 0 30px rgba(201, 169, 110, 0.2);
  margin-bottom: 10px;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 10px, rgba(201,169,110,0.05) 10px, rgba(201,169,110,0.05) 11px);
}
.cover-seal {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 72px;
  font-weight: 700;
  color: #8B4513;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  line-height: 1;
  letter-spacing: 0;
}
.cover-seal-sub {
  font-family: 'STSong', 'SimSun', serif;
  font-size: 11px;
  color: #8B6914;
  margin-top: 12px;
  letter-spacing: 1px;
  writing-mode: horizontal-tb;
}
.cover-caption {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 14px;
  font-weight: 600;
  color: #3D2B1F;
  letter-spacing: 1px;
}

/* --- 封面印章纹（占位图 fallback） --- */
.cover-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(139,69,19,0.12);
  border: 1px solid rgba(201,169,110,0.3);
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-seal {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 64px;
  font-weight: 700;
  color: #8B4513;
  text-align: center;
  letter-spacing: 4px;
  line-height: 1.2;
}
.cover-seal-sub {
  font-family: 'STSong', 'SimSun', serif;
  font-size: 14px;
  color: #9B8E7E;
  margin-top: 8px;
  text-align: center;
  letter-spacing: 1px;
}
.cover-fix-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 6px 12px;
  font-family: 'STSong', 'SimSun', serif;
  font-size: 12px;
  color: #8B4513;
  background: rgba(201,169,110,0.15);
  border: 1px dashed rgba(201,169,110,0.5);
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}
.cover-fix-btn:hover {
  background: rgba(201,169,110,0.3);
  color: #5D3A1A;
}



/* ============================================================
   公告滚动条（marquee）
   ============================================================ */
/* ============ 公告栏（垂直轮播 · 固定宽度） ============ */
.announcement-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FDF5E8 0%, #FBF0DC 100%);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 10px;
  padding: 0 16px;
  height: 54px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 8px rgba(139,69,19,0.06);
  position: relative;
  overflow: hidden;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

.ann-bar-label {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 13px;
  font-weight: 600;
  color: #8B4513;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 2px;
  width: 48px;
}

.ann-bar-scroll {
  flex: 1;
  overflow: hidden !important;
  position: relative;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100%;
}

.ann-bar-track {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: annVertical 12s linear infinite;
}

@keyframes annVertical {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(0); }
  33%  { transform: translateY(-100%); }
  63%  { transform: translateY(-100%); }
  66%  { transform: translateY(-200%); }
  96%  { transform: translateY(-200%); }
  100% { transform: translateY(-300%); }
}

.ann-bar-scroll:hover .ann-bar-track {
  animation-play-state: paused;
}

.ab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 54px;
  line-height: 54px;
  font-family: 'STSong', 'SimSun', serif;
  font-size: 13px;
  color: #5D4E3F;
  padding-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-top {
  background: linear-gradient(135deg, #B35D5D, #8B4513);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-family: 'STSong', serif;
  letter-spacing: 1px;
  flex-shrink: 0;
  line-height: 16px;
}

.ab-title {
  font-weight: 600;
  color: #3D2B1F;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ab-content {
  color: #7A6B5D;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.ab-time {
  color: #9B8E7E;
  font-size: 11px;
  flex-shrink: 0;
}



/* ===== 族谱封面卡片（小程序参考风格） ===== */


/* ===== 族谱封面卡片（参考图2：一份族谱名 + 真实封面图 + 墨绿花纹） ===== */

/* ===== 族谱封面卡片（极简版） ===== */
.pcv-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 书封容器 —— 只干一件事：显示封面图 */
.pcv-book {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: #5B6B4C;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 20px rgba(139,69,19,0.18), 0 2px 6px rgba(139,69,19,0.12);
}
/* 深色半透明遮罩（让右上金色框里的棕色字可读） */
.pcv-book::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

/* 右上角竖向族谱名 + 金色背景框 */
.pcv-book-title {
  position: absolute;
  top: 14px;
  right: 14px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: #5D3A1A;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  z-index: 3;
  background: linear-gradient(135deg, rgba(255,248,220,0.92), rgba(252,240,208,0.92));
  border: 1.5px solid rgba(201,169,110,0.9);
  border-radius: 4px;
  padding: 14px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 下方信息区 —— 全部 block 左对齐，每行独立 */
.pcv-info {
  padding: 16px 4px 4px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcv-title { font-size: 18px; font-weight: 700; color: #2C1810; line-height: 1.4; margin-bottom: 4px; }
.pcv-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6B4A2E; }
.pcv-meta-sep { color: #C9A96E; }
.pcv-meta-item { font-weight: 500; }
.pcv-addr { font-size: 12px; color: #8B7355; line-height: 1.5; text-align: left; }
.pcv-stats {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #A08870;
  padding-top: 6px;
  border-top: 1px dashed rgba(201,169,110,0.25);
}
.pcv-stat { display: inline-flex; align-items: center; gap: 4px; }
.pcv-creator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px dashed rgba(201,169,110,0.35);
}
.pcv-creator-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(139,69,19,0.25); flex-shrink: 0; }
.pcv-creator-name { font-size: 13px; color: #5D3A1A; font-weight: 500; }

/* 隐藏旧的垃圾类 */
.pcv-side-tag, .pcv-book-name, .pcv-img, .pcv-book-content,
.pcv-book-lines, .pcv-book-overlay, .pcv-badge, .cover-caption, .cover-seal {
  display: none !important;
}

/* 姓氏印章（书封左下角） */
.pcv-seal {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B2323, #C9302C);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.4);
  z-index: 2;
}

.side-card.cover-card .side-title { display: none; }
.side-card.cover-card { overflow: visible !important; padding: 16px !important; }
