@charset "utf-8";
/* ============================================================
   layout.css —— 公共壳层：顶部导航 / 侧边竖排字 / 页脚 / 移动底栏 / 登录抽屉
   ============================================================ */

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: #0B243B;
  border-bottom: 1px solid rgba(247, 250, 255, .08);
  z-index: 100;
  transition: background var(--dur-2) var(--ease-soft), box-shadow var(--dur-2), height var(--dur-2);
}
.site-header.is-scrolled {
  background: #081D30;
  box-shadow: 0 6px 24px rgba(6, 22, 36, .28);
}
.site-header__inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

/* logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand__cn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #EAF4FF;
  white-space: nowrap;
}
.brand__en {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(200, 225, 245, .5);
  white-space: nowrap;
}

/* 主菜单 */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  color: rgba(234, 244, 255, .68);
  transition: color var(--dur-1), background var(--dur-1);
}
.main-nav a:hover { color: #FFFFFF; }
.main-nav a.is-active { color: #FFFFFF; font-weight: 700; }
/* 竖线分隔 */
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  margin-top: -9px;
  background: rgba(234, 244, 255, .3);
}
.main-nav a:last-child::after { display: none; }
/* 当前项底部天蓝指示 */
.main-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sky-400), transparent);
  animation: nav-line .5s var(--ease-out) both;
}
@keyframes nav-line {
  from { transform: scaleX(.3); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* 右侧：我的 / 登录 */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.mine-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: rgba(234, 244, 255, .68);
  border: 1px solid transparent;
  transition: color var(--dur-1), border-color var(--dur-1), background var(--dur-1);
}
.mine-btn:hover {
  color: #FFF;
  border-color: rgba(234,244,255,.24);
  background: rgba(255,255,255,.06);
}
.mine-btn svg { width: 15px; height: 15px; }

/* 移动端登录按钮 */
.header-login { display: none; }

/* 顶部滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--sky-400), var(--sky-500));
  z-index: 120;
  transition: width .08s linear;
  box-shadow: 0 0 8px rgba(46,155,227,.5);
}

/* ============ 侧边竖排装饰字 ============ */
.side-mark {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.side-mark--left { left: 0; }
.side-mark--right { right: 0; justify-content: flex-end; }
.side-mark__text {
  writing-mode: vertical-rl;
  font-size: 92px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1;
  color: #D7E9F8;
  opacity: .55;
  white-space: nowrap;
  transform: translateY(var(--mark-shift, 0px));
  transition: transform .1s linear;
  text-transform: uppercase;
}
.side-mark__text--right {
  writing-mode: vertical-rl;
  transform: rotate(180deg) translateY(var(--mark-shift, 0px));
}
@media (max-width: 1279px) {
  .side-mark { display: none; }
}

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  margin-top: 56px;
  background: #0B243B;
  color: #EAF4FF;
  overflow: hidden;
  z-index: 1;
}
.site-footer__bgtext {
  position: absolute;
  right: -2%;
  bottom: -34%;
  font-size: 220px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  color: rgba(255, 255, 255, .045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.site-footer__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 32px 28px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand svg { width: 40px; height: 40px; }
.footer-brand__cn {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
}
.footer-brand__en {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  color: rgba(200, 225, 245, .55);
  margin-top: 2px;
}
.footer-biz {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(234, 244, 255, .62);
}
.footer-biz b { color: #EAF4FF; font-weight: 600; letter-spacing: .04em; }
.footer-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(234, 244, 255, .55);
  flex-wrap: wrap;
}
.footer-meta a { transition: color var(--dur-1); }
.footer-meta a:hover { color: var(--sky-300); }
.footer-meta .divider {
  width: 1px;
  height: 12px;
  background: rgba(234, 244, 255, .22);
}

/* ============ 移动底栏 ============ */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: #0B243B;
  z-index: 999;
  padding: 0 4px;
  border-top: 1px solid rgba(234, 244, 255, .08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav a,
.bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  font-size: 11px;
  font-weight: 600;
  color: rgba(234, 244, 255, .6);
  transition: color var(--dur-1);
}
.bottom-nav svg { width: 21px; height: 21px; }
.bottom-nav a.is-active { color: var(--gold-400); }
.bottom-nav a.is-active svg { stroke: var(--gold-400); }

/* ============ 登录抽屉 ============ */
.login-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.login-drawer.is-open { display: block; }
.login-drawer__mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 29, 48, .55);
  backdrop-filter: blur(3px);
  animation: fade-in .3s var(--ease-out) both;
}
.login-drawer__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-lg);
  animation: drawer-in .38s var(--ease-out) both;
}
@keyframes drawer-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.login-drawer__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-400);
  transition: background var(--dur-1), color var(--dur-1);
}
.login-drawer__close:hover { background: var(--bg-soft); color: var(--ink-700); }
.login-drawer__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
}
.login-drawer__sub {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.login-drawer__fields {
  margin: 22px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-drawer__fields .input { height: 44px; }
.login-drawer__note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.login-drawer__submit { width: 100%; height: 44px; font-size: 14px; }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .main-nav a { padding: 0 16px; font-size: 14px; }
  .brand__text { display: none; }
}
@media (max-width: 960px) {
  :root { --nav-h: 52px; }
  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
  }
  .brand { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .main-nav { display: none; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__text { display: flex; min-width: 0; }
  .brand__cn {
    font-size: 12.5px;
    letter-spacing: .02em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand__en { display: none; }
  .header-actions { flex: none; }
  .header-actions .mine-btn { display: none; }
  .header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(234,244,255,.28);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: #EAF4FF;
  }
  .bottom-nav { display: flex; }
  .site-footer { margin-bottom: 56px; }
  .site-footer__inner { padding: 22px 18px; gap: 22px; }
  .footer-meta { margin-left: 0; width: 100%; }
  .side-mark { display: none; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .site-footer__bgtext { font-size: 120px; bottom: -22%; right: -16%; }
  .footer-brand__cn { font-size: 13px; }
}
