* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans SC', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1f2933;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.header {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    margin-bottom: 16px;
}

.header h1 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #111827;
}

.subtitle {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
}

.panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.panel h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #111827;
    flex-shrink: 0;
}

textarea {
    width: 100%;
    margin: 8px 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    resize: vertical;
    min-height: 80px;
    font-size: 14px;
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.code-editor {
    min-height: 180px;
}

button {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-bottom: 8px;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.5);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}

.task-status {
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f3f4ff;
    color: #111827;
    min-height: 40px;
}

.video-result {
    margin-top: 12px;
}

.video-result a {
    color: #4f46e5;
    text-decoration: none;
}

.video-result a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .app {
        padding: 12px;
    }
    
    .panel {
        padding: 15px;
    }
}

/* 备案信息（侧栏与页脚通用）- 字体调小 */
.footer-beian {
    margin-top: 8px;
    font-size: 9px;
    line-height: 1.4;
}
.footer-beian-link {
    color: #64748B;
    text-decoration: none;
    font-size: 9px;
}
.footer-beian-link:hover {
    color: #2563EB;
    text-decoration: underline;
}
.footer-beian-icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 3px;
    display: inline-block;
    flex-shrink: 0;
    object-fit: contain;
}
.footer-beian-sep {
    margin: 0 4px;
    color: #94A3B8;
    font-size: 9px;
}

