/* 豆瓣电影插件前端样式 */

/* CSS变量定义 */
:root {
    --primary-text-color: #2c3e50;
    --secondary-text-color: #6c757d;
    --primary-bg-color: #f8f9fa;
    --border-color: #e9ecef;
    --card-bg-color: #ffffff;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;
}

/* 容器样式 */
.douban-movie-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.douban-movie-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    margin: 24px 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.douban-movie-card .movie-main-content {
    display: flex;
    position: relative;
}

.douban-movie-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.douban-movie-card .movie-main-content .movie-poster {
    flex-shrink: 0;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 450px;
    width: 300px;
    min-height: 400px;
}

.douban-movie-card .movie-main-content .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px 0 0 0;
    transition: opacity 0.3s ease;
}

.douban-movie-card .movie-main-content .movie-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 400px;
    position: relative;
}

.douban-movie-card .movie-title {
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.douban-movie-card .movie-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.douban-movie-card .movie-meta span {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    color: #495057;
    border: 1px solid #e9ecef;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.douban-movie-card .movie-meta span:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
}

.douban-movie-card .movie-rating {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
    color: #f57c00 !important;
    border-color: #ffcc02 !important;
    font-weight: 600;
}

.douban-movie-card .movie-area {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    color: #1976d2 !important;
    border-color: #2196f3 !important;
}

.douban-movie-card .movie-directors,
.douban-movie-card .movie-cast,
.douban-movie-card .movie-genres,
.douban-movie-card .movie-pubdate,
.douban-movie-card .movie-duration,
.douban-movie-card .movie-language,
.douban-movie-card .movie-writer,
.douban-movie-card .movie-alias,
.douban-movie-card .movie-douban,
.douban-movie-card .movie-imdb {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.douban-movie-card .movie-directors strong,
.douban-movie-card .movie-cast strong,
.douban-movie-card .movie-genres strong,
.douban-movie-card .movie-pubdate strong,
.douban-movie-card .movie-duration strong,
.douban-movie-card .movie-language strong,
.douban-movie-card .movie-writer strong,
.douban-movie-card .movie-alias strong,
.douban-movie-card .movie-douban strong,
.douban-movie-card .movie-imdb strong {
    color: #2c3e50;
    font-weight: 600;
    min-width: 50px;
    font-size: 13px;
    flex-shrink: 0;
}

.douban-movie-card .movie-directors,
.douban-movie-card .movie-cast {
    display: block;
}

.douban-movie-card .movie-directors strong,
.douban-movie-card .movie-cast strong {
    display: inline-block;
    min-width: auto;
}

/* 豆瓣链接特殊样式 */
.douban-movie-card .movie-douban a {
    color: #00b51d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.douban-movie-card .movie-douban a:hover {
    color: #00991a;
    text-decoration: underline;
}

/* IMDb 链接特殊样式 */
.douban-movie-card .movie-imdb a {
    color: #f5c518;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.douban-movie-card .movie-imdb a:hover {
    color: #dda404;
    text-decoration: underline;
}

/* 简介部分单独样式 */
.douban-movie-card .movie-summary-section {
    margin: 0;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: rgba(248, 249, 250, 0.5);
}

.douban-movie-card .summary-title {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.douban-movie-card .summary-title::before {
    content: "📖";
    font-size: 16px;
}

.douban-movie-card .movie-summary {
    margin: 0;
}

.douban-movie-card .movie-summary p {
    margin: 0;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    font-size: 14px;
    text-indent: 2em;
}

/* 影评部分样式 */
.douban-movie-card .movie-review-section {
    margin: 0;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: rgba(248, 249, 250, 0.3);
    border-radius: 0 0 12px 12px;
}

/* 如果影评是最后一个区域，添加底部圆角 */
.douban-movie-card .movie-summary-section:last-child {
    border-radius: 0 0 12px 12px;
}

.douban-movie-card .review-title {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.douban-movie-card .review-title::before {
    content: "💭";
    font-size: 16px;
}

.douban-movie-card .movie-review {
    margin: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #4f46e5;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.douban-movie-card .movie-review::before {
    content: "\201C";
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 40px;
    color: #4f46e5;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.douban-movie-card .movie-review p {
    margin: 0;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    font-size: 14px;
    text-indent: 2em;
    font-style: italic;
}



/* 响应式设计 - 优化移动端海报自适应 */
@media (max-width: 768px) {
    .douban-movie-card {
        max-width: 100%;
        margin: 8px auto;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .douban-movie-card .movie-main-content {
        flex-direction: column;
    }
    
    .douban-movie-card .movie-main-content .movie-poster {
        width: 100%;
        height: 280px; /* 增加高度以更好显示海报 */
        max-height: 280px;
        position: relative;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .douban-movie-card .movie-main-content .movie-poster img {
        border-radius: 0;
        width: auto; /* 改为auto以保持海报比例 */
        height: 100%;
        max-width: 100%;
        object-fit: contain; /* 改为contain以完整显示海报 */
        object-position: center center;
        transition: transform 0.3s ease;
        /* 确保海报在移动端完美居中显示 */
        display: block;
        margin: 0 auto;
    }
    
    .douban-movie-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .douban-movie-card .movie-main-content .movie-info {
        padding: 16px 16px; /* 减少内边距使内容更紧凑 */
        min-height: auto;
        background: #fff;
    }
    
    .douban-movie-card .movie-title {
        font-size: 20px; /* 稍微减小字体 */
        font-weight: 700;
        text-align: center;
        margin-bottom: 12px; /* 减少底部间距 */
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-height: 1.2; /* 减少行高 */
        color: #1a1a1a;
    }
    
    .douban-movie-card .movie-meta {
        justify-content: center;
        gap: 6px; /* 减少标签间距 */
        margin-bottom: 14px; /* 减少底部间距 */
        flex-wrap: wrap;
    }
    
    .douban-movie-card .movie-meta span {
        font-size: 11px; /* 减小字体 */
        padding: 4px 8px; /* 减少内边距 */
        border-radius: 16px;
        font-weight: 500;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    
    .douban-movie-card .movie-directors,
    .douban-movie-card .movie-cast,
    .douban-movie-card .movie-genres,
    .douban-movie-card .movie-pubdate,
    .douban-movie-card .movie-duration,
    .douban-movie-card .movie-language,
    .douban-movie-card .movie-writer,
    .douban-movie-card .movie-alias,
    .douban-movie-card .movie-douban,
    .douban-movie-card .movie-imdb {
        margin-bottom: 8px; /* 减少底部间距 */
        font-size: 13px; /* 稍微减小字体 */
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 6px; /* 减少间距 */
        padding: 6px 0; /* 减少内边距 */
        border-bottom: 1px solid #f5f5f5;
    }
    
    .douban-movie-card .movie-directors strong,
    .douban-movie-card .movie-cast strong,
    .douban-movie-card .movie-genres strong,
    .douban-movie-card .movie-pubdate strong,
    .douban-movie-card .movie-duration strong,
    .douban-movie-card .movie-language strong,
    .douban-movie-card .movie-writer strong,
    .douban-movie-card .movie-alias strong,
    .douban-movie-card .movie-douban strong,
    .douban-movie-card .movie-imdb strong {
        color: #2c3e50;
        font-weight: 600;
        min-width: 70px;
        flex-shrink: 0;
    }
    
    .douban-movie-card .movie-summary {
        margin: 16px 0;
        text-align: center;
    }
    
    .douban-movie-card .movie-summary-section {
        padding: 12px 16px; /* 减少内边距 */
        border-radius: 0 0 16px 16px;
    }
    
    .douban-movie-card .summary-title {
        font-size: 14px; /* 减小字体 */
        text-align: center;
        margin-bottom: 8px; /* 减少底部间距 */
    }
    
    .douban-movie-card .movie-summary p {
        font-size: 12px; /* 减小字体 */
        text-align: justify;
        text-indent: 1.2em; /* 减少首行缩进 */
        line-height: 1.5; /* 减少行高 */
        margin: 0; /* 移除默认边距 */
    }
    
    .douban-movie-card .movie-review-section {
        padding: 12px 16px; /* 减少内边距 */
    }
    
    .douban-movie-card .review-title {
        font-size: 14px; /* 减小字体 */
        text-align: center;
        margin-bottom: 8px; /* 减少底部间距 */
    }
    
    .douban-movie-card .movie-review {
        padding: 10px 12px; /* 减少内边距 */
        border-radius: 0 6px 6px 0;
    }
    
    .douban-movie-card .movie-review p {
        font-size: 12px; /* 减小字体 */
        text-indent: 1.2em; /* 减少首行缩进 */
        line-height: 1.5; /* 减少行高 */
        margin: 0; /* 移除默认边距 */
    }
}

@media (max-width: 480px) {
    .douban-movie-card {
        border-radius: 12px;
        margin: 6px auto; /* 减少外边距 */
    }
    
    .douban-movie-card .movie-main-content .movie-poster {
        height: 240px; /* 保持合适的海报高度 */
        max-height: 240px;
    }
    
    .douban-movie-card .movie-main-content .movie-poster img {
        border-radius: 0;
    }
    
    .douban-movie-card .movie-main-content .movie-info {
        padding: 14px 14px; /* 进一步减少内边距 */
    }
    
    .douban-movie-card .movie-title {
        font-size: 18px; /* 减小字体 */
        margin-bottom: 10px; /* 减少底部间距 */
        line-height: 1.1; /* 减少行高 */
    }
    
    .douban-movie-card .movie-meta {
        gap: 5px; /* 减少标签间距 */
        margin-bottom: 12px; /* 减少底部间距 */
    }
    
    .douban-movie-card .movie-meta span {
        font-size: 10px; /* 减小字体 */
        padding: 3px 6px; /* 减少内边距 */
        border-radius: 12px;
    }
    
    .douban-movie-card .movie-directors,
    .douban-movie-card .movie-cast,
    .douban-movie-card .movie-genres,
    .douban-movie-card .movie-pubdate,
    .douban-movie-card .movie-duration,
    .douban-movie-card .movie-language,
    .douban-movie-card .movie-writer,
    .douban-movie-card .movie-alias,
    .douban-movie-card .movie-douban,
    .douban-movie-card .movie-imdb {
        margin-bottom: 6px; /* 减少底部间距 */
        font-size: 12px; /* 减小字体 */
        padding: 4px 0; /* 减少内边距 */
    }
    
    .douban-movie-card .movie-summary-section {
        padding: 10px 14px; /* 减少内边距 */
        border-radius: 0 0 20px 20px;
    }
    
    .douban-movie-card .summary-title {
        font-size: 13px; /* 减小字体 */
        margin-bottom: 6px; /* 减少底部间距 */
    }
    
    .douban-movie-card .movie-summary p {
        font-size: 11px; /* 减小字体 */
        text-indent: 0.8em; /* 减少首行缩进 */
        line-height: 1.4; /* 减少行高 */
    }
    
    .douban-movie-card .movie-review-section {
        padding: 10px 14px; /* 减少内边距 */
    }
    
    .douban-movie-card .review-title {
        font-size: 13px; /* 减小字体 */
        margin-bottom: 6px; /* 减少底部间距 */
    }
    
    .douban-movie-card .movie-review {
        padding: 8px 10px; /* 减少内边距 */
        border-radius: 0 4px 4px 0;
    }
    
    .douban-movie-card .movie-review p {
        font-size: 11px; /* 减小字体 */
        text-indent: 0.8em; /* 减少首行缩进 */
        line-height: 1.4; /* 减少行高 */
    }
}

/* 超小屏幕优化 - 极致紧凑 */
@media (max-width: 360px) {
    .douban-movie-card {
        margin: 4px 4px; /* 最小化外边距 */
        border-radius: 10px;
    }
    
    .douban-movie-card .movie-main-content .movie-poster {
        height: 200px; /* 保持合理的海报高度 */
        max-height: 200px;
    }
    
    .douban-movie-card .movie-main-content .movie-info {
        padding: 12px 12px; /* 最小化内边距 */
    }
    
    .douban-movie-card .movie-title {
        font-size: 16px; /* 进一步减小字体 */
        margin-bottom: 8px; /* 减少底部间距 */
        line-height: 1.1; /* 紧凑行高 */
    }
    
    .douban-movie-card .movie-meta {
        gap: 4px; /* 最小化标签间距 */
        margin-bottom: 10px; /* 减少底部间距 */
    }
    
    .douban-movie-card .movie-meta span {
        font-size: 9px; /* 进一步减小字体 */
        padding: 2px 5px; /* 最小化内边距 */
        border-radius: 10px;
    }
    
    .douban-movie-card .movie-directors,
    .douban-movie-card .movie-cast,
    .douban-movie-card .movie-genres,
    .douban-movie-card .movie-pubdate,
    .douban-movie-card .movie-duration,
    .douban-movie-card .movie-language,
    .douban-movie-card .movie-writer,
    .douban-movie-card .movie-alias,
    .douban-movie-card .movie-douban,
    .douban-movie-card .movie-imdb {
        margin-bottom: 4px; /* 最小化底部间距 */
        font-size: 11px; /* 减小字体 */
        padding: 3px 0; /* 最小化内边距 */
    }
    
    .douban-movie-card .movie-directors strong,
    .douban-movie-card .movie-cast strong,
    .douban-movie-card .movie-genres strong,
    .douban-movie-card .movie-pubdate strong,
    .douban-movie-card .movie-duration strong,
    .douban-movie-card .movie-language strong,
    .douban-movie-card .movie-writer strong,
    .douban-movie-card .movie-alias strong,
    .douban-movie-card .movie-douban strong,
    .douban-movie-card .movie-imdb strong {
        min-width: 45px; /* 减少标签宽度 */
        font-size: 10px; /* 减小字体 */
    }
    
    .douban-movie-card .movie-summary-section {
        padding: 8px 12px; /* 最小化内边距 */
    }
    
    .douban-movie-card .summary-title {
        font-size: 12px; /* 减小字体 */
        margin-bottom: 5px; /* 减少底部间距 */
    }
    
    .douban-movie-card .movie-summary p {
        font-size: 10px; /* 减小字体 */
        text-indent: 0.6em; /* 减少首行缩进 */
        line-height: 1.3; /* 紧凑行高 */
    }
    
    .douban-movie-card .movie-review-section {
        padding: 8px 12px; /* 最小化内边距 */
    }
    
    .douban-movie-card .review-title {
        font-size: 12px; /* 减小字体 */
        margin-bottom: 5px; /* 减少底部间距 */
    }
    
    .douban-movie-card .movie-review {
        padding: 6px 8px; /* 最小化内边距 */
    }
    
    .douban-movie-card .movie-review p {
        font-size: 10px; /* 减小字体 */
        text-indent: 0.6em; /* 减少首行缩进 */
        line-height: 1.3; /* 紧凑行高 */
    }
}

/* 横屏模式优化 - 针对手机横屏 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .douban-movie-card {
        margin: 4px auto;
    }
    
    .douban-movie-card .movie-main-content {
        flex-direction: row; /* 横屏时恢复水平布局 */
        min-height: auto;
    }
    
    .douban-movie-card .movie-main-content .movie-poster {
        width: 200px; /* 固定宽度 */
        height: 300px; /* 适合横屏的高度 */
        max-height: 300px;
        flex-shrink: 0;
    }
    
    .douban-movie-card .movie-main-content .movie-info {
        padding: 12px 16px;
        overflow-y: auto; /* 允许滚动 */
        max-height: 300px;
    }
    
    .douban-movie-card .movie-title {
        font-size: 16px;
        margin-bottom: 8px;
        text-align: left; /* 横屏时左对齐 */
    }
    
    .douban-movie-card .movie-meta {
        justify-content: flex-start; /* 横屏时左对齐 */
        margin-bottom: 10px;
    }
    
    .douban-movie-card .movie-summary-section,
    .douban-movie-card .movie-review-section {
        padding: 8px 16px;
    }
}

/* 移除所有复杂动画和特效 */
/* 所有动画已禁用，keyframes定义已移除以减少CSS文件大小 */

/* 移除所有动画效果 */
.movie-display-container,
.movie-display-container *,
.movie-display-container:hover,
.preview-header,
.movie-actions {
    animation: none !important;
}

/* 简化加载状态 */
.movie-display-container.loading {
    opacity: 0.8;
    pointer-events: none;
    animation: none;
}

.movie-display-container.loading::after {
    content: "⏳";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 10;
}

/* 简化错误状态 */
.movie-display-container.error {
    border-color: #e53e3e;
    background: #f8d7da;
    animation: none;
}

.movie-display-container.error .movie-title {
    color: #c53030;
}

/* 暗色主题适配 - 简化版 */
@media (prefers-color-scheme: dark) {
    .movie-display-container {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .preview-header {
        background: #2d3748;
        border-bottom-color: #4a5568;
    }
    
    .preview-title {
        color: #f7fafc;
    }
    
    .movie-display-container .movie-details {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .movie-display-container .movie-title {
        color: #f7fafc;
    }
    
    .movie-display-container .movie-meta span {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .movie-display-container .detail-item {
        background: #4a5568;
        border-color: #718096;
    }
    
    .movie-display-container .detail-label {
        color: #a0aec0;
    }
    
    .movie-display-container .detail-value {
        color: #e2e8f0;
    }
    
    .movie-actions {
        background: #2d3748;
        border-top-color: #4a5568;
    }
}

/* 可访问性改进 - 简化版 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 高对比度模式支持 - 简化版 */
@media (prefers-contrast: high) {
    .movie-display-container {
        border: 2px solid #000;
        background: #fff;
    }
    
    .movie-display-container .movie-title {
        color: #000;
    }
    
    .movie-display-container .detail-label {
        color: #000;
    }
    
    .movie-display-container .detail-value {
        color: #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #666;
        color: #fff;
        border: 2px solid #666;
    }
}

/* 焦点可见性改进 - 简化版 */
.movie-display-container:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

/* 打印样式优化 - 简化版 */
@media print {
    .movie-display-container {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
    
    .preview-header {
        background: #fff !important;
        border-bottom: 1px solid #000 !important;
    }
    
    .preview-title {
        color: #000 !important;
    }
    
    .movie-display-container .movie-details {
        background: #fff !important;
        border: 1px solid #000 !important;
    }
    
    .movie-display-container .movie-title {
        color: #000 !important;
    }
    
    .movie-display-container .detail-item {
        background: #fff !important;
        border: 1px solid #ccc !important;
    }
    
    .movie-display-container .detail-label {
        color: #000 !important;
    }
    
    .movie-display-container .detail-value {
        color: #000 !important;
    }
    
    .movie-actions {
        display: none !important;
    }
    
    .btn {
        display: none !important;
    }
}

/* 加载状态 */
.douban-movie-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.douban-movie-card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 错误状态 */
.douban-movie-card.error {
    border-color: #e53e3e;
    background: #fed7d7;
}

.douban-movie-card.error .movie-title {
    color: #c53030;
}

/* 无图片时的占位符 */
.douban-movie-card .movie-main-content .movie-poster.no-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 移动端无图片优化 */
@media (max-width: 768px) {
    .douban-movie-card .movie-main-content .movie-poster.no-image {
        min-height: 240px;
        font-size: 16px;
    }
    
    .douban-movie-card .movie-main-content .movie-poster.no-image::before {
        font-size: 56px;
        margin-bottom: 16px;
    }
}

.douban-movie-card .movie-main-content .movie-poster.no-image::before {
    content: "🎬";
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

.douban-movie-card .movie-main-content .movie-poster.no-image::after {
    content: "暂无海报";
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* 图片加载状态 */
.douban-movie-card .movie-main-content .movie-poster {
    position: relative;
    overflow: hidden;
}

.douban-movie-card .movie-main-content .movie-poster::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.douban-movie-card .movie-main-content .movie-poster.loading::before {
    opacity: 1;
}

.douban-movie-card .movie-main-content .movie-poster.loading::after {
    content: "🎬";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* 图片加载失败时的处理 */
.douban-movie-card .movie-poster img {
    transition: opacity 0.3s ease;
}

.douban-movie-card .movie-poster img:not([src]),
.douban-movie-card .movie-poster img[src=""],
.douban-movie-card .movie-poster img[src*="data:image/svg"] {
    display: none;
}

.douban-movie-card .movie-poster img[alt]:after {
    content: "图片加载失败";
    display: block;
    padding: 20px;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 12px;
}

/* 图片懒加载效果 */
.douban-movie-card .movie-poster img[data-src] {
    opacity: 0.5;
    filter: blur(2px);
}

.douban-movie-card .movie-poster img.loaded {
    opacity: 1;
    filter: none;
}

/* 前端提交表单样式 */

/* 搜索区域样式 - 简洁版 */
.douban-search-section {
    margin-bottom: 24px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.search-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-title::before {
    content: "🔍";
    font-size: 18px;
}

.search-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
}

/* 手机端响应式优化 */
@media (max-width: 768px) {
    .douban-search-section {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .search-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .search-methods {
        gap: 12px;
    }
    
    .search-method label {
        font-size: 12px;
    }
    
    .search-input-group input {
        padding: 10px 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .douban-search-btn {
        padding: 10px 14px;
        font-size: 14px;
        min-width: 70px;
    }
    
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .douban-search-section {
        padding: 10px;
        margin-bottom: 16px;
    }
    
    .search-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .search-method label {
        font-size: 11px;
    }
    
    .search-input-group input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .douban-search-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
    }
    
}

/* 搜索方法样式 - 简洁版 */
.search-method {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-method label {
    margin: 0;
    color: #666;
    font-weight: 400;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-input-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.search-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.search-input-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px rgba(0, 124, 186, 0.2);
}

.search-input-group input::placeholder {
    color: #999;
    font-size: 13px;
}

    .douban-search-btn {
        padding: 8px 12px;
        background: #007cba;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        min-width: 60px;
    }
    
    .douban-search-btn:hover:not(:disabled) {
        background: #005a87;
    }
    
    .douban-search-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        opacity: 0.6;
    }

/* 搜索结果基础样式 */
.search-results {
    margin-top: 16px;
}

.search-results-list h5 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-results-list h5::before {
    content: "📋";
    font-size: 16px;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.2s ease;
}


.search-result-item:hover {
    border-color: #007cba;
    box-shadow: 0 1px 4px rgba(0, 124, 186, 0.1);
}

.search-result-item .movie-info {
    flex: 1;
}

.search-result-item .movie-info h6 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
}

.search-result-item .movie-info .year {
    color: #999;
    font-size: 12px;
    margin-right: 8px;
}

.search-result-item .movie-info .rating {
    color: #f39c12;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    display: inline-block;
}

.search-result-item .movie-info .movie-type {
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 6px;
    display: inline-block;
}

.search-result-item .movie-info .movie-abstract {
    color: #666;
    font-size: 12px;
    margin: 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-item .movie-info .movie-cover {
    margin-top: 6px;
}

.search-result-item .movie-info .movie-cover img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
}

.select-movie-btn {
    padding: 6px 12px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.select-movie-btn:hover {
    background: #218838;
}

/* 错误提示样式优化 */
.douban-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
}

.douban-error small {
    display: block;
    margin-top: 4px;
    color: #495057;
    font-size: 11px;
}

/* 加载状态优化 */
.douban-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.douban-search-btn:disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 重新搜索按钮样式 */
.douban-redouban-search-btn {
    background: #17a2b8;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.douban-redouban-search-btn:hover {
    background: #138496;
}

.douban-submit-title {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.douban-submit-description {
    margin: 0 0 24px 0;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

.douban-submit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    margin-top: 6px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 16px;
}

.douban-submit-btn,
.douban-reset-btn,
.douban-redouban-search-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.douban-submit-btn {
    background: #007bff;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.2);
}

.douban-submit-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.douban-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.douban-reset-btn,
.douban-redouban-search-btn {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 1px 3px rgba(108, 117, 125, 0.2);
}

.douban-reset-btn:hover,
.douban-redouban-search-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.douban-submit-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.douban-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.douban-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.douban-error small {
    display: block;
    margin-top: 8px;
    color: #495057;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 8px;
    border-radius: 4px;
    font-style: italic;
    border-left: 3px solid #17a2b8;
}

/* 详细反馈样式 */
.douban-success-detailed,
.douban-error-detailed {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.douban-success-detailed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.douban-error-detailed {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.success-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-title,
.error-title {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
}

.success-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
}

.success-details p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.success-details strong {
    color: #0d4f1c;
    font-weight: 600;
}

.success-note {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    border-left: 4px solid #28a745;
}

.success-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
}

.success-actions,
.error-actions {
    margin-top: 20px;
}

.btn-continue,
.btn-retry,
.btn-view-article {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    display: inline-block;
    margin: 0 5px;
}

.btn-continue:hover,
.btn-retry:hover,
.btn-view-article:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-retry {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-retry:hover {
    background: linear-gradient(135deg, #c82333 0%, #d62c1a 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* 查看文章按钮特殊样式 */
.btn-view-article {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-view-article:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* 按钮组布局 */
.success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.error-message {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* 弹窗样式 - 提高z-index确保主题兼容性 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    backdrop-filter: blur(2px);
}

.feedback-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content {
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* 弹窗中的反馈样式调整 */
.feedback-modal .douban-success-detailed,
.feedback-modal .douban-error-detailed {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    background: none;
}

.feedback-modal .success-icon,
.feedback-modal .error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

.feedback-modal .success-title,
.feedback-modal .error-title {
    text-align: center;
    margin-bottom: 16px;
}

.feedback-modal .success-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
}

.feedback-modal .success-note {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    padding: 10px;
    margin: 12px 0;
    border-left: 3px solid #28a745;
}

.feedback-modal .success-actions {
    margin-top: 16px;
    text-align: center;
}

.feedback-modal .btn-continue,
.feedback-modal .btn-retry,
.feedback-modal .btn-view-article {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
}

/* 禁止背景滚动 */
body.modal-open {
    overflow: hidden;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .feedback-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .feedback-modal .success-icon,
    .feedback-modal .error-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .feedback-modal .success-title,
    .feedback-modal .error-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .feedback-modal .success-details {
        padding: 10px;
        margin: 10px 0;
    }
    
    .feedback-modal .success-details p {
        font-size: 13px;
        margin: 5px 0;
    }
    
    .feedback-modal .btn-continue,
    .feedback-modal .btn-retry,
    .feedback-modal .btn-view-article {
        padding: 8px 16px;
        font-size: 13px;
        margin: 5px;
    }
    
    /* 移动端按钮组垂直排列 */
    .feedback-modal .success-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .feedback-modal .btn-continue,
    .feedback-modal .btn-retry,
    .feedback-modal .btn-view-article {
        width: 100%;
        max-width: 200px;
    }
}

/* 原有响应式适配 */
@media (max-width: 768px) {
    .douban-success-detailed,
    .douban-error-detailed {
        padding: 16px;
        margin: 16px 8px;
    }
    
    .success-icon,
    .error-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .success-title,
    .error-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .success-details {
        padding: 12px;
        margin: 12px 0;
    }
    
    .success-details p {
        font-size: 13px;
        margin: 6px 0;
    }
    
    .btn-continue,
    .btn-retry {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.douban-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 登录要求和权限提示 */
.douban-submit-login-required,
.douban-submit-permission-denied {
    padding: 20px;
    text-align: center;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    font-size: 16px;
}

.douban-submit-permission-denied {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* 豆瓣影片信息预览 - 紧凑设计 */
.movie-display-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    min-height: 400px;
    border: 1px solid #e1e5e9;
}

.movie-display-container::before {
    display: none;
}

.movie-display-container::after {
    display: none;
}

.movie-display-container:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: none;
}

/* 预览标题 - 紧凑设计 */
.preview-header {
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    position: relative;
    z-index: 2;
}

.preview-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0;
}

.preview-title::before {
    content: "🎬";
    display: inline-block;
    margin-right: 6px;
    font-size: 20px;
}

.movie-info-card {
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 2;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
    min-height: 400px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    background: transparent;
}

/* 中等屏幕优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .movie-display-container {
        margin: 24px 16px;
        max-width: calc(100% - 32px);
        border-radius: 20px;
    }
    
    .preview-header {
        padding: 24px 32px;
    }
    
    .preview-title {
        font-size: 24px;
    }
    
    .movie-info-card {
        padding: 32px;
        gap: 32px;
    }
    
    .movie-display-container .movie-poster {
        width: 280px;
        height: 420px;
        max-width: 280px;
    }
    
    .movie-display-container .movie-details {
        padding: 32px;
        min-height: 420px;
    }
    
    .movie-display-container .movie-title {
        font-size: 24px;
    }
    
    .movie-display-container .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .movie-display-container .detail-item {
        padding: 16px 20px;
    }
    
    .movie-actions {
        padding: 20px 24px;
    }
    
    .btn {
        padding: 12px 24px;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .movie-display-container {
        margin: 12px 6px;
        border-radius: 8px;
        min-height: auto;
        max-width: calc(100% - 12px);
    }
    
    .preview-header {
        padding: 12px 16px;
        border-radius: 8px 8px 0 0;
    }
    
    .preview-title {
        font-size: 18px;
    }
    
    .preview-title::before {
        font-size: 18px;
        margin-right: 6px;
    }
    
    .movie-info-card {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
        align-items: stretch;
        min-height: auto;
    }
    
    .movie-display-container .movie-poster {
        width: 100%;
        height: 240px;
        border-radius: 6px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 200px;
    }
    
    .movie-display-container .movie-poster img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 5px;
    }
    
    .movie-display-container .movie-details {
        padding: 16px;
        border-radius: 6px;
        min-height: auto;
        width: 100%;
    }
    
    .movie-display-container .movie-title {
        font-size: 20px !important;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .movie-title-section {
        text-align: center;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    
    .movie-title-section::after {
        display: none;
    }
    
    .movie-display-container .movie-meta {
        justify-content: center;
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .movie-display-container .movie-meta span {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* 手机端信息区域单列显示 - 更紧凑 */
    .movie-display-container .details-grid {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .movie-display-container .detail-item {
        padding: 8px 10px;
        border-radius: 3px;
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
        font-size: 11px;
    }
    
    .movie-display-container .detail-label {
        font-size: 9px;
        min-width: 35px;
        font-weight: 600;
    }
    
    .movie-display-container .detail-value {
        font-size: 11px;
        flex: 1;
        color: #2c3e50;
    }
    
    .detail-icon {
        font-size: 12px;
    }
    
    .movie-actions {
        padding: 12px 16px;
        border-radius: 0 0 8px 8px;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: auto;
        width: 100%;
    }
    
    .detail-value {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        line-height: 1.4;
        max-width: 100%;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .movie-display-container {
        margin: 8px 4px;
        border-radius: 6px;
        max-width: calc(100% - 8px);
    }
    
    .preview-header {
        padding: 10px 12px;
        border-radius: 6px 6px 0 0;
    }
    
    .preview-title {
        font-size: 16px;
    }
    
    .preview-title::before {
        font-size: 16px;
        margin-right: 4px;
    }
    
    .movie-info-card {
        padding: 12px;
        gap: 12px;
    }
    
    .movie-display-container .movie-poster {
        width: 100%;
        height: 200px;
        border-radius: 4px;
        max-width: 160px;
    }
    
    .movie-display-container .movie-poster img {
        border-radius: 3px;
    }
    
    .movie-display-container .movie-details {
        padding: 12px;
        border-radius: 4px;
    }
    
    .movie-display-container .movie-title {
        font-size: 18px !important;
        margin-bottom: 10px;
    }
    
    .movie-title-section {
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
    
    .movie-display-container .movie-meta {
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .movie-display-container .movie-meta span {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    /* 超小屏幕也保持单列显示 - 更紧凑 */
    .movie-display-container .details-grid {
        gap: 4px;
    }
    
    .movie-display-container .detail-item {
        padding: 6px 8px;
        border-radius: 2px;
        font-size: 10px;
    }
    
    .movie-display-container .detail-label {
        font-size: 8px;
        min-width: 30px;
    }
    
    .movie-display-container .detail-value {
        font-size: 10px;
    }
    
    .detail-icon {
        font-size: 10px;
    }
    
    .movie-actions {
        padding: 10px 12px;
        border-radius: 0 0 6px 6px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* 极小屏幕优化 */
@media (max-width: 360px) {
    .movie-display-container {
        margin: 6px 2px;
        border-radius: 4px;
        max-width: calc(100% - 4px);
    }
    
    .preview-header {
        padding: 8px 10px;
        border-radius: 4px 4px 0 0;
    }
    
    .preview-title {
        font-size: 14px;
    }
    
    .preview-title::before {
        font-size: 14px;
        margin-right: 3px;
    }
    
    .movie-info-card {
        padding: 10px;
        gap: 10px;
    }
    
    .movie-display-container .movie-poster {
        width: 100%;
        height: 180px;
        border-radius: 3px;
        max-width: 140px;
    }
    
    .movie-display-container .movie-poster img {
        border-radius: 2px;
    }
    
    .movie-display-container .movie-details {
        padding: 10px;
        border-radius: 3px;
    }
    
    .movie-display-container .movie-title {
        font-size: 16px !important;
        margin-bottom: 8px;
    }
    
    .movie-title-section {
        padding-bottom: 4px;
        margin-bottom: 8px;
    }
    
    .movie-display-container .movie-meta {
        gap: 3px;
        margin-bottom: 10px;
    }
    
    .movie-display-container .movie-meta span {
        padding: 2px 4px;
        font-size: 8px;
    }
    
    /* 极小屏幕也保持单列显示 - 最紧凑 */
    .movie-display-container .details-grid {
        gap: 3px;
    }
    
    .movie-display-container .detail-item {
        padding: 5px 6px;
        border-radius: 2px;
        font-size: 9px;
    }
    
    .movie-display-container .detail-label {
        font-size: 7px;
        min-width: 25px;
    }
    
    .movie-display-container .detail-value {
        font-size: 9px;
    }
    
    .detail-icon {
        font-size: 8px;
    }
    
    .movie-actions {
        padding: 8px 10px;
        border-radius: 0 0 4px 4px;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .douban-movie-display {
        margin: 0 5px;
        border-radius: 6px;
    }
    
    .movie-display-header {
        padding: 10px 12px;
    }
    
    .movie-display-title {
        font-size: 14px;
    }
    
    .movie-display-description {
        font-size: 11px;
    }
    
    .movie-poster-section {
        height: 140px;
        padding: 12px;
    }
    
    .movie-poster-preview {
        width: 100px;
        height: 140px;
    }
    
    .movie-info-section {
        padding: 10px;
        gap: 6px;
    }
    
    .movie-title-display {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .meta-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .detail-item {
        padding: 3px 0;
    }
    
    .detail-label {
        font-size: 10px;
        min-width: 35px;
    }
    
    .detail-value {
        font-size: 10px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

.movie-display-container .movie-poster {
    flex-shrink: 0;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    max-width: 320px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-display-container .movie-poster:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.movie-display-container .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
    transition: none;
    filter: none;
}

.movie-display-container .movie-poster:hover img {
    transform: none;
    filter: none;
}

.no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 7px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    text-align: center;
}

.no-poster:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.poster-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.poster-text {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 8px;
}

.no-poster::after {
    content: "暂无海报";
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-weight: 400;
}

.movie-display-container .movie-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 360px;
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: visible;
    z-index: 1;
}

.movie-display-container .movie-details:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.movie-title-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
    margin-bottom: 16px;
    position: relative;
}

.movie-title-section::after {
    display: none;
}

.movie-display-container .movie-title {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.movie-display-container .movie-title:hover {
    transform: none;
}

.movie-display-container .movie-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.movie-display-container .movie-meta span {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-weight: 500;
    white-space: nowrap;
    transition: none;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: visible;
}

.movie-display-container .movie-meta span::before {
    display: none;
}

.movie-display-container .movie-meta span:hover::before {
    display: none;
}

.movie-display-container .movie-meta span:hover {
    background: #e9ecef;
    transform: none;
    box-shadow: none;
    border-color: #dee2e6;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.badge-rating {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.badge-year {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.badge-area {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.movie-display-container .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: visible;
}

.movie-display-container .detail-item {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: none;
    min-width: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.movie-display-container .detail-item::before {
    display: none;
}

.movie-display-container .detail-item:hover::before {
    display: none;
}

.movie-display-container .detail-item:hover {
    background: #ffffff;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.movie-display-container .detail-item:last-child {
    border-bottom: none;
}

.movie-display-container .detail-label {
    color: #667eea;
    font-weight: 800;
    min-width: 60px;
    font-size: 12px;
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: 0;
}

.movie-display-container .detail-value {
    color: #2c3e50;
    flex: 1;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.detail-icon {
    font-size: 14px;
    color: #6c757d;
    margin-top: 1px;
    flex-shrink: 0;
    transition: none;
}

.detail-item:hover .detail-icon {
    transform: none;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.detail-label {
    color: #666;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    color: #333;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}


/* 操作按钮 */
.movie-actions {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    text-decoration: none;
    min-width: 100px;
    justify-content: center;
    position: relative;
    z-index: 11;
    pointer-events: auto;
    text-transform: none;
    letter-spacing: 0;
    overflow: visible;
}

.btn::before {
    display: none;
}

.btn:hover::before {
    display: none;
}

.btn-icon {
    font-size: 14px;
    transition: none;
}

.btn:hover .btn-icon {
    transform: none;
}

.btn-primary {
    background: #007bff;
    color: white;
    box-shadow: none;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    box-shadow: none;
    transform: none;
    border-color: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: none;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
    box-shadow: none;
    transform: none;
    border-color: #545b62;
}


/* 折叠内容样式 */
.collapsible-content {
    position: relative;
    display: inline;
}

.collapsible-content .toggle-btn {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: inherit;
    padding: 0 4px;
    margin-left: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: 3px;
    display: inline-block;
    line-height: 1.2;
}

.collapsible-content .toggle-btn:hover {
    color: #005a87;
    background-color: rgba(0, 124, 186, 0.1);
}

.collapsible-content .toggle-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 1px;
}

.collapsible-content .toggle-btn::before {
    content: "[";
    color: #666;
}

.collapsible-content .toggle-btn::after {
    content: "]";
    color: #666;
}

/* 响应式处理 */
@media (max-width: 768px) {
    .collapsible-content .toggle-btn {
        font-size: 12px;
        padding: 2px 4px;
        margin-left: 2px;
    }
}

/* 教程部分简单样式 */
.douban-tutorial-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.tutorial-title {
    text-align: center;
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-title {
    color: #333;
    font-size: 14px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.step-description {
    color: #666;
    font-size: 13px;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.step-note {
    background: #f0f8ff;
    padding: 8px 10px;
    border-radius: 3px;
    color: #0066cc;
    font-size: 12px;
    margin: 5px 0 0 0;
    line-height: 1.3;
}

/* 登录提示弹窗样式 */
.douban-login-prompt {
    text-align: center;
    padding: 20px;
}

.douban-login-prompt .login-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.douban-login-prompt .login-title {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 20px;
}

.douban-login-prompt .login-message {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.douban-login-prompt .login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.douban-login-prompt .btn-login {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.douban-login-prompt .btn-login:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.douban-login-prompt .btn-cancel {
    background: #95a5a6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.douban-login-prompt .btn-cancel:hover {
    background: #7f8c8d;
}

/* 搜索结果响应式样式 - 媒体查询 */

/* 平板端优化 */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
    }
    
    .search-result-item .movie-info {
        text-align: left;
    }
    
    .search-result-item .movie-info h6 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .search-result-item .movie-info .movie-cover {
        margin-top: 8px;
        text-align: center;
    }
    
    .search-result-item .movie-info .movie-cover img {
        width: 60px;
        height: 80px;
    }
    
    .search-result-item .movie-info .movie-abstract {
        font-size: 11px;
        margin: 6px 0;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .search-result-item .movie-info .movie-type {
        font-size: 10px;
        padding: 1px 4px;
        margin: 2px 4px 2px 0;
    }
    
    .search-result-item .movie-info .rating {
        font-size: 11px;
        margin-right: 6px;
    }
    
    .select-movie-btn {
        width: 100%;
        padding: 10px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* 手机端优化 */
@media (max-width: 480px) {
    .search-result-item {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .search-result-item .movie-info h6 {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .search-result-item .movie-info .movie-cover img {
        width: 50px;
        height: 70px;
    }
    
    .search-result-item .movie-info .movie-abstract {
        font-size: 10px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .select-movie-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    .search-results-list h5 {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* 主题兼容性增强 - 确保弹窗在所有主题之上显示 */
.douban-submit-form-container * {
    box-sizing: border-box;
}

/* 强制弹窗层级，防止主题样式干扰 */
.modal-overlay,
.feedback-modal {
    position: fixed !important;
    z-index: 999999 !important;
}

.feedback-modal .modal-content {
    position: relative;
    z-index: 1000000;
}

/* 确保按钮样式不被主题覆盖 */
.movie-actions .btn {
    position: relative;
    z-index: 1;
}

/* 防止主题的全局样式影响弹窗 */
.feedback-modal,
.feedback-modal * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.5 !important;
}

/* 确保弹窗背景不透明 */
.feedback-modal {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
}

/* 防止主题的transform影响弹窗定位 */
.feedback-modal {
    transform: translate(-50%, -50%) !important;
}

/* 确保弹窗在移动端也能正常显示 */
@media (max-width: 768px) {
    .modal-overlay,
    .feedback-modal {
        z-index: 999999 !important;
    }
    
    .feedback-modal {
        width: 95% !important;
        max-width: 95% !important;
        margin: 0 !important;
    }
}
