/* Shared site polish rules extracted once. */
/* ===== source: site-polish-20261114.css ===== */
/* =========================================================
   AVLOG · 全站视觉精修层 2026-11-14
   只负责视觉表现；不重写模板结构、不改变业务逻辑。
   ========================================================= */
:root {
  --avp-bg: #080f0b;
  --avp-surface: #101a14;
  --avp-surface-2: #132119;
  --avp-line: rgba(180, 220, 194, .105);
  --avp-line-strong: rgba(72, 211, 129, .25);
  --avp-green: #28d17c;
  --avp-green-2: #14b86b;
  --avp-text: #eef7f0;
  --avp-muted: #9aafa1;
  --avp-radius: 16px;
  --avp-radius-sm: 11px;
  --avp-shadow: 0 14px 38px rgba(0, 0, 0, .22);
}

html { scroll-behavior: smooth; }
body.body,
body:not(.mac_comment) {
  background-color: var(--avp-bg);
  background-image:
    radial-gradient(ellipse at 8% 0%, rgba(20, 184, 107, .095), transparent 34rem),
    radial-gradient(ellipse at 96% 18%, rgba(37, 125, 79, .075), transparent 30rem);
  color: var(--avp-text);
}
body.body :where(main, .main, .hub-wrap, .article-page) { min-width: 0; }
body.body :where(img, video, iframe) { max-width: 100%; }
body.body :where(button, input, select, textarea) { font: inherit; }
body.body :where(a, button, input, select, textarea) { -webkit-tap-highlight-color: transparent; }
body.body :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid rgba(40, 209, 124, .85);
  outline-offset: 3px;
}

/* 顶部导航：保留原有桌面 sticky 规则，只精修外观 */
body.body .site-header,
body.body .header.site-header {
  background: rgba(8, 16, 11, .91) !important;
  border-bottom: 1px solid rgba(55, 190, 112, .19) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .17) !important;
  /* Solid translucent surface avoids repaint-heavy backdrop blur on scroll. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.body .site-header-inner { gap: clamp(10px, 1.6vw, 22px); }
body.body .site-brand img { filter: drop-shadow(0 3px 9px rgba(24, 190, 105, .18)); }
body.body .site-brand .name {
  background: linear-gradient(105deg, #f2fff6 5%, #72e7a7 58%, #27c978 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.body .site-main-nav { gap: 5px; }
body.body .site-main-nav .site-nav-link {
  min-height: 38px; padding: 0 12px; border: 1px solid transparent;
  border-radius: 999px; color: #c8d9cd; transition: .2s ease;
}
body.body .site-main-nav .site-nav-link:hover {
  color: #f4fff7; background: rgba(40, 209, 124, .105);
  border-color: rgba(40, 209, 124, .2); transform: translateY(-1px);
}
body.body .site-search-form {
  min-height: 42px; border: 1px solid rgba(150, 190, 163, .18) !important;
  border-radius: 999px !important; background: rgba(255, 255, 255, .045) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  overflow: hidden;
}
body.body .site-search-form:focus-within {
  border-color: rgba(40, 209, 124, .55) !important;
  box-shadow: 0 0 0 3px rgba(40, 209, 124, .09);
}
body.body .site-search-input { min-width: 0; color: #effaf2 !important; }
body.body .site-search-input::placeholder { color: #83998a; }
body.body .site-search-submit {
  border-radius: 999px !important; margin: 3px; padding: 0 17px;
  background: linear-gradient(135deg, #24ce78, #119c59) !important;
  color: #06140b !important; font-weight: 800; box-shadow: 0 5px 14px rgba(20,184,107,.2);
  transition: filter .2s ease, transform .2s ease;
}
body.body .site-search-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
body.body .site-hot-search-dropdown {
  border: 1px solid var(--avp-line-strong); border-radius: 14px;
  background: #101b14; box-shadow: 0 18px 42px rgba(0,0,0,.38);
}
body.body .site-hot-search-item { border-radius: 8px; transition: .18s ease; }
body.body .site-hot-search-item:hover { background: rgba(40,209,124,.12); color: #8df0b6; }

/* 全站内容容器与区块 */
body.body .hub-wrap,
body.body .article-page,
body.body .pan-results-shell {
  width: min(100% - 32px, 1240px); margin-left: auto; margin-right: auto;
}
body.body .hub-section,
body.body .pan-results-shell,
body.body .article-page > article,
body.body .rank-box,
body.body .block > .a-con,
body.body .search-content-panel,
body.body .vod-list-page-panel {
  border: 1px solid var(--avp-line) !important;
  border-radius: var(--avp-radius) !important;
  background: linear-gradient(145deg, rgba(18, 31, 22, .94), rgba(12, 22, 16, .96)) !important;
  box-shadow: var(--avp-shadow);
}
body.body .hub-section { padding: clamp(14px, 2vw, 22px); margin-bottom: 18px; }
body.body .av-title-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(170, 210, 183, .1);
}
body.body .av-title-bar h1,
body.body .av-title-bar h2,
body.body .article-page h1,
body.body .rank-banner h1 {
  color: #f1fff5; font-weight: 800; letter-spacing: -.025em;
}
body.body .av-title-bar h1::before,
body.body .av-title-bar h2::before {
  content: ""; display: inline-block; width: 4px; height: 1em;
  margin-right: 10px; vertical-align: -.12em; border-radius: 5px;
  background: linear-gradient(180deg, #6aeda0, #12ae64);
  box-shadow: 0 0 14px rgba(40,209,124,.22);
}
body.body .avref26-green-action,
body.body .article-search button,
body.body .back-prev-btn,
body.body .pan-search-control button {
  border: 0 !important; border-radius: 999px !important;
  background: linear-gradient(135deg, #32d985, #0eaa60) !important;
  color: #06150b !important; font-weight: 800;
  box-shadow: 0 7px 18px rgba(14,170,96,.19);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
body.body .avref26-green-action:hover,
body.body .article-search button:hover,
body.body .back-prev-btn:hover,
body.body .pan-search-control button:hover {
  filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(14,170,96,.25);
}

/* 首页快捷入口、关键词和 AI 视频 */
body.body .av-card-grid { gap: 12px !important; }
body.body .av-card {
  position: relative; min-height: 92px; padding: 17px !important;
  border: 1px solid var(--avp-line) !important; border-radius: 15px !important;
  background: linear-gradient(135deg, rgba(23, 42, 29, .96), rgba(14, 26, 18, .96)) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.14); transition: .22s ease;
}
body.body .av-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(74,224,139,.07), transparent 48%); opacity: .8;
}
body.body .av-card:hover { transform: translateY(-3px); border-color: var(--avp-line-strong) !important; box-shadow: 0 14px 28px rgba(0,0,0,.24); }
body.body .av-card-icon { border-radius: 13px !important; box-shadow: 0 5px 16px rgba(0,0,0,.16); }
body.body .av-card-title { color: #f1fff5; font-weight: 800; }
body.body .av-card-desc { color: var(--avp-muted); }
body.body .av-kw-section { border-radius: 14px; }
body.body .av-kw-grid a,
body.body .home-video-category-grid a,
body.body .play-keywords-list a,
body.body .article-categories a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 35px; padding: 7px 12px; border: 1px solid rgba(150,195,164,.13);
  border-radius: 9px; background: rgba(255,255,255,.035); color: #c8dbce;
  transition: .18s ease;
}
body.body .av-kw-grid a:hover,
body.body .home-video-category-grid a:hover,
body.body .play-keywords-list a:hover,
body.body .article-categories a:hover {
  color: #9af2bc; background: rgba(40,209,124,.11);
  border-color: rgba(40,209,124,.32); transform: translateY(-1px);
}
body.body .ai-video-card,
body.body .avlog-video-item,
body.body .random-video-item {
  min-width: 0; overflow: hidden; border: 1px solid var(--avp-line) !important;
  border-radius: 13px !important; background: rgba(18,31,22,.86) !important;
  box-shadow: 0 7px 20px rgba(0,0,0,.16); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
body.body .ai-video-card:hover,
body.body .avlog-video-item:hover,
body.body .random-video-item:hover {
  transform: translateY(-3px); border-color: rgba(40,209,124,.35) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.26);
}
body.body .ai-video-poster,
body.body .avlog-video-item .pic,
body.body .a-con-inner .pic { overflow: hidden; background: #0b130e; }
body.body .ai-video-poster img,
body.body .avlog-video-item .pic img,
body.body .a-con-inner .pic img { transition: transform .35s ease, filter .35s ease; }
body.body .ai-video-card:hover .ai-video-poster img,
body.body .avlog-video-item:hover .pic img,
body.body .a-con-inner:hover .pic img { transform: scale(1.035); }
body.body .ai-video-caption,
body.body .avlog-video-item .s1,
body.body .a-con-inner .s1 { color: #eef8f1; font-weight: 650; }
body.body .ai-video-caption,
body.body .avlog-video-item .s1 a,
body.body .a-con-inner .s1 a {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.5; min-height: 3em;
}
body.body .ai-video-date,
body.body .home-video-date { border-radius: 7px; background: rgba(5,14,8,.78); color: #bff5d1; backdrop-filter: blur(8px); }
body.body .ai-video-tag,
body.body .avlog-video-item .s2 a,
body.body .a-con-inner .s2 a { color: #7ce8a8; }

/* 视频分类、搜索结果、排行榜 */
body.body .home-video-category-grid { gap: 9px !important; }
body.body .a-con { gap: 14px !important; }
body.body .a-con-inner { min-width: 0; }
body.body .home-list-meta,
body.body .page-count { color: var(--avp-muted); }
body.body .rank-cycle button {
  border: 1px solid var(--avp-line) !important; border-radius: 12px !important;
  background: rgba(255,255,255,.035) !important; transition: .2s ease;
}
body.body .rank-cycle button.active,
body.body .rank-cycle button:hover {
  border-color: var(--avp-line-strong) !important; background: rgba(40,209,124,.1) !important;
}
body.body .rank-con li { border-bottom: 1px solid var(--avp-line) !important; }
body.body .rank-con-l p { border-radius: 9px; background: rgba(40,209,124,.1); color: #8df0b5; font-weight: 850; }
body.body .rank-con-m .pic { overflow: hidden; border-radius: 10px; }
body.body .rank-con-m .pic img { transition: transform .25s ease; }
body.body .rank-con-m .pic:hover img { transform: scale(1.04); }

/* 小说列表、文章阅读页 */
body.body .article-page { padding-top: clamp(20px, 3vw, 38px); padding-bottom: 38px; }
body.body .article-page > h1 { margin: 20px 0 14px; font-size: clamp(20px, 2.2vw, 27px); }
body.body .article-page > article { padding: clamp(18px, 3vw, 34px); }
body.body .article-search {
  display: flex; gap: 9px; padding: 8px; border: 1px solid var(--avp-line);
  border-radius: 14px; background: rgba(255,255,255,.035);
}
body.body .article-search input,
body.body .pan-search-control input {
  min-width: 0; flex: 1; border: 1px solid transparent !important;
  border-radius: 10px !important; background: rgba(0,0,0,.17) !important;
  color: var(--avp-text) !important; padding: 12px 14px !important;
}
body.body .article-search input:focus,
body.body .pan-search-control input:focus { border-color: rgba(40,209,124,.45) !important; outline: 0; }
body.body .article-categories { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 22px; }
body.body .article-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
body.body .article-result {
  min-width: 0; padding: 14px 16px; border: 1px solid var(--avp-line);
  border-radius: 12px; background: rgba(255,255,255,.028); transition: .2s ease;
}
body.body .article-result:hover { border-color: var(--avp-line-strong); background: rgba(40,209,124,.075); transform: translateY(-2px); }
body.body .article-result h2 { margin: 0; color: #e6f4ea; font-size: 15px; font-weight: 650; line-height: 1.65; }
body.body .article-meta { color: var(--avp-muted); }
body.body .article-content {
  color: #dce9df; line-height: 1.95; overflow-wrap: anywhere;
}
body.body .article-content :where(p, h2, h3, blockquote, ul, ol) { margin-top: 1em; margin-bottom: 1em; }
body.body .reading-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--avp-line); border-radius: 12px; background: rgba(255,255,255,.03); }
body.body .reading-tools button { border: 1px solid var(--avp-line); border-radius: 8px; padding: 7px 11px; background: rgba(40,209,124,.08); color: #a7edbf; }

/* 播放页与播放控件 */
body.body .play-page-home-layout { gap: 16px; }
body.body .play-title { color: #f1fff5; font-weight: 800; line-height: 1.45; }
body.body .play-player-panel,
body.body .play-episode-panel,
body.body .play-keywords,
body.body .play-action-panel {
  border: 1px solid var(--avp-line) !important; border-radius: 15px !important;
  background: linear-gradient(145deg, rgba(18,31,22,.95), rgba(11,20,14,.96)) !important;
}
body.body .player-wrapper,
body.body .player { overflow: hidden; border-radius: 13px; background: #000; }
body.body .play-episode-item,
body.body .play-action-btn { border-radius: 9px !important; transition: .18s ease; }
body.body .play-episode-item:hover,
body.body .play-action-btn:hover { border-color: rgba(40,209,124,.38) !important; background: rgba(40,209,124,.1) !important; }
body.body .play-episode-playing { color: #06150b !important; background: #36d985 !important; }
body.body .play-safety-notice { border-radius: 10px; }

/* 网盘搜索页与表单 */
body.body .pan-home-search,
body.body .pan-results-header,
body.body .pan-results-toolbar,
body.body .pan-results-list { border-radius: 15px; }
body.body .pan-home-search,
body.body .pan-results-header { border: 1px solid var(--avp-line); background: linear-gradient(145deg, rgba(18,34,23,.96), rgba(11,21,15,.96)); box-shadow: var(--avp-shadow); }
body.body .pan-search-control { gap: 8px; }
body.body .pan-search-hint { color: var(--avp-muted); }
body.body .pan-filter-list button { border-radius: 999px; transition: .18s ease; }
body.body .pan-filter-list button.is-active,
body.body .pan-filter-list button:hover { border-color: var(--avp-line-strong); background: rgba(40,209,124,.12); color: #9af2bc; }

/* 页脚、返回顶部 */
body.body .site-footer {
  margin-top: 30px; border-top: 1px solid rgba(40,209,124,.17) !important;
  background: linear-gradient(180deg, rgba(14,25,17,.97), #080f0b) !important;
}
body.body .site-footer-inner { padding-top: 30px !important; padding-bottom: 28px !important; }
body.body .site-footer-heading { color: #85e8aa; font-weight: 800; }
body.body .site-footer-eyebrow { color: #86dca4; }
body.body .site-footer-contact-item { color: #d3e4d8; }
body.body .back-to-top {
  border: 1px solid rgba(115,230,157,.25) !important;
  background: linear-gradient(145deg, #1fc575, #0c9854) !important;
  color: #04140a !important; box-shadow: 0 8px 24px rgba(0,0,0,.32), 0 0 0 5px rgba(40,209,124,.07);
  transition: transform .2s ease, filter .2s ease;
}
body.body .back-to-top:hover { transform: translateY(-3px); filter: brightness(1.08); }

/* 响应式：手机优先保证可读性与触控空间 */
@media (max-width: 767px) {
  body.body .site-header-inner { flex-wrap: wrap; gap: 8px 10px; padding-top: 9px; padding-bottom: 9px; }
  body.body .site-brand .name { font-size: 16px; }
  body.body .site-main-nav .site-nav-link { min-height: 34px; padding: 0 9px; font-size: 12px; }
  body.body .site-main-nav .site-nav-link[href*="theporndude"] { display: none !important; }
  body.body .site-search-wrap { flex: 1 1 100%; order: 3; width: 100%; }
  body.body .site-search-form { min-height: 40px; }
  body.body .hub-wrap,
  body.body .article-page,
  body.body .pan-results-shell { width: calc(100% - 22px); }
  body.body .hub-section { padding: 13px; margin-bottom: 12px; border-radius: 13px !important; }
  body.body .av-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  body.body .av-card { min-height: 82px; padding: 12px !important; gap: 9px; }
  body.body .av-card-desc { font-size: 11px; line-height: 1.45; }
  body.body .ai-video-grid,
  body.body .avlog-video-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
  body.body .ai-video-caption,
  body.body .avlog-video-item .s1 a,
  body.body .a-con-inner .s1 a { -webkit-line-clamp: 2; min-height: 3em; font-size: 12px; }
  body.body .home-video-category-grid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 7px !important; }
  body.body .home-video-category-grid a,
  body.body .av-kw-grid a { min-height: 32px; padding: 6px 5px; font-size: 11px; }
  body.body .article-results { grid-template-columns: minmax(0,1fr); }
  body.body .article-search { gap: 6px; }
  body.body .article-search button { padding: 0 16px; }
  body.body .rank-cycle { gap: 7px; }
  body.body .rank-cycle button { min-width: 0; }
  body.body .site-footer-inner { gap: 22px; }
}
@media (max-width: 380px) {
  body.body .site-main-nav .site-nav-link { padding: 0 7px; }
  body.body .home-video-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  body.body .av-card-desc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.body *, body.body *::before, body.body *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* 2026-11-14 user adjustment: remove the added green rail before section headings site-wide. */
body.body .av-title-bar h1::before,
body.body .av-title-bar h2::before {
  content: none !important;
  display: none !important;
}


/* 2026-11-15 · Unified visual refinement and lightweight interaction layer */
body.body .site-header { background: rgba(8, 16, 11, .97) !important; }
body.body .site-nav-inline-icon { width: 17px; height: 17px; flex: 0 0 17px; }
body.body .site-nav-inline-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.body .hub-section,
body.body .search-content-panel,
body.body .vod-list-page-panel,
body.body .play-player-panel,
body.body .play-episode-panel,
body.body .play-keywords,
body.body .play-action-panel,
body.body .article-page > article {
  box-shadow: 0 10px 26px rgba(0,0,0,.16) !important;
}
body.body .av-title-bar { gap: 14px; }
body.body .av-title-bar h1,
body.body .av-title-bar h2 { letter-spacing: -.02em; }
body.body .av-card,
body.body .ai-video-card,
body.body .avlog-video-item,
body.body .random-video-item,
body.body .article-result,
body.body .rank-cycle button,
body.body .play-episode-item,
body.body .play-action-btn {
  transition-property: border-color, background-color, box-shadow;
  transition-duration: .16s;
}
body.body .av-card:hover,
body.body .ai-video-card:hover,
body.body .avlog-video-item:hover,
body.body .random-video-item:hover,
body.body .article-result:hover { transform: none; }
body.body .avlog-video-item:hover,
body.body .ai-video-card:hover,
body.body .random-video-item:hover { box-shadow: 0 10px 24px rgba(0,0,0,.2); }
body.body .site-footer { border-top-color: rgba(40,209,124,.2) !important; }
body.body :where(input, button, select, textarea) { accent-color: #28d17c; }
@media (max-width: 767px) {
  body.body .hub-section { box-shadow: none !important; }
  body.body .site-main-nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body.body *, body.body *::before, body.body *::after { transition: none !important; }
}
