@font-face {
    font-family: '荆南俊俊';
    src: url('荆南俊俊.woff2') format('woff2');
}

body {
    font-family: '荆南俊俊', sans-serif;
    background-color: #f4f7f6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 900px;
    width: 100%;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 25px;
}

.code-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

#param-panel {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: none;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.param-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 120px;
}

.param-group label {
    font-size: 12px;
    font-weight: bold;
    color: #495057;
    text-transform: uppercase;
}

.param-group input[type="text"],
.param-group input[type="number"],
.param-group input[type="color"] {
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background: white;
}

.param-group input[type="color"] {
    height: 40px;
    padding: 2px;
    cursor: pointer;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #2980b9;
}

#output {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
    min-height: 50px;
    text-align: center;
}

#output .vlist-t {
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
}

#status {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
    text-align: center;
}

.error {
    color: #e74c3c;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.template-btn {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    padding: 8px;
    font-family: '荆南俊俊';
    font-size: 16px;
    text-align: center;
}

.template-btn:hover {
    background: #d5dbdb;
}

.btn-clear {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-family: '荆南俊俊', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-clear:hover {
    background: #c0392b;
}
