/* converted from pages/chat3/chat3.wxss */
/* miniprogram/pages/chat3/chat3.wxss */

body {
    background: #f5f7fb;
  }
  
  .ChatPage {
    height: 100vh;
    background: #f5f7fb;
    display: flex;
    flex-direction: column;
  }
  
  .ChatHeaderBar {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-bottom: 0.5px solid #e8edf5;
    min-height: 150px;
    padding: calc(env(safe-area-inset-top) + 9px) 12px 12px;
    background: #78a6ff;
    transition: min-height 0.26s ease, padding 0.26s ease;
  }

  .ChatHeaderBar--collapsed {
    min-height: 96px;
  }
  
  .ChatHeaderBg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.26s ease;
  }

  .ChatHeaderBar--collapsed .ChatHeaderBg {
    transform: scale(1.03);
  }
  
  .ChatHeaderFx {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
  }
  
  .ChatHeaderFx--strong {
    width: 46%;
    background: linear-gradient(
      90deg,
      rgba(2, 6, 16, 0.44) 0%,
      rgba(2, 6, 16, 0.40) 20%,
      rgba(2, 6, 16, 0.34) 42%,
      rgba(2, 6, 16, 0.22) 72%,
      rgba(2, 6, 16, 0) 100%
    );
  }
  
  .ChatHeaderFx--mid {
    width: 70%;
    background: linear-gradient(
      90deg,
      rgba(6, 14, 32, 0.28) 0%,
      rgba(6, 14, 32, 0.23) 24%,
      rgba(6, 14, 32, 0.16) 46%,
      rgba(6, 14, 32, 0.085) 72%,
      rgba(6, 14, 32, 0) 100%
    );
  }
  
  .ChatHeaderFx--light {
    width: 84%;
    background: linear-gradient(
      90deg,
      rgba(10, 20, 44, 0.10) 0%,
      rgba(10, 20, 44, 0.075) 28%,
      rgba(10, 20, 44, 0.045) 52%,
      rgba(10, 20, 44, 0.015) 74%,
      rgba(10, 20, 44, 0) 100%
    );
  }
  
  .ChatHeaderShade {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background:
      /* 左侧主蒙版 */
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.16) 0%,
        rgba(0, 0, 0, 0.13) 22%,
        rgba(0, 0, 0, 0.085) 48%,
        rgba(0, 0, 0, 0.028) 70%,
        rgba(0, 0, 0, 0) 84%
      ),
      /* 右侧轻微勾边 */
      linear-gradient(
        270deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.035) 14%,
        rgba(0, 0, 0, 0.008) 26%,
        rgba(0, 0, 0, 0) 38%
      ),
      /* 底部蒙版：这一层就是给底部白字提示兜底的，强度在这里改 */
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 62%,
        rgba(0, 0, 0, 0.28) 78%,
        rgba(0, 0, 0, 0.38) 90%,
        rgba(0, 0, 0, 0.58) 100%
      );
  }
  
  .ChatHeaderMain {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    padding-right: 10px;
  }
  
  .ChatHeaderTitle {
    display: block;
    margin-top: 6px;
    margin-left: 6px;
    font-size: 24px;
    line-height: 1.22;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  }
  
  .ChatHeaderSubtitle {
    display: block;
    margin-top: 0;
    margin-left: 6px;
    font-size: 11px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
  }
  
  .TopAction {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding: 7px 11px;
    border-radius: 499.5px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.72);
  }
  
  .TopActionText {
    color: #4a5a72;
    font-size: 12px;
    font-weight: 700;
  }
  
  .ChatHeaderNotice {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
  
    /* 这行提示文字大小在这里改 */
    font-size: 11.5px;
    line-height: 16px;
  
    /* 这行提示文字颜色在这里改 */
    color: rgba(255, 255, 255, 0.95);
  
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  }
  
  .PageBody {
    flex: 1;
    min-height: 0;
  }
  
  .PageSwiperWrap {
    height: 100%;
    min-height: 0;
  }
  
  .PageSwiper {
    height: 100%;
  }
  
  .SwiperItemShell {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  
  .PageScroll {
    flex: 1;
    min-height: 0;
  }
  
  .PageStage,
  .EmptyStage {
    min-height: 100%;
    padding: 11px 12px 9px;
    box-sizing: border-box;
  }
  
  .QuestionSheet {
    min-height: 100%;
    box-sizing: border-box;
  }
  
  .QuestionSheet--empty {
    display: flex;
    flex-direction: column;
  }
  
  .PageNotice,
  .QuestionSection {
    margin-bottom: 11px;
  }
  
  .SectionLabel {
    margin-bottom: 6px;
    padding-left: 2px;
  }
  
  .SectionLabelText {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 499.5px;
    background: #e9eef4;
    color: #647286;
    font-size: 11px;
    font-weight: 700;
  }
  
  .QuestionCard {
    width: 100%;
  }
  
  .EmptyHint {
    flex: 1;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 0.5px solid #e4ebf4;
    box-shadow: 0 6px 15px rgba(55, 89, 160, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .EmptyHintText {
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: #6f7b8f;
  }
  
  .IntroActionWrap {
    padding-top: 11px;
  }
  
  .MsgRow {
    display: flex;
    align-items: flex-start;
    margin-bottom: 11px;
  }
  
  .MsgRow--user {
    justify-content: flex-end;
  }
  
  .MsgRow--inPage {
    margin-bottom: 0;
  }
  
  .MsgContent {
    max-width: calc(100% - 44px);
    margin-left: 8px;
  }
  
  .MsgContent--user {
    margin-left: 0;
  }
  
  .MsgContent--userWide {
    width: 100%;
    max-width: 100%;
  }
  
  .MsgBubble {
    border-radius: 13px;
    padding: 11px 18px 7px 18px;
    box-sizing: border-box;
    box-shadow: 0 6px 15px rgba(55, 89, 160, 0.08);
  }
  
  .MsgBubble--user {
    background: linear-gradient(135deg, #4ea9ff 0%, #6cccf6 52%, #89e7c7 100%);
    border-top-right-radius: 6px;
  }
  
  .MsgText {
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
    white-space: pre-wrap;
    color: #30405e;
  }
  
  .MsgBubble--user .MsgText {
    color: #ffffff;
  }
  
  .NeutralCard {
    width: 100%;
    padding: 11px 18px 7px 18px;
    border-radius: 11px;
    background: linear-gradient(180deg, #f1f4f8 0%, #f8fafc 100%);
    border: 0.5px solid #dde5ee;
    box-shadow: 0 5px 12px rgba(55, 89, 160, 0.05);
    box-sizing: border-box;
  }
  
  .NeutralTag {
    display: inline-block;
    margin-bottom: 7px;
    margin-left: -4px;
    padding: 3px 7px;
    border-radius: 499.5px;
    background: #e9eef4;
    color: #647286;
    font-size: 11px;
    font-weight: 700;
  }
  
  .NeutralBody--system {
    text-align: center;
  }
  
  .NeutralCard--content {
    background: #ffffff;
    border: 0.5px solid #e8edf5;
    box-shadow: 0 6px 15px rgba(55, 89, 160, 0.08);
  }
  
  .NeutralCard--content .MdH1 {
    color: #1f2f53;
    font-weight: 700;
  }
  
  .NeutralCard--content .MdH2 {
    color: #24365f;
    font-weight: 700;
  }
  
  .NeutralCard--content .MdH3 {
    color: #2b3f70;
    font-weight: 700;
  }
  
  .NeutralCard--content .MdP,
  .NeutralCard--content .MdListContent,
  .NeutralCard--content .Seg--bold {
    color: #30405e;
  }
  
  .NeutralCard--content .NeutralTag {
    background: #eef3f8;
    color: #5e708d;
  }
  
  .MdH1,
  .MdH2,
  .MdH3,
  .MdP {
    white-space: pre-wrap;
    word-break: break-word;
  }
  
  .MdH1 {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.45;
    color: #5f6c80;
    font-weight: 700;
  }
  
  .MdH2 {
    margin-top: 7px;
    margin-bottom: 7px;
    font-size: 15.5px;
    line-height: 1.5;
    color: #667387;
    font-weight: 700;
  }
  
  .MdH3 {
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #6c788d;
    font-weight: 700;
  }
  
  .MdP {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.85;
    color: #6f7b8f;
  }
  
  .MdList {
    margin: 4px 0 6px;
  }
  
  .MdListItem {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
  }
  
  .MdBullet {
    width: 19px;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #4f7df5;
    font-weight: 700;
  }
  
  .MdListContent {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: #6f7b8f;
    word-break: break-word;
  }
  
  .Seg--bold {
    font-weight: 700;
    color: #5f6c80;
  }
  
  .Seg--code {
    padding: 1px 5px;
    border-radius: 5px;
    background: #eef3ff;
    color: #315fcc;
  }
  
  .NeutralCard .MdH1,
  .NeutralCard .MdH2,
  .NeutralCard .MdH3,
  .NeutralCard .MdP,
  .NeutralCard .MdList,
  .NeutralCard .MdListContent {
    padding-left: 2px;
  }
  
  /* 这里可调整：问题区与下方选项/继续出题区域的距离，当前比之前额外加了约 5px */
  .PageFixedBottom {
    flex-shrink: 0;
    padding: 5px 12px 0;
    box-sizing: border-box;
    background: rgba(245, 247, 251, 0.98);
  }
  
  .OptionCard {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  
  .OptionCard--fixed {
    margin-bottom: 0;
  }
  
  .OptionGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .OptionGrid--inCard {
    margin-bottom: 0;
  }
  
  .OptionBtn {
    width: calc(50% - 4px);
    min-height: 44px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 0.5px solid #dde5ef;
    color: #30405e;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .OptionBtn--selected {
    border-color: #a4cbff;
    background: #f2f8ff;
  }
  
  .OptionBtn--correct {
    color: #ffffff;
    border-color: #67b783;
    background: linear-gradient(135deg, #7bcf99 0%, #68be87 100%);
  }
  
  .OptionBtn--wrong {
    color: #ffffff;
    border-color: #df7a7a;
    background: linear-gradient(135deg, #f19a9a 0%, #e47f7f 100%);
  }
  
  .OptionBtn--disabled {
    color: #9aa6ba;
    background: #f7f9fc;
    border-color: #e3e9f2;
  }
  
  .OptionBtn--selected.OptionBtn--disabled {
    color: #30405e;
    border-color: #a4cbff;
    background: #f2f8ff;
  }
  
  .OptionBtn--correct.OptionBtn--disabled {
    color: #ffffff;
    border-color: #67b783;
    background: linear-gradient(135deg, #7bcf99 0%, #68be87 100%);
  }
  
  .OptionBtn--wrong.OptionBtn--disabled {
    color: #ffffff;
    border-color: #df7a7a;
    background: linear-gradient(135deg, #f19a9a 0%, #e47f7f 100%);
  }
  
  .InlineActionRow {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .InlineActionRow--fixed {
    margin-top: 2px;
    margin-bottom: 0px;
    margin-left: 5px;
  }
  
  .InlineActionBtn {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 499.5px;
    background: linear-gradient(135deg, #eef3f8 0%, #ffffff 100%);
    border: 0.5px solid #dde4ee;
    color: #4a5a72;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-right: 8px;
    margin-top: 4px;
    margin-bottom: 12px;
  }
  
  .InlineActionBtn--danger {
    color: #b55858;
    border-color: #e5b6b6;
    background: #fffafa;
  }
  .InlineActionBtn--disabled {
    color: #aab4c0;
    border-color: #e3e8ef;
    background: #f3f5f8;
  }
  
  .PageSafeBottomAnchor {
    height: 0.5px;
  }
  .PrimaryBtn {
    width: 100%;
    min-height: 44px;
    border-radius: 499.5px;
    background: linear-gradient(135deg, #eef3f8 0%, #ffffff 100%);
    border: 0.5px solid #dde4ee;
    color: #4a5a72;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .DotWrap {
    flex-shrink: 0;
    padding: 9px 11px calc(-9px + env(safe-area-inset-bottom));
    background: rgba(245, 247, 251);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  
  .DotItem {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d2d8e2;
    margin: 0 4px;
  }
  
  .DotItem--active {
    background: #8f99aa;
  }
  
  .PageBottomAnchor {
    height: 1px;
  }
  
  .StateWrap {
    padding: 50px 20px;
    text-align: center;
  }
  
  .StateText {
    font-size: 14px;
    color: #6d7992;
  }
  
  .StateText--error {
    color: #d93b3b;
  }


  /* ===== 顶部系统提示横条 ===== */
.SystemTopZone {
    margin: -12px -12px 12px;
    padding: 0;
  }
  
  .SystemTopBanner {
    width: calc(100% + 24px);
    margin-left: -12px;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #e6eaf0;
    border-bottom: 1px solid #e6eaf0;
    padding: 5px 12px;
    text-align: center;
  }
  
  .SystemTopBannerText {
    display: block;
    font-size: 12px;
    line-height: 16px;
    color: #98a2b3;
  }
  
  .SystemTopBanner .MdH1,
  .SystemTopBanner .MdH2,
  .SystemTopBanner .MdH3,
  .SystemTopBanner .MdP,
  .SystemTopBanner .Seg,
  .SystemTopBanner .MdListContent,
  .SystemTopBanner .MdBullet {
    font-size: 11.5px;
    line-height: 16px;
    color:#7a869d;
    text-align: center;
  }
  
  .SystemTopBanner .MdH1,
  .SystemTopBanner .MdH2,
  .SystemTopBanner .MdH3,
  .SystemTopBanner .MdP,
  .SystemTopBanner .MdList {
    margin: 0;
  }
  
  .SystemTopBanner .MdListItem {
    margin: 0;
    justify-content: center;
  }
  
  .SystemTopBanner .MdListItem + .MdListItem {
    margin-top: 1px;
  }
/* v17: AI出题解析后保留约24px底部空间，避免过紧 */
.H5Page--chat3 .PageSafeBottomAnchor {
  height: 48rpx !important;
}
