* { box-sizing: border-box; }
body { margin: 0; color: #444; background: #fff; font-family: "Microsoft YaHei", Arial, sans-serif; }
.site-header { height: 76px; background: #fff; border-bottom: 1px solid #ececec; }
.header-inner, .content { width: 1200px; max-width: calc(100% - 32px); margin: 0 auto; }
.header-inner { height: 75px; display: flex; align-items: center; gap: 15px; color: #666; font-size: 16px; }
.brand { color: #168ee9; text-decoration: none; font-size: 27px; font-weight: bold; letter-spacing: 0; }
.content { padding: 34px 0 70px; }
.section-heading { display: flex; align-items: center; height: 38px; margin-bottom: 18px; border-bottom: 1px solid #e7e7e7; }
.section-heading span { width: 3px; height: 20px; margin-right: 10px; background: #0b90df; }
h1 { margin: 0 0 6px; font-size: 16px; font-weight: normal; color: #0b90df; }
.video-menu-list { border-top: 1px solid #e5e8ec; }
.video-menu { border-bottom: 1px solid #e5e8ec; }
.video-menu-toggle { display: flex; align-items: center; width: 100%; min-height: 58px; padding: 12px 18px; border: 0; color: #333; background: #fff; cursor: pointer; font: 15px "Microsoft YaHei", Arial, sans-serif; letter-spacing: 0; text-align: left; }
.video-menu-toggle:hover, .video-menu.is-open .video-menu-toggle { color: #0b90df; background: #f6fbff; }
.menu-code { flex: 0 0 46px; color: #168ee9; font-weight: bold; }
.menu-title { flex: 1 1 auto; min-width: 0; }
.menu-count { flex: 0 0 auto; margin-left: 16px; color: #9aa4ae; font-size: 13px; }
.menu-arrow { flex: 0 0 auto; width: 9px; height: 9px; margin: -4px 2px 0 18px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.video-menu.is-open .menu-arrow { margin-top: 5px; transform: rotate(225deg); }
.video-menu-panel { padding: 22px 18px 4px; background: #fafcff; }
.video-menu-panel[hidden] { display: none; }
.menu-empty { padding: 24px 0 36px; color: #8c96a0; text-align: center; font-size: 14px; }
.video-grid { margin-right: -24px; }
.video-grid:after { display: block; clear: both; content: ""; }
.video-card { display: block; float: left; width: calc(25% - 24px); height: 240px; margin: 0 24px 20px 0; overflow: hidden; padding: 0; border: 1px solid #e7e7e7; border-radius: 3px; color: #444; background: #fff; text-align: left; font-family: inherit; cursor: pointer; transition: transform .2s linear, border-color .2s linear; }
.video-card:hover { transform: translate3d(0, -2px, 0); border-color: #b9ddf7; }
.cover { position: relative; height: 160px; overflow: hidden; background: #173d5a; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.default-cover { position: absolute; inset: 0; background: linear-gradient(135deg, #2b87b7, #254a78); }
.default-cover:before, .default-cover:after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.24); transform: rotate(-26deg); }
.default-cover:before { width: 155px; height: 155px; right: -40px; top: -62px; }
.default-cover:after { width: 220px; height: 220px; left: -105px; bottom: -136px; }
.default-cover i { position: absolute; left: 17px; bottom: 16px; display: block; width: 84px; height: 5px; background: rgba(255,255,255,.55); z-index: 1; }
.play-icon { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.94); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .2s ease, transform .2s ease; }
.video-card:hover .play-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.play-icon:after { position: absolute; top: 12px; left: 17px; content: ""; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid #fff; }
.video-title { height: 78px; padding: 12px 10px; overflow: hidden; font-size: 14px; line-height: 25px; }
.video-card:hover .video-title { color: #0b90df; }
.empty { padding: 60px 0; color: #8c96a0; text-align: center; background: #fff; border: 1px solid #e6e8eb; }
.watch-page { background: #fff; }
.site-banner { width: 100%; overflow: hidden; background: #06265f; text-align: center; }
.site-banner img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.watch-topbar { position: relative; z-index: 2; height: 49px; background: #e1e3e6; }
.back-to-list { position: absolute; top: 8px; left: 30px; width: 76px; height: 32px; border: 1px solid #c3c3c3; border-radius: 3px; color: #353535; background: #f8f8f8; text-align: center; text-decoration: none; font-size: 14px; line-height: 30px; }
.back-to-list:hover { color: #0b90df; }
.now-playing { height: 49px; padding: 0 150px; overflow: hidden; color: #333; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 49px; }
.watch-layout { display: -ms-flexbox; display: flex; width: 100%; min-height: 600px; padding: 15px 35px 30px; gap: 42px; }
.watch-main { -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.watch-player { display: block; width: 100%; height: 500px; background: #111; object-fit: contain; }
.watch-title { margin: 0; padding: 20px 0 19px; border-bottom: 1px solid #ccc; color: #333; font-size: 18px; font-weight: normal; line-height: 1.25; }
.video-permalink { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #e5e8ec; color: #55616c; font-size: 13px; }
.video-permalink label { flex: 0 0 auto; }
.video-permalink input { flex: 1 1 auto; min-width: 0; height: 32px; padding: 5px 8px; border: 1px solid #ccd5dd; color: #4f5b66; background: #f8fafc; font: 13px Arial, sans-serif; }
.video-permalink button { flex: 0 0 auto; height: 32px; padding: 0 12px; border: 1px solid #a9cde6; color: #167ec7; background: #f3faff; cursor: pointer; font: 13px "Microsoft YaHei", Arial, sans-serif; }
.video-permalink button:hover { border-color: #168ee9; background: #e9f6ff; }
.watch-description { padding: 18px 0 30px; color: #555; font-size: 14px; line-height: 1.9; white-space: normal; font-family: "Microsoft YaHei", "Segoe UI Symbol", Arial, sans-serif; }
.description-image-list { margin: -10px 0 30px; }
.description-image-list img { display: block; max-width: 100%; height: auto; margin: 0 0 16px; border: 1px solid #e1e5e8; }
.description-inline-image { display: block; max-width: 100%; height: auto; margin: 14px 0; border: 1px solid #e1e5e8; }
.watch-sidebar { -ms-flex: 0 0 298px; flex: 0 0 298px; min-width: 0; }
.watch-sidebar h2 { margin: 0 0 9px; color: #333; font-size: 16px; font-weight: normal; line-height: 28px; }
.video-search { display: block; width: 100%; height: 34px; margin: 0 0 10px; padding: 6px 9px; border: 1px solid #ccd5dd; color: #444; background: #fff; font: 14px "Microsoft YaHei", Arial, sans-serif; line-height: 20px; }
.video-search-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; width: 100%; margin-bottom: 10px; }
.video-search-row .video-search { flex: 1 1 auto; min-width: 0; margin: 0; }
.video-search-clear { flex: 0 0 auto; height: 34px; padding: 0 9px; border: 1px solid #ccd5dd; color: #555; background: #f7f9fb; cursor: pointer; font: 13px "Microsoft YaHei", Arial, sans-serif; }
.video-search-clear:hover { color: #168ee9; border-color: #76bee9; }
.video-search:focus { border-color: #76bee9; outline: 0; }
.watch-list { max-height: 500px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.watch-directory { max-height: 500px; overflow-y: auto; border-top: 1px solid #e5e8ec; }
.directory-menu { border-bottom: 1px solid #e5e8ec; }
.directory-menu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; color: #3e4b56; background: #f7f9fb; cursor: pointer; font: 14px "Microsoft YaHei", Arial, sans-serif; text-align: left; }
.directory-menu-toggle:hover, .directory-menu.is-open .directory-menu-toggle { color: #168ee9; background: #eff8fe; }
.directory-menu-toggle i { width: 8px; height: 8px; margin: -4px 3px 0 10px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.directory-menu.is-open .directory-menu-toggle i { margin-top: 4px; transform: rotate(225deg); }
.directory-list { max-height: none; overflow: visible; background: #fff; }
.directory-list li { margin: 0; }
.directory-list a { min-height: 37px; padding: 7px 10px 7px 20px; }
.directory-empty { padding: 14px 10px 16px 20px; color: #9aa4ae; font-size: 13px; }
.watch-list li { margin: 0 0 8px; }
.watch-list a { display: flex; align-items: flex-start; min-height: 40px; padding: 8px 10px; color: #444; text-decoration: none; font-size: 14px; line-height: 22px; }
.watch-list a > span:last-child { flex: 1 1 auto; min-width: 0; }
.watch-list a:hover, .watch-list .active a { color: #76bee9; background: #f5f9fc; }
.watch-item-play { position: relative; flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 10px 0 0; border: 1px solid currentColor; border-radius: 50%; }
.watch-item-play:after { position: absolute; top: 4px; left: 6px; content: ""; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
@media (max-width: 980px) { .video-card { width: calc(33.333% - 24px); } }
@media (max-width: 680px) { .site-header { height: 58px; } .header-inner { height: 56px; } .content { padding-top: 24px; } .video-menu-toggle { min-height: 54px; padding: 10px 12px; } .menu-code { flex-basis: 40px; } .menu-count { margin-left: 8px; font-size: 12px; } .menu-arrow { margin-left: 12px; } .video-menu-panel { padding: 14px 12px 0; } .video-grid { margin-right: -14px; } .video-card { width: calc(50% - 14px); margin: 0 14px 14px 0; } .video-title { height: 50px; padding: 15px 10px; font-size: 14px; } }
@media (max-width: 390px) { .video-grid { margin-right: 0; } .video-card { float: none; width: 100%; margin-right: 0; } }
@media (max-width: 800px) { .watch-layout { display: block; padding: 12px 16px 28px; } .watch-player { height: auto; aspect-ratio: 16 / 9; } .watch-sidebar { margin-top: 22px; } .watch-directory { max-height: none; } .watch-list { max-height: none; } .now-playing { padding: 0 12px; text-align: center; font-size: 14px; } }
.admin-page { width: 1100px; max-width: calc(100% - 32px); margin: 30px auto; }
.admin-form { padding: 20px; border: 1px solid #e5e8ec; background: #fafcff; }
.admin-form label { display: block; margin-bottom: 15px; color: #555; font-size: 14px; }
.admin-form input, .admin-form select, .admin-form textarea { display: block; width: 100%; margin-top: 6px; padding: 9px; border: 1px solid #ccd5dd; font: inherit; }
.admin-form button { padding: 9px 30px; border: 0; color: #fff; background: #168ee9; cursor: pointer; }
.admin-image-list { display: flex; flex-wrap: wrap; gap: 16px; margin: -4px 0 18px; }
.admin-image-item { width: 180px; margin: 0 !important; padding: 8px; border: 1px solid #dce3e8; background: #fff; }
.admin-image-item img { display: block; width: 162px; height: 110px; margin-bottom: 8px; object-fit: cover; }
.admin-image-item span { font-size: 13px; }
.admin-image-item input { display: inline; width: auto; margin: 0 5px 0 0; }
.admin-table { width: 100%; margin-top: 25px; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid #e5e8ec; text-align: left; }
.admin-table a { color: #168ee9; }
