/* ============================================================
   layout.css — 容器 / 页头 / 移动菜单 / 页脚 / Cookie 条
   ============================================================ */

/* ---------------- 容器 ---------------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* news 区沿用容器内边距；卡片行自带 20px 横向内边距（<1024） */
@media (min-width: 1024px) {
  .container--flush {
    padding-inline: 40px;
  }
}
@media (min-width: 1280px) {
  .container--flush {
    padding-inline: 56px;
  }
}

/* 整页 */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main {
  flex: 1;
  margin-top: var(--header-h);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------------- 页头 ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-blue);
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__logo {
  display: inline-block;
  margin-top: 0;
}
.site-nav__logo img {
  width: auto;
  height: 24px;
  object-fit: contain;
}
@media (min-width: 640px) {
  .site-nav__logo img {
    height: 32px;
  }
}
@media (min-width: 1024px) {
  .site-nav__logo {
    margin-top: -8px;
  }
  .site-nav__logo img {
    height: 40px;
  }
}
@media (min-width: 1280px) {
  .site-nav__logo img {
    height: 44px;
  }
}

/* 汉堡按钮（<1024） */
.site-nav__burger {
  display: block;
  color: var(--white);
  padding: 4px;
  margin: -4px;
}
.site-nav__burger svg {
  width: 24px;
  height: 24px;
  margin-top: 4px;
}
@media (min-width: 640px) {
  .site-nav__burger svg {
    width: 24px;
    height: 24px;
  }
}
@media (min-width: 1024px) {
  .site-nav__burger {
    display: none;
  }
}

/* 桌面导航 */
.site-nav__desktop {
  display: none;
}
@media (min-width: 1024px) {
  .site-nav__desktop {
    display: flex;
    align-items: center;
  }
}

.site-nav__list {
  display: flex;
  align-items: center;
}

.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.site-nav__link {
  display: block;
  padding: 8px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  transition: color var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
@media (min-width: 1280px) {
  .site-nav__link {
    padding: 12px 20px;
  }
}
.site-nav__item + .site-nav__item {
  margin-left: 6px;
}
@media (min-width: 1280px) {
  .site-nav__item + .site-nav__item {
    margin-left: 8px;
  }
}
.site-nav__link:hover,
.site-nav__item.is-open > .site-nav__link {
  color: var(--blue-400);
}

/* 下拉 */
.nav-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  width: max-content;
  padding-bottom: 4px;
  z-index: 50;
  display: none;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-blue);
  z-index: -1;
  pointer-events: none;
}
.site-nav__item.is-open .nav-dropdown {
  display: block;
}
.nav-dropdown__link {
  display: block;
  padding: 8px 20px;
  border: 2px solid transparent;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  transition: color var(--t-fast) var(--ease-out);
}
@media (min-width: 1280px) {
  .nav-dropdown__link {
    padding: 12px 20px;
  }
}
.nav-dropdown__link:hover {
  color: var(--blue-400);
}

/* Investor Login 描边按钮 */
.btn-outline {
  display: inline-block;
  padding: 8px;
  border: 2px solid currentColor;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--white);
  background: transparent;
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
@media (min-width: 1280px) {
  .btn-outline {
    padding: 12px 20px;
  }
}
.site-nav__login {
  margin-left: 4px;
  border-color: var(--white);
}
@media (min-width: 1280px) {
  .site-nav__login {
    margin-left: 16px;
  }
}
.site-nav__login:hover {
  background: var(--white);
  color: #000;
}

/* ---------------- 移动端全屏菜单 ---------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--header-blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 20px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease-out), visibility 200ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--white-25);
}
.mobile-menu__bar img {
  width: auto;
  height: 24px;
}
.mobile-menu__close {
  color: var(--white);
  padding: 8px;
  margin: -8px;
}
.mobile-menu__close svg {
  width: 24px;
  height: 24px;
}
.mobile-menu__list {
  border-bottom: 1px solid var(--white-25);
}
.mobile-menu__item {
  border-top: 1px solid var(--white-25);
}
.mobile-menu__item:first-child {
  border-top: 0;
}
.mobile-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  text-align: left;
}
.mobile-menu__row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-out);
}
.mobile-menu__item.is-open .mobile-menu__row svg {
  transform: rotate(180deg);
}
.mobile-menu__sub {
  display: none;
  padding-bottom: 8px;
}
.mobile-menu__item.is-open .mobile-menu__sub {
  display: block;
}
.mobile-menu__sub a {
  display: block;
  padding: 12px 0 12px 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}
.mobile-menu__login {
  display: block;
  margin-top: 32px;
  padding: 20px;
  border: 2px solid var(--white);
  border-radius: var(--radius-btn);
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}
body.menu-open {
  overflow: hidden;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--header-blue);
  color: var(--white);
}
.site-footer__inner {
  padding-block: 40px;
  border-top: 1px solid var(--white-25);
}
@media (min-width: 1024px) {
  .site-footer__inner {
    padding-block: 48px 24px;
  }
}
@media (min-width: 1280px) {
  .site-footer__inner {
    padding-block: 64px 32px;
  }
}
.site-footer__main {
  display: block;
}
@media (min-width: 1280px) {
  .site-footer__main {
    display: grid;
    grid-template-columns: 220.8px 1fr;
    gap: 56px;
  }
}
.site-footer__logo {
  display: inline-block;
}
.site-footer__logo img {
  width: auto;
  height: 48px;
}
@media (min-width: 1024px) {
  .site-footer__logo img {
    height: 56px;
  }
}
.site-footer__nav {
  display: none;
}
@media (min-width: 1024px) {
  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 32px;
  }
}
@media (min-width: 1280px) {
  .site-footer__nav {
    margin-top: -16px;
    padding-bottom: 16px;
  }
}
.footer-col__head {
  display: block;
  padding-block: 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  transition: color var(--t-fast) var(--ease-out);
}
.footer-col__head:hover {
  color: var(--blue-400);
}
.footer-col__link {
  display: block;
  padding-block: 12px;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  transition: color var(--t-fast) var(--ease-out);
}
.footer-col__link:hover {
  color: var(--blue-400);
}

/* 移动端手风琴 */
.footer-acc {
  display: block;
  margin-top: 32px;
  border-top: 1px solid var(--white-25);
}
@media (min-width: 1024px) {
  .footer-acc {
    display: none;
  }
}
.footer-acc__item {
  border-bottom: 1px solid var(--white-25);
}
.footer-acc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 16px 17px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  text-align: left;
}
.footer-acc__row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-out);
}
.footer-acc__item.is-open .footer-acc__row svg {
  transform: rotate(180deg);
}
.footer-acc__sub {
  display: none;
  padding-bottom: 8px;
}
.footer-acc__item.is-open .footer-acc__sub {
  display: block;
}
.footer-acc__sub a {
  display: block;
  padding: 12px 0 12px 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}

/* 法律链接 */
.site-footer__legal {
  margin-top: 12px;
  padding-top: 16px;
  padding-bottom: 3px;
  border-top: 1px solid var(--white-25);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .site-footer__legal {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
  }
}
@media (min-width: 640px) {
  .site-footer__legal { margin-top: 16px; }
}
@media (min-width: 768px) {
  .site-footer__legal { margin-top: 20px; }
}
@media (min-width: 1024px) {
  .site-footer__legal { margin-top: 28px; }
}
@media (min-width: 1280px) {
  .site-footer__legal {
    margin-top: 32px;
    padding-left: 332px;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 63px;
  }
  .site-footer__legal a {
    display: block;
  }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .site-footer__legal {
    padding-left: 0;
    column-gap: 24px;
  }
}
@media (min-width: 1280px) {
  .site-footer__bottom {
    margin-top: 32px;
  }
}
@media (min-width: 1440px) {
  .site-footer__legal {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}
.site-footer__legal a {
  display: block;
  padding-block: 16px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--white);
  transition: color var(--t-fast) var(--ease-out);
}
@media (max-width: 767px) {
  .site-footer__legal a {
    font-size: 12px;
    line-height: 16px;
    padding-block: 8px;
  }
}
.site-footer__legal a:hover {
  color: var(--blue-400);
}

/* 底部：版权 + 社交 */
.site-footer__bottom {
  margin-top: 0;
  padding-bottom: 7px;
  display: flex;
  flex-direction: column;
  min-height: 47px;
}
.site-footer__social {
  order: -1;
  margin-top: 0;
  margin-bottom: 16px;
}
.site-footer__copy {
  order: 0;
}
@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .site-footer__social {
    order: 2;
    margin-bottom: 0;
  }
  .site-footer__copy {
    order: 1;
  }
}
.site-footer__copy {
  font-size: 12px;
  line-height: 1.625;
  color: var(--gray-300);
}
@media (min-width: 768px) {
  .site-footer__copy {
    font-size: 14px;
  }
}
.site-footer__social {
  display: flex;
  margin-top: 0;
}

.site-footer__social a {
  display: block;
  width: 36px;
  height: 36px;
}
.site-footer__social a + a {
  margin-left: 24px;
}
@media (min-width: 1280px) {
  .site-footer__social a {
    width: 40px;
    height: 40px;
  }
}
.site-footer__social img {
  width: 100%;
  height: 100%;
}

/* ---------------- Cookie 同意条 ---------------- */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--cookie-bg);
  color: var(--gray-400);
  text-align: center;
  padding: 15px 15px 16px;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.cookie.is-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie__inner {
  max-width: 891px;
  margin-inline: auto;
  padding-top: 2px;
}
.cookie__text {
  font-size: 14px;
  line-height: 21px;
  margin: 0;
}
.cookie__text + .cookie__text {
  margin-top: 2px;
}
@media (min-width: 1024px) {
  .cookie__text {
    white-space: nowrap;
  }
}
.cookie__text a {
  color: var(--gray-150);
  font-weight: 600;
}
.cookie__btn {
  margin-top: 15px;
  padding: 5px 10px;
  border: 2px solid var(--gray-300);
  color: var(--gray-300);
  font-size: 14px;
  line-height: 21px;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.cookie__btn:hover {
  color: var(--white);
  border-color: var(--white);
}


















/* ---- 页脚底部行间距（原站全断点 mt-8 = 32px） ---- */
.site-footer__bottom {
  margin-top: 32px;
}


/* 新闻区容器：768–1023 横向内边距为 0（原站 md:!px-0），卡片行自带 20px */
@media (min-width: 768px) and (max-width: 1023px) {
  .news__inner {
    padding-inline: 0;
  }
}

/* 平板断点：法律链接行高（原站该断点更紧凑） */
@media (min-width: 640px) and (max-width: 1023px) {
  .site-footer__legal a {
    padding-block: 5px;
  }
}

/* 1024–1279：页脚导航区与法律区高度对齐原站 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-footer__nav {
    padding-bottom: 14px;
  }
  .site-footer__legal {
    padding-top: 26px;
  }
}


/* 1024–1279：页脚顶部无分隔线（与基线一致） */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-footer__inner {
    border-top: 0;
  }
}



/* 1280–1439：页脚 logo 略小（基线该断点 logo 视觉高度约 46px） */
@media (min-width: 1280px) and (max-width: 1439px) {
  .site-footer__logo img {
    height: 48px;
  }
}





