:root {
  --primary-color: #2196F3;
  --secondary-color: #FF4081;
  --accent-color: #4CAF50;
  --dark-bg: #1a237e;
  --light-bg: #f5f5f5;
  --text-dark: #333;
  --text-light: #fff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 导航栏样式 */
.navbar-custom {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #3f51b5 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-link {
  color: rgba(255,255,255,0.9) !important;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--text-light) !important;
}

.nav-link.active {
  background-color: var(--primary-color);
  color: var(--text-light) !important;
}

/* 页面标题 */
.page-title {
  color: var(--dark-bg);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

/* 卡片样式 */
.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-title {
  color: var(--dark-bg);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* 按钮样式 */
.btn-custom {
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1976D2 100%);
  color: white;
}

.btn-secondary-custom {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #E91E63 100%);
  color: white;
}

/* 列表样式 */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-blue {
  background-color: rgba(33, 150, 243, 0.1);
  color: var(--primary-color);
}

.icon-pink {
  background-color: rgba(255, 64, 129, 0.1);
  color: var(--secondary-color);
}

.icon-green {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--accent-color);
}

/* 公式样式 */
.formula-box {
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-size: 1.1rem;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #3f51b5 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

/* 响应式 */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
}

/* 图表容器 */
.chart-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* 进度条 */
.progress-custom {
  height: 10px;
  border-radius: 5px;
  background-color: #e0e0e0;
  overflow: hidden;
}

.progress-bar-custom {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 0.6s ease;
}

/* 首页特定样式 */
.home-page .hero-section {
  padding: 4rem 0;
}

.home-page .hero-buttons {
  margin-top: 2rem;
}

/* 表单样式 */
.form-control, .form-select {
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #ddd;
}

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

.form-label {
  font-weight: 500;
  color: var(--text-dark);
}

/* 表格样式 */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background-color: var(--dark-bg);
  color: white;
}

.table-bordered td, .table-bordered th {
  border: 1px solid #dee2e6;
}

.table-danger {
  background-color: rgba(220, 53, 69, 0.1) !important;
}

.table-success {
  background-color: rgba(40, 167, 69, 0.1) !important;
}

/* 警告框样式 */
.alert {
  border-radius: 8px;
  border: none;
}

.alert-info {
  background-color: rgba(33, 150, 243, 0.1);
  color: var(--primary-color);
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--accent-color);
}

.alert-danger {
  background-color: rgba(255, 64, 129, 0.1);
  color: var(--secondary-color);
}

/* 统计结果显示 */
.stats-result {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark-bg);
}

/* 步骤流程样式 */
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1976D2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}