:root {
  --bg: #0f1722;
  --bg-2: #0b1220;
  --ink: #e9f0ff;
  --brand: #2f6df6;
  --accent: #82a7ff;
}

/* 全局样式 */
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, Segoe UI, Roboto, Ubuntu, 'Noto Sans', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #0e1624 0%, #0b1220 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/img/cb16159c-ea34-4ccd-9c82-b17e22223a85.png") center/contain no-repeat;
  opacity: 0.05;
  z-index: -1;
}

/* ===================== 顶栏（深蓝固定背景版） ===================== */
.topbar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #0a1b33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: background 0.3s, box-shadow 0.3s;
}

.topbar-wrap.trans,
.topbar-wrap.scrolled {
  background: #0a1b33 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.topbar {
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  height: 68px;
}

/* 品牌区 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.logo-img {
  height: 36px;
  width: auto;
  display: inline-block;
  object-fit: contain;
  background: transparent;
  margin: 0;
  padding: 0;
}

.brand .name {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

/* ===================== 导航 ===================== */
.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  color: #cde1ff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  background: transparent;
  border: 1px solid #ffffff33;
  color: #cfe0ff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button.active {
  border-color: #2f6df6;
  color: #fff;
  background: rgba(47, 109, 246, 0.15);
}

/* ===================== 首页轮播 ===================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 68px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00000060 0%, #00000030 40%, #0b1220 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0 10px;
  text-shadow: 0 0 8px #00000040;
}

.hero p {
  max-width: 800px;
  margin: 20px auto;
  color: #cde1ff;
  font-size: 18px;
}

.cta {
  display: inline-block;
  margin: 18px auto 0;
  background: linear-gradient(135deg, #2f6df6, #0b4dd8);
  color: #fff;
  padding: 10px 1.2em;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  width: fit-content;
  transition: background 0.3s ease;
}

.cta:hover {
  background: linear-gradient(135deg, #3d7bff, #1558e0);
}

/* ===================== 内容区域 ===================== */
.section {
  max-width: 1180px;
  margin: auto;
  padding: 60px 20px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #101a2a;
  border: 1px solid #1c2b45;
  border-radius: 12px;
  box-shadow: 0 8px 18px #0006;
  padding: 20px;
  color: #d9e6ff;
}

.card h3 {
  color: #82a7ff;
  margin-top: 0;
}

/* ===================== 表格 ===================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #0f182a;
  color: #d9e6ff;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #1d2a41;
}

th {
  background: #13213a;
  text-align: left;
}

/* ===================== 页脚 ===================== */
footer {
  padding: 40px 20px;
  text-align: center;
  color: #9bb7ff;
  font-size: 14px;
  border-top: 1px solid #1c2b45;
}
