/* ======================== */
/* CSS 变量 + 全局重置      */
/* ======================== */
:root {
  --color-primary: #112547;
  --color-primary-light: #1a3a6b;
  --color-accent: #2978FE;
  --color-accent-hover: #1a5fd4;
  --color-white: #FFFFFF;
  --color-grey-100: #F5F5F5;
  --color-grey-200: #E8E8E8;
  --color-grey-300: #999;
  --color-grey-600: #666;
  --color-grey-700: #333;
  --color-text-dark: #1D1D1F;
  --color-overlay-dark: rgba(17, 37, 71, 0.6);
  --font-primary: 'Inter', 'Source Han Sans CN', 'Noto Sans SC', system-ui, sans-serif;
  --font-impact: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  --font-logo: 'Alumni Sans', sans-serif;
  --container-max: 1500px;
  --container-padding: clamp(20px, 4vw, 40px);
  --header-h: 120px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --z-sticky: 100;
  --z-overlay: 500;
  --z-modal: 1000;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
ul, ol { list-style: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.section {
  position: relative;
}
.section__title {
  font-weight: 700;
  font-size: 36px;
  line-height: 66px;
  color: var(--color-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 60px;
}
.section__title--white { color: var(--color-white); }
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
/* ======================== */
/* 通用 Header 样式          */
/* ======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-modal);
  background: rgba(17, 37, 71, 0.5);
  box-shadow: 0 3px 19px 0 rgba(19, 71, 168, 0.18);
  border-radius: 0;
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base);
}
.site-header.scrolled {
  background: rgba(17, 37, 71, 0.85);
  box-shadow: 0 4px 24px rgba(19, 71, 168, 0.3);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__icon {
  width: 52px;
  height: 52px;
}
.logo__text {
  font-family: var(--font-logo);
  font-weight: 200;
  font-size: 48px;
  line-height: 50px;
  color: var(--color-white);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-white);
  height: 40px;
  line-height: 40px;
  padding: 0 18px;
  border-radius: 26px;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-transform: uppercase;
}
.nav__link:hover {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 500;
}
.nav__link--active {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 500;
}
.nav__link--active:hover {
  background: #ffffff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--transition-base),
    background var(--transition-base);
}
.header-search:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}
.header-search img {
  width: 20px;
  height: 20px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  justify-content: center;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-base);
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.nav__close {
  display: none;
}
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}
/* ======================== */
/* 通用 搜索面板 样式         */
/* ======================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-panel {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 999;
  width: 1400px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 30px 60px 40px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}
.search-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* 输入框区域 */
.search-panel__input-box {
  display: flex;
  align-items: center;
  height: 90px;
  border: 1px solid #cbd6e2;
  border-radius: 20px;
  background: #eef0f8;
  padding: 0 10px 0 30px;
  gap: 16px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.search-panel__input-box.focused {
  border-color: #2978fe;
  background: #f2f7ff;
}
.search-panel__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.5;
}
.search-panel__input-box.focused .search-panel__icon {
  opacity: 1;
}
.search-panel__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  line-height: 90px;
  height: 100%;
}
.search-panel__input::placeholder {
  color: #999;
  font-size: 18px;
  transition: color 0.3s ease;
}
.search-panel__input-box.focused .search-panel__input::placeholder {
  color: #2978fe;
}
.search-panel__submit {
  flex-shrink: 0;
  width: 116px;
  height: 70px;
  border-radius: 20px;
  background: #73a7ff;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.search-panel__submit:hover {
  background: #2978fe;
}
.search-panel__submit.active {
  background: #2978fe;
}
/* header搜索按钮 — 打开搜索时切换为关闭图标 */
.header-search__close {
  display: none;
}
.header-search.active {
  background: #fff;
}
.header-search.active:hover {
  background: #f0f0f0;
}
.header-search.active .header-search__icon {
  display: none;
}
.header-search.active .header-search__close {
  display: block;
  width: 16px;
  height: 16px;
}
/* 竖线连接关闭按钮与搜索面板 */
.header-search.active::after {
  content: '';
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 35px;
  background: #fff;
}
/* 热门搜索区域 */
.search-panel__hot {
  margin-top: 40px;
}
.search-panel__hot-title {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-bottom: 20px;
}
.search-panel__tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 40px;
}
.search-panel__tag {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 20px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.search-panel__tag:hover {
  color: #2978fe;
}
/* 搜索历史区域 */
.search-panel__history {
  margin-top: 30px;
}
.search-panel__history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.search-panel__history-title {
  font-size: 12px;
  font-weight: 400;
  color: #999;
}
.search-panel__history-clear {
  font-size: 12px;
  color: #999;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: color 0.2s ease;
}
.search-panel__history-clear:hover {
  color: #2978fe;
}
/* 空结果状态 */
.search-panel__empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0 20px;
}
.search-panel__empty.active {
  display: flex;
}
.search-panel__empty-img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}
.search-panel__empty-text {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  text-align: center;
}

/* ======================== */
/* 通用 Footer 样式          */
/* ======================== */
.footer {
  background: #2978fe;
}
.footer__inner {
  position: relative;
  padding: 0 var(--container-padding);
}
.footer__top {
  display: flex;
  align-items: flex-start;
  padding: 100px 0;
}
.footer__top.index__footer {
  padding-top: 0;
}
.footer__brand {
  flex-shrink: 0;
}
.footer__brand-logo {
  width: 350px;
  height: auto;
  filter: brightness(0) invert(1);
}
.footer__right {
  margin-left: auto;
  flex-shrink: 0;
}
.footer__nav {
  display: flex;
  gap: 100px;
  margin-bottom: 50px;
}
.footer__col {
  display: flex;
  flex-direction: column;
}
.footer__col-title {
  font-weight: 700;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0;
  line-height: 50px;
}
.footer__col-link {
  font-weight: 700;
  font-size: 20px;
  line-height: 50px;
  color: var(--color-white);
  transition: color var(--transition-base);
}
.footer__col-link:hover {
  color: rgba(255, 255, 255, 0.7);
}
.footer__mid {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.footer__mid-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.footer__socials {
  display: flex;
  gap: 30px;
  align-items: center;
}
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}
.footer__socials a:hover {
  transform: translateY(-2px);
}
.footer__socials img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}
.footer__socials a:hover img {
  opacity: 1;
}
.footer__brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  height: 52px;
  padding: 0 30px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition:
    background var(--transition-base),
    border-color var(--transition-base);
}
.footer__brand-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}
.footer__qr-codes {
  display: flex;
  gap: 20px;
}
.footer__qr {
  width: 102px;
  height: 102px;
  border: 6px solid var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-white);
}
.footer__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.footer__bottom-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.footer__bottom-brand {
  font-weight: 500;
  font-size: 20px;
  color: var(--color-white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer__bottom-tagline {
  font-weight: 400;
  font-size: 14px;
  color: var(--color-white);
  letter-spacing: 0.7px;
}
.footer__copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
/* ======================== */
/* 通用响应式 — Tablet       */
/* ======================== */
@media (max-width: 1199px) {
  .header-inner {
    padding: 0 24px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-primary);
    padding: 72px 24px 24px;
    gap: 8px;
    transition: transform var(--transition-base);
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 28px;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-base);
  }
  .nav__close:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  .nav__link {
    font-size: 14px;
    color: var(--color-white);
    padding: 10px 0;
    height: auto;
    line-height: 1.4;
    border-radius: 0;
  }
  .nav__link--active {
    color: var(--color-accent);
    background: transparent;
    border: none;
  }

  .footer {
    padding: 60px 0 0;
  }
  .footer__top {
    gap: 40px;
  }
  .footer__brand-logo {
    width: 200px;
  }
  .footer__nav {
    gap: 48px;
    margin-bottom: 36px;
  }
  .footer__col-title {
    font-size: 16px;
    line-height: 42px;
  }
  .footer__col-link {
    font-size: 16px;
    line-height: 42px;
  }
  .footer__qr {
    width: 86px;
    height: 86px;
  }
  .footer__brand-badge {
    font-size: 14px;
    height: 44px;
  }
  .footer__bottom-brand {
    font-size: 16px;
  }
  .footer__bottom-tagline {
    font-size: 12px;
  }
}
/* ======================== */
/* 通用响应式 — Mobile       */
/* ======================== */
@media (max-width: 767px) {
  .container {
    padding: 0 10px;
    box-sizing: border-box;
  }
  :root {
    --header-h: 60px;
  }
  .header-inner {
    height: var(--header-h);
    padding: 0 16px;
  }
  .logo__icon {
    width: 32px;
    height: 32px;
  }
  .logo__text {
    font-size: 24px;
  }
  .site-header {
    background: rgba(17, 37, 71, 0.8);
  }
  .menu-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-primary);
    padding: 72px 24px 24px;
    gap: 8px;
    transition: transform var(--transition-base);
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 28px;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-base);
  }
  .nav__close:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  .nav__link {
    font-size: 14px;
    color: var(--color-white);
    padding: 10px 0;
    height: auto;
    line-height: 1.4;
    border-radius: 0;
  }
  .nav__link--active {
    color: var(--color-accent);
    background: transparent;
  }

  .footer {
    padding: 40px 0 0;
  }
  .footer__top {
    flex-direction: column;
    gap: 28px;
  }
  .footer__nav {
    flex-wrap: wrap;
    gap: 20px 36px;
    margin-bottom: 24px;
  }
  .footer__mid {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer__brand-logo {
    width: 160px;
  }
  .footer__col-title {
    font-size: 14px;
    line-height: 36px;
  }
  .footer__col-link {
    font-size: 14px;
    line-height: 36px;
  }
  .footer__socials {
    gap: 20px;
  }
  .footer__brand-badge {
    font-size: 12px;
    height: 40px;
    padding: 0 20px;
  }
  .footer__qr-codes {
    gap: 10px;
  }
  .footer__qr {
    width: 72px;
    height: 72px;
    border-width: 4px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer__bottom-left {
    flex-direction: column;
    gap: 4px;
  }
  .footer__bottom-brand {
    font-size: 14px;
  }
  .footer__bottom-tagline {
    font-size: 12px;
  }
  .footer__copyright {
    font-size: 12px;
  }
}
/* 搜索面板响应式 - 平板 */
@media (max-width: 1024px) {
  .search-panel {
    width: calc(100vw - 40px);
    padding: 40px 30px 40px;
  }
  .search-panel__input-box {
    height: 70px;
    padding: 0 8px 0 20px;
    gap: 12px;
  }
  .search-panel__input {
    font-size: 16px;
    line-height: 70px;
    min-width: 0;
  }
  .search-panel__input::placeholder {
    font-size: 16px;
  }
  .search-panel__submit {
    width: auto;
    min-width: 90px;
    padding: 0 20px;
    height: 54px;
    font-size: 16px;
    flex-shrink: 0;
  }
  .search-panel__tags {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
  }
}
/* 搜索面板响应式 - 手机 */
@media (max-width: 768px) {
  .search-panel {
    width: calc(100vw - 24px);
    padding: 30px 20px 30px;
    border-radius: 16px;
  }
  .search-panel__input-box {
    height: 60px;
    border-radius: 14px;
    padding: 0 6px 0 16px;
    gap: 8px;
  }
  .search-panel__input {
    font-size: 14px;
    line-height: 60px;
    min-width: 0;
  }
  .search-panel__input::placeholder {
    font-size: 14px;
  }
  .search-panel__submit {
    width: auto;
    min-width: 72px;
    padding: 0 16px;
    height: 46px;
    font-size: 14px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .search-panel__tags {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
  }
  .search-panel__tag {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .search-panel__empty-img {
    width: 90px;
    height: 90px;
  }
  .search-panel__empty-text {
    font-size: 15px;
  }
}
