/* ============================================
   北京市沧数云科信息科技有限公司一体化系统
   全局样式表 - 统一视觉规范
   ============================================ */

/* CSS变量定义 */
:root {
  --primary-color: #1a5f7a;
  --primary-dark: #0d3d4d;
  --secondary-color: #159895;
  --accent-color: #57c5b6;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-white: #ffffff;
  --border-color: #dee2e6;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s ease;
}

/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* 按钮基础样式 - 方形设计 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

.btn-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: var(--text-white);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545, #e83e8c);
  color: var(--text-white);
}

/* ============================================
   导航栏 - 玻璃效果
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 95, 122, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white) !important;
  letter-spacing: 1px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 8px;
}

.navbar-nav li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-white) !important;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.navbar-nav li a:hover::after,
.navbar-nav li a.active::after {
  width: 60%;
}

.navbar-nav li a:hover,
.navbar-nav li a.active {
  color: var(--accent-color) !important;
}

.navbar-auth {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-white);
  transition: var(--transition);
}

/* ============================================
   Hero区域
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.9), rgba(21, 152, 149, 0.85)), url('../img/beijing.jpg') center/cover no-repeat;
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   卡片组件 - 方形设计
   ============================================ */
.card {
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-body {
  padding: 24px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   表单样式
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 2px solid var(--border-color);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: auto;
}

.form-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
}

/* ============================================
   页面布局
   ============================================ */
.page-header {
  padding: 80px 0 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--primary-color));
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 300;
}

.section {
  padding: 70px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 16px;
}

/* 网格系统 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* ============================================
   底部版权区 - 液态玻璃效果
   ============================================ */
.footer {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(45, 55, 92, 0.9));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 50px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(87, 197, 182, 0.5), 
    rgba(21, 152, 149, 0.5), 
    transparent
  );
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 36px;
}

.footer-section h3 {
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 2;
  display: block;
}

.footer-section a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a:hover {
  color: var(--accent-color);
}

/* ============================================
   进度条组件
   ============================================ */
.progress-bar-container {
  margin: 20px 0;
}

.progress-bar-wrapper {
  background: #e9ecef;
  height: 32px;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  transition: width 0.6s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}

.progress-bar-fill span {
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-circle {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.step-circle.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--text-white);
}

.step-circle.completed {
  border-color: var(--success-color, #28a745);
  background: var(--success-color, #28a745);
  color: var(--text-white);
}

.step-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 90px;
}

/* ============================================
   表格样式
   ============================================ */
.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.table th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  font-weight: 600;
  white-space: nowrap;
}

.table tr:hover {
  background: rgba(26, 95, 122, 0.04);
}

.table .status-badge {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.status-submitted { background: #e3f2fd; color: #1565c0; }
.status-initial_review { background: #fff3e0; color: #ef6c00; }
.status-pending_approval { background: #f3e5f5; color: #7b1fa2; }
.status-approving { background: #e8f5e9; color: #2e7d32; }
.status-approved { background: #e0f2f1; color: #00695c; }
.status-rejected { background: #ffebee; color: #c62828; }

/* ============================================
   模态框/弹窗
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  font-size: 20px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.modal-close:hover {
  background: #dc3545;
  color: white;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   提示消息
   ============================================ */
.alert {
  padding: 16px 20px;
  border-left: 4px solid;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460;
}

/* ============================================
   后台管理布局
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--bg-dark), #16213e);
  color: var(--text-white);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 999;
  transition: var(--transition);
}

.admin-logo {
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
}

.admin-menu {
  list-style: none;
  padding: 16px 0;
}

.admin-menu-item {
  padding: 0;
}

.admin-menu-item a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
  gap: 12px;
  font-size: 14px;
}

.admin-menu-item a:hover,
.admin-menu-item a.active {
  background: rgba(87, 197, 182, 0.15);
  color: var(--accent-color);
  border-right: 3px solid var(--accent-color);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  background: var(--bg-light);
  min-height: 100vh;
}

.admin-header {
  background: white;
  padding: 16px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 998;
}

.admin-content {
  padding: 30px;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }
  
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 95, 122, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    display: none;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .navbar-nav li a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================
   工具类
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-100 { width: 100%; }

/* 隐藏类 */
.hidden { display: none !important; }
.visible { display: block !important; }

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
