body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  padding-bottom: 50px;
  overflow:visible;
  min-height: 100%;
  /* 移除padding-top，因为sticky定位不需要预留空间 */
}
/* 类型选择 - 优化后的样式 */
.filter-bar {
  background: linear-gradient(135deg, #b8c4fd 0%, #bd8feb 100%);
  height: 60px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  padding: 0 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.subject-tabs {
  flex: 1;
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 3px;
  backdrop-filter: blur(10px);
  position: relative;
}
.subject-tab {
  flex: 1;
  text-align: center;
  line-height: 30px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subject-tab:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.1);
}
.subject-text {
  position: relative;
  z-index: 2;
}
.subject-active {
  color: #333;
  background: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: scale(1.05);
}
.subject-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #7ec600, #5cb85c);
  opacity: 0.1;
  border-radius: 15px;
}
.subject-indicator {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(45deg, #7ec600, #5cb85c);
  border-radius: 2px;
  animation: indicatorSlide 0.3s ease;
}

.vehicle-select-container {
  position: relative;
  flex: 0 0 90px;
}

.vehicle-select {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

.vehicle-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.vehicle-select:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.select-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  pointer-events: none;
  transition: all 0.3s ease;
}

.vehicle-select:focus + .select-arrow {
  border-top-color: #333;
  transform: translateY(-50%) rotate(180deg);
}

/* 菜单 */
.nav-icon{
  width: 20px;
  height: 20px;
  background-size: 100% auto;
  background-position: 0 0;
}
.nav-icon-home{
  background-image: url(../img/nav1.png);
}
.nav-icon-star{
  background-image: url(../img/nav2.png);
}
.nav-icon-user{
  background-image: url(../img/nav3.png);
}
.nav-active span{
  color: #7ec600;
}
.nav-active .nav-icon{
  background-position: 0 -20px;
}

.bottom-menu {
  position: fixed;
  bottom: 0;
  max-width: 640px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  display: flex;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}
.menu-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 12px;
}
.nav-active {
  color: #7ec600;
  font-weight:bold;
}

/* 轮播图 */

.lunbo_container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.lunbo_did {
  position: relative;
  display: flex;
  transition: left 0.3s ease;
}
.lunbo_did img{
  width: 100%;
}
.lunbo_item {
  flex-shrink: 0;
}
.turnleft, .turnright {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background:rgba(0,0,0,0.1);
  width: 24px;
  height: 24px;
  line-height:22px;
  text-align: center;
  color: #fff;
  font-size: 16px;
  border-radius: 50%;
}
.turnleft { left: 10px; }
.turnright { right: 10px; }

/* 功能按钮 */
.operate_dom{
  padding: 30px 10px;
  box-sizing:border-box;
}
.operate_dik{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  position:relative;
  z-index: 10;
}
.operate_item{
  flex:0 0 20%;
  text-align:center;
}
.operate_item_button{
  display:block;
  width: 16vw;
  font-size: 11px;
  color:#232323;
  white-space: nowrap;  
  line-height: 24px;
  margin: auto;
}
.operate_item_button img{
  display:block;
  width: 80%;
  margin:0 auto 5px;
}
.operate_middle_dik{
  margin-top: -20px;
  margin-bottom: -20px;
  z-index: 15;
}
.operate_center{
  flex: 0 0 60%;
  text-align:center;
}
.operate_center_button{
  display:block;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  position:relative;
  background:#7ec600;
  color:#fff;
  font-size: 15px;
  text-align:center;
  margin: 0 auto;
  border:2px solid #fff;
}
.operate_center_button::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background:#7ec60044 url(../img/buttonborder.png) no-repeat;
  background-size: 100% 100%;
  z-index: -1;
  animation: rotate 20s linear infinite;
}
.center_button_text{
  position: absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  margin:auto;
  font-size: 16px;
  font-weight:bold;
  line-height: 24px;
  height: 48px;
}
.center_button_text span{
  display:block;
  font-size: 13px;
  font-weight:normal;
}
.operate_all_ques{
  display:block;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  position:relative;
  background:#f0b101;
  color:#fff;
  font-size: 15px;
  text-align:center;
  margin: 0 auto;
  border:2px solid #fff;
}
.operate_all_ques::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background:#f0b10144 url(../img/buttonbordery.png) no-repeat;
  background-size: 100% 100%;
  z-index: -1;
  animation: rotate 20s linear infinite;
}
.operate_button_bottom{
  align-self: flex-end;
}
/* 广告图 */
.gg_tu{
  display:block;
  border-radius: 10px;
  margin: 10px 0;
  width: 100%;
}

/* 每日一练 */
.everyday_ques{
  padding: 34px 0 15px;
}
.everyday_ques_item{
  position:relative;
  border-top-left-radius: 0;
  box-sizing:border-box;
  padding: 15px 15px;
  text-align:left;
}
.everyday_ques_title{
  position:absolute;
  left:-1px;
  top: -31px;
  line-height: 30px;
  padding: 0 35px 0 15px;
  background: linear-gradient(180deg, #e7edf9 0%, #fff 100%);
  border:1px solid #ddd;
  border-bottom:none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.everyday_ques_title img{
  height: 24px;
  max-width: 100%;
}
.ques_content{
  background:#fefefe;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.everyday_content_title{
  font-size: 14px;
  color:#232323;
  font-weight: bold;
  line-height: 20px;
  padding: 10px 0;
}
.everyday_content_title span{
  color:#61d0d9;
}
.everyday_content_img{
  display:block;
  width: 100%;
}
.everyday_content_answer{
  padding: 10px 0;
  font-size: 13px;
  line-height: 16px;
  color:#777;
  padding-left: 24px;
  position:relative;
}
.everyday_content_radio{
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border:1px solid #ddd;
  text-align:center;
  line-height: 14px;
}
.everyday_content_active .everyday_content_radio::before{
  content: '';
  display:block;
  position: absolute;
  width: 6px;
  height: 2px;
  left: 1px;
  bottom:4px;
  transform:rotate(45deg);
  background:#7ec600;
}
.everyday_content_active .everyday_content_radio::after{
  content: '';
  display:block;
  position: absolute;
  width: 9px;
  height: 2px;
  left: 4px;
  bottom:6px;
  transform:rotate(-45deg);
  background:#7ec600;
}
.everyday_content_error .everyday_content_radio::before{
  content: '';
  display:block;
  position: absolute;
  width: 10px;
  height: 2px;
  left: 2px;
  bottom:5px;
  transform:rotate(45deg);
  background:#b81515;
}
.everyday_content_error .everyday_content_radio::after{
  content: '';
  display:block;
  position: absolute;
  width: 10px;
  height: 2px;
  right: 2px;
  bottom: 5px;
  transform:rotate(-45deg);
  background:#b81515;
}
/* 答案提示 */
.everyday_answer_tip{
  font-size: 12px;
  font-weight:bold;
  line-height: 14px;
  padding: 10px 0;
}
.everyday_answer_right{
  color:#7ec600;
}
.everyday_answer_wrong{
  color:#f03901;
}
.everyday_answer_describe{
  font-size: 12px;
  color:#555;
  line-height: 16px;
  text-align:justify;
}

/* 精华列表 */
.essence_list{
  padding: 10px 10px;
  background:#fff;
  box-shadow:0 0 2px 1px rgba(0,0,0,0.1);
  text-align:left;
}

.essence_list_item{
  border-bottom: 1px solid #f0f0f0;
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  padding-bottom: 5px;
}
.essence_list_left{
  flex: 1 1 70%;
  padding:10px 0;
}
.essence_list_right{
  flex: 0 0 30%;
  background:#fdfdfd;
  box-sizing:border-box;  
}
.essence_list_right img{
  display:block;
  width: 100%;
}
.essence_list_item:last-child{
  border-bottom:none;
}
.essence_list_title{
  font-size: 13px;
  color:#232323;
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 24px;
  height: 48px;
  font-weight:bold;
  margin: 5px 0;
}
.essence_list_tag{
  font-size:11px;
  color:#bbb;
  white-space: nowrap;
}
.essence_list_tag img{
  display:inline-block;
  height: 10px;
  vertical-align: -1px;
  margin-right: 2px;
}
.essence_list_great{
  white-space: nowrap;
  font-size: 10px;
  color:#ddd;
  line-height: 14px;
}
.essence_list_great img{
  display:inline-block;
  height: 10px;
  vertical-align: 0px; 
  margin-right: 2px;
}
.bottom_line{
  width: 100%;
  margin: 34px 0;
}
.top_back{
    position:fixed;
    left: 15px;
    bottom:24px;
    width: 34px;
    height: 34px;
    font-size: 13px;
    z-index: 99;
    text-align:center;
    line-height: 34px;
    color:#fff;
    opacity: 0.8;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 添加filter-bar的动画效果 */
.filter-bar {
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes indicatorSlide {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 20px;
    opacity: 1;
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .filter-bar {
    height: 55px;
    padding: 0 10px;
  }
  
  .filter-group {
    gap: 10px;
  }
  
  .vehicle-select-container {
    flex: 0 0 80px;
  }
  
  .vehicle-select {
    height: 32px;
    font-size: 14px;
    padding: 0 12px;
  }
  
  .subject-tab {
    line-height: 28px;
    font-size: 14px;
  }
  
  .subject-indicator {
    width: 16px;
    height: 2px;
  }
  
  /* 题目内容进一步优化 */
  .everyday_content_title {
    font-size: 20px;
    line-height: 26px;
  }
  
  .everyday_content_answer {
    font-size: 18px;
    line-height: 22px;
    padding-left: 30px;
  }
  
  .everyday_answer_tip {
    font-size: 16px;
    line-height: 20px;
  }
  
  .everyday_answer_describe {
    font-size: 16px;
    line-height: 22px;
  }
  
  /* 底部菜单 */
  .menu-item {
    font-size: 15px;
  }
  
  /* 移除body的padding-top，因为使用sticky定位 */
}

@media (max-width: 360px) {
  .vehicle-select-container {
    flex: 0 0 70px;
  }
  
  .vehicle-select {
    font-size: 13px;
    padding: 0 8px;
  }
  
  .subject-tab {
    font-size: 13px;
    line-height: 26px;
  }
  
  .subject-indicator {
    width: 14px;
  }
  
  /* 超小屏幕字体优化 */
  .everyday_content_title {
    font-size: 18px;
    line-height: 24px;
  }
  
  .everyday_content_answer {
    font-size: 16px;
    line-height: 20px;
  }
}

/* 移动端字体大小优化 */
@media screen and (max-width: 768px) {
  /* 题目内容字体增大 */
  .everyday_content_title {
    font-size: 18px;
    line-height: 24px;
    padding: 12px 0;
  }
  
  .everyday_content_answer {
    font-size: 16px;
    line-height: 20px;
    padding: 12px 0;
    padding-left: 28px;
  }
  
  /* 答案说明文字 */
  .everyday_answer_tip {
    font-size: 15px;
    line-height: 18px;
    padding: 12px 0;
  }
  
  .everyday_answer_describe {
    font-size: 15px;
    line-height: 20px;
  }
  
  /* 底部菜单字体 */
  .menu-item {
    font-size: 14px;
  }
  
  /* 中心按钮文字 */
  .center_button_text {
    font-size: 18px;
    line-height: 26px;
  }
  
  .center_button_text span {
    font-size: 15px;
  }
  
  /* 精华列表标题 */
  .essence_list_title {
    font-size: 16px;
    line-height: 20px;
  }
  
  /* 筛选栏文字 */
  .subject-tab {
    font-size: 14px;
    line-height: 32px;
  }
  
  .vehicle-select {
    font-size: 14px;
  }
}