@font-face {
    font-family: 'Yezi';
    src: url('./ttf/YeZiGongChangAoYeHei-2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: url("../img/header.png") no-repeat;
    background-position:top top;
    background-size: cover;
    color: white;
    padding: 25px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.preview-section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-right: 1px solid #eee;
}

.controls-section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.canvas-container {
    width: 100%;
    height: 400px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333333;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

canvas {
    max-width: 100%;
    max-height: 100%;
}

.control-group {
    margin-bottom: 25px;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #4b6cb7;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input,
select,
button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.2);
}

.color-input {
    display: flex;
    align-items: center;
}

.color-input input {
    flex: 1;
    margin-right: 10px;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1;
    /* background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%); */
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 14px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

#exportBtn {
    /* background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%); */
    border: #333333 solid 2px;
    color: #333333;
}

#resetBtn {
    background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
}

.position-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.position-controls input {
    margin-bottom: 0;
}

.text-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.font-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-bottom: 0;
}

.project-name-controls {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4b6cb7;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .preview-section {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .text-inputs,
    .font-controls {
        grid-template-columns: 1fr;
    }
}