/* 
 * 靓淘平台UI样式设计
 * 主色系: #5A4398 (深紫色调)
 */

:root {
  /* 主色调 */
  --primary-color: #5A4398;
  --primary-dark: #433273;
  --primary-darker: #2E234F;
  --primary-light: #7B65B0;
  --primary-lighter: #9D8AC7;
  --primary-lightest: #EDE8F5;

  /* 辅助色 */
  --secondary-color: #8E7CC3;
  --accent-color: #F39C12;
  --success-color: #27AE60;
  --warning-color: #F39C12;
  --danger-color: #E74C3C;
  --info-color: #3498DB;

  /* 中性色 */
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --text-light: #BDC3C7;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #ECF0F1;
  --border-color: #DCE0E4;
  --shadow: rgba(90, 67, 152, 0.1);
}

/* 全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-darker);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  outline: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #7B65B0;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* 导航栏样式 */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item {
  margin-left: 1.5rem;
}

.navbar-nav .nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.navbar-nav .nav-link:hover {
  background-color: var(--primary-dark);
}

/* 容器样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

/* 卡片样式 */
.card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(90, 67, 152, 0.15);
}

.card-header {
  background-color: var(--primary-lightest);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--primary-darker);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background-color: var(--bg-tertiary);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* 表单样式 */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(90, 67, 152, 0.1);
}

.form-control:disabled {
  background-color: var(--bg-tertiary);
  cursor: not-allowed;
}

/* 表格样式 */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background-color: var(--primary-lightest);
  color: var(--primary-darker);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background-color: var(--bg-tertiary);
}

/* 分页样式 */
.pagination {
  display: flex;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  justify-content: center;
}

.pagination .page-item {
  margin: 0 0.25rem;
}

.pagination .page-link {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s;
}

.pagination .page-link:hover,
.pagination .page-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 警告样式 */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(39, 174, 96, 0.1);
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.1);
  border-left: 4px solid var(--warning-color);
  color: var(--warning-color);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--danger-color);
  color: var(--danger-color);
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 4px solid var(--info-color);
  color: var(--info-color);
}

/* 标签样式 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 4px;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-warning {
  background-color: var(--warning-color);
  color: white;
}

.badge-danger {
  background-color: var(--danger-color);
  color: white;
}

/* 进度条样式 */
.progress {
  height: 1rem;
  background-color: var(--bg-tertiary);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.6s ease;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  color: var(--primary-darker);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .navbar-nav {
    flex-direction: column;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  
  .container {
    padding: 0 0.5rem;
  }
  
  .card-body,
  .card-header,
  .card-footer {
    padding: 1rem;
  }
  
  .table {
    display: block;
    overflow-x: auto;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
}

/* 特殊组件样式 - 积分商品卡片 */
.product-card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(90, 67, 152, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--primary-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 3rem;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.product-points {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* 任务卡片样式 */
.task-card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.task-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.task-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-points {
  background-color: var(--primary-lightest);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

/* 话题卡片样式 */
.topic-card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.topic-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.topic-content {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.topic-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.85rem;
}
/* 通用按钮样式 */
.btn-purple {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-purple:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.btn-outline-purple {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.text-purple {
  color: var(--primary-color);
}

.bg-purple-light {
  background-color: var(--primary-lightest);
}

/* 通用卡片样式 */
.card-shadow {
  background-color: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(90, 67, 152, 0.15);
}

/* 通用表单样式 */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 通用网格布局 */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* 通用响应式容器 */
.container-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 页面标题样式 */
.page-title {
  color: var(--primary-darker);
  font-size: 2rem;
  font-weight: 600;
  margin: 2rem 0 1.5rem;
  text-align: center;
  position: relative;
}

.page-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto;
  border-radius: 2px;
}

/* 通用内容区域样式 */
.content-area {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 通用列表样式 */
.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background-color: var(--bg-secondary);
}

/* 通用分割线 */
.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
}

/* 通用文本样式 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-secondary);
}

.font-weight-bold {
  font-weight: bold;
}

/* 通用间距类 */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

/* 通用Flexbox布局 */
.d-flex { display: flex; }
.d-grid { display: grid; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

/* 响应式栅格 */
@media (max-width: 768px) {
  .grid-3-col, .grid-2-col {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .content-area {
    padding: 1rem;
  }
  
  .form-container {
    margin: 1rem;
    padding: 1rem;
  }
}

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

.footer a {
  color: var(--primary-lighter);
}

.footer h4 {
  color: var(--primary-lighter);
  margin-bottom: 1rem;
}

/* 导航栏样式 */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1.5rem;
}

.navbar-nav .nav-item {
  margin: 0;
}

.navbar-nav .nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav .nav-link:hover {
  background-color: var(--primary-dark);
}

/* 响应式导航栏 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
}


/* 补充样式 */
.w-100 {
  width: 100%;
}

.ms-2 {
  margin-left: 0.5rem;
}

.me-2 {
  margin-right: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .d-flex {
    display: flex;
  }
  
  .flex-column {
    flex-direction: column;
  }
  
  .justify-content-between {
    justify-content: space-between;
  }
  
  .align-items-center {
    align-items: center;
  }
  
  .form-container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .card-shadow {
    margin-bottom: 1rem;
  }
}


/* 增强的按钮样式 */
.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.25rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

/* 主题卡片变体 */
.card-primary {
  border-left: 4px solid var(--primary-color);
}

.card-success {
  border-left: 4px solid var(--success-color);
}

.card-warning {
  border-left: 4px solid var(--warning-color);
}

.card-danger {
  border-left: 4px solid var(--danger-color);
}

/* 表单增强样式 */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(90, 67, 152, 0.25);
}

.form-control-lg {
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
}

.form-control-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* 输入组样式 */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group > .form-control {
  flex: 1;
  margin-bottom: 0;
}

.input-group-append,
.input-group-prepend {
  display: flex;
  align-items: center;
}

/* 徽章增强样式 */
.badge {
  display: inline-block;
  padding: 0.3em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-pill {
  padding-right: 0.6em;
  padding-left: 0.6em;
  border-radius: 10rem;
}

/* 列表组样式 */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 0.375rem;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 1rem 1.5rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.list-group-item:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.list-group-item:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.list-group-item-action {
  width: 100%;
  color: var(--text-primary);
  text-align: inherit;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  z-index: 1;
  color: var(--text-primary);
  text-decoration: none;
  background-color: var(--bg-secondary);
}

/* 轮播图样式 */
.carousel {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

/* 模态框增强样式 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

/* 加载动画 */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

/* 图片样式 */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* 工具类增强 */
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }
.shadow-none { box-shadow: none !important; }

.border { border: 1px solid var(--border-color) !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-right { border-right: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.border-left { border-left: 1px solid var(--border-color) !important; }

.rounded { border-radius: 0.375rem !important; }
.rounded-top { border-top-left-radius: 0.375rem !important; border-top-right-radius: 0.375rem !important; }
.rounded-right { border-top-right-radius: 0.375rem !important; border-bottom-right-radius: 0.375rem !important; }
.rounded-bottom { border-bottom-right-radius: 0.375rem !important; border-bottom-left-radius: 0.375rem !important; }
.rounded-left { border-top-left-radius: 0.375rem !important; border-bottom-left-radius: 0.375rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }
.rounded-0 { border-radius: 0 !important; }

/* 响应式工具类 */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-table { display: table !important; }
.d-table-row { display: table-row !important; }
.d-table-cell { display: table-cell !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-block { display: block !important; }
  .d-sm-table { display: table !important; }
  .d-sm-table-row { display: table-row !important; }
  .d-sm-table-cell { display: table-cell !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-inline-flex { display: inline-flex !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-inline { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-block { display: block !important; }
  .d-md-table { display: table !important; }
  .d-md-table-row { display: table-row !important; }
  .d-md-table-cell { display: table-cell !important; }
  .d-md-flex { display: flex !important; }
  .d-md-inline-flex { display: inline-flex !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .d-lg-block { display: block !important; }
  .d-lg-table { display: table !important; }
  .d-lg-table-row { display: table-row !important; }
  .d-lg-table-cell { display: table-cell !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline-flex { display: inline-flex !important; }
}

@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-inline { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .d-xl-block { display: block !important; }
  .d-xl-table { display: table !important; }
  .d-xl-table-row { display: table-row !important; }
  .d-xl-table-cell { display: table-cell !important; }
  .d-xl-flex { display: flex !important; }
  .d-xl-inline-flex { display: inline-flex !important; }
}

/* Flexbox 工具类 */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }

.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-wrap-reverse { flex-wrap: wrap-reverse !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.align-content-start { align-content: flex-start !important; }
.align-content-end { align-content: flex-end !important; }
.align-content-center { align-content: center !important; }
.align-content-between { align-content: space-between !important; }
.align-content-around { align-content: space-around !important; }
.align-content-stretch { align-content: stretch !important; }

.align-self-auto { align-self: auto !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }
.align-self-baseline { align-self: baseline !important; }
.align-self-stretch { align-self: stretch !important; }

/* Spacing 工具类 */
.m-0 { margin: 0 !important; }
.mt-0,
.my-0 { margin-top: 0 !important; }
.mr-0,
.mx-0 { margin-right: 0 !important; }
.mb-0,
.my-0 { margin-bottom: 0 !important; }
.ml-0,
.mx-0 { margin-left: 0 !important; }

.m-1 { margin: 0.25rem !important; }
.mt-1,
.my-1 { margin-top: 0.25rem !important; }
.mr-1,
.mx-1 { margin-right: 0.25rem !important; }
.mb-1,
.my-1 { margin-bottom: 0.25rem !important; }
.ml-1,
.mx-1 { margin-left: 0.25rem !important; }

.m-2 { margin: 0.5rem !important; }
.mt-2,
.my-2 { margin-top: 0.5rem !important; }
.mr-2,
.mx-2 { margin-right: 0.5rem !important; }
.mb-2,
.my-2 { margin-bottom: 0.5rem !important; }
.ml-2,
.mx-2 { margin-left: 0.5rem !important; }

.m-3 { margin: 1rem !important; }
.mt-3,
.my-3 { margin-top: 1rem !important; }
.mr-3,
.mx-3 { margin-right: 1rem !important; }
.mb-3,
.my-3 { margin-bottom: 1rem !important; }
.ml-3,
.mx-3 { margin-left: 1rem !important; }

.m-4 { margin: 1.5rem !important; }
.mt-4,
.my-4 { margin-top: 1.5rem !important; }
.mr-4,
.mx-4 { margin-right: 1.5rem !important; }
.mb-4,
.my-4 { margin-bottom: 1.5rem !important; }
.ml-4,
.mx-4 { margin-left: 1.5rem !important; }

.m-5 { margin: 3rem !important; }
.mt-5,
.my-5 { margin-top: 3rem !important; }
.mr-5,
.mx-5 { margin-right: 3rem !important; }
.mb-5,
.my-5 { margin-bottom: 3rem !important; }
.ml-5,
.mx-5 { margin-left: 3rem !important; }

.p-0 { padding: 0 !important; }
.pt-0,
.py-0 { padding-top: 0 !important; }
.pr-0,
.px-0 { padding-right: 0 !important; }
.pb-0,
.py-0 { padding-bottom: 0 !important; }
.pl-0,
.px-0 { padding-left: 0 !important; }

.p-1 { padding: 0.25rem !important; }
.pt-1,
.py-1 { padding-top: 0.25rem !important; }
.pr-1,
.px-1 { padding-right: 0.25rem !important; }
.pb-1,
.py-1 { padding-bottom: 0.25rem !important; }
.pl-1,
.px-1 { padding-left: 0.25rem !important; }

.p-2 { padding: 0.5rem !important; }
.pt-2,
.py-2 { padding-top: 0.5rem !important; }
.pr-2,
.px-2 { padding-right: 0.5rem !important; }
.pb-2,
.py-2 { padding-bottom: 0.5rem !important; }
.pl-2,
.px-2 { padding-left: 0.5rem !important; }

.p-3 { padding: 1rem !important; }
.pt-3,
.py-3 { padding-top: 1rem !important; }
.pr-3,
.px-3 { padding-right: 1rem !important; }
.pb-3,
.py-3 { padding-bottom: 1rem !important; }
.pl-3,
.px-3 { padding-left: 1rem !important; }

.p-4 { padding: 1.5rem !important; }
.pt-4,
.py-4 { padding-top: 1.5rem !important; }
.pr-4,
.px-4 { padding-right: 1.5rem !important; }
.pb-4,
.py-4 { padding-bottom: 1.5rem !important; }
.pl-4,
.px-4 { padding-left: 1.5rem !important; }

.p-5 { padding: 3rem !important; }
.pt-5,
.py-5 { padding-top: 3rem !important; }
.pr-5,
.px-5 { padding-right: 3rem !important; }
.pb-5,
.py-5 { padding-bottom: 3rem !important; }
.pl-5,
.px-5 { padding-left: 3rem !important; }

/* 文本样式 */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-light { color: var(--bg-secondary) !important; }
.text-dark { color: var(--text-primary) !important; }
.text-muted { color: var(--text-secondary) !important; }

.text-body { color: var(--text-primary) !important; }
.text-white { color: #fff !important; }

.text-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; }

.text-justify { text-align: justify !important; }
.text-wrap { white-space: normal !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }

/* 响应式文本对齐 */
@media (min-width: 576px) {
  .text-sm-left { text-align: left !important; }
  .text-sm-right { text-align: right !important; }
  .text-sm-center { text-align: center !important; }
}

@media (min-width: 768px) {
  .text-md-left { text-align: left !important; }
  .text-md-right { text-align: right !important; }
  .text-md-center { text-align: center !important; }
}

@media (min-width: 992px) {
  .text-lg-left { text-align: left !important; }
  .text-lg-right { text-align: right !important; }
  .text-lg-center { text-align: center !important; }
}

@media (min-width: 1200px) {
  .text-xl-left { text-align: left !important; }
  .text-xl-right { text-align: right !important; }
  .text-xl-center { text-align: center !important; }
}

/* 字体粗细 */
.font-weight-light { font-weight: 300 !important; }
.font-weight-lighter { font-weight: lighter !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-bolder { font-weight: bolder !important; }
.font-italic { font-style: italic !important; }

/* 媒体对象 */
.media {
  display: flex;
  align-items: flex-start;
}

.media-body {
  flex: 1;
}

/* 瀑布流网格 */
.masonry-grid {
  display: grid;
  grid-gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* 悬停效果 */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(90, 67, 152, 0.2);
}

/* 交互元素过渡效果 */
.interactive-element {
  transition: all 0.2s ease;
}

.interactive-element:hover {
  cursor: pointer;
}

/* 焦点状态 */
.focus-ring {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(90, 67, 152, 0.25);
}

/* 可访问性增强 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.slide-in-up {
  animation: slideInUp 0.3s ease-out;
}

/* 优化移动端体验 */
@media (max-width: 768px) {
  .container-main {
    padding: 0 0.5rem;
  }
  
  .form-container {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .card-shadow {
    margin-bottom: 1rem;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
  
  .grid-3-col {
    grid-template-columns: 1fr;
  }
  
  .d-flex,
  .d-sm-flex,
  .d-md-flex,
  .d-lg-flex,
  .d-xl-flex {
    flex-wrap: wrap;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .input-group > .form-control,
  .input-group-append,
  .input-group-prepend {
    width: 100%;
  }
  
  .input-group-append,
  .input-group-prepend {
    border-radius: 0;
  }
  
  .input-group-append:not(:last-child),
  .input-group-prepend:not(:first-child) {
    border-radius: 0;
  }
}

/* 新增的CSS类 */

/* 紫色浅色背景 */
.bg-purple-light {
  background-color: var(--primary-lightest) !important;
}

/* 卡片悬停提升效果 */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(90, 67, 152, 0.2);
}

/* 交互元素样式 */
.interactive-element {
  transition: all 0.2s ease;
}

.interactive-element:hover {
  cursor: pointer;
}

/* Hero Section 样式 */
.hero-section {
  margin-top: 1rem;
}

/* 特色产品区域 */
.featured-products {
  padding: 2rem 0;
}

/* 快速操作区域 */
.quick-actions .card-shadow {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quick-actions .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 统计数据区域 */
.stats-section .fs-1 {
  font-size: 2.5rem;
}

/* 商品图片容器 */
.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

/* 商品标题 */
.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 商品描述 */
.product-description {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 商品积分价格 */
.product-points {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--success-color);
}

/* 面包屑导航 */
.breadcrumb {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
  background-color: var(--bg-primary);
  border-radius: 0.375rem;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

/* 评分星星 */
.rating-stars {
  color: #ffc107;
}

/* 表格增强样式 */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-primary);
  vertical-align: top;
  border-collapse: collapse;
}

.table th {
  padding: 0.75rem;
  vertical-align: bottom;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  text-align: left;
}

.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border-color);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--bg-secondary);
}

.table-hover > tbody > tr:hover {
  background-color: var(--bg-tertiary);
}

/* 卡片阴影增强 */
.card-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: none;
}

/* 按钮增强 */
.btn-purple {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-purple:hover,
.btn-purple:focus,
.btn-purple:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: white;
  box-shadow: 0 4px 12px rgba(90, 67, 152, 0.3) !important;
}

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

.btn-outline-purple:hover,
.btn-outline-purple:focus,
.btn-outline-purple:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

/* 标签增强 */
.badge {
  padding: 0.4em 0.7em;
  font-size: 0.8em;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-warning {
  background-color: var(--warning-color);
  color: white;
}

.badge-danger {
  background-color: var(--danger-color);
  color: white;
}

.badge-info {
  background-color: var(--info-color);
  color: white;
}

/* 分页增强 */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.375rem;
}

.page-item:first-child .page-link {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: var(--primary-color);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.page-link:hover {
  z-index: 2;
  color: var(--primary-dark);
  text-decoration: none;
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.page-item.active .page-link {
  z-index: 3;
  color: white;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 表单控件增强 */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  appearance: none;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* 响应式网格 */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-3-col {
    grid-template-columns: 1fr;
  }
  
  .hero-section .row > div {
    text-align: center;
  }
  
  .hero-section .col-lg-5 {
    margin-top: 1.5rem;
  }
}

/* 标签页样式 */
.nav-tabs {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--primary-color);
  border-color: transparent;
}

.nav-link.active {
  color: var(--primary-color);
  background-color: var(--bg-primary);
  border-color: var(--border-color) var(--border-color) var(--bg-primary);
}

/* 列表组样式 */
.list-group-item {
  position: relative;
  display: block;
  padding: 1rem 1.25rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.list-group-item:first-child {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.list-group-item:last-child {
  border-bottom-right-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.list-group-item-action {
  width: 100%;
  color: var(--text-primary);
  text-align: inherit;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  z-index: 1;
  color: var(--text-primary);
  text-decoration: none;
  background-color: var(--bg-secondary);
}
