/* =========================================================
   TENGXUN THEME — 仿腾讯视频 MacCMS 模板 · 设计系统
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  --tq-primary: #ff5c38;          /* 腾讯橙红 */
  --tq-primary-hover: #ff7d5c;
  --tq-primary-deep: #f0442b;
  --tq-black: #000000;
  --tq-bg: #f5f6f8;
  --tq-card: #ffffff;
  --tq-text: #18191c;
  --tq-text2: #61666d;
  --tq-text3: #9499a0;
  --tq-line: #e5e6eb;
  --tq-gold: #ffb800;             /* VIP 金 */
  --tq-green: #00a860;            /* 免费/评分绿 */
  --tq-red: #ff2e4d;
  --radius: 4px;
  --radius-lg: 8px;
  --content-w: 1200px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--tq-text);
  background: var(--tq-bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; border: 0; }
button, input { font-family: inherit; outline: none; }
i { font-style: normal; }

.container { width: var(--content-w); margin: 0 auto; }
.hidden { display: none !important; }

/* 省略号 */
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 顶部导航（PC 黑底） ---------- */
.tq-nav {
  background: var(--tq-black);
  color: #fff;
  position: relative;
  z-index: 100;
}
.tq-nav-inner {
  width: var(--content-w);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
}
.tq-logo { margin-right: 28px; flex-shrink: 0; }
.tq-logo img { width: 118px; height: 30px; }
.tq-nav-menu { display: flex; align-items: center; height: 100%; flex: 1; }
.tq-nav-menu .tq-nav-item {
  position: relative;
  height: 100%;
  display: flex; align-items: center;
  padding: 0 16px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  transition: color .2s;
}
.tq-nav-menu .tq-nav-item:hover,
.tq-nav-menu .tq-nav-item.active { color: #fff; }
.tq-nav-menu .tq-nav-item.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px;
  background: var(--tq-primary);
}
.tq-nav-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  height: 36px; padding: 0 6px 0 14px;
  width: 260px;
  transition: border-color .2s, background .2s;
}
.tq-nav-search:focus-within { border-color: var(--tq-primary); background: rgba(255,255,255,.2); }
.tq-nav-search input {
  flex: 1; border: 0; background: transparent; color: #fff; font-size: 13px;
}
.tq-nav-search input::placeholder { color: rgba(255,255,255,.5); }
.tq-nav-search .tq-search-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tq-primary); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tq-nav-search .tq-search-btn svg { width: 15px; height: 15px; fill: #fff; }
.tq-nav-right { margin-left: 18px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tq-nav-link {
  color: rgba(255,255,255,.88); font-size: 13px; padding: 6px 10px;
  border-radius: 4px; cursor: pointer; transition: background .2s;
}
.tq-nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.tq-nav-link.login {
  color: #fff; background: var(--tq-primary); border-radius: 16px;
  padding: 6px 18px;
}
.tq-nav-link.login:hover { background: var(--tq-primary-hover); }

/* 移动导航栏 */
.tq-mnav {
  display: none;
  background: var(--tq-black);
  padding: 8px 12px;
  position: sticky; top: 0; z-index: 100;
}
.tq-mnav .tq-mnav-row { display: flex; align-items: center; gap: 10px; }
.tq-mnav .tq-mlogo img { width: 92px; height: 24px; }
.tq-mnav .tq-msearch {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border-radius: 16px;
  padding: 6px 12px; height: 32px;
}
.tq-mnav .tq-msearch input {
  flex: 1; border: 0; background: transparent; color: #fff; font-size: 13px;
}
.tq-mnav .tq-msearch input::placeholder { color: rgba(255,255,255,.5); }
.tq-mnav .tq-msearch svg { width: 15px; height: 15px; fill: rgba(255,255,255,.7); }
.tq-mnav .tq-muser { color: #fff; font-size: 22px; line-height: 1; }
.tq-mcat {
  display: flex; overflow-x: auto; gap: 4px; margin-top: 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tq-mcat::-webkit-scrollbar { display: none; }
.tq-mcat a {
  flex-shrink: 0; color: rgba(255,255,255,.75); font-size: 13px;
  padding: 4px 10px; border-radius: 12px; white-space: nowrap;
}
.tq-mcat a.active { color: #fff; background: var(--tq-primary); }

/* ---------- 分区标题 ---------- */
.tq-section { margin: 22px 0 14px; }
.tq-section-head {
  display: flex; align-items: center; margin-bottom: 14px;
}
.tq-section-title {
  display: flex; align-items: center;
  font-size: 20px; font-weight: 600; color: var(--tq-text);
}
.tq-section-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: var(--tq-primary); margin-right: 10px;
}
.tq-section-more {
  margin-left: auto; font-size: 13px; color: var(--tq-text2);
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.tq-section-more:hover { color: var(--tq-primary); }
.tq-section-more svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- 视频卡片 ---------- */
.tq-card { position: relative; width: 100%; }
.tq-card-pic {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius);
  background: #e8e9eb;
  height: 0; padding-top: 150%;        /* 2:3 海报（兼容方案，无需 aspect-ratio） */
}
.tq-card-pic img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.tq-card:hover .tq-card-pic img { transform: scale(1.06); }
.tq-card-pic::after {                 /* 遮罩 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
  opacity: 0; transition: opacity .3s;
}
.tq-card:hover .tq-card-pic::after { opacity: 1; }
.tq-card .tq-badge {
  position: absolute; z-index: 2;
  display: inline-block; padding: 1px 6px;
  font-size: 11px; line-height: 1.6; border-radius: 2px; color: #fff;
}
.tq-badge-top { top: 6px; left: 6px; background: var(--tq-primary); }
.tq-badge-free { top: 6px; left: 6px; background: var(--tq-green); }
.tq-badge-vip { top: 6px; right: 6px; background: linear-gradient(135deg,#ffcf54,#f5a623); color: #7a4d00; }
.tq-badge-remark { bottom: 0; left: 0; right: 0; padding: 12px 6px 4px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  font-size: 12px; color: #fff; text-align: center; z-index: 2;
}
.tq-card-play {
  position: absolute; z-index: 3; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.7);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all .3s;
}
.tq-card-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.tq-card:hover .tq-card-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.tq-card-title {
  margin-top: 8px; font-size: 14px; color: var(--tq-text);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tq-card:hover .tq-card-title { color: var(--tq-primary); }
.tq-card-desc {
  margin-top: 4px; font-size: 12px; color: var(--tq-text3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tq-card-score {
  position: absolute; z-index: 2; top: 6px; right: 6px;
  font-size: 12px; font-weight: 600; color: #ffb800;
  background: rgba(0,0,0,.5); padding: 1px 6px; border-radius: 2px;
}
.tq-card-duration {                      /* 横版卡片时长角标 */
  position: absolute; z-index: 2; bottom: 4px; right: 6px;
  font-size: 11px; color: #fff; background: rgba(0,0,0,.6);
  padding: 1px 5px; border-radius: 2px;
}

/* 横版卡片（16:10，用于横滑区） */
.tq-card--wide .tq-card-pic { padding-top: 62.5%; }

/* ---------- 轮播 ---------- */
.tq-carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.tq-carousel-track { display: flex; transition: transform .5s ease; }
.tq-carousel-slide { position: relative; min-width: 100%; height: 0; padding-top: 43.75%; }
/* 模糊背景 */
.tq-slide-bg { position: absolute; top: -5%; left: -5%; width: 110%; height: 110%; display: block; }
.tq-slide-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.45); transform: scale(1.1); }
/* 前景：竖版海报 + 标题 */
.tq-slide-body {
  position: absolute; top: 50%; left: 8%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 26px; z-index: 2;
}
.tq-slide-poster {
  width: 190px; flex-shrink: 0; border-radius: 6px; overflow: hidden; display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
}
.tq-slide-poster img { width: 100%; display: block; }
.tq-slide-info { color: #fff; max-width: 430px; }
.tq-slide-info h3 {
  font-size: 25px; font-weight: 600; margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.tq-slide-info p { font-size: 13px; opacity: .85; margin-bottom: 16px; }
@media (max-width: 768px) {
  .tq-slide-poster { width: 108px; }
  .tq-slide-body { left: 4%; gap: 12px; }
  .tq-slide-info h3 { font-size: 16px; margin-bottom: 6px; }
  .tq-slide-info p { display: none; }
  .tq-slide-info .tq-btn { height: 30px; padding: 0 14px; font-size: 13px; }
}
.tq-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, transparent 60%);
}
.tq-carousel-caption {
  position: absolute; left: 40px; bottom: 36px; z-index: 2; color: #fff;
  max-width: 55%;
}
.tq-carousel-caption h3 {
  font-size: 26px; font-weight: 600; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.tq-carousel-caption p {
  font-size: 14px; opacity: .9; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.tq-carousel-dots {
  position: absolute; z-index: 3; right: 20px; bottom: 16px;
  display: flex; gap: 6px;
}
.tq-carousel-dots i {
  width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4);
  cursor: pointer; transition: background .3s;
}
.tq-carousel-dots i.active { background: var(--tq-primary); }
.tq-carousel-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.4); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.tq-carousel:hover .tq-carousel-arrow { opacity: 1; }
.tq-carousel-arrow.prev { left: 12px; }
.tq-carousel-arrow.next { right: 12px; }
.tq-carousel-arrow svg { width: 18px; height: 18px; fill: #fff; }
.tq-carousel-arrow.next svg { transform: rotate(180deg); }

/* ---------- 横向滚动 ---------- */
.tq-hscroll { position: relative; }
.tq-hscroll-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 4px; scrollbar-width: none;
}
.tq-hscroll-track::-webkit-scrollbar { display: none; }
.tq-hscroll-arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; opacity: 0; transition: opacity .3s;
}
.tq-hscroll:hover .tq-hscroll-arrow { opacity: 1; }
.tq-hscroll-arrow svg { width: 16px; height: 16px; fill: #fff; }
.tq-hscroll-arrow.next { right: -14px; }
.tq-hscroll-arrow.next svg { transform: rotate(180deg); }
.tq-hscroll-arrow.prev { left: -14px; }

/* ---------- 网格 ---------- */
.tq-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 16px; }
.tq-grid-5 { grid-template-columns: repeat(5, 1fr); }
.tq-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 排行榜 ---------- */
.tq-rank { background: var(--tq-card); border-radius: var(--radius-lg); padding: 16px; }
.tq-rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px; border-radius: 4px; cursor: pointer;
}
.tq-rank-item:hover { background: #f7f8fa; }
.tq-rank-no {
  width: 20px; text-align: center; font-size: 16px; font-weight: 700;
  color: var(--tq-text3); font-style: italic;
}
.tq-rank-item:nth-child(-n+3) .tq-rank-no { color: var(--tq-primary); }
.tq-rank-pic { width: 66px; height: 40px; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.tq-rank-pic img { width: 100%; height: 100%; object-fit: cover; }
.tq-rank-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-rank-item:hover .tq-rank-name { color: var(--tq-primary); }
.tq-rank-num { font-size: 12px; color: var(--tq-text3); flex-shrink: 0; }

/* ---------- 标签 ---------- */
.tq-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-tag {
  display: inline-block; padding: 4px 12px; font-size: 13px;
  border: 1px solid var(--tq-line); border-radius: 14px; color: var(--tq-text2);
  cursor: pointer; transition: all .2s; background: #fff;
}
.tq-tag:hover { border-color: var(--tq-primary); color: var(--tq-primary); }
.tq-tag.active { border-color: var(--tq-primary); background: var(--tq-primary); color: #fff; }

/* ---------- 按钮 ---------- */
.tq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 24px; border-radius: 20px; border: 0;
  font-size: 15px; cursor: pointer; transition: all .2s; background: #fff;
  border: 1px solid var(--tq-line); color: var(--tq-text);
}
.tq-btn svg { width: 16px; height: 16px; fill: currentColor; }
.tq-btn-primary { background: var(--tq-primary); border-color: var(--tq-primary); color: #fff; }
.tq-btn-primary:hover { background: var(--tq-primary-hover); }
.tq-btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.tq-btn-ghost:hover { border-color: #fff; }
.tq-btn-sm { height: 30px; padding: 0 16px; font-size: 13px; border-radius: 16px; }
.tq-btn-block { width: 100%; }

/* ---------- 卡片容器 ---------- */
.tq-panel {
  background: var(--tq-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px;
}
.tq-panel + .tq-panel { margin-top: 16px; }

/* ---------- 页脚 ---------- */
.tq-footer {
  margin-top: 40px; padding: 28px 0 36px;
  background: var(--tq-card); border-top: 1px solid var(--tq-line);
}
.tq-footer .container { text-align: center; color: var(--tq-text3); font-size: 12px; }
.tq-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.tq-footer-links a:hover { color: var(--tq-primary); }
.tq-footer p { line-height: 1.8; }

/* ---------- 面包屑 / 频道页 ---------- */
.tq-crumb { padding: 16px 0 4px; font-size: 13px; color: var(--tq-text2); }
.tq-crumb a:hover { color: var(--tq-primary); }
.tq-crumb .sep { margin: 0 6px; color: var(--tq-text3); }
.tq-sortbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tq-sortbar .tq-sort-item {
  padding: 6px 14px; font-size: 13px; border-radius: 16px; cursor: pointer; color: var(--tq-text2);
}
.tq-sortbar .tq-sort-item:hover { color: var(--tq-primary); }
.tq-sortbar .tq-sort-item.active { background: var(--tq-primary); color: #fff; }

/* ---------- 分页 ---------- */
.tq-pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 24px 0; }
.tq-pager a, .tq-pager span {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; background: #fff; border: 1px solid var(--tq-line); color: var(--tq-text2);
}
.tq-pager a:hover { border-color: var(--tq-primary); color: var(--tq-primary); }
.tq-pager .current { background: var(--tq-primary); border-color: var(--tq-primary); color: #fff; }
.tq-pager .disabled { opacity: .45; pointer-events: none; }

/* ---------- 详情页 ---------- */
.tq-detail-head {
  background: linear-gradient(180deg, #2a2d34 0%, #1c1e24 100%);
  color: #fff; padding: 30px 0;
}
.tq-detail-layout { display: flex; gap: 28px; }
.tq-detail-poster { width: 220px; flex-shrink: 0; }
.tq-detail-poster img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.tq-detail-main { flex: 1; min-width: 0; }
.tq-detail-title { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.tq-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tq-detail-meta .tq-chip {
  display: inline-block; padding: 3px 10px; font-size: 12px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 12px; color: rgba(255,255,255,.9);
}
.tq-detail-rows { font-size: 13px; color: rgba(255,255,255,.72); line-height: 2; }
.tq-detail-rows b { color: #fff; font-weight: 400; margin-right: 6px; }
.tq-detail-desc {
  margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.65);
  max-height: 60px; overflow: hidden; position: relative;
}
.tq-detail-desc.expanded { max-height: none; }
.tq-detail-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* 选集面板 */
.tq-ep-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tq-ep-tab {
  padding: 6px 16px; font-size: 14px; border-radius: 16px; cursor: pointer;
  color: var(--tq-text2); background: #f2f3f5;
}
.tq-ep-tab.active { background: var(--tq-primary); color: #fff; }
.tq-ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.tq-ep {
  height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--tq-line); border-radius: 4px;
  font-size: 13px; color: var(--tq-text); cursor: pointer; background: #fff;
}
.tq-ep:hover { border-color: var(--tq-primary); color: var(--tq-primary); }
.tq-ep.current { background: var(--tq-primary); border-color: var(--tq-primary); color: #fff; }

/* ---------- 播放页 ---------- */
.tq-player-wrap { background: #000; }
.tq-player {
  width: var(--content-w); margin: 0 auto; position: relative;
  height: 0; padding-top: 56.25%; background: #000;   /* 16:9 */
}
.tq-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tq-player-toolbar {
  width: var(--content-w); margin: 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 0; color: #fff;
}
.tq-player-title { font-size: 17px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-tool-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px;
  border-radius: 4px; font-size: 13px; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; transition: background .2s;
}
.tq-tool-btn:hover { background: rgba(255,255,255,.25); }
.tq-tool-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- 搜索 ---------- */
.tq-search-hero {
  background: linear-gradient(135deg, #ff5c38 0%, #ff7d5c 100%);
  padding: 36px 0; display: none;
}
.tq-search-box {
  max-width: 640px; margin: 0 auto; display: flex;
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.tq-search-box input {
  flex: 1; border: 0; padding: 12px 22px; font-size: 15px;
}
.tq-search-box button {
  border: 0; background: var(--tq-primary); color: #fff; padding: 0 28px;
  font-size: 15px; cursor: pointer;
}
.tq-search-box button:hover { background: var(--tq-primary-hover); }
.tq-hot-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.tq-hot-tags .tq-tag { background: #fff; }

/* 搜索结果列表（横向条目） */
.tq-res-row {
  display: flex; gap: 16px; padding: 14px; border-radius: var(--radius-lg);
  background: #fff; margin-bottom: 12px; transition: box-shadow .2s;
}
.tq-res-row:hover { box-shadow: var(--shadow); }
.tq-res-pic { width: 130px; flex-shrink: 0; height: 0; padding-top: 62.5%; border-radius: 4px; overflow: hidden; position: relative; }
.tq-res-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.tq-res-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tq-res-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tq-res-name:hover { color: var(--tq-primary); }
.tq-res-meta { font-size: 12px; color: var(--tq-text3); margin-bottom: 6px; line-height: 1.8; }
.tq-res-desc { font-size: 13px; color: var(--tq-text2); }

/* ---------- 移动端底部 Tab ---------- */
.tq-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--tq-line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tq-tabbar ul { display: flex; }
.tq-tabbar li { flex: 1; text-align: center; }
.tq-tabbar a { display: block; color: var(--tq-text3); font-size: 11px; }
.tq-tabbar a.active { color: var(--tq-primary); }
.tq-tabbar svg { width: 22px; height: 22px; margin: 0 auto 2px; display: block; fill: currentColor; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .container, .tq-nav-inner, .tq-player, .tq-player-toolbar { width: 96%; }
}
@media (max-width: 1024px) {
  .tq-nav { display: none; }
  .tq-mnav { display: block; }
  .tq-grid { grid-template-columns: repeat(4, 1fr); }
  .tq-hscroll-track { grid-auto-columns: calc((100% - 3 * 12px) / 4); gap: 12px; }
  .tq-detail-layout { flex-direction: column; }
  .tq-detail-poster { width: 150px; }
}
@media (max-width: 768px) {
  body { padding-bottom: 54px; }
  .tq-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
  .tq-grid-5, .tq-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tq-hscroll-track { grid-auto-columns: calc((100% - 2 * 10px) / 3); gap: 10px; }
  .tq-section-title { font-size: 17px; }
  .tq-carousel-caption { left: 16px; bottom: 20px; }
  .tq-carousel-caption h3 { font-size: 18px; }
  .tq-carousel-caption p { display: none; }
  .tq-tabbar { display: block; }
  .tq-detail-head { padding: 16px 0; }
  .tq-detail-title { font-size: 20px; }
  .tq-detail-actions .tq-btn { flex: 1; }
  .tq-res-pic { width: 108px; }
  .tq-search-hero { display: block; }
  .tq-player { width: 100%; }
  .tq-player-toolbar { width: 100%; padding: 10px; flex-wrap: wrap; }
  .tq-footer { display: none; }
}
@media (max-width: 420px) {
  .tq-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 资讯卡片 ---------- */
.tq-news-list { display: flex; flex-direction: column; gap: 14px; }
.tq-news {
  display: flex; gap: 14px; padding: 14px; background: var(--tq-card);
  border-radius: var(--radius-lg); transition: box-shadow .2s;
}
.tq-news:hover { box-shadow: var(--shadow); }
.tq-news-pic { width: 200px; flex-shrink: 0; height: 0; padding-top: 56.25%; border-radius: 4px; overflow: hidden; position: relative; }
.tq-news-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.tq-news-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tq-news-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tq-news-title:hover { color: var(--tq-primary); }
.tq-news-desc { font-size: 13px; color: var(--tq-text2); }
.tq-news-meta { margin-top: auto; font-size: 12px; color: var(--tq-text3); display: flex; gap: 14px; }
@media (max-width: 768px) {
  .tq-news-pic { width: 130px; }
}

/* ---------- 文章正文 ---------- */
.tq-article { background: var(--tq-card); border-radius: var(--radius-lg); padding: 26px; }
.tq-article h1 { font-size: 22px; margin-bottom: 10px; }
.tq-article .tq-article-meta { font-size: 12px; color: var(--tq-text3); margin-bottom: 18px; }
.tq-article .tq-article-body { font-size: 15px; line-height: 1.9; color: var(--tq-text); }
.tq-article .tq-article-body p { margin-bottom: 12px; }
.tq-article .tq-article-body img { max-width: 100%; margin: 8px auto; }
.tq-article .tq-article-nav { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--tq-line); font-size: 13px; color: var(--tq-text2); line-height: 2; }
.tq-article .tq-article-nav a:hover { color: var(--tq-primary); }

/* ---------- 专题 ---------- */
.tq-topic {
  background: var(--tq-card); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s;
}
.tq-topic:hover { box-shadow: var(--shadow-lg); }
.tq-topic-pic { height: 0; padding-top: 56.25%; overflow: hidden; position: relative; }
.tq-topic-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.tq-topic-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.tq-topic-pic h3 { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 2; color: #fff; font-size: 17px; }
.tq-topic-body { padding: 12px 14px 14px; }
.tq-topic-body p { font-size: 13px; color: var(--tq-text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tq-topic-count { font-size: 12px; color: var(--tq-text3); margin-top: 8px; }

/* ---------- 留言表单 ---------- */
.tq-form label { display: block; font-size: 13px; color: var(--tq-text2); margin-bottom: 6px; }
.tq-form input[type="text"], .tq-form textarea {
  width: 100%; border: 1px solid var(--tq-line); border-radius: 6px;
  padding: 10px 12px; font-size: 14px; margin-bottom: 14px; font-family: inherit;
  background: #fff; color: var(--tq-text);
}
.tq-form input[type="text"]:focus, .tq-form textarea:focus { border-color: var(--tq-primary); }
.tq-form textarea { min-height: 110px; resize: vertical; }
.tq-gbook-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--tq-line); }
.tq-gbook-item:last-child { border-bottom: 0; }
.tq-gbook-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--tq-primary); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.tq-gbook-main { flex: 1; min-width: 0; }
.tq-gbook-name { font-size: 14px; font-weight: 600; }
.tq-gbook-time { font-size: 12px; color: var(--tq-text3); margin-left: 8px; font-weight: 400; }
.tq-gbook-content { font-size: 14px; margin-top: 4px; color: var(--tq-text); word-break: break-all; }
.tq-gbook-reply { margin-top: 8px; font-size: 13px; color: var(--tq-primary); background: #fff5f2; padding: 8px 12px; border-radius: 6px; }

/* ---------- 用户中心 ---------- */
.tq-user-layout { display: flex; gap: 16px; margin-top: 16px; align-items: flex-start; }
.tq-user-menu { width: 200px; flex-shrink: 0; background: var(--tq-card); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow); }
.tq-user-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--tq-text); }
.tq-user-menu a:hover, .tq-user-menu a.active { background: #fff2ef; color: var(--tq-primary); }
.tq-user-menu a svg { width: 16px; height: 16px; fill: currentColor; }
.tq-user-menu .tq-user-logout { margin-top: 8px; border-top: 1px solid var(--tq-line); padding-top: 10px; color: var(--tq-text3); }
.tq-user-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--tq-card); border-radius: var(--radius-lg); margin-bottom: 16px; box-shadow: var(--shadow); }
.tq-user-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--tq-primary); color: #fff; font-size: 26px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tq-user-name { font-size: 18px; font-weight: 600; }
.tq-user-sub { font-size: 13px; color: var(--tq-text3); margin-top: 4px; }
.tq-user-stats { margin-left: auto; display: flex; gap: 28px; text-align: center; }
.tq-user-stats b { display: block; font-size: 18px; color: var(--tq-primary); }
.tq-user-stats span { font-size: 12px; color: var(--tq-text3); }
@media (max-width: 768px) {
  .tq-user-layout { flex-direction: column; }
  .tq-user-menu { width: 100%; display: flex; overflow-x: auto; scrollbar-width: none; }
  .tq-user-menu::-webkit-scrollbar { display: none; }
  .tq-user-menu a { white-space: nowrap; }
  .tq-user-stats { gap: 12px; }
}

/* ---------- 一级/二级导航下拉（仿腾讯） ---------- */
.tq-nav-item-wrap { position: relative; height: 100%; display: flex; align-items: center; }
.tq-nav-item-wrap .tq-nav-item { position: relative; }
.tq-nav-item-wrap .tq-nav-item::after {                     /* 下拉箭头 */
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid rgba(255,255,255,.6);
  border-bottom: 1.5px solid rgba(255,255,255,.6);
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
}
.tq-nav-dropdown {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: #fff; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 10px; gap: 2px; min-width: 300px; z-index: 300;
  flex-wrap: wrap; justify-content: flex-start;
}
.tq-nav-item-wrap:hover .tq-nav-dropdown { display: flex; }
.tq-nav-dropdown::before {                 /* hover 连接桥，防止移出失焦 */
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.tq-nav-dropdown a {
  color: var(--tq-text2); font-size: 13px; padding: 6px 12px;
  border-radius: 4px; white-space: nowrap;
}
.tq-nav-dropdown a:hover { color: var(--tq-primary); background: #fff2ef; }
.tq-nav-dropdown a.tq-nav-drop-all { color: var(--tq-text); font-weight: 600; }
