/* ============================================================
   gweb 门户网站 - 现代深色主题 (2026-11-16 重写)
   旧版备份: yjw_main.css.bak-20261115
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { min-height: 100%; }
body {
  background: #0d1117;
  color: #e6edf3;
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
a { color: #58a6ff; text-decoration: none; outline: none; }
a:hover { color: #79c0ff; }
:focus { outline: none; }

/* ---------- 顶部搜索条 ---------- */
#dybj { background: #aec; padding-top: 0; height: 50px; line-height: 50px; } /* 上下两条栏：浅蓝底，高度同主导航 */
#dyfl, .dy { width: auto; max-width: 1200px; margin: 0 auto; text-align: center; position: static; height: auto; overflow: visible; }
.dy { padding-left: 47px; font-size: 15px; font-weight: 700; display: flex; align-items: center; height: 50px; } /* 顶栏文字左缘对齐区块标题文字左缘（16+1+16+4+10）；字号字重同主导航；flex 垂直居中 */
.dy a { color: #57606a; padding: 4px 6px; border-radius: 6px; transition: .12s; float: none; display: inline-block; letter-spacing: 0; }
.dy a:hover { color: #58a6ff; background: rgba(88,166,255,.08); text-decoration: none; }
.dy span { color: #30363d; margin: 0 3px; float: none; display: inline-block; }

/* ---------- Logo（两张并排一行，宽度与磨砂框一致） ---------- */
#logo {
  display: flex; align-items: center; gap: 16px;
  max-width: 1200px; margin: 16px auto 0; padding: 0 16px;
}
.ttzuoce, .ttyouce { float: none; padding: 0; min-width: 0; }
#logo .ttzuoce:nth-child(1) { flex: 280 1 0; }
#logo .ttzuoce:nth-child(2) { flex: 680 1 0; }
#logo img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---------- 主导航条 ---------- */
#zhengwen {
  background: linear-gradient(90deg, #0e7490, #155e75 55%, #0e7490);
  margin-top: 14px; height: auto;
  border-top: 1px solid #164e63;
  border-bottom: 1px solid #164e63;
}
.new_nav { width: auto; max-width: 1200px; margin: 0 auto; text-align: center; overflow: visible; font-family: "Microsoft YaHei", sans-serif; }
.new_nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; line-height: 48px; height: auto; }
.new_nav ul li { display: inline-block; float: none; margin: 0 3px; width: auto; }
.new_nav ul li a { color: #fff; font-size: 15px; font-weight: 700; padding: 2px 10px; border-radius: 6px; transition: .12s; }
.new_nav ul li a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.new_nav ul li.current a { color: #fff; }

/* ---------- 区块标题（热门影视网站） ---------- */
.kandian { max-width: 1200px; margin: 28px auto 0; padding: 0 16px; text-align: left; }
.hotpanel { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 14px 16px 18px; }
.kandian-h .rq b { display: inline-block; font-size: 18px; color: #e6edf3; border-left: 4px solid #38bdf8; padding-left: 10px; line-height: 1.25; }

/* ---------- 图片卡片网格 ---------- */
#tupian ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
#tupian ul li { width: 150px; flex: 0 1 auto; background: #161b22; border: 1px solid #30363d; border-radius: 10px; overflow: hidden; transition: .15s; }
#tupian ul li:hover { transform: translateY(-3px); border-color: #38bdf8; box-shadow: 0 6px 18px rgba(56,189,248,.15); }
#tupian ul li div { height: 96px; display: flex; align-items: center; justify-content: center; background: #0d1117; padding: 6px; }
#tupian ul li a.db { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
#tupian ul li img { max-width: 100%; max-height: 84px; object-fit: contain; }
#tupian ul li h3 { font-size: 12px; font-weight: 600; color: #8b949e; text-align: center; padding: 7px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tupian ul li:hover h3 { color: #e6edf3; }

/* ---------- 广告位（空） ---------- */
#wza { height: 0; overflow: hidden; }

/* ---------- 文字链接区块 ---------- */
.classpage { max-width: 1200px; margin: 28px auto 0; padding: 0 16px; text-align: left; }
#classpage2 { width: auto; }
.middle2aa1 { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 14px 16px 18px; }
.middle2aa1_h { margin-bottom: 12px; }
.middle2aa1_h .fl { font-size: 18px; font-weight: 700; color: #e6edf3; border-left: 4px solid #38bdf8; padding-left: 10px; line-height: 1.3; }
.middle2aa1 ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.middle2aa1 ul li { min-width: 0; }
.middle2aa1 ul li span { display: none; }
.middle2aa1 ul li a {
  display: block; padding: 8px 12px; background: #0d1117; border: 1px solid #30363d;
  border-radius: 8px; color: #c9d1d9; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: .12s;
}
.middle2aa1 ul li a:hover { border-color: #38bdf8; color: #fff; background: #12212e; transform: translateX(2px); }

/* 子分类小标题（不可点击） */
.middle2aa1 ul li.subhead { grid-column: 1 / -1; }
.middle2aa1 ul li.subhead b {
  display: block;
  background: linear-gradient(90deg, rgba(56,189,248,.12), transparent 70%);
  border-left: 3px solid #38bdf8;
  color: #38bdf8; font-weight: 700; letter-spacing: 1px; font-size: 13px;
  padding: 10px 12px 6px; margin-top: 6px;
}

/* ---------- 页脚 ---------- */
#mimi, #fooda, #footer { width: auto; max-width: 1200px; margin: 32px auto 0; padding: 0 16px 40px; }
#footer .beihao { border-top: 1px solid #30363d; padding-top: 18px; text-align: center; }
#footer .ft_l p { color: #8b949e; font-size: 12px; line-height: 1.9; }
#footer a { color: #58a6ff; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  #logo img { max-width: 46vw; }
  .new_nav ul li a { font-size: 13px; padding: 2px 6px; }
  #tupian ul { gap: 8px; }
  #tupian ul li { width: 120px; }
  .middle2aa1 ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- 搜索框（吸顶） ---------- */
#searchbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,17,23,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #30363d;
}
.searchbar-in {
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
#siteSearch {
  flex: 1; min-width: 0;
  background: #0d1117; border: 1px solid #30363d; border-radius: 8px;
  color: #e6edf3; font-size: 15px; padding: 9px 14px; outline: none; transition: .12s;
}
#siteSearch:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.15); }
#siteSearch::placeholder { color: #484f58; }
#searchCount { color: #8b949e; font-size: 13px; white-space: nowrap; }
#searchClear { color: #58a6ff; font-size: 13px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
#searchClear:hover { background: rgba(88,166,255,.1); }
#noResult { display: none; text-align: center; color: #8b949e; padding: 40px 16px; font-size: 15px; }
