/* 时间戳工具页面专属双向转换布局样式。 */
.timestamp-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 28px 24px 32px;
}

.timestamp-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--tool-border);
    border-radius: 8px;
    background: #fff;
}

.timestamp-card h2 {
    margin: 0 0 22px;
    color: var(--tool-text);
    font-size: 17px;
    font-weight: 600;
}

.timestamp-card > label,
.timestamp-options label {
    display: block;
    color: var(--tool-muted);
    font-size: 13px;
    font-weight: 600;
}

.timestamp-input,
.timestamp-options select {
    width: 100%;
    height: 40px;
    margin-top: 8px;
    border: 1px solid #d0d5dd;
    border-radius: 5px;
    background: #fff;
    color: var(--tool-text);
    font-family: monospace;
    font-size: 14px;
    outline: none;
}

.timestamp-input {
    padding: 8px 11px;
}

.timestamp-input:focus,
.timestamp-options select:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(0, 154, 97, .1);
}

.timestamp-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

.timestamp-options select {
    padding: 0 9px;
    font-family: inherit;
    font-weight: 400;
}

.timestamp-toolbar {
    margin: 20px -4px;
    padding: 0;
}

.timestamp-toolbar .layui-btn {
    min-width: 74px;
}

.timestamp-output {
    background: #f7f8fa;
    color: #007a4d;
    font-weight: 600;
}

.timestamp-hint {
    min-height: 18px;
    margin: 6px 0 0;
    color: var(--tool-muted);
    font-size: 12px;
    line-height: 18px;
}

.timestamp-hint.is-valid {
    color: #007a4d;
}

.timestamp-hint.is-invalid {
    color: var(--tool-danger);
}

@media (max-width: 760px) {
    .timestamp-workspace {
        grid-template-columns: 1fr;
        padding: 20px 16px 24px;
    }
}
