@@ -174,7 +174,7 @@ p{margin:10px 0}
174174}
175175.media video {width : 100% ; height : auto; display : block}
176176.media .media-small {background : # fff ; display : flex; align-items : center; justify-content : center; padding : 10px }
177- .media .media-small video .small-video {width : 60% ; max-width : 720px ; margin : 0 }
177+ .media .media-small video .small-video {width : 60% ; max-width : 720px ; margin : 0 ; height : auto; object-fit : contain; }
178178.grid2 {display : grid; grid-template-columns : 1fr 1fr ; gap : 12px }
179179.grid3 {display : grid; grid-template-columns : repeat (3 , 1fr ); gap : 10px }
180180@media (max-width : 860px ){ .grid2 {grid-template-columns : 1fr } .grid3 {grid-template-columns : 1fr 1fr } }
@@ -1470,3 +1470,111 @@ main .caption { opacity: 1 !important; }
14701470 margin-top : 0 ;
14711471 }
14721472}
1473+
1474+ /* ===== WeChat Video Play Hint ===== */
1475+ .video-play-overlay {
1476+ position : absolute;
1477+ top : 0 ;
1478+ left : 0 ;
1479+ width : 100% ;
1480+ height : 100% ;
1481+ display : flex;
1482+ align-items : center;
1483+ justify-content : center;
1484+ background : rgba (0 , 0 , 0 , 0.4 );
1485+ cursor : pointer;
1486+ opacity : 1 ;
1487+ transition : opacity 0.3s ease;
1488+ z-index : 5 ;
1489+ backdrop-filter : blur (2px );
1490+ }
1491+
1492+ .video-play-overlay .hide {
1493+ opacity : 0 ;
1494+ pointer-events : none;
1495+ }
1496+
1497+ .video-play-btn {
1498+ width : 80px ;
1499+ height : 80px ;
1500+ background : rgba (255 , 255 , 255 , 0.95 );
1501+ border-radius : 50% ;
1502+ display : flex;
1503+ align-items : center;
1504+ justify-content : center;
1505+ box-shadow : 0 4px 20px rgba (0 , 0 , 0 , 0.3 );
1506+ transition : all 0.3s ease;
1507+ }
1508+
1509+ .video-play-overlay : hover .video-play-btn {
1510+ transform : scale (1.1 );
1511+ background : rgba (255 , 255 , 255 , 1 );
1512+ }
1513+
1514+ .video-play-btn ::after {
1515+ content : '' ;
1516+ width : 0 ;
1517+ height : 0 ;
1518+ border-left : 24px solid # 1a73e8 ;
1519+ border-top : 14px solid transparent;
1520+ border-bottom : 14px solid transparent;
1521+ margin-left : 6px ;
1522+ }
1523+
1524+ /* Hero video wrapper needs position relative */
1525+ .hero-video {
1526+ position : relative;
1527+ }
1528+
1529+ /* Media wrappers need position relative for overlay */
1530+ .media {
1531+ position : relative;
1532+ }
1533+
1534+ /* Smaller play button for smaller videos */
1535+ .media .video-play-btn {
1536+ width : 60px ;
1537+ height : 60px ;
1538+ }
1539+
1540+ .media .video-play-btn ::after {
1541+ border-left : 18px solid # 1a73e8 ;
1542+ border-top : 11px solid transparent;
1543+ border-bottom : 11px solid transparent;
1544+ margin-left : 4px ;
1545+ }
1546+
1547+ /* Even smaller for carousel */
1548+ .carousel-card .video-play-btn {
1549+ width : 50px ;
1550+ height : 50px ;
1551+ }
1552+
1553+ .carousel-card .video-play-btn ::after {
1554+ border-left : 15px solid # 1a73e8 ;
1555+ border-top : 9px solid transparent;
1556+ border-bottom : 9px solid transparent;
1557+ margin-left : 3px ;
1558+ }
1559+
1560+ /* ===== 修复视频封面黑边问题 ===== */
1561+ video {
1562+ object-fit : cover;
1563+ background-color : # 000 ;
1564+ }
1565+
1566+ /* 确保视频填充满容器 */
1567+ .media video ,
1568+ .video-wrapper video ,
1569+ .hero-video video {
1570+ width : 100% ;
1571+ height : 100% ;
1572+ object-fit : cover;
1573+ }
1574+
1575+ /* 小视频特殊处理 - 完整显示封面不裁剪 */
1576+ .media .media-small video .small-video {
1577+ height : auto !important ;
1578+ object-fit : contain !important ;
1579+ background-color : transparent !important ;
1580+ }
0 commit comments