:root {
  --bg-color: #fff9fb;
  --primary-pink: #ffb7c5;
  --accent-yellow: #ffedbc;
  --text-color: #6a5d5d;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg-color); color: var(--text-color); font-family: "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; transition: color 0.3s, background-color 0.3s, transform 0.3s; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1130px; margin: 0 auto; padding: 0 15px; }

header { position: sticky; top: 0; z-index: 100; padding: 10px 0; background: #fff; box-shadow: 0 4px 15px rgba(255, 183, 197, 0.15); }
.header-content { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; width: 180px; height: 60px; flex-shrink: 0; align-items: center; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.search-wrapper { display: flex; width: 100%; max-width: 350px; justify-content: flex-end; }
.search-form { display: flex; width: 100%; align-items: center; overflow: hidden; padding: 3px; border: 2px solid var(--primary-pink); border-radius: 25px; background: #fff5f7; }
.search-input { min-width: 0; height: 34px; flex: 1; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search-btn { display: flex; width: 34px; height: 34px; flex-shrink: 0; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--primary-pink); color: #fff; cursor: pointer; font-size: 14px; }

.notice-bar { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 8px 0 5px; padding: 8px 15px; border: 1px dashed #f2e0ac; border-radius: 12px; background: #fffdf2; color: #8a6d3b; font-size: 14px; text-align: center; }
.notice-bar b { color: #f00; }
.nav-section { display: flex; flex-direction: column; gap: 8px; margin-top: 5px; }
.nav-row { display: flex; align-items: center; padding: 5px 15px; border: 1px solid #fff5f7; border-radius: 15px; background: #fff; box-shadow: 0 2px 8px rgba(255, 183, 197, 0.05); }
.nav-primary { flex-shrink: 0; margin-right: 15px; padding: 8px 15px; border-right: 2px solid var(--bg-color); color: #ff8fa3; font-size: 15px; font-weight: 700; white-space: nowrap; }
.nav-subs { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; }
.sub-item { padding: 4px 12px; border: 1px solid transparent; border-radius: 8px; background: #fffcfd; color: #888; font-size: 13px; white-space: nowrap; }
.nav-primary:hover, .sub-item:hover { color: #ff6f8b; background: #fff1f4; }

.footer-links { margin: 5px 0; padding: 18px; border: 2px dashed var(--accent-yellow); border-radius: 20px; background: #fff; }
.link-list { display: flex; flex-wrap: wrap; gap: 5px; }
.link-item { padding: 4px 10px; border: 1.5px solid #ffdee4; border-radius: 8px; background: #fffcfd; color: #777; font-size: 15px; font-weight: 700; text-align: center; }
.link-item:hover { color: #ff6f8b; border-color: #ffb7c5; }
.dynamic-flink { display: none; }
.hot-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 5px 0 15px 5px; }
.hot-tips { margin-right: 2px; color: #bbb; font-size: 13px; font-weight: 700; }
.hot-item { padding: 2px 6px; border: 1.5px solid #ffdee4; border-radius: 6px; background: #fff; color: #ff8fa3; font-size: 13px; font-weight: 700; }
.hot-item:hover { border-color: #ff9eb0; background: #fff3f6; }

.vod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 15px 0; }
.vod-item { min-width: 0; overflow: hidden; border-radius: 15px; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02); }
.vod-thumb { position: relative; width: 100%; height: 0; padding-bottom: 62.5%; overflow: hidden; background: #fdf2f4; }
.vod-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vod-remarks { position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 6px; overflow: hidden; border-radius: 5px; background: rgba(255, 143, 163, 0.92); color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vod-name { padding: 10px; overflow: hidden; font-size: 14px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.vod-item:hover { transform: translateY(-2px); }
.source-pager { display: flex; justify-content: center; gap: 6px; margin: 22px 0 30px; }
.source-pager a, .source-pager strong { display: inline-flex; min-width: 42px; height: 34px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #555; font-size: 13px; }
.source-pager strong { border-color: #333; background: #222; color: #fff; }
.category-item { margin: 28px 0; }
.category-head { display: flex; align-items: center; justify-content: space-between; }
.category-title, .page-heading h1, .related-section h2 { margin: 0; color: #5d5050; font-size: 23px; }
.page-heading { margin: 24px 0 8px; }

.mac-paging-container { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 30px 0; }
.mac-paging-container a, .mac-paging-container strong, .mac-paging-container .visible-xs { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #e1e1e1; border-radius: 4px; background: #fff; color: #333; font-size: 14px; }
.mac-paging-container strong { border-color: #ff5c7c; background: #ff5c7c; color: #fff; }
.empty-result { padding: 50px 20px; border-radius: 15px; background: #fff; color: #aaa; text-align: center; }

.detail-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; margin: 24px 0; padding: 20px; border-radius: 18px; background: #fff; }
.detail-poster { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: #fdf2f4; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { margin: 0 0 14px; color: #5d5050; font-size: 24px; }
.detail-copy p { margin: 8px 0; color: #9b8e8e; }
.detail-desc { margin-top: 16px; color: #776a6a; line-height: 1.8; }
.play-list-panel, .related-section { margin: 20px 0; padding: 20px; border-radius: 18px; background: #fff; }
.play-line + .play-line { margin-top: 20px; }
.play-line h2 { margin: 0 0 12px; color: #ff8fa3; font-size: 17px; }
.play-items { display: flex; flex-wrap: wrap; gap: 8px; }
.play-item { min-width: 76px; padding: 8px 14px; border: 1px solid #ffdee4; border-radius: 8px; background: #fff7f9; color: #7d6f6f; text-align: center; }
.play-item:hover { border-color: #ff8fa3; color: #ff6f8b; }
.player-box { width: 100%; min-height: 540px; overflow: hidden; border-radius: 16px; background: #000; }
.player-box iframe, .player-box video { display: block; width: 100% !important; min-height: 540px; border: 0; }
.related-section h2 { margin-bottom: 10px; font-size: 20px; }
.related-grid { margin-bottom: 0; }
.footer-links-empty { min-height: 30px; }

.mac-footer-wrapper { margin-top: 50px; padding: 30px 15px; border-top: 1px solid #eee; background: #f8f9fa; color: #6c757d; font-size: 13px; line-height: 2; text-align: center; }
.mac-footer-wrapper a { margin: 0 10px; color: #6c757d; }
.mac-footer-wrapper a:hover { color: #ff8d1b; }
.mac-footer-copy { margin-top: 10px; color: #adb5bd; }

@media (max-width: 768px) {
  .logo { width: 100px; height: 50px; }
  .search-wrapper { max-width: 170px; }
  .search-form { padding: 2px; }
  .search-input { height: 28px; padding: 0 8px; font-size: 12px; }
  .search-btn { width: 28px; height: 28px; font-size: 12px; }
  .notice-bar { margin-top: 6px; margin-bottom: 4px; padding: 6px; font-size: 12px; }
  .nav-section { gap: 5px; }
  .nav-row { flex-direction: column; align-items: flex-start; padding: 6px 10px; }
  .nav-primary { width: 100%; margin: 0 0 4px; padding: 2px 0; border-right: 0; border-bottom: 1px solid #fff0f3; font-size: 13px; }
  .nav-subs { display: grid; width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .sub-item { min-width: 0; padding: 3px 0; overflow: hidden; font-size: 11px; text-align: center; text-overflow: ellipsis; }
  .hot-keys { gap: 2px; margin: 5px 0 12px 2px; }
  .vod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .footer-links { padding: 12px 5px; }
  .link-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .link-item { min-width: 0; padding: 5px 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .category-title, .page-heading h1 { font-size: 20px; }
  .detail-card { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .detail-poster { max-height: 360px; }
  .detail-copy h1 { font-size: 20px; }
  .play-list-panel, .related-section { padding: 14px; }
  .player-box, .player-box iframe, .player-box video { min-height: 220px; }
  .mac-footer-wrapper { padding: 20px 10px; font-size: 12px; }
  .mac-footer-links { display: flex; flex-wrap: wrap; justify-content: center; }
  .hidden-xs { display: none !important; }
  .visible-xs { display: inline-flex !important; }
}

@media (min-width: 769px) {
  .visible-xs { display: none !important; }
}
