/* ===================== 通用基础样式 ===================== */
/* 全局超链接样式 */
a {
  text-decoration: none;
  color: inherit;
}

/* 全局重置 & 基础配置 */
.reset-global {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
}

/* 自定义滚动条（通用） */
.custom-scrollbar::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(18, 18, 18, 0.5);
  border-radius: 5px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #F97316, #EA580C);
  border-radius: 5px;
  border: 2px solid rgba(18, 18, 18, 0.3);
  transition: all 0.3s ease;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #EA580C, #9A3412);
  transform: scale(1.05);
}

/* 粒子背景（通用） */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top, rgba(30, 58, 138, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse at bottom, rgba(249, 115, 22, 0.2), transparent 70%),
    #0A0A0A url('./bg-pattern.png') repeat;
  z-index: -1;
  overflow: hidden;
}

/* 粒子元素（通用） */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(249, 115, 22, 0.8);
  border-radius: 50%;
  animation: float 8s infinite linear;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10px) rotate(360deg); opacity: 0; }
}

/* 基础body样式（通用） */
.body-base {
  color: #f8fafc;
  min-height: 100vh;
  padding-bottom: 0;
  overflow-x: hidden;
}

/* ===================== 通用组件样式 ===================== */

/* 导航栏容器（通用） */
.navbar-common {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 5%;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.85), rgba(18, 18, 18, 0.85));
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(249, 115, 22, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(249, 115, 22, 0.1);
}

/* 导航链接列表（通用） */
.nav-links-common {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0 auto;
}

/* 导航链接（通用） */
.nav-link-common {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.nav-link-common::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #F97316, #FBBF24);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}
.nav-link-common:hover {
  color: #FBBF24;
}
.nav-link-common:hover::after {
  width: 100%;
}

/* 按钮基础样式（通用） */
.btn-common {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 浅色按钮（登录类） */
.btn-light {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #F97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

/* 深色按钮（注册/主操作类） */
.btn-primary {
  background: linear-gradient(135deg, #F97316, #FB923C);
  color: #fff;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

/* 按钮hover通用效果 */
.btn-common:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}

/* 水晶按钮（核心操作类） */
.btn-crystal {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  color: #fff;
  box-shadow: 
    0 8px 20px rgba(30, 58, 138, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 15px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 水晶按钮-蓝色系 */
.btn-crystal-blue {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #1E3A8A 100%);
}

/* 水晶按钮-橙色系 */
.btn-crystal-orange {
  background: linear-gradient(135deg, #F97316 0%, #FB923C 50%, #F97316 100%);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 15px rgba(249, 115, 22, 0.4);
}

/* 水晶按钮通用动效 */
.btn-crystal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}
.btn-crystal::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-crystal-blue::after {
  background: linear-gradient(135deg, #F97316, #FBBF24, #F97316);
}
.btn-crystal-orange::after {
  background: linear-gradient(135deg, #1E3A8A, #3B82F6, #1E3A8A);
}
.btn-crystal:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(30, 58, 138, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 25px rgba(59, 130, 246, 0.6);
}
.btn-crystal:hover::before {
  left: 100%;
}
.btn-crystal:hover::after {
  opacity: 1;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% { opacity: 0.7; filter: blur(5px); }
  100% { opacity: 1; filter: blur(8px); }
}

/* 卡片容器（通用） */
.card-common {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.6), rgba(30, 58, 138, 0.2));
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(30, 58, 138, 0.1),
    0 0 15px rgba(249, 115, 22, 0.1);
  padding: 2.2rem 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 卡片标题（通用） */
.card-title-common {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.card-title-icon {
  color: #F97316;
  font-size: 1.8rem;
  text-shadow: 0 0 15px rgba(249, 115, 22, 0.8);
}

/* 自适应网格布局（通用） */
.grid-adaptive {
  width: 100%;
  margin: 2rem 0 4rem;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  background: linear-gradient(180deg, transparent, rgba(30, 58, 138, 0.1) 50%, transparent);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* 社交图标（通用） */
.social-icon-common {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
/* QQ图标 */
.social-icon-qq {
  color: #12B7F5;
}
/* 微信图标 */
.social-icon-wechat {
  color: #07C160;
}
/* 社交图标hover效果 */
.social-icon-common:hover {
  transform: translateY(-5px) rotate(10deg);
  background: linear-gradient(135deg, #F97316, #FBBF24);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.8);
  border-color: #F97316;
  color: #fff;
}

/* 页脚（通用） */
.footer-common {
  background: #0A0A0A;
  border-top: 2px solid rgba(249, 115, 22, 0.5);
  padding: 2.4rem 0 1.8rem;
  margin-top: 4rem;
  width: 100%;
  position: relative;
  z-index: 10;
}
.footer-common::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #F97316, transparent);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}
.copyright-common {
  text-align: center;
  color: #94a3b8;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 5%;
  display: block;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===================== 用户中心布局样式 ===================== */

/* 主布局容器（左右结构） */
.user-layout-container {
  display: flex;
  gap: 2rem;
  padding: 2rem 5%;
  min-height: 60vh;
}

/* 左侧功能菜单栏 */
.user-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-header {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(18, 18, 18, 0.8));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.sidebar-header h3 {
  color: #FBBF24;
  margin: 0;
  font-size: 1.3rem;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

.sidebar-menu {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.8), rgba(30, 58, 138, 0.6));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 15px;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.menu-item {
  margin: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: rgba(249, 115, 22, 0.1);
  transform: translateX(5px);
}

.menu-item.active {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.3), transparent);
  border-left: 3px solid #F97316;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.menu-item.active .menu-link {
  color: #FBBF24;
}

.menu-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.menu-link:hover {
  color: #FBBF24;
}

/* 右侧功能编辑查看区 */
.user-content {
  flex: 1;
  min-width: auto;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .user-layout-container {
    flex-direction: column;
    padding: 1.5rem 3%;
  }
  
  .user-sidebar {
    width: 100%;
  }
  
  .sidebar-menu {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    scrollbar-width: thin;
  }
  
  .menu-item {
    flex-shrink: 0;
    margin: 0;
    border-radius: 8px;
    min-width: 120px;
  }
  
  .menu-item.active {
    border-left: none;
    border-bottom: 3px solid #F97316;
  }
  
  .menu-link {
    justify-content: center;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 576px) {
  .sidebar-menu {
    gap: 0.5rem;
    padding: 0.8rem;
  }
  
  .menu-item {
    min-width: 100px;
  }
  
  .menu-link {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
  }
  
  .menu-icon {
    font-size: 1rem;
  }
  
  .menu-link span {
    font-size: 0.9rem;
  }
}

/* ===================== 通用文本样式 ===================== */
/* 渐变标题 */
.text-gradient-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.8rem;
  text-shadow: 
    0 0 15px rgba(249, 115, 22, 0.9),
    0 3px 6px rgba(0, 0, 0, 0.8);
}
.text-gradient-title span {
  background: linear-gradient(135deg, #F97316, #FBBF24, #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 3s infinite alternate;
}
@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.7)); }
  100% { filter: drop-shadow(0 0 20px rgba(249, 115, 22, 1)); }
}

/* 副标题 */
.text-subtitle {
  font-size: 1.5rem;
  color: #FBBF24;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

/* 描述文本 */
.text-desc {
  font-size: 1.2rem;
  color: #e2e8f0;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 3rem;
  background: rgba(18, 18, 18, 0.6);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #F97316;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 联系方式文本项 */
.contact-text-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.contact-text-qq i {
  color: #12B7F5;
  font-size: 1.2rem;
}
.contact-text-wechat i {
  color: #07C160;
  font-size: 1.2rem;
}

/* ===================== 用户中心特定样式 ===================== */

/* 用户中心页面容器 */
.user-center-page {
  padding: 2rem 5%;
  min-height: calc(100vh - 120px);
}

/* 页面标题 */
.page-title {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #F97316, #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(249, 115, 22, 0.8);
}

/* 分隔线 */
.divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F97316, transparent);
  margin: 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

/* 用户容器 */
.user-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 登录提示 */
.login-prompt {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

/* 认证按钮容器 */
.auth-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

/* 导航栏认证按钮容器 */
.auth-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 导航栏认证按钮容器（移动端隐藏） */
.auth-btns-mobile-hide {
  display: flex;
}

/* 用户仪表盘 */
.user-dashboard {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* 欢迎区域 */
.welcome-section {
  margin-bottom: 2rem;
}

/* 卡片按钮 */
.card-common .btn-common {
  margin-top: 2rem;
  align-self: flex-start;
}

/* ===================== 响应式通用类 ===================== */
.hamburger-common {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
  position: absolute;
  right: 5%;
}

/* 中等屏幕（平板） */
@media (max-width: 992px) {
  .nav-links-md-gap {
    gap: 2rem;
  }
  .text-gradient-title-md {
    font-size: 3.5rem;
  }
}

/* 小屏幕（手机） */
@media (max-width: 768px) {
  .nav-links-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.95), rgba(18, 18, 18, 0.95));
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 6rem 2rem;
    transition: right 0.4s ease;
    z-index: 999;
    border-left: 2px solid rgba(249, 115, 22, 0.5);
    text-align: center;
  }
  .nav-links-mobile.active {
    right: 0;
  }
  .hamburger-common {
    display: block;
  }
  .auth-btns-mobile-hide {
    display: none;
  }
  .text-gradient-title-sm {
    font-size: 2.5rem;
  }
  .social-icon-sm {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

/* 超小屏幕（小手机） */
@media (max-width: 576px) {
  .grid-adaptive-xs {
    gap: 1.5rem;
  }
  .card-common-xs {
    padding: 1.5rem 1.2rem;
  }
  .card-title-common-xs {
    font-size: 1.5rem;
  }
  .social-icon-xs {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}

/* ===================== 表单样式 ===================== */

/* 表单组容器 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #FBBF24;
  font-weight: 500;
}

/* 表单控件样式 */
.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #F97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
  background: rgba(18, 18, 18, 0.8);
}

.form-control::placeholder {
  color: #94a3b8;
}

/* 必填字段标记 */
.required {
  color: #ef4444;
  margin-left: 0.3rem;
}

/* 表单操作按钮区域 */
.form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}