* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

h2 {
    color: #555;
    font-size: 1.3em;
    margin-bottom: 20px;
}

h3 {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.input-section {
    margin-bottom: 30px;
}

.registry-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.registry-selector label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    color: #555;
    transition: color 0.2s;
}

.registry-selector label:hover {
    color: #667eea;
}

.registry-selector input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.input-group {
    display: flex;
    gap: 10px;
}

#imageInput {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

#imageInput:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 14px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    white-space: nowrap;
}

button:hover {
    background: #5568d3;
}

button:active {
    transform: scale(0.98);
}

button.copied {
    background: #28a745;
}

.commands-section {
    margin-top: 30px;
}

.step {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.command-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

code {
    flex: 1;
    display: block;
    padding: 12px 16px;
    background: #2d3748;
    color: #68d391;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    overflow-x: auto;
    white-space: nowrap;
}

.command-box button {
    padding: 10px 20px;
    font-size: 0.9em;
}

.info-section {
    margin-top: 40px;
    padding: 25px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.info-section h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.info-section li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #2196f3;
    font-weight: bold;
}

.info-section code {
    padding: 2px 6px;
    background: #d4e9ff;
    color: #1565c0;
    border-radius: 3px;
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .command-box {
        flex-direction: column;
    }
    
    .command-box button {
        width: 100%;
    }
}
