/* 前台主题：极简搜索站风格（浅色） */
:root {
  --bg: #ffffff;
  --bg-card: #f8f9fa;
  --bg-hover: #f1f3f4;
  --border: #e6e8eb;
  --border-strong: #dfe1e5;
  --text: #1f2328;
  --text-dim: #6e7781;
  --text-mute: #8b949e;
  --accent: #1a73e8;
  --accent-dark: #1557b0;
  --accent-soft: #e8f0fe;
  --danger: #d93025;
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1000px 480px at 80px -120px, rgba(255, 205, 214, 0.55), transparent 62%),
    radial-gradient(1000px 480px at 1200px -120px, rgba(185, 220, 250, 0.5), transparent 62%),
    radial-gradient(900px 420px at 640px -40px, rgba(205, 232, 205, 0.4), transparent 65%),
    #ffffff;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  height: 56px; padding: 0 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(230, 232, 235, 0.7);
}
.nav .logo { font-size: 17px; font-weight: 700; letter-spacing: 0.3px; display: flex; align-items: center; gap: 8px; }
.nav .logo::before {
  content: ""; width: 16px; height: 16px; border-radius: 4px;
  background: var(--accent); display: inline-block;
}
/* 后台上传/配置 Logo 后，用图片替代默认色块 */
.nav .logo .logo-img {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  vertical-align: -7px; margin-right: 1px;
}
.nav .logo:has(.logo-img)::before { display: none; }
.nav .links { display: flex; gap: 6px; flex: 1; align-items: center; }
.nav .links a {
  color: var(--text-dim); font-size: 14px; padding: 6px 14px;
  border-radius: 999px; transition: color 0.15s, background 0.15s;
}
.nav .links a:hover { color: #fff; background: var(--accent); }
.nav .links a.active { color: #fff; font-weight: 500; background: var(--accent); }
/* 主栏目（悬停出子栏目：主栏目正下方卡片，透明磨砂底透出背景，横向排列，悬停加深+光效） */
.nav-cat { position: relative; }
.nav-cat > a { display: inline-block; }
.nav-cat.active > a { color: #fff; font-weight: 500; background: var(--accent); }
.nav-drop {
  display: none; position: absolute; top: 100%; left: 0;
  z-index: 200;
  width: max-content; max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px 10px;
  /* 透明顶边与导航项连成连续悬停区（8px），视觉上仍是分离卡片 */
  border: 8px solid transparent; border-bottom-width: 0; border-radius: 14px;
  background-clip: padding-box;
  flex-wrap: wrap; justify-content: center; gap: 2px 4px;
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.1);
}
.nav-drop a {
  display: inline-block; padding: 5px 14px; font-size: 13px; white-space: nowrap;
  text-align: center; color: var(--text-dim); border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s,
    transform 0.18s, box-shadow 0.18s;
}
.nav-drop a:hover {
  color: var(--accent); font-weight: 500;
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.18);
}
/* 悬停下拉只在「有真鼠标」的设备生效。触屏上 :hover 会被首次点击触发，
   导致第一次点栏目只展开下拉、第二次才跳转 —— 触屏直接点击跳转，不出下拉 */
@media (hover: hover) and (pointer: fine) {
  .nav-cat:hover > a { color: #fff; background: var(--accent); }
  .nav-cat:hover .nav-drop { display: flex; }
}
.nav .user-area { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-dim); }

/* ---------- 导航搜索框（首页外显示，参考 RiPro 胶囊样式） ---------- */
@property --ns-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.nav .nav-search {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 5px 0 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .05);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nav .nav-search:focus-within {
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(245, 166, 35, .22);
}
/* 点击后：一圈光效线条沿胶囊边框旋转 */
.nav .nav-search::before {
  content: ""; position: absolute; inset: -2px; border-radius: 999px; padding: 2px;
  background: conic-gradient(from var(--ns-a),
    rgba(245, 166, 35, 0) 0%, var(--accent) 10%, rgba(245, 166, 35, 0) 26%,
    rgba(245, 166, 35, 0) 50%, #ffb954 62%, rgba(245, 166, 35, 0) 78%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.nav .nav-search:focus-within::before {
  opacity: 1;
  animation: ns-spin 1.3s linear infinite;
}
@keyframes ns-spin { to { --ns-a: 360deg; } }
.nav .nav-search .ns-ico { color: var(--text-mute); flex: 0 0 auto; }
.nav .nav-search:focus-within .ns-ico { color: var(--accent); }
.nav .nav-search input {
  border: none; outline: none; background: none;
  width: 170px; font-size: 13.5px; color: var(--text);
}
.nav .nav-search input::placeholder { color: var(--text-mute); }
/* 触屏设备（平板横屏宽度 >768 时用桌面版布局）：输入框同样提到 16px，避免 iOS/iPadOS 聚焦放大 */
@media (pointer: coarse) {
  .nav .nav-search input,
  .big-search input,
  .field input, .field select, .field textarea { font-size: 16px; }
}
.nav .nav-search button {
  flex: 0 0 auto; height: 28px; padding: 0 16px;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  transition: background .18s ease;
}
.nav .nav-search button:hover { background: var(--accent-dark); }
@media (max-width: 860px) {
  .nav .nav-search input { width: 100px; }
}

/* ---------- 移动端导航：小圆形搜索按钮 + 点击弹出输入框 ---------- */
.m-search-btn { display: none; }
.m-search-pop { display: none; }
@media (max-width: 768px) {
  .nav { flex-wrap: wrap; height: auto; min-height: 54px; padding: 8px 14px; gap: 10px; row-gap: 6px; }
  /* 内联长搜索框隐藏，改用小圆形搜索按钮 */
  .nav .nav-search { display: none; }
  .m-search-btn {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 36px; height: 36px; margin-left: auto;
    border: none; border-radius: 50%; cursor: pointer;
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 10px rgba(245, 166, 35, .35);
  }
  .m-search-btn:active { transform: scale(.94); }
  /* 登录按钮等用户区跟随在搜索按钮后 */
  .nav .user-area { margin-left: 0; flex: 0 0 auto; }
  /* 栏目链接：第二行单行横向滑动，不再竖向堆叠 */
  .nav .links {
    order: 3; flex: 1 0 100%;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    touch-action: pan-x; /* 只允许横向手势：避免点按时被当成页面纵向滚动而吞掉点击 */
    padding-bottom: 2px; scrollbar-width: none;
  }
  .nav .links::-webkit-scrollbar { display: none; }
  .nav .links a, .nav .links .nav-cat { white-space: nowrap; flex: 0 0 auto; }
  /* 移动端不显示「首页」：点左上角站名即回首页，腾出横向滑动空间 */
  .nav .links .nav-home { display: none; }
  /* 搜索条：与圆形按钮同一行，从按钮位置向左「抽出」整条搜索框。
     用 clip-path 由右向左揭开（不缩放、不挤压文字），比下拉面板更贴合手机操作直觉 */
  .m-search-pop {
    display: block;
    position: absolute; z-index: 130;
    top: 8px; left: 14px; right: 14px; height: 36px;
    padding: 3px 3px 3px 15px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .16);
    overflow: hidden;
    opacity: 0; visibility: hidden; pointer-events: none;
    clip-path: inset(0 0 0 92% round 999px);
    transition: clip-path .32s cubic-bezier(.22, .8, .36, 1), opacity .16s ease, visibility .32s;
  }
  .m-search-pop.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    clip-path: inset(0 0 0 0 round 999px);
  }
  /* 展开时圆形图标淡出，搜索条正好接替它的位置 */
  .m-search-btn { transition: opacity .18s ease, transform .18s ease; }
  .nav.search-open .m-search-btn { opacity: 0; transform: scale(.7); pointer-events: none; }
  .m-search-pop form { display: flex; gap: 6px; height: 100%; align-items: stretch; }
  .m-search-pop input {
    flex: 1; min-width: 0; border: none; background: transparent;
    padding: 0 2px; outline: none;
    /* iOS 聚焦时字号 <16px 会自动放大整页，导致右侧「搜索」按钮被挤出屏幕，必须 16px */
    font-size: 16px; line-height: 1.2;
  }
  .m-search-pop button {
    flex: 0 0 auto; white-space: nowrap; border: none; border-radius: 999px; cursor: pointer;
    background: var(--accent); color: #fff; padding: 0 16px;
    font-size: 14px; font-weight: 600;
  }
  /* 手机端所有输入框字号 ≥16px：iOS/iPadOS 聚焦时字号过小会自动放大整页（首页大搜索框、登录/提交表单） */
  .big-search input,
  .hero-search .big-search input,
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* 触屏兜底（个别浏览器把 :hover 报成可用）：禁止首点被下拉吞掉，点一次即跳转 */
@media (max-width: 768px) and (pointer: coarse) {
  .nav-cat:hover > a { color: var(--text-dim); background: transparent; }
  .nav-cat.active:hover > a { color: #fff; background: var(--accent); }
  .nav-cat:hover .nav-drop { display: none; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 6px;
  padding: 8px 16px; font-size: 14px; background: var(--accent); color: #fff; font-weight: 500;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--bg-hover); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 5px 12px; font-size: 13px; }

/* ---------- 布局 ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 28px 24px 60px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }

/* ---------- 搜索 Hero ---------- */
.hero-search {
  max-width: 1080px; margin: 0 auto; padding: 0 24px; text-align: center;
  min-height: 500px; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.hero-search .hero-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 26px; font-weight: 700; letter-spacing: 0.5px; color: var(--text);
}
.hero-search .brand-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); position: relative; flex: none;
}
.hero-search .brand-icon::after {
  content: ""; position: absolute; inset: 8px;
  background: #fff; border-radius: 50%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.big-search {
  position: relative; display: flex; align-items: center;
  max-width: 950px; width: 100%; margin: 28px auto 0;
  border-radius: 999px; background: #fff;
  box-shadow: 0 2px 10px rgba(31, 41, 55, 0.08), 0 0 0 1px rgba(31, 41, 55, 0.04);
  transition: box-shadow 0.2s;
}
.big-search:focus-within {
  box-shadow: 0 4px 18px rgba(31, 41, 55, 0.14), 0 0 0 1px rgba(31, 41, 55, 0.06);
}
.big-search .s-icon { position: absolute; left: 20px; color: var(--text-mute); pointer-events: none; }
.big-search input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 15px 118px 15px 48px; font-size: 15px; color: var(--text);
}
.big-search input::placeholder { color: var(--text-mute); }
.big-search button {
  position: absolute; right: 6px; border: none; cursor: pointer;
  background: var(--accent); color: #fff; padding: 9px 22px; font-size: 14px; font-weight: 500;
  border-radius: 999px; transition: background 0.15s;
}
.big-search button:hover { background: var(--accent-dark); }
/* 热门搜索词：白色胶囊卡片，第一个蓝色，悬停上浮变色；宽度与搜索框同步 950px */
.hot-words {
  margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 950px;
}
.hot-words a {
  display: inline-block; padding: 7px 18px; font-size: 13px;
  color: var(--text-dim); background: #fff;
  border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 1px 4px rgba(31, 41, 55, 0.05);
  transition: color 0.18s, background 0.18s, border-color 0.18s,
    transform 0.18s, box-shadow 0.18s;
}
.hot-words a:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(26, 115, 232, 0.18);
}
.hot-words a.first { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 500; }
.hot-words a.first:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- 分类筛选条 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.filter-bar a, .filter-bar span {
  font-size: 14px; color: var(--text-dim); padding: 6px 0; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -11px;
}
.filter-bar a:hover { color: var(--text); }
.filter-bar .active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

/* ---------- 内容分区 ---------- */
.block { margin-top: 36px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.block-head h2 { font-size: 16px; font-weight: 600; }
.block-head .more { font-size: 13px; color: var(--text-dim); }
.block-head .more:hover { color: var(--accent); }
.block-head .count { font-size: 12px; color: var(--text-mute); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 6px 18px; }
.link-item { display: block; padding: 3px 0; min-width: 0; }
.link-item .t {
  font-size: 14px; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.link-item:hover .t { color: var(--accent); text-decoration: underline; }
.link-item .m { font-size: 12px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 海报卡片网格（仿搜片.com） ---------- */
.poster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 22px 14px;
}
.p-card { display: block; min-width: 0; }
.p-card .p-poster {
  aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #eef1f5, #e3e7ec);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow .2s, transform .2s;
}
.p-card:hover .p-poster {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}
.p-card .p-poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.p-card .p-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #b6bcc4; font-size: 26px; font-weight: 600; user-select: none;
}
.p-card .p-remarks {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 7px 5px; font-size: 11px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-card .p-title {
  margin-top: 8px; font-size: 13px; color: #1a1a1a; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-card:hover .p-title { color: var(--accent); }
.p-card .p-meta {
  margin-top: 2px; font-size: 12px; color: var(--text-mute); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.article-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 24px; }
.article-links a { display: block; padding: 4px 0; font-size: 14px; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-links a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 搜索结果 ---------- */
.result-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 4px; }
.result-head h2 { font-size: 16px; font-weight: 600; }
.result-head .count { font-size: 13px; color: var(--text-mute); }
.result-list { margin-top: 4px; }
.result-item { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
.result-item:hover .r-title { color: var(--accent); text-decoration: underline; }
.result-item .r-title { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.result-item .r-meta { font-size: 12px; color: var(--text-mute); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.result-item .r-snippet { font-size: 13px; color: var(--text-dim); margin-top: 5px; line-height: 1.7; }
.result-item em { font-style: normal; color: var(--danger); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-top: 24px; }
.tabs a { padding: 9px 16px; font-size: 14px; color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

/* ---------- 空状态 / 分页 ---------- */
.empty { text-align: center; color: var(--text-dim); padding: 64px 0; font-size: 14px; }
.empty .icon { font-size: 34px; margin-bottom: 10px; opacity: .7; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination button {
  background: #fff; border: 1px solid var(--border-strong); color: var(--text);
  padding: 7px 13px; border-radius: 6px; font-size: 13px;
}
.pagination button:hover:not(:disabled) { background: var(--bg-hover); }
.pagination button:disabled { opacity: .45; cursor: default; }
.pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 详情页 ---------- */
.detail { display: flex; gap: 30px; margin-top: 6px; flex-wrap: wrap; }
.detail .poster-col { flex: 0 0 220px; }
.detail .poster-col img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.detail .info-col { flex: 1; min-width: 300px; }
.detail h1 { font-size: 24px; font-weight: 600; line-height: 1.4; }
.detail .original { color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.detail .rating-line { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.detail .rating-line .score { font-size: 26px; font-weight: 600; color: var(--accent); }
.detail .rating-line .stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; }
.detail .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fact-chip {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 4px; font-size: 12px; color: var(--text-dim);
}
.detail .desc { margin-top: 16px; color: #3d444d; font-size: 14px; line-height: 1.9; }
.player-wrap { margin-top: 26px; }
.player-wrap video { width: 100%; max-height: 540px; background: #000; border-radius: var(--radius); }
.player-tip { color: var(--text-mute); font-size: 12px; margin-top: 8px; }
.ep-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-height: 220px; overflow-y: auto; }
.ep-btn {
  padding: 6px 12px; border-radius: 4px; font-size: 13px;
  background: #fff; border: 1px solid var(--border-strong); color: var(--text-dim);
  white-space: nowrap;
}
.ep-btn:hover { color: var(--accent); border-color: var(--accent); }
.ep-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 500; }
a.ep-btn { text-decoration: none; }

/* ---------- 文章 ---------- */
.article-list { max-width: 820px; margin: 0 auto; }
.article-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.article-item:hover h3 { color: var(--accent); }
.article-item .cover {
  flex: 0 0 132px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden;
  background: var(--bg-card); display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); font-size: 12px;
}
.article-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-item h3 { font-size: 15px; font-weight: 500; line-height: 1.5; }
.article-item .summary {
  color: var(--text-dim); font-size: 13px; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-item .meta { color: var(--text-mute); font-size: 12px; margin-top: 7px; display: flex; gap: 14px; }

.article-detail { max-width: 760px; margin: 0 auto; }
.article-detail h1 { font-size: 24px; font-weight: 600; line-height: 1.45; }
.article-detail .cover { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin: 18px 0; }
.article-detail .meta { color: var(--text-mute); font-size: 13px; margin-top: 8px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* 文章来源徽章：与影片详情页「视频来源」同款橙色样式 */
.article-detail .src-chip {
  display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px;
  background: rgba(245, 166, 35, .12); color: #c07b00; border: 1px solid rgba(245, 166, 35, .35);
}
/* 版权/免责提示：与影片详情页同款 */
.article-detail .src-note {
  margin-top: 18px; padding: 10px 14px; font-size: 12px; color: var(--text-mute);
  background: var(--card, rgba(0,0,0,.03)); border: 1px dashed var(--border);
  border-radius: var(--radius, 8px);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.7;
}
.article-detail .src-note .dot { width: 6px; height: 6px; border-radius: 50%; background: #f5a623; flex: 0 0 auto; }
.article-detail .src-note a { color: var(--brand, #e5342b); text-decoration: none; font-weight: 600; }
.article-detail .src-note a:hover { text-decoration: underline; }
.article-detail .content { margin-top: 20px; color: #3d444d; font-size: 15px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }
/* 采集来的富文本正文：普通换行、图片自适应 */
.article-detail .content.rich { white-space: normal; }
.article-detail .content.rich p { margin: 0 0 14px; }
.article-detail .content.rich img { display: block; max-width: 100%; height: auto; margin: 14px auto; border-radius: var(--radius); }
.article-detail .content.rich a { color: var(--brand, #e5342b); text-decoration: underline; }
.article-detail .content.rich h2,
.article-detail .content.rich h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.article-detail .content.rich ul,
.article-detail .content.rich ol { padding-left: 22px; margin: 0 0 14px; }
.article-detail .content.rich blockquote { margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--border); color: var(--text-mute); background: #fafbfc; }
.article-detail .content.rich table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.article-detail .content.rich td,
.article-detail .content.rich th { border: 1px solid var(--border); padding: 6px 10px; }
.article-detail .cover { max-height: 460px; object-fit: cover; }
/* 种子下载区（磁力 + .torrent 附件） */
.article-detail .dl-box { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fafbfc; }
.article-detail .dl-title { color: #c0392b; font-weight: 700; font-size: 15px; line-height: 1.6; }
.article-detail .dl-magnet { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.article-detail .dl-magnet code { flex: 1; word-break: break-all; font-size: 13px; line-height: 1.6; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; color: #24292f; }
.article-detail .dl-copy { flex-shrink: 0; border: 1px solid var(--border); background: #fff; color: #333; font-size: 13px; padding: 6px 14px; border-radius: 6px; cursor: pointer; }
.article-detail .dl-copy:hover { background: #f0f2f5; }
.article-detail .dl-attach { margin-top: 16px; }
.article-detail .dl-label { display: inline-block; background: #eceef1; color: #555; font-size: 12px; padding: 3px 10px; border-radius: 4px; }
.article-detail .dl-attach ul { list-style: disc; margin: 8px 0 0 22px; }
.article-detail .dl-attach li { margin: 4px 0; }
.article-detail .dl-attach a { color: #1a6fd4; font-size: 14px; word-break: break-all; }
.article-detail .dl-note { margin-top: 14px; color: #9aa0a6; font-size: 12px; }

/* ---------- 表单 / 登录 ---------- */
.auth-panel { max-width: 380px; margin: 64px auto; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.auth-panel h2 { font-size: 19px; margin-bottom: 18px; text-align: center; font-weight: 600; }
.auth-tabs { display: flex; margin-bottom: 20px; background: var(--bg-card); border-radius: 6px; padding: 3px; }
.auth-tabs button { flex: 1; background: transparent; border: none; color: var(--text-dim); padding: 8px; font-size: 14px; border-radius: 4px; }
.auth-tabs button.active { background: #fff; color: var(--accent); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 10px 12px; color: var(--text); font-size: 14px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
.msg { padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; display: none; }
.msg.error { display: block; background: #fce8e6; color: #c5221f; border: 1px solid #f6d0cd; }
.msg.ok { display: block; background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }

/* ---------- 页脚 ---------- */
.footer {
  max-width: 1080px; margin: 40px auto 0; padding: 24px 24px 40px;
  border-top: 1px solid var(--border); color: var(--text-mute); font-size: 12px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .nav { gap: 14px; padding: 0 16px; }
  .nav .links { gap: 14px; }
  .hero-search { padding: 36px 16px 24px; }
  .hero-search .hero-brand { font-size: 21px; }
  .hero-search .big-search input { padding-right: 96px; }
  .big-search button { padding: 8px 16px; }
  .container, .wrap, .footer { padding-left: 16px; padding-right: 16px; }
  .detail .poster-col { flex: 0 0 140px; }
  .detail h1 { font-size: 20px; }
  .link-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px 10px; }
}

/* ================= 文章内容页（参考 RiPro v5 单篇：白卡片 + 信息卡 + 胶囊页签 + 侧栏） ================= */
.art-page { background: #f4f6f8; padding: 22px 0 48px; min-height: 62vh; }
.art-wrap {
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start;
}
.art-main { min-width: 0; }
.art-card {
  background: #fff; border: 1px solid rgba(0, 0, 0, .05); border-radius: 12px;
  padding: 24px 26px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03), 0 1px 2px rgba(0, 0, 0, .04);
}
/* 标题与元信息 */
.art-head { margin-bottom: 14px; }
.art-title { font-size: 25px; font-weight: 700; line-height: 1.45; color: #1b1f24; letter-spacing: -.2px; word-break: break-word; }
.art-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; color: var(--text-mute); font-size: 13px; }
.art-cat {
  display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  color: var(--accent); background: rgba(26, 115, 232, .10); border: 1px solid rgba(26, 115, 232, .22);
  text-decoration: none;
}
.art-cat:hover { background: rgba(26, 115, 232, .18); }
.art-page .src-chip {
  display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px;
  background: rgba(245, 166, 35, .12); color: #c07b00; border: 1px solid rgba(245, 166, 35, .35);
}
/* 资源信息卡（对应 RiPro 的 archive-shop 信息块） */
.art-info {
  display: flex; gap: 16px; margin: 16px 0 20px; padding: 10px;
  border-radius: 10px; background: rgba(26, 115, 232, .05);
}
.art-info-cover { flex: 0 0 210px; border-radius: 8px; overflow: hidden; background: #eaeef3; }
.art-info-cover img { display: block; width: 100%; height: 100%; max-height: 148px; object-fit: cover; }
.art-info-list {
  flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px; margin: 0; padding: 4px; list-style: none;
}
.art-info-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 2; color: #8a919c; }
.art-info-list b { color: #3d444d; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 胶囊页签 */
.art-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 20px; }
.art-tab {
  border: 2px solid rgba(26, 115, 232, .18); background: transparent; color: var(--accent);
  font-size: 14px; font-weight: 600; padding: 8px 20px; border-radius: 24px; cursor: pointer;
  transition: all .2s ease; font-family: inherit;
}
.art-tab:hover { border-color: var(--accent); background: rgba(26, 115, 232, .06); transform: translateY(-1px); }
.art-tab.active {
  color: #fff; background: linear-gradient(135deg, #1a73e8, #1557b0);
  border-color: transparent; box-shadow: 0 4px 14px rgba(26, 115, 232, .30);
}
/* 正文排版 */
.art-content { font-size: 16px; line-height: 1.9; color: #33383f; white-space: pre-wrap; word-break: break-word; }
.art-content.rich { white-space: normal; }
.art-content.rich p { margin: 0 0 16px; }
.art-content.rich img { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 8px; }
.art-content.rich a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(26, 115, 232, .3); }
.art-content.rich a:hover { color: #e5342b; border-bottom-color: rgba(229, 52, 43, .4); }
.art-content.rich h2 {
  font-size: 19px; font-weight: 700; margin: 26px 0 12px; padding-left: 10px;
  border-left: 3px solid var(--accent); line-height: 1.5;
}
.art-content.rich h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.art-content.rich ul, .art-content.rich ol { padding-left: 22px; margin: 0 0 16px; }
.art-content.rich li { margin: 6px 0; }
.art-content.rich blockquote {
  margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--accent);
  background: #f5f8fd; color: #5d616e; border-radius: 0 8px 8px 0;
}
.art-content.rich table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.art-content.rich td, .art-content.rich th { border: 1px solid var(--border); padding: 8px 12px; }
.art-content.rich th { background: #f7f8fa; }
.art-empty-tip { color: var(--text-mute); font-size: 14px; }
/* 版权提示（对应 RiPro entry-copyright） */
.art-copyright {
  display: flex; gap: 10px; margin-top: 26px; padding: 12px 16px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(26, 115, 232, .06), rgba(21, 87, 176, .04));
  border-left: 3px solid var(--accent); font-size: 13px; color: #5d616e; line-height: 1.75;
}
.art-copyright .ac-ico { color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.art-copyright a { color: var(--accent); font-weight: 600; text-decoration: none; }
.art-copyright a:hover { text-decoration: underline; }
/* 种子下载区 */
.art-pane .dl-box { margin-top: 26px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfc; }
.art-pane .dl-title { color: #c0392b; font-weight: 700; font-size: 15px; line-height: 1.6; }
.art-pane .dl-magnet { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.art-pane .dl-magnet code { flex: 1; word-break: break-all; font-size: 13px; line-height: 1.6; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; color: #24292f; }
.art-pane .dl-copy { flex-shrink: 0; border: 1px solid var(--border); background: #fff; color: #333; font-size: 13px; padding: 6px 14px; border-radius: 6px; cursor: pointer; }
.art-pane .dl-copy:hover { background: #f0f2f5; }
.art-pane .dl-attach { margin-top: 16px; }
.art-pane .dl-label { display: inline-block; background: #eceef1; color: #555; font-size: 12px; padding: 3px 10px; border-radius: 4px; }
.art-pane .dl-attach ul { list-style: disc; margin: 8px 0 0 22px; }
.art-pane .dl-attach li { margin: 4px 0; }
.art-pane .dl-attach a { color: var(--accent); font-size: 14px; word-break: break-all; }
.art-pane .dl-note { margin-top: 14px; color: #9aa0a6; font-size: 12px; }
/* 相关推荐卡片 */
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rel-card {
  display: flex; gap: 12px; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: all .18s;
}
.rel-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(26, 115, 232, .10); transform: translateY(-2px); }
.rc-media { flex: 0 0 96px; height: 74px; background: #eef1f5; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rc-media img { width: 100%; height: 100%; object-fit: cover; }
.rc-fb { font-size: 22px; opacity: .55; }
.rc-body { flex: 1; min-width: 0; padding: 9px 10px 9px 0; display: flex; flex-direction: column; justify-content: space-between; }
.rc-body h4 { font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-mute); margin-top: 6px; }
.rc-meta .grow { flex: 1; }
/* 上一篇 / 下一篇 */
.art-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.ap-item {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0;
  border: 1px solid var(--border); border-radius: 8px; background: #fafbfc;
  text-decoration: none; color: var(--text); transition: all .15s;
}
a.ap-item:hover { border-color: var(--accent); background: #f4f8fe; }
.ap-label { font-size: 12px; color: var(--text-mute); }
.ap-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-item.next { text-align: right; }
.ap-item.disabled { opacity: .55; }
/* 侧栏吸顶：偏移 = 顶部导航高度 56px + 16px 间距，滚动时不被导航栏遮挡 */
.art-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 72px; }
.side-card { background: #fff; border: 1px solid rgba(0, 0, 0, .05); border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .03); overflow: hidden; }
.side-head { padding: 14px 16px 10px; border-bottom: 1px solid #f0f2f5; }
.side-head h3 { font-size: 14px; font-weight: 700; margin: 0; color: #1b1f24; }
.hot-list { padding: 6px 8px 10px; }
.hot-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: #3d444d; }
.hot-item:hover { background: #f5f8fd; color: var(--accent); }
.hi-no { flex: 0 0 20px; height: 20px; border-radius: 5px; background: #eef1f5; color: #8a919c; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hi-no.top { background: linear-gradient(135deg, #ffb300, #f57c00); color: #fff; }
.hi-title { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-views { font-size: 11px; color: var(--text-mute); flex: 0 0 auto; }
/* 文章分类：横排药丸（透明底描边） */
.cat-list { padding: 12px 14px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border-strong); background: transparent;
  font-size: 13px; color: #4a505a; text-decoration: none; line-height: 1.5;
  transition: all .15s;
}
.cat-pill:hover { color: var(--accent); border-color: var(--accent); background: rgba(26, 115, 232, .04); }
.cat-pill.active { color: var(--accent); border-color: var(--accent); font-weight: 600; background: rgba(26, 115, 232, .06); }
.side-about { padding-bottom: 14px; }
.side-about p { margin: 10px 16px 12px; font-size: 12.5px; color: #6e7781; line-height: 1.8; }
.side-btn { display: block; margin: 0 16px; padding: 9px 0; text-align: center; border-radius: 8px; background: rgba(26, 115, 232, .08); color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.side-btn:hover { background: rgba(26, 115, 232, .14); }
.side-loading { padding: 14px 16px; font-size: 12px; color: #9aa0a6; }

/* 侧栏「热门推荐」：两排，每排 = 文章封面图 + 热搜关键词药丸 */
.rc-list { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.rc-row { display: flex; gap: 8px; align-items: stretch; }
.rc-img {
  position: relative; flex: 0 0 46%; aspect-ratio: 3 / 4;
  border-radius: 10px; overflow: hidden; display: block; background: #eef1f5;
}
.rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rc-img:hover img { transform: scale(1.05); }
.rc-img.rc-empty { background: repeating-linear-gradient(45deg, #f0f3f7, #f0f3f7 8px, #eaeef3 8px, #eaeef3 16px); }
.rc-img.rc-noimg img { display: none; }
.rc-t {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 6px 8px; font-size: 12px; line-height: 1.4; color: #fff;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  opacity: 0; transition: opacity .25s;
}
.rc-img:hover .rc-t { opacity: 1; }
.rc-kws { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-content: space-between; }
.kw-pill {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: #f2f4f8; color: #3d444d; font-size: 12.5px; line-height: 1.4;
  text-decoration: none; white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; transition: all .18s;
}
.kw-pill:hover { background: var(--accent); color: #fff; }

/* ---------- 文章底部「热点推荐」（参考 Meteor 主题） ---------- */
.hot-reco {
  margin-top: 20px; background: #fff; border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 12px; padding: 20px 22px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03), 0 1px 2px rgba(0, 0, 0, .04);
}
.hr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hr-title { font-size: 20px; font-weight: 800; color: #1b1f24; }
.hr-title em { font-style: normal; color: #e5342b; }
.hr-title .hr-sub { font-size: 12px; font-weight: 400; color: var(--text-mute); margin-left: 8px; }
.hr-dots { display: flex; gap: 6px; }
.hr-dots i { width: 10px; height: 10px; border-radius: 50%; }
.hr-dots .d1 { background: #ff5f57; } .hr-dots .d2 { background: #febc2e; } .hr-dots .d3 { background: #28c840; }

/* 大卡：左图 + 右标题/摘要/作者日期 */
.hr-feat { display: flex; gap: 22px; text-decoration: none; align-items: stretch; }
.hr-feat-img {
  position: relative; flex: 0 0 300px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #eef1f5, #e3e7ec);
  display: flex; align-items: center; justify-content: center;
}
.hr-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-feat-img .hr-fb { color: #b6bcc4; font-size: 34px; font-weight: 600; }
.hr-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff;
  max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hr-feat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hr-feat-body h3 {
  font-size: 20px; font-weight: 700; line-height: 1.45; color: #1b1f24; margin: 2px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hr-feat:hover h3 { color: var(--accent); }
.hr-feat-body .hr-summary {
  font-size: 14px; color: #6b7280; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hr-feat-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 13px; color: #6b7280; }
.hr-feat-meta .ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); flex: none; }
.hr-feat-meta .ava-fb {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.hr-feat-meta .go {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #e2e6ea; background: #fff; color: #9aa2ab;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: all .2s;
}
.hr-feat:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(3px); }

/* 小项 2×2：左缩略图 + 右标题 + 分类|日期 */
.hr-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 26px; }
.hr-item { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.hr-thumb {
  position: relative; flex: 0 0 128px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, #eef1f5, #e3e7ec);
  display: flex; align-items: center; justify-content: center;
}
.hr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-thumb .hr-fb { color: #b6bcc4; font-size: 20px; font-weight: 600; }
.hr-item-body { flex: 1; min-width: 0; }
.hr-item-body h4 {
  font-size: 14px; font-weight: 600; color: #1b1f24; line-height: 1.55; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hr-item:hover h4 { color: var(--accent); }
.hr-item-meta { font-size: 12px; color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.hr-item-meta .sep { color: #d3d8de; }

@media (max-width: 860px) {
  .hr-feat { flex-direction: column; }
  .hr-feat-img { flex: none; width: 100%; }
  .hr-grid { grid-template-columns: minmax(0, 1fr); }
  .hot-reco { padding: 16px 14px 18px; }
}

@media (max-width: 1024px) {
  .art-wrap { grid-template-columns: minmax(0, 1fr); }
  .art-side { position: static; }
}
@media (max-width: 640px) {
  .art-page { padding: 12px 0 32px; }
  .art-wrap { padding: 0 12px; }
  .art-card { padding: 16px 14px 18px; border-radius: 10px; }
  .art-title { font-size: 20px; }
  .art-info { flex-direction: column; }
  .art-info-cover { flex: none; }
  .art-info-cover img { max-height: 180px; }
  .art-info-list { grid-template-columns: minmax(0, 1fr); }
  .art-content { font-size: 15.5px; }
  .rel-grid { grid-template-columns: minmax(0, 1fr); }
  .art-pager { grid-template-columns: minmax(0, 1fr); }
  .ap-item.next { text-align: left; }
}
