/* 该CSS文件继承了module4.css的样式 */
.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
  }
  
  .tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
  }
  
  .tab-btn.active {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.03);
  }
  
  .tab-content {
    padding-top: 0;
  }
  
  .tab-pane {
    display: none;
  }
  
  .tab-pane.active {
    display: block;
  }
  
  /* 输入区样式 */
  .input-area {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .input-group {
    position: relative;
    width: 100%;
  }
  
  .input-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    padding-right: 35px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    line-height: 1.5;
  }
  
  .clear-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(240, 240, 240, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
  }
  
  .clear-btn:hover {
    background: rgba(224, 224, 224, 0.9);
  }
  
  /* 文件上传样式 */
  .upload-container {
    margin-bottom: 20px;
  }
  
  .file-upload-area {
    width: 100%;
  }
  
  .dropzone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .dropzone:hover {
    border-color: #999;
  }
  
  .dropzone-content {
    text-align: center;
    padding: 20px;
  }
  
  .upload-icon {
    width: 48px;
    height: 48px;
    fill: #999;
    margin-bottom: 10px;
  }
  
  .file-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    display: none;
  }
  
  .file-info.show {
    display: block;
  }
  
  /* 结果区域样式 */
  .result-content {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 10px;
  }
  
  .result-content textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: vertical;
  }
  
  /* 按钮样式 */
  .action-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
  }
  
  .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .btn-primary {
    background-color: var(--primary-color, #4a90e2);
    color: white;
    border: none;
  }
  
  .btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color, #4a90e2);
    color: var(--primary-color, #4a90e2);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark, #3a7bc8);
  }
  
  .btn-outline:hover {
    background-color: rgba(74, 144, 226, 0.1);
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .dropzone {
      padding: 20px;
    }
    
    .upload-icon {
      width: 40px;
      height: 40px;
    }
  }
  
  /* 模块5特有样式 */
  .file-preview {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
  }
  
  .file-icon {
    margin-right: 10px;
  }
  
  .file-details {
    flex-grow: 1;
  }
  
  .file-name {
    font-weight: 500;
    margin-bottom: 2px;
  }
  
  .file-size {
    font-size: 0.8em;
    color: #666;
  }
  
  .file-remove-btn {
    padding: 2px 6px;
    font-size: 14px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.1);
    color: #666;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
  }
  
  .clear-btn:hover {
    opacity: 1;
  }
  
  /* 模块标题样式 */
  .module-header {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  
  .module-title {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #4a90e2;
    padding: 10px 20px;
    border-bottom: 2px solid #4a90e2;
  }
  
  /* 评价选项样式 */
  .evaluation-options {
    border-top: 1px solid #eee;
    padding-top: 20px;
  }
  
  .eval-type-selection {
    margin-bottom: 20px;
  }
  
  .radio-label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  
  .radio-label:hover {
    background-color: #e9e9e9;
  }
  
  .radio-label input {
    margin-right: 6px;
  }
  
  .evaluation-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .water-type-section, 
  .comparison-section {
    margin-bottom: 15px;
  }
  
  .option-title {
    display: inline-block;
    font-weight: 500;
    margin-bottom: 10px;
    margin-right: 10px;
    color: #333;
  }
  
  .option-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .evaluation-row {
      flex-direction: column;
    }
  }
  
  /* 模块5新样式 */
  .card {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    background-color: #fff;
  }
  
  .card-body {
    padding: 20px;
  }
  
  /* 上传区域样式 */
  .upload-section .dropzone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
  }
  
  .upload-icon {
    width: 50px;
    height: 50px;
    fill: #999;
    margin-bottom: 15px;
  }
  
  .dropzone-content {
    text-align: center;
  }
  
  /* 评价类型选择样式 */
  .evaluation-type-options {
    display: flex;
    gap: 15px;
  }
  
  .radio-option {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .radio-option:hover {
    background-color: #e9e9e9;
  }
  
  .radio-option input[type="radio"] {
    margin-right: 6px;
  }
  
  /* 评价选项区域样式 */
  .options-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
  }
  
  .option-section {
    margin-bottom: 15px;
  }
  
  .option-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
  }
  
  .option-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* 操作按钮样式 */
  .actions-section {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  #image-run-btn, #image-download-btn {
    min-width: 120px;
    padding: 8px 16px;
  }
  
  /* 结果区域样式 */
  .results-section textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: vertical;
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .options-row {
      flex-direction: column;
    }
  }
  
  /* 评价类型选择 */
  .evaluation-type-group {
    display: flex;
    gap: 15px;
  }
  
  /* 单选按钮样式 */
  .radio-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: 10px;
    margin-bottom: 5px;
  }
  
  .radio-button:hover {
    background-color: #e0e0e0;
  }
  
  .radio-button input[type="radio"] {
    margin-right: 5px;
  }
  
  /* 评价选项布局 */
  .evaluation-options {
    width: 100%;
  }
  
  .options-container {
    display: flex;
    justify-content: space-between;
  }
  
  .water-type-section, .comparison-section {
    margin-bottom: 10px;
  }
  
  .section-title {
    display: inline-block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
    min-width: 80px;
  }
  
  .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* 按钮样式 */
  .btn-primary {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    margin-right: 10px;
  }
  
  .btn-outline {
    background-color: white;
    color: #1e88e5;
    border: 1px solid #1e88e5;
    padding: 8px 20px;
    border-radius: 4px;
  }
  
  /* 上传区域样式 */
  .dropzone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
  }
  
  .upload-icon {
    width: 60px;
    height: 60px;
    fill: #999;
    margin-bottom: 10px;
  }
  
  /* 结果区域样式 */
  .result-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: vertical;
  }
  
  /* 媒体查询确保在小屏幕上的显示正常 */
  @media (max-width: 768px) {
    .options-container {
      flex-direction: column;
    }
    
    .comparison-section {
      margin-top: 15px;
    }
  }
  .page-header .text-muted {
    color: #000000; 
  }