* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  box-sizing: border-box;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 5px;
}

header p{
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
}


.controls {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 25px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 20px;
  align-items: center;
}

.form-group {
  flex: 1;
  min-width: 250px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

select,
input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s;
}

select:focus,
input[type="number"]:focus {
  outline: none;
  border-color: #4a6fc1;
  box-shadow: 0 0 0 3px rgba(74, 111, 193, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.btn {
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(to right, #4a6fc1, #6a11cb);
  color: white;
}

.btn-success {
  background: linear-gradient(to right, #2ecc71, #27ae60);
  color: white;
}

.btn-info {
  background: linear-gradient(to right, #3498db, #2980b9);
  color: white;
}

.btn-warning {
  background: linear-gradient(to right, #e67e22, #d35400);
  color: white;
}

.btn-danger {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
}

.content {
  width: 100%;
  padding: 20px;
  min-height: 500px;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
}

.content h2{
  font-size: 1.4rem;
}
.problems-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 修改为3列 */
  gap: 20px;
  margin-top: 20px;
}

.problem-column {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px 20px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}

.problem-item {
  padding: 10px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 1.2rem;
  display: flex;
  gap: 10px;
}

.problem-item:last-child {
  border-bottom: none;
}

.problem-number {
  min-width: 30px;
  font-weight: bold;
  color: #4a6fc1;
}

.problem-text {
  flex-grow: 1;
}

.problem-answer {
  color: #e74c3c;
  font-weight: bold;
}

footer {
  text-align: center;
  margin-top: 25px;
  color: #666;
  font-size: 0.9rem;
}

.notification {
    position: fixed;
    top: 60px;
    right: 20px;
    padding: 15px 25px;
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* 不同类型的通知样式 */
.notification.info {
    background: #3498db;
}

.notification.success {
    background: #2ecc71;
}

.notification.warning {
    background: #f39c12;
}

.notification.error {
    background: #e74c3c;
}

@media print {
  /* 隐藏所有不需要打印的元素 */
  header,
  .controls,
  footer,
  .nav_box,
  .wwads-cn,
  .st-sticky-share-buttons,
  .content h2,
  ins{
    display: none !important;
  }

  /* 重置页面样式 */
  body {
    min-width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
  }

  /* 容器样式调整 */
  .container {
    max-width: 100% !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: white !important;
    padding: 0 !important;
  }

  /* 题目容器样式 */
  .problems-container {
    grid-template-columns: repeat(3, 1fr) !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
  }

  /* 题目列样式 */
  .problem-column {
    background: white !important;
    box-shadow: none !important;
    padding: 20px 5px !important;
    border: none !important;
  }

  /* 题目项样式 */
  .problem-item {
    font-size: 14pt !important;
    padding-top: 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #eee !important;
  }

  /* 页面设置 */
  @page {
    size: A4;
    margin: 0.5cm;
  }
}
