/* ==========================================================================
   学校表白墙 (Campus Confession Wall) — Design Tokens
   严格依据 3-01-设计风格指南.md 量化参数实现
   默认锁定方案二：多巴胺手账拼贴 (Dopamine Campus Zine)
   同时支持无缝切换方案一（落日玻璃拟态）与方案三（星夜极光暗色）
   ========================================================================== */

:root,
[data-theme="zine"] {
  /* === 背景与纸感表面 === */
  --bg-canvas: #FFFBF2;
  --bg-dot-color: #DFD5C3;
  --surface-card: #FFFFFF;
  --surface-highlight: #FFF7D6;
  --surface-subtle: #F7F1E3;
  --surface-header: rgba(255, 251, 242, 0.92);
  --surface-modal: #FFFBF2;

  /* === 墨线骨架与文字 === */
  --ink-primary: #1E1E24;
  --ink-body: #3A3A44;
  --ink-muted: #767684;
  --ink-faint: #9B9BA8;
  --ink-inverse: #FFFFFF;

  /* === 多巴胺功能色板 === */
  --brand-primary: #FF4D6D;
  --brand-primary-hover: #FF3358;
  --brand-primary-active: #E0284D;
  --brand-gradient: #FF4D6D;

  --accent-yellow: #FFD166;
  --accent-mint: #06D6A0;
  --accent-blue: #4D96FF;
  --accent-purple: #B388FF;
  --semantic-danger: #EF233C;
  --semantic-safe: #06D6A0;

  /* === 描边与硬投影体系 === */
  --border-width-base: 2px;
  --border-width-chip: 1.5px;
  --border-ink: 2px solid #1E1E24;
  --border-chip: 1.5px solid #1E1E24;
  --border-divider: 2px dashed rgba(30, 30, 36, 0.14);

  --shadow-sm: 2px 2px 0px #1E1E24;
  --shadow-md: 4px 4px 0px #1E1E24;
  --shadow-lg: 5px 5px 0px #1E1E24;
  --shadow-hover: 6px 6px 0px #1E1E24;
  --shadow-press: 1px 1px 0px #1E1E24;
  --shadow-focus: 4px 4px 0px #FFD166;
  --shadow-btn-primary: 4px 4px 0px #1E1E24;

  /* === 圆角体系 === */
  --radius-chip: 8px;
  --radius-control: 12px;
  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-modal: 20px;

  /* === 字体与节奏 === */
  --font-display: "Smiley Sans", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Space Grotesk", "Outfit", ui-monospace, SFMono-Regular, monospace;
  --font-quote: "LXGW WenKai", "STKaiti", "KaiTi", serif;

  --text-h1-size: 26px;
  --text-h1-weight: 800;
  --text-h1-lh: 1.25;
  --text-h1-ls: -0.02em;

  --text-card-title-size: 18px;
  --text-card-title-weight: 700;
  --text-card-title-lh: 1.4;

  --text-body-size: 15px;
  --text-body-weight: 400;
  --text-body-lh: 1.65;
  --text-body-ls: 0em;

  --card-padding: 18px;
  --backdrop-blur: none;

  /* 主题专属行为变量 */
  --washi-display: block;
  --topbar-height: 6px;
  --btn-hover-y: -1px;
  --btn-hover-x: -1px;
  --btn-active-x: 3px;
  --btn-active-y: 3px;
}

/* ==========================================================================
   风格方案一：落日玻璃拟态 (Sunset Glassmorphism · 柔光浪漫风)
   ========================================================================== */
[data-theme="sunset"] {
  --bg-canvas: #FFF9FB;
  --bg-dot-color: transparent;
  --surface-card: rgba(255, 255, 255, 0.62);
  --surface-highlight: rgba(255, 245, 248, 0.78);
  --surface-subtle: rgba(255, 255, 255, 0.55);
  --surface-header: rgba(255, 249, 251, 0.72);
  --surface-modal: rgba(255, 255, 255, 0.86);

  --ink-primary: #2B2433;
  --ink-body: #4A4154;
  --ink-muted: #8E849B;
  --ink-faint: #B6AEBE;
  --ink-inverse: #FFFFFF;

  --brand-primary: #FF5C8A;
  --brand-primary-hover: #E64574;
  --brand-primary-active: #CC3360;
  --brand-gradient: linear-gradient(135deg, #FF5C8A 0%, #FF8A65 100%);

  --accent-yellow: #FF9F43;
  --accent-mint: #2EC4B6;
  --accent-blue: #6C9BFF;
  --accent-purple: #8B7CFF;
  --semantic-danger: #FF477E;
  --semantic-safe: #2EC4B6;

  --border-width-base: 1px;
  --border-width-chip: 1px;
  --border-ink: 1px solid rgba(255, 255, 255, 0.75);
  --border-chip: 1px solid rgba(255, 92, 138, 0.22);
  --border-divider: 1px solid rgba(255, 92, 138, 0.12);

  --shadow-sm: 0 4px 12px rgba(139, 124, 255, 0.08);
  --shadow-md: 0 8px 24px rgba(139, 124, 255, 0.10);
  --shadow-lg: 0 10px 32px rgba(139, 124, 255, 0.08), 0 2px 8px rgba(255, 92, 138, 0.05);
  --shadow-hover: 0 16px 38px rgba(255, 92, 138, 0.14), 0 4px 12px rgba(139, 124, 255, 0.10);
  --shadow-press: 0 4px 12px rgba(255, 92, 138, 0.25);
  --shadow-focus: 0 0 0 3px rgba(255, 92, 138, 0.22);
  --shadow-btn-primary: 0 8px 20px -4px rgba(255, 92, 138, 0.42);

  --radius-chip: 9999px;
  --radius-control: 16px;
  --radius-btn: 9999px;
  --radius-card: 20px;
  --radius-modal: 24px;

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif;
  --font-mono: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --text-h1-size: 24px;
  --text-h1-weight: 700;
  --text-h1-lh: 1.35;
  --text-h1-ls: 0em;

  --text-card-title-size: 17px;
  --text-card-title-weight: 600;
  --text-card-title-lh: 1.45;

  --text-body-size: 15px;
  --text-body-weight: 400;
  --text-body-lh: 1.7;
  --text-body-ls: 0em;

  --card-padding: 20px;
  --backdrop-blur: blur(16px) saturate(180%);

  --washi-display: none;
  --topbar-height: 4px;
  --btn-hover-y: -2px;
  --btn-hover-x: 0px;
  --btn-active-x: 0px;
  --btn-active-y: 1px;
}

/* ==========================================================================
   风格方案三：星夜极光暗色 (Midnight Aurora Dark · 深夜树洞风)
   ========================================================================== */
[data-theme="aurora"] {
  --bg-canvas: #0B1020;
  --bg-dot-color: transparent;
  --surface-card: rgba(21, 28, 50, 0.72);
  --surface-highlight: rgba(30, 41, 72, 0.85);
  --surface-subtle: rgba(255, 255, 255, 0.05);
  --surface-header: rgba(11, 16, 32, 0.78);
  --surface-modal: rgba(17, 23, 43, 0.94);

  --ink-primary: #F4F6FF;
  --ink-body: #C7CFE6;
  --ink-muted: #7E8BB0;
  --ink-faint: #4C5778;
  --ink-inverse: #FFFFFF;

  --brand-primary: #FF4F8B;
  --brand-primary-hover: #FF6B9E;
  --brand-primary-active: #E03A73;
  --brand-gradient: linear-gradient(135deg, #FF4F8B 0%, #7C5CFF 100%);

  --accent-yellow: #FBBF24;
  --accent-mint: #34D399;
  --accent-blue: #38BDF8;
  --accent-purple: #7C5CFF;
  --semantic-danger: #FB7185;
  --semantic-safe: #38BDF8;

  --border-width-base: 1px;
  --border-width-chip: 1px;
  --border-ink: 1px solid rgba(255, 255, 255, 0.10);
  --border-chip: 1px solid rgba(124, 92, 255, 0.30);
  --border-divider: 1px solid rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(124, 92, 255, 0.22);
  --shadow-press: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-focus: 0 0 0 2px rgba(255, 79, 139, 0.45), 0 0 18px rgba(124, 92, 255, 0.25);
  --shadow-btn-primary: 0 0 22px rgba(255, 79, 139, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.25);

  --radius-chip: 9999px;
  --radius-control: 14px;
  --radius-btn: 14px;
  --radius-card: 18px;
  --radius-modal: 22px;

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif;
  --font-mono: "Inter", "SF Pro Display", system-ui, sans-serif;

  --text-h1-size: 24px;
  --text-h1-weight: 600;
  --text-h1-lh: 1.35;
  --text-h1-ls: 0.01em;

  --text-card-title-size: 17px;
  --text-card-title-weight: 600;
  --text-card-title-lh: 1.45;

  --text-body-size: 15px;
  --text-body-weight: 400;
  --text-body-lh: 1.75;
  --text-body-ls: 0.02em;

  --card-padding: 20px;
  --backdrop-blur: blur(14px);

  --washi-display: none;
  --topbar-height: 3px;
  --btn-hover-y: -1px;
  --btn-hover-x: 0px;
  --btn-active-x: 0px;
  --btn-active-y: 1px;
}
