/* 福星何大師 CIS tokens（唯一色票、字型、圓角、陰影、動態）
   來源：_plan/cis/cis.brief.md（2026-11-26 11:45 確認）
   方向：當代師者書房｜色彩：紙白藏藍｜字型：書房宋黑配｜卡片：章節目錄卡｜動態：星軌開場（高）
   其他 css 一律引用這裡的變數，不另寫色碼。 */
:root{
  /* 色彩：紙白藏藍 */
  --c-deep:#142D4E;
  --c-primary:#142D4E;
  --c-accent:#C9A86C;        /* 香檳金：只作裝飾線、框、弧線，不承載小字 */
  --c-highlight:#2878C8;     /* 科技藍：只用在 AI 相關模組 */
  --c-bg:#F7F3EA;            /* 紙色頁面底 */
  --c-surface:#FFFDFA;       /* 卡片、表單、頁首 */
  --c-ink:#182536;
  --c-muted:#58616B;
  --c-line:#DCD5C8;

  /* 衍生色（由上方色票調出，不新增色相） */
  --c-deep-2:#0D1C30;                 /* 頁尾、深色聲場底 */
  --c-deep-3:#1C3A61;                 /* 深藍內層 */
  --c-on-deep:#F4EEE2;                /* 深底上的米白字 */
  --c-on-deep-muted:rgba(244,238,226,.78);
  --c-line-deep:rgba(201,168,108,.34);/* 深底上的金色細框 */
  --c-paper-2:#EFE8DA;                /* 紙頁折角背面、次要紙色區塊 */
  --c-accent-soft:#EFE6D3;
  --c-highlight-soft:#E3EDF8;
  --c-highlight-on-deep:#8FBAE8;      /* 深底上的 AI 標記 */
  --c-press:#EDE5D5;                  /* 手機按下的短暫底色 */
  --c-focus:#C9A86C;                  /* 鍵盤焦點：完整金色外框 */
  --c-accent-ink:#8A6A35;             /* 金色系小字（區塊標籤、次要按鈕字）：加深以維持可讀性 */

  /* 紙紋：極淡、靜止 */
  --tex-paper:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");

  /* 識別圖形：金色雙菱結（元件板「識別圖形」） */
  --orn-knot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 24'%3E%3Cg fill='none' stroke='%23C9A86C' stroke-width='1.3'%3E%3Cpath d='M18 12l7-7 7 7-7 7z'/%3E%3Cpath d='M32 12l7-7 7 7-7 7z'/%3E%3Cpath d='M23 12l9-9 9 9-9 9z'/%3E%3Cpath d='M0 12h18M46 12h18'/%3E%3C/g%3E%3C/svg%3E");
  --img-mountains:url("../img/deco-mountains.webp");
  --img-plum:url("../img/deco-plum.webp");
  --img-bamboo:url("../img/deco-bamboo.webp");

  /* 參考網站（2026-11-26 解析）：kurobe 按鈕箭頭接力、wandy 擦開與慢淡入、yestooco 紙紋與浮水印 */
  --arw-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h11M8 3l4 4-4 4' fill='none' stroke='%23FFFDFA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arw-deep:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h11M8 3l4 4-4 4' fill='none' stroke='%23142D4E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arw-gold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h11M8 3l4 4-4 4' fill='none' stroke='%238A6A35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ease-expo:cubic-bezier(.19,1,.22,1);      /* kurobe：按鈕圓圈填色、箭頭接力 */
  --ease-soft:cubic-bezier(.355,.395,.185,1); /* wandy：圖片擦開、文字淡入、細線畫出 */
  --t-arrow:500ms;
  --t-wipe:900ms;
  --t-text:1200ms;
  --c-watermark:rgba(20,45,78,.055);          /* yestooco：區塊背後的大型英文浮水印 */
  --c-watermark-deep:rgba(244,238,226,.06);

  /* 字型：書房宋黑配 */
  --f-heading:"Instrument Serif","Noto Serif TC","Songti TC",serif; /* 英數走 Instrument Serif，中文走 Noto Serif TC */
  --f-heading-cjk:"Noto Serif TC","Songti TC",serif;
  --fw-heading:700;
  --f-body:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;
  --f-latin:"Instrument Serif","Noto Serif TC",serif;
  --f-num:"Manrope","Noto Sans TC",sans-serif;

  /* 圓角 */
  --r-btn:10px;        /* 實作啟動鍵：圓角大按鈕 */
  --r-box:8px;         /* CTA 深藍框、表單 */
  --r-card:6px;        /* 服務卡：小圓角（依 GPT 元件板） */
  --r-photo:0;         /* 書頁橫幅紀實：方形裁切 */
  --r-chip:2px;

  /* 陰影：卡片不用陰影，只留給按鈕上提與浮層 */
  --sh-card:0 6px 22px rgba(20,45,78,.07);
  --sh-lift:0 8px 18px rgba(20,45,78,.16);
  --sh-pop:0 12px 28px rgba(20,45,78,.12);

  /* 動態：星軌開場（高） */
  --ease:cubic-bezier(.2,.7,.2,1);
  --t-btn:300ms;       /* 主按鈕外側金弧展開 */
  --t-card:240ms;
  --t-reveal:600ms;
  --t-orbit:900ms;     /* 星軌一次小角度旋轉與展開 */
  --t-slot:700ms;      /* 知識插槽對齊 */
  --stagger:90ms;
  --lift:-2px;         /* 按鈕輕微上提 */
  --arrow-shift:5px;
  --slot-shift:12px;

  /* 水墨動態（2026-11-26，ink.css／ink.js；素材 gpt-image-2 白底轉透明） */
  --img-ink-mist:url("../img/ink-mist.webp");     /* 雲霧帶：主視覺、內頁頁首緩慢飄移 */
  --img-ink-blot:url("../img/ink-blot.webp");     /* 墨滴暈開：圖片暈染進場的遮罩、資歷帶墨點、卡片懸停墨暈 */
  --img-ink-wash:url("../img/ink-wash.webp");     /* 淡墨雲：區塊交界的墨暈、主視覺人物後方墨綻 */
  --img-ink-stroke:url("../img/ink-stroke.webp"); /* 乾筆刷痕：標題後方，捲動時畫出 */
  --img-petal-1:url("../img/ink-petal-1.webp");
  --img-petal-2:url("../img/ink-petal-2.webp");
  --img-petal-3:url("../img/ink-petal-3.webp");
  --img-petal-4:url("../img/ink-petal-4.webp");
  --img-dot-1:url("../img/ink-dot-1.webp");
  --img-dot-2:url("../img/ink-dot-2.webp");
  --img-dot-3:url("../img/ink-dot-3.webp");
  --ink-a-brush:.085;      /* 刷痕濃度（紙底） */
  --ink-a-wash:.3;         /* 區塊交界墨暈最濃時 */
  --ink-a-ripple:.07;      /* 卡片懸停墨暈 */
  --ink-a-ondeep:.08;      /* 深藍底上的淡山（米白） */
  --t-ink-bleed:1800ms;    /* 圖片墨暈進場 */
  --ease-bleed:cubic-bezier(.55,0,.3,1); /* 墨暈：先慢慢滲、再化開 */
  --t-ink-intro:2600ms;    /* 主視覺遠山墨暈、人物後方墨綻 */
  --t-ink-ripple:900ms;
  --t-ink-count:1400ms;    /* 資歷數字 */
  --t-mist:46s;            /* 雲霧來回一次 */
  --ease-ink:cubic-bezier(.22,.61,.36,1);
}
