/**
 * CloudSync 前端样式 - 跟随主题日夜模式
 */

/* 模块容器 - 无背景色，继承主题 */
.cloud-sync-module {
  margin-bottom: 24px;
  padding: 0;
}

.cloud-sync-module-content {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.cloud-sync-module-content p {
  margin-bottom: 12px;
}

.cloud-sync-module-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.cloud-sync-module-content h1,
.cloud-sync-module-content h2,
.cloud-sync-module-content h3,
.cloud-sync-module-content h4,
.cloud-sync-module-content h5,
.cloud-sync-module-content h6 {
  color: inherit;
  font-weight: inherit;
}

.cloud-sync-module-content a {
  color: inherit;
}

.cloud-sync-module-content blockquote {
  border-left-color: currentColor;
  opacity: 0.8;
}

.cloud-sync-module-content pre,
.cloud-sync-module-content code {
  background: rgba(128, 128, 128, 0.1);
  border-radius: 4px;
}

/* 错误信息 */
.cloud-sync-error {
  color: #dc3545;
  padding: 12px 16px;
  font-size: 14px;
}

/* 占位符 */
.cloud-sync-placeholder {
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
  opacity: 0.5;
}

/* 模块类型左边框 */
.cloud-sync-module[data-type="text"] {
  border-left: 3px solid #1890ff;
  padding-left: 16px;
}

.cloud-sync-module[data-type="image"] {
  border-left: 3px solid #52c41a;
  padding-left: 16px;
}

.cloud-sync-module[data-type="gallery"] {
  border-left: 3px solid #722ed1;
  padding-left: 16px;
}

.cloud-sync-module[data-type="video"] {
  border-left: 3px solid #faad14;
  padding-left: 16px;
}
