.filler-page {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 20px;
}

/* ========== 顶部导航栏 ========== */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #6b7280;
  padding: 0 20px;
  height: 50px;
}

.nav-tabs {
  display: flex;
  gap: 8px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: #d1d5db;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 14px;
  user-select: none;
}

.nav-tab:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.nav-tab.active {
  background: #1890ff;
  color: #fff;
}

.tab-icon {
  font-size: 16px;
}

.tab-text {
  font-weight: 500;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 14px;
}

.nav-user .user-email {
  color: #f3f4f6;
}

.nav-user .logout-btn {
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-user .logout-btn:hover {
  opacity: 1;
}

.nav-user .login-btn {
  color: #fff;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
}

.nav-user .login-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

/* ========== 跑马灯提示 ========== */
.marquee-bar {
  background: #f0f7ff;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 20px;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-bar:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-item {
  font-size: 13px;
  color: #333;
}

/* 跑马灯数字圆圈图标 */
.marquee-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1890ff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  flex-shrink: 0;
}

.marquee-divider {
  margin: 0 20px;
  color: #ccc;
  font-size: 12px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* 响应式：手机端改为淡入淡出交替显示 */
@media (max-width: 768px) {
  .marquee-content {
    animation: none; /* 取消滚动 */
    justify-content: center;
    position: relative;
    height: 20px;
  }

  .marquee-divider {
    display: none; /* 隐藏分隔符 */
  }

  .marquee-item {
    position: absolute;
    opacity: 0;
    animation: fade-switch 6s infinite;
    white-space: normal;
    text-align: center;
    width: 100%;
  }

  .marquee-item:nth-child(1) {
    animation-delay: 0s;
  }

  .marquee-item:nth-child(3) {
    animation-delay: 3s;
  }
}

@keyframes fade-switch {
  0%, 40% {
    opacity: 1;
  }
  50%, 90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.filler-card, .progress-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 20px;
}

/* ========== 左右分栏布局 ========== */
.config-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.config-left {
  flex: 1;
  min-width: 0;
}

.config-right {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 70px;
}

.task-params-card {
  padding: 20px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

/* 步骤3卡片内部滚动条美化 */
.task-params-card::-webkit-scrollbar {
  width: 4px;
}

.task-params-card::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.task-params-card::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.param-item {
  margin-bottom: 16px;
}

.param-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.param-tip {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* 参数卡片样式 */
.param-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.param-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.param-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}

.param-input:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.param-card-tip {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* 速度选择器样式 */
.speed-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.speed-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.speed-option:hover {
  border-color: #1890ff;
  background: #f0f7ff;
}

.speed-option input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.speed-option input[type="radio"]:checked + span {
  color: #1890ff;
  font-weight: 600;
}

.speed-option:has(input:checked) {
  border-color: #1890ff;
  background: #f0f7ff;
}

.speed-option span {
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

/* 开关切换样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-bottom: 8px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #1890ff;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.btn-parse {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.btn-start {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}

/* 卡片步骤标签 */
.card-step-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Tab 面板 */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.card-title {
  font-size: 18px;
  color: #333;
  margin: 0 0 20px 0;
  border-left: 4px solid #1890ff;
  padding-left: 10px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #666;
}

input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

input:focus, select:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  background-color: #1890ff;
  color: #fff;
}

.btn:hover {
  background-color: #096dd9;
}

.parse-result {
  margin-top: 20px;
}

/* 步骤2卡片 */
.step2-card {
  min-height: 200px;
}

/* 权重配置说明区域 */
.weight-config-tip {
  background: #f0f7ff;
  border: 1px solid #1890ff;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.weight-config-tip .tip-header {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.weight-config-tip .tip-header:hover {
  background: #e8f4ff;
}

.weight-config-tip .tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #1890ff;
  font-size: 14px;
}

.weight-config-tip .tip-toggle {
  color: #1890ff;
  font-size: 12px;
}

.weight-config-tip .tip-body {
  padding: 0 16px 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

.weight-config-tip .tip-section {
  margin-bottom: 12px;
}

.weight-config-tip .tip-section strong {
  color: #333;
}

.weight-config-tip .tip-section .tip-detail {
  padding-left: 16px;
  margin-top: 4px;
}

.weight-config-tip .tip-placeholder {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 20px 0;
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}

.result-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.question-list {
  margin-bottom: 20px;
}

.question-item {
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 15px;
}

.question-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #e8f4ff;
  color: #1890ff;
  font-size: 12px;
  border-radius: 4px;
  margin-left: 8px;
  cursor: help;
  position: relative;
}

/* 题型标签内的信息图标 */
.type-info-icon {
  font-size: 12px;
  color: #91caff;
  font-style: normal;
  line-height: 1;
}

/* 题型提示浮窗 */
.question-type-tooltip {
  position: fixed;
  background: #fff;
  border: 1px solid #1890ff;
  border-radius: 6px;
  padding: 12px 16px;
  min-width: 280px;
  max-width: 400px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 10000;
  white-space: normal;
  text-align: left;
  pointer-events: none;
}

.question-type-tooltip strong {
  color: #333;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}

.question-type-tooltip .tip-content {
  margin-bottom: 8px;
}

.question-type-tooltip .tip-example {
  color: #999;
  font-size: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e8e8e8;
}

.option-item {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.option-label {
  flex: 1;
}

.option-prob {
  width: 80px;
  margin-left: 10px;
}

.task-config {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.config-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.config-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.config-item {
  flex: 1;
  min-width: 150px;
}

.range-input {
  display: flex;
  align-items: center;
  gap: 5px;
}

.progress-card {
  display: none;
}

.progress-info {
  margin-top: 10px;
}

.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #52c41a;
  width: 0%;
  transition: width 0.3s;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.unsupported-tip {
  color: #faad14;
  font-size: 12px;
  margin-top: 5px;
}
/* 权重标签样式 */
.weight-label {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

/* 百分比标签样式 */
.percent-label {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

/* 必选输入框样式 */
.required-input {
    border: 2px solid red;
}

/* 提示文字样式 */
.question-tip {
    color: #999;
    font-size: 11px;
    margin-top: 4px;
    font-style: italic;
}

/* 概率显示样式 */
.probability-display {
    color: #1890ff;
    font-size: 12px;
    margin-left: 10px;
    min-width: 60px;
    text-align: right;
}

/* 强制禁用按钮样式（核心） */
#startTaskBtn:disabled,
#startTaskBtn.running-disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
}

#parseBtn:disabled,
#parseBtn.running-disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
}
/* 填空题答案库样式 */
.fill-answer-library {
    width: 100%;
}

.answer-library-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.library-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.library-tip {
    color: #999;
    font-size: 12px;
}

.fill-answers-container {
    margin-bottom: 10px;
}

.fill-answer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.fill-answer-item:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
}

.answer-index {
    font-size: 13px;
    color: #666;
    min-width: 50px;
    font-weight: 500;
}

.fill-answer-text {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.fill-answer-text:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.fill-answer-weight {
    width: 70px;
    padding: 6px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.fill-answer-weight:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.btn-delete-answer {
    background: none;
    border: none;
    color: #ff4d4f;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: all 0.3s;
}

.btn-delete-answer:hover {
    color: #ff7875;
    transform: scale(1.2);
}

.btn-add-answer {
    display: inline-block;
    padding: 6px 16px;
    background: transparent;
    border: 1px dashed #1890ff;
    color: #1890ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    margin-top: 5px;
}

.btn-add-answer:hover {
    background: #e6f7ff;
    border-color: #40a9ff;
    color: #40a9ff;
}
/* 矩阵题样式 */
.matrix-container {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}
.matrix-row {
    display: flex;
    align-items: center;
}
.matrix-header {
    background-color: #f8f9fa;
}
.matrix-cell {
    padding: 8px 4px;
    box-sizing: border-box;
}
.matrix-input {
    width: 60px !important;
    display: inline-block;
    margin: 0 auto;
}
/* 矩阵题：小屏幕横向滚动 */
@media (max-width: 768px) {
    .matrix-container {
        overflow-x: scroll;
    }
    .matrix-cell {
        min-width: 80px;
    }
}
/* 微信客服悬浮按钮 */
/* 新：微信客服悬浮按钮（基础布局） */
.wechat-service-btn {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 9999; /* 最高层级，不被遮挡 */
  display: flex;
  flex-direction: column; /* 提示在上、图标在下 */
  align-items: center;    /* 水平居中 */
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 提示文本（默认隐藏，hover时显示） */
.wechat-service-btn .btn-tip {
  background-color: #FF5722;    /* 醒目橙色（和你页面主色调一致） */
  color: #FFFFFF;               /* 白色文字，对比强烈 */
  padding: 8px 12px;            /* 加大内边距，更突出 */
  border-radius: 6px;           /* 圆角更圆润 */
  font-size: 14px;              /* 放大字号 */
  font-weight: bold;            /* 加粗文字 */
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.4); /* 橙色阴影，强化视觉 */
  margin-bottom: 10px;          /* 加大和图标间距 */
  white-space: nowrap;          /* 防止文字换行 */
  display: none;                /* 默认隐藏 */
  border: 1px solid #FFE0B2;    /* 浅橙边框，增加层次感 */
  text-align: center;
}

/* hover时显示提示 */
.wechat-service-btn:hover .btn-tip {
  display: block;
}

/* 图标按钮样式 */
.wechat-service-btn .btn-icon {
  min-width: 90px;              /* 最小宽度，容纳文字 */
  height: auto;
  line-height: 1.4;             /* 行高，两行文字 */
  text-align: center;           /* 文字水平居中 */
  font-size: 13px;              /* 文字大小 */
  font-weight: 500;
  background-color: #07C160;    /* 微信绿 */
  color: #fff;
  border-radius: 20px;          /* 圆角胶囊形状 */
  box-shadow: 0 5px 15px rgba(7, 193, 96, 0.4); /* 加深阴影 */
  transition: all 0.3s ease;
  padding: 8px 16px;            /* 上下内边距，适配两行文字 */
}

/* hover时图标放大 */
.wechat-service-btn:hover .btn-icon {
  transform: scale(1.05);        /* 悬停轻微放大 */
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.5); /* 阴影更明显 */
}



/* 二维码弹窗遮罩 */
.wechat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none; /* 默认隐藏 */
}

.modal-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

/* 弹窗内容 */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.wechat-qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: block;
}

.modal-desc {
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

/* 登录引导弹窗样式 */
.login-guide-content {
  width: 320px;
}

.login-guide-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.login-guide-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.login-guide-buttons .btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
}

.btn-primary {
  background-color: #1890ff;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #096dd9;
}

.btn-link {
  background: none;
  border: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 5px;
}

.btn-link:hover {
  color: #666;
}

/* 步骤3置灰样式 */
.task-params-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}



.config-item .main-label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #333;
        line-height: 1.2;
      }
      /* 提示语样式 */
      .config-item .tips-text {
        display: block;
        font-weight: normal;
        font-size: 12px;
        color: #666;
        font-style: italic;
        margin-top: 4px;
        line-height: 1.4;
      }
      /* 调整输入框边距，适配提示语换行 */
      .config-item input {
        margin-top: 4px;
      }

/* ========== 历史配置相关样式 ========== */
.config-btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-tip-text {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  text-align: center;
}

/* IP代理开关 */
.ip-proxy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.ip-proxy-label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.ip-proxy-status {
  display: inline-block;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
  margin-top: 8px;
}

.ip-proxy-off {
  background: #f0f0f0;
  color: #999;
}

.ip-proxy-on {
  background: #e6f7ff;
  color: #1890ff;
}

.btn-secondary {
  background-color: #fff;
  color: #1890ff;
  border: 1px solid #1890ff;
  width: 100%;
}

.btn-secondary:hover {
  background-color: #e6f7ff;
}

.config-modal-content {
  max-height: 70vh;
  overflow-y: auto;
}

.config-list {
  margin-top: 15px;
}

.config-list-empty {
  text-align: center;
  color: #999;
  padding: 30px 0;
  font-size: 14px;
}

.config-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: background-color 0.2s;
}

.config-item-card:hover {
  background-color: #f5f7fa;
}

.config-item-info {
  flex: 1;
}

.config-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.config-item-time {
  font-size: 12px;
  color: #999;
}

.config-item-actions {
  display: flex;
  gap: 8px;
}

.btn-config-load {
  padding: 6px 16px;
  background-color: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.btn-config-load:hover {
  background-color: #096dd9;
}

.btn-config-delete {
  padding: 6px 16px;
  background-color: #fff;
  color: #ff4d4f;
  border: 1px solid #ff4d4f;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.btn-config-delete:hover {
  background-color: #fff1f0;
}

/* ========== 数据看板样式 ========== */
.dashboard-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 20px;
}

/* 顶部指标卡片 */
.dashboard-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #f8f9fa;
}

.summary-icon {
  font-size: 24px;
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.summary-running { border-left: 3px solid #1890ff; }
.summary-success { border-left: 3px solid #52c41a; }
.summary-quota { border-left: 3px solid #1890ff; }

/* 当前任务面板 */
.current-task-panel {
  background: #fafbfc;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.no-task, .no-history {
  text-align: center;
  color: #999;
  padding: 30px 0;
  font-size: 14px;
}

/* 当前任务 */
.task-url {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 20px;
}

.task-status {
  font-size: 16px;
  font-weight: 600;
  color: #1890ff;
  margin-bottom: 16px;
  text-align: center;
}

.task-progress-ring {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.task-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.task-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
}

.stat-label {
  color: #999;
}

.stat-value {
  font-weight: 600;
  color: #333;
}

.success-color { color: #52c41a !important; }
.fail-color { color: #ff4d4f !important; }

/* 历史表格 */
.history-panel {
  background: #fafbfc;
  border-radius: 8px;
  padding: 20px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.history-table th {
  background: #f0f2f5;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #e8e8e8;
}

.history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

.history-table tr:hover td {
  background: #f5f7fa;
}

.url-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-cell-full {
  word-break: break-all;
  max-width: 400px;
}

/* 分页控件 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 0;
}

.page-btn {
  padding: 6px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: #1890ff;
  color: #1890ff;
}

.page-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: #666;
}

.num-success { color: #52c41a; font-weight: 600; }
.num-fail { color: #ff4d4f; font-weight: 600; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.badge-fail { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.badge-stop { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }

/* ========== 移动端响应式适配（≤768px）========== */
@media (max-width: 768px) {
  /* ===== 全局 ===== */
  .filler-page {
    padding: 0 10px 10px;
  }

  .filler-card, .progress-card, .dashboard-card {
    padding: 16px;
  }

  /* ===== 导航栏 ===== */
  .top-navbar {
    padding: 0 10px;
    height: 44px;
  }

  .nav-tab {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .tab-icon {
    font-size: 14px;
  }

  .nav-user {
    gap: 8px;
  }

  .nav-user .user-email {
    display: none;
  }

  .nav-user .logout-btn {
    font-size: 12px;
    padding: 3px 8px;
  }

  .nav-user .login-btn {
    font-size: 12px;
    padding: 3px 8px;
  }

  /* ===== 跑马灯 ===== */
  .marquee-bar {
    padding: 8px 12px;
    margin-bottom: 12px;
  }

  .marquee-item {
    font-size: 12px;
  }

  /* ===== 步骤标签 ===== */
  .card-step-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  /* ===== 左右分栏 → 上下布局 ===== */
  .config-layout {
    flex-direction: column;
  }

  .config-right {
    width: 100%;
    position: static;
  }

  .task-params-card {
    max-height: none;
  }

  /* ===== 按钮 ===== */
  .btn-parse {
    font-size: 14px;
    padding: 10px;
  }

  .btn-start {
    font-size: 15px;
    padding: 12px;
  }

  /* ===== 问卷标题 ===== */
  .result-title {
    font-size: 15px;
    word-break: break-all;
    white-space: normal;
  }

  /* ===== 题目卡片 ===== */
  .question-item {
    padding: 12px;
  }

  .question-item h4 {
    font-size: 14px;
    word-break: break-all;
  }

  .question-type {
    font-size: 11px;
    padding: 1px 6px;
  }

  /* ===== 选项行：去掉大片空白，紧凑排列 ===== */
  .option-item {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0;
  }

  .option-label {
    flex: 1 1 60%;
    min-width: 0;
    font-size: 14px;
  }

  .option-prob {
    width: 50px !important;
    min-width: 50px;
    padding: 6px 4px;
    font-size: 13px;
  }

  /* 移动端隐藏"选中几率"文字标签（输入框+百分比已足够表达含义） */
  .weight-label,
  .percent-label {
    display: none;
  }

  .probability-display {
    min-width: 50px;
    font-size: 13px;
    margin-left: 4px;
  }

  /* ===== 填空题答案行 ===== */
  .fill-answer-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .fill-answer-text {
    flex: 1 1 100%;
  }

  .fill-answer-weight {
    width: 50px !important;
  }

  .answer-index {
    min-width: 30px;
    font-size: 12px;
  }

  /* ===== 矩阵题 ===== */
  .matrix-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .matrix-cell {
    min-width: 70px;
    padding: 6px 2px;
  }

  .matrix-input {
    width: 45px !important;
  }

  /* 矩阵单元格内隐藏"选中几率"标签 */
  .matrix-cell .weight-label,
  .matrix-cell .percent-label {
    display: none;
  }

  .matrix-cell .probability-display {
    font-size: 11px;
    min-width: 36px;
  }

  /* ===== 参数卡片 ===== */
  .param-card {
    padding: 12px;
  }

  .param-card-title {
    font-size: 13px;
  }

  .config-btn-group {
    flex-direction: column;
  }

  /* ===== 微信客服按钮 ===== */
  .wechat-service-btn {
    right: 10px;
    bottom: 80px;
  }

  .wechat-service-btn .btn-icon {
    min-width: 70px;
    font-size: 11px;
    padding: 6px 10px;
  }

  /* ===== 数据看板 ===== */
  .dashboard-summary {
    flex-wrap: wrap;
  }

  .summary-card {
    min-width: calc(50% - 8px);
  }

  .summary-value {
    font-size: 20px;
  }

  .task-stats {
    grid-template-columns: 1fr;
  }

  .history-table {
    font-size: 12px;
  }

  .history-table th,
  .history-table td {
    padding: 6px 8px;
  }

  .url-cell {
    max-width: 100px;
  }

  /* ===== 弹窗 ===== */
  .modal-content {
    width: 260px;
    padding: 15px;
  }

  .wechat-qrcode {
    width: 180px;
    height: 180px;
  }

  .login-guide-content {
    width: 280px;
  }

  /* ===== 历史配置列表 ===== */
  .config-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .config-item-actions {
    width: 100%;
  }

  .config-item-actions button {
    flex: 1;
  }
}