* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; line-height: 1.6; }

body {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: #fff;
  color: #3f3f3f;
  padding: 32px 16px 12px;
}

img { max-width: 100%; height: auto; }

.article { max-width: 677px; margin: 0 auto; }

.title {
  font-size: 23px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 6px 0 18px;
}

.meta {
  font-size: 14px;
  color: #8a8a8a;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.meta .author { color: #576b95; }

.content { font-size: 17px; line-height: 1.8; text-align: justify; }

.content p {
  font-size: 20px;
  line-height: 1.8;
  color: rgba(0, 0, 0, .9);
  margin: 1em 0 24px;
}

.content h2 {
  font-size: 20px;
  line-height: 1.8;
  font-weight: 700;
  color: #ff0000;
  text-align: center;
  margin: 24px 0 12px;
}

.content .hl { color: #ff0000; font-style: normal; }
.content .hl2 { color: #cf5148; font-style: normal; }

.content .img { text-align: center; }
.content .img img {
  display: block;
  margin: 17px auto;
  border-radius: 4px;
}

@media only screen and (max-width: 768px) {
  body { padding: 20px 16px 12px; }
  .title { font-size: 21px; }
  .content p, .content h2 { font-size: 18px; }
}

/* ===== 底部悬浮加微信按钮（红色系，与问答统一） ===== */
.float-btn {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(160%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  background: linear-gradient(135deg, #f44336, #b71c1c);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(183, 28, 28, .4);
  transition: transform .35s ease, opacity .35s ease;
  white-space: nowrap;
  max-width: calc(100% - 24px);
}
.float-btn.show { transform: translateX(-50%) translateY(0); }
.float-btn .fb-ic {
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  font-size: 18px;
}

/* ===== 可点击触发问答的元素（如底部悬浮按钮、文中图片） ===== */
.js-open-qa { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ===== 互动问答弹层（样式对齐参考页，红色系） ===== */
#qaMask {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
#qaMask.qa-open { opacity: 1; visibility: visible; }

#qaPanel {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #f5f6f7;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .3s ease;
}
#qaPanel.qa-open { display: flex; transform: translateY(0); }

.qa-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.qa-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #f44336, #b71c1c);
  border-radius: 50%;
}
.qa-name { font-size: 16px; font-weight: 700; color: #222; }
.qa-status { margin-top: 2px; font-size: 13px; color: #8a8f95; }
.qa-status i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; background: #25d07a; border-radius: 50%; vertical-align: 1px; }
.qa-close { width: 30px; height: 30px; margin-left: auto; font-size: 22px; line-height: 28px; text-align: center; color: #9aa0a5; cursor: pointer; }

.qa-body {
  flex: 1 1 0%;
  min-height: 0;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.qa-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; animation: qaIn .25s ease both; }
.qa-row.cs { justify-content: flex-start; }
.qa-row.me { flex-direction: row-reverse; justify-content: flex-start; }
.qa-ava { flex: none; width: 36px; height: 36px; font-size: 14px; font-weight: 700; line-height: 36px; text-align: center; color: #fff; border-radius: 50%; user-select: none; }
.qa-row.cs .qa-ava { background: linear-gradient(135deg, #f44336, #b71c1c); }
.qa-row.me .qa-ava { color: #b71c1c; background: #fdeaea; }

.qa-bubble { max-width: 80%; padding: 11px 14px; font-size: 16px; line-height: 1.7; word-break: break-word; text-align: left; white-space: pre-wrap; }
.qa-row.cs .qa-bubble { color: #222; background: #fff; border-radius: 0 12px 12px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.qa-row.me .qa-bubble { color: #fff; background: linear-gradient(135deg, #f44336, #b71c1c); border-radius: 12px 0 12px 12px; }

@keyframes qaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.qa-typing .qa-bubble { display: flex; align-items: center; gap: 4px; padding: 13px; }
.qa-typing .qa-bubble i { width: 6px; height: 6px; background: #c2c8cc; border-radius: 50%; animation: qaDot 1s infinite; }
.qa-typing .qa-bubble i:nth-child(2) { animation-delay: .15s; }
.qa-typing .qa-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes qaDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.qa-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px 42px; animation: qaIn .25s ease both; }
.qa-opt { padding: 10px 16px; font-family: inherit; font-size: 15.5px; line-height: 1.3; color: #b71c1c; background: #fff; border: 1px solid #f44336; border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); cursor: pointer; }
.qa-opt:active { background: #fdeaea; transform: translateY(1px); }
.qa-opt[disabled] { color: #b6bcc0; background: #f2f3f4; border-color: #e2e4e6; box-shadow: none; }
.qa-opt.is-picked { color: #fff; background: linear-gradient(135deg, #f44336, #b71c1c); border-color: #b71c1c; }

.qa-confirm { margin: 2px 0 0 42px; padding: 10px 22px; font-family: inherit; font-size: 15.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f44336, #b71c1c); border: 0; border-radius: 18px; cursor: pointer; }
.qa-confirm[disabled] { opacity: .4; cursor: not-allowed; }

.qa-cta-row { padding: 2px 0 10px; animation: qaIn .25s ease both; }
.qa-cta { display: block; width: 100%; padding: 14px 18px; font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: .5px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #f44336, #b71c1c); border: 0; border-radius: 12px; box-shadow: 0 6px 16px rgba(183, 28, 28, .34); cursor: pointer; }
.qa-cta:active { transform: translateY(1px); }

@media (max-width: 360px) {
  .qa-bubble { font-size: 15px; }
  .qa-opt { padding: 9px 14px; font-size: 14.5px; }
  .qa-cta { font-size: 16px; }
}


/* ===== 底部悬浮加微信按钮（红色系，与问答统一） ===== */
.float-btn {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(160%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  background: linear-gradient(135deg, #f44336, #b71c1c);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(183, 28, 28, .4);
  transition: transform .35s ease, opacity .35s ease;
  white-space: nowrap;
  max-width: calc(100% - 24px);
}
.float-btn.show { transform: translateX(-50%) translateY(0); }
.float-btn .fb-ic {
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  font-size: 18px;
}

/* ===== 可点击触发问答的元素（如底部悬浮按钮、文中图片） ===== */
.js-open-qa { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ===== 互动问答弹层（样式对齐参考页，红色系） ===== */
#qaMask {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
#qaMask.qa-open { opacity: 1; visibility: visible; }

#qaPanel {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #f5f6f7;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .3s ease;
}
#qaPanel.qa-open { display: flex; transform: translateY(0); }

.qa-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.qa-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #f44336, #b71c1c);
  border-radius: 50%;
}
.qa-name { font-size: 16px; font-weight: 700; color: #222; }
.qa-status { margin-top: 2px; font-size: 13px; color: #8a8f95; }
.qa-status i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; background: #25d07a; border-radius: 50%; vertical-align: 1px; }
.qa-close { width: 30px; height: 30px; margin-left: auto; font-size: 22px; line-height: 28px; text-align: center; color: #9aa0a5; cursor: pointer; }

.qa-body {
  flex: 1 1 0%;
  min-height: 0;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.qa-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; animation: qaIn .25s ease both; }
.qa-row.cs { justify-content: flex-start; }
.qa-row.me { flex-direction: row-reverse; justify-content: flex-start; }
.qa-ava { flex: none; width: 36px; height: 36px; font-size: 14px; font-weight: 700; line-height: 36px; text-align: center; color: #fff; border-radius: 50%; user-select: none; }
.qa-row.cs .qa-ava { background: linear-gradient(135deg, #f44336, #b71c1c); }
.qa-row.me .qa-ava { color: #b71c1c; background: #fdeaea; }

.qa-bubble { max-width: 80%; padding: 11px 14px; font-size: 16px; line-height: 1.7; word-break: break-word; text-align: left; white-space: pre-wrap; }
.qa-row.cs .qa-bubble { color: #222; background: #fff; border-radius: 0 12px 12px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.qa-row.me .qa-bubble { color: #fff; background: linear-gradient(135deg, #f44336, #b71c1c); border-radius: 12px 0 12px 12px; }

@keyframes qaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.qa-typing .qa-bubble { display: flex; align-items: center; gap: 4px; padding: 13px; }
.qa-typing .qa-bubble i { width: 6px; height: 6px; background: #c2c8cc; border-radius: 50%; animation: qaDot 1s infinite; }
.qa-typing .qa-bubble i:nth-child(2) { animation-delay: .15s; }
.qa-typing .qa-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes qaDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.qa-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px 42px; animation: qaIn .25s ease both; }
.qa-opt { padding: 10px 16px; font-family: inherit; font-size: 15.5px; line-height: 1.3; color: #b71c1c; background: #fff; border: 1px solid #f44336; border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); cursor: pointer; }
.qa-opt:active { background: #fdeaea; transform: translateY(1px); }
.qa-opt[disabled] { color: #b6bcc0; background: #f2f3f4; border-color: #e2e4e6; box-shadow: none; }
.qa-opt.is-picked { color: #fff; background: linear-gradient(135deg, #f44336, #b71c1c); border-color: #b71c1c; }

.qa-confirm { margin: 2px 0 0 42px; padding: 10px 22px; font-family: inherit; font-size: 15.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f44336, #b71c1c); border: 0; border-radius: 18px; cursor: pointer; }
.qa-confirm[disabled] { opacity: .4; cursor: not-allowed; }

.qa-cta-row { padding: 2px 0 10px; animation: qaIn .25s ease both; }
.qa-cta { display: block; width: 100%; padding: 14px 18px; font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: .5px; color: #fff; background: linear-gradient(135deg, #f44336, #b71c1c); border: 0; border-radius: 12px; box-shadow: 0 6px 16px rgba(183, 28, 28, .34); cursor: pointer; }
.qa-cta:active { transform: translateY(1px); }

@media (max-width: 360px) {
  .qa-bubble { font-size: 15px; }
  .qa-opt { padding: 9px 14px; font-size: 14.5px; }
  .qa-cta { font-size: 16px; }
}
