/* 工具五（二维码生成器）专用样式 */

/* 页面头部 */
.page-header {
    background-color: #1e1e1e;
    padding: 40px 0;
    border-bottom: 1px solid #333333;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #00c853;
}

.page-header p {
    font-size: 16px;
    color: #b0b0b0;
    max-width: 700px;
}

/* 工具主体区域 */
.qrcode-generator {
    padding: 48px 0;
}

/* 主要内容区域布局 */
.generator-container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

/* 左侧设置面板 */
.settings-panel {
    flex: 0 0 320px;
}

.panel-section {
    margin-bottom: 24px;
}

.panel-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

/* 输入区域 */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

.text-input {
    width: 100%;
    padding: 10px 12px;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
}

.text-input:focus {
    outline: none;
    border-color: #00c853;
}

.textarea-input {
    min-height: 120px;
    resize: vertical;
}

/* 尺寸设置 */
.size-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.size-input {
    flex: 1;
}

.size-value {
    width: 60px;
    text-align: center;
}

/* 颜色选择器 */
.color-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.color-group {
    margin-bottom: 0;
}

.color-picker {
    width: 100%;
    height: 40px;
    padding: 3px;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    border-radius: 6px;
    cursor: pointer;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

/* 纠错级别选择 */
.error-correction {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ec-option {
    padding: 8px;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #e0e0e0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.ec-option:hover {
    background-color: #383838;
}

.ec-option.active {
    background-color: rgba(0, 200, 83, 0.1);
    border-color: #00c853;
    color: #00c853;
}

/* 预览和结果区域 - 右侧 */
.preview-panel {
    flex: 1;
    min-width: 300px;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
}

.qrcode-preview {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    position: relative;
}

.qrcode-image {
    max-width: 100%;
    height: auto;
}

.qrcode-placeholder {
    width: 256px;
    height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999;
    font-size: 14px;
    border-radius: 4px;
}

/* 下载选项 */
.download-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 示例展示 */
.examples-section {
    margin-top: 48px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.example-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.example-qrcode {
    width: 120px;
    height: 120px;
    background-color: #ffffff;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.example-label {
    font-size: 14px;
    color: #b0b0b0;
    text-align: center;
}
/* 使用说明部分样式 */
.usage-guide {
    /* background-color: #f8f9fa; */
    padding: 60px 0;
    margin-top: 40px;
}

.usage-guide .section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #00c853;
    font-size: 2rem;
}

.guide-steps {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.guide-step {
    display: flex;
    gap: 20px;
        background-color: #1e1e1e;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* border: 1px solid #eef2f7; */
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.step-number {
    min-width: 40px;
    height: 40px;
    background: #6200ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    /* color: #2c3e50; */
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.step-content p {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.tips-section {
     background-color: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
     border: 1px solid #333333;
}

.tips-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-section h3 i {
    color: #6200ee;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tip-item i {
    color: #28a745;
    margin-top: 3px;
}

.tip-item span {
    color: #555;
    line-height: 1.5;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .generator-container {
        flex-direction: column;
    }
    
    .settings-panel {
        flex: 1 0 100%;
    }
    
    .preview-container {
        padding: 16px;
    }
     .usage-guide {
        padding: 40px 0;
    }
    
    .usage-guide .section-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    .guide-step {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-section {
        padding: 20px;
    }
    
    .tips-section h3 {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .usage-guide {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .usage-guide .section-title {
        font-size: 1.5rem;
    }
    
    .guide-steps {
        gap: 20px;
    }
    
    .guide-step {
        padding: 15px;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .tips-grid {
        gap: 10px;
    }
    
    .tip-item {
        padding: 8px;
    }
    
    .tip-item span {
        font-size: 0.9rem;
    }
}