:root {
    --bg: #f7f9fc;
    --card: #ffffff;
    --text: #1f2d3d;
    --muted: #6b7c93;
    --primary: #0078ff;
    --primary-hover: #005fd6;
    --border: #e6ebf2;
    --shadow: 0 4px 14px rgba(0,0,0,0.05);
    --radius: 12px;
}

* { box-sizing: border-box }

body {
    margin: 0;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    color: var(--text);
    background: #fbfcfe;
}

textarea {
    width: 100%;
    min-height: 260px;
    resize: vertical;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-family: Consolas,Monaco,Menlo,"Courier New",monospace;
    font-size: 14px;
    color: var(--text);
    background: #fbfcfe;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,120,255,0.15);
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    transition: background .2s, transform .05s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #f0f3f9;
    color: #3a4a5f;
}
.btn-secondary:hover {
    background: #e7ecf5;
}

.btn-danger {
    background: #ff5d5d;
    color: #fff;
}
.btn-danger:hover {
    background: #ff3f3f;
}

.status {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
