.script-card-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 10 !important;
}
.script-card-actions .btn-copy,
.script-card-actions .btn-ai-generate {
  display: inline-block !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.5 !important;
  height: auto !important;
  width: auto !important;
  position: static !important;
  transform: none !important;
}
.script-card-actions .btn-copy {
  background: #f0f0f0 !important;
  color: #333 !important;
}
.script-card-actions .btn-copy:hover {
  background: #e0e0e0 !important;
  color: #333 !important;
}
.script-card-actions .btn-ai-generate {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
}
.script-card-actions .btn-ai-generate:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  color: #fff !important;
}
.script-title {
  padding-right: 180px !important;
}

/* Safari下拉框高度兼容性修复 */
.form-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  height: 36px !important;
  line-height: 1.4 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg width=12 height=12 viewBox=0 0 12 12%3E%3Cpath fill=%23999 d=M6 8L1 3h10z/%3E%3C/svg%3E) !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px !important;
  padding-right: 30px !important;
}

/* 确保input和select高度一致 */
.form-input {
  box-sizing: border-box !important;
  height: 36px !important;
  line-height: 1.4 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* 行业动态页面样式 */
.news-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #f0f0f0;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: #e0e0e0;
}

.news-card-left {
  flex-shrink: 0;
}

.news-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.news-card-main {
  flex: 1;
  min-width: 0;
}

.news-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.news-card-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.news-meta-sender,
.news-meta-time,
.news-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-meta-link {
  color: #3b82f6;
}

.news-meta-link:hover {
  text-decoration: underline;
}

/* === 内容更新记录表格 v1.8.33：横向滚动+自适应列宽 === */
#contentRecordsTable { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
#contentRecordsTable .table { table-layout: auto !important; min-width: 960px !important; }
#contentRecordsTable .table th,
#contentRecordsTable .table td { text-align: center !important; font-size: 13px; padding: 6px 8px !important; white-space: nowrap !important; }
/* 内容标题列允许换行 */
#contentRecordsTable .table th:nth-child(5),
#contentRecordsTable .table td:nth-child(5) { white-space: normal !important; max-width: 280px !important; word-break: break-word !important; text-align: left !important; }
/* 账号名称列设最小宽度 */
#contentRecordsTable .table th:nth-child(3),
#contentRecordsTable .table td:nth-child(3) { min-width: 100px !important; }

/* === 编辑行样式修复 v1.8.20 === */
#contentRecordsTable .table tr.editing-row td {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}
#contentRecordsTable .table tr.editing-row td input {
  width: 90% !important;
  min-width: 60px;
  max-width: 120px;
  font-size: 12px;
  padding: 2px 4px;
}
#contentRecordsTable .table tr.editing-row td .action-link {
  white-space: nowrap;
}
