[v-cloak] { display: none; }
body { margin: 0; background: #f5f6f8; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.muted { color: #909399; font-size: 13px; }
.center { text-align: center; padding: 40px 10px; }

.login-wrap { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.beian { text-align: center; padding: 12px 0 20px; font-size: 12px; }
.login-wrap .beian { position: fixed; bottom: 0; left: 0; right: 0; }
.beian a { color: #909399; text-decoration: none; }
.beian a:hover { color: #409eff; }
.login-card { width: 360px; }
.login-card h2 { text-align: center; margin: 0 0 24px; font-weight: 600; }

.header { display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #ebeef5; }
.header .title { font-size: 18px; font-weight: 600; white-space: nowrap; }
.header .stats { display: flex; gap: 18px; align-items: center; color: #606266; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.header .stats b { color: #303133; }
.header .stats b.warn { color: #e6a23c; }

.el-main { background: #fff; margin: 16px; border-radius: 6px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pager { margin-top: 16px; justify-content: flex-end; }

/* 素材卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; min-height: 200px; }
.card { position: relative; border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; background: #fff; }
.card.checked { border-color: #409eff; box-shadow: 0 0 0 1px #409eff; }
.card-check { position: absolute; top: 4px; left: 8px; z-index: 2; }
.thumb { position: relative; height: 140px; background: #f0f2f5; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #303133; color: #fff; font-size: 26px; }
.badge { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; }
.badge.left { right: auto; left: 6px; background: rgba(64,158,255,.9); }
.meta { padding: 8px 10px; font-size: 12px; }
.meta .name { font-size: 13px; color: #303133; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .sub { color: #909399; margin-top: 2px; }
.meta .ops { display: flex; justify-content: flex-end; margin-top: 4px; }
.public-tag { margin-top: 4px; color: #e6a23c; background: #fdf6ec; border-radius: 3px; padding: 2px 6px; line-height: 1.5; }

/* 风采管理 */
.showcase-layout { display: grid; grid-template-columns: 260px 1fr 340px; gap: 16px; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 10px; gap: 8px; }
.cat-panel { border: 1px solid #ebeef5; border-radius: 6px; padding: 12px; }
.cat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.cat-row:hover { background: #f5f7fa; }
.cat-row.active { background: #ecf5ff; color: #409eff; }
.cat-name em { font-style: normal; color: #909399; font-size: 12px; margin-left: 4px; }
.cat-ops .el-button { margin-left: 2px; padding: 0 2px; }
.items-panel { min-height: 300px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.item-grid .ops { justify-content: space-between; }

/* 手机预览 */
.phone { width: 320px; height: 640px; border: 10px solid #1f1f1f; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; background: #f5f6f8; margin: 0 auto; }
.phone-bar { background: #fff; text-align: center; padding: 26px 0 10px; font-weight: 600; font-size: 15px; }
.phone-tabs { background: #fff; display: flex; gap: 16px; padding: 0 12px; overflow-x: auto; white-space: nowrap; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.phone-tabs span { padding: 8px 0; color: #606266; cursor: pointer; }
.phone-tabs span.active { color: #07c160; font-weight: 600; border-bottom: 2px solid #07c160; }
.phone-body { flex: 1; overflow-y: auto; padding: 8px; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-cell { background: #fff; border-radius: 6px; overflow: hidden; cursor: pointer; }
.phone-img { position: relative; aspect-ratio: 4 / 3; background: #e4e7ed; }
.phone-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-title { font-size: 12px; padding: 6px 8px; color: #303133; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-tabbar { display: flex; background: #fff; border-top: 1px solid #f0f0f0; font-size: 12px; }
.phone-tabbar span { flex: 1; text-align: center; padding: 10px 0 14px; color: #909399; }
.phone-tabbar span.active { color: #07c160; }

.preview { text-align: center; }
.preview img, .preview video { max-width: 100%; max-height: 70vh; }

@media (max-width: 1300px) {
  .showcase-layout { grid-template-columns: 240px 1fr; }
  .phone-panel { grid-column: 1 / -1; }
}
