/* 页面基础 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --qa-color-primary: #2d65f7;
  --qa-color-primary-light: #0f8dff;
  --qa-color-text: #171717;
  --qa-color-text-secondary: #383838;
  --qa-color-text-muted: #393939;
  --qa-color-placeholder: #cbcbcb;
  --qa-color-norm: #f87111;
  --qa-font-base: calc(16vw / 19.2);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--qa-color-text);
  background: url(../images/znwd-images/bg-main.png) no-repeat center top;
  background-size: cover;
}

body[data-font-size="large"] {
  --qa-font-base: calc(18vw / 19.2);
}

body[data-font-size="medium"] {
  --qa-font-base: calc(16vw / 19.2);
}

body[data-font-size="small"] {
  --qa-font-base: calc(14vw / 19.2);
}

/* 头部 */
.qa-header {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: calc(23vh / 10.8) 0 calc(12vh / 10.8);
}

.qa-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(36vw / 19.2);
}

.qa-header-logo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.qa-header-logo {
  height: calc(53vh / 10.8);
  object-fit: contain;
  display: block;
}

.qa-header-divider {
  width: 1px;
  height: calc(40vh / 10.8);
  background: #ffffff;
  flex-shrink: 0;
}

.qa-header-title {
  margin: 0;
  padding-top: calc(2vh / 10.8);
  font-size: calc(22vw / 19.2);
  font-weight: bold;
  letter-spacing: 1.39px;
  color: #171717;
  white-space: nowrap;
  line-height: 1;
}

/* 主内容区 */
.qa-main {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0 calc(20vw / 19.2);
}

.qa-card-wrap {
  display: flex;
  gap: 0;
  width: calc(1153vw / 19.2);
  height: 100%;
  min-height: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #e8ecf0;
  border-radius:20px;
  box-shadow: 0 4px 24px rgba(45, 101, 247, 0.1);
}

/* 左侧对话面板 */
.qa-chat-panel {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: calc(12vh / 10.8) calc(24vw / 19.2) calc(14vh / 10.8);
}

/* 工具栏 */
.qa-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(10vh / 10.8);
  flex-shrink: 0;
}

.qa-font-size {
  display: flex;
  align-items: center;
  gap: calc(6vw / 19.2);
  padding: calc(3vh / 10.8) calc(12vw / 19.2);
  background: #f5f7fa;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.qa-font-label {
  font-size: calc(12vw / 19.2);
  color: var(--qa-color-text);
  letter-spacing: 0.55px;
  white-space: nowrap;
}

.qa-font-btn {
  border: none;
  background: none;
  padding: 0 calc(8vw / 19.2);
  font-size: calc(12vw / 19.2);
  color: var(--qa-color-text);
  cursor: pointer;
  letter-spacing: 0.55px;
  font-family: inherit;
}

.qa-font-btn.active {
  color: var(--qa-color-primary-light);
  font-weight: bold;
}

.qa-toolbar-actions {
  display: flex;
  align-items: center;
  gap: calc(8vw / 19.2);
}

.qa-action-btn {
  display: flex;
  align-items: center;
  gap: calc(4vw / 19.2);
  padding: calc(3vh / 10.8) calc(10vw / 19.2);
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  background: #fff;
  font-size: calc(12vw / 19.2);
  color: var(--qa-color-text);
  cursor: pointer;
  letter-spacing: 0.55px;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
}

.qa-action-btn:hover {
  background: #f5f7fa;
}

.qa-action-norm {
  color: var(--qa-color-norm);
}

.qa-action-norm img {
  width: calc(17vw / 19.2);
  height: calc(13vh / 10.8);
  object-fit: contain;
}

.qa-icon {
  display: inline-block;
  width: calc(12vw / 19.2);
  height: calc(12vw / 19.2);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.qa-icon-trash {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23383838' stroke-width='2'%3E%3Cpath d='M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2m3 0v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6h14z'/%3E%3C/svg%3E");
}

.qa-icon-clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23383838' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

/* 消息列表 */
.qa-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: calc(4vh / 10.8) calc(4vw / 19.2) calc(4vh / 10.8) 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 101, 247, 0.45) transparent;
}

.qa-messages::-webkit-scrollbar {
  width: calc(6vw / 19.2);
}

.qa-messages::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.qa-messages::-webkit-scrollbar-thumb {
  background-color: rgba(45, 101, 247, 0.35);
  border-radius: 999px;
  border: calc(2vw / 19.2) solid transparent;
  background-clip: padding-box;
}

.qa-messages::-webkit-scrollbar-thumb:hover {
  background-color: rgba(45, 101, 247, 0.55);
}

.qa-message {
  display: flex;
  align-items: flex-start;
  gap: calc(10vw / 19.2);
  margin-bottom: calc(14vh / 10.8);
}

.qa-message:last-child {
  margin-bottom: 0;
}

.qa-message-bot {
  justify-content: flex-start;
}

.qa-message-user {
  justify-content: flex-end;
}

.qa-msg-avatar {
  width: calc(38vw / 19.2);
  height: calc(38vw / 19.2);
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.qa-msg-bubble {
  width: fit-content;
  max-width: 75%;
  flex: 0 1 auto;
  padding: calc(10vh / 10.8) calc(16vw / 19.2);
  font-size: var(--qa-font-base);
  line-height: 1.5;
  letter-spacing: 0.75px;
  word-break: break-word;
}

.qa-msg-bubble-bot {
  background: #f5f7fa;
  border: 1px solid #e8ecf0;
  border-radius: 4px 20px 20px 20px;
  color: var(--qa-color-text);
}

.qa-msg-bubble-user {
  background: linear-gradient(135deg, #3b7dff 0%, #2d65f7 100%);
  border-radius: 20px 4px 20px 20px;
  color: #fff;
}

.qa-msg-bubble-welcome {
  max-width: 88%;
}

.qa-welcome p {
  margin: 0 0 calc(10vh / 10.8);
  line-height: 1.6;
}

.qa-welcome p:last-child {
  margin-bottom: 0;
}

.qa-welcome-greeting {
  font-weight: 600;
}

.qa-welcome-tip {
  margin-bottom: calc(8vh / 10.8);
}

.qa-welcome-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8vh / 10.8) calc(8vw / 19.2);
  margin-bottom: calc(10vh / 10.8);
}

.qa-welcome-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: calc(6vw / 19.2);
  padding: calc(6vh / 10.8) calc(12vw / 19.2);
  border: none;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--qa-color-primary);
  font-family: inherit;
  font-size: var(--qa-font-base);
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
  transition: background 0.2s, box-shadow 0.2s;
}

.qa-welcome-chip:hover {
  background: #dce8ff;
  box-shadow: 0 2px 8px rgba(45, 101, 247, 0.12);
}

.qa-welcome-chip-icon {
  width: calc(14vw / 19.2);
  height: calc(14vw / 19.2);
  flex-shrink: 0;
  margin-top: calc(2vh / 10.8);
  background: url(../images/znwd-images/list-icon.png) no-repeat center;
  background-size: contain;
}

.qa-welcome-chip-text {
  flex: 1;
  min-width: 0;
}

.qa-welcome-slogan {
  color: var(--qa-color-text-secondary);
}

/* 输入区 */
.qa-input-bar {
  display: flex;
  align-items: center;
  gap: calc(12vw / 19.2);
  margin-top: calc(10vh / 10.8);
  padding: calc(6vh / 10.8) calc(14vw / 19.2);
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.qa-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: calc(15vw / 19.2);
  color: var(--qa-color-text);
  background: transparent;
  font-family: inherit;
  letter-spacing: 0.75px;
}

.qa-input::placeholder {
  color: var(--qa-color-placeholder);
}

.qa-send-btn {
  width: calc(32vw / 19.2);
  height: calc(32vw / 19.2);
  border: none;
  border-radius: 50%;
  background: #2d65f7;
  background-size: cover;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: opacity 0.2s;
}

.qa-send-btn:hover {
  opacity: 0.85;
}

.qa-send-btn img {
  width: calc(14vw / 19.2);
  height: calc(14vw / 19.2);
  object-fit: contain;
}

/* 右侧边栏 */
.qa-sidebar {
  width: calc(321vw / 19.2);
  flex-shrink: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #eef1f6;
  box-shadow: 0px 4px 32px 0px rgba(99, 174, 224, 0.93);
  padding: calc(30vh / 10.8) calc(22vh / 10.8);
  border-radius: 0 20px 20px 0;
  overflow: hidden;
}

.qa-sidebar-section {
  min-height: 0;
}

.qa-sidebar-section:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: calc(10vh / 10.8);
}

.qa-sidebar-section:last-child {
  flex-shrink: 0;
}

.qa-section-title {
  display: flex;
  align-items: center;
  gap: calc(6vw / 19.2);
  margin: 0 0 calc(8vh / 10.8);
  font-size: calc(17vw / 19.2);
  font-weight: bold;
  color: var(--qa-color-primary);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.qa-section-title img {
  width: calc(22vw / 19.2);
  height: calc(22vw / 19.2);
  object-fit: contain;
}

/* 热点问题列表 */
.qa-hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.qa-hot-item {
  display: flex;
  align-items: flex-start;
  gap: calc(8vw / 19.2);
  padding: calc(6vh / 10.8) 0;
  cursor: pointer;
  transition: color 0.2s;
}

.qa-hot-item + .qa-hot-item {
  margin-top: calc(4vh / 10.8);
}

.qa-hot-item:hover {
  color: var(--qa-color-primary);
}

.qa-hot-item-icon {
  width: calc(12vw / 19.2);
  height: calc(12vw / 19.2);
  margin-top: calc(2vh / 10.8);
  flex-shrink: 0;
  object-fit: contain;
}

.qa-hot-item a {
  flex: 1;
  min-width: 0;
  font-size: calc(14vw / 19.2);
  line-height: 1.45;
  color: var(--qa-color-text-secondary);
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}

.qa-hot-item:hover a {
  color: var(--qa-color-primary);
}

.qa-bot-res {
  margin-bottom: calc(8vh / 10.8);
  line-height: 1.6;
}

.qa-bot-res a,
.qa-bot-link {
  color: var(--qa-color-primary);
  text-decoration: none;
}

.qa-bot-res a:hover,
.qa-bot-link:hover {
  text-decoration: underline;
}

.qa-answer-options {
  display: flex;
  flex-direction: column;
  gap: calc(8vh / 10.8);
}

.qa-answer-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(4vh / 10.8);
  width: 100%;
  padding: calc(8vh / 10.8) calc(10vw / 19.2);
  border: 1px solid #e8ecf0;
  border-radius: calc(8vw / 19.2);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qa-answer-option:hover {
  border-color: #c5d4f7;
  box-shadow: 0 2px 8px rgba(45, 101, 247, 0.1);
}

.qa-answer-option-text {
  font-size: var(--qa-font-base);
  color: var(--qa-color-text);
  line-height: 1.5;
}

.qa-answer-option-date {
  font-size: calc(11vw / 19.2);
  color: var(--qa-color-text-secondary);
}

.qa-bot-detail {
  line-height: 1.6;
  word-break: break-word;
}

.qa-rules-list {
  margin: 0;
  padding-left: calc(18vw / 19.2);
  line-height: 1.6;
}

.qa-rules-list li {
  margin-bottom: calc(6vh / 10.8);
}

/* 快捷链接网格 */
.qa-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(130vw / 19.2));
  gap: calc(18vw / 19.2);
  justify-content: center;
}

.qa-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4vh / 10.8);
  width: calc(130vw / 19.2);
  height: calc(88vh / 10.8);
  box-sizing: border-box;
  background-color: #ffffff;
  box-shadow: 0px 3px 6px 0px rgba(184, 229, 254, 0.67);
  border-radius: 10px;
  border: solid 2px #ffffff;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}

.qa-quick-item:hover {
  box-shadow: 0 4px 12px rgba(45, 101, 247, 0.12);
  border-color: #c5d4f7;
}

.qa-quick-item img {
  width: calc(24vw / 19.2);
  height: calc(24vw / 19.2);
  object-fit: contain;
}

.qa-quick-item span {
  font-size: calc(16vw / 19.2);
  color: var(--qa-color-text-muted);
  letter-spacing: 0.5px;
}

/* 页脚 */
.qa-footer {
  margin-top: calc(34vh / 10.8);
  flex-shrink: 0;
  padding-bottom: calc(32vh / 10.8);
}

.qa-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(24vw / 19.2);
  width: calc(1153vw / 19.2);
  margin: 0 auto;
}

.qa-footer-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.qa-footer-badge-gov {
  width: calc(52vw / 19.2);
  height: calc(63vh / 10.8);
  object-fit: contain;
}

.qa-footer-find-error {
  display: block;
  line-height: 0;
}

.qa-footer-find-error img {
  width: calc(117vw / 19.2);
  height: calc(62vh / 10.8);
  object-fit: contain;
  display: block;
}

.qa-footer-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: calc(32vw / 19.2);
  row-gap: calc(8vh / 10.8);
  align-items: start;
  justify-items: center;
}

.qa-footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8vh / 10.8);
  width: 100%;
  text-align: center;
}

.qa-footer-line {
  margin: 0;
  font-size: calc(12vw / 19.2);
  color: var(--qa-color-text);
  letter-spacing: 0.55px;
  line-height: 1.4;
}

.qa-footer-line a {
  color: inherit;
  text-decoration: none;
}

.qa-footer-line a:hover {
  text-decoration: underline;
}

.qa-footer-line-lg {
  font-size: calc(12vw / 19.2);
}

.qa-footer-line-icp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(4vw / 19.2);
}

.qa-footer-col:nth-child(2) .qa-footer-line-icp {
  justify-content: center;
}

.qa-footer-icp-icon {
  display: inline-block;
  width: calc(18vw / 19.2);
  height: calc(20vh / 10.8);
  flex-shrink: 0;
  background: url("../images/znwd-images/footer-bottom-icon.png") no-repeat center;
  background-size: contain;
}

/* 提示层 */
.qa-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 8px;
  font-size: calc(14vw / 19.2);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.qa-toast.show {
  opacity: 1;
}

/* 咨询规范弹层 */
.qa-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.qa-modal.show {
  display: flex;
}

.qa-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.qa-modal-panel {
  position: relative;
  width: calc(520vw / 19.2);
  padding: calc(20vh / 10.8) calc(24vw / 19.2);
  background: #fff;
  border-radius: calc(12vw / 19.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.qa-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(16vh / 10.8);
}

.qa-modal-title {
  margin: 0;
  font-size: calc(18vw / 19.2);
  font-weight: 600;
  color: var(--qa-color-text);
}

.qa-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(28vw / 19.2);
  height: calc(28vw / 19.2);
  padding: 0;
  border: none;
  background: transparent;
  font-size: calc(24vw / 19.2);
  line-height: 1;
  color: var(--qa-color-text-secondary);
  cursor: pointer;
}

.qa-modal-close:hover {
  color: var(--qa-color-primary);
}

.qa-modal-body {
  margin: 0;
  padding-left: calc(18vw / 19.2);
  line-height: 1.6;
}

.qa-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qa-history-item {
  margin-bottom: calc(10vh / 10.8);
}

.qa-history-item:last-child {
  margin-bottom: 0;
}

.qa-history-item-btn {
  display: block;
  width: 100%;
  padding: calc(8vh / 10.8) calc(10vw / 19.2);
  border: 1px solid #e8ecf0;
  border-radius: calc(8vw / 19.2);
  background: #fff;
  font-family: inherit;
  font-size: var(--qa-font-base);
  color: var(--qa-color-text);
  text-align: left;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qa-history-item-btn:hover {
  border-color: #c5d4f7;
  box-shadow: 0 2px 8px rgba(45, 101, 247, 0.1);
  color: var(--qa-color-primary);
}

.qa-history-empty {
  padding: calc(8vh / 10.8) 0;
  color: var(--qa-color-text-secondary);
  list-style: none;
}

/* 平板适配 */
@media screen and (max-width: 992px) {
  body {
    min-width: 0;
    background-size: auto;
  }

  .qa-main {
    padding: 0 16px;
  }

  .qa-card-wrap,
  .qa-footer-inner {
    width: 100%;
  }

  .qa-footer {
    margin-top: 24px;
    padding: 0 16px 24px;
  }

  .qa-footer-grid {
    column-gap: 16px;
  }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  :root {
    --qa-font-base: 14px;
    --qa-header-height: 62px;
    --qa-chat-panel-height: calc(100vh - var(--qa-header-height));
  }

  body[data-font-size="large"] {
    --qa-font-base: 16px;
  }

  body[data-font-size="medium"] {
    --qa-font-base: 14px;
  }

  body[data-font-size="small"] {
    --qa-font-base: 12px;
  }

  html,
  body {
    height: auto;
    min-height: 100%;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background-size: 100% 100%;
  }

  .qa-header {
    padding: 16px 12px 10px;
  }

  .qa-header-inner {
    gap: 12px;
  }

  .qa-header-logo {
    height: 36px;
  }

  .qa-header-divider {
    height: 28px;
  }

  .qa-header-title {
    font-size: 18px;
    letter-spacing: 0.5px;
    white-space: normal;
    text-align: center;
  }

  .qa-main {
    display: block;
    padding: 0 12px;
  }

  .qa-card-wrap {
    flex-direction: column;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .qa-chat-panel {
    flex: none;
    height: var(--qa-chat-panel-height);
    max-height: var(--qa-chat-panel-height);
    min-height: 0;
    overflow: hidden;
    padding: 12px;
  }

  .qa-toolbar {
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
  }

  .qa-font-size {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 8px;
    gap: 4px;
  }

  .qa-font-label {
    font-size: 12px;
  }

  .qa-font-btn {
    padding: 0 6px;
    font-size: 13px;
  }

  .qa-toolbar-actions {
    gap: 6px;
  }

  .qa-action-btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
  }

  .qa-action-norm img {
    width: 14px;
    height: 14px;
  }

  .qa-icon {
    width: 14px;
    height: 14px;
  }

  .qa-messages {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 4px 4px 0;
  }

  .qa-messages::-webkit-scrollbar {
    width: 4px;
  }

  .qa-message {
    gap: 8px;
    margin-bottom: 12px;
  }

  .qa-msg-avatar {
    width: 32px;
    height: 32px;
  }

  .qa-msg-bubble {
    max-width: 82%;
    padding: 10px 12px;
  }

  .qa-msg-bubble-welcome {
    max-width: 92%;
  }

  .qa-welcome-chip {
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 16px;
  }

  .qa-welcome-chip-icon {
    width: 12px;
    height: 12px;
    margin-top: 3px;
  }

  .qa-input-bar {
    flex-shrink: 0;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 24px;
  }

  .qa-input {
    font-size: 14px;
  }

  .qa-send-btn {
    width: 36px;
    height: 36px;
  }

  .qa-send-btn img {
    width: 16px;
    height: 16px;
  }

  .qa-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #eef1f6;
    box-shadow: none;
    border-radius: 0 0 12px 12px;
    padding: 16px 12px;
    overflow: visible;
  }

  .qa-sidebar-section:first-child {
    flex: none;
    margin-bottom: 16px;
    max-height: none;
  }

  .qa-section-title {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .qa-section-title img {
    width: 18px;
    height: 18px;
  }

  .qa-hot-item {
    padding: 8px 0;
    gap: 8px;
  }

  .qa-hot-item + .qa-hot-item {
    margin-top: 0;
  }

  .qa-hot-item-icon {
    width: 12px;
    height: 12px;
    margin-top: 3px;
  }

  .qa-hot-item a {
    font-size: 14px;
  }

  .qa-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .qa-quick-item {
    width: 100%;
    height: auto;
    min-height: 76px;
    padding: 10px 6px;
    border-radius: 8px;
  }

  .qa-quick-item img {
    width: 24px;
    height: 24px;
  }

  .qa-quick-item span {
    font-size: 13px;
  }

  .qa-footer {
    margin-top: 16px;
    padding: 0 12px 20px;
  }

  .qa-footer-inner {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .qa-footer-grid {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .qa-footer-line {
    font-size: 12px;
  }

  .qa-footer-line-lg {
    font-size: 13px;
  }

  .qa-footer-badge-gov {
    width: 44px;
    height: 52px;
  }

  .qa-footer-find-error img {
    width: 100px;
    height: auto;
  }

  .qa-modal-panel {
    width: calc(100% - 32px);
    padding: 16px;
    border-radius: 12px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .qa-modal-title {
    font-size: 17px;
  }

  .qa-modal-close {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .qa-modal-body {
    padding-left: 16px;
  }

  .qa-toast {
    width: calc(100% - 48px);
    font-size: 14px;
    text-align: center;
  }

  .qa-answer-option {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .qa-answer-option-date {
    font-size: 12px;
  }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
  :root {
    --qa-header-height: 84px;
  }

  .qa-header-inner {
    justify-content: center;
  }

  .qa-header-title {
    width: 100%;
    padding-top: 0;
  }

  .qa-chat-panel {
    padding: 10px;
  }

  .qa-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .qa-toolbar-actions {
    justify-content: space-between;
  }

  .qa-action-btn {
    flex: 1;
    justify-content: center;
  }

  .qa-msg-bubble {
    max-width: 88%;
  }

  .qa-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .qa-quick-item {
    min-height: 72px;
  }

  .qa-quick-item span {
    font-size: 12px;
  }

}
