/* ================================================================
   金石量化 - 共享基础样式 (Common)
   所有页面的 CSS 变量、Reset、基础排版
   始终作为第一个样式表加载
   ================================================================ */

/* ---- CSS Custom Properties (合并 sponsor.css + admin.css) ---- */
:root {
  /* 品牌色 */
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;

  /* 功能色 */
  --gold: #f0a500;
  --gold-dark: #c48800;
  --gold-light: #fff8e7;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --success: #16a34a;
  --warning: #f59e0b;

  /* 品牌蓝 (文档/首页用) */
  --c-brand: #2080f0;
  --c-brand-light: #3d8cf0;
  --c-brand-dark: #1060c0;

  /* 中性色 */
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #eaecef;

  /* 文档色 */
  --c-text: #2c3e50;
  --c-text-light: #476582;
  --c-text-lighter: #90a4b7;
  --c-bg: #ffffff;
  --c-bg-light: #f8fafc;
  --c-code-bg: #282c34;

  /* 圆角/阴影 */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.15);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
         "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;

  /* 布局 */
  --sidebar-width: 260px;
  --navbar-height: 60px;
  --container-max: 1100px;
}

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

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---- Shared Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Shared Utility ---- */
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
