/* ===== 马兰突击旅官网 - 公共样式 ===== */
/* 全局重置 */
* { 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: rgba(10,10,15,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,240,255,0.12);
  padding: 0 40px; display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
nav .logo { display: flex; align-items: center; gap: 10px; }
nav .logo img { width: 36px; height: 36px; border-radius: 6px; border: 1px solid rgba(0,240,255,0.2); }
nav .logo span {
  font-family: 'Share Tech Mono', monospace; font-size: 18px; font-weight: 700;
  color: #00f0ff; text-shadow: 0 0 16px rgba(0,240,255,0.3); letter-spacing: 2px;
}
nav .links { display: flex; align-items: center; gap: 28px; }
nav .links a {
  color: #5a7d9a; text-decoration: none; font-size: 13px;
  font-weight: 500; letter-spacing: 1px; transition: all 0.3s; position: relative;
}
nav .links a:hover, nav .links a.active { color: #00f0ff; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
nav .links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px;
  background: #00f0ff; transition: width 0.3s; box-shadow: 0 0 6px #00f0ff;
}
nav .links a:hover::after { width: 100%; }
nav .btn-join {
  padding: 8px 20px; border: 1px solid rgba(255,51,102,0.4); color: #ff3366;
  font-size: 12px; letter-spacing: 2px; text-decoration: none; border-radius: 2px;
  transition: all 0.3s;
}
nav .btn-join:hover { background: rgba(255,51,102,0.1); box-shadow: 0 0 20px rgba(255,51,102,0.2); }
nav .lang-btn {
  background: none; border: 1px solid rgba(255,255,255,0.1); color: #5a7d9a;
  padding: 6px 12px; border-radius: 2px; 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(0,240,255,0.3); color: #00f0ff; }

/* 汉堡按钮 */
.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(0,240,255,0.06); padding: 40px;
}
footer .inner { max-width: 1100px; margin: 0 auto; }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 24px; }
footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
footer .brand .shield {
  width: 36px; height: 36px; background: linear-gradient(135deg, #00f0ff, #0077b6);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #0a0a0f; font-weight: 700;
}
footer .brand span { font-size: 16px; font-weight: 700; color: #e8f0fe; letter-spacing: 1px; }
footer p.desc { font-size: 12px; color: #5a7d9a; max-width: 360px; line-height: 1.7; }
footer h4 { font-size: 13px; color: #e8f0fe; letter-spacing: 2px; margin-bottom: 12px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 6px; }
footer ul li a { color: #5a7d9a; text-decoration: none; font-size: 12px; transition: color 0.2s; }
footer ul li a:hover { color: #00f0ff; }
footer .bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #3d5a73; }
footer .bottom a { color: #3d5a73; text-decoration: none; transition: color 0.2s; }
footer .bottom a:hover { color: #5a7d9a; }

/* ===== 返回顶部 ===== */
#backToTop {
  position: fixed; bottom: 28px; right: 28px; width: 40px; height: 40px;
  background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 50; opacity: 0; pointer-events: none; transition: all 0.3s;
  color: #00f0ff; font-size: 16px;
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: rgba(0,240,255,0.2); }

/* ===== 通用区块 ===== */
.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; }
}