/* ==========================================================
   site.css（整理版｜可整份直接貼上）
   目標：
   1) 全站版心 1180px
   2) 左側選單 + 右側內容（桌機兩欄）
   3) 桌機寬度不夠 → 整頁可左右滑
   4) 手機 → 自動改單欄，不左右滑
   5) ✅ 右側主內容卡片：霧面玻璃感（方案 B）
   6) ✅ 側欄不要卡片內捲動（避免捲軸又出現）
========================================================== */


/* =========================
   全站寬度 / 變數
========================= */
:root{
  --page-max: 1180px;
  --admin-max: 1180px;

  --brand-purple: #7c3aed;

  /* ✅ 按鈕飽和度 */
  --btn-sat: .86;
  --btn-sat-hover: .94;
  --btn-sat-active: .82;

  /* ✅ navbar fixed-top 高度（側欄 sticky / 內容上方預留） */
  --topbar-h: 56px;

  /* ✅ Layout */
  --shell-pad: 16px;
  --gap: 18px;
  --aside-w: 270px;
  --aside-w-sm: 240px;

  /* ✅ Card */
  --card-radius: 16px;
  --card-shadow: 0 12px 30px rgba(83,70,186,.10);
  --line: #eef0f7;
  --muted: #6b7280;

  /* ✅ 兩欄最小總寬（小於就左右滑） */
  --grid-min: 980px;
}

/* 讓變數套用到 Bootstrap 容器 */
.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl{
  max-width: var(--page-max);
}

/* 後台或特定頁想更寬：外層容器加 .admin-container */
.admin-container{
  max-width: var(--admin-max) !important;
}

body{
  margin: 0;
  font-family: "Noto Sans TC","微軟正黑體","Microsoft JhengHei",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================
   通用：表單/排版
========================= */
h1, h2 { color: #333; }

form label{
  display:block;
  margin:10px 0 5px;
}

input[type="text"], input[type="password"], select{
  width:100%;
  padding:8px;
  box-sizing:border-box;
  margin-bottom:15px;
}

/* 不要把 Bootstrap 的 .btn 洗掉 */
button:not(.btn){
  background-color:#4285f4;
  color:white;
  border:none;
  padding:10px 16px;
  cursor:pointer;
  border-radius:8px;
  transition: background-color .2s ease, box-shadow .2s ease, transform .02s ease;
}
button:not(.btn):hover{ background-color:#2a66c9; }
button:not(.btn):active{ transform: translateY(1px); }
button:not(.btn):focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(66,133,244,.35);
}

video{ display:block; margin-bottom:10px; }

/* 新建卡片外觀（需要時才加 <div class="card-wrap">） */
.card-wrap{
  background:#fff;
  padding:30px;
  border-radius:12px;
  box-shadow:0 0 8px rgba(0,0,0,0.08);
  margin:30px 0;
}


/* =========================
   購物車數量徽章
========================= */
.cart-badge{
  display:inline-block !important;
  min-width:1.6em;
  padding:2px 10px;
  border-radius:999px;
  color:#fff;
  font-weight:700;
  font-size:.78rem;
  line-height:1.2;
  border:1px solid rgba(255,255,255,.45);
  text-shadow:0 1px 0 rgba(0,0,0,.15);
  box-shadow:0 2px 10px rgba(0,0,0,.15);
  transform-origin:center;
}
@keyframes cartPop{
  0%{transform:scale(.9)}
  70%{transform:scale(1.08)}
  100%{transform:scale(1)}
}
.cart-badge.pop,
a.nav-link .cart-badge.pop{ animation:cartPop .22s ease; }

.cart-badge.g-purple{
  background:linear-gradient(135deg,#c084fc,#7c3aed);
  box-shadow:0 2px 10px rgba(124,58,237,.35);
}

/* 白色膠囊（高對比） */
a.nav-link .cart-badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:1.6em; padding:2px 10px; border-radius:9999px;
  background:#ffffff;
  color:#1f2937 !important;
  font-weight:700; font-size:.78rem; line-height:1.1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  border:1px solid rgba(2,6,23,.08);
  box-shadow:
    0 8px 18px rgba(2,6,23,.10),
    inset 0 1px 0 rgba(255,255,255,.9);
}
a.nav-link .cart-badge.ring-purple{
  border-color: rgba(124,58,237,.35);
  box-shadow:
    0 0 0 2px rgba(124,58,237,.15),
    0 8px 18px rgba(2,6,23,.10),
    inset 0 1px 0 rgba(255,255,255,.9);
}


/* =========================
   Hero arrows — 玻璃感白箭頭
========================= */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next{
  --hero-arrow-size: 52px;
  --hero-arrow-bg: rgba(16,16,16,.45);
  --hero-arrow-bg-hover: rgba(16,16,16,.70);
  --hero-arrow-border: rgba(255,255,255,.35);
  --hero-arrow-icon: #fff;

  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:var(--hero-arrow-size);
  height:var(--hero-arrow-size);
  opacity:1;
  border-radius:999px;
  background:var(--hero-arrow-bg);
  border:1px solid var(--hero-arrow-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:0 8px 22px rgba(0,0,0,.25);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hero-carousel .carousel-control-prev{ left:12px; }
.hero-carousel .carousel-control-next{ right:12px; }

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover{
  background: var(--hero-arrow-bg-hover);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.hero-carousel .carousel-control-prev:active,
.hero-carousel .carousel-control-next:active{
  transform: translateY(-50%) scale(.96);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon{
  width:18px;
  height:18px;
  background: var(--hero-arrow-icon);
  background-image:none;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat:no-repeat;
          mask-repeat:no-repeat;
  -webkit-mask-position:center;
          mask-position:center;
}
.hero-carousel .carousel-control-prev-icon{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 3 L5 8 L10 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 3 L5 8 L10 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hero-carousel .carousel-control-next-icon{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3 L11 8 L6 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3 L11 8 L6 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hero-carousel .carousel-control-prev:focus-visible,
.hero-carousel .carousel-control-next:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.6);
}
@media (max-width:576px){
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next{
    --hero-arrow-size: 44px;
  }
}

/* 文章/回顧內容裡的媒體不要超出容器 */
.post-body img,
.post-body video{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:12px;
}


/* =========================
   Footer 深色版
========================= */
.footer-neo,
.footer-neo .container,
.footer-neo .ft-legal{
  border-radius:0 !important;
  box-shadow:none !important;
}

.footer-neo.footer-dark{
  background:
    radial-gradient(800px 420px at 20% 0%, rgba(108,99,255,.18), transparent 55%),
    radial-gradient(700px 380px at 85% -10%, rgba(255,138,212,.14), transparent 50%),
    linear-gradient(180deg, #0f1220 0%, #12162a 100%);
  border-top:1px solid rgba(255,255,255,.06);
  color:#e6e9f4;
}
.footer-neo.footer-dark .ft-title{
  font-weight:800; letter-spacing:.3px;
  background: linear-gradient(135deg, #6b8cff, #9c6bff, #ff8ad4);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 0 22px rgba(156,107,255,.25);
}
.footer-neo.footer-dark .ft-list{ list-style:none; padding:0; margin:0; }
.footer-neo.footer-dark .ft-list li{ margin:.45rem 0; }
.footer-neo.footer-dark .ft-list a{
  color:#aab3d8;
  border-bottom:1px dashed transparent;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
  text-decoration:none;
}
.footer-neo.footer-dark .ft-list a:hover,
.footer-neo.footer-dark .ft-list a:focus-visible{
  color:#ffffff;
  border-color: rgba(156,107,255,.35);
  transform: translateX(2px);
  outline:none;
}
.footer-neo.footer-dark .ft-social{
  width:36px; height:36px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color:#cdd6ff;
  box-shadow:0 8px 28px rgba(108,99,255,.20);
  text-decoration:none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.footer-neo.footer-dark .ft-social:hover{
  transform: translateY(-2px);
  background: rgba(108,99,255,.18);
  color:#fff;
  box-shadow:0 12px 34px rgba(156,107,255,.28);
}
.footer-neo.footer-dark .ft-social img{ filter:none; }

.footer-neo.footer-dark .ft-legal{
  background: linear-gradient(90deg, rgba(107,140,255,.18), rgba(156,107,255,.18));
  border-top:1px solid rgba(255,255,255,.08)!important;
}
.footer-neo.footer-dark .ft-legal .text-muted{ color:#c9cffa!important; }
.footer-neo.footer-dark .container{ max-width: var(--page-max, 1080px); }

@media (max-width:575.98px){
  .footer-neo.footer-dark .ft-title{ margin-top:.25rem; }
  .footer-neo.footer-dark .ft-list li{ margin:.38rem 0; }
}

/* =========================
   動畫可及性：減少動效
========================= */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}


/* =========================
   ✅ 按鈕飽和度降低
========================= */
.btn:not(.btn-link):not(.btn-close){ filter: saturate(var(--btn-sat)); }
.btn:not(.btn-link):not(.btn-close):hover{ filter: saturate(var(--btn-sat-hover)); }
.btn:not(.btn-link):not(.btn-close):active{ filter: saturate(var(--btn-sat-active)); }

button:not(.btn),
input[type="submit"],
input[type="button"],
input[type="reset"]{ filter: saturate(var(--btn-sat)); }

button:not(.btn):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover{ filter: saturate(var(--btn-sat-hover)); }

/* 降低紫色飽和度：btn-primary */
.btn-primary{
  --bs-btn-bg: #7869d6;
  --bs-btn-border-color: #7869d6;
  --bs-btn-hover-bg: #6f61cd;
  --bs-btn-hover-border-color: #6f61cd;
  --bs-btn-active-bg: #6658c3;
  --bs-btn-active-border-color: #6658c3;
  --bs-btn-focus-shadow-rgb: 120,105,214;
}


/* ==========================================================
   ✅ Layout：左選單 + 右內容（桌機兩欄；寬度不夠就左右滑）
========================================================== */
.app-main-wrap{
  padding-top: var(--topbar-h);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-shell{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--shell-pad);
}

.site-grid{
  display: grid;
  grid-template-columns: var(--aside-w) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  min-width: var(--grid-min);
}

.site-main,
.site-main-card{
  min-width: 0;
}

/* navbar 內容跟版心一致（不改 navbar.html 也能置中） */
.navbar .container,
.navbar .container-fluid{
  max-width: var(--page-max);
}


/* =========================
   ✅ 右側主內容卡片：霧面玻璃（方案 B）
========================= */
.site-main-card{
  background: rgba(255,255,255,.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.45) !important;
  border-radius: var(--card-radius);
  box-shadow: 0 10px 26px rgba(83,70,186,.08) !important;
  padding: 18px;
}
.site-main-card > :first-child{ margin-top: 0 !important; }

/* ✅ 內層 frosted-bg：清掉白底（避免內容又白到底） */
.site-main-card .frosted-bg,
.frosted-bg{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}


/* =========================
   ✅ 左側 sticky（但不要卡片內捲動）
========================= */
.site-aside{
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}

.app-sidebar{ width: 100%; }
.app-sidebar ul{ list-style:none; padding:0; margin:0; }
.app-sidebar a{ text-decoration:none !important; }

/* ✅ 關鍵：不再限制 max-height、不再 overflow:auto → 不會出現內捲軸 */
.app-sidebar .sidebar-inner{
  border-radius: 16px;
  padding: 0;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  max-height: none !important;
  overflow: visible !important;
}


/* =========================
   ✅ Sidebar 樣式（沿用 app-sidebar）
========================= */
.app-sidebar .sidebar-title{
  margin: 0;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: .6px;
  color: #2c2f45;
  border-bottom: 1px solid rgba(238,240,247,.95);
  background: linear-gradient(135deg, rgba(131,93,255,.22), rgba(255,255,255,0));
}

.app-sidebar .sidebar-list{
  display:flex;
  flex-direction:column;
  gap:0;
  padding: 6px 0;
}

.app-sidebar .slink{
  position: relative;
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;

  padding: 11px 14px;
  border-radius: 0;

  background: transparent;
  border: 0;
  box-shadow: none;

  color: #2c2f45 !important;
  opacity: 1 !important;
  -webkit-text-fill-color:#2c2f45 !important;

  transition: background .14s ease;
}
.app-sidebar .slink + .slink{ border-top: 1px solid rgba(238,240,247,.9); }

.app-sidebar .slink i{
  width: 20px;
  font-size: 1.05rem;
  opacity: .85;
  display:inline-flex;
  justify-content:center;
  color:#2c2f45 !important;
}
.app-sidebar .slink span{
  font-weight: 800;
  letter-spacing: .2px;
  color:#2c2f45 !important;
}
.app-sidebar .slink::after{
  content: "›";
  margin-left: auto;
  font-size: 1.25rem;
  line-height: 1;
  opacity: .28;
  transform: translateY(-1px);
  color:#2c2f45;
}
.app-sidebar .slink:hover{ background: #f7f7ff; }

.app-sidebar .slink.active{
  background: rgba(124,58,237,.08);
  border-left: 4px solid rgba(124,58,237,.55);
  padding-left: 10px;
}
.app-sidebar .slink.active::after{ opacity: .45; }

.app-sidebar .sidebar-hr{
  height:1px;
  background: rgba(44,47,69,.14);
  margin: 12px 6px 8px;
}
.app-sidebar .sidebar-cap{
  font-size: 12px;
  color: rgba(44,47,69,.60);
  font-weight: 900;
  padding: 0 8px 4px;
}

/* ===== 修正：Sidebar 每一列高度完全一致 ===== */

/* 1) 每列固定基準高度，避免內容差一點就變矮/變高 */
.app-sidebar .slink{
  box-sizing: border-box;
  min-height: 46px;
  line-height: 1;
}

/* 2) 分隔線不要用 border-top（會改變高度），改用 inset shadow */
.app-sidebar .slink + .slink{
  border-top: 0 !important;
  box-shadow: inset 0 1px 0 rgba(238,240,247,.9);
}

/* 3) 讓「綜合管理」右邊的 ▶ 跟一般列的 › 一樣大，避免那列變矮 */
.app-sidebar .arrow{
  font-size: 1.25rem;
  line-height: 1;
}

/* collapse 那列：不要右側 › */
.app-sidebar .slink-collapse{ justify-content: space-between; }
.app-sidebar .slink-collapse::after{ display:none; }
.app-sidebar .arrow{
  opacity: .45;
  transition: transform .2s ease, opacity .2s ease;
  color:#2c2f45;
}
.app-sidebar .slink-collapse[aria-expanded="true"] .arrow{
  transform: rotate(90deg);
  opacity: .65;
}

.app-sidebar .sublink{
  display:block;
  margin: 6px 14px;
  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 8px 18px rgba(83,70,186,.08);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(44,47,69,.92) !important;
  -webkit-text-fill-color: rgba(44,47,69,.92) !important;
  text-decoration:none !important;
  font-weight: 750;

  transition: background .14s ease, box-shadow .14s ease;
}
.app-sidebar .sublink:hover{
  background: rgba(255,255,255,.70);
  box-shadow: 0 12px 22px rgba(83,70,186,.12);
}
.app-sidebar .sublink.active{
  background: rgba(124,58,237,.08);
  border-color: rgba(124,58,237,.18);
}


/* =========================
   分割畫面常見：左欄縮窄
========================= */
@media (max-width: 992px){
  :root{ --aside-w: var(--aside-w-sm); }
}


/* ==========================================================
   ✅ 手機版：單欄、不左右滑
========================================================== */
@media (max-width: 768px){
  .app-main-wrap{ overflow-x: hidden !important; }

  .site-grid{
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
  }

  .site-aside{
    position: static !important;
    top: auto !important;
  }

  .site-main-card{ padding: 14px !important; }
}

/* ✅ 全站：footer 不要出現在首屏，必須往下滑才看到 */
:root{
  --footer-below-fold: 300px;   /* footer 往下推多少（可調 160~320） */
  --content-footer-gap: 28px;   /* 內容與 footer 的距離（可調 20~48） */
}

/* 內容到底要留一點距離 */
main.app-main-wrap{
  padding-bottom: var(--content-footer-gap) !important;
}

/* 這段才是關鍵：用假底部把 footer 推到首屏下方 */
main.app-main-wrap::after{
  content: "";
  display: block;
  height: var(--footer-below-fold);
}

/* 手機不用推那麼多 */
@media (max-width: 768px){
  :root{ --footer-below-fold: 140px; }
}

/* =========================
   ✅ Sidebar menu 高度強制統一（最終修正）
========================= */

/* 每一列固定高度，避免 icon glyph 導致每列差 1~2px */
.app-sidebar .sidebar-list > li > a.slink,
.app-sidebar a.slink.slink-collapse{
  height: 48px;              /* 你想更高可改 50/52 */
  padding: 0 14px;           /* 由 height 決定上下，不再用 padding-top/bottom */
  box-sizing: border-box;

  display: flex;
  align-items: center;
  gap: 10px;

  line-height: 1;            /* 鎖死行高 */
}

/* icon 也鎖死高度與行高（Bootstrap Icons 是 ::before，很常是兇手） */
.app-sidebar .slink i{
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.app-sidebar .slink i::before{
  line-height: 1;
}

/* 文字不要換行，避免某些情況寬度不足就變高 */
.app-sidebar .slink span{
  white-space: nowrap;
  line-height: 1.1;
}

/* 綜合管理右邊箭頭大小一致 */
.app-sidebar .slink-collapse .arrow{
  font-size: 1.25rem;
  line-height: 1;
}

/* ==========================================================
   ✅ Sidebar hover 提醒特效（放 site.css 最底部）
   目標：滑過去微亮 + 左側提示條 + 微位移 + 陰影 + 箭頭更明顯
   不破壞你已鎖死的 height:48px
========================================================== */

:root{
  --sb-accent: rgba(124,58,237,.75);       /* 紫色提示條 */
  --sb-hover-bg: rgba(124,58,237,.07);     /* hover 背景 */
  --sb-hover-shadow: 0 10px 22px rgba(83,70,186,.10);
}

/* 你已鎖死高度，這裡只加效果，不改 height/padding */
.app-sidebar .slink{
  position: relative;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* 左側提示條：用 pseudo element，比 border-left 穩（不會改高度/排版） */
.app-sidebar .slink::before{
  content:"";
  position:absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 4px;
  border-radius: 4px;
  background: transparent;
  opacity: 0;
  transform: scaleY(.75);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

/* 右側箭頭（你目前用 ::after "›"）做變化 */
.app-sidebar .slink::after{
  transition: opacity .18s ease, transform .18s ease;
}

/* Hover 效果 */
.app-sidebar .slink:hover{
  background: var(--sb-hover-bg) !important;
  transform: translateX(2px);
  box-shadow: var(--sb-hover-shadow);
}
.app-sidebar .slink:hover::before{
  background: var(--sb-accent);
  opacity: 1;
  transform: scaleY(1);
}
.app-sidebar .slink:hover::after{
  opacity: .55;
  transform: translate(2px, -1px);
}

/* Active（目前頁面）也用 pseudo element 畫左條，避免你原本 border-left 造成位移 */
.app-sidebar .slink.active{
  background: rgba(124,58,237,.09) !important;
  padding-left: 14px !important;   /* ✅ 取消你原本 active 的 padding-left:10px 造成內容位移 */
  box-shadow: 0 10px 22px rgba(83,70,186,.10);
}
.app-sidebar .slink.active::before{
  background: rgba(124,58,237,.85);
  opacity: 1;
  transform: scaleY(1);
}
.app-sidebar .slink.active::after{ opacity: .6; }

/* 子選單 sublink 也加一點提醒感（跟你白色膠囊一致） */
.app-sidebar .sublink{
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.app-sidebar .sublink:hover{
  background: rgba(124,58,237,.06);
  border-color: rgba(124,58,237,.22);
  transform: translateX(2px);
  box-shadow: 0 12px 22px rgba(83,70,186,.12);
}

/* 無障礙：降低動態 */
@media (prefers-reduced-motion: reduce){
  .app-sidebar .slink,
  .app-sidebar .slink::before,
  .app-sidebar .slink::after,
  .app-sidebar .sublink{
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================
   ✅ Sidebar hover 提醒特效（無左側小條版本）
   放 site.css 最底部，覆蓋之前的 ::before 小條
========================================================== */

:root{
  --sb-hover-bg: rgba(124,58,237,.07);
  --sb-active-bg: rgba(124,58,237,.10);
  --sb-ring: rgba(124,58,237,.18);
  --sb-shadow: 0 10px 22px rgba(83,70,186,.10);
}

/* ❶ 完全關掉左側小條（hover/active 都不出現） */
.app-sidebar .slink::before{ display:none !important; content:none !important; }

/* ❷ Active 也不要左邊 border/padding 位移 */
.app-sidebar .slink.active{
  border-left: 0 !important;
  padding-left: 14px !important;  /* 跟你原本一致，不要被推 */
}

/* ❸ 用「淡底 + 內框 + 陰影」做提醒感（不靠小條） */
.app-sidebar .slink{
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.app-sidebar .slink:hover{
  background: var(--sb-hover-bg) !important;
  box-shadow: inset 0 0 0 1px var(--sb-ring), var(--sb-shadow);
  transform: translateX(1px); /* 你想完全不位移就改成 0 */
}

/* Active（目前頁） */
.app-sidebar .slink.active{
  background: var(--sb-active-bg) !important;
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.22), 0 10px 22px rgba(83,70,186,.10);
}

/* 右側箭頭（你用 ::after "›"）：hover/active 更明顯 */
.app-sidebar .slink::after{
  transition: opacity .18s ease, transform .18s ease;
}
.app-sidebar .slink:hover::after{
  opacity: .55;
  transform: translate(2px, -1px);
}
.app-sidebar .slink.active::after{ opacity: .6; }

/* 子選單也跟著一致（不加左條） */
.app-sidebar .sublink:hover{
  background: rgba(124,58,237,.06);
  border-color: rgba(124,58,237,.22);
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.12), 0 12px 22px rgba(83,70,186,.12);
  transform: translateX(1px);
}

/* ✅ Sidebar Active 中等提示條（只在 active 出現） */

:root{
  --sb-hover-bg: rgba(124,58,237,.06);
  --sb-active-bg: rgba(124,58,237,.10);
  --sb-shadow: 0 10px 22px rgba(83,70,186,.10);
  --sb-ring: rgba(124,58,237,.18);

  --sb-bar: rgba(124,58,237,.65); /* 提示條顏色 */
  --sb-bar-w: 5px;                /* ✅ 提示條寬度：想更細=4px；更明顯=6px */
}

/* 關掉舊的小條（避免混到） */
.app-sidebar .slink::before{ display:none !important; content:none !important; }

/* Hover：只有提醒感，不出條 */
.app-sidebar .slink{
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-sidebar .slink:hover{
  background: var(--sb-hover-bg) !important;
  box-shadow: inset 0 0 0 1px var(--sb-ring), var(--sb-shadow);
  transform: translateX(1px);
}

/* Active：左側中等提示條（不推擠內容） */
.app-sidebar .slink.active{
  background: var(--sb-active-bg) !important;
  border-left: 0 !important;
  padding-left: 14px !important;
  box-shadow:
    inset var(--sb-bar-w) 0 0 var(--sb-bar),
    inset 0 0 0 1px rgba(124,58,237,.22),
    0 10px 22px rgba(83,70,186,.10);
}

/* 右側箭頭更明顯（你用 ::after "›"） */
.app-sidebar .slink::after{
  transition: opacity .18s ease, transform .18s ease;
}
.app-sidebar .slink:hover::after{
  opacity: .55;
  transform: translate(2px, -1px);
}
.app-sidebar .slink.active::after{ opacity: .65; }

/* ✅ 縮小「綜合管理」右側灰箭頭 */
.app-sidebar .arrow{
  font-size: 1rem !important;      /* 原本 1.25rem，改小 */
  opacity: .32 !important;
  transform-origin: center;
}

.app-sidebar .slink-collapse[aria-expanded="true"] .arrow{
  opacity: .5 !important;
  transform: rotate(90deg) scale(.98) !important;
}
