/* ============================================
   墨阅 · 文艺书卷风 — 基础设计令牌
   主色：暖棕 #8B6914
   底色：米黄羊皮纸 #FDF6E3
   ============================================ */

:root {
  /* —— 品牌色 —— */
  --ink-primary: #8B6914;        /* 墨棕：主色 */
  --ink-primary-light: #A67C00;  /* 浅墨棕：hover */
  --ink-primary-dark: #6B4F0F;   /* 深墨棕：active */
  --ink-accent: #B8860B;         /* 暗金：强调 */
  --ink-red: #A0522D;            /* 赭石：警示/删除 */
  --ink-green: #556B2F;          /* 橄榄绿：成功 */

  /* —— 纸色（背景）—— */
  --paper-bg: #FDF6E3;           /* 米白：主背景 */
  --paper-bg-dark: #F4ECD8;      /* 米黄：次级背景 */
  --paper-bg-deep: #E8DCC0;      /* 深米：卡片/分区 */
  --paper-bg-hover: #F0E6CC;     /* hover背景 */
  --paper-border: #D4C5A5;       /* 浅棕：边框线 */
  --paper-divider: #E5D9BD;      /* 分割线 */

  /* —— 文字色 —— */
  --text-primary: #2a1a08;       /* 深棕黑：主文字 */
  --text-secondary: #6B5B3E;     /* 中棕：次级文字 */
  --text-tertiary: #9B8B6E;      /* 浅棕：辅助文字 */
  --text-placeholder: #B8A88A;   /* 更浅：占位符 */
  --text-inverse: #FDF6E3;       /* 反色：深色背景上的字 */

  /* —— 字体 —— */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "思源宋体", "SimSun", "宋体", "STSong", serif;
  --font-kai: "KaiTi", "STKaiti", "楷体", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;

  /* —— 字号 —— */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */

  /* —— 间距 —— */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* —— 圆角 —— */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* —— 阴影 —— */
  --shadow-sm: 0 1px 2px rgba(107, 79, 15, 0.05);
  --shadow-md: 0 4px 12px rgba(107, 79, 15, 0.08);
  --shadow-lg: 0 8px 24px rgba(107, 79, 15, 0.12);
  --shadow-ink: 2px 2px 0 rgba(107, 79, 15, 0.15);  /* 印章风格投影 */

  /* —— 动效 —— */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* —— 布局 —— */
  --container-max: 1200px;
  --header-height: 64px;
  --content-max-width: 720px;

  /* —— 顶栏 —— */
  --header-bg: rgba(253, 246, 227, 0.85);
}

/* —— 深色模式（夜间阅读）—— */
[data-theme="night"] {
  --paper-bg: #1A1612;
  --paper-bg-dark: #241F19;
  --paper-bg-deep: #2E2820;
  --paper-bg-hover: #383026;
  --paper-border: #3D3328;
  --paper-divider: #2E2820;

  --text-primary: #D4C5A5;
  --text-secondary: #A89878;
  --text-tertiary: #7A6B50;
  --text-placeholder: #5A4E38;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  --header-bg: rgba(26, 22, 18, 0.85);
}
