/* ===== 页面整体布局 ===== */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #e3f0ff 0%, #f5fff7 100%);
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 32px auto 0 auto;
  padding: 0 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== 顶部介绍区（无图片） ===== */
.intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7fbff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(64,158,255,0.08);
  padding: 18px 12px 16px 12px;
  gap: 10px;
}
.intro-text {
  text-align: center;
}
.intro-text h2 {
  color: #409eff;
  font-size: 1.3rem;
  margin: 0 0 4px 0;
}
.intro-text p {
  color: #606266;
  font-size: 1rem;
  margin: 0;
}

/* ===== 文件选择区 ===== */
.file-select-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(64,158,255,0.06);
  padding: 18px 16px 12px 16px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.single-btn-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.file-input {
  width: 100%;
  max-width: 260px;
  padding: 8px 12px;
  border: 1.5px solid #b3d8ff;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  color: #303133;
  outline: none;
  transition: border 0.2s;
}
.file-input:focus {
  border-color: #409eff;
}
.file-name {
  font-size: 1rem;
  color: #606266;
  margin-top: 2px;
  text-align: center;
}

/* ===== 三大模块横向排布 ===== */
.modules-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
.module-block {
  flex: 1 1 0;
  min-width: 0;
  max-width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(64,158,255,0.06);
  padding: 18px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-block h3 {
  color: #409eff;
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
  text-align: center;
}

/* ===== 按钮区 ===== */
.btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 0;
}
.btn {
  flex: 1;
  min-width: 0;
  padding: 0.7em 0.5em;
  font-size: 1.05rem;
  border-radius: 8px;
  border: none;
  background: #e4e7ed;
  color: #303133;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.btn:disabled {
  background: #f2f6fc;
  color: #bfbfbf;
  cursor: not-allowed;
}
.btn.primary {
  background: linear-gradient(90deg, #409eff 60%, #67c23a 100%);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(64,158,255,0.10);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #67c23a 60%, #409eff 100%);
}
.btn.secondary {
  background: #67c23a;
  color: #fff;
  font-weight: 500;
}
.btn.secondary:hover:not(:disabled) {
  background: #409eff;
}

/* ===== 日志区 ===== */
.log-window {
  min-height: 80px;
  max-height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f7fbff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(64,158,255,0.06);
  padding: 12px 12px 8px 12px;
  margin-top: 0;
}
.log-window-inline {
  margin-top: 10px;
}
.log-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #409eff;
  margin-bottom: 6px;
}
.log-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: 110px;
  padding-right: 2px;
}
.log-item {
  font-size: 0.98rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 2px;
  word-break: break-all;
}
.download-link {
  margin-top: 8px;
  text-align: center;
  font-size: 1.08rem;
  color: #409eff;
  word-break: break-all;
}

/* ===== 底部横行 ===== */
.footer-bar {
  width: 100%;
  margin-top: 24px;
  padding: 12px 0 0 0;
  border-top: 1.5px solid #e4e7ed;
  text-align: center;
  color: #909399;
  font-size: 1.3rem;
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.footer-text {
  font-size: 1.5rem;
  color: #409eff;
}
.footer-img {
  height: 64px;
  width: 64px;
  border-radius: 8px;
  margin-left: 0;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .container {
    max-width: 99vw;
    padding: 2vw 2vw 6vw 2vw;
  }
  .modules-row {
    flex-direction: column;
    gap: 18px;
  }
  .module-block {
    max-width: 100%;
    width: 100%;
  }
}

/* ===== 进/出料流股输入框样式 ===== */
.stream-row-horizontal {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.stream-row-horizontal label {
  font-size: 1.05rem;
  color: #409eff;
  font-weight: bold;
  margin-right: 8px;
}
.stream-list {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}
.stream-input-group {
  display: flex;
  align-items: center;
  margin-right: 6px;
  margin-bottom: 4px;
}
.stream-input {
  width: 90px;
  padding: 5px 8px;
  border: 1.5px solid #b3d8ff;
  border-radius: 6px;
  font-size: 1rem;
  margin-right: 2px;
  background: #fff;
  transition: border 0.2s;
}
.stream-input:focus {
  border-color: #409eff;
}
.add-stream-btn, .del-stream-btn {
  background: #409eff;
  color: #fff;
  border: none;
  border-radius: 5px;
  width: 26px;
  height: 26px;
  font-size: 18px;
  margin-left: 2px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.add-stream-btn:hover, .del-stream-btn:hover {
  background: #66b1ff;
}

.module-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.preview-btn {
  font-size: 0.95rem;
  padding: 3px 12px;
  border-radius: 6px;
  border: 1px solid #409eff;
  background: #f0f7ff;
  color: #409eff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.preview-btn:hover {
  background: #409eff;
  color: #fff;
}

.verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.verify-input {
  width: 120px;
  padding: 4px 8px;
  border: 1px solid #b3d8ff;
  border-radius: 5px;
  font-size: 1rem;
}
.verify-btn {
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid #67c23a;
  background: #f6fff6;
  color: #67c23a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.verify-btn:hover {
  background: #67c23a;
  color: #fff;
}
.verify-status {
  min-width: 80px;
  font-size: 0.98rem;
}

/* ===== 数据分析模块特有样式 ===== */
.analysis-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.option-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.option-group label {
  min-width: 70px;
  color: #409eff;
  font-size: 0.98rem;
}
.analysis-type, .output-format {
  flex: 1;
  min-width: 120px;
  padding: 4px 8px;
  border: 1px solid #b3d8ff;
  border-radius: 5px;
  font-size: 0.98rem;
  background: #fff;
  color: #303133;
  outline: none;
  transition: border 0.2s;
}
.analysis-type:focus, .output-format:focus {
  border-color: #409eff;
}

.device-input {
  padding: 12px 14px;
  border: 1.5px solid #dcdfe6;
  border-radius: 6px;
  font-size: 1.18rem;
  width: 95%;
  min-width: 180px;
  max-width: 320px;
  margin-bottom: 2px;
  box-sizing: border-box;
}
.device-tip {
  color: #e74c3c;
  font-size: 15px;
  margin-left: 2px;
  margin-top: 2px;
  display: none;
}

.buy-code-btn {
  display: block;
  margin: 24px auto 18px auto;
  padding: 16px 38px;
  font-size: 1.35rem;
  font-weight: bold;
  border-radius: 12px;
  border: 3px solid #ff9800;
  background: linear-gradient(90deg, #ff9800 60%, #ff5722 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,152,0,0.13);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.buy-code-btn:hover {
  background: linear-gradient(90deg, #ff5722 60%, #ff9800 100%);
  box-shadow: 0 6px 24px rgba(255,87,34,0.18);
}
.module-group {
  border: 3px solid #ff9800;
  border-radius: 18px;
  margin: 28px 0 32px 0;
  padding: 10px 8px 18px 8px;
  background: #fffbe7;
  position: relative;
}
.module-group-2 {
  border-color: #e53935;
}
.buy-code-btn-50 {
  border-color: #e53935;
  background: linear-gradient(90deg, #e53935 60%, #ff9800 100%);
}
.buy-code-btn-50:hover {
  background: linear-gradient(90deg, #ff9800 60%, #e53935 100%);
}

.demo-link-container {
  margin: 20px 0;
  text-align: center;
}

.demo-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #f0f9ff;
  border: 1px solid #409eff;
  border-radius: 4px;
  color: #409eff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.demo-link:hover {
  background-color: #409eff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

.demo-text {
  margin-right: 8px;
}

.demo-arrow {
  font-size: 18px;
  vertical-align: middle;
}

.highlight-block {
  margin: 15px 0;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.highlight-link {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, #409eff 0%, #67c23a 100%);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(64, 158, 255, 0.2);
}

.highlight-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(64, 158, 255, 0.3);
  background: linear-gradient(135deg, #67c23a 0%, #409eff 100%);
}

.highlight-arrow {
  display: inline-block;
  margin-left: 10px;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.highlight-link:hover .highlight-arrow {
  transform: translateX(5px);
}
