/* ===== 全局样式 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #0e1117;
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
:root {
  --primary: #e84118;
  --accent: #f39c12;
  --dark-bg: #0e1117;
  --sidebar-bg: #151820;
  --card-bg: #1a1f2e;
  --border: #2a2f3e;
  --text: #e0e0e0;
  --text-muted: #888;
  --text-dim: #bbb;
  --radius: 8px;
  /* 三栏布局：左侧导航 / 主内容 / 右侧栏（随视口收窄侧栏，宽屏适度加宽、避免占满主区） */
  --sidebar-width: 190px;
  --aside-width: 290px;
}
/* ===== Font Awesome 4.7 compatibility =====
 * Some pages still use FA5/6 prefix classes like `fa-solid`/`fa-regular`/`fa-brands`/`fab`.
 * FA4 icon glyphs are bound to `fa-<icon>` classes, but the icon font settings are applied
 * to `.fa`. This block maps those prefixes back to the FontAwesome font.
 */
.fa-solid,
.fa-regular,
.fa-brands,
.fab,
.fas,
.far {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* ===== 顶部导航条 ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  background: #13161f;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  width: 180px;
  text-decoration: none;
}
.topbar-logo:visited {
  color: #fff;
}
.topbar-logo .dot {
  color: var(--primary);
}
.topbar-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: #1e2333;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 14px;
  gap: 8px;
}
.topbar-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 7px 0;
}
.topbar-search input::placeholder {
  color: var(--text-muted);
}
.topbar-search i {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}
.topbar-search .topbar-suggest-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.topbar-search .topbar-so-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #1e2333;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  max-height: min(40vh, 320px);
  overflow-y: auto;
}
.topbar-search .so-suggest-item {
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
}
.topbar-search .so-suggest-item:hover,
.topbar-search .so-suggest-item.is-active {
  background: rgba(232, 65, 24, 0.15);
  color: var(--primary);
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-right a {
  font-size: 13px;
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 16px;
  transition: all .2s;
  white-space: nowrap;
}
.topbar-right a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.topbar-right .btn-reg {
  background: var(--primary);
  color: #fff;
  padding: 5px 16px;
  border-radius: 16px;
}
.topbar-right .btn-reg:hover {
  background: #c0392b;
}
.topbar-right .avatar {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
}
/* ===== 整体布局 ===== */
.layout {
  display: flex;
  padding-top: 52px;
  min-height: 100vh;
}
/* ===== 左侧导航 ===== */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 12px 0;
  z-index: 90;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}
.nav-group {
  margin-bottom: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.nav-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-item > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}
.nav-item.active {
  color: #fff;
  background: rgba(232, 65, 24, .12);
  border-left-color: var(--primary);
  font-weight: 600;
}
.nav-item .badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}
.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 14px;
}
.nav-section-title {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 18px 4px;
  letter-spacing: .5px;
}
/* ===== 中间内容区 ===== */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  margin-right: var(--aside-width);
  padding: 20px 20px;
  min-width: 0;
  transition: margin .3s ease;
}
/* 全宽主内容：不占右侧栏（如 SVIP 落地页） */
.layout.layout--fullscreen-main .aside {
  display: none !important;
}
.layout.layout--fullscreen-main .main.main--fullscreen {
  margin-right: 20px;
  max-width: none;
}
/* ===== 右侧边栏 ===== */
.aside {
  width: var(--aside-width);
  flex-shrink: 0;
  position: fixed;
  top: 52px;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 16px 14px;
  border-left: 1px solid var(--border);
  background: var(--sidebar-bg);
  z-index: 90;
}
.aside::-webkit-scrollbar {
  width: 4px;
}
.aside::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}
/* 仅左侧栏可见时略缩窄，多给主内容 */
@media (max-width: 1200px) and (min-width: 901px) {
  :root {
    --sidebar-width: 168px;
  }
}
/* 三栏但总宽不宽裕：左右略收（1201–1440 常见笔记本外接屏等） */
@media (max-width: 1440px) and (min-width: 1201px) {
  :root {
    --sidebar-width: 172px;
    --aside-width: 258px;
  }
  .nav-item {
    padding: 8px 12px;
    font-size: 12px;
    gap: 8px;
  }
  .nav-section-title {
    padding-left: 12px;
    padding-right: 12px;
  }
  .nav-divider {
    margin-left: 10px;
    margin-right: 10px;
  }
  .aside {
    padding: 14px 10px;
  }
}
/* 宽屏适度加宽侧栏（较旧版 260/360、288/400 更克制，主区更宽） */
@media (min-width: 1441px) {
  :root {
    --sidebar-width: 220px;
    --aside-width: 300px;
  }
}
@media (min-width: 1800px) {
  :root {
    --sidebar-width: 244px;
    --aside-width: 328px;
  }
}
/* ===== Banner 轮播区域 ===== */
.banner-area {
  /* Grid：行高由左侧主 Banner 决定，右侧列自动拉满同高，两小张图之间用 gap 留空 */
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
  align-items: stretch;
}
.banner-main {
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a1f3c, #2d1b4e);
  /* 高度由内部 .banner-slider 的宽高比决定，避免写死像素 */
  min-height: 0;
}
.banner-slider {
  position: relative;
  width: 100%;
  /* 与 image/ad/1000*.png 素材一致：1920×960 → 2:1，避免与容器比例不符导致 cover 大幅裁切 */
  aspect-ratio: 2 / 1;
  height: auto;
  max-height: min(520px, 70vh);
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 0;
  pointer-events: none;
}
.banner-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.banner-slide a {
  display: block;
  height: 100%;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 比例略有不同时不变形；多出的部分从下方裁切，保留画面上方主体 */
  object-position: center top;
  display: block;
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .35);
  transition: background 0.2s, transform 0.2s;
}
.banner-dot:hover {
  background: rgba(255, 255, 255, .55);
}
.banner-dot.active {
  background: var(--primary);
  transform: scale(1.15);
}
.banner-main .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, .7) 40%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
}
.banner-main .tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}
.banner-main h2 {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
}
.banner-main p {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}
.banner-side {
  display: flex;
  flex-direction: column;
  /* 与左侧等高前提下，两图之间的空隙 */
  gap: 12px;
  min-width: 0;
  min-height: 0;
}
.banner-mini a {
  position: absolute;
  inset: 0;
  display: block;
}
.banner-mini {
  flex: 1 1 0;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #1e2333;
  position: relative;
}
.banner-mini > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.banner-mini > a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.banner-mini .label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  z-index: 1;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
/* ===== 区块头部 ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-header .title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.section-header .title i {
  color: rgba(255, 255, 255, 0.72);
}
.section-header .more {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color .2s;
}
.section-header .more:hover {
  color: var(--primary);
}
/* 左侧导航滚动锚点：与固定顶栏同高，避免标题被挡住 */
.section-header.section-header--top-anchor {
  scroll-margin-top: 52px;
}
/* 首页左侧锚点：所有首页栏目滚动时上方留出空间，避免被顶栏挡住 */
#home-featured-picks,
#home-ip-tools,
#home-network-resources,
#home-virtual-card,
#home-erp,
#self-tools-section,
#open-source-projects,
#home-ai-tools,
#home-cloud-phones {
  scroll-margin-top: 72px;
}
/* ===== 首页栏目大区域（section-header + rec-grid）=====
 * 给每个栏目一个“块状区域”，避免页面看起来过于散、同时不影响卡片布局。
 */
.home-section {
  padding: 18px 16px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin: 18px 0 22px;
}
.home-section .rec-grid {
  margin-bottom: 0;
}
/* ===== 推荐卡片（横向大卡，带图标） ===== */
.rec-grid {
  display: grid;
  /* 单卡最小宽度固定，列数随容器自动增减，避免窄屏挤压/溢出裁切 */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.rec-grid > * {
  min-width: 0;
}
.rec-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  z-index: 1;
}
.rec-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  z-index: 2000;
}
.rec-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}
.rec-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-card .info {
  flex: 1;
  min-width: 0;
}
.rec-card .rec-card-cover-link,
.rec-card .rec-card-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.rec-card .name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  margin-bottom: 4px;
}
.rec-card .desc {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.rec-card .tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  /* 防止 tags 过多导致 rec-card 高度变化，从而“顶动/错位”同排其他卡片 */
  max-height: 36px;
  overflow: hidden;
  min-width: 0;
  align-items: center;
}
.rec-card .tags .tag-pill {
  white-space: nowrap;
  flex: 0 0 auto;
}
.rec-tags-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  position: relative;
  padding-right: 30px;
}
.rec-card .tags.rec-tags-line {
  overflow: visible;
}
.rec-tags-wrap {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}
.rec-tags-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #d7dbe7;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3000;
  transition: all .2s ease;
}
.rec-tags-icon-link::before {
  content: ">";
  font-size: 11px;
  font-weight: 700;
}
.rec-tags-icon-link::after {
  content: "详情";
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  height: 24px;
  padding: 0 10px 0 14px;
  background: #fb0000;
  color: #fff;
  font-size: 12px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  z-index: 3001;
  transition: opacity .15s ease;
}
.rec-tags-icon-link:hover {
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.rec-tags-line:hover .rec-tags-icon-link {
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}
.rec-tags-icon-link:hover::after {
  opacity: 1;
}
.rec-tags-line:hover .rec-tags-icon-link::after {
  opacity: 1;
}
/* 历史版本：更新日志 URL 自动识别样式 */
.tk-auto-url-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.tk-auto-url {
  color: #fb0000;
  text-decoration: underline;
  word-break: break-all;
}
.tk-auto-url:hover {
  color: #ff3b3b;
}
.tk-auto-url-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #d7dbe7;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  flex: 0 0 auto;
}
.tk-auto-url-icon:hover {
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.resource-ver-btn.resource-ver-btn--disabled {
  opacity: .55;
  filter: grayscale(1);
  cursor: pointer;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
}
.resource-ver-btn.resource-ver-btn--disabled:hover {
  opacity: .75;
  filter: grayscale(.5);
}
.tk-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.tk-modal[aria-hidden="false"] {
  display: block;
}
.tk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.tk-modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  border-radius: 14px;
  background: rgba(20, 22, 29, .96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  overflow: hidden;
}
.tk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tk-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.tk-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.tk-modal-close:hover {
  background: rgba(255,255,255,.1);
}
.tk-modal-body {
  padding: 14px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}
.tk-modal-foot {
  padding: 12px 14px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.tk-modal-ok {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #fb0000;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.tk-modal-ok:hover {
  background: #ff2a2a;
}
body.tk-modal-open {
  overflow: hidden;
}
/* 首页“海外服务器”区块：单独放大卡片 */
.rec-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}
.rec-grid--large .rec-card {
  padding: 18px;
  gap: 14px;
}
.rec-grid--large .rec-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}
.rec-grid--large .rec-card .name {
  font-size: 15px;
  margin-bottom: 6px;
}
.rec-grid--large .rec-card .desc {
  font-size: 12px;
}
.rec-grid--large .rec-card .tags {
  margin-top: 8px;
}
/* 首页链接卡片区：统一只保留 2 行可见区域（不依赖每行列数） */
.rec-grid.rec-grid--max-2-rows:not(.rec-grid--large) {
  container-type: inline-size;
  container-name: home-rec-2row;
  grid-template-rows: repeat(2, auto);
  grid-auto-rows: 0;
  overflow: hidden;
  align-content: start;
}
.rec-grid.rec-grid--large.rec-grid--max-2-rows {
  container-type: inline-size;
  container-name: home-rec-2row-lg;
  grid-template-rows: repeat(2, auto);
  grid-auto-rows: 0;
  overflow: hidden;
  align-content: start;
}
/* 勿加 !important：否则会压过下方 @container 里的 display:none，零高网格行仍会画出卡片上边框 */
.rec-grid.rec-grid--max-2-rows > .rec-card {
  display: flex;
}
/* 默认 rec-grid：minmax(300px)+gap 12px → 1列<612，2列612–923，3列924–1235，4列≥1236 */
@container home-rec-2row (max-width: 611px) {
  .rec-grid.rec-grid--max-2-rows:not(.rec-grid--large) > .rec-card:nth-child(n + 3) {
    display: none;
  }
}
@container home-rec-2row (min-width: 612px) and (max-width: 923px) {
  .rec-grid.rec-grid--max-2-rows:not(.rec-grid--large) > .rec-card:nth-child(n + 5) {
    display: none;
  }
}
@container home-rec-2row (min-width: 924px) and (max-width: 1235px) {
  .rec-grid.rec-grid--max-2-rows:not(.rec-grid--large) > .rec-card:nth-child(n + 7) {
    display: none;
  }
}
@container home-rec-2row (min-width: 1236px) {
  .rec-grid.rec-grid--max-2-rows:not(.rec-grid--large) > .rec-card:nth-child(n + 9) {
    display: none;
  }
}
/* rec-grid--large：minmax(360px)+gap 14px → 1列<734，2列734–1107，3列1108–1481，4列≥1482 */
@container home-rec-2row-lg (max-width: 733px) {
  .rec-grid.rec-grid--large.rec-grid--max-2-rows > .rec-card:nth-child(n + 3) {
    display: none;
  }
}
@container home-rec-2row-lg (min-width: 734px) and (max-width: 1107px) {
  .rec-grid.rec-grid--large.rec-grid--max-2-rows > .rec-card:nth-child(n + 5) {
    display: none;
  }
}
@container home-rec-2row-lg (min-width: 1108px) and (max-width: 1481px) {
  .rec-grid.rec-grid--large.rec-grid--max-2-rows > .rec-card:nth-child(n + 7) {
    display: none;
  }
}
@container home-rec-2row-lg (min-width: 1482px) {
  .rec-grid.rec-grid--large.rec-grid--max-2-rows > .rec-card:nth-child(n + 9) {
    display: none;
  }
}
@supports not (container-type: inline-size) {
  .rec-grid.rec-grid--max-2-rows:not(.rec-grid--large) > .rec-card:nth-child(n + 5) {
    display: none;
  }
  .rec-grid.rec-grid--large.rec-grid--max-2-rows > .rec-card:nth-child(n + 5) {
    display: none;
  }
}
/* TikTok官方：≤900px 固定 3 列×2 行；优先级高于容器查询，避免窄容器误隐藏第 5–6 张 */
@media (max-width: 900px) {
  .rec-grid.rec-grid--sm-three-col.rec-grid--large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large > .rec-card:nth-child(-n + 6) {
    display: flex;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large > .rec-card:nth-child(n + 7) {
    display: none;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    gap: 8px;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-card .name {
    font-size: 12px;
    margin-bottom: 4px;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-card .desc {
    display: none;
  }
  /* 解除全局 .rec-card .tags 的 36px 限高，否则与纵向标签+按钮叠在一起 */
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-card .tags.rec-tags-line {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 0;
    min-height: auto;
    gap: 6px;
    margin-top: 4px;
    max-height: none;
    flex-wrap: wrap;
    white-space: normal;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-card .rec-tags-wrap {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 4px;
    overflow: visible;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-tags-icon-link {
    position: static;
    margin-top: 4px;
    flex-shrink: 0;
    align-self: center;
  }
}
/* TikTok官方：窄屏改 2 列×3 行，单卡更宽；需放开 max-2-rows 的 2 行裁切才能显示 6 张 */
@media (max-width: 768px) {
  .rec-grid.rec-grid--sm-three-col.rec-grid--large.rec-grid--max-2-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-rows: auto;
    overflow: visible;
    align-content: start;
    gap: 10px;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-card {
    padding: 12px 10px;
    gap: 10px;
  }
  .rec-grid.rec-grid--sm-three-col.rec-grid--large .rec-card .icon {
    width: 44px;
    height: 44px;
  }
}
.tag-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: #aaa;
}
.tag-pill.red {
  background: rgba(232, 65, 24, .2);
  color: #ff7675;
}
.tag-pill.yellow {
  background: rgba(243, 156, 18, .2);
  color: var(--accent);
}
.tag-pill.teal {
  background: rgba(39, 174, 96, .2);
  color: #55efc4;
}
.tag-pill.green {
  background: rgba(46, 204, 113, .2);
  color: #2ecc71;
}
.tag-pill.purple {
  background: rgba(142, 68, 173, .2);
  color: #a29bfe;
}
.tag-pill.blue {
  background: rgba(52, 152, 219, .2);
  color: #74b9ff;
}
.tag-pill.cyan {
  background: rgba(72, 219, 251, .2);
  color: #48dbfb;
}
.tag-pill.gray {
  background: rgba(255, 255, 255, .08);
  color: #dfe6e9;
}
/* ===== 海外服务器卡片 ===== */
.server-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.server-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}
.server-grid > * {
  min-width: 0;
}
.home-switch-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 12px 0 8px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  /* 分段器整体更“贴底”，减少悬浮感 */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  /* 窄屏时避免换行导致布局跳动 */
  overflow-x: auto;
}
.home-video-tools-showcase .home-switch-tabs {
  margin: 0;
}
.home-video-tools-showcase .section-header {
  justify-content: flex-start;
  gap: 16px;
}
.home-video-tools-showcase .home-video-more {
  margin-left: auto;
}
.home-video-tools-showcase .home-video-more-link {
  display: none;
  align-items: center;
  gap: 4px;
}
.home-video-tools-showcase .home-video-more-link.is-active {
  display: flex;
}
/* 移动端：首行只放标题 +「更多+」，Tab 单独一行全宽滚动（避免三栏同一行挤换行） */
@media (max-width: 768px) {
  .home-video-tools-showcase .section-header {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
    column-gap: 10px;
    min-width: 0;
  }
  /* DOM 顺序为 标题 → Tab → 更多，用 order 调成「标题 | 更多」同一行 */
  .home-video-tools-showcase .section-header .title {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .home-video-tools-showcase .home-switch-tabs {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
  }
  .home-video-tools-showcase .home-video-more {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
  }
  .home-video-tools-showcase .home-video-more-link.is-active {
    display: inline-flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
  }
}
.home-switch-tab {
  /* 更简约：降低高度、减少夸张的圆角“按钮感” */
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 13px;
  line-height: 1.0;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.home-switch-tab:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.home-switch-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 6px rgba(232, 65, 24, .35);
}
.home-switch-tab.is-active:hover {
  background: #f0552a;
  color: #fff;
}
.home-switch-tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .28);
  outline-offset: 2px;
}
/* 分段之间的“缝”：用极浅的内阴影，不走边框 */
.home-switch-tab + .home-switch-tab {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .05);
}
.rec-grid--switchable .rec-card {
  display: none;
}
.rec-grid--switchable .rec-card.is-active {
  /* 保持与站内其它 rec-card 一致（默认是 flex 布局） */
  display: flex;
}
.rec-grid--switchable .course-card {
  display: none;
}
.rec-grid--switchable .course-card.is-active {
  display: block;
}
.server-card {
  background: #171c29;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all .25s;
}
.server-card:hover {
  border-color: #555;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.server-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #2a2f58;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
}
.server-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.server-title {
  font-size: 13px;
  color: #f1f1f1;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.4;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.server-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 10px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.server-tags {
  display: flex;
  gap: 5px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  width: 100%;
  align-items: center;
}
.server-tags .tag-pill {
  flex: 0 0 auto;
}
.server-os {
  color: #6f7684;
  font-size: 13px;
}
/* ===== 视频课程卡片网格 ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.course-grid > * {
  min-width: 0;
}
.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
}
.course-card:hover {
  border-color: #555;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.course-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1e2333;
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.course-card:hover .course-thumb img {
  transform: scale(1.06);
}
.course-thumb .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.course-card:hover .play-btn {
  opacity: 1;
}
.play-btn i {
  width: 38px;
  height: 38px;
  background: rgba(232, 65, 24, .9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}
.course-thumb .corner-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.course-thumb .corner-badge.new {
  background: #27ae60;
}
.course-thumb .corner-badge.free {
  background: #8e44ad;
}
.course-body {
  padding: 10px 12px 12px;
}
.course-title {
  font-size: 12px;
  color: #ddd;
  font-weight: 500;
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.course-tags {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  margin-bottom: 6px;
}
.course-tags .tag-pill {
  flex: 0 0 auto;
}
.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.course-meta .views {
  display: flex;
  align-items: center;
  gap: 3px;
}
.course-meta .time {
  color: #666;
}
/* ===== 系列课程大块 ===== */
.series-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.series-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.series-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.series-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.series-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.series-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.series-more {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.series-more:hover {
  color: var(--primary);
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.series-grid > * {
  min-width: 0;
}
/* 独立站运营系列：让卡片在该区块内更“长/大”一点 */
.series-grid .course-card {
  border-radius: 12px;
}
.series-grid .course-thumb {
  aspect-ratio: 16/9;
}
.series-grid .course-body {
  padding: 12px 14px 14px;
}
.series-grid .course-title {
  font-size: 13px;
  height: 40px;
}
/* 首页「TK 全流程 / 店铺词典」等：大卡 + 父区域最多 2 行（多余卡片 display:none，不占位） */
.series-grid.series-grid--home-two-rows {
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.series-grid.series-grid--home-two-rows .course-thumb {
  aspect-ratio: 16/10;
}
.series-grid.series-grid--home-two-rows .course-body {
  padding: 16px 18px 18px;
}
.series-grid.series-grid--home-two-rows .course-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  height: auto;
  min-height: 46px;
  max-height: calc(1.45em * 2 + 2px);
}
.series-grid.series-grid--home-two-rows .course-meta {
  font-size: 13px;
}
.series-grid.series-grid--home-two-rows .play-btn i {
  width: 46px;
  height: 46px;
  font-size: 16px;
}
.series-grid.series-grid--home-two-rows .course-tags .tag-pill {
  font-size: 12px;
  padding: 3px 8px;
}
@media (min-width: 1700px) {
  .series-grid.series-grid--home-two-rows {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (min-width: 2100px) {
  .series-grid.series-grid--home-two-rows {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .series-grid.series-grid--home-two-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .series-grid.series-grid--home-two-rows .course-title {
    font-size: 15px;
    min-height: 44px;
    max-height: calc(1.45em * 2 + 2px);
  }
  .series-grid.series-grid--home-two-rows .course-thumb {
    aspect-ratio: 16/9;
  }
}
/* 最多 2 行：列数 × 2 = 可见条数，与 .series-grid--home-two-rows 的 grid-template-columns 断点一致 */
@media (min-width: 901px) and (max-width: 1699px) {
  .series-grid.series-grid--home-two-rows .course-card:nth-child(n + 7) {
    display: none;
  }
}
@media (min-width: 1700px) and (max-width: 2099px) {
  .series-grid.series-grid--home-two-rows .course-card:nth-child(n + 9) {
    display: none;
  }
}
@media (min-width: 2100px) {
  .series-grid.series-grid--home-two-rows .course-card:nth-child(n + 11) {
    display: none;
  }
}
@media (max-width: 900px) {
  .series-grid.series-grid--home-two-rows .course-card:nth-child(n + 5) {
    display: none;
  }
}
/* ===== 右侧边栏组件 ===== */
.aside-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.aside-block-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aside-block-title i {
  color: var(--primary);
  font-size: 12px;
}
/* 公告列表 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.notice-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color .2s;
}
.notice-item:last-child {
  border-bottom: none;
}
.notice-item:hover .notice-text {
  color: var(--primary);
}
.notice-num {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: #2a2f3e;
  border-radius: 4px;
  font-size: 11px;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.notice-num.hot {
  background: var(--primary);
  color: #fff;
}
.notice-num.hot2 {
  background: #c0392b;
  color: #fff;
}
.notice-num.hot3 {
  background: #8e44ad;
  color: #fff;
}
.notice-text {
  font-size: 12px;
  color: #bbb;
  line-height: 1.5;
  flex: 1;
}
.notice-date {
  font-size: 11px;
  color: #555;
  flex-shrink: 0;
  margin-top: 2px;
}
/* 汇率 */
.rate-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.rate-item:last-child {
  border-bottom: none;
}
.rate-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #bbb;
}
.rate-pair .flag {
  font-size: 14px;
}
.rate-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.rate-val.up {
  color: #e74c3c;
}
.rate-val.dn {
  color: #27ae60;
}
.rate-update {
  font-size: 11px;
  color: #555;
  text-align: right;
  margin-top: 6px;
}
/* 热门标签 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud .t {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #1e2333;
  border: 1px solid var(--border);
  color: #aaa;
  cursor: pointer;
  transition: all .2s;
}
.tag-cloud a.t {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.tag-cloud .t:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 65, 24, .08);
}
/* 活动入口 */
.event-card {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
}
.event-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}
.event-card .ev-label {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .7), transparent);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
/* ===== 滚动公告条 ===== */
.ticker {
  background: rgba(232, 65, 24, .12);
  border: 1px solid rgba(232, 65, 24, .25);
  border-radius: 6px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}
.ticker .label {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ticker .scroll-wrap {
  flex: 1;
  overflow: hidden;
}
.ticker-text {
  font-size: 12px;
  color: #e07070;
  white-space: nowrap;
  display: inline-block;
  animation: tickerMove 30s linear infinite;
}
/* 滚动公告：每条文案用一个链接，间距由 CSS 控制 */
.ticker-text .ticker-link {
  color: inherit; /* 继承公告颜色 */
  text-decoration: none; /* 保持原样不下划线 */
  display: inline-block;
}
.ticker-text .ticker-link:not(:last-child) {
  margin-right: 12px; /* 替代原来的 &nbsp;&nbsp;&nbsp; 间隔 */
}
@keyframes tickerMove {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
@media (max-width: 768px) {
  .ticker {
    display: none;
  }
}
/* ===== 响应式设计 - 平板电脑 ===== */
@media (max-width: 1200px) {
  .main {
    margin-right: 0;
  }
  .aside {
    display: none;
  }
  .server-section {
    padding: 14px;
  }
  .banner-area {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
  }
  .banner-main {
    min-height: 0;
  }
  .banner-slider {
    height: auto;
    aspect-ratio: 2 / 1;
    max-height: none;
  }
  .banner-side {
    min-height: 0;
  }
  .footer {
    padding: 40px 20px 28px calc(var(--sidebar-width) + 20px);
  }
}
/* ===== 响应式设计 - 小平板/大手机 ===== */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .footer {
    padding: 40px 20px 28px 20px;
  }
  .server-title {
    min-height: auto;
  }
  .banner-area {
    grid-template-columns: minmax(0, 1fr) 140px;
  }
  .banner-main {
    min-width: 0;
  }
  .banner-side {
    width: 100%;
    min-width: 0;
    min-height: 140px;
  }
  .topbar-logo {
    width: auto;
    font-size: 16px;
  }
  .topbar-search {
    max-width: 320px;
  }
}
/* 移动端：仅保留顶部主轮播，隐藏右侧/下方两张小广告 */
@media (max-width: 768px) {
  .banner-area {
    grid-template-columns: 1fr;
  }
  .banner-side {
    display: none;
  }
  /*
   * 首页各区块列表：单列 + 最多 3 行（3 张）。
   * 排除：TikTok 官方（sm-three-col 仍为 2×3）、可切换 Tab 网格（nth 会破坏面板逻辑）。
   */
  .main .home-section > .rec-grid:not(.rec-grid--sm-three-col):not(.rec-grid--switchable) {
    grid-template-columns: 1fr !important;
    grid-template-rows: none;
    grid-auto-rows: auto;
    overflow: visible;
  }
  .main .home-section > .rec-grid:not(.rec-grid--sm-three-col):not(.rec-grid--switchable) > .rec-card:nth-child(-n + 3) {
    display: flex !important;
  }
  .main .home-section > .rec-grid:not(.rec-grid--sm-three-col):not(.rec-grid--switchable) > .rec-card:nth-child(n + 4) {
    display: none !important;
  }
  /* series-block（TK 全流程 / 店铺词典）：移动端单列一行一张，可见数量与 ≤900px 时 2×2 一致（4 条） */
  .main .home-section > .series-grid.series-grid--home-two-rows,
  .main .series-block > .series-grid.series-grid--home-two-rows {
    grid-template-columns: 1fr !important;
  }
  .main .home-section > .series-grid.series-grid--home-two-rows > .course-card:nth-child(-n + 3) {
    display: block !important;
  }
  .main .home-section > .series-grid.series-grid--home-two-rows > .course-card:nth-child(n + 4) {
    display: none !important;
  }
  .main .series-block > .series-grid.series-grid--home-two-rows > .course-card:nth-child(-n + 4) {
    display: block !important;
  }
  .main .series-block > .series-grid.series-grid--home-two-rows > .course-card:nth-child(n + 5) {
    display: none !important;
  }
  .main .server-section > .server-grid {
    grid-template-columns: 1fr !important;
  }
  .main .server-section > .server-grid > .server-card:nth-child(-n + 3) {
    display: flex !important;
  }
  .main .server-section > .server-grid > .server-card:nth-child(n + 4) {
    display: none !important;
  }
  /* 视频剪辑 / 小白工具箱等 Tab 切换区：由 index.js 打上 home-switchable-cap-overflow，每面板只留 3 张 */
  .home-video-tools-showcase [data-video-panel].home-switchable-cap-overflow {
    display: none !important;
  }
  /* 该类区块内链接卡标题单行省略，避免长标题挤版 */
  .home-video-tools-showcase .rec-grid--switchable .rec-card .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-right .btn-reg {
    display: none;
  }
}
/* ===== 响应式设计 - 手机 ===== */
@media (max-width: 600px) {
  .rec-grid,
  .series-grid,
  .course-grid,
  .server-grid {
    gap: 10px;
  }
  .banner-area {
    grid-template-columns: 1fr;
  }
  .banner-main {
    width: 100%;
    min-height: 0;
  }
  .banner-slider {
    height: auto;
    aspect-ratio: 2 / 1;
    max-height: none;
  }
  .banner-main h2 {
    font-size: 16px;
  }
  .banner-main p {
    font-size: 11px;
  }
  .topbar {
    padding-left: 12px;
    padding-right: 18px;
    gap: 10px;
  }
  .topbar-logo {
    font-size: 15px;
  }
  .topbar-search {
    max-width: none;
    flex: 1;
    min-width: 0;
    /* 与右侧头像留出间距，搜索框相对缩短 */
    margin-right: 10px;
  }
  .topbar-right a {
    display: none;
  }
  .topbar-right .avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .main {
    padding: 12px;
  }
  .section-header .title {
    font-size: 14px;
  }
  .series-name {
    font-size: 14px;
  }
  .series-sub {
    font-size: 11px;
  }
  .course-title {
    font-size: 11px;
    height: 32px;
  }
  .aside-block {
    padding: 12px;
  }
  .notice-text {
    font-size: 11px;
  }
}
/* ===== 响应式设计 - 小屏手机 ===== */
@media (max-width: 400px) {
  .banner-side {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .banner-mini {
    height: 60px;
  }
  .topbar-logo span:last-child {
    display: none;
  }
  .topbar-search input {
    font-size: 12px;
  }
}
/* ===== 移动端汉堡菜单 ===== */
.mobile-menu-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(232, 65, 24, .4);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn i {
  color: #fff;
  font-size: 20px;
}
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }
}
/* ===== 移动端侧边栏 ===== */
.mobile-sidebar {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--sidebar-bg);
  z-index: 998;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: 12px 0;
}
.mobile-sidebar.active {
  transform: translateX(0);
}
@media (max-width: 900px) {
  .mobile-sidebar {
    display: block;
  }
}
/* ===== 遮罩层 ===== */
.overlay-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 997;
  opacity: 0;
  transition: opacity .3s ease;
}
.overlay-mask.active {
  display: block;
  opacity: 1;
}
/* ===== 页脚区域 ===== */
.footer {
  background: #0e1117;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  /* 与 .main 同步：左右为 fixed 侧栏预留空间，否则页脚会从视口左缘排版并被侧栏盖住 */
  padding: 40px calc(var(--aside-width) + 20px) 28px calc(var(--sidebar-width) + 20px);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* 固定四列等分，避免 auto-fit+大 min 把第 4 列挤到第二行却右侧留空 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 20px);
  row-gap: 20px;
  margin-bottom: 30px;
}
.footer-section {
  min-width: 0;
}
.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-section ul li a:hover {
  color: var(--primary);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo .dot {
  color: var(--primary);
}
.footer-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact span {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact span i {
  color: var(--primary);
  width: 16px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-bottom-inner .copyright {
  justify-content: flex-start;
}
.copyright {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  flex: 1;
  min-width: 0;
}
.company-info {
  color: var(--text-dim);
  margin-left: 0;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  color: var(--text-muted);
  font-size: 14px;
  transition: all .2s;
}
.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .footer-container {
    display: none;
  }
  /* 主区块已隐藏，.footer 已有 border-top，去掉 .footer-bottom 顶边避免双横线 */
  .footer-bottom {
    border-top: none;
    padding-top: 0;
  }
}
/* ===== 用户中心快捷入口 ===== */
.user-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 8px;
  transition: all .2s;
}
.user-menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}
.user-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 14px;
}
/* ===== 响应式 - 页脚 ===== */
@media (max-width: 900px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-inner .copyright {
    justify-content: center;
    text-align: center;
  }
  .company-info {
    display: block;
    width: 100%;
    margin-top: 4px;
  }
  .footer-social {
    margin-top: 6px;
  }
}
@media (max-width: 600px) {
  .footer {
    padding: 30px 15px max(18px, env(safe-area-inset-bottom, 0px));
  }
  .copyright {
    font-size: 11px;
  }
  .footer-social a {
    font-size: 12px;
    padding: 6px;
  }
}
/* ===== 课程中心页面 ===== */
.course-banner {
  background: linear-gradient(135deg, #1a1f2e 0%, #0e1117 100%);
  border-radius: 12px;
  padding: 40px 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.course-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 65, 24, .1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}
.course-banner-content {
  position: relative;
  z-index: 1;
}
.course-banner-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.course-banner-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.course-stats {
  display: flex;
  gap: 30px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}
.course-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sort-btn {
  background: rgba(232, 65, 24, .1);
  border: 1px solid rgba(232, 65, 24, .3);
  color: var(--primary);
}
.sort-btn:hover {
  background: rgba(232, 65, 24, .15);
  border-color: var(--primary);
}
.sort-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.course-section {
  margin-bottom: 32px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.course-grid > * {
  min-width: 0;
}
.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  border-color: var(--primary);
}
.course-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}
.course-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, .7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: all .3s;
}
.course-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
.corner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}
.corner-badge.free {
  background: #27ae60;
}
.corner-badge.new {
  background: #e84118;
}
.corner-badge.important {
  background: #c0392b;
}
.course-body {
  padding: 12px;
}
.course-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-tags {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  gap: 6px;
  margin-bottom: 8px;
}
.course-tags .tag-pill {
  flex: 0 0 auto;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.course-meta .views {
  display: flex;
  align-items: center;
  gap: 4px;
}
.course-meta .time {
  color: var(--text-dim);
}
@media (max-width: 768px) {
  .course-banner {
    padding: 24px 20px;
  }
  .course-banner-content h1 {
    font-size: 24px;
  }
  .course-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 22px;
  }
  .course-filters {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 576px) {
  .stat-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .stat-number {
    font-size: 18px;
  }
  .stat-label {
    font-size: 11px;
  }
}
/* ===== 系列课程页面 ===== */
.series-banner {
  background: linear-gradient(135deg, #1a1f2e 0%, #0e1117 100%);
  border-radius: 12px;
  padding: 40px 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.series-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 65, 24, .1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}
.series-banner-content {
  position: relative;
  z-index: 1;
  min-height: 170px; /* 统一栏目切换时 Banner 高度，减少视觉抖动 */
}
.series-icon-large {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 16px;
}
.series-banner-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.series-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
  min-height: calc(1.8em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.series-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  transition: all .3s;
}
.btn-primary:hover {
  background: #d6360f;
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  transition: all .3s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, .15);
  transform: translateY(-2px);
}
.series-course-list {
  margin-bottom: 32px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.filter-text {
  font-size: 13px;
  color: var(--text-muted);
}
.filter-btn-group {
  display: flex;
  gap: 8px;
}
.episode-num {
  background: rgba(232, 65, 24, .1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.course-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all .3s;
}
.course-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  border-color: var(--primary);
}
.course-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}
.course-item-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.duration,
.level {
  display: flex;
  align-items: center;
  gap: 4px;
}
.course-item-content {
  display: flex;
}
.course-item-thumb {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.course-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: all .3s;
}
.course-item-thumb:hover .play-indicator {
  opacity: 1;
}
.play-indicator i {
  font-size: 32px;
  margin-bottom: 8px;
}
.course-item-body {
  flex: 1;
  padding: 20px;
}
.course-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.course-item-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.course-item-lessons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  transition: all .2s;
  cursor: pointer;
}
.lesson-item:hover {
  background: rgba(255, 255, 255, .08);
}
.lesson-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232, 65, 24, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}
.lesson-info {
  flex: 1;
}
.lesson-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.lesson-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.lesson-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .2s;
}
.lesson-action:hover {
  background: var(--primary);
}
.status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.status.free {
  background: rgba(39, 174, 96, .2);
  color: #27ae60;
}
.status.important {
  background: rgba(192, 57, 43, .2);
  color: #c0392b;
}
.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.evaluation-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.evaluation-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.user-info {
  flex: 1;
}
.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.rating {
  color: var(--accent);
}
.evaluation-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
@media (max-width: 992px) {
  .evaluation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .evaluation-grid {
    grid-template-columns: 1fr;
  }
  .series-banner {
    padding: 24px 20px;
  }
  .series-banner-content {
    min-height: 150px;
  }
  .series-banner-content h1 {
    font-size: 24px;
  }
  .series-desc {
    min-height: calc(1.8em * 2);
  }
  .series-stats {
    gap: 20px;
  }
  .series-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .course-item-content {
    flex-direction: column;
  }
  .course-item-thumb {
    width: 100%;
    height: 200px;
  }
}
/* ===== 课程详情页面 ===== */
.lesson-banner {
  background: linear-gradient(135deg, #1a1f2e 0%, #0e1117 100%);
  border-radius: 12px;
  padding: 30px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.lesson-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(232, 65, 24, .1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(20%, -20%);
}
.lesson-banner-content {
  position: relative;
  z-index: 1;
}
.lesson-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lesson-breadcrumb a {
  color: var(--text-muted);
  transition: color .2s;
}
.lesson-breadcrumb a:hover {
  color: var(--primary);
}
.lesson-banner-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.lesson-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}
.lesson-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.lesson-player {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
/* 播放区：宽 100% 占满卡片内容区，高按 16:9 随宽度自动计算（iframe / video 铺满容器）。
   勿用 padding-bottom% 做比例：其百分比相对父级宽度，子块变窄时会被撑高。 */
.player-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.player-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.player-video video.tk-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 保持原始比例，避免 16:9 容器拉伸变形 */
  border: none;
}
.player-video iframe~.video-controls {
  display: none;
}
.player-video video.tk-video-player~.video-controls {
  display: none;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.video-card .section-header {
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: all .3s;
}
.play-overlay:hover {
  background: rgba(0, 0, 0, .6);
}
.play-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 65, 24, .4);
  transition: all .3s;
  margin-bottom: 12px;
}
.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(232, 65, 24, .6);
}
.play-overlay span {
  color: #fff;
  font-size: 14px;
}
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
}
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
}
.progress-current,
.progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: width .3s;
}
.progress-current {
  background: var(--primary);
}
.progress-buffer {
  background: rgba(255, 255, 255, .3);
  width: 0;
}
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.control-left,
.control-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.control-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
}
.control-btn:hover {
  color: var(--primary);
}
.time-display {
  color: #fff;
  font-size: 12px;
}
.volume-slider {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, .3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.volume-current {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  border-radius: 2px;
}
.lesson-actions {
  display: flex;
  gap: 12px;
}
.action-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.action-btn.active {
  background: rgba(232, 65, 24, .1);
  border-color: var(--primary);
  color: var(--primary);
}
.lesson-intro {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.rich-content {
  color: var(--text);
  font-size: 14px;
  line-height: 2.15;
}
.rich-content p {
  margin: 0 0 14px;
  color: var(--text);
}
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  color: #fff;
  line-height: 1.35;
  margin: 18px 0 10px;
}
.rich-content h1 { font-size: 20px; }
.rich-content h2 { font-size: 18px; }
.rich-content h3 { font-size: 16px; }
.rich-content h4 { font-size: 15px; }
.rich-content a {
  color: #ffb199;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-content a:hover {
  color: #fff;
}
.rich-content ul,
.rich-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.rich-content li {
  margin: 6px 0;
}
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(232, 65, 24, .7);
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  color: #cfcfcf;
}
.rich-content strong,
.rich-content b {
  color: var(--primary);
  font-weight: 700;
}
.rich-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}
.rich-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 12px 0;
}
.rich-content code {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
}
.rich-content pre {
  background: #0b0f16;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  overflow: auto;
  margin: 14px 0;
}
.rich-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #e6e6e6;
}
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.rich-content th,
.rich-content td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.rich-content th {
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-weight: 700;
}
.rich-content tr:last-child td {
  border-bottom: none;
}
.intro-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 16px 0 8px;
}
.intro-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 2.15;
  margin-bottom: 12px;
}
.target-audience,
.learning-objectives,
.lesson-outline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.target-audience li,
.learning-objectives li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.target-audience li i,
.learning-objectives li i {
  color: var(--primary);
  margin-top: 2px;
}
.outline-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  margin-bottom: 8px;
}
.outline-number {
  color: var(--primary);
  font-weight: 700;
}
.outline-text {
  color: var(--text);
  font-size: 14px;
}
.lesson-instructor {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.instructor-card {
  display: flex;
  gap: 20px;
}
.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instructor-info {
  flex: 1;
}
.instructor-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.instructor-title {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 8px;
}
.instructor-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.instructor-stats {
  display: flex;
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.related-lessons {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.35) 0%, rgba(15, 23, 42, 0.2) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  margin-bottom: 24px;
}
.course-grid-small {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.course-card-small {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}
.course-card-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.course-thumb-small {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding-top: 0;
  overflow: hidden;
}
.course-thumb-small img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, .7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.course-body-small {
  padding: 12px;
}
.course-title-small {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-meta-small {
  font-size: 12px;
  color: var(--text-muted);
}
.series-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.series-lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}
.series-lesson-item:hover {
  background: rgba(255, 255, 255, .06);
}
.series-lesson-item.active {
  background: rgba(232, 65, 24, .15);
  border: 1px solid var(--primary);
}
.lesson-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.lesson-info {
  flex: 1;
}
.lesson-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.lesson-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.share-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  transition: all .2s;
}
.share-btn:hover {
  background: rgba(255, 255, 255, .1);
}
.course-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-label {
  font-size: 13px;
  color: var(--text-muted);
}
.info-value {
  font-size: 13px;
  color: var(--text);
}
@media (max-width: 768px) {
  .instructor-card {
    flex-direction: column;
  }
  .instructor-avatar {
    width: 60px;
    height: 60px;
  }
  .course-grid-small {
    grid-template-columns: repeat(2, 1fr);
  }
  .lesson-banner {
    padding: 20px 16px;
  }
  .lesson-banner-content h1 {
    font-size: 20px;
  }
  .lesson-meta {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 576px) {
  .course-grid-small {
    grid-template-columns: 1fr;
  }
  .instructor-stats {
    flex-direction: column;
    gap: 10px;
  }
}
/* ===== 新闻列表页面 ===== */
.section-header {
  margin-bottom: 24px;
}
.section-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}
.news-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.filter-search {
  display: flex;
  gap: 8px;
}
.filter-search input {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  width: 200px;
}
.search-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
}
.search-btn:hover {
  background: #d6360f;
}
.news-list {
  margin-bottom: 32px;
}
.news-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all .3s;
}
.news-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.news-thumb {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}
.news-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform .3s;
}
.news-item:hover .news-thumb img {
  transform: scale(1.05);
}
.news-content {
  flex: 1;
}
.news-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.news-category {
  background: rgba(232, 65, 24, .1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.news-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-title a {
  color: #fff;
  transition: color .2s;
}
.news-title a:hover {
  color: var(--primary);
}
.news-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.page-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
}
.page-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-btn.disabled {
  opacity: .5;
  cursor: not-allowed;
}
/* 右侧边栏样式 */
.sidebar-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.hot-news {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hot-news li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.hot-news li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.hot-news li a {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-news li a:hover {
  color: var(--primary);
}
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list li {
  margin-bottom: 8px;
}
.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text);
  transition: color .2s;
}
.category-list li a:hover {
  color: var(--primary);
}
.category-list li a span {
  background: rgba(255, 255, 255, .1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.subscribe-form input {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
}
.subscribe-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.subscribe-btn:hover {
  background: #d6360f;
}
.subscribe-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
/* ===== 新闻详情页面 ===== */
.news-detail {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.news-detail .news-title {
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.news-summary {
  background: rgba(232, 65, 24, .05);
  border-left: 4px solid var(--primary);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.news-content {
  margin-bottom: 32px;
}
.news-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.news-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 12px;
}
.news-content p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.news-content ul,
.news-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.news-content li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 8px;
}
.news-content strong {
  color: #fff;
  font-weight: 600;
}
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.news-tags span {
  font-size: 13px;
  color: var(--text-muted);
}
.news-tags a {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  transition: all .2s;
}
.news-tags a:hover {
  background: var(--primary);
  color: #fff;
}
.news-share-section {
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
}
.news-share-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-buttons .share-btn {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-buttons .share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.author-info {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  margin-bottom: 32px;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-details {
  flex: 1;
}
.author-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.author-title {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 8px;
}
.author-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.follow-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.follow-btn:hover {
  background: #d6360f;
}
.related-news {
  margin-bottom: 32px;
}
.related-news h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.related-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-news-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  transition: all .2s;
  cursor: pointer;
}
.related-news-item:hover {
  background: rgba(255, 255, 255, .06);
}
.related-news-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.related-news-content {
  flex: 1;
}
.related-news-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-news-date {
  font-size: 11px;
  color: var(--text-muted);
}
/* 响应式设计 */
@media (max-width: 768px) {
  .news-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-search input {
    width: 100%;
  }
  .news-item {
    flex-direction: column;
  }
  .news-thumb {
    width: 100%;
  }
  .news-thumb img {
    height: 200px;
  }
  .news-detail {
    padding: 20px;
  }
  .news-detail .news-title {
    font-size: 20px;
  }
  .news-meta {
    flex-direction: column;
    gap: 8px;
  }
  .author-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .related-news-item {
    flex-direction: column;
  }
  .related-news-item img {
    width: 100%;
    height: 120px;
  }
}
@media (max-width: 576px) {
  .section-header h1 {
    font-size: 24px;
  }
  .news-detail {
    padding: 16px;
  }
  .news-detail .news-title {
    font-size: 18px;
  }
  .news-content h2 {
    font-size: 18px;
  }
  .news-content h3 {
    font-size: 15px;
  }
}
/* ===== 资源列表页 ResourceList.php（深色主题，与全站 body 背景统一） ===== */
.resource-page {
  position: relative;
  border-radius: 14px;
  padding: 22px 22px 30px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(26, 31, 46, .97) 0%, rgba(18, 21, 28, .98) 42%, rgba(14, 17, 23, 1) 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    0 24px 48px rgba(0, 0, 0, .35);
}
/* 顶部微亮边 + 主色氛围光 */
.resource-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(232, 65, 24, .22), transparent) top / 100% 1px no-repeat,
    radial-gradient(ellipse 85% 55% at 50% -15%, rgba(232, 65, 24, .14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 30%, rgba(52, 152, 219, .07), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 70%, rgba(142, 68, 173, .06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 95%, rgba(232, 65, 24, .05), transparent 50%);
}
/* 细网格，增加层次（不抢眼） */
.resource-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .35) 100%);
}
.resource-page > * {
  position: relative;
  z-index: 1;
}
.resource-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.resource-breadcrumb a {
  color: var(--text-dim);
  transition: color .2s;
}
.resource-breadcrumb a:hover {
  color: var(--primary);
}
.resource-toolbar {
  border-radius: 12px;
  padding: 16px 18px 14px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(30, 35, 50, .75) 0%, rgba(22, 26, 36, .92) 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .resource-toolbar {
    background: rgba(26, 31, 46, .96);
  }
}
.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.resource-tabs a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.resource-tabs a:hover {
  color: #fff;
}
.resource-tabs a.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
  text-shadow: 0 0 20px rgba(232, 65, 24, .35);
}
.resource-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.resource-sort .label {
  color: var(--text-muted);
  margin-right: 2px;
}
.resource-sort a {
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.resource-sort a:hover {
  background: rgba(232, 65, 24, .12);
  color: #fff;
}
.resource-sort a.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(232, 65, 24, .1);
}
.resource-sort .sep {
  color: rgba(255, 255, 255, .15);
  user-select: none;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(165deg, rgba(28, 33, 48, .95) 0%, rgba(20, 24, 35, .98) 100%);
  border-radius: 12px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  color: var(--text);
  text-decoration: none;
  min-height: 100%;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 65, 24, .35);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(232, 65, 24, .12);
}
.resource-card-stats {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 8px;
  max-width: 58%;
  font-size: 10px;
  color: var(--text-muted);
}
.resource-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.resource-card-stats i {
  font-size: 9px;
  opacity: .75;
}
.resource-card-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(145deg, #252d45, #1a2238);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
}
.resource-card:hover .resource-card-icon {
  box-shadow:
    0 6px 20px rgba(232, 65, 24, .15),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}
.resource-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-card-icon .fallback {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.resource-card-icon .fallback em {
  font-style: normal;
  color: #f1c40f;
}
.resource-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #f0f2f5;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 6px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 10px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
  max-height: 52px;
  overflow: hidden;
}
.resource-card-tags .tag-pill.red {
  background: linear-gradient(135deg, #e84118, #c0392b);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(232, 65, 24, .25);
}
.resource-card-tags .tag-pill.red i {
  font-size: 9px;
  opacity: .95;
}
.resource-tag-hash {
  background: rgba(255, 255, 255, .07) !important;
  color: var(--text-dim) !important;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .05);
}
.resource-card-os {
  margin-top: auto;
  padding-top: 6px;
  color: rgba(255, 255, 255, .22);
  font-size: 16px;
}
.resource-card:hover .resource-card-os {
  color: rgba(255, 255, 255, .38);
}
.resource-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, .12);
}
.resource-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.resource-pagination a,
.resource-pagination span {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .04);
  transition: border-color .2s, color .2s, background .2s;
}
.resource-pagination a:hover {
  border-color: rgba(232, 65, 24, .45);
  color: var(--primary);
  background: rgba(232, 65, 24, .08);
}
.resource-pagination span.current {
  background: linear-gradient(135deg, var(--primary), #c0392b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(232, 65, 24, .35);
}
/* ===== 资源详情 Resource.php（参考应用详情：左图右信息 + 下载 + 正文） ===== */
.resource-detail {
  margin-bottom: 24px;
}
.resource-detail-banner {
  margin-bottom: 20px;
}
.resource-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.resource-detail-bc-sep {
  color: rgba(255, 255, 255, .25);
  user-select: none;
}
.resource-detail-h1 {
  font-size: 26px;
  line-height: 1.35;
}
.resource-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 8px;
}
.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text-dim);
}
.resource-badge--hot {
  color: #ffb38a;
  border-color: rgba(232, 65, 24, .35);
  background: rgba(232, 65, 24, .12);
}
.resource-badge--muted {
  opacity: .85;
}
.resource-detail-lead {
  margin-bottom: 0 !important;
}
.resource-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}
.resource-detail-cover-wrap {
  min-width: 0;
}
.resource-detail-cover {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}
.resource-detail-cover img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  max-height: 420px;
  object-fit: contain;
  background: #0a0c10;
}
.resource-detail-side {
  background: linear-gradient(180deg, rgba(26, 31, 46, .9) 0%, rgba(18, 21, 28, .95) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.resource-detail-dl {
  margin: 0 0 16px;
}
.resource-detail-dl-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px;
  align-items: start;
}
.resource-detail-dl-row:last-of-type {
  border-bottom: none;
}
.resource-detail-dl dt {
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}
.resource-detail-dl dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}
.resource-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.resource-detail-tags .tag-pill.gray {
  background: rgba(255, 255, 255, .08);
  color: var(--text-dim);
}
.resource-detail-muted {
  color: var(--text-muted);
}
.resource-detail-download {
  margin-top: 4px;
}
.resource-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #c0392b);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(232, 65, 24, .35);
  transition: transform .2s, box-shadow .2s;
}
.resource-detail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(232, 65, 24, .45);
  color: #fff;
}
.resource-detail-btn--disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.resource-detail-btn--ghost {
  display: inline-flex;
  width: auto;
  padding: 10px 18px;
  margin-top: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  box-shadow: none;
}
.resource-detail-btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.resource-detail-download-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}
.resource-detail-article {
  margin-top: 8px;
}
.resource-detail-related {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.resource-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.resource-detail-mini {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.resource-detail-mini:hover {
  border-color: rgba(232, 65, 24, .35);
  transform: translateY(-2px);
}
.resource-detail-mini-cover {
  aspect-ratio: 16 / 10;
  background: #0a0c10;
  overflow: hidden;
}
.resource-detail-mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-detail-mini-title {
  font-size: 12px;
  padding: 8px 10px;
  line-height: 1.4;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .resource-detail-grid {
    grid-template-columns: 1fr;
  }
  .resource-detail-side {
    order: 2;
  }
  .resource-detail-cover-wrap {
    order: 1;
  }
}
@media (max-width: 1200px) {
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-tabs {
    gap: 6px 14px;
  }
}
/* ===== SVIP 会员介绍页 Svip.php（对齐参考排版 · 本项目深色） ===== */
.svip-hero-band {
  text-align: center;
  padding: 18px 12px 22px;
  margin: 0 -6px 18px;
  position: relative;
  z-index: 1;
  /* 轻微花瓣氛围（不占全页 background，避免盖住 resource-page 渐变） */
  background-image:
    radial-gradient(ellipse 120px 55px at 12% 30%, rgba(255, 182, 193, 0.07), transparent),
    radial-gradient(ellipse 100px 48px at 90% 15%, rgba(255, 192, 203, 0.055), transparent);
}
.svip-hero-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.svip-hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 28px;
  max-width: 640px;
  line-height: 1.6;
}
.svip-hero-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  text-align: left;
}
.svip-hero-card-top {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  padding: 22px 24px 20px;
  text-align: center;
  line-height: 1.65;
}
.svip-hero-card-top p {
  margin: 0 0 8px;
  font-size: 14px;
}
.svip-hero-card-top p:last-child {
  margin-bottom: 0;
  color: var(--text-dim);
  font-size: 13px;
}
.svip-hero-divider {
  height: 0;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  margin: 0;
}
.svip-hero-card-bottom {
  background: rgba(10, 12, 18, 0.55);
  padding: 20px 22px 22px;
}
.svip-hero-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 2px solid rgba(241, 196, 18, 0.85);
  background: rgba(241, 196, 18, 0.06);
  box-shadow: inset 0 0 0 1px rgba(241, 196, 18, 0.12);
}
.svip-hero-highlight > .fa-diamond {
  color: #f1c40f;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 8px rgba(241, 196, 18, 0.35));
}
.svip-hero-highlight-text p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #ffeaa7;
  text-align: left;
}
.svip-hero-highlight-text p:last-child {
  margin-bottom: 0;
  color: #fdcb6e;
}
.svip-features-block {
  max-width: 920px;
  margin: 36px auto 0;
  padding: 0 4px 8px;
  position: relative;
  z-index: 1;
}
/* SVIP 全宽主栏：顶部标题区 + 主卡片与下方权益列表同宽铺满 */
.main--fullscreen .svip-hero-band {
  width: 100%;
  margin: 0 0 12px;
  padding: 6px 0 8px;
  box-sizing: border-box;
}
.main--fullscreen .svip-hero-card {
  max-width: none;
  width: 100%;
  margin: 0;
}
.main--fullscreen .svip-hero-sub {
  max-width: min(920px, 100%);
  padding: 0 8px;
}
.main--fullscreen .svip-hero-card-top {
  padding: 22px clamp(16px, 4vw, 48px) 20px;
}
.main--fullscreen .svip-hero-card-bottom {
  padding: 20px clamp(16px, 4vw, 48px) 22px;
}
.main--fullscreen .svip-hero-highlight {
  max-width: none;
}
.main--fullscreen .svip-features-block {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.main--fullscreen .svip-feature-row {
  grid-template-columns: minmax(168px, 300px) minmax(0, 1fr);
  gap: 22px 36px;
  align-items: center;
}
.main--fullscreen .svip-pricing-grid {
  max-width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.svip-feature-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
  margin-bottom: 24px;
}
.svip-feature-row:last-child {
  margin-bottom: 0;
}
.svip-feature-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #2a3148 0%, #1a1f2e 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 20px;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.main--fullscreen .svip-feature-tag {
  padding: 16px 22px;
  min-height: 58px;
  font-size: 14px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.svip-feature-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
  padding-top: 0;
  margin: 0;
}
.svip-hero-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.svip-hero-note a {
  color: var(--text-dim);
}
.svip-hero-note a:hover {
  color: var(--primary);
}
.svip-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 12px;
}
.svip-price-card {
  background: linear-gradient(155deg, rgba(40, 35, 28, .9) 0%, rgba(26, 22, 18, .95) 100%);
  border: 1px solid rgba(241, 196, 18, .22);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svip-price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 196, 18, .35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.svip-price-card .name {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.svip-price-card .price {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.svip-price-card .hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.svip-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.svip-pillar {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
}
.svip-pillar h3 {
  font-size: 14px;
  color: #fff;
  margin: 0 0 8px;
}
.svip-pillar p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.svip-team-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.svip-wechat-hint {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(232, 65, 24, .08);
  border: 1px dashed rgba(232, 65, 24, .35);
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}
/* ===== SVIP 新增“大气”模块（CTA / 数据） ===== */
.svip-hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.svip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  box-sizing: border-box;
}
.svip-btn:hover {
  transform: translateY(-2px);
}
.svip-btn--primary {
  background: linear-gradient(135deg, rgba(52, 152, 219, .95) 0%, rgba(41, 128, 185, .95) 100%);
  border-color: rgba(52, 152, 219, .6);
  color: #fff;
  box-shadow: 0 10px 30px rgba(41, 128, 185, .25);
}
.svip-btn--ghost {
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .92);
}
.svip-badges-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.svip-badge {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
}
.svip-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0 6px;
}
.svip-stat-card {
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
}
.svip-stat-number {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 6px;
}
.svip-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
/* 交付流程 / 权益清单 / FAQ / 底部 CTA */
.svip-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.svip-step-card {
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  overflow: hidden;
}
.svip-step-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(220px 120px at 20% 10%, rgba(52, 152, 219, .18), transparent),
    radial-gradient(200px 120px at 90% 0%, rgba(241, 196, 18, .16), transparent);
  opacity: .9;
  pointer-events: none;
}
.svip-step-inner {
  position: relative;
  z-index: 1;
}
.svip-step-no {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  color: rgba(52, 152, 219, .95);
  margin-bottom: 8px;
}
.svip-step-title {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}
.svip-step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.svip-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.svip-checklist-card {
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
}
.svip-checklist-title {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}
.svip-checklist {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.svip-checklist li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.svip-checklist li i {
  color: rgba(241, 196, 18, .95);
  margin-top: 2px;
}
.svip-faq {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.svip-faq-item {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  overflow: hidden;
}
.svip-faq-item details > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: #fff;
  list-style: none;
}
.svip-faq-item details > summary::-webkit-details-marker {
  display: none;
}
.svip-faq-item details > summary::after {
  content: "+";
  float: right;
  color: rgba(255, 255, 255, .7);
  font-weight: 900;
}
.svip-faq-item details[open] > summary::after {
  content: "–";
}
.svip-faq-answer {
  padding: 0 16px 14px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}
.svip-final-cta {
  margin-top: 26px;
  padding: 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(52, 152, 219, .25);
  background:
    radial-gradient(1200px 260px at 10% 0%, rgba(52, 152, 219, .18), transparent),
    radial-gradient(900px 240px at 90% 10%, rgba(241, 196, 18, .16), transparent),
    rgba(255, 255, 255, .02);
}
.svip-final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.svip-final-cta-title {
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .svip-hero-card {
    border-radius: 12px;
  }
  .svip-feature-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .main--fullscreen .svip-feature-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .svip-feature-tag {
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
    min-height: 48px;
  }
  .main--fullscreen .svip-feature-tag {
    min-height: 50px;
    padding: 14px 18px;
  }
  .svip-hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .svip-btn {
    width: 100%;
  }
}
/* ===== TK 评论与评分（Links / Resource / News / videos 详情共用，见 public/tk_comments_section.php） ===== */
.tk-cmt-flash {
  margin: 10px 0 0;
  color: #8ee28e;
  font-size: 14px;
}
.news-detail .tk-cmt-flash {
  margin: 0 0 12px;
}
.links-review-block {
  margin-top: 16px;
}
.news-detail .links-review-block.tk-cmt-section {
  margin-top: 28px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.tk-cmt-section .section-header .title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tk-cmt-rating-readout {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}
.tk-cmt-rating-readout strong {
  color: rgba(255, 255, 255, 0.9);
}
.tk-cmt-count {
  font-weight: 600;
  opacity: 0.88;
  font-size: 0.92em;
}
.tk-cmt-upgrade-notice {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  gap: 10px;
  line-height: 1.7;
}
.tk-cmt-upgrade-notice i {
  color: rgba(255, 204, 77, 0.95);
  margin-top: 3px;
  flex: 0 0 auto;
}
.tk-cmt-avatar-placeholder {
  opacity: 0.42;
  font-size: 18px;
  line-height: 1.1;
}
.links-review-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .links-review-grid {
    grid-template-columns: 1fr;
  }
}
.links-review-card {
  background: rgba(26, 31, 46, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  height: 100%;
}
.links-review-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.links-review-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.links-review-score .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #f7f2e8;
}
.links-review-score .den {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}
.links-review-stars {
  display: inline-flex;
  gap: 4px;
  color: rgba(255, 255, 255, 0.18);
}
.links-review-stars i.on {
  color: #ffcc4d;
  text-shadow: 0 6px 18px rgba(255, 204, 77, 0.18);
}
.links-review-badges {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.links-review-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.links-review-bars {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.links-review-bar {
  display: grid;
  grid-template-columns: 56px 1fr 44px;
  gap: 10px;
  align-items: center;
}
.links-review-bar .lab {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}
.links-review-bar .pct {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-align: right;
}
.links-review-bar .track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.links-review-bar .fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 204, 77, 0.95), rgba(250, 156, 50, 0.95));
}
.tk-cmt-bar-fill {
  transition: width 760ms cubic-bezier(0.22, 0.8, 0.2, 1);
}
.tk-cmt-bar-fill--5 {
  width: 74%;
}
.tk-cmt-bar-fill--4 {
  width: 18%;
  opacity: 0.9;
}
.tk-cmt-bar-fill--3 {
  width: 6%;
  opacity: 0.8;
}
.tk-cmt-bar-fill--2 {
  width: 1.5%;
  opacity: 0.7;
}
.tk-cmt-bar-fill--1 {
  width: 0.5%;
  opacity: 0.65;
}
.links-review-form .hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin: 6px 0 10px;
}
.links-review-form label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 10px 0 6px;
}
.links-review-form label:first-of-type {
  margin-top: 0;
}
.links-review-form.is-disabled {
  opacity: 0.78;
}
.links-review-input,
.links-review-textarea,
.links-review-select {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  outline: none;
  box-sizing: border-box;
}
.links-review-input::placeholder,
.links-review-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.links-review-textarea {
  min-height: 110px;
  resize: vertical;
}
.links-review-ratepick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.links-review-rate-stars {
  display: inline-flex;
  gap: 6px;
  user-select: none;
}
.links-review-rate-stars button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.25);
  width: 40px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* 详情页表单内五星：更紧凑，少占横向空间 */
.links-review-rate-stars.tk-cmt-rate-stars--compact {
  gap: 2px;
}
.links-review-rate-stars.tk-cmt-rate-stars--compact button {
  width: 22px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 0;
}
.links-review-rate-stars.tk-cmt-rate-stars--compact button i.fa {
  font-size: 10px;
  line-height: 1;
}
.links-review-rate-stars.tk-cmt-rate-stars--compact button:hover {
  transform: translateY(-1px);
  background: transparent;
  border-color: transparent;
}
.links-review-rate-stars.tk-cmt-rate-stars--compact button:focus-visible {
  outline: 2px solid rgba(255, 204, 77, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}
.links-review-rate-stars button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}
.links-review-rate-stars button.on {
  color: #ffcc4d;
  background: rgba(255, 204, 77, 0.08);
  border-color: rgba(255, 204, 77, 0.35);
}
.links-review-rate-stars.tk-cmt-rate-stars--compact button.on {
  background: transparent;
  border-color: transparent;
}
.links-review-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
/* 右侧表单卡片：让按钮区靠底部，视觉更齐 */
.tk-cmt-section .links-review-form {
  display: flex;
  flex-direction: column;
}
.tk-cmt-section .links-review-actions {
  margin-top: auto;
}
.tk-cmt-section .tk-cmt-form-footer-hint {
  margin-top: 10px;
}
.tk-cmt-form-footer-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.links-review-btn {
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.15;
}
.links-review-btn.primary {
  border-color: rgba(92, 123, 217, 0.55);
  background: rgba(92, 123, 217, 0.45);
  color: #fff;
  font-weight: 600;
}
.links-review-btn.primary:hover {
  background: rgba(92, 123, 217, 0.55);
}
.links-review-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.links-review-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.links-review-item.is-collapsed-by-default {
  display: none;
}
.links-review-item.tk-cmt-item-enter {
  animation: tkCmtItemEnter 260ms ease-out both;
}
@keyframes tkCmtItemEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.links-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 204, 77, 0.25), rgba(92, 123, 217, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.links-review-item .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.links-review-item .who {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.links-review-item .time {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.links-review-item .tk-cmt-item-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}
.links-review-item .tk-cmt-item-stars .fa {
  font-size: 11px;
  line-height: 1;
}
.links-review-item .text {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}
.tk-cmt-extra-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.tk-cmt-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s;
}
.tk-cmt-like:hover {
  color: #ffcc4d;
}
.tk-cmt-more-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.tk-cmt-more-btn {
  min-width: 132px;
}
.links-related-rec-grid {
  margin-top: 12px;
}
.links-related-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  color: #888;
  text-align: center;
}
@media (max-width: 768px) {
  .news-detail .links-review-item {
    grid-template-columns: 40px 1fr;
  }
}