
.year-selector-wrapper {
  margin: 20px 0 30px;
  position: relative;
}
.year-selector {
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #222;
  color: #fff;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.year-selector:hover {
  border-color: #666;
  background-color: #333;
}
.year-selector:focus {
  outline: none;
  border-color: #888;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.year-selector option {
  background-color: #222;
  color: #fff;
}
.year-section {
  display: none;
  animation: fadeIn 0.5s ease;
}
.year-section.active {
  display: block;
}
.no-year-selected {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-style: italic;
  font-size: 16px;
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 手机端适配 */
@media screen and (max-width: 768px) {
  .year-selector-wrapper {
    margin: 15px 0 25px;
  }

  .year-selector {
    max-width: 100%;
    padding: 14px 16px;
    font-size: 17px; /* 手机端字体稍大 */
    background-position: right 12px center;
  }

  /* 确保下拉列表在手机上能正确显示 */
  .year-selector:focus {
    position: relative;
    z-index: 10;
  }

  /* 优化下拉选项显示 */
  .year-selector option {
    font-size: 16px;
    padding: 10px;
  }

  .no-year-selected {
    padding: 40px 15px;
    font-size: 15px;
  }

  /* 确保页面有足够的内边距 */
  .section-inner {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
  .year-selector {
    padding: 16px 18px;
    font-size: 18px;
  }

  .no-year-selected {
    padding: 30px 10px;
    font-size: 44px;
  }
}
