/* ===== 马兰突击旅官网 - 公共样式 ===== */
/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0a0f;
  color: #c8d6e5;
  font-family: 'Noto Sans SC', sans-serif;
  overflow-x: hidden;
}

/* 扫描线 */
body::after {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,240,255,0.015) 2px, rgba(0,240,255,0.015) 4px);
  pointer-events: none; z-index: 9999;
}

/* ===== 导航栏 - 新风格：深灰网格+极简线条 ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0.9) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 60px; display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
nav .logo { display: flex; align-items: center; gap: 12px; }
nav .logo img { width: 38px; height: 38px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.15); }
nav .logo span {
  font-family: 'Share Tech Mono', monospace; font-size: 16px; font-weight: 700;
  color: rgba(255,255,255,0.9); letter-spacing: 3px;
}
nav .links { display: flex; align-items: center; gap: 36px; }
nav .links a {
  color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px;
  font-weight: 500; letter-spacing: 2px; transition: all 0.3s; position: relative;
  text-transform: uppercase;
}
nav .links a:hover, nav .links a.active { 
  color: #fff; 
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
}
nav .links a::after {
  content: ''; position: absolute; bottom: -8px; left: 0; width: 0; height: 2px;
  background: #fff; transition: width 0.3s ease;
}
nav .links a:hover::after, nav .links a.active::after { width: 100%; }
nav .btn-join {
  padding: 10px 24px; border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-size: 12px; letter-spacing: 2px; text-decoration: none;
  transition: all 0.3s; background: rgba(255,255,255,0.05);
}
nav .btn-join:hover { 
  background: rgba(255,255,255,0.15); 
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 30px rgba(255,255,255,0.15);
}
nav .lang-btn {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); 
  color: rgba(255,255,255,0.5);
  padding: 8px 14px; font-size: 11px; cursor: pointer;
  font-family: 'Share Tech Mono', monospace; letter-spacing: 1px; transition: all 0.3s;
}
nav .lang-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* 汉堡按钮 */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
  z-index: 101;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #00f0ff; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== 页脚 - 新风格：深灰极简 ===== */
footer {
  border-top: 1px solid rgba(255,255,255,0.04); 
  padding: 60px 60px 40px;
  background: linear-gradient(180deg, rgba(10,10,15,0.5) 0%, rgba(10,10,15,0.9) 100%);
}
footer .inner { max-width: 1200px; margin: 0 auto; }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
footer .brand .shield {
  width: 40px; height: 40px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 700;
}
footer .brand span { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 2px; }
footer p.desc { font-size: 13px; color: rgba(255,255,255,0.4); max-width: 360px; line-height: 1.8; }
footer h4 { 
  font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 3px; 
  margin-bottom: 16px; text-transform: uppercase;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 13px; transition: all 0.3s; }
footer ul li a:hover { color: #fff; }
footer .bottom { 
  border-top: 1px solid rgba(255,255,255,0.04); 
  padding-top: 24px; 
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; 
  font-size: 11px; color: rgba(255,255,255,0.25); 
}
footer .bottom a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.3s; }
footer .bottom a:hover { color: rgba(255,255,255,0.6); }

/* ===== 返回顶部 ===== */
#backToTop {
  position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 50; opacity: 0; pointer-events: none; transition: all 0.3s;
  color: rgba(255,255,255,0.6); font-size: 14px;
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { 
  background: rgba(255,255,255,0.12); 
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* ===== 通用区块 ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 40px; }
.section-label { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: #00f0ff; letter-spacing: 4px; margin-bottom: 8px; text-align: center; }
.section h2 { font-size: 30px; font-weight: 700; letter-spacing: 3px; color: #e8f0fe; text-align: center; margin-bottom: 8px; }
.section .sub { text-align: center; color: #5a7d9a; font-size: 13px; margin-bottom: 48px; }

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .hamburger { display: flex; }
  nav .links {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh;
    background: rgba(10,10,15,0.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 32px;
    border-left: 1px solid rgba(0,240,255,0.12);
    transition: right 0.35s ease;
    padding: 40px;
  }
  nav .links.open { right: 0; }
  nav .links a { font-size: 15px; }
  nav .btn-join { padding: 10px 24px; font-size: 13px; }
  nav .lang-btn { padding: 8px 16px; font-size: 12px; }

  footer .grid { grid-template-columns: 1fr; gap: 24px; }
  footer .bottom { flex-direction: column; align-items: center; text-align: center; }
  footer .bottom span:nth-child(2n) { display: none; }

  .section { padding: 80px 20px 20px; }
  .section h2 { font-size: 22px; }
}/* ===== 导航下拉菜单 - 新风格 ===== */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown::before {
  content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 10px;
  z-index: 199;
}
.nav-dropdown-trigger {
  color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500;
  letter-spacing: 2px; cursor: pointer; transition: all 0.3s;
  position: relative; user-select: none; text-transform: uppercase;
}
.nav-dropdown-trigger::after {
  content: ''; display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px; vertical-align: middle;
  transition: transform 0.3s, border-top-color 0.3s;
}
.nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-trigger:hover,
.nav-dropdown.active > .nav-dropdown-trigger { color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.4); }
.nav-dropdown.active > .nav-dropdown-trigger::before {
  content: ''; position: absolute; bottom: -8px; left: 0; width: 100%; height: 2px;
  background: #fff;
}
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 180px;
  z-index: 200;
  background: rgba(15,15,20,0.98); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; padding: 8px 0;
  opacity: 0; pointer-events: none;
  transform: translateY(6px); transition: all 0.2s ease;
  z-index: 200; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 12px 24px; color: rgba(255,255,255,0.5); font-size: 13px;
  font-weight: 500; letter-spacing: 1px; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
  border-left: 2px solid transparent;
}
.nav-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.05); border-left-color: rgba(255,255,255,0.5); }
.nav-dropdown-menu a.active { color: #fff; border-left-color: #fff; background: rgba(255,255,255,0.08); }

@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static; background: transparent; border: none;
    border-radius: 0; box-shadow: none;
    opacity: 1; pointer-events: auto; transform: none;
    padding: 0 0 0 16px; display: none;
    min-width: 0;
  }
  .nav-dropdown-menu.open { display: block; }
  .nav-dropdown-trigger::after {
    content: ''; display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px; vertical-align: middle;
    transition: transform 0.3s;
  }
  .nav-dropdown-trigger.open::after { transform: rotate(180deg); }
  .nav-dropdown-trigger::before { display: none; }
  .nav-dropdown-menu a { border-left: none; padding: 10px 16px; }
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a.active { border-left: none; background: rgba(0,240,255,0.06); }
}