/* 网页链接提炼页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9ff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}


/* 使用步骤指引 */
.steps-guide {
    margin: 30px 20px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.steps-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.steps-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 70px;
}

.step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 60px;
    width: 2px;
    height: 40px;
    background: #e5e5e5;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    background: #667EEA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 输入区域 */
.input-section {
    margin: 30px 20px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.input-title {
    padding: 25px 30px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.input-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.input-container {
    padding: 20px 30px 30px;
}

.input-wrapper {
    position: relative;
}

.link-input {
    width: 100%;
    height: 50px;
    background: #f8f9ff;
    border: 2px solid #e5e7ff;
    border-radius: 12px;
    padding: 0 15px;
    padding-right: 100px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.link-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.link-input.validation-valid {
    border-color: #52c41a;
    background: #f6ffed;
}

.link-input.validation-invalid {
    border-color: #ff4d4f;
    background: #fff2f0;
}

/* 粘贴按钮 */
.paste-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: #667eea;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paste-button:hover {
    background: #5a6fd8;
}

.paste-button:active {
    transform: translateY(-50%) scale(0.95);
}

.paste-icon {
    margin-right: 5px;
    font-size: 16px;
}

.paste-text {
    font-size: 14px;
    font-weight: 500;
}

/* 验证状态指示器 */
.validation-status {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.validation-status.status-valid {
    background: #f6ffed;
    color: #52c41a;
}

.validation-status.status-invalid {
    background: #fff2f0;
    color: #ff4d4f;
}

.status-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 解析按钮样式 */
.parse-section {
    padding: 0 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.parse-btn {
    width: 100%;
    height: 50px;
    background: #667EEA;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.parse-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.parse-btn.parsing {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    box-shadow: none;
    cursor: not-allowed;
}

.parse-btn:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-text {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

/* 视频信息卡片 */
.video-info-section {
    margin: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
}

.video-cover {
    width: 160px;
    height: 120px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
}

.video-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.video-author {
    font-size: 14px;
    color: #666;
}

.video-stats {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.generate-section {
    margin-top: 30px;
}

.generate-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.4);
}

.generate-btn.generating {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    box-shadow: none;
    cursor: not-allowed;
}

.generate-btn.completed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

.generate-btn:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    box-shadow: none;
    cursor: not-allowed;
}

.tip-text {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

.tip-text.completed {
    color: #22c55e;
    font-weight: 500;
}

/* 历史记录样式 */
.history-section {
    margin: 20px 20px 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.history-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.history-count {
    font-size: 14px;
    color: #999;
}

.history-list {
    padding: 0;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f8f8;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background-color: #f8f8f8;
}

.history-cover {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
    object-fit: cover;
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-title-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.history-platform {
    font-size: 12px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.history-duration {
    font-size: 12px;
    color: #666;
}

.history-time {
    font-size: 12px;
    color: #999;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.status-completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-waiting {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-ready_to_process {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.load-more {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.load-more:hover {
    background-color: #f8f8f8;
}

.load-more-text {
    font-size: 14px;
    color: #667eea;
}

/* 进度显示区域样式 */
.progress-section {
    margin-top: 20px;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.progress-percent {
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
}

.progress-bar-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-text {
    font-size: 14px;
    color: #666;
}

.loading-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.dot1 {
    animation-delay: -0.32s;
}

.dot2 {
    animation-delay: -0.16s;
}

.dot3 {
    animation-delay: 0s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.progress-tip {
    text-align: center;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.progress-tip .tip-text {
    font-size: 14px;
    color: #667eea;
}

/* 队列信息样式 */
.queue-info {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #fff7e6 0%, #fff 100%);
    border: 1px solid #ffd591;
    border-radius: 12px;
}

.queue-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.queue-icon {
    font-size: 18px;
    margin-right: 10px;
}

.queue-title {
    font-size: 15px;
    font-weight: 600;
    color: #d48806;
}

.queue-details {
    margin-bottom: 12px;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.queue-label {
    font-size: 14px;
    color: #8c4e00;
}

.queue-value {
    font-size: 14px;
    font-weight: 600;
    color: #d48806;
}

.processing-speed-note {
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    text-align: center;
}

.speed-note-text {
    font-size: 13px;
    color: #ad8b00;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .steps-guide {
        padding: 20px;
    }
    
    .video-card {
        flex-direction: column;
    }
    
    .video-cover {
        width: 100%;
        height: 200px;
    }
}

