/* Modern styling for XLGTOS - Enhanced Tech Design */

:root {
  /* 主色调 - 深蓝紫色系 */
  --primary-color: #4361ee;
  --primary-dark: #3a56d9;
  --primary-light: #5a72f0;
  
  /* 辅助色调 */
  --secondary-color: #3f37c9;
  --secondary-dark: #372fb8;
  --secondary-light: #544bd4;
  
  /* 强调色 */
  --accent-color: #4cc9f0;
  --accent-dark: #3ab8dd;
  --accent-light: #60d0f2;
  
  /* 科技感渐变 */
  --tech-gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
  --tech-gradient-2: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
  --tech-gradient-3: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  
  /* 灰色系 */
  --light-color: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* 状态色 */
  --success-color: #4ade80;
  --success-dark: #22c55e;
  --warning-color: #facc15;
  --warning-dark: #eab308;
  --danger-color: #f87171;
  --danger-dark: #ef4444;
  
  /* 渐变背景 */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-light));
  
  /* 图标背景渐变 - 与主色调协调 */
  --icon-gradient-1: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --icon-gradient-2: linear-gradient(135deg, var(--accent-color), var(--primary-light));
  --icon-gradient-3: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

/* 移除不必要的聚焦效果 */
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus, .nav-link:focus {
  outline: none;
  box-shadow: none;
}

/* HTML 和 Body 基础样式 */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: var(--light-color);
  color: var(--gray-900);
  font-family: 'HarmonyOS Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* 优化字体显示策略 */
  font-display: swap;
}

/* 字体大小响应式调整 */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* 导航栏样式 */
.navbar {
  box-shadow: 0 4px 20px rgba(67, 97, 238, 0.15);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(67, 97, 238, 0.1);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1000;
}

.navbar-nav {
  margin-left: calc((100vw - 1200px) / 2 - 1.5rem) !important; /* 与右侧认证区域对称 */
}

.navbar-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0 !important;
  margin-right: calc((100vw - 1200px) / 2 - 1.5rem) !important; /* 根据容器宽度计算对称位置 */
}

/* 导航链接样式 */
.nav-link {
  color: var(--gray-700) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  position: relative;
  min-width: 100px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 1;
  transition: all 0.3s ease;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* 下载按钮样式 */
.btn-download {
  transition: background-color 0.3s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn-download .download-text,
.btn-download .download-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-download:hover .download-text,
.btn-download:hover .download-icon {
  transform: translateY(-2px);
}

.btn-download:active {
  background-color: #e0e0e0 !important;
  transform: scale(0.95);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.15);
}

.btn-download::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.btn-download:active::after {
  width: 300px;
  height: 300px;
}

.btn-download.loading {
  background-color: #f8f9fa !important;
  cursor: not-allowed;
}

.btn-download.success {
  background-color: #e8f5e8 !important;
}

/* 下载信息区域 */
.download-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.download-info:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.download-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.download-info span:hover {
  color: white;
}

/* 下载信息响应式适配 */
@media (max-width: 767.98px) {
  .download-section {
    align-items: center;
    width: 100%;
  }
  
  .download-info {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .download-info span {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .download-info {
    gap: 0.75rem;
  }
  
  .download-info span {
    font-size: 0.85rem;
  }
}

.container {
  max-width: 1200px;
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.footer {
  background-color: white;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.main-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 20px;
  position: relative;
}

.form-control {
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
  outline: none;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 核心特性区域动画 */
.features-section {
  position: relative;
  padding: 5rem 0;
}

.feature-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 0 1rem;
}

.feature-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 特性卡片样式 */
.feature-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 特性图标动画 */
.feature-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 80px !important;
  height: 80px !important;
  font-size: 2.5rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  margin: 0 auto 1rem auto !important;
}

.feature-icon i {
  display: block !important;
  line-height: 1 !important;
  text-align: center;
  margin: 0 auto;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 特性标题动画 */
.feature-title {
  transition: color 0.3s ease;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card:hover .feature-title {
  color: var(--primary-color);
}

/* 特性描述动画 */
.feature-description {
  transition: color 0.3s ease;
  line-height: 1.6;
  font-size: 0.95rem;
}

.feature-card:hover .feature-description {
  color: var(--gray-700);
}

/* 特性项动画延迟 */
.feature-item:nth-child(2) {
  transition-delay: 0.2s;
}

.feature-item:nth-child(3) {
  transition-delay: 0.4s;
}

.feature-item:nth-child(4) {
  transition-delay: 0.6s;
}

/* 特性头部样式 */
.features-header {
  margin-bottom: 3rem;
}

.features-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.features-header .w-25 {
  width: 60px !important;
  height: 4px;
  border-radius: 2px;
}

/* 功能亮点区域响应式设计 */
@media (max-width: 767.98px) {
  /* 功能亮点区域 */
  .features-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .features-header h2 {
    font-size: 2rem !important;
  }

  /* 特性卡片 */
  .feature-card {
    padding: 2rem 1.5rem !important;
    margin-bottom: 1.5rem;
  }

  .feature-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.75rem !important;
  }

  .feature-title {
    font-size: 1.25rem !important;
  }

  .feature-description {
    font-size: 0.9rem !important;
  }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* 功能亮点区域 */
  .features-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* 特性卡片 */
  .feature-card {
    padding: 2.5rem 1.5rem !important;
  }

  .feature-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 2rem !important;
  }
}

/* 主视觉区域动态背景动画 */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* 主视觉区域响应式设计 - 超小屏幕(手机) */
@media (max-width: 480px) {
  /* 主视觉区域样式 */
  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-radius: 12px;
    margin: 0.5rem;
  }

  /* 主视觉区域内容 */
  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
  }

  .hero-description {
    font-size: 0.9rem !important;
    line-height: 1.6;
  }

  /* 主视觉区域图片 */
  .hero-image {
    order: 1;
    margin-bottom: 1.5rem;
  }

  .hero-image img {
    width: 120px !important;
    height: 120px !important;
  }

  /* 下载按钮 */
  .btn-download {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    font-size: 1rem !important;
    padding: 0.75rem 2rem !important;
  }
}

/* 主视觉区域响应式设计 - 小屏幕(手机) */
@media (min-width: 481px) and (max-width: 767.98px) {
  /* 主视觉区域样式 */
  .hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-radius: 12px;
    margin: 0.5rem;
  }

  /* 主视觉区域内容 */
  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.25rem !important;
  }

  .hero-description {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  /* 主视觉区域图片 */
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }

  .hero-image img {
    width: 150px !important;
    height: 150px !important;
  }

  /* 下载按钮 */
  .btn-download {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* 主视觉区域 */
  .hero-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 2.75rem !important;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.35rem !important;
  }

  .hero-description {
    font-size: 1.05rem !important;
    line-height: 1.6;
  }

  /* 主视觉区域图片 */
  .hero-image img {
    width: 250px !important;
    height: 250px !important;
  }
}

/* 中屏幕优化 */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* 主视觉区域 */
  .hero-title {
    font-size: 3rem !important;
  }

  .hero-subtitle {
    font-size: 1.45rem !important;
  }

  .hero-description {
    font-size: 1.1rem !important;
  }
}

/* 移动端导航优化 */
@media (max-width: 767.98px) {
  /* 导航栏样式 */
  .navbar {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* 汉堡菜单按钮样式 */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    order: 3;
    transition: transform 0.3s ease;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-toggler[aria-expanded="true"] {
    transform: rotate(90deg);
  }

  .navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(67, 97, 238, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: background-image 0.3s ease;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(67, 97, 238, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e");
  }

  /* 导航栏折叠容器 */
  .navbar-collapse {
    background-color: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    border-radius: 0 0 12px 12px;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .navbar-collapse.show {
    max-height: 600px;
    opacity: 1;
  }

  /* 导航链接样式 */
  .navbar-nav {
    margin: 0 !important;
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    padding: 0.875rem 1.5rem;
    min-width: auto;
    text-align: left;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    background-color: var(--gray-100);
    border-left-color: var(--primary-color);
    padding-left: 2rem;
  }

  .nav-link.active {
    background-color: var(--gray-100);
    border-left-color: var(--primary-color);
    padding-left: 2rem;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    display: none;
  }

  /* 用户认证区域样式 */
  .navbar-auth {
    width: 100%;
    margin: 0 !important;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
  }

  .navbar-auth .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .navbar-auth .dropdown {
    width: 100%;
  }

  .navbar-auth .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    justify-content: space-between;
  }

  .navbar-auth .dropdown-menu {
    width: 100%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .navbar-auth .dropdown-item {
    padding: 0.75rem 1.5rem;
  }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    min-width: 80px;
  }

  .navbar-auth {
    margin-right: 1rem !important;
  }
}

/* Timeline样式 */
.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-color);
  box-shadow: 0 0 0 5px rgba(76, 201, 240, 0.3);
  transform: scale(1.2);
}

.timeline-content {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  opacity: 0;
  animation: timelineContentFadeIn 0.6s ease forwards;
}

.timeline-content:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.timeline-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-date {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.timeline-version {
  font-size: 0.9rem;
  padding: 4px 12px;
  background-color: transparent;
  color: var(--primary-color);
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--primary-color);
}

.timeline-description {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Timeline响应式设计 */
@media (max-width: 767.98px) {
  .timeline-container::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
    margin-bottom: 25px;
  }

  .timeline-dot {
    left: 7px;
    width: 16px;
    height: 16px;
  }

  .timeline-content {
    padding: 15px;
  }

  .timeline-date {
    font-size: 0.85rem;
  }

  .timeline-version {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .timeline-description {
    font-size: 0.85rem;
  }
}

/* Timeline内容动画 */
@keyframes timelineContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item:nth-child(1) .timeline-content {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) .timeline-content {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) .timeline-content {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(4) .timeline-content {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(5) .timeline-content {
  animation-delay: 0.5s;
}

/* 历史更新页面左侧导航样式 */
#categoryNav .list-group-item {
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  background-color: transparent;
}

#categoryNav .list-group-item:hover {
  background-color: var(--gray-100);
  border-left-color: var(--primary-color);
  padding-left: 1.5rem;
}

#categoryNav .list-group-item.active {
  background-color: var(--primary-color);
  color: white;
  border-left-color: var(--primary-dark);
}

#categoryNav .list-group-item.active .badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* 历史更新页面响应式设计 */
@media (max-width: 767.98px) {
  #categoryNav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem;
    background-color: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  #categoryNav .list-group-item {
    flex: 0 0 auto;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-right: 0.5rem;
  }

  #categoryNav .list-group-item:hover {
    border-left: none;
    border-bottom-color: var(--primary-color);
    padding-left: 1rem;
  }

  #categoryNav .list-group-item.active {
    border-left: none;
    border-bottom-color: white;
  }
}

/* 普通用户移动端优化 */

/* 移动端表格容器优化 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* 数据表格优化 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead {
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #f9f9f9;
}

.data-table .price {
  font-weight: 600;
  color: var(--primary-color);
}

/* 移动端按钮优化 */
.btn-primary,
.btn-secondary {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px !important;
    flex-direction: column !important;
    gap: 15px !important;
    text-align: center !important;
  }

  .header h1 {
    font-size: 20px;
  }

  .header .user-info {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .container {
    margin: 20px auto !important;
    padding: 0 15px !important;
  }

  .card {
    padding: 20px !important;
  }

  .filter-row {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .filter-actions {
    justify-content: center !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .filter-actions button {
    width: 100% !important;
    padding: 12px !important;
    font-size: 16px !important;
  }

  .summary-card .total {
    font-size: 24px !important;
  }

  /* 调整统计卡片布局 */
  .summary-card div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* 修复移动端标题溢出问题 */
  .summary-card h3 {
    font-size: 16px !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }

  /* 优化分组标题样式 */
  .group-row td {
    font-size: 14px !important;
    padding: 12px 8px !important;
  }

  /* 调整表格行高和内边距 */
  .data-table th,
  .data-table td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  /* 表单元素优化 */
  .form-group input {
    padding: 12px !important;
    font-size: 16px !important;
  }

  .form-actions {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .form-actions button,
  .form-actions a {
    width: 100% !important;
    padding: 12px !important;
    font-size: 16px !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 15px !important;
  }

  .header h1 {
    font-size: 18px !important;
  }

  .card {
    padding: 15px !important;
  }

  .card-header h2 {
    font-size: 18px !important;
  }

  .summary-card {
    padding: 15px !important;
  }

  .summary-card h3 {
    font-size: 16px !important;
  }

  .summary-card .total {
    font-size: 20px !important;
  }

  .data-table th,
  .data-table td {
    padding: 8px 6px !important;
    font-size: 12px !important;
  }

  /* 表单元素优化 */
  .form-group label {
    font-size: 14px !important;
  }

  .form-group input {
    padding: 10px !important;
    font-size: 15px !important;
  }
}