/*
Theme Name: 电影天堂 MovieHeaven
Theme URI: http://aclpharma.net/
Author: MovieHeaven Team
Description: 致敬经典电影天堂风格的影视资讯主题。红色头部横幅 + 蓝色导航 + 海报网格列表，自带电影详情页、下载链接区、侧边栏热门排行与分类导航，适合影视资讯、电影下载站使用。
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: movieheaven
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}
a { color: #1559b7; text-decoration: none; }
a:hover { color: #c00; }
img { max-width: 100%; height: auto; border: 0; }

/* ===== 顶部红色横幅 ===== */
.mh-topbar {
  background: linear-gradient(180deg, #d40000 0%, #a00000 100%);
  color: #fff;
  padding: 18px 0;
  border-bottom: 3px solid #ffcc00;
}
.mh-topbar .wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 15px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.mh-logo { font-size: 32px; font-weight: 900; letter-spacing: 2px; color: #fff; text-shadow: 2px 2px 0 #600; }
.mh-logo span { color: #ffcc00; }
.mh-slogan { font-size: 13px; margin-top: 4px; opacity: .9; }
.mh-topbar .mh-search-form input[type=text] {
  padding: 8px 12px; border: 0; border-radius: 3px 0 0 3px; width: 220px; outline: none;
}
.mh-topbar .mh-search-form button {
  padding: 8px 18px; background: #ffcc00; border: 0; border-radius: 0 3px 3px 0;
  cursor: pointer; font-weight: bold; color: #800;
}

/* ===== 主导航 ===== */
.mh-nav {
  background: #1a3c6e;
  border-bottom: 2px solid #0d2444;
}
.mh-nav .wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.mh-nav ul { list-style: none; display: flex; flex-wrap: wrap; }
.mh-nav li a {
  display: block; color: #fff; padding: 11px 22px; font-size: 15px; font-weight: bold;
  border-right: 1px solid #0d2444;
}
.mh-nav li a:hover, .mh-nav li.current-menu-item a { background: #c00; color: #fff; }

/* ===== 主体容器 ===== */
.mh-wrap { max-width: 1200px; margin: 20px auto; padding: 0 15px; display: flex; gap: 20px; }
.mh-main { flex: 1; min-width: 0; background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.mh-side { width: 300px; flex-shrink: 0; }

/* ===== 区块标题 ===== */
.mh-block-title {
  background: #c00; color: #fff; padding: 8px 14px; font-size: 16px; font-weight: bold;
  border-radius: 3px 3px 0 0; margin-bottom: 0;
  border-left: 5px solid #ffcc00;
}
.mh-block-title .more { float: right; font-size: 12px; font-weight: normal; color: #ffd; }

/* ===== 首页电影列表 ===== */
.mh-post-list { border: 1px solid #e5e5e5; border-top: 0; }
.mh-post-item {
  display: flex; gap: 15px; padding: 15px; border-bottom: 1px dashed #ddd;
}
.mh-post-item:last-child { border-bottom: 0; }
.mh-post-thumb {
  width: 110px; height: 150px; flex-shrink: 0; background: #eee;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 3px;
}
.mh-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mh-post-thumb .no-thumb { color: #aaa; font-size: 12px; }
.mh-post-body h2 { font-size: 17px; margin-bottom: 6px; }
.mh-post-body h2 a { color: #1559b7; }
.mh-post-body h2 a:hover { color: #c00; }
.mh-post-meta { font-size: 12px; color: #999; margin-bottom: 6px; }
.mh-post-meta span { margin-right: 10px; }
.mh-post-excerpt { font-size: 13px; color: #555; }
.mh-post-excerpt .dl {
  display: inline-block; margin-top: 6px; padding: 2px 10px; background: #ffcc00;
  color: #800; border-radius: 3px; font-size: 12px; font-weight: bold;
}

/* ===== 分页 ===== */
.mh-pagination { padding: 15px 0; text-align: center; }
.mh-pagination .page-numbers {
  display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid #ddd;
  border-radius: 3px; color: #1559b7;
}
.mh-pagination .current { background: #c00; color: #fff; border-color: #c00; }

/* ===== 侧边栏 ===== */
.mh-widget {
  background: #fff; border-radius: 4px; margin-bottom: 20px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.mh-widget ul { list-style: none; padding: 10px 15px; }
.mh-widget ul li {
  padding: 7px 0; border-bottom: 1px dashed #eee; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mh-widget ul li:last-child { border-bottom: 0; }
.mh-widget ul li::before { content: "▸ "; color: #c00; }
.mh-widget .tagcloud { padding: 10px 15px; }
.mh-widget .tagcloud a {
  display: inline-block; padding: 2px 8px; margin: 2px; background: #f0f2f5;
  border-radius: 3px; font-size: 12px;
}

/* ===== 文章详情 ===== */
.mh-single h1 { font-size: 24px; color: #222; margin-bottom: 10px; line-height: 1.4; }
.mh-single .meta { font-size: 12px; color: #999; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.mh-single .meta span { margin-right: 12px; }
.mh-single .entry-content { font-size: 15px; line-height: 1.9; }
.mh-single .entry-content p { margin-bottom: 12px; }
.mh-single .entry-content img { border-radius: 3px; }
.mh-download-box {
  background: #fffbe6; border: 1px solid #ffe58f; border-left: 5px solid #faad14;
  padding: 12px 15px; margin: 15px 0; border-radius: 3px;
}
.mh-download-box a { color: #c00; font-weight: bold; }
.mh-post-nav { margin-top: 25px; padding-top: 15px; border-top: 1px solid #eee; font-size: 13px; }
.mh-post-nav div { margin-bottom: 5px; }

/* ===== 页脚 ===== */
.mh-footer {
  background: #1a3c6e; color: #cdd8ea; margin-top: 30px; padding: 20px 0;
  text-align: center; font-size: 13px;
}
.mh-footer a { color: #ffcc00; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .mh-wrap { flex-direction: column; }
  .mh-side { width: 100%; }
  .mh-topbar .wrap { flex-direction: column; gap: 10px; text-align: center; }
}

/* ===== 广告位 ===== */
.ad-banner { margin: 18px 0; text-align: center; }
.ad-banner img {
  max-width: 100%; border-radius: 8px;
  border: 1px solid #e5e5e5; box-shadow: 0 3px 12px rgba(0,0,0,.08);
}
.ad-post { margin: 24px 0 4px; }
.ad-float {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 9999; width: 340px; max-width: calc(100vw - 24px);
  animation: adFloatIn .45s ease;
}
.ad-float img {
  display: block; width: 100%; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.ad-float-close {
  position: absolute; top: -12px; right: -12px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: #d40000; color: #fff; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
@keyframes adFloatIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 640px) {
  .ad-float { width: 300px; max-width: calc(100vw - 20px); left: 50%; right: auto; bottom: 10px; }
}
