/* heval_web/css/base.css */

/* ========== CSS变量 ========== */
:root {
  /* 颜色系统 */
  --primary-color: #5B7FFF;
  --secondary-color: #FF6B9D;
  --accent-color: #FFD93D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-muted: #6C757D;

  /* 布局 */
  --border-radius: 16px;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;

  /* 间距 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 72px;

  /* 断点 */
  --mobile-max: 767px;
  --tablet-min: 768px;
  --tablet-max: 1023px;
  --desktop-min: 1024px;
}

/* ========== CSS重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ========== 工具类 ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

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

.hidden {
  display: none;
}

/* 响应式隐藏 */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
