:root{--pink:#f2a4a9;--blue:#4b83cf;--navy:#171b29;--paper:#fff;--ink:#555;--line:#e6e6e6;--gutter:#eceded}
*{box-sizing:border-box}
html,body{margin:0;padding:0;max-width:100%;overflow-x:hidden}
body{background:var(--gutter);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:15px;line-height:1.45}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.site-header,.page-shell,.site-footer{width:1010px;max-width:calc(100% - 24px);margin-left:auto;margin-right:auto}
.site-header{height:94px;background:var(--navy);border-radius:4px 4px 0 0;overflow:hidden}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 0 0 16px;position:relative}
.logo{width:183px;height:88px;display:flex;align-items:center;flex:0 0 auto}
.logo img{width:183px;height:auto;max-height:88px;object-fit:contain}
.search-form{display:flex;width:205px;height:36px;margin-right:0;border-radius:22px;overflow:hidden;background:#fff}
.search-form input{min-width:0;flex:1;border:0;outline:0;padding:0 15px;color:#777;background:#fff;font:inherit}
.search-form button{width:58px;border:0;background:var(--pink);color:#fff;font:inherit;cursor:pointer}
.route-catalog{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.page-shell{background:#fff;min-height:500px;box-shadow:0 0 4px rgba(0,0,0,.05)}
.top-stack{padding-top:10px}
.category-matrix{border:1px solid #ededed;border-radius:4px 4px 0 0;background:#fff;overflow:hidden}
.category-row{min-height:53px;display:grid;grid-template-columns:96px repeat(8,minmax(0,1fr));align-items:center;border-bottom:1px solid var(--line);padding:0 8px;column-gap:5px}
.category-row:last-child{border-bottom:0}
.category-row strong{justify-self:start;padding:7px 9px;border:1px solid #f4c5c8;border-radius:5px;color:#ee9ca2;font-size:16px;font-weight:400;white-space:nowrap}
.category-row a{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:#555}
.category-row a:hover{color:#e59097}
.friend-matrix{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;padding:0 4px 14px;background:#fff}
.friend-matrix a{height:30px;display:flex;align-items:center;justify-content:center;background:var(--blue);color:#fff;border-radius:3px;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.friend-matrix a:nth-child(n+9){grid-column:span 1}
.video-section{padding:14px 18px 18px;border-top:1px solid #f0f0f0;background:#fff}
.section-title,.page-title{margin:0 0 8px;color:#111;font-size:20px;line-height:34px;font-weight:700}
.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 10px}
.video-card{min-width:0;margin:0}
.poster{display:block;position:relative;width:100%;aspect-ratio:237/150;background:#e5e5e5;border-radius:5px;overflow:hidden}
.poster .cover{width:100%;height:100%;object-fit:cover}
.poster .play-icon{position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%);opacity:.92}
.poster .date{position:absolute;right:5px;bottom:2px;color:#fff;font-size:12px;line-height:20px;text-shadow:0 1px 3px #000}
.video-card h3{margin:4px 0 0;font-size:14px;line-height:20px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#333}
.video-card h3 a{display:block;overflow:hidden;text-overflow:ellipsis}
.bottom-links{padding-top:10px;border-top:1px solid #eee}
.bottom-links .friend-matrix{padding-bottom:12px}
.site-footer{background:var(--navy);color:#ddd;min-height:105px;border-radius:0 0 4px 4px}
.footer-inner{padding:20px 18px;text-align:center}
.footer-inner p{margin:7px 0;font-size:13px}
.inner-page{padding:10px 18px 24px}
.inner-page>.category-matrix{margin:-1px -10px 0}
.inner-page>.friend-matrix{margin:0 -14px 10px}
.inner-page .page-title{margin-top:8px;border-left:4px solid var(--pink);padding-left:10px}
.list-grid{padding-bottom:24px}
.detail-panel{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;padding:18px 0;border-bottom:1px solid var(--line)}
.detail-cover{width:260px;height:350px;object-fit:cover;border-radius:5px;background:#eee}
.detail-copy h1{margin:0 0 18px;color:#222;font-size:24px}
.detail-copy p{margin:10px 0}
.summary{margin-top:16px;color:#666;line-height:1.8}
.route-panel{margin:18px 0;padding:16px;background:#fafafa;border:1px solid #eee;border-radius:5px}
.route-panel h2{margin:0 0 12px;color:#222;font-size:18px}
.route-list{display:flex;flex-wrap:wrap;gap:8px}
.route-list a{padding:7px 14px;border-radius:4px;background:var(--blue);color:#fff}
.player-box{width:100%;aspect-ratio:16/9;min-height:320px;background:#000;overflow:hidden}
.player-box iframe,.player-box video{width:100%!important;height:100%!important;border:0}
.paging{display:flex;justify-content:center;gap:6px;margin:18px 0}
.paging a{min-width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid #ddd;background:#fff;border-radius:3px}
.paging a.active{background:var(--pink);color:#fff;border-color:var(--pink)}
@media(max-width:720px){
  .site-header,.page-shell,.site-footer{width:100%;max-width:100%}
  .site-header{height:82px;border-radius:0}
  .header-inner{padding-left:14px;gap:16px}
  .logo{width:145px;height:80px}
  .logo img{width:145px;max-height:78px}
  .search-form{width:166px;height:40px;flex:0 0 166px}
  .search-form input{padding:0 12px;font-size:14px}
  .search-form button{width:50px;font-size:14px}
  .top-stack{padding-top:12px}
  .category-matrix{border-left:1px solid #eee;border-right:1px solid #eee;border-radius:0}
  .category-row{min-height:67px;grid-template-columns:92px repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,1fr);padding:4px;column-gap:2px}
  .category-row strong{grid-row:1/3;align-self:center;font-size:15px;padding:8px 7px}
  .category-row a{font-size:15px;line-height:28px}
  .friend-matrix{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:0 6px 14px}
  .friend-matrix a{height:36px;font-size:15px}
  .video-section{padding:19px 29px 22px}
  .section-title,.page-title{font-size:23px;line-height:40px;margin-bottom:7px}
  .video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:27px 13px}
  .poster{aspect-ratio:207/132}
  .video-card h3{font-size:15px;line-height:23px}
  .bottom-links{padding-top:8px}
  .footer-inner{padding:18px 14px}
  .inner-page{padding:8px 16px 22px}
  .inner-page>.category-matrix{margin:0 -16px}
  .inner-page>.friend-matrix{margin:0 -10px 10px}
  .detail-panel{grid-template-columns:110px minmax(0,1fr);gap:14px}
  .detail-cover{width:110px;height:154px}
  .detail-copy h1{font-size:19px;margin-bottom:8px}
  .detail-copy p{margin:5px 0;font-size:13px}
  .summary{grid-column:1/-1;margin-top:4px}
  .player-box{min-height:0}
}
@media(max-width:380px){
  .header-inner{gap:8px;padding-left:8px}
  .logo{width:137px}.logo img{width:137px}
  .search-form{width:158px;flex-basis:158px}
  .video-section{padding-left:22px;padding-right:22px}
  .category-row{grid-template-columns:88px repeat(4,minmax(0,1fr))}
  .category-row strong,.category-row a{font-size:14px}
}
