/* ============================================
   菁信官网 - 基础样式 / 设计变量 / 通用组件
   ============================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- 设计变量 ---------- */
:root {
  /* 色彩 */
  --c-primary: #1466f0;
  --c-primary-dark: #0a4dc0;
  --c-navy: #0a2540;
  --c-navy-2: #0e3a66;
  --c-cyan: #22c1dc;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f8fc;
  --c-border: #e4eaf3;
  --c-text: #1d2b3a;
  --c-text-2: #5a6b80;
  --c-text-3: #8a97a8;
  --c-white: #ffffff;

  /* 字体 */
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-h3: 26px;
  --fs-h2: 36px;
  --fs-h1: 48px;

  /* 间距 */
  --section-gap: 100px;
  --container: 1200px;

  /* 圆角/阴影 */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 12px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 28px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 16px 48px rgba(10, 37, 64, 0.14);

  /* 缓动 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section--soft {
  background: var(--c-bg-soft);
}

/* ---------- 区块标题 ---------- */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
}

.section-head__title em {
  font-style: normal;
  color: var(--c-primary);
}

.section-head__sub {
  margin-top: 14px;
  font-size: var(--fs-lg);
  color: var(--c-text-2);
}

.section-head--light .section-head__title {
  color: var(--c-white);
}

.section-head--light .section-head__sub {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 999px;
  font-size: var(--fs-md);
  font-weight: 600;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), #3b82f6);
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(20, 102, 240, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 102, 240, 0.45);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--c-white);
}

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

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

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

/* ---------- 数字亮点 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat__num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
}

.stat__num .unit {
  font-size: 26px;
  font-weight: 700;
  margin-left: 4px;
}

.stat__label {
  margin-top: 8px;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-navy);
}

.stat__desc {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

/* ---------- 滚动进入动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  padding: 24px 0;
}

.breadcrumb a:hover {
  color: var(--c-primary);
}

.breadcrumb .sep {
  color: var(--c-border);
}

/* ---------- 浏览量 ---------- */
.views {
  color: var(--c-text-3);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.article__meta .views {
  font-size: var(--fs-sm);
}

.news-card__meta .views,
.news-preview__item .views {
  margin-left: auto;
}

/* ---------- 表单 ---------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy);
}

.form-field input,
.form-field textarea {
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: var(--fs-md);
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(20, 102, 240, 0.12);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  :root {
    --section-gap: 72px;
    --fs-h2: 30px;
    --fs-h1: 36px;
  }

  .stats {
    gap: 20px;
  }

  .stat__num {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
    --fs-h2: 26px;
    --fs-h1: 30px;
    --fs-h3: 22px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
