.top-bar {
  background-color: skyblue;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

.top-inner {
  width: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
}

.nav-buttons {
  display: flex;
  gap: 20px;
  position: relative;
}

.nav-buttons a,
.dropbtn {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  font-family: sans-serif;
}

/* 鼠标悬停时样式 */
.nav-buttons a:hover,
.dropbtn:hover {
  color: blue;
  text-decoration: underline;
}
.dropbtn {
  font-size: 20px;
  font-weight: bold;
  padding: 6px 0;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: black;
  text-decoration: none;
  font-size: 20px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* 教练介绍容器：两张卡片并排显示 */
.intro-container {
  width: 80%;
  margin: 50px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: nowrap;  /* 禁止换行 */
}

.intro-header {
  width: 80%;              /* 与卡片区相同宽度 */
  margin: 0 auto;           /* 保证整体居中于页面 */
  text-align: left;         /* 文字左对齐 */
  padding-left: 0;          /* 去掉多余内边距 */
}

.coach-title {
  width: 48%;
  text-align: left;
  font-size: 30px;
  font-weight: bold;
  color: #0077cc;
  margin-bottom: 10px;
}


/* 每一个教练卡片 */
.intro-card {
  background-color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  width: 48%; /* 保证两张卡片能并排 */
  padding: 20px;
  box-sizing: border-box;
}

/* 教练照片 */
.intro-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
}

/* 简介文字 */
.intro-text h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #333;
}

.intro-text p {
  margin: 0;
  font-size: 16px;
  color: #555;
}



.intro-message {
  width: 80%;
  margin: 4px auto 30px auto;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: left;
}

.intro-message h2 {
  font-size: 28px;
  color: #0077cc;
  margin-bottom: 20px;
  text-align: center;
}


.coach-label {
  font-size: 20px;
  font-weight: bold;
  color: #0077cc;
  margin-bottom: 10px;
  text-align: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

/* 主按钮 */
.dropbtn {
  font-size: 20px;
  font-weight: bold;
  padding: 6px 0;
  cursor: pointer;
}

/* 下拉内容初始隐藏 */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

/* 鼠标悬停时显示 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 链接样式 */
.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: black;
  text-decoration: none;
  font-size: 20px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* ========== 页脚样式 ========== */
.site-footer {
  background-color: #1a2230;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 80%;
  margin: 0 auto;
  gap: 40px;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-section p {
  margin: 0;
  font-size: 15px;
}



/* Ensuring dropdown-content is hidden until hover */

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* 让整块居中 */
.subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* 居中按钮组 */
.filters {
  display: flex;
  justify-content: center;  /* 水平居中 */
  align-items: center;
  flex-wrap: wrap;           /* 如果屏幕窄就自动换行 */
  gap: 10px;                 /* 按钮之间的间距 */
  margin-top: 10px;
}

/* 让按钮看起来协调一点 */
.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background: #e2e8f0;
}
.filter-btn.active {
  background: #0077b6;
  color: white;
  border-color: #0077b6;
}


/* 名字和 Tag 同行排列 */
.name-row {
  display: flex;
  align-items: center;
  gap: 10px;            /* 名字和标签之间的间距 */
}


/* 调整名字本身不换行 */
.name-row h3 {
  margin: 0;
  white-space: nowrap;
}

/* 原有的 Tag 样式保留 */
.coach-tags {
  display: flex;
  gap: 6px;
}

/* Tag 样式 —— 椭圆形边框（适配白底） */
.coach-tag {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;                 /* 椭圆形 */
  border: 1.5px solid #334155;          /* 深灰边框（白底清晰） */
  color: #0f172a;                        /* 深色文字 */
  background: transparent;
  letter-spacing: .2px;
  transition: all .25s ease;
}
.coach-tag:hover {
  background: rgba(2, 6, 23, .05);       /* 浅灰悬停底色 */
}

/* 语义色（可选） */
.coach-tag.hours   { border-color: #3b82f6; color: #1d4ed8; }  /* UTR（蓝） */
.coach-tag.lead { border-color: #f59e0b; color: #b45309; }  /* 时长（橙） */
.coach-tag.group  { border-color: #10b981; color: #047857; } /* 角色（绿） */


.group-badge{
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  color: #0b4f6c;                 /* 深一点的蓝色文字 */
  background-color: #e6f4ff;      /* 浅蓝色背景 */
  border: 1px solid #b3e0ff;      /* 浅蓝边框 */
  white-space: nowrap;
}


