/* ========== 基础重置与变量 ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #fbf8ef;
  --primary-blue: #0d62bd;
  --text-dark: #333333;
  --text-gray: #999999;
  --white: #ffffff;
  --yellow: #faa810;
  --light-blue-bg: #f0f5ff;
  --outline-gray: #dddddd;

  --font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;

  --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-default);
}

/* ========== 动画关键帧 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 顶部 Banner ========== */
.header-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-wrapper {
  position: relative;
  width: 100%;
}

.banner-bg {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.banner-logo {
  position: absolute;
  top: clamp(16px, 3.7vw, 37px);
  left: clamp(16px, 16.2vw, 311px);
  width: clamp(120px, 13.1vw, 252px);
  height: auto;
  z-index: 2;
  animation: fadeIn 1s ease-out 0.3s both;
}

/* ========== 轮播大图 ========== */
.hero-section {
  width: 100%;
  padding: clamp(24px, 2.1vw, 41px) clamp(16px, 4.2vw, 80px) 0;
  display: flex;
  justify-content: center;
}

.hero-wrapper {
  width: 100%;
  max-width: 1247px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: var(--transition-slow);
}

.hero-wrapper:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ========== 区块标题通用 ========== */
.section-title-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: clamp(32px, 2.1vw, 40px);
  padding-bottom: clamp(16px, 1.7vw, 32px);
}

.section-title-img {
  width: clamp(280px, 28vw, 538px);
  height: auto;
}

/* ========== 高考动态 ========== */
.news-section {
  width: 100%;
  padding: 0 clamp(16px, 4.2vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-container {
  width: 100%;
  max-width: 1213px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.news-card {
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  padding: clamp(16px, 1vw, 20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition-slow);
}

.news-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.news-card-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.5vw, 24px);
}

.news-featured {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.5vw, 24px);
}

.news-featured-img {
  width: 100%;
  max-width: 356px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  transition: var(--transition-default);
}

.news-featured-img:hover {
  transform: scale(1.02);
}

.news-featured-content {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1vw, 16px);
  flex: 1;
}

.news-featured-title {
  font-size: clamp(20px, 1.875vw, 36px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.4;
  transition: var(--transition-default);
}

.news-featured-title:hover {
  color: var(--primary-blue);
}

.news-featured-desc {
  font-size: clamp(13px, 0.73vw, 14px);
  color: var(--text-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(8px, 0.5vw, 12px);
}

.news-detail-link {
  font-size: clamp(13px, 0.73vw, 14px);
  color: var(--primary-blue);
  position: relative;
}

.news-detail-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.news-detail-link:hover::after {
  width: 100%;
}

.news-date {
  font-size: clamp(13px, 0.73vw, 14px);
  color: var(--text-gray);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.2vw, 22px);
  padding-top: clamp(12px, 1.2vw, 20px);
  border-top: 1px solid #f0f0f0;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(6px, 0.6vw, 10px) 0;
  transition: var(--transition-default);
}

.news-item:hover {
  background: rgba(13, 98, 189, 0.03);
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

.news-item-title {
  font-size: clamp(13px, 0.73vw, 14px);
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: var(--transition-default);
}

.news-item:hover .news-item-title {
  color: var(--primary-blue);
}

.news-item-date {
  font-size: clamp(13px, 0.73vw, 14px);
  color: var(--text-gray);
  flex-shrink: 0;
}

.news-more-link {
  font-size: clamp(14px, 0.9375vw, 18px);
  font-weight: 500;
  color: var(--primary-blue);
  margin-top: clamp(12px, 1.2vw, 20px);
  margin-bottom: clamp(16px, 1.5vw, 24px);
  position: relative;
  display: inline-block;
}

.news-more-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.news-more-link:hover::after {
  width: 100%;
}

/* ========== 考场安排 ========== */
.exam-section {
  width: 100%;
  padding: clamp(40px, 3.8vw, 73px) clamp(16px, 4.2vw, 80px) 0;
  display: flex;
  justify-content: center;
}

.exam-wrapper {
  width: 100%;
  max-width: 1621px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.5vw, 24px);
}

.exam-title-bar {
  background: var(--yellow);
  border-radius: 999px;
  padding: clamp(12px, 1.2vw, 20px) clamp(24px, 3.4vw, 64px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(250, 168, 16, 0.3);
  transition: var(--transition-slow);
  animation: scaleIn 0.6s ease-out both;
}

.exam-title-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(250, 168, 16, 0.4);
}

.exam-title {
  font-size: clamp(18px, 1.875vw, 36px);
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
  text-align: center;
}

.exam-content {
  width: 100%;
  background: #f0f5ff;
  border-radius: 20px;
  padding: clamp(12px, 1vw, 20px);
  overflow: hidden;
  transition: var(--transition-slow);
}

.exam-content-box {
  background: #e5e5e5;
  padding: clamp(12px, 1vw, 20px);
  display: flex;
}
.exam-left {
  width: 50%;
  padding-right: clamp(12px, 1vw, 20px);
}
.exam-right {
  width: 50%;
  padding-left: clamp(12px, 1vw, 20px);
}

.exam-content-box table {
  width: 100%;
  border-collapse: collapse;
}

.exam-content img {
  width: 50%;
  display: block;
}

.exam-content:hover {
  box-shadow: 0 8px 30px rgba(13, 98, 189, 0.1);
}


.exam-table-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ========== 备考攻略 ========== */
.strategy-section {
  width: 100%;
  padding: clamp(40px, 3.8vw, 110px) clamp(16px, 4.2vw, 80px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strategy-grid {
  width: 100%;
  max-width: 1394px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.1vw, 20px);
}

.strategy-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: var(--transition-slow);
  cursor: pointer;
}

.strategy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.strategy-card:hover .strategy-img {
  transform: scale(1.05);
}

.strategy-img {
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 考生常见问题 ========== */
.faq-section {
  width: 100%;
  padding: clamp(40px, 3.8vw, 114px) clamp(16px, 4.2vw, 80px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-title-wrapper {
  position: relative;
  width: clamp(300px, 31.6vw, 606px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: clamp(20px, 2.1vw, 41px);
}

.faq-title-bg {
  width: 100%;
  height: auto;
}

.faq-title {
  position: absolute;
  bottom: clamp(20px, 2.1vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(20px, 1.875vw, 36px);
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
  text-align: center;
}

.faq-content {
  width: 100%;
  max-width: 1400px;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-content .faq-item {
  border-top: 1px solid #2e3f84;
  border-bottom: 1px solid #2e3f84;
  padding: 12px 20px;
  background-color: #f9f8f5;
}
.faq-content .faq-item .faq-item-problem {
  color: #2e3f84;
  font-weight: bold;
  font-size: 20px;
  text-align: justify;
}
.faq-content .faq-item .faq-item-answer {
  margin-top: 12px;
}

.faq-content-img {
  width: 100%;
  height: auto;
}

/* ========== 立即查看 ========== */
.action-section {
  width: 100%;
  padding: clamp(40px, 2.1vw, 40px) clamp(16px, 4.2vw, 80px) 0;
  display: flex;
  justify-content: center;
}

.action-wrapper {
  width: 100%;
  max-width: 1483px;
  background: var(--white);
  border-radius: 20px;
  padding: clamp(20px, 1.5vw, 28px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 1.5vw, 28px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.action-card {
  width: 100%;
  background: var(--primary-blue);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--outline-gray);
  transition: var(--transition-slow);
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 98, 189, 0.25);
}

.action-card:hover .action-img {
  transform: scale(1.03);
}

.action-img {
  width: 100%;
  height: auto;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn {
  padding: clamp(16px, 2vw, 32px) clamp(16px, 1vw, 20px);
  text-align: center;
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: 400;
  color: var(--white);
  background: var(--primary-blue);
  transition: var(--transition-default);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.action-card:hover .action-btn::before {
  width: 300%;
  height: 300%;
}

/* ========== 底部 Footer ========== */
.footer-section {
  width: 100%;
  margin-top: clamp(40px, 3.8vw, 147px);
  overflow: hidden;
}

.footer-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========== 平板适配 (768px+) ========== */
@media (min-width: 768px) {
  .news-featured {
    flex-direction: row;
    align-items: flex-start;
  }

  .news-featured-img {
    width: 356px;
    height: 249px;
  }

  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== 桌面适配 (1024px+) ========== */
@media (min-width: 1024px) {
  .news-card-inner {
    padding: clamp(10px, 1vw, 20px);
  }

  .news-list {
    padding-top: clamp(10px, 1.2vw, 20px);
  }
}

/* ========== 大屏精准还原 (1920px) ========== */
@media (min-width: 1440px) {
  .hero-section {
    padding-left: calc((100% - 1247px) / 2);
    padding-right: calc((100% - 1247px) / 2);
  }

  .news-section {
    padding-left: calc((100% - 1213px) / 2);
    padding-right: calc((100% - 1213px) / 2);
  }

  .exam-section {
    padding-left: calc((100% - 1621px) / 2);
    padding-right: calc((100% - 1621px) / 2);
  }

  .strategy-section {
    padding-left: calc((100% - 1394px) / 2);
    padding-right: calc((100% - 1394px) / 2);
  }

  .faq-section {
    padding-left: calc((100% - 1413px) / 2);
    padding-right: calc((100% - 1413px) / 2);
  }

  .action-section {
    padding-left: calc((100% - 1483px) / 2);
    padding-right: calc((100% - 1483px) / 2);
  }
}

/* ========== 1920px 基准精确还原 ========== */
@media (min-width: 1920px) {
  .header-section {
    max-width: 1920px;
    margin: 0 auto;
  }

  .hero-section {
    padding: 41px 0 0;
  }

  .news-section {
    padding: 40px 0 0;
  }

  .news-card {
    border-radius: 20px;
  }

  .exam-section {
    padding: 73px 0 0;
  }

  .strategy-section {
    padding: 110px 0 0;
  }

  .strategy-grid {
    gap: 20px 20px;
  }

  .faq-section {
    padding: 114px 0 0;
  }

  .action-section {
    padding: 40px 0 0;
  }

  .footer-section {
    margin-top: 147px;
  }
}

/* ========== 小屏手机优化 ========== */
@media (max-width: 374px) {
  html {
    font-size: 14px;
  }

  .news-featured-title {
    font-size: 18px;
  }

  .exam-title {
    font-size: 16px;
    white-space: normal;
  }

  .faq-title {
    font-size: 18px;
  }
}

/* ========== 无障碍与减少动画 ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 768px) {
  .banner-logo {
    top: 12px;
    left: 12px;
  }
  .exam-content {
    flex-direction: column;
  }
  .exam-content img {
    width: 100%;
  }
}

.qrcode-wrapper {
  padding: 80px;
}
.qrcode-box {
  width: 150px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 15px;
  border-radius: 4px;
  font-size: 16px;
}

.qrcode img {
  width: 100%;
}
.table .table-header .table-row {
  display: flex;
}
.table .table-header .table-row .table-cell {
  color: #9b9b9b;
  padding: 8px;
}
.table .table-header .table-row .table-cell:nth-child(1) {
  width: 50px;
  text-align: center;
}
.table .table-header .table-row .table-cell:nth-child(2) {
  flex: 1;
  padding-left: 10px;
}
.table .table-header .table-row .table-cell:nth-child(3) {
  width: 140px;
}
.table .table-header .table-row .table-cell:nth-child(4) {
  width: 120px;
}
.table .table-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.table .table-body .table-row {
  display: flex;
}
.table .table-body .table-row:hover {
  transform: scale(1.02);
}
.table .table-body .table-row .table-cell {
  background: #fff;
  padding: 8px;
}
.table .table-body .table-row .table-cell:nth-child(1) {
  width: 50px;
  text-align: center;
  background: #f9c222;
}
.table .table-body .table-row .table-cell:nth-child(2) {
  flex: 1;
  padding-left: 10px;
}
.table .table-body .table-row .table-cell:nth-child(3) {
  width: 140px;
}
.table .table-body .table-row .table-cell:nth-child(4) {
  width: 120px;
}

.exam-right .table .table-header .table-row {
  display: flex;
}
.exam-right .table .table-header .table-row .table-cell {
  color: #9b9b9b;
}
.exam-right .table .table-header .table-row .table-cell:nth-child(1) {
  width: 50px;
  text-align: center;
}
.exam-right .table .table-header .table-row .table-cell:nth-child(2) {
  flex: 1;
  padding-left: 10px;
}
.exam-right .table .table-header .table-row .table-cell:nth-child(3) {
  width: 140px;
}
.exam-right .table .table-header .table-row .table-cell:nth-child(4) {
  width: 120px;
}
.exam-right .table .table-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.exam-right .table .table-body .table-row {
  display: flex;
}
.exam-right .table .table-body .table-row .table-cell {
  background: #fff;
}
.exam-right .table .table-body .table-row .table-cell:nth-child(1) {
  width: 50px;
  text-align: center;
  background: #f9c222;
}
.exam-right .table .table-body .table-row .table-cell:nth-child(2) {
  flex: 1;
  padding-left: 10px;
}
.exam-right .table .table-body .table-row .table-cell:nth-child(3) {
  width: 200px;
}
.exam-right .table .table-body .table-row .table-cell:nth-child(4) {
  width: 120px;
}

.remark {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .exam-content {
    padding: 0;
  }
  .exam-content-box {
    flex-direction: column;
  }
  .exam-content-box .exam-left {
    width: 100%;
    padding-right: 0;
  }
  .exam-content-box .exam-right {
    width: 100%;
    padding-left: 0;
  }
  .exam-content-box .exam-right .table-header {
    display: none;
  }
  .exam-content-box .table .table-header .table-row {
    display: flex;
  }
  .exam-content-box .table .table-header .table-row .table-cell {
    color: #9b9b9b;
  }
  .exam-content-box .table .table-header .table-row .table-cell:nth-child(1) {
    width: 50px;
    text-align: center;
  }
  .exam-content-box .table .table-header .table-row .table-cell:nth-child(2) {
    flex: 1;
    padding-left: unset;
  }
  .exam-content-box .table .table-header .table-row .table-cell:nth-child(3) {
    width: 80px;
  }
  .exam-content-box .table .table-header .table-row .table-cell:nth-child(4) {
    width: 80px;
  }
  .exam-content-box .table .table-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  .exam-content-box .table .table-body .table-row {
    display: flex;
  }
  .exam-content-box .table .table-body .table-row .table-cell {
    background: #fff;
    padding: 0px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .exam-content-box .table .table-body .table-row .table-cell:nth-child(1) {
    width: 50px;
    text-align: center;
    background: #f9c222;
  }
  .exam-content-box .table .table-body .table-row .table-cell:nth-child(2) {
    flex: 1;
  }
  .exam-content-box .table .table-body .table-row .table-cell:nth-child(3) {
    width: 80px;
  }
  .exam-content-box .table .table-body .table-row .table-cell:nth-child(4) {
    width: 80px;
  }
}