body {
  background: #000;
  min-height: 100vh;
  overflow-y: auto;
  margin: 0;
  letter-spacing: 1px;
  margin: 0;
  background: #000;
  height: 100vh;
  font-size: 14px;
  font-family: "PingFang SC Light", "Microsoft YaHei UI Light",
    "Hiragino Sans GB", sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #000;
}

header h1 {
  color: #e74c3c;
  font-size: 24px;
}

header input {
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
}

/* 主内容区 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 50px; /* 顶部导航栏高度 */
}

/* 空内容提示 */
.empty-tip {
  color: #fff;
  text-align: center;
  margin-top: 48px;
  font-size: 1.2rem;
}

/* 下拉刷新提示 */
.refresh-tip {
  color: #e91e63;
  text-align: center;
  font-size: 1rem;
  margin: 16px 0;
  display: none;
}

/* 加载更多提示 */
.loading-more {
  color: #fff;
  text-align: center;
  margin: 24px 0;
  font-size: 1rem;
  display: none;
}

/* 整个瀑布流 */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 每行2个 */
  gap: 18px;
  padding-left: 20px;
  padding-right: 20px;
}
/* 卡片样式及图片相关 */
.grid .card {
  border-radius: 0; /* 卡片本身无圆角 */
  overflow: hidden;
  position: relative;
  font-size: 12px;
}

.grid .card .img-wrapper {
  position: relative;
  overflow: hidden;
}

.grid .card img,
.grid .card .img-wrapper img {
  width: 100%;
  display: block;
}

.grid .card .img-wrapper img {
  height: 100%;
  object-fit: cover; /* 保持图片比例 */
  border-radius: 8px; /* 图片圆角 */
}

/* 视频卡片中的影片时长 */
.grid .card .duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* 视频标题 */
.grid .card .info {
  padding-top: 10px;
}

/* 视频标题文字 */
.grid .card .info h3 {
  margin: 0;
  color: #ddd;
  font-weight: lighter;
  letter-spacing: 0.5px;
}

.recommend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-top: 70px; /* 导航栏高度 */
  margin-bottom: 10px;
}
.recommend-title {
  color: #fff;
  font-weight: 600;
  
}
.recommend-more {
  color: #e91e63;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
}

/* 加载动画容器 */
#loadingMore {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 40px 0;
  text-align: center;
}

/* 加载动画圆圈 */
.loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #eee;
  border-top: 3px solid #888;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 加载文字样式 */
.loading-text {
  display: inline-block;
  margin-left: 10px;
  color: #888;
  font-size: 1.2rem;
  vertical-align: middle;
}

#loadingMore .loading-text {
  margin-top: 12px;
  text-align: center;
  width: 100%;
}

/* 导航栏样式 */
.navbar {
  width: 100%;
  background: linear-gradient(90deg, #222 60%, #e91e63 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 56px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-title {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 0 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(233, 30, 99, 0.12);
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-link {
  color: #fff;
  background: #e91e63;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 22px;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.08);
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: none;
  outline: none;
  cursor: pointer;
}

.nav-link:hover {
  background: #fff;
  color: #e91e63;
  box-shadow: 0 2px 12px rgba(233, 30, 99, 0.18);
}

/* 顶部导航栏极简商务风格样式 */
.top-nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #000;
  border-bottom: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 50px;
  min-height: 50px;
  box-shadow: none;
  z-index: 100;
  padding-left: 20px; /* 左侧间距增加 */
}

.top-nav .nav-item {
  color: #cecece;
  text-decoration: none;
  font-size: 14px;
  padding: 0 20px 0 0;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: transparent;
}

.top-nav .nav-item:hover {
  color: #e91e63;
  background: rgba(233, 30, 99, 0.04);
}

.top-nav .nav-item.selected {
  color: #e91e63;
  font-weight: 700;
  border-bottom: 2px solid #e91e63;
  background: rgba(233, 30, 99, 0.04);
}

/* 抖音风格播放器页面相关样式 */
.dy-player-container {
  width: 100vw;
  height: calc(100vh - 56px);
  position: relative;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}
.dy-video-wrapper {
  width: 100vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0.8, 0.4, 1);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dy-player-container video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  background: #000;
  border-radius: 0;
  box-shadow: none;
  pointer-events: auto;
}
.dy-info {
  position: absolute;
  left: 20px;
  bottom: 80px;
  color: #fff;
  z-index: 10;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
