/* 
 * DuoYou TV Theme - Global Style
 * 路径: /staticmy/mb03/css/style.css
 */
:root {
    --templatecolor: #9F02F2; 
    --templatecolor1: rgba(159, 2, 242, 0.1);
    --backgroundcolor: #FFFFFF;
    --text-color: #333333;
    --gray-color: #888888;
    --border-color: #EEEEEE;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--backgroundcolor); color: var(--text-color); font-size: 14px; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--templatecolor); }

/* 顶部导航 */
header { position: sticky; top: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 100; }
.nav_box { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 15px; }
.logo { font-size: 18px; font-weight: bold; color: var(--templatecolor); display: flex; align-items: center; }
.logo i { font-size: 24px; margin-right: 5px; }
.menu_box .menu, .menu { display: flex; gap: 20px; }
.menu .label { display: flex; align-items: center; gap: 5px; color: var(--text-color); font-size: 15px; }
.menu .label.active, .menu .label:hover { color: var(--templatecolor); }
.right_actions { display: flex; align-items: center; gap: 15px; }
.down_app { background: var(--templatecolor1); color: var(--templatecolor); padding: 5px 12px; border-radius: 15px; font-size: 13px; font-weight: 500; }
.sarch .input { display: flex; align-items: center; background: #f5f5f5; padding: 6px 12px; border-radius: 20px; color: var(--gray-color); }
.sarch .input input { border: none; background: transparent; outline: none; margin-left: 5px; width: 120px; }

/* 主内容与通用列表 */
main { max-width: 1200px; margin: 0 auto; padding: 15px; }
.data_list { margin-bottom: 40px; }
.data_list .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.head .cat_txt, .data_list .head { font-size: 18px; font-weight: bold; border-left: 4px solid var(--templatecolor); padding-left: 10px; line-height: 1; }
.more { color: var(--gray-color); font-size: 13px; display: flex; align-items: center; }
.item_list { display: flex; flex-wrap: wrap; gap: 15px; }
.item_list .vlink { width: calc((100% - 45px) / 4); display: block; margin-bottom: 10px; }
.vlink .img { position: relative; width: 100%; padding-top: 60%; border-radius: 8px; overflow: hidden; background-color: #f0f0f0; }
.vlink .img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.vlink:hover .img img { transform: scale(1.05); }
.vlink .img span { position: absolute; bottom: 5px; right: 5px; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 12px; display: flex; align-items: center; gap: 3px; }
.vlink .title { margin-top: 8px; font-size: 14px; color: var(--text-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }

/* 播放页独有样式 */
.breadcrumb { font-size: 13px; color: var(--gray-color); margin-bottom: 15px; }
.breadcrumb a:hover { color: var(--templatecolor); }
.breadcrumb i { margin: 0 5px; font-size: 12px; }
.player_box { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: flex; justify-content: center; align-items: center; color: #fff; margin-bottom: 20px; overflow: hidden; position: relative; }
.player_box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video_info { padding-bottom: 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.video_title { font-size: 24px; font-weight: bold; margin-bottom: 10px; }
.video_meta { display: flex; gap: 20px; color: var(--gray-color); font-size: 13px; margin-bottom: 15px; }
.video_desc { font-size: 14px; color: #555; line-height: 1.6; background: #fafafa; padding: 15px; border-radius: 8px;}
.episodes { margin-bottom: 30px; }
.episodes .head { font-size: 16px; font-weight: bold; margin-bottom: 10px; }
.ep_list { display: flex; flex-wrap: wrap; gap: 10px; }
.ep_list a { display: inline-block; padding: 8px 20px; background: #f5f5f5; border-radius: 4px; font-size: 14px; color: #555; transition: 0.2s; }
.ep_list a:hover { background: var(--templatecolor1); color: var(--templatecolor); }
.ep_list a.active { background: var(--templatecolor); color: #fff; }

/* 列表页独有样式 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; margin-bottom: 20px; flex-wrap: wrap;}
.pagination a { padding: 8px 14px; border: 1px solid var(--border-color); border-radius: 4px; color: #555; font-size: 14px; transition: 0.2s; }
.pagination a:hover, .pagination a.active { background: var(--templatecolor); color: #fff; border-color: var(--templatecolor); }

/* 底部 */
footer { text-align: center; padding: 30px 15px; color: var(--gray-color); font-size: 12px; line-height: 2; border-top: 1px solid var(--border-color); background: #fafafa; }

/* 响应式 */
@media screen and (max-width: 768px) {
    .item_list .vlink { width: calc((100% - 15px) / 2); }
    .menu_box, .menu { display: none; }
    .right_actions { flex: 1; justify-content: flex-end; }
    .sarch .input input { width: 80px; }
    .video_title { font-size: 20px; }
}