:root {
  --primary-color: #a33326;
  --secondary-color: #e34c00;
}

@media (min-width:1200px) {.container{ max-width:1600px;}}

body {
  background: #f2f2f2;
  min-height: 100vh;
  font-family: 'Microsoft YaHei', sans-serif;
  transition: all 0.5s ease;
  color: #333;
}

ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,form,p,span,i{ 
  font-size:inherit;
  padding:0;
  margin:0;
}

a { 
  color: #333; 
  text-decoration: none;
}

a:hover { 
  color:inherit; 
  text-decoration:underline;
}

button[type="submit"]:focus,
button[type="reset"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  box-shadow: 0 0 0 0 #fff;
}

.top {
  width: 100%;
  background: #fff;
  padding: 30px 0;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.topleft { 
  float: left; 
  padding-left: 25px;
}

.topleft img { 
  height: 65px;
  width: 100%;
}

.topright {
  float: right;
  padding-right: 25px;
}

.topright dl dt {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
}

.topright dl dt span i {
  color: #cdcdcd;
  font-size: inherit;
  padding: 0 1px 0 3px;
}

.topright dl dt span a:hover{
  font-weight: 800;
}

.topright dl dd{
  text-align: right;
  font-size: 1.8rem;
  color: #c50000;
  font-weight: 800;
  font-family: sans-serif;
  letter-spacing: -1px;
}

.header {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  border-radius: 10px;
  padding: 35px 25px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
  transform: rotate(25deg)
}

.header h1 {
  font-weight: 800;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  font-size: 2.3rem;
  letter-spacing: 1px
}

.header p {
  font-size: 1.15rem;
  opacity: 0.8;
  max-width: 800px;
  margin: 15px auto 0;
  position: relative;
  line-height: 1.6
}

.card {
  border-radius: 10px;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s, box-shadow 0.4s;
  margin-bottom: 30px;
  background: white
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15)
}

.card-header {
  background: #f8e3d0;
  color: #683800;
  font-weight: 700;
  padding: 20px 20px;
  font-size: 1.4rem;
  position: relative
}

.subject-section {
  padding: 35px
}

.section-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  font-size: 1.3rem
}

.section-title span { 
  color:#de0000; 
  letter-spacing: 1px;
  font-weight: 600;
  margin-left: 10px;
}

.section-title span.one1 {
  background-color: #f1b9a8;
  border-radius: 10px;
  color:#fff; 
}

.section-title span.one2 {
  background-color: #96cb8f;
  border-radius: 10px;
  color:#fff; 
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px
}

.subject-item {
  background-color: #f8f9ff;
  border-radius: 5px;
  padding: 20px;
  border:rgba(0,0,0,0.05) 2px solid;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.02)
}

.subject-item:hover {
  background-color: #f7f5f3;
  transform: translateX(3px);
  border-left-color: var(--secondary-color);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.05)
}

.subject-item.disabled {
  background-color: #f3eaec;
  opacity: 0.8;
}

.subject-item.disabled:hover { 
  background-color:none; 
  transform:none; 
  border:rgba(0,0,0,0.05) 2px solid;
  box-shadow:0 1px 1px rgba(0, 0, 0, 0)
}

.subject-label {
  font-weight: 600;
  margin-left: 15px;
  font-size: 1.15rem;
  flex: 1
}

.form-check-input {
  width: 24px;
  height: 24px;
  margin-top: 0;
}

.form-check-input:checked {
  background-color: #ee5043;
  border-color: #ee5043;
}

.subject-item.disabled .form-check-input:checked {
  background-color: #999;
  border-color: #777;
}

.counter {
  font-size: 1rem;
  color:#999;
  font-weight: 400;
  text-align: right;
  margin-top: 15px;
}

.counter span {
  font-weight: 800;
  color: #de0000;
  font-size: 1.3rem;
  margin: 0 5px
}

.alert-warning {
  background: linear-gradient(135deg, #fff8dd, #fff3cd);
  border-radius: 5px;
  padding: 16px 25px;
  margin-top: 20px;
  display: none;
  border-left: 3px solid #ffc107;
  color: #8a6d3b;
  font-weight: 600
}

.btn-query {
  border: none;
  padding: 18px 45px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  display: block;
  margin: 35px auto;
  width: 260px;
  box-shadow: 0 5px 10px rgba(163, 51, 38, 0.15);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px
}

.btn01 {
  background: linear-gradient(135deg, #a33326, #e21800);
}

.btn02 {
  background: linear-gradient(135deg, #ac6b21, #da7600);
}

.btn-query:hover {
  background: linear-gradient(135deg, #e21800, #a33326);
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(163, 51, 38, 0.2);
}

.btn-query:active {
  transform: scale(0.98)
}

.btn-query::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(40deg);
  transition: all 0.5s
}

.btn-query:hover::after {
  transform: rotate(40deg) translate(10%, 10%)
}

.result-container {
  display: none;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.7s ease-out
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.selection-summary {
  background: #fbeee1;
  border-radius: 10px;
  padding: 20px;
  border: #f1e4d7 1px solid;
  text-align: center;
  position: relative;
}

.summary-title {
  font-weight: 700;
  color: #683800;
  margin-bottom: 15px;
  font-size: 1.35rem
}

.summary-title i {
  margin-right: 8px;
  font-size: inherit;
}

.subject-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  margin: 0 6px 6px 0;
  font-weight: 400;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  opacity: 0.4;
}

.subject-badge.required {
  background: linear-gradient(135deg, #6c757d, #495057)
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 35px
}

.major-item {
  padding: 25px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border-left: 4px solid #dfe4fc;
  border-top:1px solid #ecf0fb;
  border-bottom:1px solid #ecf0fb;
  border-right:1px solid #ecf0fb;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden
}

.major-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-left-color: #e0b9b5;
}

.major-item:hover::before {
  opacity: 1
}

.major-item:hover .major-title a { color: #a33326;}

.major-title {
  color: #09103c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem
}

.major-title a { color: #09103c;}

.major-detail {
  margin: 8px 0;
  color: #555;
}

.major-detail span {
  color: #151e57;
}

.no-results {
  background: #f0f0f0;
  border-radius:10px;
  padding: 30px;
  text-align: center;
  margin-top: 30px;
  color:#a33326;
  font-size:1.15rem;
  display: none;
}

.btn-reset:hover {
  background: #ff4d9a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(247, 37, 133, 0.3)
}

.result-header {
  text-align: center;
  margin-bottom: 35px;
  color: #50241f;
  position: relative;
  padding-bottom: 20px
}

.result-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: linear-gradient(to right, #f37a6a, #f4af8e);
  border-radius: 3px
}

.fixed-summary {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  transform: translateY(-100%);
  transition: transform 0.4s ease-out;
  border-bottom: 5px solid var(--primary-color);
}

.fixed-summary.show {
  transform: translateY(0)
}

.fixed-summary-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between
}


.footer {
  text-align: center;
  margin-top: 60px;
  color: #333;
  font-size: 1rem;
  padding: 20px
}

.footer a {
  color: #333;
}

@media (max-width: 1199.98px) {
.subject-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));}
.major-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));}
}

@media (max-width: 991.98px) {
.top { padding: 25px 0 20px 0; margin-bottom: 25px;}
.topleft { padding-left: 20px;}
.topleft img { height: 52px;}
.topright { padding-right: 20px;}
.topright dl dt { font-size: 15px; margin-bottom: 0px;}
.topright dl dd{ font-size: 1.5rem;}
.header { padding: 25px 15px; margin-bottom: 25px;}
.header h1 { font-size: 2.0rem;}
.header p { font-size: 1.05rem; margin: 12px auto 0;}
.card { margin-bottom: 25px;}
.card-header { padding: 18px 20px; font-size: 1.3rem;}
.subject-section { padding: 25px}
.section-title { margin-bottom: 12px; font-size: 1.25rem}
.subject-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));}
.subject-item { padding: 15px;}
.subject-label { margin-left: 12px; font-size: 1.05rem;}
.form-check-input { width: 20px; height: 20px;}
.alert-warning { padding: 15px 20px;}
.btn-query { padding: 15px 35px; font-size: 1.3rem; margin: 35px auto; width: 220px;}
.result-container { padding: 25px;}
.subject-section .mt-5 { margin-top:35px !important;}
.selection-summary { padding: 20px 15px;}
.summary-title { margin-bottom: 15px; font-size: 1.25rem}
.subject-badge { font-size:15px;}
.major-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 25px}
.major-item { padding: 20px 20px 15px 20px;}
.major-title { margin-bottom: 16px; font-size: 1.2rem}
.major-detail { margin: 7px 0; font-size:15px;}
.no-results { padding: 25px; margin-top: 25px;}
.result-header { margin-bottom: 30px; padding-bottom: 20px}
.result-header::after { width: 120px; height: 5px;}
.footer { margin-top: 20px; padding: 15px; font-size:15px;}
}

@media (max-width: 767.98px) {
.topright { display:none;}
.header { padding: 20px 15px;}
.header h1 { font-size: 1.7rem;}
.header p { font-size:15px; margin: 8px auto 0;}
.card-header { padding: 18px 20px; font-size: 1.2rem;}
.subject-section { padding: 20px}
.section-title { font-size: 1.15rem}
.subject-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 15px;}
.subject-item { padding: 15px;}
.subject-label { margin-left: 10px; font-size:16px; font-weight:400;}
.form-check-input { width: 18px; height: 18px;}
.alert-warning { padding: 15px 15px; font-size:16px;}
.btn-query { font-size: 1.2rem;}
.result-container { padding: 20px;}
.subject-section .mt-5 { margin-top:30px !important;}
.selection-summary { padding: 15px 5px;}
.summary-title { margin-bottom: 10px; font-size: 1.15rem}
.subject-badge { font-size:14px;}
.major-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px;}
.major-title { margin-bottom: 14px; font-size: 1.15rem}
.no-results { padding: 20px 15px;}
.fixed-summary-content { flex-direction: column; gap: 15px;}
}

@media (max-width: 399.98px){
.topleft img { width:95%; height:auto;}
.header h1 { font-size: 1.5rem;}
.header p { font-size:15px; line-height:1.5;}
.card-header { padding: 15px 15px; font-size: 1.15rem;}
.subject-section { padding: 15px}
.section-title { font-size: 1.1rem}
.subject-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px;}
.grid01 { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));}
.subject-item { padding: 10px;}
.result-container { background:none; border-radius:0; padding:0; box-shadow: 0 0 0 rgba(0, 0, 0, 0); animation: fadeIn 0.7s ease-out}
.result-container { padding: 0px;}
}
