/* ============================================================
   协会资源插件（association）· 前台样式
   作用域：全部类名以 assoc- 前缀隔离，不污染主站样式
   兼容 PC + H5（≤768px 单列自适应）
   ============================================================ */

.assoc-page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
.assoc-page a { text-decoration: none; }

/* ---- 页头 ---- */
.assoc-page-head { margin-bottom: 22px; }
.assoc-page-head h1 { font-size: 26px; font-weight: 700; color: #1F2937; margin: 0 0 8px; line-height: 1.35; }
.assoc-page-head .assoc-sub { font-size: 14px; color: #6B7280; line-height: 1.6; }

/* ---- 面包屑 ---- */
.assoc-crumb { font-size: 13px; color: #9CA3AF; margin-bottom: 16px; line-height: 1.6; }
.assoc-crumb a { color: #6B7280; }
.assoc-crumb a:hover { color: #B8860B; }
.assoc-crumb .sep { margin: 0 6px; color: #D1D5DB; }

/* ---- 协会卡片网格（聚合页 / 地域板块通用） ---- */
.assoc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.assoc-card { display: block; background: #fff; border: 1px solid #EEEBE4; border-radius: 14px; padding: 18px; transition: box-shadow .2s ease, transform .2s ease; }
.assoc-card:hover { box-shadow: 0 8px 24px rgba(184, 134, 11, .12); transform: translateY(-2px); }
.assoc-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.assoc-card-logo { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #F7EAD1, #EED9AC); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #8A6A3B; }
.assoc-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.assoc-card-name { font-size: 16px; font-weight: 600; color: #1F2937; line-height: 1.4; }
.assoc-card-badge { display: inline-block; font-size: 12px; color: #8A6A3B; background: #F7EAD1; border: 1px solid #EED9AC; border-radius: 999px; padding: 2px 10px; margin-top: 6px; }
.assoc-card-areas { display: block; font-size: 12px; color: #B8860B; margin-top: 8px; }
.assoc-card-brief { display: block; font-size: 13px; color: #6B7280; line-height: 1.7; margin-top: 8px; }

/* ---- 地域分站注入板块（region.php 内，宽度跟随 .region-section） ---- */
.assoc-region-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.assoc-region-card { display: block; background: #FAF8F3; border: 1px solid #EEEBE4; border-radius: 12px; padding: 14px; }
.assoc-region-card:hover { border-color: #EED9AC; }
.assoc-region-card .assoc-card-logo { width: 44px; height: 44px; font-size: 18px; }
.assoc-region-card .assoc-card-name { font-size: 15px; }

/* ---- 协会主页 ---- */
.assoc-hero { display: flex; gap: 20px; background: linear-gradient(135deg, #FDFAF3, #F7EFE0); border: 1px solid #EED9AC; border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.assoc-hero-logo { width: 96px; height: 96px; border-radius: 18px; overflow: hidden; flex-shrink: 0; background: #fff; border: 1px solid #EED9AC; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; color: #8A6A3B; }
.assoc-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.assoc-hero-info { flex: 1; min-width: 0; }
.assoc-hero-info h1 { font-size: 24px; font-weight: 700; color: #1F2937; margin: 0 0 8px; line-height: 1.3; }
.assoc-hero-meta { font-size: 13px; color: #6B7280; line-height: 1.9; }
.assoc-hero-meta a { color: #B8860B; word-break: break-all; }
.assoc-hero-actions { margin-top: 10px; }
.assoc-hero-actions .assoc-btn-contact { display: inline-block; background: linear-gradient(135deg, #C9A24B, #B8860B); color: #fff; font-size: 14px; border-radius: 999px; padding: 7px 18px; }

.assoc-section { background: #fff; border: 1px solid #EEEBE4; border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.assoc-section > h2 { font-size: 17px; font-weight: 700; color: #1F2937; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.assoc-section > h2 .h-accent { display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, #C9A24B, #B8860B); }
.assoc-prose { font-size: 14px; color: #374151; line-height: 1.9; word-break: break-word; }
.assoc-prose img { max-width: 100%; height: auto; }
.assoc-prose h2, .assoc-prose h3 { color: #1F2937; }

/* ---- 会员/资讯列表（协会主页内嵌栏目） ---- */
.assoc-row-list { display: flex; flex-direction: column; gap: 12px; }
.assoc-row { display: flex; gap: 14px; background: #FAFAF8; border: 1px solid #F0EDE6; border-radius: 12px; padding: 12px 14px; }
.assoc-row-thumb { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #F3F4F6; display: flex; align-items: center; justify-content: center; color: #C0A060; font-size: 20px; }
.assoc-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.assoc-row-body { flex: 1; min-width: 0; }
.assoc-row-title { font-size: 15px; font-weight: 600; color: #1F2937; line-height: 1.45; }
.assoc-row-title a { color: inherit; }
.assoc-row-desc { font-size: 13px; color: #6B7280; line-height: 1.6; margin-top: 4px; }
.assoc-row-meta { font-size: 12px; color: #9CA3AF; margin-top: 6px; }
.assoc-row-meta .assoc-badge-member { color: #2F7D4F; background: #EAF6EE; border: 1px solid #CBE8D5; border-radius: 999px; padding: 1px 8px; margin-right: 8px; display: inline-block; }

/* ---- 详情页正文 ---- */
.assoc-detail-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.assoc-detail h1 { font-size: 24px; font-weight: 700; color: #1F2937; line-height: 1.4; margin: 0 0 10px; }
.assoc-detail-meta { font-size: 13px; color: #9CA3AF; margin-bottom: 16px; }
.assoc-detail-meta a { color: #B8860B; }

/* ---- 免责区块 ---- */
.assoc-disclaimer { margin: 20px 0; padding: 14px 16px; background: #FFF8F0; border: 1px solid #F0DFC8; border-radius: 10px; font-size: 13px; line-height: 1.7; color: #8A6A3B; }

/* ---- 空态 ---- */
.assoc-empty { text-align: center; color: #9CA3AF; font-size: 14px; padding: 36px 0; }

/* ---- H5 适配 ---- */
@media (max-width: 768px) {
  .assoc-grid { grid-template-columns: 1fr; }
  .assoc-region-grid { grid-template-columns: 1fr; }
  .assoc-hero { flex-direction: column; align-items: center; text-align: center; }
  .assoc-hero-info h1 { font-size: 20px; }
  .assoc-page { padding: 14px 12px 30px; }
  .assoc-page-head h1 { font-size: 21px; }
}
