/* ========================================
   Bilibili 视频封面获取工具 - 专用样式
   ======================================== */

/* 输入区域 */
.input-section {
    margin-bottom: 25px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.input-label i {
    color: #00a1d6; /* Bilibili 品牌色 */
    font-size: 18px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.video-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.video-input:focus {
    border-color: #00a1d6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 161, 214, 0.1);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.input-hint i {
    color: #00a1d6;
    font-size: 14px;
}

/* 快捷示例区域 */
.example-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 25px;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.example-header i {
    color: #ffa500;
    font-size: 16px;
}

.example-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.example-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-btn:hover {
    background: #00a1d6;
    color: white;
    border-color: #00a1d6;
    transform: translateY(-2px);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00a1d6, #0084b4);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 161, 214, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0084b4, #006d93);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 161, 214, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

/* 加载和错误提示 */
.loading-msg,
.error-msg {
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-msg {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    border: 1px solid #90caf9;
}

.loading-msg i {
    font-size: 18px;
}

.error-msg {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border: 1px solid #ef5350;
}

.error-msg i {
    font-size: 18px;
}

/* 结果展示区 */
.result-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.video-info h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #222;
    font-weight: 600;
}

.video-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.video-info p i {
    color: #00a1d6;
}

.video-info .separator {
    color: #ccc;
    margin: 0 5px;
}

/* 封面展示 */
.cover-display {
    margin: 25px 0;
    text-align: center;
    position: relative;
}

.cover-display img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.cover-display img:hover {
    transform: scale(1.02);
}

/* 下载按钮区域 */
.download-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-download {
    background: linear-gradient(135deg, #00a1d6, #0084b4);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 161, 214, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #0084b4, #006d93);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 161, 214, 0.4);
}

.btn-download i {
    font-size: 16px;
}

/* 复制提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0, 161, 214, 0.95);
    color: white;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.copy-toast i {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .download-actions {
        flex-direction: column;
        gap: 12px;
    }

    .download-actions button {
        width: 100%;
        justify-content: center;
    }

    .video-info h3 {
        font-size: 18px;
    }

    .video-info p {
        font-size: 13px;
    }

    .example-grid {
        gap: 8px;
    }

    .example-btn {
        font-size: 12px;
        padding: 7px 14px;
    }

    .result-section {
        padding: 20px;
    }

    .input-label {
        font-size: 15px;
    }

    .video-input {
        font-size: 14px;
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        padding: 0 10px;
    }

    .btn {
        font-size: 14px;
        padding: 11px 24px;
    }

    .video-info h3 {
        font-size: 17px;
    }

    .result-section {
        padding: 18px;
    }

    .example-section {
        padding: 15px;
    }

    .copy-toast {
        padding: 14px 24px;
        font-size: 14px;
    }
}
