/**
 * ============================================================
 *  base.css · 全局变量 / Reset / 基础组件
 * ============================================================
 */

/* ---------- CSS 变量 ---------- */
:root {
  --jpy-primary: #1e52ff;      /* 科技宝蓝色 */
  --jpy-primary-dark: #0937da; /* 深邃蓝 */
  --jpy-secondary: #00c2ff;    /* 极客青色 */
  --jpy-accent: #6366f1;       /* 靛蓝色 */
  --jpy-dark: #0a0f26;         /* 高端深蓝底色 */
  --jpy-dark-slate: #151b36;   /* 卡片/副背景暗色 */
  --jpy-text: #1e293b;         /* 灰黑色文本 (Slate 800) */
  --jpy-muted: #475569;        /* 辅助灰文本 (Slate 600) */
  --jpy-light: #94a3b8;        /* 浅灰文本 (Slate 400) */
  --jpy-line: #f1f5f9;         /* 描边线 (Slate 100) */
  --jpy-bg: #f8fafc;           /* 页面辅助背景 (Slate 50) */
  --jpy-white: #ffffff;
  
  /* 渐变色 */
  --jpy-grad-primary: linear-gradient(135deg, #1e52ff 0%, #00c2ff 100%);
  --jpy-grad-dark: linear-gradient(135deg, #0a0f26 0%, #151b36 100%);
  --jpy-grad-banner: linear-gradient(135deg, #09132c 0%, #0e244d 100%);
  
  /* 间距与结构 */
  --jpy-header-h: 80px;
  --jpy-wrapper: 1200px; /* 对齐易百讯舒适阅读宽，兼顾大屏留白 */
  --jpy-radius: 16px;
  
  /* 质感阴影 */
  --jpy-shadow: 0 10px 30px -10px rgba(30, 82, 255, 0.04);
  --jpy-shadow-hover: 0 20px 40px -15px rgba(30, 82, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--jpy-text);
  background: var(--jpy-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  font-weight: normal;
}

button,
input,
textarea,
select {
  font: inherit;
  outline: none;
}

/* ---------- 布局容器 ---------- */
.wrapper {
  width: 92%;
  max-width: var(--jpy-wrapper);
  margin: 0 auto;
}

.page-main {
  padding-top: var(--jpy-header-h);
  min-height: 70vh;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 50px;
  padding: 0 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 82, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  color: #fff;
  background-image: var(--jpy-grad-primary);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 82, 255, 0.25);
  filter: brightness(1.08);
}

.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  box-shadow: none;
}

.btn-outline:hover {
  border-color: transparent;
  background: var(--jpy-white);
  color: var(--jpy-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.15);
}

.btn-outline-dark {
  color: var(--jpy-text);
  border-color: var(--jpy-muted);
  background: transparent;
  box-shadow: none;
}

.btn-outline-dark:hover {
  color: #fff;
  border-color: transparent;
  background: var(--jpy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 15, 38, 0.15);
}

/* ---------- 通用区块标题 ---------- */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--jpy-dark);
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.section-title p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--jpy-muted);
}

.section-title .accent-bar {
  width: 50px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 2px;
  background-image: var(--jpy-grad-primary);
}

/* ---------- 内页 Banner ---------- */
.page-banner {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #050a1e url("../images/hero-bg.png") no-repeat center 35% / cover;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 30, 0.55) 0%, rgba(5, 10, 30, 0.78) 100%);
  pointer-events: none;
}

.page-banner .inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-banner h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-banner p {
  margin-top: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- 工具类 ---------- */
.text-muted { color: var(--jpy-muted); }
.text-light { color: var(--jpy-light); }
.text-primary { color: var(--jpy-primary); }
.bg-soft { background: var(--jpy-bg); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  :root {
    --jpy-header-h: 76px;
  }
  .section {
    padding: 72px 0;
  }
  .section-title h2 {
    font-size: 30px;
  }
  .page-banner {
    height: 280px;
  }
  .page-banner h1 {
    font-size: 32px;
  }
}
