﻿@charset "utf-8";

/* ============================================
   MACCMS 现代化响应式模板 - 全局样式
   Version: 2.0
   Author: AI Assistant
   Last Update: 2026-01-03
   ============================================ */

/* ============================================
   CSS 变量 - 主题配置
   ============================================ */
:root {
    /* 主色调 */
    --primary-color: #667eea;
    --primary-dark: #5a6fd6;
    --primary-light: #8b9cf5;
    --secondary-color: #764ba2;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* 文字颜色 */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    /* 背景颜色 */
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-dark: rgba(0, 0, 0, 0.05);
    
    /* 边框颜色 */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* 阴影 - 优化为更轻量的阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 4px 16px rgba(0, 0, 0, 0.06);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* 动画 - GPU加速的动画时间 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    
    /* 容器宽度 */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    
    /* Z-index 层级 */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    
    /* 动画延迟变量 - 用于列表项交错动画 */
    --stagger-delay: 0.03s;
}

/* ============================================
   CSS Reset & 基础样式
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    /* 启用硬件加速 */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 性能优化：减少不必要的重绘 */
    text-size-adjust: 100%;
}

/* ============================================
   性能优化：GPU加速和布局隔离
   ============================================ */
   
/* 启用GPU加速的动画元素 */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 布局隔离 - 减少重排范围 */
.contain-layout {
    contain: layout;
}

.contain-paint {
    contain: paint;
}

.contain-strict {
    contain: strict;
}

/* 内容可见性优化 - 延迟渲染屏幕外内容 */
.content-auto {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
}

/* 列表重置 */
ul, ol, li, dl, dt, dd {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

/* 表单元素 */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input:focus, select:focus, textarea:focus, button:focus {
    outline: none;
}

textarea {
    resize: vertical;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* 段落和文本 */
p {
    margin: 0 0 1em;
}

em, i {
    font-style: normal;
}

strong, b {
    font-weight: 600;
}

/* ============================================
   工具类
   ============================================ */
.fl { float: left; }
.fr { float: right; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* 仅在移动端显示/隐藏 */
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
}

/* ============================================
   容器布局
   ============================================ */
.container, .warp, .wp {
    width: 100%;
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (max-width: 768px) {
    .container, .warp, .wp {
        padding: 0 var(--space-sm);
    }
}

/* ============================================
   现代化卡片组件 - 性能优化版
   ============================================ */
.ibox, .card {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    /* 性能优化：只对transform和shadow做过渡 */
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    /* 布局隔离减少重排 */
    contain: layout style;
    /* GPU加速准备 */
    will-change: transform;
}

/* 仅在支持的设备上启用backdrop-filter */
@supports (backdrop-filter: blur(8px)) {
    .ibox, .card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.ibox:hover, .card:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-xl);
}

/* 移动端禁用hover效果的transform以提升性能 */
@media (hover: none) {
    .ibox:hover, .card:hover {
        transform: none;
    }
}

/* ============================================
   面包屑导航 - 性能优化版
   ============================================ */
.nvc {
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* 布局隔离 */
    contain: layout style;
}

@supports (backdrop-filter: blur(8px)) {
    .nvc {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.nvc dl {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.nvc dt {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.nvc dt span {
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.nvc dd {
    color: var(--text-secondary);
    font-size: 14px;
}

.nvc dd a {
    color: var(--primary-color);
    font-weight: 500;
}

.nvc dd a:hover {
    text-decoration: underline;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 4px solid var(--text-muted);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin: 0 4px;
}

/* ============================================
   下拉菜单导航 - 桌面端 - 性能优化版
   ============================================ */
.sddm {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: var(--z-sticky);
    /* 固定定位优化 */
    contain: layout style;
}

#sddm {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    min-height: 50px;
}

#sddm li {
    position: relative;
    display: flex;
    align-items: center;
}

#sddm li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 13px;
    /* 只对background和color过渡 */
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

#sddm li > a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 下拉子菜单 - 两列布局 - 性能优化 */
#sddm li div {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px) translateZ(0);
    /* GPU加速的过渡 */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: var(--z-dropdown);
    padding: 10px;
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    /* 提前告知浏览器将要改变的属性 */
    will-change: opacity, transform;
    /* 布局隔离 */
    contain: layout style paint;
}

#sddm li:hover div,
#sddm li div:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

#sddm li div a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    text-align: center;
    background: #f8fafc;
}

#sddm li div a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: scale(1.02);
}

/* 移动端汉堡菜单 */
.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 12px;
    cursor: pointer;
    background: transparent;
    border: none;
    position: relative;
    z-index: var(--z-modal);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    /* 移动端导航样式已在 head.html 中定义，这里只做补充 */
    .sddm {
        padding: 0;
    }
}

/* ============================================
   顶部区域样式
   ============================================ */
.xing_top {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.xing_top li {
    display: flex;
    align-items: center;
}

.xing_top_left {
    flex-shrink: 0;
}

.xing_top_left img {
    max-height: 60px;
    width: auto;
    transition: transform var(--transition-normal);
}

.xing_top_left img:hover {
    transform: scale(1.05);
}

.xing_top_center {
    flex: 1;
    min-width: 300px;
}

.xing_top_right {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .xing_top {
        flex-direction: column;
        text-align: center;
    }
    
    .xing_top_center {
        width: 100%;
        min-width: auto;
    }
}

/* ============================================
   搜索框样式
   ============================================ */
.search {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-inner {
    position: relative;
}

.search-text {
    width: 100%;
    padding: 14px 120px 14px 45px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary) url(../images/share.png) 15px center no-repeat;
    background-size: 20px;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.search-text:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-text::placeholder {
    color: var(--text-light);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 25px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* 搜索自动完成 */
.ac_results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-top: var(--space-sm);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.ac_results ul {
    max-height: 300px;
    overflow-y: auto;
}

.ac_results li {
    padding: 12px 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

.ac_results li:last-child {
    border-bottom: none;
}

.ac_results li:hover,
.ac_over {
    background: var(--bg-primary);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .search-text {
        padding: 12px 100px 12px 40px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* ============================================
   列表区域样式 - 性能优化版
   ============================================ */
.xing_vb {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    /* 布局隔离 */
    contain: layout style;
}

.xing_vb ul {
    border-bottom: 1px solid var(--border-light);
}

.xing_vb ul:last-child {
    border-bottom: none;
}

.xing_vb li {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
    /* 只对transform和background过渡 */
    transition: transform var(--transition-fast), background var(--transition-fast);
    /* 布局隔离 */
    contain: layout style;
}

.xing_vb .list-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--border-color);
}

.xing_vb .list-header li {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.xing_vb .list-item:hover {
    background: var(--bg-primary);
    transform: translateX(4px) translateZ(0);
}

/* 移动端禁用transform动画 */
@media (hover: none) {
    .xing_vb .list-item:hover {
        transform: none;
    }
}

/* 列表列宽 */
.xing_vb1, .xing_vb4 {
    flex: 1;
    min-width: 0;
}

.xing_vb2, .xing_vb5 {
    width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.xing_vb3, .xing_vb6, .xing_vb7 {
    width: 120px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.xing_vb4 a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color var(--transition-fast);
}

.xing_vb4 a:hover {
    color: var(--primary-color);
}

.xing_vb5 {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.tt {
    display: none;
}

.new {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .xing_vb li {
        padding: var(--space-sm) var(--space-md);
        flex-wrap: wrap;
    }
    
    .xing_vb1, .xing_vb4 {
        width: 100%;
        flex: none;
        order: 1;
    }
    
    .xing_vb2, .xing_vb5 {
        width: auto;
        order: 2;
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .xing_vb3, .xing_vb6, .xing_vb7 {
        width: auto;
        order: 3;
        font-size: 11px;
    }
    
    .xing_vb4 a {
        font-size: 14px;
    }
    
    .xing_vb .list-header {
        display: none;
    }
}

/* ============================================
   视频详情页
   ============================================ */
.vod {
    padding: var(--space-lg);
}

.vodBox {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.vodImg {
    flex-shrink: 0;
    width: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.vodImg img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.vodImg:hover img {
    transform: scale(1.05);
}

.vodImg b {
    display: none;
}

.vodInfo {
    flex: 1;
    min-width: 0;
}

.vodh {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-light);
}

.vodh h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    word-break: break-word;
}

.vodh span {
    color: var(--text-muted);
    font-size: 14px;
}

.vodh label {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
}

.vodinfobox ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.vodinfobox li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.vodinfobox li:last-child {
    border-bottom: none;
}

.vodinfobox li span:first-child {
    color: var(--text-muted);
    min-width: 70px;
    flex-shrink: 0;
}

.vodinfobox li span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.vodinfobox li a {
    color: var(--primary-color);
    margin-right: var(--space-xs);
}

.vodinfobox li a:hover {
    text-decoration: underline;
}

.vodAd {
    display: none;
}

@media (max-width: 768px) {
    .vod {
        padding: var(--space-md);
    }
    
    .vodBox {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }
    
    .vodImg {
        width: 180px;
    }
    
    .vodInfo {
        width: 100%;
    }
    
    .vodh h2 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .vodh label {
        float: none;
        display: block;
        text-align: center;
        margin-top: var(--space-sm);
    }
}

/* ============================================
   播放区域
   ============================================ */
.playBox {
    padding: var(--space-lg);
}

.playBar {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-light);
}

.playBar strong {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.playBar strong::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.playBar p {
    display: inline-block;
    margin: var(--space-sm) var(--space-sm) var(--space-sm) 0;
}

.playBar p a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.playBar p.active a,
.playBar p.on a,
.playBar p a:hover {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.vodplayinfo {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.vodplayinfo a {
    color: var(--primary-color);
}

.stringns {
    color: var(--text-muted);
    padding: var(--space-md) 0;
    margin-top: var(--space-md);
    border-top: 1px dashed var(--border-color);
}

.stringns p {
    text-indent: 2em;
    line-height: 1.8;
}

.snvtvs {
    padding: var(--space-md) var(--space-lg);
    line-height: 1.8;
}

.snvtvs p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .playBox {
        padding: var(--space-md);
    }
    
    .playBar strong {
        font-size: 1rem;
    }
    
    .playBar p a {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .vodplayinfo {
        padding: var(--space-md);
    }
}

/* ============================================
   播放按钮 - 性能优化版
   ============================================ */
.play-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    /* 只对transform和shadow过渡 */
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-md);
    margin: var(--space-xs);
    position: relative;
    overflow: hidden;
    /* GPU加速 */
    will-change: transform;
    transform: translateZ(0);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* GPU加速 */
    transform: translateZ(0);
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
}

/* 移动端禁用hover动画 */
@media (hover: none) {
    .play-btn:hover {
        transform: translateZ(0);
    }
    .play-btn::before {
        display: none;
    }
}

.play-btn i {
    font-style: normal;
}

.play-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.play-btn-secondary {
    background: var(--gradient-info);
    color: #fff;
}

.play-btn-tertiary {
    background: var(--gradient-success);
    color: #fff;
}

.play-btn-quaternary {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
}

.play-btn-quinary {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

@media (max-width: 768px) {
    .play-btn {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
        margin: var(--space-xs) 0;
    }
}

/* ============================================
   底部样式
   ============================================ */
.foot {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-2xl);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footb {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

.footb li {
    margin-bottom: var(--space-md);
    line-height: 1.8;
    font-size: 13px;
}

.footb a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0 var(--space-sm);
    transition: color var(--transition-fast);
}

.footb a:hover {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .foot {
        padding: var(--space-xl) 0 var(--space-md);
    }
    
    .footb li {
        font-size: 12px;
    }
}

/* ============================================
   分页组件
   ============================================ */
.pages {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-lg);
}

.pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pages a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pages a.current,
.pages a.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .pages {
        padding: var(--space-md);
    }
    
    .pages a {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ============================================
   留言板样式
   ============================================ */
.wrap_ff {
    max-width: var(--container-md) !important;
}

.reply_box {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
}

.mac_msg_l {
    order: 2;
}

.mac_msg_r {
    order: 1;
}

.mac_msg_item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.msg_tag {
    background: var(--gradient-primary);
    padding: var(--space-sm) var(--space-md);
}

.msg_count {
    color: #fff;
    font-size: 13px;
}

.msg_count strong {
    font-weight: 600;
}

.count_bg {
    display: none;
}

.msg_list {
    padding: var(--space-lg);
}

.msg_reply, .reply_answer {
    margin-bottom: var(--space-md);
}

.msg_title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.msg_title .name {
    font-weight: 600;
    color: var(--text-primary);
}

.msg_title .time {
    color: var(--text-muted);
    font-size: 12px;
}

.msg_cont {
    color: var(--text-secondary);
    line-height: 1.8;
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.reply_answer .msg_cont {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
}

.msg_tit {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid;
    border-image: var(--gradient-primary) 1;
}

.gbook_form {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.msg_cue {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: var(--space-md);
}

.gbook_content {
    width: 100%;
    min-height: 150px;
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.gbook_content:focus {
    border-color: var(--primary-color);
}

.msg_code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--space-md) 0;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.mac_verify {
    width: 100px;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.remaining-w {
    color: var(--text-muted);
    font-size: 13px;
}

.remaining {
    color: var(--primary-color);
    font-weight: 600;
}

.gbook_submit {
    width: 100%;
    padding: var(--space-md);
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gbook_submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .reply_box {
        grid-template-columns: 1fr;
    }
    
    .mac_msg_l {
        order: 1;
    }
    
    .mac_msg_r {
        order: 2;
    }
}

/* ============================================
   延时加载动画 - 性能优化版
   ============================================ */
.lazy {
    background: var(--bg-primary) url(../images/loading.gif) no-repeat center center;
    background-size: 40px;
    min-height: 200px;
    /* 防止布局偏移 */
    aspect-ratio: 16/9;
}

/* ============================================
   动画关键帧 - GPU加速版
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate3d(-20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale3d(1, 1, 1); }
    50% { transform: scale3d(1.05, 1.05, 1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 加载骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
}

/* ============================================
   列表项交错动画 - 使用CSS变量优化
   ============================================ */
.list-item {
    animation: slideIn 0.35s ease forwards;
    animation-delay: calc(var(--item-index, 0) * var(--stagger-delay));
    opacity: 0;
    /* GPU加速 */
    will-change: opacity, transform;
}

/* 设置前10个元素的动画延迟 */
.list-item:nth-child(1) { --item-index: 1; }
.list-item:nth-child(2) { --item-index: 2; }
.list-item:nth-child(3) { --item-index: 3; }
.list-item:nth-child(4) { --item-index: 4; }
.list-item:nth-child(5) { --item-index: 5; }
.list-item:nth-child(6) { --item-index: 6; }
.list-item:nth-child(7) { --item-index: 7; }
.list-item:nth-child(8) { --item-index: 8; }
.list-item:nth-child(9) { --item-index: 9; }
.list-item:nth-child(10) { --item-index: 10; }
.list-item:nth-child(n+11) { --item-index: 11; }

/* 动画完成后移除will-change以释放资源 */
.list-item.animated {
    will-change: auto;
}

/* ============================================
   表情/评论组件
   ============================================ */
#cyEmoji {
    width: 100%;
}

/* ============================================
   文章内容样式
   ============================================ */
.wenzhang {
    max-width: var(--container-lg);
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
}

.news {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
}

.news h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.news .source {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.news .content {
    line-height: 2;
    color: var(--text-secondary);
}

.news .content img {
    max-width: 100%;
    height: auto;
    margin: var(--space-md) auto;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .news {
        padding: var(--space-lg);
    }
    
    .news h1 {
        font-size: 1.25rem;
    }
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    
    .sddm, .foot, .search, .play-btn, .pages {
        display: none !important;
    }
    
    .ibox, .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   减少动画（辅助功能）
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .list-item {
        opacity: 1;
        animation: none;
    }
}

/* ============================================
   低端设备性能降级
   ============================================ */
@media (prefers-reduced-motion: reduce),
       (update: slow) {
    /* 禁用所有backdrop-filter */
    .ibox, .card, .nvc,
    .announcement-header,
    .announcement-card,
    .modern-header,
    .search-result-info,
    .play-card,
    .video-list-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* 简化阴影 */
    .ibox, .card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* 禁用transform动画 */
    .ibox:hover, .card:hover,
    .play-btn:hover,
    .xing_vb .list-item:hover {
        transform: none !important;
    }
}

/* ============================================
   触摸设备优化
   ============================================ */
@media (pointer: coarse) {
    /* 增大触摸目标 */
    #sddm li > a {
        min-height: 48px;
        padding: 0 16px;
    }
    
    .play-btn {
        min-height: 48px;
        padding: 14px 24px;
    }
    
    .pages a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================
   额外修复样式
   ============================================ */

/* 确保移动端菜单按钮在桌面端完全隐藏 */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    #mobileMenuToggle,
    .mobile-menu-overlay,
    #mobileMenuOverlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* 导航栏首页样式统一 */
#sddm > li:first-child > a {
    /* 移除任何特殊边框 */
    border: none;
    outline: none;
    box-shadow: none;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox 滚动条 */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-primary);
}

/* ============================================
   深色模式支持（已禁用 - 始终使用浅色主题）
   如需启用深色模式，取消下面的注释即可
   ============================================ */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f3f4f6;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-glass: rgba(31, 41, 55, 0.9);
        --border-color: #374151;
        --border-light: #1f2937;
    }
}
*/

/* ============================================
   公共页面样式 - 从内联CSS提取
   ============================================ */

/* 页面容器公共样式 */
.home-page,
.type-page,
.search-page,
.play-page {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 20px;
    contain: layout style;
}

@media (max-width: 768px) {
    .home-page,
    .type-page,
    .search-page,
    .play-page {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .home-page,
    .type-page,
    .search-page,
    .play-page {
        padding: 8px;
    }
}

/* 视频列表卡片公共样式 */
.video-list-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    contain: layout style;
}

@media (max-width: 768px) {
    .video-list-card {
        border-radius: 16px;
    }
}

/* 列表头部公共样式 */
.list-header {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecfc 100%);
    border-bottom: 3px solid var(--primary-color);
    contain: layout style;
}

.list-header-row {
    display: flex;
    align-items: center;
    padding: 16px 28px;
    font-weight: 700;
    color: #1e1b4b;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.col-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-name::before {
    content: '🎬';
    font-size: 16px;
}

.col-type {
    width: 110px;
    text-align: center;
    flex-shrink: 0;
}

.col-time {
    width: 120px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .list-header {
        display: none;
    }
}

/* 列表项公共样式 - 性能优化 */
.list-item {
    position: relative;
    transition: transform var(--transition-fast), background var(--transition-fast);
    border-bottom: 1px solid #f1f5f9;
    contain: layout style;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.list-item:hover {
    background: linear-gradient(90deg, #fafaff 0%, #fff 100%);
    transform: translateX(2px) translateZ(0);
}

.list-item:hover::before {
    transform: scaleY(1);
}

@media (hover: none) {
    .list-item:hover {
        transform: none;
    }
    .list-item::before {
        display: none;
    }
}

.list-item-row {
    display: flex;
    align-items: center;
    padding: 18px 28px;
    gap: 16px;
}

/* 视频标题公共样式 */
.video-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.video-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color var(--transition-fast);
    line-height: 1.5;
    position: relative;
}

.video-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.2s ease;
}

.video-title a:hover {
    color: var(--primary-color);
}

.video-title a:hover::after {
    width: 100%;
}

@media (hover: none) {
    .video-title a::after {
        display: none;
    }
}

/* 更新标签公共样式 */
.video-remarks {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.video-remarks::before {
    content: '🔥';
    font-size: 10px;
}

/* 最新标签公共样式 */
.new-badge {
    width: 28px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    animation: pulse 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .new-badge {
        animation: none;
    }
}

/* 类型标签公共样式 */
.video-type {
    width: 110px;
    text-align: center;
    flex-shrink: 0;
}

.type-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.15);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.list-item:hover .type-tag {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
}

@media (hover: none) {
    .list-item:hover .type-tag {
        background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
        color: #4f46e5;
        transform: none;
    }
}

/* 时间显示公共样式 */
.video-time {
    width: 120px;
    text-align: center;
    flex-shrink: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.video-time::before {
    content: '🕐';
    font-size: 12px;
    opacity: 0.7;
}

/* 分页容器公共样式 */
.pagination-wrapper {
    padding: 24px 28px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    contain: layout style;
}

/* 移动端列表响应式 */
@media (max-width: 768px) {
    .list-item {
        margin: 0 12px;
        border-radius: 12px;
        border: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9 !important;
        margin-bottom: 10px;
        background: #fff;
    }
    
    .list-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .list-item::before {
        display: none;
    }
    
    .list-item-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 10px;
    }
    
    .video-title {
        width: 100%;
        order: 1;
    }
    
    .video-title a {
        font-size: 14px;
    }
    
    .video-title a::after {
        display: none;
    }
    
    .video-remarks {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .new-badge {
        width: 22px;
    }
    
    .video-type,
    .video-time {
        width: auto;
    }
    
    .video-type {
        order: 2;
    }
    
    .type-tag {
        font-size: 11px;
        padding: 4px 10px;
        min-width: auto;
    }
    
    .video-time {
        order: 3;
        font-size: 12px;
        margin-left: auto;
        color: #94a3b8;
    }
    
    .video-time::before {
        font-size: 11px;
    }
    
    .pagination-wrapper {
        padding: 16px;
        margin: 12px;
        border-radius: 12px;
        background: #f8fafc;
    }
}

@media (max-width: 480px) {
    .list-item {
        margin: 0 8px 8px;
    }
    
    .list-item-row {
        padding: 12px 14px;
    }
    
    .video-title a {
        font-size: 13px;
    }
    
    .video-remarks {
        font-size: 10px;
    }
}

/* ============================================
   分类头部公共样式
   ============================================ */
.type-header {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
    contain: layout style;
}

.type-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.type-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.type-icon {
    font-size: 28px;
}

.type-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.type-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .type-header {
        padding: 14px 16px;
        border-radius: 10px;
        margin-bottom: 16px;
    }
    
    .type-icon {
        font-size: 24px;
    }
    
    .type-name {
        font-size: 18px;
    }
    
    .type-desc {
        font-size: 12px;
    }
}

/* ============================================
   搜索页公共样式
   ============================================ */
.search-result-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    contain: layout style;
}

@supports (backdrop-filter: blur(8px)) {
    .search-result-info {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.search-keyword {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.search-icon {
    font-size: 28px;
}

.keyword-text {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.keyword-highlight {
    color: var(--primary-color);
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    padding: 4px 14px;
    border-radius: 8px;
}

.search-tips {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

.search-tips strong {
    color: #d97706;
}

@media (max-width: 768px) {
    .search-result-info {
        padding: 18px;
    }
    
    .keyword-text {
        font-size: 16px;
    }
    
    .search-tips {
        font-size: 13px;
    }
}

/* ============================================
   播放页公共样式
   ============================================ */
.play-breadcrumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    contain: layout style;
}

@supports (backdrop-filter: blur(8px)) {
    .play-breadcrumb {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.play-breadcrumb h6 {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.play-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.play-breadcrumb a:hover {
    text-decoration: underline;
}

.play-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
    contain: layout style;
}

.notice-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.notice-text {
    font-size: 14px;
    color: #a16207;
    line-height: 1.6;
}

.play-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    margin-bottom: 24px;
    contain: layout style;
}

@supports (backdrop-filter: blur(8px)) {
    .play-card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.play-card-header {
    background: var(--gradient-primary);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.play-card-header .player-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.play-card-body {
    padding: 24px;
}

@media (max-width: 768px) {
    .play-breadcrumb {
        padding: 12px 16px;
    }
    
    .play-notice {
        flex-direction: column;
        padding: 16px 18px;
        gap: 12px;
    }
    
    .notice-icon {
        font-size: 24px;
    }
    
    .notice-title {
        font-size: 15px;
    }
    
    .notice-text {
        font-size: 13px;
    }
    
    .play-card-header {
        padding: 14px 18px;
        flex-wrap: wrap;
    }
    
    .play-card-header h3 {
        font-size: 16px;
    }
    
    .play-card-body {
        padding: 18px;
    }
}

/* ============================================
   URL列表公共样式
   ============================================ */
.url-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.url-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    contain: layout style;
}

.url-item:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

@media (hover: none) {
    .url-item:hover {
        transform: none;
    }
}

.url-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.url-text {
    flex: 1;
    font-size: 14px;
    color: #374151;
    word-break: break-all;
    line-height: 1.5;
    font-family: var(--font-mono);
}

.url-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0 0;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.select-all-label:hover {
    background: #e2e8f0;
}

.select-all-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .url-item {
        padding: 12px 14px;
    }
    
    .url-text {
        font-size: 12px;
    }
    
    .url-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .select-all-label {
        justify-content: center;
    }
    
    .copy-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .url-item {
        padding: 10px 12px;
    }
    
    .url-text {
        font-size: 11px;
    }
}
