/* ============================================================
   各子页面共用样式
   ============================================================ */
/* 页面横幅 */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: rgba(200, 149, 42, 0.07);
  transform: skewX(-12deg);
  pointer-events: none;
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner h1 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.page-banner .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-banner .breadcrumb a:hover { color: var(--accent-light); }
.page-banner .breadcrumb i { font-size: 10px; }
.page-banner .breadcrumb span {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.5;
}

/* 内容布局 */
.content-section { padding: 60px 0; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}
.content-main,
.content-sidebar {
  min-width: 0;
}

/* 内容卡片 */
.content-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  overflow-wrap: break-word;
}

/* 新闻详情页：让卡片左右内边距归零，让正文文字与上方封面图左右对齐 */
.news-detail-wrap > .content-card,
.content-main > .news-detail-wrap { padding: 20px 0; }
/* 后台取出的富文本：强制宽度 100%，去掉任何内/外边距/对齐造成的偏移 */
.news-detail-body { width: 100% !important; max-width: 100% !important; box-sizing: border-box; padding: 0 !important; margin: 0 !important; }
.news-detail-body * { max-width: 100% !important; box-sizing: border-box; }
.news-detail-body p,
.news-detail-body div,
.news-detail-body ul,
.news-detail-body ol,
.news-detail-body li,
.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4,
.news-detail-body h5,
.news-detail-body h6,
.news-detail-body table,
.news-detail-body blockquote,
.news-detail-body section,
.news-detail-body article,
.news-detail-body pre {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-indent: 0 !important;
  width: auto !important;
  max-width: 100% !important;
}
.content-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-light);
}
.content-card p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.content-card p:last-child { margin-bottom: 0; }

/* 侧边导航 */
.sidebar-nav {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sidebar-nav h4 {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
}
.sidebar-nav ul { padding: 8px 0; }
.sidebar-nav ul li {}
.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  color: var(--primary);
  background: var(--bg-light);
  border-left-color: var(--accent);
  padding-left: 24px;
}
.sidebar-nav ul li a i { font-size: 12px; color: var(--text-light); }

/* 表单 */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  transition: var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 50, 145, 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 多选框 */
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
}
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* 下载列表 */
.download-list { display: flex; flex-direction: column; gap: 0; }
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.download-item:last-child { border-bottom: none; }
.download-item:hover { background: var(--bg-light); padding-left: 8px; border-radius: var(--radius); }
.dl-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.dl-icon.pdf { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.dl-icon.word { background: rgba(123, 50, 145, 0.1); color: var(--primary); }
.dl-icon.excel { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.dl-icon.zip { background: rgba(200, 149, 42, 0.1); color: var(--accent); }
.dl-info { flex: 1; }
.dl-info h5 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.dl-info span { font-size: 12px; color: var(--text-light); }
.dl-size { font-size: 12px; color: var(--text-light); flex-shrink: 0; }

/* 地图占位符 */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 48px;
  gap: 12px;
  border: 2px dashed var(--border);
}
.map-placeholder span { font-size: 14px; color: var(--text-light); }

/* 观众预登记福利网格 */
.prereg-benefits { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; }

/* 渠道多选网格 */
.channel-grid { display:grid; grid-template-columns:1fr; gap:10px; margin-top:6px; }
@media (min-width: 769px) {
  .channel-grid { grid-template-columns:1fr 1fr; }
}

/* 联系我们 表单+地图布局 */
.contact-form-map { display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:start; }

/* 联系卡片 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(123, 50, 145, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  margin: 0 auto 14px;
}
.contact-card h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   新闻列表 · 分类Tab + 分页
   ============================================================ */
.news-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 6px 6px 0;
  border-bottom: 2px solid var(--border);
}
.news-tab-btn {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  bottom: -2px;
  font-family: var(--font);
}
.news-tab-btn:hover { color: var(--primary); }
.news-tab-btn.active {
  color: var(--primary);
  background: #fff;
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.news-tab-btn .tab-count {
  display: inline-block;
  font-size: 11px;
  background: var(--border);
  color: var(--text-light);
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 400;
}
.news-tab-btn.active .tab-count {
  background: rgba(123, 50, 145, 0.1);
  color: var(--primary);
}

/* 新闻列表容器 */
.news-tab-content { display: none; }
.news-tab-content.active { display: block; }

/* 新闻列表条目 */
.news-list-wrap {
  background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0 28px;
  margin-bottom: 24px;
}
.news-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { padding-left: 6px; }
.news-row-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  padding-top: 4px;
}
.news-row-date .day {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.news-row-date .ym {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.news-row-body { flex: 1; min-width: 0; }
.news-row-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}
.news-row-body h4 a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.news-row-body h4 a:hover { color: var(--primary); }
.news-row-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row-tag {
  flex-shrink: 0;
  margin-top: 6px;
}
.news-row-tag span {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.tag-expo { background: rgba(123, 50, 145, 0.08); color: var(--primary); }
.tag-industry { background: rgba(39,174,96,0.08); color: #27ae60; }
.tag-media { background: rgba(200,149,42,0.08); color: var(--accent); }
.tag-notice { background: rgba(231,76,60,0.08); color: #e74c3c; }

/* 分页器 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 0 10px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  background: #fff;
  cursor: pointer;
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(123, 50, 145, 0.04);
}
.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
  pointer-events: none;
}
.pagination .disabled {
  color: var(--border);
  border-color: var(--border);
  pointer-events: none;
  opacity: 0.5;
}
.pagination .page-info {
  border: none;
  font-size: 13px;
  color: var(--text-light);
  min-width: auto;
  cursor: default;
}

/* 新闻详情 */
.news-detail-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 50px 0 40px;
  text-align: center;
}
.news-detail-banner h1 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.news-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.news-detail-meta i { margin-right: 4px; }
.news-detail-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.news-detail-body p {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 18px;
  text-indent: 2em;
}
.news-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  flex-wrap: wrap;
}
.news-detail-nav a {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-detail-nav a:hover { color: var(--primary); }
.news-detail-nav a i { margin-right: 6px; color: var(--primary); }

/* 空状态 */
.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.news-empty i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; display: block; }
.news-empty p { font-size: 15px; }

@media (max-width: 768px) {
  /* 内容布局：主内容+侧边栏堆叠 */
  .content-layout { grid-template-columns: 1fr; gap: 24px; }
  .content-sidebar { order: 2; }

  /* 页面横幅 */
  .page-banner { padding: 50px 0 36px; }
  .page-banner h1 { font-size: 24px; }

  /* 内容区段 */
  .content-section { padding: 36px 0; }
  .content-card { padding: 20px 16px; }

  /* 新闻Tab */
  .news-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .news-tab-btn { white-space: nowrap; padding: 10px 16px; font-size: 14px; }
  .news-row { flex-direction: column; gap: 10px; }
  .news-row-date { width: auto; display: flex; gap: 8px; align-items: baseline; }
  .news-row-date .day { font-size: 20px; }
  .news-row-date .ym { margin-top: 0; }
  .news-row-tag { margin-top: 0; }
  .news-list-wrap { padding: 0 16px; }
  .pagination { gap: 4px; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; font-size: 13px; }

  /* 新闻详情页 */
  .news-detail-title { font-size: 20px; line-height: 1.5; }
  .news-detail-meta { flex-wrap: wrap; gap: 10px; font-size: 12px; }
  .news-detail-cover { max-height: 260px; border-radius: 6px; }
  .news-detail-body { font-size: 15px; line-height: 1.9; }
  .news-detail-body img { margin: 8px 0; }
  .news-detail-body h2 { font-size: 18px; }
  .news-detail-body h3 { font-size: 16px; }
  .news-nav { flex-direction: column; gap: 10px; margin-top: 30px; padding-top: 20px; }
  .news-nav a { padding: 12px 14px; }
  .news-nav .nav-next { text-align: left; }
  .news-detail-wrap { max-width: 100%; }

  /* 联系我们 */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* 观众预登记 */
  .prereg-benefits { grid-template-columns: 1fr; gap: 8px; }
  .channel-grid { grid-template-columns: 1fr; }

  /* 联系我们表单+地图 */
  .contact-form-map { grid-template-columns: 1fr; gap: 24px; }
  .contact-form-card { padding: 24px 16px; }
  .map-placeholder { height: 220px; font-size: 36px; }
}

@media (max-width: 520px) {
  .page-banner { padding: 40px 0 28px; }
  .page-banner h1 { font-size: 20px; }
  .news-detail-title { font-size: 18px; }
  .news-detail-cover { max-height: 200px; }
  .news-detail-body { font-size: 14px; line-height: 1.8; }
  .news-detail-body p { text-indent: 0; }
  .news-nav a { font-size: 13px; padding: 10px 12px; }
  .sidebar-nav ul li a { padding: 10px 14px; font-size: 13px; }
  .map-placeholder { height: 180px; font-size: 28px; }
  .contact-form-card { padding: 20px 14px; }
}

/* ============================================================
   会议活动 - 行业论坛富文本图片显示策略
   电脑端：保持图片原始宽度（不拉伸）
   手机端：宽度铺满卡片，高度等比缩放，不变形
   ============================================================ */
#forumContent img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  #forumContent img {
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 520px) {
  #forumContent img {
    width: calc(100% + 28px);
    max-width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    height: auto;
    object-fit: contain;
  }
}
