.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.content-header h2 {
  margin: 0;
  border: none;
  padding: 0;
}

h2 {
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #1f2f3d;
  font-weight: 600;
  border-left: 4px solid #409eff;
  padding-left: 10px;
}

h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #303133;
  font-weight: 600;
}

h4 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #303133;
  font-weight: bold;
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: #5e6d82;
  margin-bottom: 15px;
}

ul, ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

li {
  font-size: 15px;
  line-height: 1.7;
  color: #5e6d82;
  margin-bottom: 8px;
}

.intro {
  font-size: 16px;
  color: #606266;
  background-color: #f4f4f5;
  padding: 15px;
  border-radius: 4px;
  border-left: 5px solid #909399;
}

.note {
  font-size: 14px;
  color: #909399;
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid #e6a23c;
}

.code-block {
  background: #282c34;
  color: #abb2bf;
  padding: 15px;
  border-radius: 6px;
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
  overflow-x: auto;
  margin: 15px 0;
  line-height: 1.5;
}

.danger {
  color: #f56c6c;
}

.alert-box {
  margin: 15px 0;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 14px;
}

.param-table th, .param-table td {
  border: 1px solid #ebeef5;
  padding: 12px;
  text-align: left;
}

.param-table th {
  background-color: #f5f7fa;
  color: #606266;
  font-weight: 600;
}

.param-table td {
  color: #606266;
}

/* 简单的 CSS 流程图样式 */
.flow-chart {
  background: #fcfcfc;
  padding: 20px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.actor-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.actor {
  font-weight: bold;
  color: #303133;
  width: 33%;
  text-align: center;
}

.step {
  width: 100%;
  max-width: 600px;
  display: flex;
  margin-bottom: 15px;
  position: relative;
  height: 30px;
  align-items: center;
}

.arrow {
  height: 2px;
  background-color: #409eff;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #606266;
  white-space: nowrap;
}

.arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #409eff;
}

.arrow.dashed {
  background-color: transparent;
  border-bottom: 2px dashed #67c23a;
}
.arrow.dashed::after {
  border-left-color: #67c23a;
}

.arrow.user-to-client {
  left: 16%;
  width: 33%;
  top: 15px;
}

.arrow.client-to-uap {
  left: 50%;
  width: 33%;
  top: 15px;
}

.arrow.uap-to-client {
  left: 50%;
  width: 33%;
  top: 15px;
  flex-direction: row-reverse;
}
.arrow.uap-to-client::after {
  left: 0;
  right: auto;
  border-right: 8px solid #67c23a;
  border-left: none;
}

.arrow.client-to-user {
  left: 16%;
  width: 33%;
  top: 15px;
  flex-direction: row-reverse;
}
.arrow.client-to-user::after {
  left: 0;
  right: auto;
  border-right: 8px solid #67c23a;
  border-left: none;
}

.self-action {
  background: #ecf5ff;
  color: #409eff;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 42%; 
  border: 1px solid #d9ecff;
}

/* 特性卡片 */
.feature-card {
  background: #f9fafc;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  padding: 15px 20px;
  margin: 15px 0;
}

.feature-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #409eff;
  font-size: 15px;
}

.feature-card ul {
  margin-bottom: 0;
}

/* 标签样式 */
.tag-required {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  background-color: #f56c6c;
  color: white;
  border-radius: 3px;
  font-weight: 500;
}

.tag-optional {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  background-color: #909399;
  color: white;
  border-radius: 3px;
  font-weight: 500;
}

.tag-conditional {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  background-color: #e6a23c;
  color: white;
  border-radius: 3px;
  font-weight: 500;
}

/* 对比表格 */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #ebeef5;
  padding: 14px 12px;
  text-align: left;
}

.comparison-table th {
  background-color: #409eff;
  color: white;
  font-weight: 600;
  text-align: center;
}

.comparison-table tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

.comparison-table tbody tr:hover {
  background-color: #ecf5ff;
  transition: background-color 0.3s;
}

.comparison-table .highlight {
  color: #409eff;
  font-weight: 600;
}

.comparison-table .success {
  color: #67c23a;
  font-weight: 600;
}

.comparison-table .warning {
  color: #e6a23c;
  font-weight: 600;
}

/* 推荐表格 */
.recommendation-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recommendation-table th,
.recommendation-table td {
  border: 1px solid #ebeef5;
  padding: 14px 12px;
  text-align: left;
}

.recommendation-table th {
  background-color: #67c23a;
  color: white;
  font-weight: 600;
  text-align: center;
}

.recommendation-table tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

.recommendation-table tbody tr:hover {
  background-color: #f0f9ff;
  transition: background-color 0.3s;
}

.recommend-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  margin: 2px;
  white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 600px) {
  .flow-chart {
    display: none; /* 手机端太窄，建议隐藏或换图 */
  }
  
  .comparison-table,
  .recommendation-table {
    font-size: 12px;
  }
  
  .comparison-table th,
  .comparison-table td,
  .recommendation-table th,
  .recommendation-table td {
    padding: 8px 6px;
  }
}
