/* === 全局基础 === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #0a0d12, #151b22, #1f2833);
  color: #e0e0e0;
  line-height: 1.7;
  padding: 30px;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* === 标题 === */
h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #00eaff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === 按钮 === */
button,
.file-input + label {
  background: linear-gradient(90deg, #00eaff, #00ff88);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
}

button:hover,
.file-input + label:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* === 输入框 === */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  background-color: #1b222c;
  color: #fff;
  border: 1px solid rgba(0, 234, 255, 0.3);
  padding: 12px 14px;
  margin: 10px 0;
  width: 100%;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #00eaff;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

/* === 卡片 === */
.card {
  background: rgba(20, 25, 30, 0.9);
  padding: 30px;
  margin: 20px 0;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  transition: 0.3s;
}
.card:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.25);
}

/* === 链接 === */
a {
  color: #00eaff;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #00ff88;
}

/* === 表单容器 === */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 0 auto;
}

/* === 文件上传区域 === */
.upload-area {
  width: 100%;
  height: 200px;
  border: 2px dashed rgba(0, 234, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(25, 30, 35, 0.8);
  border-radius: 15px;
  transition: all 0.3s;
}
.upload-area:hover {
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}
.upload-text {
  font-size: 1rem;
  color: #ccc;
}

/* === 弹窗 === */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  z-index: 999;
}

.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #11161d, #1e2630);
  border-radius: 16px;
  padding: 40px;
  width: 600px;
  display: none;
  z-index: 1000;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
}

.notification-content p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* === 弹窗按钮 === */
#confirmBtn {
  background: linear-gradient(90deg, #00eaff, #00ff88);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s;
  cursor: pointer;
}
#confirmBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* === 课程列表 === */
#courseList {
  margin-top: 20px;
  background-color: rgba(25, 30, 35, 0.9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}
#courseList label {
  display: flex;
  align-items: center;
  margin: 12px 0;
  color: #ddd;
  transition: color 0.3s ease;
}
#courseList label:hover {
  color: #00eaff;
}
#courseList input[type="checkbox"] {
  margin-right: 15px;
  width: 18px;
  height: 18px;
  accent-color: #00eaff;
}

/* === 页脚 === */
footer {
  margin-top: 50px;
  text-align: center;
  color: #777;
}
footer a {
  color: #00eaff;
}
footer a:hover {
  color: #00ff88;
}

/* === 响应式 === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .form-container {
    width: 90%;
  }
  .notification {
    width: 90%;
    padding: 25px;
  }
  #confirmBtn {
    width: 100%;
  }
}
/* === 汉堡按钮 === */
.menu-btn {
  position: fixed;
  top: 25px;
  left: 25px;
  width: 32px;
  height: 24px;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.menu-btn div {
  height: 3px;
  background-color: #00eaff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 点击展开时的动画 */
.menu-btn.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.open div:nth-child(2) {
  opacity: 0;
}
.menu-btn.open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === 侧边菜单 === */
.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 220px;
  height: 100vh;
  background: linear-gradient(180deg, #0b0f14, #141c23);
  box-shadow: 4px 0 20px rgba(0, 234, 255, 0.15);
  padding: 50px 20px;
  transition: left 0.3s ease;
  z-index: 1000;
  border-right: 1px solid rgba(0, 234, 255, 0.2);
}

.side-menu.open {
  left: 0;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  color: #ccc;
  margin: 18px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.side-menu li:hover {
  color: #00eaff;
}

/* === 菜单遮罩层 === */
.menuoverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 15, 20, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}
.menuoverlay.show {
  opacity: 1;
  visibility: visible;
}

/* === 返回按钮（统一风格）=== */
.back-btn {
  position: fixed;
  top: 25px;
  left: 75px;
  background: linear-gradient(90deg, #00eaff, #00ff88);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  transition: all 0.3s;
  z-index: 1100;
}
.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* === 用户面板容器优化 === */
.dashboardContainer {
  background: rgba(20, 25, 30, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  width: 50%;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.1);
  transition: 0.3s;
}
.dashboardContainer:hover {
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.2);
}

/* === 左侧按钮列 === */
.longbtnContainer {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}
.longbtnContainer button {
  font-size: 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  background: linear-gradient(90deg, #00eaff, #00ff88);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
  transition: 0.3s;
}
.longbtnContainer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.45);
}

/* === 用户信息样式 === */
.user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: url('../static/img/profile.jpg') no-repeat center/cover;
  border: 2px solid #00eaff;
  margin: 0 auto 15px auto;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.2);
}
.user-vip h4 {
  color: #00eaff;
  margin-top: 10px;
}
.user-vip h3, .user-vip p {
  color: #ccc;
}
.back-btn {
  position: absolute;
  top: 25px;
  left: 30px;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.4);
  color: #00eaff;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(0, 234, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
  transform: translateY(-2px);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #00eaff;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* === 课程选择框 === */
#courseList {
  margin-top: 20px;
  background-color: rgba(25, 30, 35, 0.9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

#courseList label {
  display: flex;
  align-items: center;
  margin: 12px 0;
  color: #ddd;
  transition: color 0.3s ease;
}

#courseList label:hover {
  color: #00eaff;
}



/* === 地图显示样式 === */
#map {
  width: 100%;
  height: 400px;
  border-radius: 15px;
}