/* 蜜桃视频 · 主流三栏流媒体首页布局 */
:root {
  --bg: #020617;
  --bg-soft: #020617;
  --panel: #020617;
  --card: #0b1120;
  --card-soft: #020617;
  --border: #1e293b;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --accent-2: #38bdf8;
  --text: #e5e7eb;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --radius: 12px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16) 0, transparent 45%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.16) 0, transparent 45%),
    #020617;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 顶部导航：LOGO + 主菜单 + 搜索 + 登录 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: radial-gradient(circle at top, rgba(15,23,42,0.94) 0, rgba(15,23,42,0.86) 35%, rgba(15,23,42,0.86) 100%);
  border-bottom: 1px solid rgba(30,64,175,0.6);
}
.topbar-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.logo span {
  font-size: 0.7rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.main-menu {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.84rem;
}
.main-menu a {
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  color: var(--text-2);
  transition: background 0.18s, color 0.18s;
}
.main-menu a:hover,
.main-menu a.on {
  background: rgba(15,23,42,0.9);
  color: var(--accent-2);
}

.topbar-gap {
  flex: 1;
}

.search-box {
  position: relative;
  min-width: 0;
  flex: 1.2;
  max-width: 340px;
}
.search-box input {
  width: 100%;
  padding: 0.5rem 2.3rem 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(51,65,85,0.9);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
}
.search-box input::placeholder {
  color: var(--text-3);
}
.search-box span {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-3);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.btn-ghost,
.btn-solid {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(75,85,99,0.9);
  background: transparent;
  color: var(--text-2);
}
.btn-solid {
  border-color: transparent;
  background: linear-gradient(to right, var(--accent), #ec4899);
  color: #020617;
  font-weight: 600;
}

/* 频道条：主流站的横向频道导航 */
.channel-bar {
  border-bottom: 1px solid rgba(30,64,175,0.6);
  background: radial-gradient(circle at top, rgba(15,23,42,0.94) 0, rgba(15,23,42,0.9) 100%);
}
.channel-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.55rem 1.4rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow-x: auto;
}
.channel-tag {
  font-size: 0.78rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  white-space: nowrap;
  color: var(--text-2);
}
.channel-tag.on {
  border-color: transparent;
  background: rgba(249,115,22,0.18);
  color: var(--accent);
}

/* 页面容器 + 三栏布局 */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.3rem 1.4rem 2.1rem;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1.8fr) 260px;
  gap: 1.4rem;
  align-items: flex-start;
}

.col-left,
.col-center,
.col-right {
  min-width: 0;
}

.panel {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98) 0, rgba(15,23,42,0.98) 60%, rgba(15,23,42,0.96) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

/* 左侧：导航与筛选 */
.side-nav-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--text-2);
}
.side-nav-list {
  list-style: none;
  font-size: 0.8rem;
}
.side-nav-list li + li {
  margin-top: 0.12rem;
}
.side-nav-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.36rem 0.4rem;
  border-radius: 8px;
  color: var(--text-2);
  transition: background 0.16s, color 0.16s;
}
.side-nav-list a span {
  font-size: 0.7rem;
  color: var(--text-3);
}
.side-nav-list a:hover,
.side-nav-list a.on {
  background: rgba(15,23,42,0.95);
  color: var(--accent-2);
}

.side-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.6rem;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  font-size: 0.72rem;
  color: var(--text-3);
}
.side-badge strong {
  color: var(--accent);
}

/* 中栏：主播放器卡片 + 推荐区 */
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.1fr);
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.hero-cover {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 180px;
}
.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-cover::after {
  content: "▶";
  position: absolute;
  bottom: 0.7rem;
  left: 0.8rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #f9fafb;
}
.hero-meta h1 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}
.hero-meta .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.hero-meta .tags span {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  font-size: 0.7rem;
  color: var(--text-3);
}
.hero-meta p {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.55rem;
}
.hero-meta .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-3);
}

.section-title {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.feed-card {
  background: rgba(15,23,42,0.96);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.6rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.feed-card .name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
}
.feed-card .meta {
  font-size: 0.7rem;
  color: var(--text-3);
}

/* 中栏长文区：800-1200 字说明 */
.intro-block {
  margin-top: 1.2rem;
}
.intro-text {
  font-size: 0.86rem;
  color: var(--text-2);
}
.intro-text p {
  margin-bottom: 0.95rem;
}
.intro-text strong {
  color: var(--accent-2);
}

/* 右栏：热播榜 + 更新 */
.rank-list,
.update-list {
  list-style: none;
  font-size: 0.78rem;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.35rem;
  border-radius: 8px;
}
.rank-item + .rank-item {
  margin-top: 0.2rem;
}
.rank-no {
  width: 18px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-3);
}
.rank-body {
  flex: 1;
}
.rank-body .t {
  font-size: 0.78rem;
}
.rank-body .m {
  font-size: 0.7rem;
  color: var(--text-3);
}
.rank-item.hot .rank-no {
  color: var(--accent);
}

.update-list li + li {
  margin-top: 0.3rem;
}
.update-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--text-2);
}
.update-list span {
  font-size: 0.7rem;
  color: var(--text-3);
}

footer.ft {
  padding: 0.9rem 1.4rem 1.6rem;
  font-size: 0.74rem;
  color: var(--text-3);
  text-align: center;
  border-top: 1px solid rgba(30,64,175,0.7);
}

/* 列表页与内容页通用结构 */
.list-page,
.article-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 2.1rem;
}
.list-head,
.article-head {
  margin-bottom: 1rem;
}
.list-head h1,
.article-head h1 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}
.list-head p,
.article-head p {
  font-size: 0.82rem;
  color: var(--text-2);
}

.list-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.list-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.96);
}
.list-thumb {
  width: 140px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-body {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-2);
}
.list-body h2 {
  font-size: 0.86rem;
  margin-bottom: 0.22rem;
  color: #e5e7eb;
}

.article-body {
  max-width: 720px;
  font-size: 0.86rem;
  color: var(--text-2);
}
.article-body p {
  margin-bottom: 0.95rem;
}
.article-body h2 {
  font-size: 0.94rem;
  margin: 1.05rem 0 0.4rem;
  color: var(--accent-2);
}
.article-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 0.9rem 0;
  border: 1px solid var(--border);
}
.article-foot {
  margin-top: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-3);
}
.article-foot a {
  color: var(--accent-2);
}

/* 响应式 */
@media (max-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  }
  .col-left {
    display: none;
  }
}
@media (max-width: 840px) {
  .topbar-in {
    padding: 0.6rem 1rem;
  }
  .channel-in {
    padding-inline: 1rem;
  }
  .shell {
    padding-inline: 1rem;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .topbar-in {
    gap: 0.6rem;
  }
  .main-menu {
    display: none;
  }
  .search-box {
    max-width: none;
  }
  .user-actions {
    display: none;
  }
  .list-page,
  .article-page {
    padding-inline: 1rem;
  }
  .list-item {
    flex-direction: column;
  }
  .list-thumb {
    width: 100%;
    height: 150px;
  }
}

