/* 全局样式 */
/* ===== 主题色变量（可按需调整） ===== */
:root {
  --primary: #fe7a15;
  --primary-dark: #fe9544;
  --secondary: #0f9d58;
  --dark: #202124;
  --light: #f8f9fa;
  --gray: #5f6368;
  --border: #dadce0;
  --header-h: 64px;
}

/* ===== 让你写在 HTML 里的类可用（Tailwind CDN 无法读取本地 config） ===== */
.bg-primary {
  background-color: var(--primary) !important;
}

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

.text-neutral {
  color: #666 !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.hover\:bg-primary\/90:hover {
  background-color: rgba(254, 122, 21, 0.9) !important;
}

.anchor-target {
  /* 让原生锚点跳转时，自动预留头部高度 */
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body {
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 容器样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* 标题样式 */
.section-title {
  font-size: 36px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* 文本样式 */
.text-center {
  text-align: center;
}

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

/* 布局工具类 */
.flex {
  display: flex;
}

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

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

.grid {
  display: grid;
}

/* 间距工具类 */
.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.fz-12 {
  font-size: 12px;
}

.fz-14 {
  font-size: 14px;
}

.fz-15 {
  font-size: 15px;
}

.fw700 {
  font-weight: 700;
}