* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

body {
    background-color: #FAFAFA;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ç½‘é¡µå¤´éƒ¨ */
.header {
    height: 150px;
    width: 100%;
    background-color: #8C7853;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    flex-shrink: 0;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    width: 322px;
    height: 85px;
    margin-right: 20px;
}

.system-name {
    font-size: 22px;
    font-weight: bold;
}

.user-section {
    display: flex;
    align-items: center;
}

.user-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-color: #ffffff;
    border-radius: 50%;
}

.user-name {
    font-size: 18px;
}

/* èœå•åŒºåŸŸ */
.menu-bar {
    height: 60px;
    width: 100%;
    background-color: #D1BE9E;
    color: #3E352A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    flex-shrink: 0;
}

.menu-group {
    display: flex;
    height: 100%;
}

.menu-item {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
    cursor: pointer;
}

.menu-item.active {
    background-color: #E8D9C5;
    font-weight: bold;
}

.menu-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #5A4A3A;
    opacity: 0.5;
}

.right-menu {
    display: flex;
    height: 100%;
}

.right-menu .menu-item {
    color: #666666;
}

/* å†…å®¹åŒºåŸŸ */
.content {
    flex: 1;
    padding: 30px 5%;
    overflow-y: auto;
}

.contest-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.papers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px;
}

.paper-btn {
    height: 90px;
    color: #333333;
    border: none;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    text-align: center
}

.paper-btn.pending {
    background-color: #F0E6D5;
}

.paper-btn.submitted {
    background-color: #F0F0F0;
    color: #999999;
}

.paper-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.paper-title {
    font-weight: bold;
    font-size: 16px;
}

.paper-status {
    align-self: flex-end;
    font-size: 14px;
}

.paper-btn.pending .paper-status {
    color: #333333;
}

.paper-btn.submitted .paper-status {
    color: #999999;
}

/* å“åº”å¼è®¾è®¡ */
@media (max-width: 992px) {
    .header {
        padding: 20px 5%;
    }

    .system-name {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        flex-direction: column;
        text-align: center;
        padding: 20px 5%;
    }

    .logo-section {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .system-name {
        margin-bottom: 15px;
    }

    .menu-bar {
        height: auto;
        padding: 15px 5%;
        flex-direction: column;
    }

    .menu-group {
        width: 100%;
        flex-direction: column;
        margin-bottom: 10px;
    }

    .right-menu {
        width: 100%;
        flex-direction: column;
    }
    .right-menu span{ line-height: 60px}
    .menu-item {
        padding: 10px 0;
        justify-content: center;
    }

    .menu-item:not(:last-child)::after {
        display: none;
    }

    .poecontent {
        padding: 20px 5%;
    }

    .papers-container {
        grid-template-columns: 1fr;
    }
}

 .btn-save {
     color:#fff;
     background-color:#997f64;
     border-color:#997f64;
     width: 300px;
     font-weight: 700;
     line-height: 25px;
     margin-bottom: 50px;
 }

 .btn-save:hover {
     color: #E8D9C5;
     background-color:#7c6145;
     border-color:#7c6145
 }




/*试卷20250604 */

.content-area1 {



    background-color: #f5f5f5;
    overflow-y: auto;
    text-align: center
}


.exam-container {
    width: 90%;
    margin:0.3rem auto;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.exam-title1 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.3rem;

    font-weight: bold;


    font-size: 25px;

}

.section {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem;
    margin: 0.5rem auto;
    width: 100%
}

.question-section {
    text-align: center;
    --primary-color: #5A4A3A;
    --secondary-color: #E8D9C5;
    --border-color: #666666;
    --text-color: #444444;
    --light-gray: #f5f5f5;
}

.question-title {

    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.question-content {

    line-height: 1.8;
}

.question-content p {
    margin-bottom: 0.2rem;
}

.answer-section {

    --primary-color: #5A4A3A;
    --secondary-color: #E8D9C5;
    --border-color: #666666;
    --text-color: #444444;
    --light-gray: #f5f5f5;
}

.answer-field {

}

.field-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;

    flex-wrap: wrap;
}

.field-title span{font-weight: bold}


.title-input {
    border: none;
    border-bottom: 1px solid #444444;
    background-color: transparent;

    padding: 0.1rem 0.1rem;
    width:100%;


    font-family: inherit;
}

.poem-input-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.poem-line {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.05rem;
}

.poem-group {
    display: flex;
    gap: 0.1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.character-input {
    width: clamp(30px, 8vw, 42px);
    height: clamp(30px, 8vw, 42px);
    text-align: center;

    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    padding: 0;
    transition: border-color 0.3s;
}

.character-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.character-input1 {
    width: clamp(28px, 7vw, 38px);
    height: clamp(28px, 7vw, 38px);
    text-align: center;

    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    padding: 0;
    transition: border-color 0.3s;
}

.character-input1:focus {
    border-color: var(--primary-color);
    outline: none;
}







.description-section {

    --primary-color: #5A4A3A;
    --secondary-color: #E8D9C5;
    --border-color: #666666;
    --text-color: #444444;
    --light-gray: #f5f5f5;
}

.description-textarea {
    width: 100%;
    height: 150px;
    padding: 0.1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;

    margin-top: 0.1rem;
    line-height: 1.5;
}

.note {

    color: #666;
    margin-top: 0.05rem;
    font-style: italic;
	line-height: 20px
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.exam-action-button {
    padding: 0.1rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;

    background-color: #5A4A3A;
    color: #E8D9C5;
    font-family: inherit;
    transition: all 0.3s;
    min-width: 120px;
}

.exam-action-button:hover {
    background-color: #6B5A48;

}

@media (min-width: 769px) {
    .poem-group{margin-right: 15px}
}


@media (max-width: 768px) {
    body {
        padding: 0px;
    }

.bo_message{ min-height:10vh}


    .exam-container {
        padding: 0.3rem;
        width:100%
    }

    .exam-title{line-height: 45px;
        font-size: 15px;}

    .section {
        padding: 0.2rem;
    }

    .poem-line {
        gap: 0.1rem;
    }

    .poem-group {
        gap: 0.1rem;
    }

    .character-input {
        width: clamp(28px, 7vw, 36px);
        height: clamp(28px, 7vw, 36px);
    }
}

@media (max-width: 480px) {
    .exam-container {
        padding: 0.2rem;
    }

	.exam-title1	{margin-top:15px}
	
    .section {
        padding: 0.2rem;
    }
	.bo_message{ min-height:10vh}
    .field-title {
        flex-direction: column;
        align-items: flex-start;
    }
	
	.message {max-height:auto!important}
	.message h1{font-size: 26px}
	


    .title-input {
        margin-left: 0;
        margin-top: 0.1rem;
        width: 100%;
    }

    .poem-group {
        justify-content: flex-start;
    }

    .button-container {
        gap: 0.3rem;
    }

    .exam-action-button {
        padding: 0.2rem 0.5rem;
        flex: 1;
    }
}