:root {
  --primary-color: #4a6bdf;
  --primary-hover: #3955b5;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --background-color: #f5f7fa;
  --text-color: #333;
  --border-color: #e0e6ed;
  --card-shadow: 0 2px 5px rgba(0,0,0,0.05);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部导航 */
.header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.logo i {
  font-size: 1.5rem;
}

.logo h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

/* 主内容区 */
.main-container {
  flex: 1;
  padding: 30px 0;
}

/* 卡片组件 */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f8f9fa;
}

.card-header i {
  color: var(--primary-color);
}

.card-body {
  padding: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(74, 107, 223, 0.25);
}

.form-text {
  color: var(--secondary-color);
  font-size: 0.875rem;
  margin-top: 5px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 10px 15px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 6px;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
}

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

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

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

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

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

.btn-outline-success {
  color: var(--success-color);
  border-color: var(--success-color);
  background-color: transparent;
}

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

.btn i {
  margin-right: 5px;
}

/* 公告卡片 */
.announcement-card {
  border-left: 4px solid var(--warning-color);
}

.announcement-content {
  line-height: 1.6;
}

.announcement-content p {
  margin-bottom: 10px;
}

.highlight {
  font-weight: 600;
  color: var(--danger-color);
}

.login-section {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

/* 提示框 */
.tips {
  margin-top: 15px;
  padding: 10px;
  background-color: #fff8e5;
  border-left: 3px solid var(--warning-color);
  border-radius: 3px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tips i {
  color: var(--warning-color);
  font-size: 1.1rem;
}

/* 激活步骤 */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 40px;
  margin-bottom: 25px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.step-content h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.step-content p {
  color: var(--secondary-color);
  margin: 0;
}

/* 提示框 */
.alert-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 1000;
  min-width: 300px;
  max-width: 80%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.alert-box.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
}

.alert-icon {
  font-size: 1.5rem;
}

.alert-box.success .alert-icon {
  color: var(--success-color);
}

.alert-box.error .alert-icon {
  color: var(--danger-color);
}

/* 页脚 */
.footer {
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .logo h1 {
    font-size: 1.1rem;
  }
  
  .login-section {
    flex-direction: column;
  }
  
  .alert-box {
    min-width: 90%;
  }
}

/* 管理后台样式 */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
  padding: 15px 0;
}

.sidebar-item {
  display: block;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.sidebar-item:hover, .sidebar-item.active {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

.content-wrapper {
  flex: 1;
  margin-left: 250px;
  padding: 30px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-header h1 {
  font-size: 1.75rem;
  margin: 0;
}

.data-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 20px;
  height: 100%;
}

.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.data-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.data-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.data-card-value {
  font-size: 2rem;
  font-weight: 700;
}

.data-card-label {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

.data-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

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

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pending {
  background-color: #fff8e5;
  color: #e5a400;
}

.status-success {
  background-color: #e5f7ed;
  color: #28a745;
}

.status-declined {
  background-color: #fae5e5;
  color: #dc3545;
}

/* 登录页面样式 */
.login-container {
  max-width: 400px;
  margin: 80px auto;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.login-logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.login-form {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 30px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* 模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform 0.3s;
}

.modal.show .modal-content {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
}

.modal-body {
  padding: 20px;
}

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

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

.col-3 {
  width: 25%;
  padding: 0 15px;
}

.col-4 {
  width: 33.333333%;
  padding: 0 15px;
}

.col-6 {
  width: 50%;
  padding: 0 15px;
}

.col-8 {
  width: 66.666667%;
  padding: 0 15px;
}

.col-12 {
  width: 100%;
  padding: 0 15px;
}

@media (max-width: 992px) {
  .col-3, .col-4, .col-6, .col-8 {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .col-3, .col-4, .col-6, .col-8, .col-12 {
    width: 100%;
  }
  
  .sidebar {
    width: 70px;
    transform: translateX(-70px);
    transition: transform 0.3s, width 0.3s;
  }
  
  .sidebar.show {
    transform: translateX(0);
    width: 250px;
  }
  
  .content-wrapper {
    margin-left: 0;
  }
  
  .sidebar-item span {
    display: none;
  }
  
  .sidebar.show .sidebar-item span {
    display: inline;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* 工具类 */
.text-center {
  text-align: center;
}

.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;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.w-100 {
  width: 100%;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

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

.text-success {
  color: var(--success-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-warning {
  color: var(--warning-color);
}

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

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

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

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

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

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