/* QR码生成器样式 */
.qr-code-section {
    margin: 30px 0;
}

.qr-generator-container {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* 输入部分 */
.input-section {
    flex: 1;
    min-width: 300px;
}

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

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

#qr-content {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

/* 选项部分 */
.options-section {
    margin-bottom: 20px;
}

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

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

select, input[type="color"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.color-options {
    display: flex;
    gap: 15px;
}

.color-options .option-group {
    flex: 1;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 按钮 */
.button-group {
    display: flex;
    gap: 10px;
}

.primary-btn, .secondary-btn, .download-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.primary-btn {
    background-color: #007bff;
    color: white;
    flex: 2;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
    flex: 1;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

/* 输出部分 */
.output-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-output {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#qr-code-container {
    width: 256px;
    height: 256px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.placeholder-message {
    text-align: center;
    color: #6c757d;
}

.placeholder-message i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* 下载选项 */
.download-options {
    display: flex;
    gap: 10px;
    width: 100%;
}

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

.download-btn:hover {
    background-color: #218838;
}

.download-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 知识卡片 */
.qr-code-knowledge {
    margin-top: 40px;
}

.knowledge-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.knowledge-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.knowledge-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.knowledge-card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.knowledge-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qr-generator-container {
        flex-direction: column;
    }
    
    .color-options {
        flex-direction: column;
        gap: 15px;
    }
    
    #qr-code-container {
        width: 200px;
        height: 200px;
    }
}
