.pba-widget__container {
  position: fixed;
  z-index: 9999;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
}
.pba-widget__container *,
.pba-widget__container *:before,
.pba-widget__container *:after {
  box-sizing: inherit;
}
.pba-widget__container--bottom-right {
  bottom: 1.25rem;
  right: 1.25rem;
}
.pba-widget__container--bottom-left {
  bottom: 1.25rem;
  left: 1.25rem;
}
.pba-widget__container--top-right {
  top: 1.25rem;
  right: 1.25rem;
}
.pba-widget__container--top-left {
  top: 1.25rem;
  left: 1.25rem;
}
.pba-widget__container--embedded {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: auto;
  bottom: auto;
  right: auto;
  top: auto;
  left: auto;
}
.pba-widget__trigger-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 5px #0003;
  font-size: 1em;
  transition: background-color 0.2s ease;
}
.pba-widget__trigger-button:hover {
  background-color: #0056b3;
}
.pba-widget__trigger-button:disabled,
.pba-widget__trigger-button--disabled {
  background-color: #b0c4de;
  color: #789;
  cursor: not-allowed;
  opacity: 0.7;
}
.pba-widget__panel {
  width: 480px;
  max-height: 80vh;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 5px 20px #00000026;
  display: none;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
}
.pba-widget__panel--anchor-bottom {
  bottom: 0;
}
.pba-widget__panel--anchor-top {
  top: 0;
}
.pba-widget__panel--align-right {
  right: 0;
}
.pba-widget__panel--align-left {
  left: 0;
}
.pba-widget__panel--expand-upwards {
  bottom: calc(100% + 8px);
}
.pba-widget__panel--expand-downwards {
  top: calc(100% + 8px);
}
.pba-widget__panel--visible {
  display: flex;
}
.pba-widget__panel--embedded {
  position: relative;
  width: 100%;
  max-height: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background-color: transparent;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
}
.pba-widget__panel--align-right-edge {
  right: 0;
}
.pba-widget__panel--align-left-edge {
  left: 0;
}
.pba-widget__panel--center-horizontal {
  left: 50%;
  transform: translate(-50%);
}
.pba-widget__panel--dragging {
  opacity: 0.85;
  box-shadow: 0 8px 25px #0003;
}
.pba-widget__panel-header.pba-widget--draggable {
  cursor: move;
}
.pba-widget__panel-header.pba-widget--dragging {
  cursor: grabbing;
}
.pba-widget__panel-header {
  padding: 12px 18px;
  background-color: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.pba-widget__panel-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #333;
}
.pba-widget__panel-header-buttons {
  display: flex;
}
.pba-widget__reset-position-button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 5px;
  margin-right: 5px;
  font-weight: 700;
}
.pba-widget__reset-position-button:hover {
  color: #333;
}
.pba-widget__panel-close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
.pba-widget__panel-close-button:hover {
  color: #333;
}
.pba-widget__panel-body {
  padding: 1.125rem;
  background-color: #fff;
  min-height: 50px;
  overflow-y: auto;
  flex-grow: 1;
}
.pba-widget__response-area {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 1px 3px #0000000d;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  /* font-size: 2rem; */
}
.pba-widget__section-title {
  font-weight: 700;
  margin: 0 0 10px;
  color: #555;
  font-size: 1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.pba-widget__section-title:first-child {
  margin-top: 0;
}
.pba-widget__thinking-log-area {
  padding: 10px 15px;
  border-radius: 4px;
  position: relative;
  color: #6c757d;
  white-space: pre-wrap;
  margin: 0 0 15px;
  line-height: 1.6;
  font-size: 0.875rem;
  background: #f8f9fa;
  font-family: Courier New, Menlo, Consolas, å®‹ä½“, SimSun, monospace;
  border: 1px solid #e9ecef;
  min-height: 1.6em;
}
.pba-widget__thinking-log-entry {
  margin: 4px 0;
}
.pba-widget__results-display-area {
  font-family: '仿宋', FangSong, 'Songti SC', 'SimSun', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
  padding: 0;
  word-break: break-word;
}
.pba-widget__results-display-area h1 {
  font-family: 黑体, SimHei, Microsoft YaHei New, Microsoft Yahei, sans-serif;
  font-size: 2rem;
  color: #212529;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 1em;
  font-weight: 400;
  line-height: 1.4;
}
.pba-widget__results-display-area h2 {
  font-family: 黑体, SimHei, Microsoft YaHei New, Microsoft Yahei, sans-serif;
  font-size: 1.625rem;
  color: #343a40;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 1px solid #dee2e6;
}
.pba-widget__results-display-area h3 {
  font-family: '仿宋', FangSong, 'Songti SC', 'SimSun', serif;
  font-size: 1.375rem;
  color: #343a40;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  font-weight: 700;
}
.pba-widget__results-display-area p {
  margin-top: 0;
  margin-bottom: 1em;
  text-indent: 2em;
  text-align: justify;
}
.pba-widget__results-display-area li > p,
.pba-widget__results-display-area li > div > p {
  text-indent: 0;
  margin-bottom: 0.5em;
}
.pba-widget__results-display-area h1 + p,
.pba-widget__results-display-area h2 + p,
.pba-widget__results-display-area h3 + p {
  text-indent: 0;
  line-height: 1.8;
}
/* .pba-widget__results-display-area h1 + p > strong:first-child,
.pba-widget__results-display-area h2 + p > strong:first-child,
.pba-widget__results-display-area h3 + p > strong:first-child {
  padding-left: 2em;
} */
.pba-widget__results-display-area ul li em {
  font-style: normal;
  font-weight: bold;
}
.pba-widget__results-display-area ul,
.pba-widget__results-display-area ol {
  list-style: none;
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 1em;
}
.pba-widget__results-display-area ul li:before {
  content: '•';
  color: #333;
  display: inline-block;
  width: 1em;
  margin-left: -1.3em;
  font-size: 0.75rem;
}
.pba-widget__results-display-area ol {
  list-style: decimal;
  padding-left: 2.5em;
}
.pba-widget__results-display-area ol li:before {
  content: '';
  margin-left: 0;
}
.pba-widget__results-display-area li {
  margin-bottom: 0.6em;
  position: relative;
}
.pba-widget__results-display-area li ol {
  list-style: decimal;
  padding-left: 0;
}
.pba-widget__results-display-area blockquote {
  margin: 1.5em 0 1em;
  padding: 10px 15px;
  border-left: 3px solid #adb5bd;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: 1rem;
}
.pba-widget__results-display-area blockquote p {
  margin-bottom: 0;
  text-indent: 0;
  text-align: left;
}
.pba-widget__results-display-area pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 15px;
  overflow-x: auto;
  white-space: pre;
  font-family: Courier New, Menlo, Consolas, SFMono-Regular, Liberation Mono,
    monospace;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1em;
  text-indent: 0;
}
.pba-widget__results-display-area pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  font-family: inherit;
}
.pba-widget__panel-actions {
  padding: 10px 18px;
  border-top: 1px solid #e0e0e0;
  background-color: #f7f7f7;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.pba-widget__action-button {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.pba-widget__action-button:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
}
.pba-widget__action-button:disabled,
.pba-widget__action-button--disabled {
  background-color: #e9ecef;
  color: #adb5bd;
  border-color: #ced4da;
  cursor: not-allowed;
  opacity: 0.65;
}
.pba-widget__action-button--primary {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
.pba-widget__action-button--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}
.pba-widget__action-button--primary:disabled,
.pba-widget__action-button--primary.pba-widget__action-button--disabled {
  background-color: #5a99d7;
  border-color: #5a99d7;
  color: #cde0f0;
  opacity: 0.6;
}
.pba-widget__error-message {
  color: #dc3545;
  font-weight: 700;
  padding: 10px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin-bottom: 10px;
}
.pba-widget__debug-link {
  font-size: 0.75rem;
  margin-top: 5px;
}
.pba-widget__debug-link a {
  color: #007bff;
  text-decoration: underline;
}
.pba-widget__results-display-area.typing-cursor:after {
  content: '▋';
  animation: pba-widget-blink 1s step-end infinite;
  display: inline-block;
  margin-left: 2px;
  opacity: 1;
  color: #555;
}
.pba-widget__results-display-area.done-typing:after {
  content: '';
  animation: none;
  opacity: 0;
}
@keyframes pba-widget-blink {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.pba-widget__panel-header {
  display: none;
}
.pba-widget__panel-actions {
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  border: 1px solid #e0e0e0;
}
.pba-widget__panel--embedded {
  top: -2rem;
}
.pba-widget__panel-body {
  padding: 18px 0 0;
  box-sizing: border-box;
  margin: 0 !important;
}
/* table */
table {
  width: auto;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background-color: #4267b8;
  color: white;
}

table th {
  padding: 10px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 1.125em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tbody tr {
  border-bottom: 1px solid #e1e8f0;
  transition: all 0.3s ease;
}

table tbody tr:nth-child(even) {
  background-color: #f8fafd;
}

table tbody tr:hover {
  background-color: #edf4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

table td {
  padding: 14px 20px;
  color: #333;
  line-height: 1.6;
  vertical-align: top;
}

table td:first-child {
  font-weight: 600;
  color: #1a3a6c;
  width: 22%;
}
/* table */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .ai-superscript-badge {
    right: -0.75rem;
    font-size: 1.25rem;
  }
  .js-dynamic-content {
    padding: 1rem;
  }
  .pba-widget__section-title {
    font-size: 2rem;
  }
  .pba-widget__thinking-log-area {
    font-size: 1.75rem;
  }
  .pba-widget__results-display-area ul li:before {
    font-size: 2rem;
  }
  .pba-widget__results-display-area h1 {
    font-size: 2.75rem;
  }
  .pba-widget__results-display-area h2 {
    font-size: 2.5rem;
  }
  .pba-widget__results-display-area h3 {
    font-size: 2.25rem;
  }
  .pba-widget__results-display-area {
    font-size: 2.125rem;
  }
  .pba-widget__results-display-area blockquote {
    font-size: 2rem;
  }
  .pba-widget__action-button {
    padding: 0.75rem 1rem;
    font-size: 2rem;
  }
  .pba-widget__response-area {
    border: 0;
  }
  .pba-widget__results-display-area ul,
  .pba-widget__results-display-area ol {
    padding-left: 1em;
  }
  table {
    font-size: 1.875rem;
  }
  table th {
    font-size: 2rem;
  }
  table td:first-child {
    width: 28%;
  }
}

@media (max-width: 600px) {
  .pba-widget__panel {
    width: 95vw; /* ä¿æŒæˆ–å¾®è°ƒ */
    max-height: 90vh; /* ä¿æŒæˆ–å¾®è°ƒ */
  }
  /* è°ƒæ•´æµ®åŠ¨å®¹å™¨åœ¨å°å±å¹•ä¸Šçš„è¾¹è· */
  .pba-widget__container--bottom-right {
    bottom: 10px;
    right: 10px;
  }
  .pba-widget__container--bottom-left {
    bottom: 10px;
    left: 10px;
  }
  .pba-widget__container--top-right {
    top: 10px;
    right: 10px;
  }
  .pba-widget__container--top-left {
    top: 10px;
    left: 10px;
  }

  .pba-widget__panel-header {
    padding: 10px 12px; /* è¿›ä¸€æ­¥å‡å°padding */
  }
  .pba-widget__panel-body {
    /* å¦‚æžœ767pxæ—¶å·²è°ƒæ•´paddingï¼Œè¿™é‡Œå¯èƒ½ä¸éœ€è¦å†æ”¹ï¼Œé™¤éžè¦æ›´å° */
    /* padding: 15px; */ /* å¦‚æžœ767pxæ—¶æ˜¯ padding: 15px 8px 8px; è¿™é‡Œå¯ä»¥å†™ padding: 12px 5px 5px; */
  }
  .pba-widget__response-area {
    padding: 8px; /* è¿›ä¸€æ­¥å‡å°padding */
  }
  .pba-widget__action-button {
    /* font-size: 0.85em; */ /* å·²åœ¨ 767px ä¸­è®¾ä¸º 0.9emï¼Œè¿™é‡Œå¦‚æžœæƒ³æ›´å°å¯ä»¥æ”¹ä¸º 0.8em (ç›¸å¯¹äºŽ13px) */
    padding: 6px 10px; /* ä¿æŒæˆ–å¾®è°ƒ */
  }
  .pba-widget__response-area {
    border: 0;
  }
  .pba-widget__results-display-area ul,
  .pba-widget__results-display-area ol {
    padding-left: 1em;
  }
  table {
    font-size: 1.875rem;
  }
  table th {
    font-size: 2rem;
  }
  table td:first-child {
    width: 28%;
  }
}

@media (max-width: 480px) {
  .pba-widget__panel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pba-widget__action-button {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  /* åœ¨éžå¸¸å°çš„å±å¹•ä¸Šï¼Œå¯ä»¥è€ƒè™‘è¿›ä¸€æ­¥å‡å°ç»“æžœåŒºå­—ä½“ */
  .pba-widget__results-display-area {
    font-size: 16px; /* ä»Ž 17px/18px è¿›ä¸€æ­¥å‡å° */
  }
  .pba-widget__thinking-log-area {
    font-size: 11px;
  }
  .pba-widget__response-area {
    border: 0;
  }
  .pba-widget__results-display-area ul,
  .pba-widget__results-display-area ol {
    padding-left: 1em;
  }
  table {
    font-size: 1.875rem;
  }
  table th {
    font-size: 2rem;
  }
  table td:first-child {
    width: 28%;
  }
}
