/*
Theme Name: VOD Video Theme
Description: A modern video streaming theme for WordPress with enhanced UX
Version: 2.0
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: rgba(255, 255, 255, 0.9);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
    /* 移除全局过渡动画变量 */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 80px;
    overflow-x: hidden;
}

/* 添加Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* 导航栏样式 */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    height: 80px;
    /* 移除过渡动画 */
}


.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.75rem;
    /* 移除过渡动画 */
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    /* 移除过渡动画 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-icon-default {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* 移除过渡动画 */
}

.brand-link:hover {
    /* 移除缩放和亮度动画 */
    filter: brightness(1.1);
}

/* 移除brand-link的hover动画效果 */

.brand-text {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 12px;
    /* 移除过渡动画 */
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border-radius: 12px;
    opacity: 0;
    /* 移除过渡动画 */
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover {
    /* 移除变换和阴影动画 */
    color: #fff;
}

.nav-link.active {
    color: #fff;
    font-weight: 600;
}

/* 激活链接特殊样式 */
.activation-link {
    position: relative;
    overflow: hidden;
}

/* 随机按钮加载状态 - 优化版本 */
.nav-link.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 移除无限循环动画，改为简单的静态样式 */
.activation-link[data-activated="false"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white !important;
}

.activation-link[data-activated="false"]:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d84315 100%);
    /* 移除变换和阴影动画 */
}

.activation-link[data-activated="true"] {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white !important;
    position: relative;
}

.activation-link[data-activated="true"]:hover {
    background: linear-gradient(135deg, #0f8a7f 0%, #2dd36f 100%);
    /* 移除变换和阴影动画 */
}

/* 移除shine无限动画效果，改为静态半透明覆盖层 */
.activation-link[data-activated="true"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activation-icon {
    margin-right: 6px;
    font-size: 1rem;
    /* 移除变换动画 */
}

/* 移除激活链接图标的hover动画 */

.activation-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* 移除所有无限循环和复杂的动画关键帧 */
/* 激活状态指示器 - 移除动画版本，改为静态样式 */

.nav-link.active:hover {
    background: #0056b3;
    color: white;
}

/* 移动端菜单按钮 - 移除模糊效果 */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    /* 移除过渡动画 */
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    /* 移除缩放动画 */
}

.toggle-bar {
    width: 24px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    /* 移除过渡动画 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .main-navbar {
        height: 60px;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .brand-link {
        font-size: 1.3rem;
        gap: 8px;
    }
    
    .brand-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    
    .brand-icon-default {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        font-size: 1.2rem;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        /* 移除变换动画 */
        opacity: 0;
        visibility: hidden;
        /* 移除过渡动画 */
        border-radius: 0 0 16px 16px;
    }
    
    .navbar-menu.active {
        /* 移除变换动画 */
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-menu.active .nav-item {
        opacity: 1;
        /* 移除变换动画 */
    }
    
    .navbar-nav {
        flex-direction: column;
        padding: 20px 0;
        gap: 4px;
    }
    
    .navbar-menu .nav-item {
        opacity: 0;
        /* 移除变换动画 */
    }
    
    .nav-link {
        padding: 15px 24px;
        border-radius: 8px;
        justify-content: flex-start;
        color: #2c3e50 !important;
        font-weight: 600;
        font-size: 1rem;
        margin: 4px 16px;
        /* 移除过渡动画 */
        text-shadow: none;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white !important;
        /* 移除变换动画 */
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        border-radius: 12px;
    }
    
    /* 移动端激活链接特殊处理 */
    .activation-link {
        margin: 8px 16px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
        color: white !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .activation-link:hover {
        background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%) !important;
        transform: translateX(8px) scale(1.02) !important;
        box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4) !important;
    }
    
    .activation-link[data-activated="false"] {
        animation: pulse-inactive 2s infinite;
        box-shadow: 0 0 20px rgba(245, 87, 108, 0.5);
    }
    
    .activation-icon {
        margin-right: 8px;
        font-size: 1.2rem;
    }
    
    .activation-text {
        font-size: 1rem;
        font-weight: 700;
    }
}

/* 主页样式 */
.home-wrapper {
    min-height: 100vh;
    padding: 40px 20px;
}

/* 移除多余的边距设置，让容器自然对齐 */

.search-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 60px auto;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

/* 移除搜索容器的扫光动画效果，提升性能 */

.site-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    line-height: 1.6;
}

.search-form {
    display: flex;
    gap: 16px;
    margin: 0 auto 20px auto;
    align-items: stretch;
    max-width: 600px;
    width: 100%;
    justify-content: center;
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    /* 移除过渡动画 */
    color: var(--text-primary);
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.search-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    /* 移除过渡动画 */
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 120px;
}

/* 移除搜索按钮的扫光动画效果 */

.search-button:hover {
    /* 移除变换动画，仅保留基本样式 */
    filter: brightness(1.1);
}

/* 移除搜索按钮的active动画 */

/* 搜索建议标签 */
.search-suggestions {
    margin: 24px auto 0 auto;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.search-suggestions p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.suggestion-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    /* 移除过渡动画 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.suggestion-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    /* 移除变换动画 */
}

/* 历史记录在豆瓣区域中的样式 */
.history-actions-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-actions-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.clear-history-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255, 82, 82, 0.5);
    background: rgba(255, 82, 82, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    /* 移除过渡动画 */
}

.clear-history-btn:hover {
    background: rgba(255, 82, 82, 0.4);
    border-color: rgba(255, 82, 82, 0.7);
}

.history-movie-card {
    position: relative;
}

.history-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

.history-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 82, 82, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    /* 移除过渡动画 */
    z-index: 2;
}

.history-movie-card:hover .history-delete-btn {
    display: flex;
}

.history-delete-btn:hover {
    background: rgba(255, 82, 82, 1);
    transform: scale(1.1);
}

.history-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 4px;
}

.history-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.history-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.history-empty-state h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.history-empty-state p {
    margin-bottom: 30px;
    font-size: 1rem;
    opacity: 0.8;
}

.browse-movies-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    /* 移除过渡动画 */
}

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

/* 历史记录加载状态 */
.history-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    width: 100%;
    min-height: 300px;
}

.history-loading-state .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.history-loading-state p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.7);
}

/* 错误状态样式 */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    width: 100%;
    min-height: 300px;
}

.error-message p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.7);
}

/* 豆瓣影视筛选区域样式 */
.douban-movies-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.movies-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    padding: 40px;
    position: relative;
}

.douban-movies-section .filter-tabs {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-bottom: none;
    padding: 0;
    margin: 0 0 40px 0;
    gap: 16px;
    flex-wrap: wrap;
    flex-direction: row !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 确保tab容器始终水平显示 */
.douban-movies-section .filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.douban-movies-section .filter-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.douban-movies-section .filter-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.douban-movies-section .filter-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.douban-movies-section .filter-tab {
    padding: 16px 28px;
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    /* 移除过渡动画 */
    font-size: 15px;
    text-align: center;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    min-width: auto;
}

.douban-movies-section .filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    /* 移除过渡动画 */
    z-index: -1;
}

.douban-movies-section .filter-tab:hover::before,
.douban-movies-section .filter-tab.active::before {
    opacity: 1;
}

.douban-movies-section .filter-tab:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.douban-movies-section .filter-tab.active {
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-light);
}

.douban-movies-section .filter-tab.active::after {
    display: none;
}

.filter-controls {
    padding: 15px 0;
    background: transparent;
    border-bottom: none;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600; /* 增加字体粗细 */
    color: white; /* 白色文字 */
    min-width: 60px;
    font-size: 14px;
    position: relative;
    padding-left: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* 添加文字阴影 */
}

.filter-label::before {
    display: none;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4); /* 更明显的边框 */
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15); /* 稍微更明显的背景 */
    color: white; /* 白色文字 */
    font-size: 12px;
    font-weight: 500; /* 稍微加粗 */
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: visible;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); /* 增强文字阴影 */
}

.filter-option::before {
    display: none;
}

.filter-option:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: none;
    box-shadow: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.filter-option:hover::before {
    display: none;
}

.filter-option.active {
    background: rgba(255, 255, 255, 0.3); /* 激活状态透明背景 */
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    box-shadow: none;
    transform: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    padding: 0;
    min-height: 400px;
}

/* 当movies-grid只包含加载状态时，不使用grid布局 */
.movies-grid:has(.history-loading-state) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 兼容性fallback - 当不支持:has()选择器时 */
.movies-grid.loading-mode {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.movie-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    /* 移除过渡动画 */
    cursor: pointer;
    border: 1px solid var(--glass-border);
    position: relative;
    /* iOS触摸优化 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.movie-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    /* 移除过渡动画 */
    z-index: 1;
    pointer-events: none;
}

.movie-item:hover::before {
    opacity: 1;
}

.movie-item:hover,
.movie-item.touching {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.4);
}

.movie-item:active {
    transform: translateY(-4px) scale(1.01);
}

.movie-poster-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2/3; /* 固定2:3宽高比 */
    background: transparent; /* 透明背景 */
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f8f9fa;
    transition: none;
}

.movie-overlay-info {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.movie-rating-badge {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    min-width: 28px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.movie-award-badge {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.movie-genre-badge {
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    max-width: 75px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.movie-year-badge {
    background: rgba(108, 117, 125, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.movie-area-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    max-width: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.movie-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0 0 4px 4px;
}

.movie-info {
    padding: 12px;
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}


.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9); /* 半透明白色 */
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.movie-rating {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.movie-year {
    color: rgba(255, 255, 255, 0.8); /* 半透明白色 */
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.movie-genre {
    background: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 4px;
    text-shadow: none;
}

.movie-area {
    background: rgba(40, 167, 69, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 4px;
    text-shadow: none;
}

.movie-remarks {
    color: rgba(255, 255, 255, 0.8); /* 半透明白色 */
    font-size: 0.8rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading-movies {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8); /* 半透明白色文字 */
    grid-column: 1 / -1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.loading-movies .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2); /* 半透明白色边框 */
    border-top: 4px solid white; /* 白色顶部边框 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.load-more-container {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 半透明白色边框 */
    background: transparent;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.2); /* 半透明白色背景 */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 半透明白色边框 */
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600; /* 增加字体粗细 */
    cursor: pointer;
    /* 移除过渡动画 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* 添加文字阴影 */
    backdrop-filter: blur(5px); /* 轻微毛玻璃效果 */
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.3); /* 悬停时更明显的背景 */
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.load-more-btn:disabled {
    background: rgba(255, 255, 255, 0.1); /* 禁用时更透明的背景 */
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5); /* 半透明的文字 */
    cursor: not-allowed;
    transform: none;
    text-shadow: none;
    box-shadow: none;
}

/* 搜索结果页面样式 */
.search-results-wrapper {
    min-height: 100vh;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .search-results-wrapper {
        padding: 20px 8px;
    }
}

@media (max-width: 480px) {
    .search-results-wrapper {
        padding: 15px 4px;
    }
}

.search-results-wrapper .search-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 40px auto;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

/* 移除搜索结果页面的扫光动画效果 */

.search-header {
    position: relative;
    z-index: 1;
}

/* 搜索页面的搜索表单特殊样式 */
.search-header .search-form {
    background: rgba(255, 255, 255, 0.1); /* 半透明白色背景 */
    border: 1px solid rgba(255, 255, 255, 0.3); /* 半透明白色边框 */
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 搜索页面搜索表单内的输入框样式 */
.search-header .search-form .search-input {
    background: rgba(255, 255, 255, 0.9); /* 更明显的白色背景，确保输入可见 */
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #2c3e50; /* 深色文字，确保在白色背景上可读 */
}

.search-header .search-form .search-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.search-header .search-form .search-input::placeholder {
    color: rgba(44, 62, 80, 0.6); /* 半透明的深色占位符文字 */
}

/* 搜索页面搜索表单内的按钮样式 */
.search-header .search-form .search-button {
    background: rgba(255, 255, 255, 0.2); /* 半透明白色背景 */
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-header .search-form .search-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.search-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.search-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.results-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


.results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    /* 移除过渡动画 */
    border: 1px solid var(--glass-border);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    /* 移除过渡动画 */
    z-index: 1;
    pointer-events: none;
}

.result-item:hover::before {
    opacity: 1;
}

.result-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.4);
}

.poster-container {
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 280px;
    flex-shrink: 0;
    background: transparent; /* 透明背景 */
    border-radius: 12px;
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 移除悬停效果，只在点击时显示 */
}

.overlay-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    height: 280px;
}

.result-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    align-self: flex-start;
}

.result-description {
    color: #ffffff;
    line-height: 1.6;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    flex: 1;
    margin: 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.result-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-self: flex-start;
    margin-top: auto;
    order: 999;
}

.result-meta span {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333333;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.success-icon, .error-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-poster {
    width: 100%;
    aspect-ratio: 2/3; /* 严格2:3比例 */
    object-fit: cover;
    background-color: #f8f9fa;
    display: block;
}


/* 移除了不需要的按钮样式 */

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.8); /* 半透明白色文字 */
    max-width: 1200px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2); /* 半透明白色边框 */
    border-top: 4px solid white; /* 白色顶部边框 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8); /* 半透明白色文字 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin: 0 auto;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white; /* 白色标题 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 空搜索提示样式 */
.empty-search-prompt {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.prompt-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-search-prompt h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.empty-search-prompt > p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}


.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1200px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

.success-message {
    background: #51cf66;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

/* 超小屏幕tab水平滚动优化 */
@media (max-width: 600px) {
    .douban-movies-section .filter-tabs {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        margin-left: -10px;
        margin-right: -10px;
        scrollbar-width: thin;
    }
    
    .douban-movies-section .filter-tab {
        flex-shrink: 0 !important;
        min-width: max-content !important;
    }
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .navbar-container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .search-container {
        max-width: 1200px;
        padding: 50px 35px;
    }
    
    .search-form {
        max-width: 550px;
    }
    
    .search-suggestions {
        max-width: 800px;
    }
    
    .movies-container {
        padding: 35px;
    }
}

@media (max-width: 1200px) {
    .results-grid {
        gap: 16px;
    }
    
    .result-item {
        padding: 16px;
        gap: 16px;
    }
    
    .poster-container {
        width: 160px;
        height: 220px;
    }
    
    .result-content {
        height: 220px;
    }
    
    .result-title {
        font-size: 1.2rem;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .result-description {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
        text-align: left;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .result-meta {
        gap: 10px;
    }
    
    .result-meta span {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .douban-movies-section {
        padding: 0;
    }
    
    .movies-container {
        padding: 30px;
    }
    
    .search-container {
        max-width: calc(100% - 32px);
        padding: 40px 30px;
    }
    
    .search-results-wrapper .search-container {
        max-width: calc(100% - 32px);
        padding: 40px 30px;
    }
    
    .search-form {
        max-width: 500px;
    }
    
    .search-suggestions {
        max-width: 700px;
    }
    
    .site-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .main-navbar {
        height: 70px;
    }
    
    .navbar-container {
        padding: 0 16px;
    }
    
    .brand-link {
        font-size: 1.5rem;
        gap: 10px;
    }
    
    .brand-icon {
        width: 30px;
        height: 30px;
        border-radius: 7px;
    }
    
    .brand-icon-default {
        width: 30px;
        height: 30px;
        border-radius: 7px;
        font-size: 1.3rem;
    }
    
    .search-container {
        padding: 30px 15px;
        margin: 0 auto 30px auto;
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        border-radius: 20px;
    }
    
    .search-results-wrapper .search-container {
        padding: 20px 8px;
        margin: 0 auto 20px auto;
        width: calc(100% - 6px);
        max-width: calc(100% - 6px);
        border-radius: 20px;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .site-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        max-width: 400px;
    }
    
    .search-input, .search-button {
        width: 100%;
        padding: 16px 20px;
        border-radius: 12px;
        font-size: 1rem;
    }
    
    .search-button {
        font-weight: 700;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        min-height: 56px;
    }
    
    .movies-container {
        padding: 20px;
        border-radius: 20px;
    }
    
    .douban-movies-section .filter-tabs {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .douban-movies-section .filter-tab {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
        display: inline-flex !important;
        flex-shrink: 0;
        min-width: auto;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .results-grid {
        gap: 12px;
    }
    
    .result-item {
        flex-direction: row;
        padding: 10px;
        gap: 12px;
        text-align: left;
        align-items: flex-start;
    }
    
    .poster-container {
        width: 80px;
        height: 120px;
        flex-shrink: 0;
        order: 1;
    }
    
    .result-content {
        text-align: left;
        height: 120px;
        justify-content: space-between;
        gap: 8px;
        order: 2;
        flex: 1;
    }
    
    .result-title {
        font-size: 1rem;
        margin-bottom: 0;
        order: 1;
        text-align: left;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        line-height: 1.2;
    }
    
    .result-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        margin: 0;
        order: 2;
        text-align: left;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        flex: 1;
        line-height: 1.3;
    }
    
    .result-meta {
        justify-content: flex-start;
        gap: 4px;
        margin-top: auto;
        order: 999;
        flex-wrap: wrap;
    }
    
    .result-meta span {
        padding: 2px 6px;
        font-size: 0.7rem;
        border-radius: 12px;
        line-height: 1.2;
    }
    
    .search-suggestions {
        margin-top: 20px;
        max-width: 400px;
    }
    
    .suggestion-tags {
        gap: 6px;
    }
    
    .suggestion-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
        .search-header {
        margin: 5px;
        padding: 10px;
    }
    
    /* 搜索页面表单移动端样式 */
    .search-header .search-form {
        padding: 15px 8px;
        margin-top: 15px;
        border-radius: 10px;
    }
    
    .search-header .search-form .search-input,
    .search-header .search-form .search-button {
        width: 100%;
        max-width: none;
    }
    
    .search-header h1 {
        font-size: 1.5rem;
    }
    
    
    /* 豆瓣影视区域移动端优化 */
    .douban-movies-section {
        padding: 0 !important;
    }
    
    .douban-movies-section .filter-tabs {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        gap: 8px;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    
    .douban-movies-section .filter-tab {
        display: inline-flex !important;
        min-width: auto !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        white-space: nowrap;
    }
    
    .filter-controls {
        padding: 15px 0;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
        padding: 0;
    }
    
    .filter-label {
        min-width: auto;
        margin-bottom: 0;
        padding-left: 0;
        font-size: 14px;
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .filter-option {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0;
    }
    
    .movie-poster-container {
        aspect-ratio: 2/3; /* 移动端也保持2:3比例 */
    }
    
    .movie-title {
        font-size: 14px;
    }
    
    .movie-bottom-overlay {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .movie-meta {
        font-size: 12px;
    }
    
    /* 移动端海报覆盖信息优化 */
    .movie-overlay-info {
        top: 6px;
        right: 6px;
        gap: 3px;
    }
    
    .movie-rating-badge {
        padding: 3px 6px;
        font-size: 11px;
        min-width: 28px;
    }
    
    .movie-award-badge {
        padding: 2px 5px;
        font-size: 9px;
        max-width: 60px;
    }
    
    .movie-genre-badge {
        padding: 2px 5px;
        font-size: 9px;
        max-width: 55px;
    }
    
    .movie-year-badge {
        padding: 2px 5px;
        font-size: 9px;
        max-width: 40px;
    }
    
    .movie-area-badge {
        top: 6px;
        left: 6px;
        padding: 2px 5px;
        font-size: 9px;
        max-width: 45px;
    }
}

@media (max-width: 480px) {
    .home-wrapper {
        padding: 20px 10px;
    }
    
    .search-container {
        padding: 25px 12px;
        margin: 0 auto 25px auto;
        width: calc(100% - 8px);
        max-width: calc(100% - 8px);
        border-radius: 16px;
    }
    
    .search-results-wrapper .search-container {
        padding: 15px 6px;
        margin: 0 auto 15px auto;
        width: calc(100% - 4px);
        max-width: calc(100% - 4px);
        border-radius: 16px;
    }
    
    .site-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .site-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .search-form {
        max-width: 350px;
    }
    
    .search-suggestions {
        max-width: 350px;
    }
    
    .search-input, .search-button {
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .movies-container {
        padding: 16px;
        border-radius: 16px;
    }
    
    .douban-movies-section {
        padding: 0;
    }
    
    .douban-movies-section .filter-tabs {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: 24px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .douban-movies-section .filter-tab {
        display: inline-flex !important;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
        flex-shrink: 0;
        min-width: auto;
        white-space: nowrap;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .search-suggestions {
        margin-top: 16px;
    }
    
    .suggestion-tags {
        gap: 4px;
    }
    
    .suggestion-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
        border-radius: 16px;
    }
    
    /* 480px以下搜索结果样式 */
    .results-grid {
        gap: 8px;
    }
    
    .result-item {
        flex-direction: row;
        padding: 8px;
        gap: 10px;
        text-align: left;
        align-items: flex-start;
    }
    
    .poster-container {
        width: 70px;
        height: 105px;
        flex-shrink: 0;
        order: 1;
    }
    
    .result-content {
        text-align: left;
        height: 105px;
        justify-content: space-between;
        gap: 6px;
        order: 2;
        flex: 1;
    }
    
    .result-title {
        font-size: 0.9rem;
        margin-bottom: 0;
        order: 1;
        text-align: left;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        line-height: 1.1;
    }
    
    .result-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        margin: 0;
        order: 2;
        text-align: left;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        flex: 1;
        line-height: 1.2;
    }
    
    .result-meta {
        justify-content: flex-start;
        gap: 3px;
        margin-top: auto;
        order: 999;
        flex-wrap: wrap;
    }
    
    .result-meta span {
        padding: 2px 4px;
        font-size: 0.65rem;
        border-radius: 10px;
        line-height: 1.1;
        min-height: auto;
    }
}

/* 底部版权区域样式 */
.site-footer {
    background: rgba(0, 0, 0, 0.8); /* 深色半透明背景 */
    color: rgba(255, 255, 255, 0.9);
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    margin: 5px 0;
    line-height: 1.5;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.powered-by {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    /* 移除过渡动画 */
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* 底部版权区域响应式 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-info {
        order: 2;
    }
    
    .footer-links {
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}