/* ==========================================================================
   base.css —— 全站基础变量、重置与通用排版
   修改主题配色只需改本文件顶部的 :root 变量，全站生效。
   参考成都产业集团官网的国企门户风格：深蓝主色 + 中国红强调 + 克制金点缀。
   ========================================================================== */

:root {
  /* 品牌色：深蓝主色 + 中国红点缀 + 金线点缀 */
  --c-primary: #0d2b5c;
  --c-primary-dark: #081c3f;
  --c-primary-light: #1a4a91;
  --c-accent: #c8102e;
  --c-accent-dark: #a50d26;
  --c-accent-soft: #fdecef;
  --c-gold: #c8a15a;

  /* 文字与背景 */
  --c-text: #1f2937;
  --c-text-soft: #4b5563;
  --c-muted: #6b7280;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f7fb;
  --c-bg-deep: #0a244e;
  --c-border: #e4e9f1;

  /* 形状与阴影 */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(13, 43, 92, 0.08);
  --shadow: 0 8px 28px rgba(13, 43, 92, 0.12);
  --shadow-lg: 0 18px 46px rgba(13, 43, 92, 0.18);

  /* 布局 */
  --maxw: 1200px;
  --header-h: 78px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.55em;
  line-height: 1.35;
  font-weight: 700;
  color: var(--c-primary);
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

table { border-collapse: collapse; width: 100%; }

hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 36px 0;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* 文本工具类 */
.text-center { text-align: center; }
.text-accent { color: var(--c-accent); }
.text-muted { color: var(--c-muted); }
.text-soft { color: var(--c-text-soft); }

@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 27px; }
  h2 { font-size: 23px; }
  h3 { font-size: 18px; }
}
