/* EasyCMS 详情页样式（沉浸式单视频详情风格，抽自模板并适配 CSP：图片用 <img> 而非内联背景图） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #080808;
  color: #fff;
}
a { text-decoration: none; color: inherit; }

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255,60,90,.12), transparent 35%),
    linear-gradient(#101010, #080808 45%);
}

/* 顶部：仅 logo（已去掉右上导航） */
.top {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  background: rgba(0,0,0,.62); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo { font-size: 26px; font-weight: 800; color: #ff3b5f; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.language-switcher {
  display: flex; gap: 4px; padding: 3px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
}
.language-switcher a { padding: 5px 9px; border-radius: 999px; font-size: 12px; opacity: .72; }
.language-switcher a.active { background: #fff; color: #111; opacity: 1; }
.language-short { display: none; }

.main { width: min(1320px, 100%); margin: auto; padding: 92px 22px 90px; }
.detail { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 26px; align-items: start; }

/* 播放器 / 头图 */
.playerBox {
  border-radius: 24px; overflow: hidden; background: #111;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08);
}
.video { position: relative; aspect-ratio: 16/9; background: #111; }
.video-img, .video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-el { background: #000; object-fit: contain; z-index: 3; }
.video:after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent 42%);
}
.playBtn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,.88); color: #111;
  display: flex; align-items: center; justify-content: center; font-size: 34px; z-index: 2;
}

/* 信息区 */
.info { padding: 24px 6px 0; }
.info h1 { font-size: clamp(24px,3vw,40px); line-height: 1.25; margin-bottom: 12px; }
.meta { color: #aaa; font-size: 14px; margin-bottom: 18px; }
.author {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08);
}
.authorLeft { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,#ff3b5f,#ff7a3b); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.name b { display: block; }
.name span { font-size: 13px; color: #999; }
.desc { color: #ccc; line-height: 1.85; margin: 20px 0; max-width: 850px; font-size: 16px; word-break: break-word; }
.desc img, .desc video { display: block; width: 100%; max-width: 640px; border-radius: 12px; margin: 14px 0; }
.desc a { color: #4ea1ff; text-decoration: underline; word-break: break-all; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.action { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); padding: 11px 18px; border-radius: 14px; color: #eee; }
/* 点赞按钮：未点白色，已点黄色 */
.like-btn { cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 8px; transition: color .15s, background .15s, border-color .15s; }
.like-btn .like-ico { font-size: 18px; line-height: 1; }
.like-btn.liked { color: #ffd400; border-color: rgba(255,212,0,.5); background: rgba(255,212,0,.14); }
.playBtn { cursor: pointer; }

/* 联盟推广商品 */
.affiliate-section { margin: 26px 0; padding: 18px; border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; background: rgba(255,255,255,.04); }
.affiliate-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.affiliate-heading b { font-size: 20px; }
.affiliate-heading span { color: #999; font-size: 12px; }
.affiliate-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.affiliate-card { display: grid; grid-template-columns: 120px minmax(0,1fr); overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #151515; }
.affiliate-card > img { width: 120px; height: 100%; min-height: 140px; object-fit: cover; }
.affiliate-card-body { padding: 12px; min-width: 0; }
.affiliate-platform { color: #ffb14a; font-size: 12px; }
.affiliate-card h3 { font-size: 16px; line-height: 1.4; margin: 5px 0; }
.affiliate-card p { color: #999; font-size: 13px; line-height: 1.45; }
.affiliate-card-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.affiliate-card-foot strong { color: #ff5a72; font-size: 18px; }
.affiliate-coupon { border: 1px solid #ff5a72; color: #ff8da0; border-radius: 4px; padding: 2px 5px; font-size: 11px; }
.affiliate-card-foot a { margin-left: auto; padding: 7px 12px; color: #fff; text-decoration: none;
  border-radius: 999px; background: #fe2c55; font-size: 13px; font-weight: 700; }
.affiliate-disclosure { color: #777; font-size: 12px; line-height: 1.5; margin-top: 12px; }

/* 右侧信息栏 */
.side {
  position: sticky; top: 86px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px; padding: 18px;
}
.side h3 { font-size: 18px; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #ddd; font-size: 13px; }
.stats { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: rgba(0,0,0,.28); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-size: 19px; }
.stat span { color: #999; font-size: 13px; }

/* 相关推荐 */
.recommend { margin-top: 46px; }
.sectionTitle { font-size: 26px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 18px; }
.card { background: #141414; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; overflow: hidden; transition: .25s; display: block; }
.card:hover { transform: translateY(-5px); background: #1b1b1b; }
.thumb { aspect-ratio: 16/9; position: relative; background: #222; overflow: hidden; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.time { position: absolute; right: 8px; bottom: 8px; font-size: 12px; padding: 4px 7px; border-radius: 8px; background: rgba(0,0,0,.72); }
.cardBody { padding: 12px; }
.cardBody h4 {
  font-size: 15px; line-height: 1.45; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cardBody p { color: #999; font-size: 13px; }

/* 底部移动端导航 */
.bottomNav { display: none; }
.bottomNav a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .72; }
.bottomNav a.active { color: #ff5a72; opacity: 1; font-weight: 700; }
.nav-dot {
  display: block; width: 6px; height: 6px; margin: 0 auto 6px;
  border-radius: 50%; background: currentColor;
}
.backBtn { color: #ddd; font-size: 14px; }

@media (max-width: 900px) {
  .top { height: 58px; gap: 8px; padding-left: 12px; padding-right: 12px; }
  .top .logo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }
  .top .logo a { display: block; overflow: hidden; text-overflow: ellipsis; }
  .top-actions { flex: 0 0 auto; gap: 6px; }
  .language-switcher { gap: 2px; padding: 2px; }
  .language-switcher a { min-width: 30px; padding: 6px; text-align: center; }
  .language-full { display: none; }
  .language-short { display: inline; }
  .backBtn { padding: 7px 4px; font-size: 12px; }
  .main { padding: 74px 12px 82px; }
  .detail { display: block; }
  .playerBox { border-radius: 18px; }
  .info { padding: 18px 2px 0; }
  .side { position: static; margin-top: 22px; }
  .grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .affiliate-card { grid-template-columns: 100px minmax(0,1fr); }
  .affiliate-card > img { width: 100px; }
  .card { border-radius: 14px; }
  .bottomNav {
    position: fixed; left: 0; right: 0; bottom: 0; height: 64px;
    background: #101010; border-top: 1px solid rgba(255,255,255,.1);
    display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: center;
    z-index: 20; font-size: 12px; color: #ddd; text-align: center;
  }
}
