body {
    background-color: #e6f2ff;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='%23e6f2ff'/%3E%3Cpath d='M0 0h20v1H0zM0 0h1v20H0z' stroke='%23a3d0ff' fill='none'/%3E%3C/svg%3E");

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header {
    background: linear-gradient(135deg, #ff8a5c 0%, #e85aad 100%);
    color: white;
    padding: 2rem 0;
    margin: 60px auto 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: calc(100% - 40px);
    max-width: 1300px;
}
.card {
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.22);
    margin-bottom: 20px;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #7d4cdb 0%, #3d8bfd 100%);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}
.preview-badge {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.color-option {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.color-blue { background-color: #1e3a8a; }
.color-purple { background-color: #7e22ce; }
.color-green { background-color: #065f46; }
.color-orange { background-color: #92400e; }
.color-black_blue { background-color: #3787FF; }
.color-black_green { background-color: #3F9C3E; }
.color-black_red { background-color: #E73B38; }
.color-other { background-color: #456bd6; }
.badge-example {
    display: inline-block;
    margin: 0 10px 10px 0;
}
.code-container {
    margin-top: 30px;
}
.code-card {
    width: 100%;
    margin-bottom: 20px;
}
.code-block {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    color: #ffffff;
    margin-bottom: 10px;
}
.code-block code {
    display: block;
    white-space: pre;
    line-height: 1.5;
    color: #ffffff;
}
.code-title {
    color: #6a11cb;
    font-weight: bold;
    margin-bottom: 10px;
}
.copy-btn {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.copy-btn:hover {
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
    transform: translateY(-1px);
}
.copy-btn i {
    margin-right: 5px;
}
.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid rgba(106, 17, 203, 0.2);
    border-radius: 50%;
    border-top: 4px solid #6a11cb;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2b8a3e;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

footer {
    margin-top: auto;
    padding: 20px 0;
    color: #343a40;
}

.container {
    flex: 1;
}
/* 新增颜色选择器样式 */
.incolor{
    width: 50px;
    height: 50px;
}
/* 新增自定义颜色组样式 */
.custom-color-group.d-flex {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
}

.custom-color-group .col-md-6 {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}

.Download_svg_a {
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #53d5df 0%, #4744eb 100%);
    color: white;
    padding: 5px 40px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}
.Download_svg_a:hover {
    background: linear-gradient(135deg, #4744eb 0%, #53d5df 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.text-center p{
    margin: 1px auto;
}

.svg_int{
    display: inline-block;
    border-radius: 50px;
    background: linear-gradient(135deg, #F9D7E3 0%, #ADEBE9 100%);
    padding: 5px 15px;
}