body {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.qr-generator {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-section {
    margin-bottom: 2rem;
}

.input-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
    font-size: 0.9rem;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.qr-codes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.qr-code {
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code img {
    display: block;
    margin: 0 auto 10px;
}

.qr-code-text {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-bottom: 10px;
}

.qr-code-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.qr-code-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 320px;
}

.qr-code-item .qr-code {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.qr-code-item .content {
    font-size: 0.9rem;
    color: #666;
    word-break: break-all;
    margin-bottom: 1rem;
    flex: 1;
    
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.4;
    
    position: relative;
}

.qr-code-item .content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.qr-code-item .content.short-text::after {
    display: none;
}

.qr-code-item .download-btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    margin-top: auto;
}

.form-control {
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-outline-primary {
    border: 1px solid #4a90e2;
    color: #4a90e2;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #4a90e2;
    color: white;
}

.btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* 选项卡样式 */
.nav-tabs {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link i {
    margin-right: 6px;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #4a90e2;
}

.nav-tabs .nav-link.active {
    border: none;
    color: #4a90e2;
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4a90e2;
}

/* 解析二维码区域样式 */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #4a90e2;
    background: #f0f7ff;
}

.upload-area.dragover {
    border-color: #4a90e2;
    background: #f0f7ff;
}

.upload-hint {
    color: #666;
}

.upload-hint i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.upload-hint p {
    margin: 0;
    font-size: 1rem;
}

.upload-hint .sub-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

/* 结果区域样式 */
.result-area {
    margin-top: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-preview {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-preview img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.result-text {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

/* 二维码结果区域 */
#qrCodesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .options {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    #qrCodesContainer {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .qr-code-item {
        min-height: 280px;
    }
} 