html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  background-color: #f5f6f8;
}

.sfbs-navbar {
  background-color: #1f2937;
}

/* 卡片网格：允许卡片高度不一（顶部对齐） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
  align-items: start;
}

.asset-card {
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.asset-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.asset-card .card-img-top {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: #e9ecef;
}

.snapshot-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  color: #adb5bd;
}

.asset-card .card-text {
  color: #6c757d;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.asset-card .card-footer {
  background-color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  color: #495057;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.icon-lg {
  width: 40px;
  height: 40px;
}

/* 资产查看页：左显示右信息 */
.asset-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
}

@media (max-width: 768px) {
  .asset-view {
    grid-template-columns: 1fr;
  }
}

.asset-stage {
  background-color: #fff;
  border-radius: 0.375rem;
  padding: 0.75rem;
  min-height: 480px;
}

.asset-iframe {
  width: 100%;
  height: 80vh;
  border: 0;
  background-color: #fff;
}

.asset-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.asset-video {
  width: 100%;
  max-height: 80vh;
  background-color: #000;
}

.asset-info {
  background-color: #fff;
  border-radius: 0.375rem;
  padding: 1rem;
  align-self: start;
}

.asset-info h4 {
  font-size: 1.25rem;
}

.asset-des {
  white-space: pre-line;
  overflow-wrap: break-word;
}

.info-row {
  display: flex;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-top: 1px solid #f0f0f0;
}

.info-label {
  width: 5.5rem;
  flex: 0 0 auto;
  color: #6c757d;
  font-size: 0.9rem;
}

.qr-row {
  flex-direction: column;
  gap: 0.5rem;
}

.qr-img {
  width: 160px;
  height: 160px;
}

/* 管理页：名称/所有者/描述列超长时单行显示（不换行），列宽按内容自然排版 */
.desc-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* 管理页：描述列固定百分比宽度，内容多行显示 */
.desc-col {
  width: 25%;
}

.desc-multiline {
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 手机端：缩短 iframe 高度，让右侧/下方信息区更早露出 */
@media (max-width: 576px) {
  .asset-iframe {
    height: 65vh;
  }

  .asset-stage {
    min-height: 0;
    padding: 0.5rem;
  }

  .asset-info {
    padding: 0.75rem;
  }
}
