:root {
  --primary-color: #4e73df;
  --hot-color: #f40;
  --hot-color2: rgb(250, 75, 11);
  --secondary-color: #2e59d9;
  --text-color: #2b2d42;
  --bg-color: #f8f9fc;
  --card-bg: #ffffff;
  --sidebar-bg: #2b2d42;
  --sidebar-text: #f8f9fa;
  --footer-bg: #5a5c69;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  display: flex;
  flex: 1;
}

/* 侧边栏样式 - 机场VPN风格 */
.sidebar {
  width: 280px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 30px 20px;
  transition: var(--transition);
  position: relative;
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo i {
  color: #4e9af1;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 15px;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.6s forwards;
}

/* 侧边栏菜单项动画延迟 */
.sidebar-menu li:nth-child(1) {
  animation-delay: 0.4s;
}

.sidebar-menu li:nth-child(2) {
  animation-delay: 0.5s;
}

.sidebar-menu li:nth-child(3) {
  animation-delay: 0.6s;
}

.sidebar-menu li:nth-child(4) {
  animation-delay: 0.7s;
}

.sidebar-menu li:nth-child(5) {
  animation-delay: 0.8s;
}

.sidebar-menu a {
  color: var(--sidebar-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar-menu i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* 主内容区 */
.main-content {
  flex: 1;
  padding: 40px;
}

.page-header {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.3s;
}

.page-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* 图文卡片 - 大屏幕每行2列 */
.cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
  transition: var(--transition);
}

/* 卡片动画延迟 */
.card:nth-child(1) {
  animation-delay: 0.5s;
}

.card:nth-child(2) {
  animation-delay: 0.7s;
}

.card:nth-child(3) {
  animation-delay: 0.9s;
}

.card:nth-child(4) {
  animation-delay: 1.1s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.card-text {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.card-btn:hover {
  background: var(--secondary-color);

  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46, 89, 217, 0.3);
}

/* 底部二维码区域 - 柔和的背景色 */
.footer {
  /* background: var(--footer-bg); */
  color: white;
  padding: 200px 0;
  text-align: center;
  background: url(./nd.jpg) no-repeat;
  background-size: cover;
  background-position: 100% 13%;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-info {
  text-align: left;
  max-width: 400px;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.footer-text {
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #d1d3e2;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.qrcode {
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.qrcode:hover {
  transform: scale(1.05);
}

.qrcode img {
  width: 120px;
  height: 120px;
  display: block;
}

.qrcode-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* 图片放大样式 */
.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.9);
}

/* 动画定义 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 20px;
  }

  .sidebar-header {
    justify-content: center;
    text-align: center;
  }

  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sidebar-menu li {
    margin-bottom: 0;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .sidebar-menu a {
    padding: 8px 12px;
  }

  .main-content {
    padding: 30px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-info {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.8rem;
  }

  .card {
    margin-bottom: 20px;
  }

  .card-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-header {
    margin-bottom: 30px;
  }

  .card-img {
    height: 200px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* 顶部导航栏样式 */
:root {
  --primary-color: #4e73df;
  --secondary-color: #2e59d9;
  --text-color: #2b2d42;
  --bg-color: #f8f9fc;
  --card-bg: #ffffff;
  --navbar-bg: #2b2d42;
  --navbar-text: #f8f9fa;
  --dropdown-bg: #3a3c4e;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 70px;
  /* 为固定导航栏留出空间 */
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--navbar-bg);
  color: var(--navbar-text);
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.navbar-logo i {
  color: #4e9af1;
  font-size: 1.8rem;
}

/* 导航菜单 */
.navbar-menu {
  display: flex;
  list-style: none;
  height: 100%;
}

.navbar-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-link {
  color: var(--navbar-text);
  text-decoration: none;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.navbar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-link i {
  font-size: 1.1rem;
}

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dropdown-bg);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.navbar-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-link {
  color: var(--navbar-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.dropdown-link:hover {
  color: #4e9af1;
  transform: translateX(5px);
}

.dropdown-link i {
  width: 20px;
  text-align: center;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 主内容区 */
.main-content {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  /* padding-top: 110px; */
}

/* 响应式设计 */
@media (max-width: 992px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--navbar-bg);
    flex-direction: column;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-menu.active {
    max-height: 500px;
  }

  .navbar-item {
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-link {
    padding: 15px 20px;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .navbar-item:hover .dropdown {
    max-height: 300px;
  }

  .dropdown-item {
    padding-left: 40px;
  }

  .menu-toggle {
    display: block;
  }
}
