/* ==========================================================================
   base.css —— 设计令牌 / 重置 / 排版 / 通用组件
   站点：领星WMS 官网精简版
   ========================================================================== */

/* ---------- 设计令牌（Design Tokens） ---------- */
:root {
  /* 品牌蓝 */
  --color-primary: #3075ff;        /* 主色 B500 */
  --color-primary-deep: #0b5cff;   /* 深一档 B600 */
  --color-primary-dark: #0041d9;   /* 更深 B700 */
  --color-primary-light: #e6f2ff;  /* 浅底 B100 */
  --color-primary-border: #d8e5ff; /* 边框 B200 */

  /* 文字 */
  --color-text-heading: #00153f;   /* 标题 GB800 */
  --color-text-body: #516080;      /* 正文 GB600 */
  --color-text-muted: #8996ae;     /* 次要 GB500 */
  --color-text-white: #ffffff;

  /* 背景 / 边框 */
  --color-bg-page: #ffffff;
  --color-bg-soft: #f7faff;        /* 浅蓝灰 GB50 */
  --color-bg-card: #ffffff;
  --color-border: #e2ecff;

  /* 功能色 */
  --color-danger: #f53f3f;
  --color-warning: #ff7d00;
  --color-success: #00b42a;

  /* 尺寸 */
  /* 内容区宽度与 alipan.com 对齐：全宽布局 + 左右各 9.72vw 内边距
     （1280 视口下左右各 124.44px，内容区 ≈ 视口的 80.6%） */
  --container-gutter: 9.72vw;
  --header-top-height: 40px;
  --header-nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 24px rgba(48, 117, 255, 0.08);
  --shadow-hover: 0 12px 32px rgba(48, 117, 255, 0.16);

  /* 字体 */
  --font-main: "OPPO Sans", "Source Han Sans CN", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  /* 正文字号参考 crmeb.com：正文 14–15px / 400（1440 视口实测） */
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-body);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4 {
  color: var(--color-text-heading);
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

.section {
  padding: 72px 0;
}

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

/* 区块标题 */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head .section-head-title {
  font-size: 55px;
  font-weight: 700;
  line-height: 80px;
  letter-spacing: normal;
  color: #00031F;
}

.section-head .section-head-sub {
  margin-top: 12px;
  font-size: 25px;
  line-height: 37.5px;
  color: var(--color-text-muted);
}

/* 资讯中心 → 链接 hover 效果 */
a.section-head-link {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
a.section-head-link:hover {
  color: #1677ff;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 28px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-primary-deep);
  box-shadow: 0 8px 20px rgba(48, 117, 255, 0.35);
  transform: translateY(-1px);
}

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

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

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

.btn--white:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn--sm {
  height: 36px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 18px;
}

.btn--lg {
  height: 52px;
  padding: 0 40px;
  border-radius: 26px;
  font-size: 17px;
}

/* ---------- 标签 / 徽标 ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ---------- 网格工具 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

/* ---------- 响应式 ---------- */
/* 平板及以下：收窄侧边距（与 alipan 小屏行为一致，内容接近全宽） */
@media (max-width: 1024px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 833px) {
  .section {
    padding: 48px 0;
  }

  /* 手机版字号完全按 xlwms.com 600x900（375 基准 x 视口/375 缩放）：
     区块标题 32px@600 = 5.33vw */
  .section-head .section-head-title {
    font-size: 5.33vw;
  }

  .section-head .section-head-sub {
    font-size: 4.27vw;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  /* xlwms 手机按钮：51.2px 高 / 25.6px 字 @600 = 8.53vw / 4.27vw */
  .btn {
    height: 8.53vw;
    padding: 0 5.33vw;
    font-size: 4.27vw;
  }
}
