/* =============================================
   基础样式 - base.css
   功能：CSS变量、重置样式、工具类
   ============================================= */

:root {
  --primary: #1A1A2E;
  --secondary: #FF6B6B;
  --dark-bg: #0F0F1A;
  --page-bg: #F5F5FA;
  --text-white: #FFFFFF;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-color: #D0D0E0;
  --card-bg: #FFFFFF;
  --section-pad: 60px 0;
  --container-max: 1200px;
  --font-base: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

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

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

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-white {
  color: var(--text-white);
}

.text-muted {
  color: var(--text-muted);
}

.bg-primary {
  background-color: var(--primary);
}

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

.bg-page {
  background-color: var(--page-bg);
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.grid {
  display: flex;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: #e05555;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-outline:hover {
  background-color: var(--text-white);
  color: var(--primary);
}

/* 标题装饰线 */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
  margin: 12px auto 0;
}

.section-title-left::after {
  margin: 12px 0 0;
}
