/* 设计系统基础 */
:root {
  /* 颜色系统 */
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --secondary: #10B981;
  --accent: #F59E0B;
  --danger: #EF4444;
  --dark: #1F2937;
  --darker: #111827;
  --light: #F9FAFB;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --white: #FFFFFF;
  
  /* 间距系统 (基于8px网格) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  
  /* 字体系统 */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  
  /* 圆角系统 */
  --radius-sm: 0.25rem;  /* 4px */
  --radius: 0.5rem;      /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--gray-light);
  color: var(--dark);
  line-height: 1.5;
  font-size: var(--text-base);
}
/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}
/* 导航栏 */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 var(--space-4);
}
.navbar-brand {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.navbar-brand::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}
.navbar-nav {
  display: flex;
  gap: var(--space-4);
}
.nav-link {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.1);
}
/* 英雄区域样式 */
.hero-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
}
.hero-title-line {
  display: block;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}
.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.2s; }
.hero-title-line:nth-child(3) { animation-delay: 0.3s; }
.hero-title-line.highlight {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}
.hero-actions {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.floating-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.card-1 {
  top: -80px;
  right: 100px;
  animation: float 6s ease-in-out infinite;
}
.card-2 {
  top: 20px;
  right: -20px;
  animation: float 6s ease-in-out infinite 2s;
}
.card-3 {
  top: 120px;
  right: 60px;
  animation: float 6s ease-in-out infinite 4s;
}
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
}
.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  right: 10%;
}
.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
}
/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: var(--text-base);
  line-height: 1.5;
}
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #059669);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.25);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-light);
  color: var(--gray);
}
.btn-outline:hover {
  background-color: var(--gray-light);
}
/* 卡片系统 - 智能自适应设计 */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px;
  max-height: 450px;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--gray-light);
  background-color: #f8f9fa;
  flex-shrink: 0;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.card-header .heading-3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--darker);
  line-height: 1.4;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
}
.card-body p {
  margin: 0;
  line-height: 1.6;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
/* 信息框统一样式 */
.info-box {
  padding: var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  height: 48px;
}
.info-box i {
  margin-right: var(--space-2);
  font-size: var(--text-lg);
  flex-shrink: 0;
}
.info-box strong {
  font-weight: 600;
  margin-right: var(--space-1);
  flex-shrink: 0;
}
.info-box span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.amount-box {
  background-color: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--secondary);
  color: #065F46;
}
.notes-box {
  background-color: rgba(79, 70, 229, 0.1);
  border-left: 4px solid var(--primary);
  color: #3730A3;
}
.card-footer {
  padding: var(--space-4) var(--space-5);
  background-color: #f8f9fa;
  font-size: var(--text-sm);
  color: var(--gray);
  border-top: 1px solid var(--gray-light);
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
}
.card-footer i {
  margin-right: var(--space-2);
}
/* 表单系统 */
.form-group {
  margin-bottom: var(--space-4);
}
.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--dark);
}
.form-control, .form-select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: var(--text-base);
  transition: all 0.2s;
  background-color: var(--white);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
/* 表格系统 */
.table-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  padding: var(--space-4);
  font-weight: 600;
  color: var(--gray);
  border-bottom: 1px solid var(--gray-light);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-light);
}
.table tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.05);
}
/* 标题系统 */
.heading-1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--darker);
}
.heading-2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-4);
  color: var(--darker);
}
.heading-3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-3);
  color: var(--darker);
}
/* 布局系统 */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
/* 筛选区域 */
.filter-section {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 10;
}
.filter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-4);
  align-items: end;
}
@media (max-width: 768px) {
  .filter-form {
    grid-template-columns: 1fr;
  }
}
/* 分类模块样式 */
.category-module {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.category-module:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
  border-color: var(--primary);
}
.category-module.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}
.category-count {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}
.category-content {
  margin-top: 24px;
  display: none;
}
.category-content.show {
  display: block;
  animation: fadeIn 0.3s ease;
}
/* 政策卡片网格 */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
/* 徽章系统 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.badge-primary {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}
.badge-secondary {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}
.badge-accent {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}
/* 警告框系统 */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #065F46;
  border-left: 4px solid var(--secondary);
}
.alert-info {
  background-color: rgba(79, 70, 229, 0.1);
  color: #3730A3;
  border-left: 4px solid var(--primary);
}
.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991B1B;
  border-left: 4px solid var(--danger);
}
.alert strong {
  font-weight: 600;
}
/* 页脚 */
footer {
  background-color: var(--darker);
  color: var(--gray);
  padding: var(--space-8) 0;
  margin-top: var(--space-16);
  text-align: center;
}
/* 空状态 */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}
.empty-state-icon {
  font-size: var(--text-4xl);
  color: var(--gray);
  margin-bottom: var(--space-4);
}
.empty-state h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--dark);
}
.empty-state p {
  color: var(--gray);
  margin-bottom: var(--space-6);
}
/* 操作按钮组 */
.action-buttons {
  display: flex;
  gap: var(--space-2);
}
/* 登录页面 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--space-4);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: var(--space-8) var(--space-6);
  text-align: center;
  color: var(--white);
}
.login-header h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.login-body {
  padding: var(--space-8) var(--space-6);
}
.login-footer {
  text-align: center;
  padding: var(--space-6);
  border-top: 1px solid var(--gray-light);
  color: var(--gray);
  font-size: var(--text-sm);
}
/* 浮动标签表单 */
.form-floating {
  position: relative;
  margin-bottom: var(--space-4);
}
.form-floating label {
  position: absolute;
  top: 0.875rem;
  left: 1.25rem;
  color: var(--gray);
  pointer-events: none;
  transition: all 0.2s ease;
}
.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--dark);
  padding: 0 0.25rem;
}
/* 响应式工具 */
@media (max-width: 640px) {
  .heading-1 { font-size: var(--text-3xl); }
  .heading-2 { font-size: var(--text-2xl); }
  .heading-3 { font-size: var(--text-xl); }
  
  .navbar-container {
    padding: 0 var(--space-4);
  }
  
  .filter-section, .card-body, .card-header {
    padding: var(--space-4);
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
}
@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .policy-grid {
    grid-template-columns: 1fr;
  }
  
  .category-title {
    font-size: 1.25rem;
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* 移动端卡片布局调整 */
  .card {
    min-height: auto;
    max-height: none;
    height: auto;
  }
  
  .card-header {
    height: auto;
    min-height: 80px;
  }
  
  .card-body p {
    -webkit-line-clamp: unset;
    display: block;
  }
  
  .info-box {
    height: auto;
    min-height: 48px;
  }
  
  .info-box span {
    white-space: normal;
  }
  
  .card-footer {
    height: auto;
    min-height: 48px;
  }
}
/* 动画 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}