/* ZCAIGC H5 全局样式 - 覆盖 uni-app 组件默认样式 */

html, body, uni-page-body, page {
  background: #f0f2f5 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
}

.app-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

.app-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.app-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.app-empty {
  text-align: center;
  color: #999;
  padding: 48px 16px;
  font-size: 14px;
}

.app-label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.app-field {
  margin-bottom: 14px;
}

/* 按钮：用 view 模拟，避免 uni-button 异常 */
.app-btn {
  display: inline-block;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.app-btn-primary {
  background: #667eea;
  color: #fff !important;
}

.app-btn-outline {
  background: #fff;
  color: #667eea !important;
  border: 1px solid #667eea;
}

.app-btn-block {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
}

.app-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.app-btn:active {
  opacity: 0.85;
}

.app-btn-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  margin-top: 12px;
}

.app-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-project-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.app-tabs {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  margin-bottom: 14px;
}

.app-meta-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
}

.app-modal-mask {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
}

/* 标签 */
.app-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.app-tag-kling { background: #e8f4fd; color: #1976d2; }
.app-tag-jimeng { background: #fff3e0; color: #f57c00; }
.app-tag-success { background: #e8f5e9; color: #388e3c; }
.app-tag-running { background: #fff8e1; color: #f9a825; }
.app-tag-failed { background: #ffebee; color: #d32f2f; }

/* 项目卡片 */
.app-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.app-project-name {
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.app-project-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* 输入框 - 覆盖 uni-input / uni-textarea */
.app-page uni-input,
.app-page uni-textarea {
  display: block !important;
  width: 100% !important;
  min-height: 44px !important;
  height: auto !important;
  line-height: normal !important;
  font-size: 14px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  border: 1px solid #dcdfe6 !important;
  border-radius: 6px !important;
  background: #fff !important;
}

.app-page uni-input .uni-input-wrapper,
.app-page uni-input .uni-input-input {
  min-height: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
}

.app-page uni-textarea .uni-textarea-wrapper,
.app-page uni-textarea .uni-textarea-textarea {
  min-height: 120px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.app-picker {
  padding: 11px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #333;
  margin-bottom: 14px;
}

/* 弹窗 */
.app-modal-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
}

.app-modal {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px 20px;
  box-sizing: border-box;
}

.app-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

/* Tabs */
.app-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.app-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.app-tab.active {
  background: #667eea;
  color: #fff;
}

/* 任务详情 */
.app-info-line {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.5;
}

.app-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
}

.app-preview {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.app-preview-video {
  width: 100%;
  height: 220px;
  border-radius: 8px;
}

/* 隐藏 uni-app 原生 button 的默认样式（若仍使用） */
.app-page uni-button {
  margin: 0 !important;
}

.app-page uni-button::after {
  border: none !important;
}
