/* 毛玻璃背景效果 */
body {
  background: url('https://images.unsplash.com/photo-1545232979-8bfc3892131b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: -1;
}

/* 新增使用指南弹窗样式 */
.guide-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.guide-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 弹窗头部 - 固定在顶部 */
.guide-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  position: relative;
  z-index: 1;
}

.guide-header {
  font-size: 22px;
  font-weight: bold;
  color: #5e72e4;
  margin: 0;
}

.guide-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.guide-close:hover,
.guide-close:focus {
  color: black;
  text-decoration: none;
}

/* 弹窗主体 - 可滚动 */
.guide-modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* 弹窗底部 - 固定在底部 */
.guide-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background-color: white;
  text-align: center;
}

.guide-btn {
  display: inline-block;
  padding: 10px 30px;
  background-color: #5e72e4;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.guide-btn:hover {
  background-color: #4a5acf;
}

.guide-title {
  font-weight: bold;
  margin: 15px 0 10px;
  color: #5e72e4;
}

.guide-steps {
  padding-left: 20px;
  margin-bottom: 20px;
}

.guide-steps li {
  margin-bottom: 8px;
}

.guide-notes {
  margin-top: 20px;
}

.guide-notes-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #5e72e4;
}

.guide-notes ul {
  padding-left: 20px;
}

.guide-notes li {
  margin-bottom: 8px;
}

/* 使用指南按钮样式 */
.guide-button {
  display: block;
  width: 200px;
  margin: 20px auto;
  padding: 10px;
  background-color: #5e72e4;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s;
}

.guide-button:hover {
  background-color: #4a5acf;
  transform: translateY(-2px);
}

/* 新增顶部导航栏样式 */
.top-navbar {
  background-color: #5e72e4;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  color: white;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
}

.dropdown-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1001;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown.show .dropdown-content {
  display: block;
}

/* 调整原有内容位置 */
.header-global {
  display: none; /* 隐藏原头部 */
}


/* 主容器调整 */
main.profile-page {
  padding-top: 20px;
}

/* Logo位置调整 */
.card-profile-image.mx-auto {
  margin-top: -100px !important;
  position: relative;
  z-index: 1;
}

/* 卡片样式调整 */
.card.card-profile.shadow.mt--300 {
  margin-top: 20px !important;
  padding-top: 100px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 移除原背景 */
.section-profile-cover {
  display: none;
}

/* 搜索框样式调整 */
.search-box {
  margin-top: 10px;
}

/* 二维码弹窗样式 */
.qrcode-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.qrcode-modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.qrcode-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.qrcode-modal-close:hover {
  color: black;
}

.qrcode-image {
  width: 100%;
  max-width: 200px;
  margin: 10px auto;
  display: block;
}

.qrcode-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #5e72e4;
}

/* 弹窗播放器样式 */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  position: relative;
  background-color: #000;
  width: 90%;
  max-width: 1000px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
}

.video-modal-header {
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
 
}

.video-player-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
 
}

.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-controls {
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  text-align: center;
}

.video-controls button {
  margin: 0 10px;
  padding: 8px 15px;
  font-size: 14px;
  min-width: 80px;
}

@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
  }
  
  .video-controls button {
    margin: 0 5px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    width: 98%;
  }
  
  .video-player-container {
    padding-bottom: 75%;
  }
  
  .video-controls {
    padding: 8px 5px;
  }
  
  .video-controls button {
    padding: 5px 10px;
    font-size: 11px;
    min-width: 60px;
  }
}
