/* layout-supreme.css · Nike/Supreme 潮牌左右分栏布局 · 2026-11-30 */

/* ========== 桌面左右分栏（>768px）========== */
@media (min-width: 769px) {
  body {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
  }
  
  /* 顶部横条缩减：只留 Logo + 登录 */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2em;
    height: 70px;
    background: rgba(5,8,13,0.95);
    border-bottom: 1px solid var(--oasis-green);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 15px var(--glow-green);
  }
  .topbar .nav {
    display: none; /* 桌面隐藏顶部导航 */
  }
  
  /* 左侧边栏（跟随滚动）*/
  .sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 240px;
    height: calc(100vh - 70px);
    background: rgba(5,8,13,0.9);
    border-right: 2px solid var(--oasis-grid);
    box-shadow: 4px 0 30px rgba(0,0,0,0.7), 0 0 20px var(--glow-green);
    overflow-y: auto;
    padding: 2em 0;
    z-index: 999;
  }
  .sidebar .nav {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0 1em;
  }
  .sidebar .nav a {
    display: block;
    padding: 0.9em 1.2em;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--oasis-cyan);
    background: rgba(10,61,47,0.2);
    border-left: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .sidebar .nav a::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-cyan), transparent);
    transition: left 0.4s;
  }
  .sidebar .nav a:hover::before {
    left: 100%;
  }
  .sidebar .nav a:hover {
    background: rgba(0,212,255,0.15);
    border-left-color: var(--oasis-cyan);
    transform: translateX(5px);
    box-shadow: 0 0 15px var(--glow-cyan);
  }
  .sidebar .nav a.active {
    background: rgba(0,255,65,0.2);
    border-left-color: var(--oasis-green);
    color: var(--oasis-green);
    box-shadow: 0 0 20px var(--glow-green);
  }
  
  /* 主内容区 */
  .app {
    margin-left: 240px;
    margin-top: 70px;
    width: calc(100% - 240px);
    padding: 3em 4em;
    min-height: calc(100vh - 70px);
  }
  
  /* 汉堡按钮桌面隐藏 */
  .hamburger {
    display: none;
  }
}

/* ========== 移动端（≤768px）汉堡菜单 ========== */
@media (max-width: 768px) {
  /* topbar 完整保留 */
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1em;
    height: 60px;
  }
  .topbar .nav {
    display: none; /* 顶部导航隐藏，移到抽屉 */
  }
  
  /* 汉堡按钮 */
  .hamburger {
    display: block;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--oasis-green);
    margin: 6px 0;
    transition: all 0.3s;
    box-shadow: 0 0 8px var(--glow-green);
  }
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
  }
  
  /* 侧边栏抽屉 */
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(5,8,13,0.98);
    border-right: 2px solid var(--oasis-green);
    box-shadow: 4px 0 40px rgba(0,0,0,0.9);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    padding: 5em 0 2em;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar .nav {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0 1em;
  }
  .sidebar .nav a {
    display: block;
    padding: 1em 1.2em;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--oasis-cyan);
    background: rgba(10,61,47,0.2);
    border-left: 3px solid transparent;
    transition: all 0.3s;
  }
  .sidebar .nav a.active {
    background: rgba(0,255,65,0.2);
    border-left-color: var(--oasis-green);
    color: var(--oasis-green);
  }
  
  /* 遮罩层 */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 999;
  }
  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* 主内容 */
  .app {
    margin-top: 60px;
    padding: 2em 1.5em;
    width: 100%;
  }
}

/* ========== Nike 式大标题 + 斜切卡片 ========== */
.hero h1,
.section-head h2,
.seg-head h2 {
  font-size: 3em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 0.3em;
}
@media (max-width: 768px) {
  .hero h1,
  .section-head h2 {
    font-size: 2em;
  }
}

/* 斜切分割线 */
.section,
.seg-section {
  position: relative;
  margin-bottom: 4em;
}
.section::after,
.seg-section::after {
  content: "";
  position: absolute;
  bottom: -2em;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--oasis-green), transparent);
  transform: skewX(-15deg);
  box-shadow: 0 0 10px var(--glow-green);
}

/* 卡片斜切入场动画 */
.day-card,
.stage-card,
.news-card {
  animation: cardSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
@keyframes cardSlide {
  from {
    opacity: 0;
    transform: translateX(-30px) skewX(-2deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) skewX(0);
  }
}
/* 错开延迟 */
.day-card:nth-child(2) { animation-delay: 0.1s; }
.day-card:nth-child(3) { animation-delay: 0.2s; }
.stage-card:nth-child(2) { animation-delay: 0.1s; }
.stage-card:nth-child(3) { animation-delay: 0.2s; }
.news-card:nth-child(2) { animation-delay: 0.05s; }
.news-card:nth-child(3) { animation-delay: 0.1s; }


/* ========== 登录界面遮罩全屏（只显示登录窗）========== */
.auth-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5,8,13,0.98);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-gate[hidden] {
  display: none;
}
/* 登录窗口激活时，隐藏所有其他内容 */
body:has(.auth-gate:not([hidden])) .topbar,
body:has(.auth-gate:not([hidden])) .sidebar,
body:has(.auth-gate:not([hidden])) .app,
body:has(.auth-gate:not([hidden])) .footer,
body:has(.auth-gate:not([hidden])) .grain {
  display: none !important;
}