/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 定义主要颜色变量 */
:root {
    --primary-color: #FF0000; /* YouTube红色 */
    --primary-light: #ff6b6b;
    --secondary-color: #F2F2F2;
    --text-color: #333;
    --light-gray: #e1e1e1;
    --dark-gray: #777;
    --success-color: #4CAF50;
    --info-color: #2196F3;
    --warning-color: #FFC107;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 基础样式 */
body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部区域样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo i {
    font-size: 42px;
    color: var(--primary-color);
    margin-right: 15px;
}

h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.slogan {
    font-size: 16px;
    color: var(--dark-gray);
}

/* 主要内容区域样式 */
main {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

/* 输入框区域样式 */
.input-section {
    margin-bottom: 25px;
}

.char-counter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-size: 14px;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    resize: none;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.button-group {
    display: flex;
    justify-content: flex-end;
}

.paste-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.paste-btn i {
    margin-right: 8px;
}

.paste-btn:hover {
    background-color: #e6e6e6;
}

/* 进度条区域样式 */
.progress-section {
    margin-bottom: 25px;
    animation: fadeIn 0.5s;
}

.progress-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-size: 14px;
}

.progress-info i {
    margin-right: 10px;
    font-size: 18px;
    color: var(--primary-color);
}

.progress-bar {
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* 验证码和下载按钮区域样式 */
.action-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.captcha-section {
    display: flex;
    align-items: center;
}

.captcha-input {
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    width: 120px;
    margin-right: 10px;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.captcha-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-size: 20px;
    min-width: 80px;
    margin-right: 10px;
}

.refresh-captcha {
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    font-size: 18px;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.advanced-btn, .download-btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.advanced-btn i, .download-btn i {
    margin-right: 8px;
}

.advanced-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.advanced-btn:hover {
    background-color: #e6e6e6;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
}

.download-btn:hover {
    background-color: var(--primary-light);
}

/* 高级设置面板样式 */
.advanced-panel {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    animation: fadeIn 0.5s;
}

.advanced-panel h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-desc {
    font-size: 14px;
    color: var(--dark-gray);
    margin-top: 5px;
    margin-left: 24px;
}

.format-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.format-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.format-option input {
    margin-right: 8px;
}

.format-icon {
    display: flex;
    align-items: center;
}

.format-icon i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 结果展示区域样式 */
.result-section {
    animation: fadeIn 0.5s;
}

.parse-success {
    text-align: center;
    margin-bottom: 25px;
}

.success-icon {
    font-size: 40px;
    color: var(--success-color);
    margin-bottom: 10px;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.author-info {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.author-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-details p {
    font-size: 14px;
    color: var(--dark-gray);
}

.platform-logo i {
    font-size: 30px;
    color: var(--primary-color);
}

.video-preview {
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #000;
}

.video-preview video {
    width: 100%;
    display: block;
}

.download-info {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-size: 14px;
}

.premium-tip {
    color: var(--primary-color);
    margin-top: 5px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-btn {
    padding: 12px 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.history-btn i {
    margin-right: 8px;
}

.history-btn:hover {
    background-color: #e6e6e6;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.download-option {
    padding: 12px 15px;
    background-color: var(--primary-light);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.download-option:hover {
    background-color: var(--primary-color);
}

/* 转录选项样式 */
.transcription-options {
    margin-top: 10px;
}

.transcription-settings {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    animation: fadeIn 0.3s;
}

.transcription-row {
    margin-bottom: 15px;
}

.transcription-row label {
    display: inline-block;
    margin-right: 10px;
}

.transcription-row select {
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background-color: white;
}

.beta-tag {
    display: inline-block;
    background-color: var(--info-color);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 转录结果区域样式 */
.transcription-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s;
}

.transcription-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
}

.transcription-status {
    margin-bottom: 20px;
}

.transcription-progress {
    margin-bottom: 15px;
}

.transcription-progress p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--dark-gray);
}

.transcription-content {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    white-space: pre-wrap;
    border: 1px solid var(--light-gray);
}

.transcription-actions {
    display: flex;
    gap: 10px;
}

.copy-btn, .transcription-actions .download-btn {
    padding: 10px 15px;
    font-size: 14px;
    flex: 1;
}

.copy-btn {
    background-color: var(--info-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #0b7dda;
}

/* 底部信息区域样式 */
footer {
    text-align: center;
    color: var(--dark-gray);
    font-size: 14px;
    padding: 20px 0;
}

footer p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .action-section {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-section, .download-buttons {
        width: 100%;
    }

    .download-buttons {
        justify-content: space-between;
    }

    .advanced-btn, .download-btn {
        flex: 1;
    }

    .download-options {
        grid-template-columns: 1fr;
    }
    
    .transcription-actions {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 