/* 全局样式微调 - 保留活力且协调的主色调 */
:root {
  --primary-color: #1e5a8c; /* 深海蓝主色 */
  --secondary-color: #4a89bc; /* 浅蓝辅助色 */
  --light-color: #f8fafc;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

/* 导航栏优化 - 修复默认margin导致的空白 */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 1.5rem;
  margin-bottom: 0 !important;
  border: none;
}

/* 导航栏文字/链接样式 */
.navbar-brand, .nav-link {
  color: white !important;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: #e2e8f0 !important;
  transform: translateY(-1px);
}

/* 导航栏响应式按钮 */
.navbar-toggler {
  border-color: rgba(255,255,255,0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 首页专属Hero - 核心视觉模块 */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 2rem !important;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-top: 1rem !important;
  margin-bottom: 2rem !important;
}

.hero .badge {
  background-color: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 500;
  transition: var(--transition);
}

.hero .badge:hover {
  background-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.hero .btn-primary {
  background-color: #3b82f6;
  color: white !important;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.hero .btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 轻量化页面头部 - 适配工作组/日程/场地页 */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0.5%, var(--secondary-color) 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.page-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* 极简标题栏 - 适配联系/注册/住宿/往届/讲者页 */
.simple-header {
  padding: 1rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.simple-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* 通用内容美化样式 */
/* Alert提示框优化 */
.alert-info {
  background-color: var(--light-color);
  border: none;
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* 卡片化Callouts */
.callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.callout {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid var(--primary-color);
}

.callout:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.callout h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* 列表美化 */
.content-list {
  padding-left: 1.5rem;
  line-height: 1.8;
}

.content-list li {
  margin-bottom: 0.75rem;
  color: #334155;
}

/* 表格美化 */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.content-table th, .content-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.content-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table tr:hover {
  background-color: var(--light-color);
}

/* 图片适配 */
.content-img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}

/* 工作组分组样式 */
.wg-section {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--secondary-color);
}

.wg-section h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* 全局body重置 */
body {
  margin: 0;
  padding: 0;
  color: #1e293b;
  line-height: 1.6;
}

/* 调整容器宽度，间接增大左右边距 */
.container {
  /* 减小默认最大宽度（Bootstrap默认桌面端是1140px），比如改为1000px */
  max-width: 960px !important;
  /* 保持居中，左右自动留白 */
  margin-left: auto !important;
  margin-right: auto !important;
  /* 兜底的内边距，避免移动端贴边 */
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* 移动端恢复更宽的容器，避免边距过大 */
@media (max-width: 768px) {
  .container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem !important;
    margin-top: 0.5rem !important;
  }

  .hero h1.display-5 {
    font-size: 1.75rem;
  }

  .callouts {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 0.5rem 1rem;
  }

  .page-header, .simple-header {
    padding: 1rem;
  }

  .content-table th, .content-table td {
    padding: 0.75rem 1rem;
  }
}

/* Contact页面专属样式 - 视觉分层+卡片化 */
.contact-header {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-color);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-card {
  background-color: white;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary-color);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-card--highlight {
  border-top-color: var(--secondary-color);
  background-color: var(--light-color);
}

.contact-card__title {
  color: var(--primary-color);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.contact-card__subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.contact-card__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  line-height: 1.6;
  color: #4a5568;
}

.contact-card__list li {
  margin-bottom: 0.5rem;
}

.contact-card__list--email li {
  margin-bottom: 0.75rem;
}

.contact-card__list--email a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  font-size: 1.05rem;
}

.contact-card__list--email a:hover {
  color: var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
  transform: translateX(2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .contact-card {
    padding: 1.25rem;
  }
  
  .contact-card__title {
    font-size: 1.2rem;
  }
}

/* Accommodation页面专属样式 - 与Contact/首页风格统一 */
.accommodation-header {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-color);
}

.accommodation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.accommodation-card {
  background-color: white;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary-color);
  transition: var(--transition);
}

/* hover动效：与首页callout/Contact卡片一致 */
.accommodation-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* 高亮卡片（补充提示）：区分次要信息，呼应Contact的highlight卡片 */
.accommodation-card--highlight {
  border-top-color: var(--secondary-color);
  background-color: var(--light-color);
}

.accommodation-card__title {
  color: var(--primary-color);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.accommodation-card__content {
  color: #4a5568;
  line-height: 1.6;
}

.accommodation-card__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.accommodation-card__list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.25rem;
}

/* 列表项添加小图标装饰（无额外依赖） */
.accommodation-card__list li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* 轻量提示框（推荐区域高亮） */
.alert-sm {
  border-left: 3px solid var(--primary-color);
  font-size: 0.95rem;
}

/* 移动端适配：与Contact/首页响应式逻辑统一 */
@media (max-width: 768px) {
  .accommodation-card {
    padding: 1.25rem;
  }
  
  .accommodation-card__title {
    font-size: 1.2rem;
  }

  .accommodation-cards {
    grid-template-columns: 1fr;
  }
}

/* Registration页面专属样式 - 简约排版，不照搬卡片 */
.registration-info {
  padding: 1.5rem;
  background-color: var(--light-color);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.registration-info__item {
  font-size: 1rem;
  line-height: 1.6;
}

.registration-info__label {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-block;
  min-width: 140px;
}

/* 注册表格样式优化 */
.registration-table table {
  border-collapse: separate;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.registration-table thead th {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
}

.registration-table tbody td {
  border-color: #e2e8f0;
  padding: 0.75rem 1rem;
}

.registration-table tbody tr:nth-child(even) {
  background-color: var(--light-color);
}

/* 图片缩略图+点击放大样式 */
.registration-img-container {
  max-width: 400px; /* 缩略图最大宽度，避免过大 */
  margin: 0 auto; /* 居中 */
}

.registration-img-thumbnail {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.registration-img-thumbnail:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
  transform: scale(1.02);
}

/* 模态框样式优化（和全局风格统一） */
.modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden; /* 防止内边距导致圆角失效 */
}

.modal-lg .modal-content {
  max-width: 900px; /* 大图最大宽度 */
  margin: 0 auto;
}

/* 新增：图片圆角样式 */
.rounded-6 {
  border-radius: 6px !important;
}

/* 优化模态框内边距和间距 */
.modal-header.btn-close {
  margin-right: -0.5rem; /* 微调关闭按钮位置，避免过宽 */
}

.modal-body img {
  display: block;
  margin: 0 auto; /* 图片居中，视觉更平衡 */
}

/* Alert警示框（浅橙/黄）- 适配EWL停运提示 */
.alert-warning {
  background-color: #fffbf0; /* 柔和浅黄背景 */
  border: none;
  border-left: 4px solid #f59e0b; /* 暖橙色左侧边框（醒目不刺眼） */
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.alert-warning h2.h4 {
  color: #92400e; /* 深橙文字，提升标题辨识度 */
}

.alert-warning a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.alert-warning a:hover {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

/* 人员名单标签样式 - 呼应现有wg-section风格 */
.wg-participants {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--light-color);
  border: 1px solid var(--secondary-color);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.wg-participants strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .wg-participants {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    display: block; /* 移动端独占一行，避免挤压 */
  }
}

/* --- Invited Speakers Page Specific Styles --- */
/* 讲者卡片网格布局（替代原内联样式） */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* 讲者机构与职称信息 */
.speaker-affiliation {
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* 演讲标题强调 */
.speaker-talk-label {
  font-weight: 600;
}

/* 关键词容器 */
.speaker-keywords {
  margin-top: 0.75rem;
}

/* 关键词标签（高可读性版本） */
.speaker-keyword {
  background-color: var(--light-color); /* 浅灰蓝背景 */
  color: var(--primary-color); /* 深海蓝文字 */
  border: 1px solid var(--secondary-color); /* 浅蓝边框 */
  padding: 0.25rem 0.75rem;
  border-radius: 20px; /* 圆润胶囊形状 */
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  transition: var(--transition);
}

/* 关键词悬停效果（反色高亮） */
.speaker-keyword:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-1px);
}

/* 移动端适配：讲者卡片改为单列 */
@media (max-width: 768px) {
  .speakers-grid {
    grid-template-columns: 1fr;
  }
}

/* 日程表格专属样式 - 休息分隔线+悬停引导 */
.program-schedule {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* 休息分隔行 - 加粗横线强调 */
.program-schedule .break-row {
  height: 12px; /* 分隔线高度 */
}

.program-schedule .break-row td {
  padding: 0 !important;
  border: none !important;
  background-color: var(--primary-color);
  opacity: 0.8;
}

/* 区分咖啡休息和午餐休息（可选，也可统一样式） */
.program-schedule .coffee-break td {
  background-color: var(--secondary-color);
  height: 3px;
}
.program-schedule .lunch-break td {
  background-color: var(--primary-color);
  height: 5px;
}

/* 讲者单元格 - 视觉引导+扩大悬停区域 */
.program-schedule .speaker-cell {
  background-color: #f8fafc; /* 浅背景区分普通单元格 */
  position: relative;
  padding: 1rem 1.25rem !important;
  cursor: help; /* 鼠标变为问号，提示可悬停 */
}

/* 悬停时强化背景，提升反馈 */
.program-schedule .speaker-cell:hover {
  background-color: #e2e8f0;
  transition: var(--transition);
}

/* 悬停提示图标（ⓘ）- 不突兀的视觉引导 */
.hover-hint {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--secondary-color);
  background-color: rgba(74, 137, 188, 0.1);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-weight: 600;
}

/* 讨论环节单元格样式（区分讲者单元格） */
.program-schedule .discussion-cell {
  background-color: #f0f7ff;
  padding: 1rem 1.25rem !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .program-schedule .speaker-cell,
  .program-schedule .discussion-cell {
    padding: 0.75rem 1rem !important;
  }
  .hover-hint {
    margin-left: 0.3rem;
    width: 14px;
    height: 14px;
    line-height: 14px;
  }
}

/* 日程说明列表专属优化 - 复用全局content-list样式，统一间距 */
.schedule-notes-list {
  padding-left: 1.8rem !important; /* 适配有序列表缩进，和无序列表视觉对齐 */
}

.schedule-notes-list li {
  margin-bottom: 0.8rem !important; /* 和全局content-list的li间距一致 */
  line-height: 1.7; /* 统一行高，避免文字拥挤 */
}

/* 嵌套列表优化（休息时段子列表） */
.schedule-notes-list ul li {
  margin-bottom: 0.4rem !important; /* 子列表略紧凑，但仍协调 */
  color: var(--text-muted); /* 次要信息浅一点，层级更清晰 */
}

/* 确保Alert内链接样式不突兀 */
.alert-info a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.alert-info a:hover {
  border-bottom: 1px solid var(--primary-color);
  color: var(--secondary-color);
}

/* ======================
   地点安排表格 - 视觉增强
   复用全局CSS变量，保持风格统一
====================== */
/* 区域分组标题行 */
.table-region {
  background-color: var(--light-color) !important;
  border-left: 3px solid var(--primary-color) !important;
  font-weight: 600;
  color: var(--primary-color) !important;
}
/* WG工作组标签高亮 */
.table-wg {
  color: var(--primary-color) !important;
  font-weight: 500;
}
/* 免费开放标签高亮 */
.table-free {
  color: #28a745 !important; /* 绿色，更醒目 */
  font-weight: 500;
}
/* 空值占位符样式 */
.table-empty {
  color: var(--text-muted) !important;
  font-weight: 400;
}
/* 表格斑马纹（隔行变色，提升可读性） */
.content-table tbody tr:not(.table-region-row):nth-child(even) {
  background-color: rgba(var(--primary-rgb), 0.03);
}
/* 单元格内边距优化 */
.content-table th, .content-table td {
  padding: 12px 10px !important;
  vertical-align: middle !important;
}
