@charset "utf-8";
/* ============================================================
   果味影视 主题样式表
   style.css  ·  浅色列表 + 侧栏布局
   ============================================================ */

:root { --main: #2c7be5; --hover: #1a5fc4; --border: #eef0f3; --gray: #888; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body.u-body { font: 14px/1.6 "PingFang SC", "Microsoft YaHei", Arial; color: #333; background: #f3f4f7; }
a { color: #333; text-decoration: none; }
a:hover { color: var(--main); }
ul, ol, li { list-style: none; }
img { border: 0; max-width: 100%; display: block; }
button, input { font-family: inherit; outline: none; }
.u-box { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- 顶栏 ---------- */
.u-topbar { background: #fff; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--gray); }
.u-topbar .u-box { display: flex; justify-content: space-between; height: 34px; line-height: 34px; }
.u-topbar-r a { margin-right: 14px; color: var(--gray); }

/* ---------- 头部 ---------- */
.u-head { background: #fff; }
.u-head-in { display: flex; align-items: center; padding: 14px 15px; }
.u-brand { margin-right: 30px; }
.u-brand img { height: 46px; }
.u-brand-txt { font-size: 26px; font-weight: bold; color: var(--main); }
.u-search { flex: 1; display: flex; max-width: 520px; height: 40px; border: 2px solid var(--main); border-radius: 4px; overflow: hidden; }
.u-search-kw { flex: 1; border: 0; padding: 0 12px; font-size: 14px; }
.u-search-go { width: 78px; border: 0; background: var(--main); color: #fff; font-size: 15px; cursor: pointer; }
.u-menu-btn { display: none; margin-left: 14px; width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; font-size: 20px; color: var(--main); }

/* ---------- 导航 ---------- */
.u-nav { background: #fff; border-top: 1px solid var(--border); box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.u-nav-ul { display: flex; flex-wrap: wrap; }
.u-nav-li a { display: block; padding: 0 20px; line-height: 46px; font-size: 16px; }
.u-nav-li.cur a, .u-nav-li a:hover { color: var(--main); }
.u-nav-li.cur { border-bottom: 2px solid var(--main); }

/* ---------- 抽屉导航（移动端） ---------- */
.u-drawer { position: fixed; top: 0; right: -240px; width: 240px; height: 100%; background: #fff; box-shadow: -2px 0 10px rgba(0,0,0,.1); transition: right .3s; z-index: 1200; }
.u-drawer.open { right: 0; }
.u-drawer li a { display: block; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.u-drawer-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1100; }
.u-drawer-mask.show { display: block; }

/* ---------- 主布局：内容 + 侧栏 ---------- */
.u-layout { display: flex; gap: 20px; padding-top: 20px; padding-bottom: 30px; align-items: flex-start; }
.u-main { flex: 1; min-width: 0; }
.u-side { width: 280px; flex-shrink: 0; }

/* ---------- 焦点图 ---------- */
.u-focus { position: relative; border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.u-focus-item img { width: 100%; height: 320px; object-fit: cover; }
.u-focus-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.u-focus-info h2 { font-size: 22px; margin-bottom: 6px; }
.u-focus-info p { font-size: 13px; color: #ddd; }

/* ---------- 区块 ---------- */
.u-sec { margin-bottom: 24px; background: #fff; border-radius: 6px; padding: 16px; }
.u-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.u-sec-head h2 { font-size: 18px; position: relative; padding-left: 12px; }
.u-sec-head h2:before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: var(--main); border-radius: 2px; }
.u-sec-head a { font-size: 13px; color: var(--gray); }

/* ---------- 影片卡片列表 ---------- */
.u-vodlist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.u-vodlist-lg { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.u-voditem { min-width: 0; }
.u-vodpic { position: relative; display: block; border-radius: 5px; overflow: hidden; background: #f0f0f0; }
.u-vodpic img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .3s; }
.u-voditem:hover .u-vodpic img { transform: scale(1.05); }
.u-vodmark { position: absolute; right: 5px; top: 5px; background: var(--main); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; }
.u-vodscore { position: absolute; left: 6px; bottom: 6px; color: #ff9f43; font-weight: bold; font-size: 15px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.u-vodname { margin-top: 8px; font-size: 14px; }
.u-vodname a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-vodnote { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ---------- 侧栏组件 ---------- */
.u-widget { background: #fff; border-radius: 6px; margin-bottom: 20px; overflow: hidden; }
.u-widget-head { padding: 12px 16px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border); background: #fafbfc; }
.u-rank { padding: 8px 16px 16px; counter-reset: rk; }
.u-rank li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-rank li:before { counter-increment: rk; content: counter(rk); position: absolute; left: 0; top: 8px; width: 18px; height: 18px; line-height: 18px; text-align: center; background: #c9ced6; color: #fff; font-size: 12px; border-radius: 3px; }
.u-rank li:nth-child(-n+3):before { background: var(--main); }
.u-cateul { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.u-cateul li a { display: block; padding: 5px 12px; background: #f3f4f7; border-radius: 4px; font-size: 13px; }

/* ---------- 面包屑 / 子分类 ---------- */
.u-position { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.u-home-title { font-size: 22px; color: #222; margin: 0 0 14px; }
.u-home-title small { font-size: 13px; font-weight: normal; color: var(--gray); margin-left: 10px; }
.u-list-title { font-size: 18px; color: #222; margin: 0 0 14px; }
.u-position a { color: var(--gray); }
.u-position a:hover { color: var(--main); }
.u-subcate { background: #fff; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; }
.u-subcate span { color: var(--gray); margin-right: 8px; }
.u-subcate a { display: inline-block; padding: 3px 12px; margin: 3px 4px 3px 0; border-radius: 4px; background: #f3f4f7; }
.u-subcate a.cur { background: var(--main); color: #fff; }

/* ---------- 详情页 ---------- */
.u-desc { display: flex; background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.u-desc-pic { width: 220px; flex-shrink: 0; margin-right: 22px; }
.u-desc-pic img { width: 100%; height: auto; border-radius: 5px; }
.u-desc-info { flex: 1; }
.u-desc-info h1 { font-size: 24px; margin-bottom: 12px; }
.u-tag { display: inline-block; font-size: 13px; color: var(--main); border: 1px solid var(--main); border-radius: 3px; padding: 0 8px; vertical-align: middle; }
.u-desc-mx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; color: var(--gray); margin-bottom: 12px; }
.u-desc-mx span { color: #333; }
.u-desc-mx div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-desc-mx .u-score { color: #ff9f43; font-weight: bold; }
.u-desc-blurb { color: #666; line-height: 1.8; overflow-wrap: break-word; }
.u-desc-btn { margin-top: 16px; }
.u-desc-btn a { display: inline-block; padding: 9px 30px; background: var(--main); color: #fff; border-radius: 24px; font-size: 15px; }
.u-desc-btn a:hover { color: #fff; background: var(--hover); }

/* ---------- 选集播放 ---------- */
.u-playbox, .u-con { background: #fff; border-radius: 6px; padding: 16px 20px; margin-bottom: 20px; }
.u-playbox-head h2, .u-con h2 { font-size: 18px; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--main); }
.u-plate { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.u-plate-tab { padding: 5px 14px; border-radius: 4px; cursor: pointer; background: #f3f4f7; font-size: 14px; }
.u-plate-tab.cur { background: var(--main); color: #fff; }
.u-plate-lists .u-dl { display: none; flex-wrap: wrap; gap: 10px; }
.u-plate-lists .u-dl.cur { display: flex; }
.u-dl li a { display: block; padding: 6px 14px; background: #f3f4f7; border-radius: 4px; font-size: 13px; }
.u-dl li a:hover { background: var(--main); color: #fff; }
.u-con-text { color: #666; line-height: 1.9; overflow-wrap: break-word; word-break: break-all; }

/* ---------- 评论 ---------- */
.u-pj { background: #fff; border-radius: 6px; padding: 16px 20px; }
.u-pj-list li { display: flex; padding: 14px 0; border-bottom: 1px solid var(--border); }
.u-pj-face { width: 42px; height: 42px; border-radius: 50%; margin-right: 12px; object-fit: cover; }
.u-pj-name b { color: #333; }
.u-pj-name time { color: #aaa; font-size: 12px; margin-left: 10px; }
.u-pj-txt { color: #666; margin-top: 4px; overflow-wrap: break-word; }

/* ---------- 播放页 ---------- */
.u-play-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 15px 30px; }
.u-play-bar { margin-bottom: 12px; }
.u-play-title { font-size: 22px; margin-top: 6px; }
.u-player { background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; margin-bottom: 16px; }
#mse, #mse video { width: 100%; height: 100%; }
.u-play-wrap .u-sec, .u-play-wrap .u-con { background: #fff; border-radius: 6px; padding: 16px 20px; margin-bottom: 20px; }

/* ---------- 文章 ---------- */
.u-article { background: #fff; border-radius: 6px; padding: 24px; margin-bottom: 20px; }
.u-article h1 { font-size: 24px; margin-bottom: 10px; }
.u-article-sub { color: var(--gray); font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.u-article-body { font-size: 16px; line-height: 1.9; color: #444; }
.u-article-body p { margin-bottom: 12px; }
.u-articleitem { display: flex; background: #fff; border-radius: 6px; padding: 14px; margin-bottom: 14px; }
.u-articleitem-pic { width: 170px; flex-shrink: 0; margin-right: 16px; border-radius: 5px; overflow: hidden; }
.u-articleitem-pic img { width: 100%; height: 110px; object-fit: cover; }
.u-articleitem-txt h2 { font-size: 17px; margin-bottom: 8px; }
.u-articleitem-txt p { color: var(--gray); line-height: 1.7; }
.u-articleitem-time { color: #bbb; font-size: 12px; margin-top: 6px; display: block; }

/* ---------- 分页 ---------- */
.u-page { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.u-page a, .u-page-cur, .u-page-more { display: inline-block; min-width: 34px; height: 34px; line-height: 34px; text-align: center; padding: 0 10px; background: #fff; border-radius: 4px; }
.u-page-cur, .u-page a:hover { background: var(--main); color: #fff; }

/* ---------- 搜索提示 ---------- */
.u-result-bar { background: #fff; border-radius: 6px; padding: 14px 18px; margin-bottom: 18px; color: var(--gray); }
.u-result-bar em { font-style: normal; color: var(--main); }
.u-result-bar strong { color: #ff9f43; }

/* ---------- 友情链接 & 页脚 ---------- */
.u-flinks { background: #fff; padding: 18px 0; }
.u-flinks-t { font-weight: 600; margin-bottom: 10px; }
.u-flinks-b a { display: inline-block; margin: 4px 14px 4px 0; color: var(--gray); font-size: 13px; }
.u-foot { background: #2b2f38; color: #9aa0ab; padding: 24px 0; margin-top: 20px; font-size: 13px; }
.u-foot-nav { margin-bottom: 12px; }
.u-foot-nav a { margin-right: 16px; color: #c4c9d2; }
.u-foot-txt p { line-height: 1.9; }
.u-foot-txt a { color: #c4c9d2; }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1024px) {
    .u-vodlist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .u-vodlist-lg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media screen and (max-width: 860px) {
    .u-layout { flex-direction: column; }
    .u-side { width: 100%; }
}
@media screen and (max-width: 768px) {
    .u-head-in { flex-wrap: wrap; padding: 10px 15px; }
    .u-brand { margin-right: 12px; }
    .u-brand img { height: 36px; }
    .u-brand-txt { font-size: 20px; }
    .u-menu-btn { display: block; margin-left: auto; }
    .u-search { order: 3; flex: 0 0 100%; max-width: none; height: 38px; margin-top: 10px; }
    .u-nav-ul { flex-wrap: nowrap; overflow-x: auto; }
    .u-nav-li { flex-shrink: 0; }
    .u-nav-li a { padding: 0 14px; white-space: nowrap; font-size: 15px; }
    .u-focus-item img { height: 200px; }
    .u-focus-info h2 { font-size: 18px; }
    .u-focus-info p { display: none; }
    .u-vodlist, .u-vodlist-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .u-desc { flex-direction: column; }
    .u-desc-pic { width: 150px; margin: 0 auto 14px; }
    .u-desc-info h1 { font-size: 20px; }
    .u-desc-mx { grid-template-columns: 1fr; }
    .u-articleitem-pic { width: 120px; }
    .u-articleitem-pic img { height: 80px; }
    .u-play-title { font-size: 18px; }
}
@media screen and (max-width: 480px) {
    .u-vodlist, .u-vodlist-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .u-box { padding: 0 10px; }
    .u-head-in { padding: 10px; }
    .u-sec, .u-playbox, .u-con, .u-pj { padding: 12px; }
    .u-vodname { font-size: 13px; }
    .u-desc { padding: 14px; }
    .u-desc-pic { width: 120px; }
    .u-article h1 { font-size: 20px; }
    .u-flinks-b a { display: inline-block; margin: 4px 10px 4px 0; }
}
