/* ===== 公共样式 ===== */
:root {
    --space-black: #05070a;
    --nebula-purple: #4d5bf9;
    --pulse-cyan: #00f2ff;
    --glass-white: rgba(255, 255, 255, 0.1);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--space-black);
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 导航栏样式 */
.interstellar-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(5,7,10,0.8), transparent);
    z-index: 100;
    box-sizing: border-box;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 16px rgba(124, 58, 237, 0.3));
}

/* 霓虹效果样式 - 深层科技感 */
.neon-logo {
    font-family: 'SimHei', 'Microsoft YaHei', sans-serif;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #00d4ff 0%, #0099ff 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
    animation: neon-glow-smooth 2s ease-in-out infinite;
}

.neon-span {
    background: linear-gradient(90deg, #0099ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.8)) drop-shadow(0 0 24px rgba(0, 153, 255, 0.3));
    animation: neon-glow-smooth-purple 2s ease-in-out infinite;
}

@keyframes neon-glow-smooth {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 1)) drop-shadow(0 0 30px rgba(124, 58, 237, 0.6));
    }
}

@keyframes neon-glow-smooth-purple {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.8)) drop-shadow(0 0 24px rgba(0, 153, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(124, 58, 237, 1)) drop-shadow(0 0 30px rgba(0, 153, 255, 0.5));
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: attr(data-en);
    position: absolute;
    bottom: -15px;
    left: 0;
    font-size: 0.6rem;
    opacity: 0.5;
}

/* 按钮通用样式 */
.btn-warp {
    background: transparent;
    border: 2px solid var(--pulse-cyan);
    color: var(--pulse-cyan);
    padding: 15px 40px;
    cursor: pointer;
    border-radius: 50px;
    font-weight: bold;
}

.close-contrast {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    margin-top: 30px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s;
}

.close-contrast:hover {
    border-color: var(--pulse-cyan);
    color: var(--pulse-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.sidebar-hud {
    position: fixed;
    left: 20px;
    bottom: 20px;
    font-size: 0.7rem;
    color: var(--pulse-cyan);
    opacity: 0.6;
}

/* 语言切换器容器 */
.lang-switcher {
    display: flex;
    gap: 10px;
    background: rgba(0, 242, 255, 0.05);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* 按钮基础样式 */
.lang-switcher button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* 悬停与激活状态 */
.lang-switcher button:hover, 
.lang-switcher button.active {
    color: var(--pulse-cyan);
    background: rgba(0, 242, 255, 0.15);
    text-shadow: 0 0 8px var(--pulse-cyan);
    transform: translateY(-2px);
}

/* 扫光动画效果 */
.lang-switcher button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s;
    opacity: 0;
}

.lang-switcher button:hover::after {
    left: 120%;
    opacity: 1;
}

/* 下拉菜单基础容器 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none; /* 默认隐藏 */
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(5, 7, 10, 0.95); /* 深色半透明 */
    border: 1px solid var(--pulse-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    min-width: 220px;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

/* 鼠标悬停显示 */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content li a {
    padding: 12px 20px;
    display: block;
    color: white;
    font-size: 0.9rem;
    transition: 0.3s;
}

.dropdown-content li a:hover {
    background: rgba(0, 242, 255, 0.15);
    color: var(--pulse-cyan);
    padding-left: 25px; /* 简单的交互动效 */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 品牌文字特效 (Brand Typography Effect) */
.brand-name {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 5px;
  text-transform: uppercase;
  background: linear-gradient(to right, #00f2ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
}

.j-glow {
  animation: pulse-cyan 2s infinite;
}

@keyframes pulse-cyan {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .interstellar-nav {
    padding: 15px 20px;
  }

  .logo {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .lang-switcher {
    gap: 5px;
    padding: 3px;
  }

  .lang-switcher button {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .sidebar-hud {
    left: 10px;
    bottom: 10px;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .interstellar-nav {
    padding: 10px 15px;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-links {
    gap: 15px;
  }

  .btn-warp {
    padding: 12px 30px;
    font-size: 0.9rem;
  }

  .lang-switcher button {
    padding: 5px 10px;
    font-size: 0.65rem;
  }
}

/* ===== 科技公司官网风格覆盖层 ===== */
:root {
  --tech-bg: #071122;
  --tech-bg-soft: #0b1d34;
  --tech-surface: rgba(8, 20, 40, 0.72);
  --tech-border: rgba(99, 176, 255, 0.28);
  --tech-primary: #35b5ff;
  --tech-accent: #32d2b3;
  --tech-text: #eaf3ff;
  --tech-muted: #98adcb;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 560px at 80% -10%, rgba(53, 181, 255, 0.2), transparent 65%),
    radial-gradient(900px 420px at -10% 20%, rgba(50, 210, 179, 0.16), transparent 70%),
    linear-gradient(180deg, var(--tech-bg), #050c19 58%, #040a16);
  font-family: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--tech-text);
}

#starfield {
  opacity: 0.45;
}

.interstellar-nav {
  background: rgba(5, 14, 29, 0.82);
  border-bottom: 1px solid rgba(109, 179, 255, 0.22);
  backdrop-filter: blur(10px);
  padding: 16px 34px;
}

.logo,
.neon-logo {
  font-family: "Space Grotesk", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 1px;
  font-size: 1.35rem;
  text-transform: none;
  background: linear-gradient(90deg, #8dd4ff 0%, #35b5ff 62%, #32d2b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: none;
  filter: drop-shadow(0 0 10px rgba(53, 181, 255, 0.28));
}

.neon-span {
  background: linear-gradient(90deg, #35b5ff 0%, #32d2b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: none;
}

.nav-links {
  gap: 26px;
}

.nav-links a {
  color: var(--tech-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: #8fd6ff;
}

.dropdown-content {
  background: rgba(6, 15, 30, 0.96);
  border: 1px solid var(--tech-border);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0, 8, 20, 0.42);
  min-width: 240px;
}

.dropdown-content li a {
  color: var(--tech-text);
}

.dropdown-content li a:hover {
  background: rgba(53, 181, 255, 0.14);
  color: #b8e6ff;
}

.lang-switcher {
  border-radius: 999px;
  border: 1px solid var(--tech-border);
  background: rgba(17, 31, 53, 0.65);
}

.lang-switcher button {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  color: var(--tech-muted);
}

.lang-switcher button:hover,
.lang-switcher button.active {
  color: #ecf7ff;
  background: linear-gradient(90deg, rgba(53, 181, 255, 0.8), rgba(50, 210, 179, 0.8));
  text-shadow: none;
  transform: translateY(0);
}

.btn-warp,
.close-contrast {
  border-radius: 12px;
  border: 1px solid rgba(84, 170, 255, 0.48);
  color: #eaf6ff;
  background: linear-gradient(90deg, rgba(53, 181, 255, 0.18), rgba(50, 210, 179, 0.18));
  transition: all 0.28s ease;
}

.btn-warp:hover,
.close-contrast:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(32, 108, 168, 0.3);
  border-color: rgba(146, 210, 255, 0.8);
}

.hud-panel {
  background: var(--tech-surface);
  border: 1px solid var(--tech-border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(3, 10, 24, 0.4);
}

.hud-panel::before,
.hud-panel::after {
  display: none;
}

.sidebar-hud {
  color: #93b6de;
  opacity: 0.85;
  background: rgba(8, 20, 40, 0.58);
  border: 1px solid rgba(115, 179, 255, 0.24);
  border-radius: 12px;
  padding: 8px 10px;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(115, 179, 255, 0.25);
  background: rgba(7, 18, 36, 0.76);
  color: #a9c4e4;
  font-size: 12px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.footer-separator {
  color: rgba(150, 188, 225, 0.55);
}

/* 统一业务页（工业/金融/语言/校园）卡片观感 */
body[data-page="industrial"] *,
body[data-page="finance"] *,
body[data-page="language"] *,
body[data-page="school"] * {
  image-rendering: auto;
}

body[data-page="industrial"] .pixel-box,
body[data-page="finance"] .pixel-box,
body[data-page="language"] .pixel-box,
body[data-page="school"] .pixel-box {
  border: 1px solid var(--tech-border);
  border-radius: 16px;
  background: rgba(8, 20, 40, 0.74);
  box-shadow: 0 16px 34px rgba(4, 10, 24, 0.36);
}

body[data-page="industrial"] .box-title,
body[data-page="finance"] .box-title,
body[data-page="language"] .box-title,
body[data-page="school"] .box-title {
  background: rgba(5, 13, 27, 0.94);
  border: 1px solid var(--tech-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .interstellar-nav {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 18px;
    padding-bottom: 6px;
  }

  .nav-links::-webkit-scrollbar {
    height: 4px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(120, 182, 255, 0.36);
    border-radius: 99px;
  }
}

@media (max-width: 768px) {
  .sidebar-hud {
    display: none;
  }

  .lang-switcher {
    margin-left: auto;
  }

  .site-footer {
    bottom: 8px;
    font-size: 11px;
    padding: 7px 10px;
    gap: 6px;
    overflow-x: auto;
  }
}
