/* ================= 全局样式与变量 ================= */
:root {
  --bg-main: #0b0c10;
  --bg-card: #1f2833;
  --primary: #e50914; /* 影院经典红 */
  --accent: #66fcf1;  /* 科技霓虹蓝 */
  --text-main: #ffffff;
  --text-muted: #c5c6c7;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================= 统一导航栏 ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: relative;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  background: linear-gradient(45deg, var(--primary), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  transition: color 0.3s;
  font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  font-weight: bold;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-download-sm {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-download-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* 移动端汉堡菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* ================= 通用 Hero & 通用布局 ================= */
.main-content {
  margin-top: 75px;
  min-height: calc(100vh - 250px);
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ================= 统一页脚 ================= */
.footer {
  background: #050608;
  padding: 3rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 3rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================= 移动端自适应 (Responsive Rules) ================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    display: flex;
  }

  .main-content {
    margin-top: 65px;
    padding: 1.5rem 1rem;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
  }

  .footer {
    padding: 2rem 1rem 1rem;
  }
}
