* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

/* 加载页 */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #999;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #fe2c55;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 素材卡片 */
.material-card {
  margin: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.material-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
}

.material-info {
  padding: 16px;
}

.material-info h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #222;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f0;
  color: #fe2c55;
  font-size: 13px;
  border-radius: 4px;
}

/* 操作区 */
.action-area {
  padding: 24px 16px;
  text-align: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: #fe2c55;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.share-btn:active {
  opacity: 0.85;
}

.share-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-icon {
  font-size: 20px;
}

.tip {
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}

/* 错误提示 */
.error-box {
  margin: 0 16px 16px;
  padding: 12px 16px;
  background: #fff0f0;
  color: #d32f2f;
  border-radius: 8px;
  font-size: 14px;
}

/* 无素材 */
.no-material {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #999;
}

.no-material .tip {
  margin-top: 8px;
  font-size: 13px;
}
