/* 经典影视台词工具样式 */

/* 工具副标题 */
.tool-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

/* 筛选器区域 */
.filter-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.filter-group label i {
    margin-right: 6px;
    color: #667eea;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    font-weight: 600;
}

/* 搜索组 */
.search-group {
    margin-top: 20px;
}

.search-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.search-group label i {
    margin-right: 6px;
    color: #667eea;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* 操作按钮区 */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* 结果统计信息 */
.result-info {
    padding: 12px 16px;
    background: #e3f2fd;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.result-info p {
    margin: 0;
    color: #1976d2;
    font-size: 14px;
}

.result-info strong {
    font-weight: 700;
    font-size: 18px;
}

/* 台词展示区 */
.quotes-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    min-height: 300px;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* 台词卡片 */
.quote-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 4px solid #667eea;
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quote-content {
    flex: 1;
    margin-bottom: 16px;
}

.quote-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 500;
    quotes: """ """ "'" "'";
}

.quote-text::before {
    content: open-quote;
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    margin-right: 4px;
}

.quote-text::after {
    content: close-quote;
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    margin-left: 4px;
}

.quote-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.quote-character {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.quote-movie {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* 标签 */
.quote-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.type-tag {
    background: #e3f2fd;
    color: #1976d2;
}

.theme-tag {
    background: #fce4ec;
    color: #c2185b;
}

.region-tag {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 操作按钮 */
.quote-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.action-btn i {
    font-size: 14px;
}

.favorite-btn.favorited {
    background: #ff4081;
    border-color: #ff4081;
    color: white;
}

.favorite-btn.favorited i {
    color: white;
}

/* 加载更多容器 */
.load-more-container {
    text-align: center;
    margin: 32px 0;
}

.load-more-container .btn-secondary {
    padding: 12px 32px;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .quotes-display {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .tool-subtitle {
        font-size: 14px;
    }

    .filter-section {
        padding: 16px;
    }

    .filter-group label {
        font-size: 13px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .quotes-display {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quote-card {
        padding: 20px;
    }

    .quote-text {
        font-size: 15px;
    }

    .quote-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    .quote-text {
        font-size: 14px;
    }

    .quote-text::before,
    .quote-text::after {
        font-size: 18px;
    }

    .quote-meta {
        font-size: 12px;
    }

    .filter-section {
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-card {
    animation: fadeIn 0.3s ease;
}
