:root {
    --primary-color: #0a2c4e;
    --secondary-color: #b8860b;
    --text-color: #333;
    --background-color: #f5f5f5;
    --border-color: #d1d1d1;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

 
.underline {
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    width: 20%;
    transition: width 0.3s ease;
}

main {
    display: flex;
    gap: 2rem;
}

.template-section {
    flex: 2;
}

.options-section {
    flex: 1;
}

.card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 8px var(--shadow-color);
}

h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    background-color: white;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.golden-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.golden-button:hover {
    background-color: #d4a017;
    transform: translateY(-2px);
}

.alert {
    display: none;
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: #dff0d8;
    color: #3c763d;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.content-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem; /* 从0.8rem减小到0.4rem */
    padding: 0.3rem 0.5rem; /* 略微减小上下内边距 */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.content-line:hover {
    background-color: #f0f0f0;
}

.form-check-input {
    margin-right: 0.8rem;
    cursor: pointer;
}

.form-check-label {
    font-size: 1rem;
    cursor: pointer;
}

footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .template-section, .options-section {
        flex: auto;
    }
}