[v-cloak] { display: none; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #304156;
  color: #fff;
  overflow-y: auto;
  z-index: 100;
}

.logo {
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  background: #263445;
  border-bottom: 1px solid #1f2d3d;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #bfcbd9;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.menu-item:hover,
.menu-item.active {
  color: #409eff;
  background: #263445;
  border-left-color: #409eff;
}

.menu-item i {
  margin-right: 12px;
  font-size: 18px;
}

.main-content {
  margin-left: 220px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.topbar h3 {
  margin: 0;
  font-weight: 500;
  color: #303133;
}

.content-body {
  flex: 1;
  padding: 24px;
}

.page-card {
  margin-bottom: 20px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 16px;
  color: #303133;
  border-left: 4px solid #409eff;
  padding-left: 10px;
}

.stat-label {
  color: #909399;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-value {
  color: #303133;
  font-size: 28px;
  font-weight: bold;
}

.welcome-card {
  margin-top: 24px;
}

.welcome-card h4 {
  margin: 0 0 10px;
  color: #303133;
}

.welcome-card p {
  color: #606266;
  line-height: 1.6;
}

.url-text {
  color: #409eff;
  word-break: break-all;
  cursor: pointer;
}

.image-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
}

.form-tip {
  color: #909399;
  font-size: 12px;
  margin-left: 8px;
}

.dialog-form {
  padding-right: 20px;
}

.upload-box {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: #409eff;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
}

.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mr-2 { margin-right: 8px; }

/* ===== 素材库选择器（案例/产品弹窗内选图/选视频）===== */
.media-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.media-picker-item {
  position: relative;
  width: calc(25% - 8px);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f5f7fa;
  transition: border-color 0.15s;
}
.media-picker-item:hover { border-color: #79bbff; }
.media-picker-item.picked { border-color: #1677ff; }
.media-picker-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-picker-video-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 18px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-picker-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.media-picker-single-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 4px 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.media-picker-item:hover .media-picker-single-hint { opacity: 1; }
