/* /static/css/common.css - 公共样式（全局唯一） */

:root {
  --primary: #ee1c25;
  --primary-dark: #d4000a;
  --primary-light: #ff4d55;
  --secondary: #ffc107;
  --accent: #4caf50;
  --success: #22c55e;
  --warning: #eab308;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --navbar-height: 70px;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* 公共容器 */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 辅助类 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 延迟加载图片 */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* 卡片基础样式 */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .container-main {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .container-main {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .container-main {
    padding: 0 10px;
  }
}