/* styles.css */
:root {
    /* Material Design颜色变量 */
    --md-sys-color-primary: #6750A4;
    --md-sys-color-secondary: #625B71;
    --md-sys-color-tertiary: #7D5260;
    --md-sys-color-surface: #FFFBFE;
    --md-sys-color-background: #FEFBF9;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--md-sys-color-background);
    margin: 0;
    padding: 20px;
    color: rgba(0, 0, 0, 0.87);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: center;
    background-color: var(--md-sys-color-surface);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

h1,
h2 {
    color: var(--md-sys-color-primary);
    margin-bottom: 20px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.options-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.checkbox-wrapper {
    display: inline-flex;
    vertical-align: middle;
    gap: 4px;
}

textarea {
    width: 100%;
    height: 200px;
    border: 1px solid var(--md-sys-color-secondary);
    border-radius: 4px;
    padding: 2px;
    font-family: 'Roboto', monospace;
}

.style-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.color-input {
    display: flex;
    align-items: center;
    gap: 8px;
}


md-outlined-text-field[type="color"] {
    width: 100px; /* 可调整宽度 */
    height: 55px; /* 防止高度被限制 */
    display: inline-flex; /* 确保样式正常渲染 */
    vertical-align: bottom;
}

md-checkbox {
    margin-left: 10px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    gap: 10px; /* 按钮之间的间距 */
}



/* 警告信息样式 */
.warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d9534f; /* 红色背景 */
    color: #fff; /* 白色文字 */
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    animation: fade-in-out 3s ease-in-out;
}

/* 隐藏状态 */
.hidden {
    display: none;
}

/* 动画效果 */
@keyframes fade-in-out {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}







@media (max-width: 768px) {
    .options-row,
    .style-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

