/* style.css - 魔工坊MAX to C4D密钥生成器专用样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

/* 顶部品牌标识区域 */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.brand-logo {
    height: 50px;
    margin-right: 15px;
}

.brand-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.brand-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-top: 5px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 控制面板样式 */
.control-panel {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

select:focus, input:focus {
    border-color: #3498db;
    outline: none;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    width: 100%;
    margin-top: 15px;
    transition: background 0.3s;
}

button:hover {
    background-color: #2980b9;
}

/* 结果区域样式 - 完全重新设计 */
.results {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.results h2 {
    color: #2c3e50;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.key-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.key-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.key-label {
    font-weight: bold;
    color: #34495e;
    font-size: 16px;
}

.key-code {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.key-text {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #2c3e50;
    flex-grow: 1;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-right: 10px;
}

.key-text::-webkit-scrollbar {
    height: 4px;
}

.key-text::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 2px;
}

.copy-btn {
    background: #27ae60;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #219653;
    transform: translateY(-1px);
}

.copy-all-btn {
    background: #3498db;
    margin-top: 20px;
}

.copy-all-btn:hover {
    background: #2980b9;
}

small {
    color: #7f8c8d;
    font-size: 0.8em;
    display: block;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .brand-header {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .container {
        padding: 15px;
    }
    
    .control-panel, .results {
        padding: 20px;
    }
    
    .key-code {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .key-text {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .copy-btn {
        width: 100%;
    }
}