:root {
  /* 主题颜色 - 更现代的调色板 */
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: rgba(67, 97, 238, 0.1);
  --primary-rgb: 67, 97, 238;

  --secondary-color: #7209b7;
  --secondary-light: rgba(114, 9, 183, 0.1);
  --secondary-dark: #6008a0;
  --secondary-rgb: 114, 9, 183;

  --success-color: #4caf50;
  --success-rgb: 46, 204, 113;

  --danger-color: #f44336;
  --danger-rgb: 230, 57, 70;

  --warning-color: #ff9800;
  --warning-rgb: 249, 199, 79;

  --info-color: #2196f3;
  --info-rgb: 76, 201, 240;

  /* 文本和背景 */
  --text-color: #333;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;

  --bg-color: #f8f9fa;
  --light-bg: #f8f9fa;
  --card-bg: #ffffff;
  --dark-bg: #343a40;

  /* 边框和阴影 */
  --border-color: #e0e0e0;
  --border-radius: 0.75rem;
  --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);

  /* 动画和过渡 */
  --transition-speed: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式 */
body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.08),
    rgba(114, 9, 183, 0.05),
    rgba(255, 255, 255, 1)
  );
  background-attachment: fixed;
  position: relative;
  padding-top: 0px;
  overflow-x: hidden;
  margin: 0;
  min-height: 90vh;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(67, 97, 238, 0.1) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 5%,
      rgba(114, 9, 183, 0.1) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 25% 85%,
      rgba(67, 97, 238, 0.08) 0%,
      transparent 15%
    );
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><circle cx="10" cy="10" r="0.5" fill="rgba(114, 9, 183, 0.1)"/><path d="M10 0 L10 20" stroke="rgba(67, 97, 238, 0.05)" stroke-width="0.2"/><path d="M0 10 L20 10" stroke="rgba(67, 97, 238, 0.05)" stroke-width="0.2"/></svg>');
  opacity: 0.3;
  z-index: -1;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: var(--primary-color);
  transition: color var(--transition-speed) var(--transition-timing);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

/* 卡片样式增强 */
.card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 4px 20px rgba(67, 97, 238, 0.05),
    0 2px 10px rgba(114, 9, 183, 0.03);
  transition: transform var(--transition-speed) var(--transition-timing),
    box-shadow var(--transition-speed) var(--transition-timing);
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(114, 9, 183, 0.4),
    rgba(114, 9, 183, 0.4),
    transparent
  );
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.08),
    0 5px 15px rgba(114, 9, 183, 0.05);
}

.card:hover::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(114, 9, 183, 0.6),
    rgba(114, 9, 183, 0.6),
    transparent
  );
}

.card-header {
  background-color: rgba(245, 247, 250, 0.8);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem;
  font-weight: 600;
}

.card-footer {
  background-color: rgba(245, 247, 250, 0.8);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
}

.card-body {
  padding: 1.5rem;
}

/* 按钮样式增强 */
.btn {
  border-radius: var(--border-radius);
  padding: 0.6rem 1.5rem;
  transition: all var(--transition-speed) var(--transition-timing);
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-transform: capitalize;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s, opacity 0.3s;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}

.btn-primary {
  background-image: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border: none;
}

.btn-primary:hover {
  background-image: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-success {
  background-image: linear-gradient(
    135deg,
    var(--success-color),
    darken(var(--success-color), 10%)
  );
  border: none;
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--success-rgb), 0.3);
}

.btn-danger {
  background-image: linear-gradient(
    135deg,
    var(--danger-color),
    darken(var(--danger-color), 10%)
  );
  border: none;
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--danger-rgb), 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: white;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.2);
}

/* 标签样式增强 */
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-image: linear-gradient(
    to right,
    var(--primary-light),
    rgba(var(--primary-rgb), 0.1)
  );
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all var(--transition-speed) var(--transition-timing);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.tag:hover {
  background-image: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.2);
}

.tag-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--light-bg);
  color: var(--text-color);
  border-radius: 50px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all var(--transition-speed) var(--transition-timing);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tag-pill:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* 表单样式增强 */
.form-control,
.form-select {
  border-radius: var(--border-radius);
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) var(--transition-timing);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s var(--transition-timing) forwards;
}

/* 页面容器边距优化 
.container {
  padding: 2rem 1rem;
}*/

/* 页面章节标题样式 */
.section-title {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 60px;
  background-image: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 3px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-rgb), 0.5);
}

/* 加载动画 */
.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 表格样式 */
.table {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.table th {
  background-color: rgba(var(--primary-rgb), 0.05);
  font-weight: 600;
  padding: 1rem;
  color: var(--primary-dark);
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

.table tr {
  transition: background-color 0.2s;
}

.table tr:hover {
  background-color: rgba(var(--primary-rgb), 0.03);
}

/* 徽章样式 */
.badge {
  padding: 0.4em 0.8em;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 50rem;
}

/* 提示框样式 */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.alert-success {
  background-color: rgba(var(--success-rgb), 0.1);
  color: var(--success-color);
}

.alert-danger {
  background-color: rgba(var(--danger-rgb), 0.1);
  color: var(--danger-color);
}

.alert-warning {
  background-color: rgba(var(--warning-rgb), 0.1);
  color: darken(var(--warning-color), 10%);
}

.alert-info {
  background-color: rgba(var(--info-rgb), 0.1);
  color: darken(var(--info-color), 10%);
}

/* 导航栏 */
.navbar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  ) !important;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1030;
  transition: transform 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar.navbar-visible {
  transform: translateY(0);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  margin: 0 2px;
  position: relative;
  z-index: 1;
}

.navbar-dark .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-dark .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.navbar-dark .nav-item.dropdown.show .nav-link {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: none;
  padding: 0.8rem 0.5rem;
  margin-top: 10px;
  animation: dropdownFadeIn 0.3s ease;
  transform-origin: top center;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.navbar .dropdown-item {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  margin: 2px 0;
  font-size: 0.9rem;
}

.navbar .dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* 管理员徽章样式 */
.navbar .dropdown-menu .badge {
  font-size: 0.8rem;
  padding: 0.35em 0.65em;
  font-weight: 500;
}

/* 搜索框美化 */
.search-box {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.search-box .input-group {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.3rem;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  transition: all var(--transition-speed) var(--transition-timing);
  box-shadow: var(--box-shadow);
}

.search-box .input-group:focus-within {
  border-color: rgba(var(--primary-rgb), 0.2);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
}

.search-box .form-control {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border: none;
  padding-left: 1.25rem;
  height: 42px;
  font-size: 0.95rem;
  background-color: transparent;
}

.search-box .form-control:focus {
  box-shadow: none;
  background-color: transparent;
}

.search-box .form-control::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-box .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background: white;
  color: var(--primary-dark);
  border: none;
  padding: 0.5rem 1.25rem;
  margin-left: 0;
  transition: all var(--transition-speed) var(--transition-timing);
  box-shadow: none;
  font-weight: 600;
}

.search-box .btn:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--light-bg);
}

.search-box .btn i {
  font-size: 1.1rem;
  color: var(--primary-dark);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* 为导航栏搜索按钮特别优化 */
.navbar .search-box .btn {
  background: white;
  color: var(--primary-dark);
}

.navbar .search-box .btn:hover {
  background: var(--light-bg);
}

.navbar .search-box .btn i {
  color: var(--primary-dark);
}

/* 头像样式 */
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.nav-item:hover .avatar-sm {
  transform: scale(1.1);
}

/* 页脚样式 */
.footer {
  padding: 2rem 0;
  background-color: white;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.social-links {
  font-size: 1.2rem;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--text-muted);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 1rem;
  }

  .navbar .nav-link {
    padding: 0.5rem 0.75rem;
  }

  .stats-number {
    font-size: 1.8rem;
  }
}

/* 首页样式 */
.welcome-area {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.95),
    rgba(114, 9, 183, 0.9)
  );
  padding: 4rem 0;
  margin-top: -70px;
  padding-top: 100px;
  overflow: hidden;
  color: white;
  will-change: transform;
  box-shadow: 0 20px 50px rgba(67, 97, 238, 0.15);
  border-radius: 0 0 30% 30% / 0 0 5% 5%;
  margin-bottom: 4rem;
  flex-shrink: 0;
}

.welcome-area::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M10 10L90 10L90 90L10 90Z" stroke="rgba(255,255,255,0.15)" stroke-width="3" fill="none"/><path d="M30 10L30 90" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><path d="M50 10L50 90" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><path d="M70 10L70 90" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><path d="M10 30L90 30" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><path d="M10 50L90 50" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><path d="M10 70L90 70" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
  opacity: 0.4;
  z-index: 0;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.welcome-area::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

.welcome-area .container {
  position: relative;
  z-index: 2;
}

.welcome-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-area .btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) var(--transition-timing);
}

.welcome-area .btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.welcome-area .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) var(--transition-timing);
}

.welcome-area .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.stats-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stats-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.welcome-area .display-5 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-area .hero-image-container {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.welcome-area .stats-item {
  padding: 1rem;
  transition: all var(--transition-speed) var(--transition-timing);
  border-radius: var(--border-radius);
}

.welcome-area .stats-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.welcome-area .jumbotron::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.welcome-area .jumbotron .row {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-light);
}

.feature-title {
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.platform-feature {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-speed) var(--transition-timing);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.05);
}

.platform-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.platform-feature .feature-icon {
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.1),
    rgba(114, 9, 183, 0.1)
  );
  color: var(--primary-color);
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.platform-feature:hover .feature-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  transform: scale(1.1);
}

.tag-lg {
  font-size: 1rem;
  padding: 0.3rem 1rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rounded-4 {
  border-radius: 0.75rem !important;
}

.prompt-card {
  transform: translateY(0);
  transition: transform var(--transition-speed) var(--transition-timing);
}

.prompt-card:hover {
  transform: translateY(-10px);
}

/* 导航栏用户菜单样式 */
#navbarDropdown {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

#navbarDropdown:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#navbarDropdown .fw-medium {
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate__animated {
    animation: none !important;
  }

  .fadeIn {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* 针对导航栏和表单中的搜索按钮 */
[type="submit"] {
  background: white !important;
  color: var(--primary-dark) !important;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

[type="submit"] i,
button[type="submit"] i,
.btn[type="submit"] i,
button[type="submit"] .bi-search {
  color: var(--primary-dark) !important;
  font-size: 1.2rem !important;
}

/* 如果上面的选择器不够具体，使用更加具体的选择器 */
.input-group .btn,
form .btn[type="submit"],
.input-group button[type="submit"] {
  background-color: white !important;
  color: var(--primary-dark) !important;
}

.input-group .btn i,
.input-group .btn .bi,
.input-group .btn .bi-search {
  color: var(--primary-dark) !important;
}

/* 搜索框容器样式也调整一下 */
.input-group {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: all var(--transition-speed) var(--transition-timing);
  z-index: 9999;
  font-size: 1.5rem;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--primary-dark);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.2);
}

.back-to-top i {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

/* 调整后的样式 */
body.back-to-top-initialized .back-to-top {
  /* 确保在页面刷新后初始位置正确 */
  bottom: 30px;
  right: 30px;
}

@media (max-width: 768px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .back-to-top i {
    font-size: 1.3rem;
  }
}

/* 导航栏按钮统一样式 */
.navbar .btn {
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) var(--transition-timing);
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  backdrop-filter: blur(5px);
}

.navbar .btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar .btn-outline-light {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.navbar .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* 主内容区域样式 */
main {
  padding-top: 56px; /* 恢复为56px，为固定导航栏留出空间 */
  min-height: calc(100vh - 56px);
  position: relative;
  overflow-y: auto;
}

/* 首页内容容器特殊样式 */
.home-container {
  /* 移除高度限制和溢出隐藏，允许正常滚动 */
  display: flex;
  flex-direction: column;
}

/* 平板设备适配 */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* 平板设备特定样式 */
  .container {
    max-width: 95%;
  }

  /* 两列布局转为一列 */
  .row .col-lg-8,
  .row .col-lg-4 {
    margin-bottom: 1.5rem;
  }

  /* 平板设备首页容器 */
  .home-container {
    height: auto;
    overflow-y: auto;
  }
}

/* 桌面设备首页没有滚动条 */
@media (min-width: 992px) {
  body.home-page {
    overflow-y: auto;
  }

  .home-container {
    height: auto;
    overflow-y: auto;
    margin-top: 75px;
  }

  /* 特别适配首页的内容区域 */
  .home-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
  }

  /* 确保特性卡片和热门提示部分高度适中 */
  .home-features-section,
  .home-popular-section {
    margin-bottom: 1.5rem;
  }
}

/* 触摸设备优化 */
@media (hover: none) {
  /* 触摸设备特定样式 */
  .btn:active {
    transform: scale(0.98);
  }

  /* 替代hover效果 */
  .card:active {
    transform: scale(0.98);
  }

  /* 改善触摸设备点击体验 */
  input[type="radio"],
  input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
  }
}

/* 提高对话框和表单在移动端的可用性 */
@media (max-width: 767.98px) {
  .modal-content {
    padding: 0.5rem;
  }

  .modal-header,
  .modal-footer {
    padding: 0.75rem;
  }

  .modal-body {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  /* 底部固定操作栏 */
  .fixed-bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 0.75rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
  }

  /* 为固定底栏腾出空间 */
  body.has-fixed-actions {
    padding-bottom: 60px;
  }
}
