/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 头部样式 */
header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100% 100%;
    opacity: 0.3;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #ffcc00;
}

header h1 {
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: #e0e0e0;
}

/* 主要内容区域 */
.main-content {
    padding: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #2a5298;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group {
    display: flex;
    gap: 5px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.2);
}

#paste-btn {
    padding: 0 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#paste-btn:hover {
    background: #e0e0e0;
}

/* 按钮样式 */
.actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #e03a5f, #e04428);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #444;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* 解析结果区域 */
.result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 25px;
    text-align: center;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.result-card.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.loading {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
}

.loading i {
    font-size: 3rem;
    color: #2a5298;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.loading p {
    color: #555;
    font-size: 1.1rem;
}

.result-header {
    margin-bottom: 25px;
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.success-icon {
    color: #4CAF50;
    animation: bounceIn 0.6s ease;
}

.error-icon {
    color: #ff4444;
}

.result-content h3 {
    color: #2a5298;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.result-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-play {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.3);
}

.btn-retry {
    background: #f0f0f0;
    color: #444;
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-retry:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.error-state {
    padding: 20px;
}

.error-message {
    color: #ff4444;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 6px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* 浮动窗口样式 */
.video-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    height: 70vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    z-index: 1001;
    display: none;
    flex-direction: column;
}

.video-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #2a5298;
    color: white;
    border-radius: 10px 10px 0 0;
}

.video-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.video-frame {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 0 0 10px 10px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
}

/* 使用说明 */
.instructions {
    padding: 20px 30px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #2a5298;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background: #2a5298;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

footer i {
    margin-right: 5px;
    color: #ffcc00;
}

/* 动画效果 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .actions {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: column;
    }

    .video-popup {
        width: 95%;
        height: 60vh;
    }
}
/* 关于作者按钮样式 */
.btn-author {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-author:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 作者信息弹窗样式 */
.author-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.author-modal.show {
    opacity: 1;
    visibility: visible;
}

.author-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.author-modal.show .author-modal-content {
    transform: translateY(0);
}

.author-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.author-close-btn:hover {
    color: #ff4444;
    transform: rotate(90deg);
}

.author-header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
}

.author-info {
    padding: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.info-item i {
    width: 30px;
    color: #6a11cb;
    font-size: 1.2rem;
    text-align: center;
}

.info-item span:not(.info-value) {
    font-weight: 600;
    color: #555;
    width: 70px;
}

.info-value {
    color: #333;
    flex: 1;
}

.author-footer {
    padding: 15px 25px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.author-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.author-modal.show + .author-modal-overlay {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-author {
        right: 15px;
        bottom: 15px;
        padding: 12px 20px;
    }

    .author-modal-content {
        width: 95%;
    }
}

/* 头像样式 */
.author-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    position: relative;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}