:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --border-radius: 12px;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}



/* 导航栏样式 */
.nav-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
}
.answers{
    width: 100%;
    margin-top: 20px;
}
.answers p{
    margin: 0;
    line-height: 1.5;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}


.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s;
    border-radius: 6px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 2px;
    border-radius: 3px;
    transition: all 0.3s;
}

/* 主容器样式优化 */
.container {
max-width: 1200px;
margin: 10px auto;
padding: 10px;
height: auto;
overflow: hidden; /* 添加清除浮动 */
}

/* 添加页脚样式 */
.footer {
    bottom: 0;
background: #21292f;
color: #fff;
padding: 20px 0;
text-align: center;
width: 100%;
font-size: 14px;
margin-top: 40px;
clear: both;
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.footer-content a{
    color:#fff;
}

/* 为了防止页脚遮挡内容，给 container-right 添加底部边距 */

.daan{
margin-top: 20px;
padding: 10px;
/* height: 350px; */
width: 100%;

}
h1 {
    text-align: center;
    color: var(--text-color);
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 600;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.options div {
    background: white;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.options div:hover {
    transform: translateY(-2px);
}

.options p {
    margin: 0 0 15px 0;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
}
/* 数字输入框的上下箭头样式 */
/* 输入框样式优化 */
input[type="number"],
input[type="text"] {
width: 80px;
padding: 12px 15px;
border: 2px solid #e0e5ec;
border-radius: 8px;
font-size: 16px;
transition: all 0.3s;
background: #f8fafc;
color: #2d3748;
outline: none;
}

input[type="number"]:focus,
input[type="text"]:focus {
border-color: var(--secondary-color);
box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
background: white;
}

/* 按钮样式优化 */
button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1em;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.print {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* 题目样式优化 */
.questions {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.question-item {
    background: white;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 22px;
    transition: transform 0.3s;
}

.question-item:hover {
    transform: translateY(-2px);
}
.container-left{
width: 20%;
height: auto;
float: left;
background: white;
border-radius: var(--border-radius);
padding: 10px;



}

.container-left-list{
/* width: 100%; */
margin: 0;
padding: 0;


}
.left-title{
margin: 0 0 15px 0;
font-weight: 600;
color: var(--text-color);
font-size: 1.1em;
}
.container-left-list li{
list-style: none;
margin-bottom: 15px;
font-size: 14px;
color: #333;
}
.container-right{
width: 77%;
margin-left: 1%;
height: auto;
float: right;
margin-bottom: 150px;
background-color: #f8f9fa;
}
/* ... existing CSS ... */

/* 优化移动端样式 */
@media (max-width: 768px) {
.nav-menu {
display: none; /* 默认隐藏菜单 */
flex-direction: column; 
/* ... existing styles ... */
}

.container-right {
width: 100%;
margin-left: 0;
float: none;
margin-bottom: 40px;
}

.container-left {
width: 100%;
float: none;
margin-bottom: 20px;
}

.footer {
margin-top: 20px;
}

.nav-menu.active {
display: flex; /* 展开菜单时显示 */
}

.nav-toggle {
display: flex; /* 显示菜单切换按钮 */
}

.container {
/* margin: 15px;
padding: 20px; */
}

h1 {
font-size: 2em;
margin-bottom: 30px;
}

.options div {
padding: 20px;
}

.question-item {
font-size: 20px;
padding: 15px 20px;
}

/* .nav-toggle {
display: block; /* 显示菜单按钮 */
} */

.nav-menu {
display: none;
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%); /* 水平居中 */
width: 80%; /* 菜单宽度 */
max-width: 300px;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 999;
flex-direction: column;
gap: 15px;
margin-top: 60px; /* 给顶部按钮留出空间 */
}

.nav-menu.active {
display: flex;
}

.nav-menu div {
padding: 10px;
text-align: center;
border-bottom: 1px solid #eee;
}

.nav-menu div:last-child {
border-bottom: none;
}

.overlay.active {
display: block;
}
}

/* ... existing CSS ... */


/* 打印预览的样式 */
.print-preview {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1100;
overflow-y: auto;
}

.print-container {
display: none;
background: white;
width: 210mm; /* A4 宽度 */
min-height: 297mm; /* A4 高度 */
margin: 20px auto;
padding: 20mm;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.print-header {
text-align: center;
margin-bottom: 30px;
}

.print-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}

.print-info {
font-size: 14px;
color: #666;
margin-bottom: 20px;
}

.print-questions {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
font-size: 16px;
}

.print-question {
padding: 1px;
border-bottom: 1px dashed #eee;
}

.print-actions {
position: fixed;
top: 20px;
right: 20px;
display: flex;
gap: 10px;
}

/* 打印时的样式 */
@media print {
body * {
    visibility: hidden;
}
.print-container,
.print-container * {
    visibility: visible;
}
.print-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.print-actions {
    display: none;
}
} 
.text{
    border: 1px solid rgba(0, 0, 0, 0);
    background: #fff;
    padding: 10px 20px;
    border-radius: 15px;
}
