/* ===========================================
   全局样式重置
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================================
   页面主体样式
   =========================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    min-height: 100vh;
    padding: 32px 24px 48px;
    color: #333;
}

.page-footer {
    margin: 32px auto 0;
    text-align: center;
    color: #718096;
    font-size: 14px;
}

.page-nav,
.container-header {
    display: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===========================================
   屏幕切换
   =========================================== */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* ===========================================
   登录界面
   =========================================== */
.login-box {
    background: white;
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e7eb;
    max-width: 400px;
    margin: 0 auto;
}

.login-box h1 {
    color: #5a3716;
    margin-bottom: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.login-box h2 {
    color: #69492c;
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: #3182ce;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3182ce;
    color: white;
    width: 100%;
    border: 1px solid #3182ce;
}

.btn-primary:hover:not(:disabled) {
    background: #2c5282;
    border-color: #2c5282;
}

.btn-primary:active:not(:disabled) {
    background: #2a4365;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    border-color: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    border-color: #218838;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: #e53e3e;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

/* ===========================================
   主界面
   =========================================== */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e4e7eb;
    padding: 24px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #1a202c;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.header p {
    font-size: 13px;
    color: #718096;
}

.card {
    background: white;
    border-radius: 4px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e7eb;
}

.card h2 {
    color: #1a202c;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.card ol {
    padding-left: 20px;
    line-height: 2;
    color: #4a5568;
}

.card ol li {
    margin-bottom: 10px;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.file-info {
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 4px;
    color: #4a5568;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.status-message {
    padding: 12px 16px;
    background: #ebf8ff;
    border-radius: 4px;
    color: #2c5282;
    margin-bottom: 15px;
    font-size: 14px;
    border-left: 3px solid #63b3ed;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid #cbd5e0;
}

.progress-fill {
    height: 100%;
    background: #3182ce;
    width: 0%;
    transition: width 0.3s;
}

.result-message {
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 4px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    border-left: 3px solid #cbd5e0;
}

.result-message.success {
    background: #f0fff4;
    color: #22543d;
    border-left-color: #48bb78;
}

.result-message.error {
    background: #fff5f5;
    color: #742a2a;
    border-left-color: #fc8181;
}

/* ===========================================
   响应式设计
   =========================================== */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .card {
        padding: 24px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
