/* ========================================
   wictrl web - 全局样式表
   海南微控信息科技有限公司
   ======================================== */

/* ---------- CSS变量 ---------- */
:root {
  /* 品牌色 */
  --primary: #0A66C2;
  --primary-dark: #084D94;
  --primary-light: #3B8DD4;
  --primary-bg: #EBF4FF;

  /* 辅助色 */
  --accent: #00C9A7;
  --accent-dark: #00A88A;
  --warning: #F5A623;
  --danger: #E74C3C;

  /* 中性色 */
  --text-primary: #1A1A2E;
  --text-secondary: #555770;
  --text-tertiary: #8B8DA3;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F8FC;
  --bg-tertiary: #EEF0F6;
  --border: #E2E4ED;
  --border-light: #F0F1F5;

  /* 阴影 - 多层次阴影体系 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-primary: 0 4px 14px rgba(10,102,194,0.18);
  --shadow-accent: 0 4px 14px rgba(0,201,167,0.18);
  --shadow-inset: inset 0 1px 3px rgba(0,0,0,0.06);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 字体 */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* 布局 */
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 重置与基础 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

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

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

.section {
  padding: 88px 0;
  position: relative;
}

/* section 标题：增加装饰线 + 渐变效果 */
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-subtitle {
  font-size: 16px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(10,102,194,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(10,102,194,0.15);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

/* ---------- 页面顶部占位 ---------- */
.page-top-spacer {
  height: var(--header-height);
}

/* ---------- 通用卡片悬浮效果 ---------- */
.card-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---------- 装饰性渐变分隔线 ---------- */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
  max-width: 200px;
}

/* ---------- 响应式断点 ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  .section {
    padding: 56px 0;
  }
  .section-title {
    font-size: 24px;
    padding-bottom: 16px;
  }
  .section-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 16px;
  }
}
