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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 头部样式 */
.header {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.logo svg {
    margin-bottom: 10px;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 20px;
    text-align: center;
}


h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: normal;
}

/* 上传区域样式 */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #4A90E2;
}

.upload-area.dragover {
    border-color: #4A90E2;
    background-color: #f0f8ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-area p {
    margin-bottom: 20px;
    color: #666;
}

.upload-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: #357abd;
}

/* 输入字段样式 */
.input-fields {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.input-group {
    margin-bottom: 15px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.input-group input::placeholder {
    color: #999;
}

/* 文件信息样式 */
.file-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.file-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.file-info p {
    margin-bottom: 10px;
    color: #666;
}

.process-btn {
    background-color: #7ED321;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.process-btn:hover {
    background-color: #6bb71a;
}

/* 结果区域样式 */
.result-section {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.result-section h2 {
    color: #333;
    margin-bottom: 25px;
}

.qr-container {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.qr-container canvas {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.instructions {
    text-align: left;
    margin: 25px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #333;
}

.instructions ol {
    margin-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    color: #666;
}

/* QR页面验证信息 */
.qr-verification-info {
    background: #e8f5e8;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.verification-header h2 {
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.verification-details .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.verification-details .info-item label {
    font-weight: 600;
    color: #2E7D32;
    min-width: 100px;
}

.verification-details .info-item span {
    color: #1B5E20;
    font-weight: 500;
    font-size: 16px;
}

/* 验证信息 */
.verification-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.info-item span {
    color: #666;
    font-family: monospace;
}

.info-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    text-decoration: underline;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.download-btn, .reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.download-btn {
    background: #28a745;
    color: white;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.reset-btn {
    background: #6c757d;
    color: white;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.new-upload-btn {
    background-color: #F5A623;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.new-upload-btn:hover {
    background-color: #e6951f;
}

/* 页脚样式 */
footer {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .result-section {
        padding: 20px 15px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}