/* wenda_accordion.css —— 华视眼科 wenda 栏目 · 问答手风琴列表
   站点视觉语言：主蓝 #007bc7 / 深蓝 #085c8a / 强调橙 #f87405 / 边框 #e3e3e3
   作用域限定在 .faq-list，避免污染站点全局主题
   ----------------------------------------------------------------------------
   两种模式（由「允许多个同时展开」开关切换）：
     · 关闭（默认）：手风琴模式 —— 同一时刻只能展开 1 条，点击另一条会自动收起当前；
     · 开启：多开模式 —— 每条独立展开/收起，已有的展开项保持展开不收起。
*/

/* 列表容器与表头 */
.faq-list {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 22px;
}
.faq-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid #eee;
  background: #fafcff;
}
.faq-list-head .faq-list-title {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}
.faq-list-head .faq-list-title b {
  color: #f87405;
  font-size: 17px;
  margin: 0 2px;
}

/* 「允许多个同时展开」开关 */
.faq-multi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  user-select: none;
}
.faq-multi .faq-multi-txt { white-space: nowrap; }

/* 单条问答 */
.faq-item {
  border-bottom: 1px solid #f0f0f0;
}
.faq-item:last-child { border-bottom: none; }

/* 标题区（点击展开/收起） */
.faq-item-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.faq-item-hd:hover { background: #f7fbff; }

/* 展开箭头（CSS 绘制，无需图标字体） */
.faq-item-hd .faq-arrow {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: 0 6px;
  border-right: 2px solid #007bc7;
  border-bottom: 2px solid #007bc7;
  transform: rotate(-45deg);      /* 收起：朝右 ">" */
  transition: transform .25s ease;
}
.faq-item.open .faq-item-hd .faq-arrow {
  transform: rotate(45deg);       /* 展开：朝下 "v" */
}
.faq-item-hd .faq-q {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 600;
  color: #085c8a;
  line-height: 1.5;
}
.faq-item-hd .faq-q a {
  color: inherit;
  text-decoration: none;
}
.faq-item-hd .faq-q a:hover { color: #007bc7; }
.faq-item.open .faq-item-hd .faq-q { color: #007bc7; }

/* 答案区（高度过渡，由 JS 动态设置 max-height） */
.faq-item-bd {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item-bd-inner {
  padding: 0 22px 18px 52px;       /* 左缩进与箭头对齐 */
  color: #555;
  font-size: 15px;
  line-height: 1.9;
}
.faq-item-bd-inner .faq-answer { word-break: break-word; }
.faq-item-bd-inner .faq-answer img { max-width: 100%; height: auto; }

/* 答案下方元信息（科室/医生/病种/时间） */
.faq-item-bd-inner .meta {
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}
.faq-item-bd-inner .meta span {
  display: inline-block;
  background: #e8f4fb;
  color: #007bc7;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 0 6px 6px 0;
}

/* 详情入口（避免标题点击直接跳走，详情放在答案区内） */
.faq-item-bd-inner .faq-more {
  display: inline-block;
  margin-top: 6px;
  color: #f87405;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.faq-item-bd-inner .faq-more:hover { text-decoration: underline; }

/* 空状态 */
.faq-list-empty {
  padding: 36px 22px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .faq-list-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .faq-item-hd { padding: 14px 14px; }
  .faq-item-hd .faq-q { font-size: 15px; }
  .faq-item-bd-inner { padding: 0 14px 16px 40px; }
}
