/* DP Hub Frontend Skin v1.0.9
   Portal Layout mode only. Scope: #dp-root.dp-view-hub + Hub classes.
   修正：亮暗模式一律跟隨 #dp-root.dp-mode-light / #dp-root.dp-mode-dark，不再混用白底白字或黑底黑字。 */

:root{
  --dp-hub-bg:#f1f2f4;
  --dp-hub-shell:#f1f2f4;
  --dp-hub-surface:#f6f7f8;
  --dp-hub-surface-soft:#eceff2;
  --dp-hub-surface-strong:#ffffff;
  --dp-hub-text:#171717;
  --dp-hub-strong:#080808;
  --dp-hub-muted:#626872;
  --dp-hub-line:rgba(0,0,0,.08);
  --dp-hub-accent:#1f5fbf;
  --dp-hub-accent-2:#b8862b;
  --dp-hub-shadow:0 10px 28px rgba(0,0,0,.055);
  --dp-hub-radius:5px;
}

#dp-root.dp-mode-light,
#dp-root.dp-root.dp-mode-light,
.dp-root.dp-mode-light{
  --dp-hub-bg:#f1f2f4;
  --dp-hub-shell:#f1f2f4;
  --dp-hub-surface:#f6f7f8;
  --dp-hub-surface-soft:#eceff2;
  --dp-hub-surface-strong:#ffffff;
  --dp-hub-text:#ffffff;
  --dp-hub-strong:#080808;
  --dp-hub-muted:#626872;
  --dp-hub-muted-1:#fff;
  --dp-hub-line:rgba(0,0,0,.08);
  --dp-hub-accent:#1f5fbf;
  --dp-hub-accent-2:#b8862b;
  --dp-hub-shadow:0 10px 28px rgba(0,0,0,.055);
}

#dp-root.dp-mode-dark,
#dp-root.dp-root.dp-mode-dark,
.dp-root.dp-mode-dark,
body.dp-mode-dark #dp-root,
body.is-dark #dp-root,
body.dark #dp-root,
html[data-theme="dark"] #dp-root{
  --dp-hub-bg:#111111;
  --dp-hub-shell:#111111;
  --dp-hub-surface:#181818;
  --dp-hub-surface-soft:#202020;
  --dp-hub-surface-strong:#242424;
  --dp-hub-text:#e8e8e8;
  --dp-hub-strong:#ffffff;
  --dp-hub-muted:#a1a1a1;
  --dp-hub-muted-1:#fff;
  --dp-hub-line:rgba(255,255,255,.075);
  --dp-hub-accent:#d6a642;
  --dp-hub-accent-2:#d6a642;
  --dp-hub-shadow:0 18px 44px rgba(0,0,0,.28);
}

/* Hub route background only. Do not affect other pages. */
body.dp-hub-route,
body.dp-hub-route #dp-root,
#dp-root.dp-view-hub{
  background:var(--dp-hub-bg) !important;
  color:var(--dp-hub-text) !important;
}
body.dp-hub-route .dp-c-top_hub,
body.dp-hub-route .dp-c-main_hub,
body.dp-hub-route .dp-c-right_hub,
body.dp-hub-route [class*="top_hub"],
body.dp-hub-route [class*="main_hub"],
body.dp-hub-route [class*="right_hub"]{
  background:transparent !important;
}


#dp-root.dp-view-hub .dp-router-output,
#dp-root.dp-view-hub .dp-c-top_hub,
#dp-root.dp-view-hub .dp-c-main_hub,
#dp-root.dp-view-hub .dp-c-right_hub{
  background:transparent !important;
  color:var(--dp-hub-text) !important;
}
#dp-root.dp-view-hub .dp-hub-section,
#dp-root.dp-view-hub .dp-hub-side-card,
#dp-root.dp-view-hub .dp-hub-card{
  background:var(--dp-hub-surface) !important;
  color:var(--dp-hub-text) !important;
}
#dp-root.dp-view-hub .dp-hub-empty,
#dp-root.dp-view-hub .dp-hub-nav a,
#dp-root.dp-view-hub .dp-hub-tags span,
#dp-root.dp-view-hub .dp-hub-post-card,
#dp-root.dp-view-hub .dp-hub-post-row,
#dp-root.dp-view-hub .dp-hub-card__thumb{
  background:var(--dp-hub-surface-soft) !important;
  color:var(--dp-hub-text) !important;
}
#dp-root.dp-view-hub .dp-hub-section__head h2,
#dp-root.dp-view-hub .dp-hub-side-card h2,
#dp-root.dp-view-hub .dp-hub-side-card h3,
#dp-root.dp-view-hub .dp-hub-side-card dd,
#dp-root.dp-view-hub .dp-hub-card h3,
#dp-root.dp-view-hub .dp-hub-post-card h3,
#dp-root.dp-view-hub .dp-hub-post-row strong,
#dp-root.dp-view-hub .dp-hub-empty strong{
  color:var(--dp-hub-strong) !important;
}
#dp-root.dp-view-hub .dp-hub-muted,
#dp-root.dp-view-hub .dp-hub-side-card dt,
#dp-root.dp-view-hub .dp-hub-card p,
#dp-root.dp-view-hub .dp-hub-post-card span,
#dp-root.dp-view-hub .dp-hub-post-card time,
#dp-root.dp-view-hub .dp-hub-post-row span,
#dp-root.dp-view-hub .dp-hub-post-row em{
  color:var(--dp-hub-muted) !important;
}

.dp-hub-front,
.dp-hub-index-hero,
.dp-hub-front--portal{
  color:var(--dp-hub-text);
  box-sizing:border-box;
  font-size:14px;
}
.dp-hub-front *,
.dp-hub-index-hero *{box-sizing:border-box;}
.dp-hub-front a{color:inherit;}

.dp-hub-front__wrap{
  width:min(1240px, calc(100% - 48px));
  margin-inline:auto;
}

/* Hero: large enough, not tall. Outer block 0 radius. */
.dp-hub-hero,
.dp-hub-index-hero{
  position:relative;
  min-height:300px;
  padding:42px 0 34px;
  border-radius:0 !important;
  overflow:hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.075), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,0) 60%),
    #151515;
}
.dp-hub-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--dp-hub-banner);
  background-size:cover;
  background-position:center;
  opacity:.38;
  filter:saturate(.9) contrast(1.05);
}
.dp-hub-hero__shade{position:absolute;inset:0;background:linear-gradient(90deg, rgba(12,12,12,.94), rgba(12,12,12,.72) 46%, rgba(12,12,12,.45));}
.dp-hub-hero__inner{position:relative;z-index:1;display:grid;grid-template-columns:104px minmax(0,1fr);gap:26px;align-items:center;}
.dp-hub-hero__cover{width:104px;height:104px;border-radius:var(--dp-hub-radius);background:linear-gradient(180deg,#2a2a2a,#181818);display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid rgba(255,255,255,.14);box-shadow:0 22px 48px rgba(0,0,0,.34);}
.dp-hub-hero__cover img{width:100%;height:100%;object-fit:cover;display:block;}
.dp-hub-hero__cover span{font-size:52px;line-height:1;font-weight:800;color:#fff;}
.dp-hub-hero__kicker{margin:0 0 6px;font-size:11px;line-height:1.2;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#d9d9d9;}
.dp-hub-hero h1,
.dp-hub-index-hero h1{margin:0 0 8px;font-size:30px !important;line-height:1.18;font-weight:740;letter-spacing:-.02em;color:#fff;}
.dp-hub-hero__aliases{font-size:14px;line-height:1.45;color:rgba(255,255,255,.84);margin-bottom:9px;}
.dp-hub-hero p,
.dp-hub-index-hero p{max-width:760px;margin:0;color:rgba(255,255,255,.78);font-size:14px;line-height:1.72;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.dp-hub-hero__actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap;}
.dp-hub-hero__actions a{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--dp-hub-radius);padding:8px 12px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;font-size:13px;font-weight:650;line-height:1;border:1px solid rgba(255,255,255,.11);}
.dp-hub-hero__actions a:first-child{background:#fff;color:#111;}

/* Hub navigation inside main slot */
.dp-hub-nav{width:min(1240px, calc(100% - 48px));margin:18px auto 12px;display:flex;gap:8px;flex-wrap:wrap;padding:0 0 10px;border-bottom:0;}
.dp-hub-nav a{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--dp-hub-radius);padding:8px 11px;background:var(--dp-hub-surface-soft);color:var(--dp-hub-text);font-size:13px;font-weight:650;line-height:1;text-decoration:none;border:0;}
.dp-hub-nav a:first-child{background:var(--dp-hub-accent);color:#fff;}

.dp-hub-front__body{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start;margin-top:22px;}
.dp-hub-front__main{min-width:0;}
.dp-hub-front__side{display:flex;flex-direction:column;gap:16px;min-width:0;}

/* Outer layout block no radius; inner content uses 5px. */
.dp-hub-section,
.dp-hub-side-card,
.dp-hub-card{background:var(--dp-hub-surface);color:var(--dp-hub-text);border:0 !important;border-radius:0 !important;box-shadow:var(--dp-hub-shadow);}
.dp-hub-section{padding:22px 24px;margin:0 0 16px;}
.dp-hub-section__head{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:18px;}
.dp-hub-section__head span{position:relative;display:inline-flex;align-items:center;gap:6px;color:var(--dp-hub-accent);font-size:8px;line-height:1;letter-spacing:.14em;text-transform:uppercase;font-weight:400;}
.dp-hub-section__head span::before{content:"";width:12px;height:12px;display:inline-block;background:currentColor;mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5h16v2H4V5Zm0 6h16v2H4v-2Zm0 6h10v2H4v-2Z'/%3E%3C/svg%3E") center/contain no-repeat;}
.dp-hub-section__head h2{margin:0;font-size:18px;line-height:2;font-weight:600;color:var(--dp-hub-strong);text-align:left;}
.dp-hub-empty{min-height:74px;border-radius:var(--dp-hub-radius);background:var(--dp-hub-surface-soft);display:flex;align-items:center;justify-content:center;text-align:center;padding:18px;color:var(--dp-hub-muted);font-size:14px;}
.dp-hub-empty strong{display:block;color:var(--dp-hub-strong);font-size:15px;margin-bottom:4px;}
.dp-hub-empty p{margin:0;color:var(--dp-hub-muted);}

.dp-hub-side-card{padding:20px;}
.dp-hub-side-card h2,
.dp-hub-side-card h3{margin:0 0 14px;display:flex;align-items:center;gap:8px;font-size:18px;line-height:1.25;font-weight:720;color:var(--dp-hub-strong);text-align:left;}
.dp-hub-side-card h2::before,
.dp-hub-side-card h3::before{content:"";width:15px;height:15px;display:inline-block;background:var(--dp-hub-muted);mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 3h14v18H5V3Zm2 2v14h10V5H7Zm2 2h6v2H9V7Zm0 4h6v2H9v-2Zm0 4h4v2H9v-2Z'/%3E%3C/svg%3E") center/contain no-repeat;}
.dp-hub-side-card dl{display:grid;grid-template-columns:82px minmax(0,1fr);gap:9px 12px;margin:0;}
.dp-hub-side-card dt{font-size:13px;color:var(--dp-hub-muted);font-weight:500;}
.dp-hub-side-card dd{margin:0;font-size:14px;color:var(--dp-hub-strong);font-weight:650;word-break:break-word;}
.dp-hub-tags{display:flex;gap:8px;flex-wrap:wrap;}
.dp-hub-tags span{display:inline-flex;border-radius:999px;background:var(--dp-hub-surface-soft);color:var(--dp-hub-text);font-size:12px;font-weight:650;padding:6px 9px;line-height:1;}

.dp-hub-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.dp-hub-post-card{border-radius:var(--dp-hub-radius);overflow:hidden;background:var(--dp-hub-surface-soft);}
.dp-hub-post-card a,
.dp-hub-post-row{text-decoration:none;color:inherit;}
.dp-hub-post-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;}
.dp-hub-post-card h3{font-size:15px;line-height:1.45;margin:8px 10px;color:var(--dp-hub-strong);}
.dp-hub-post-card span,
.dp-hub-post-card time{display:inline-flex;margin:8px 10px 0;font-size:12px;color:var(--dp-hub-muted);}
.dp-hub-post-list{display:flex;flex-direction:column;gap:8px;}
.dp-hub-post-row{display:grid;grid-template-columns:88px minmax(0,1fr) 72px;gap:10px;align-items:center;padding:12px;border-radius:var(--dp-hub-radius);background:var(--dp-hub-surface-soft);}
.dp-hub-post-row span,
.dp-hub-post-row em{font-size:12px;color:var(--dp-hub-muted);font-style:normal;}
.dp-hub-post-row strong{font-size:14px;color:var(--dp-hub-strong);font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.dp-hub-grid--index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.dp-hub-card__link{display:flex;gap:14px;padding:14px;text-decoration:none;color:inherit;}
.dp-hub-card__thumb{flex:0 0 56px;width:56px;height:56px;border-radius:var(--dp-hub-radius);display:flex;align-items:center;justify-content:center;background:var(--dp-hub-surface-soft);font-size:26px;font-weight:800;color:var(--dp-hub-strong);}
.dp-hub-card h3{margin:0 0 6px;font-size:17px;color:var(--dp-hub-strong);}
.dp-hub-card p{margin:0 0 8px;color:var(--dp-hub-muted);font-size:13px;line-height:1.55;}
.dp-hub-card span{font-size:12px;color:var(--dp-hub-accent);font-weight:700;}

@media (max-width:1180px){
  .dp-hub-front__body{grid-template-columns:1fr;}
  .dp-hub-front__side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .dp-hub-post-grid,.dp-hub-grid--index{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:768px){
  .dp-hub-front__wrap,.dp-hub-nav{width:calc(100% - 28px);}
  .dp-hub-hero,.dp-hub-index-hero{min-height:260px;padding:28px 0 24px;}
  .dp-hub-hero__inner{grid-template-columns:74px minmax(0,1fr);gap:16px;align-items:start;}
  .dp-hub-hero__cover{width:74px;height:74px;}
  .dp-hub-hero__cover span{font-size:38px;}
  .dp-hub-hero h1,.dp-hub-index-hero h1{font-size:24px !important;}
  .dp-hub-hero__aliases{font-size:13px;}
  .dp-hub-hero p,.dp-hub-index-hero p{font-size:13px;line-height:1.65;-webkit-line-clamp:3;}
  .dp-hub-hero__actions a,.dp-hub-nav a{font-size:12px;padding:8px 10px;}
  .dp-hub-nav{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;}
  .dp-hub-nav::-webkit-scrollbar{display:none;}
  .dp-hub-section{padding:18px 16px;}
  .dp-hub-section__head h2{font-size:20px;}
  .dp-hub-front__side{display:flex;}
  .dp-hub-post-grid,.dp-hub-grid--index{grid-template-columns:1fr;}
  .dp-hub-side-card dl{grid-template-columns:78px minmax(0,1fr);}
  .dp-hub-post-row{grid-template-columns:1fr;gap:4px;}
}


/* v1.0.3 hero background / palette / compact icon patch */
#dp-root.dp-view-hub{
  --dp-hub-primary:var(--dp-hub-primary, var(--dp-hub-accent));
  --dp-hub-secondary:var(--dp-hub-secondary, var(--dp-hub-accent-2));
  background-image:
    linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)),
    var(--dp-hub-site-bg) !important;
  background-size:cover !important;
  background-position:center top !important;
  background-attachment:fixed !important;
}
#dp-root.dp-mode-light.dp-view-hub{
  background-color:#eeeeee !important;
}
#dp-root.dp-mode-dark.dp-view-hub{
  background-color:#111111 !important;
}

#dp-root.dp-view-hub .dp-hub-hero,
#dp-root.dp-view-hub .dp-hub-index-hero{
  min-height:360px !important;
  padding:56px 0 44px !important;
  background:#111 !important;
  background-image:var(--dp-hub-hero-bg) !important;
  background-size:cover !important;
  background-position:center !important;
  background-attachment:fixed !important;
  border-radius:0 !important;
}
#dp-root.dp-view-hub .dp-hub-hero::before{
  background-image:var(--dp-hub-hero-bg) !important;
  opacity:.65 !important;
  filter:saturate(.9) contrast(1.06) brightness(.82) !important;
}
#dp-root.dp-view-hub .dp-hub-hero__shade{
  background:
    linear-gradient(90deg, rgba(0,0,0,var(--dp-hub-overlay,.68)) 0%, rgba(0,0,0,.52) 46%, rgba(0,0,0,.22) 100%),
    linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.66) 100%) !important;
}
#dp-root.dp-view-hub .dp-hub-hero__inner{
  grid-template-columns:60px minmax(0, 760px) !important;
  gap:24px !important;
  align-items:center !important;
}
#dp-root.dp-view-hub .dp-hub-hero__cover{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  border-radius:5px !important;
  background:linear-gradient(180deg, rgba(45,45,45,.9), rgba(25,25,25,.9)) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.38) !important;
}
#dp-root.dp-view-hub .dp-hub-hero__cover span{
  font-size:34px !important;
  line-height:1 !important;
}
#dp-root.dp-view-hub .dp-hub-hero__platforms{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:wrap !important;
  margin:0 0 6px !important;
  color:rgba(255,255,255,.84) !important;
  font-size:12px !important;
  font-weight:700 !important;
}
#dp-root.dp-view-hub .dp-hub-hero__platform-label{
  color:rgba(255,255,255,.68) !important;
  letter-spacing:.08em !important;
}
#dp-root.dp-view-hub .dp-hub-platform-pill,
#dp-root.dp-view-hub .dp-hub-info-pill{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:26px !important;
  padding:6px 10px !important;
  border-radius:5px !important;
  line-height:1 !important;
  font-size:13px !important;
  font-weight:650 !important;
  color:#fff !important;
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  backdrop-filter:blur(8px) !important;
}
#dp-root.dp-view-hub .dp-hub-platform-pill{
  min-height:22px !important;
  padding:5px 9px !important;
  font-size:12px !important;
  border-radius:999px !important;
}
#dp-root.dp-view-hub .dp-hub-info-pill.is-primary{
  color:#fff !important;
  background:var(--dp-hub-primary, #d6a542) !important;
  border-color:color-mix(in srgb, var(--dp-hub-primary, #d6a542) 70%, #fff 30%) !important;
}
#dp-root.dp-view-hub .dp-hub-hero__pills{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin-top:18px !important;
}
#dp-root.dp-view-hub .dp-hub-hero__actions{display:none !important;}
#dp-root.dp-view-hub .dp-hub-hero__kicker{display:none !important;}
#dp-root.dp-view-hub .dp-hub-hero h1,
#dp-root.dp-view-hub .dp-hub-index-hero h1{
  font-size:30px !important;
  line-height:1.16 !important;
  margin-bottom:7px !important;
}
#dp-root.dp-view-hub .dp-hub-hero p{
  max-width:820px !important;
  font-size:14px !important;
  line-height:1.75 !important;
  -webkit-line-clamp:2 !important;
}
#dp-root.dp-view-hub .dp-hub-nav a:first-child{
  background:var(--dp-hub-primary, var(--dp-hub-accent)) !important;
  color:#111 !important;
}
#dp-root.dp-view-hub .dp-hub-section__head span,
#dp-root.dp-view-hub .dp-hub-card span{
  color:var(--dp-hub-primary, var(--dp-hub-accent)) !important;
}
@supports not (background: color-mix(in srgb, #000 50%, #fff 50%)){
  #dp-root.dp-view-hub .dp-hub-info-pill.is-primary{border-color:rgba(255,255,255,.28) !important;}
}
@media (max-width:768px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero{
    min-height:320px !important;
    padding:36px 0 30px !important;
    background-attachment:scroll !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero::before{background-attachment:scroll !important;}
  #dp-root.dp-view-hub .dp-hub-hero__inner{
    grid-template-columns:60px minmax(0,1fr) !important;
    gap:14px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero h1{font-size:24px !important;}
  #dp-root.dp-view-hub .dp-hub-hero__pills{gap:8px;margin-top:14px !important;}
  #dp-root.dp-view-hub .dp-hub-info-pill{font-size:12px !important;padding:6px 9px !important;}
}


/* v1.0.4 mobile layered sticky hub navigation */
#dp-root.dp-view-hub .dp-hub-mobile-sticky{
  display:none;
}
@media (max-width: 768px){
  #dp-root.dp-view-hub{
    --dp-site-header-height: 64px;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky{
    position:fixed;
    left:0;
    right:0;
    top:var(--dp-site-header-height);
    z-index:880;
    display:block;
    transform:translateY(-110%);
    opacity:0;
    pointer-events:none;
    transition:transform .22s ease, opacity .22s ease;
    background:rgba(17,17,17,.96);
    color:#f5f5f5;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 24px rgba(0,0,0,.28);
    backdrop-filter:blur(12px);
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky.is-visible{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__bar{
    height:48px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 12px;
    border-bottom:1px solid rgba(255,255,255,.07);
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__title{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:15px;
    line-height:1;
    font-weight:750;
    color:#fff;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__search{
    flex:0 0 150px;
    display:flex;
    align-items:center;
    height:32px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.10);
    border-radius:5px;
    overflow:hidden;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__search input{
    width:100%;
    min-width:0;
    height:100%;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    color:#fff !important;
    padding:0 8px;
    font-size:12px;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__search input::placeholder{color:rgba(255,255,255,.55);}
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__search button{
    width:32px;
    height:32px;
    border:0 !important;
    background:transparent !important;
    color:rgba(255,255,255,.82) !important;
    font-size:15px;
    line-height:1;
    padding:0;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs{
    height:42px;
    display:flex;
    align-items:center;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    padding:6px 12px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs::-webkit-scrollbar{display:none;}
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs a,
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs span{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    border-radius:5px;
    padding:6px 10px;
    color:rgba(255,255,255,.86) !important;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.08);
    font-size:12px;
    line-height:1;
    font-weight:650;
    text-decoration:none !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs a:first-child{
    background:var(--dp-hub-primary, #d6a542);
    color:#111 !important;
    border-color:rgba(255,255,255,.18);
  }
  #dp-root.dp-view-hub.dp-hub-sticky-visible .dp-hub-front__main{
    scroll-margin-top:112px;
  }
  #dp-root.dp-view-hub .dp-hub-nav{
    position:sticky;
    top:calc(var(--dp-site-header-height) + 90px);
    z-index:60;
  }
}
@media (max-width: 420px){
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__search{flex-basis:118px;}
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__title{font-size:14px;}
}


/* v1.0.5 mobile sticky offset fix: site header is 48px */
@media (max-width: 768px){
  #dp-root.dp-view-hub{
    --dp-site-header-height:48px !important;
    --dp-hub-mobile-titlebar-height:48px !important;
    --dp-hub-mobile-tabs-height:40px !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky{
    top:85px !important;
    left:0 !important;
    right:0 !important;
    margin:0 !important;
    border-radius:0 !important;
    width:100vw !important;
    max-width:none !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__bar{
    height:48px !important;
    min-height:48px !important;
    padding:0 12px !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs{
    height:40px !important;
    min-height:40px !important;
    padding:5px 12px !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs a,
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs span{
    min-height:28px !important;
    padding:6px 10px !important;
    font-size:12px !important;
  }
  #dp-root.dp-view-hub.dp-hub-sticky-visible .dp-hub-front__main{
    scroll-margin-top:88px !important;
  }
  /* 避免原本內容內的 nav 在手機再 sticky，造成雙層或錯位 */
  #dp-root.dp-view-hub .dp-hub-nav{
    position:relative !important;
    top:auto !important;
    z-index:auto !important;
  }
}

/* v1.0.6 field map visual helpers */
#dp-root.dp-view-hub .dp-hub-color-dot{display:inline-block;width:12px;height:12px;border-radius:999px;margin-right:6px;vertical-align:-1px;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset;}


/* v1.0.7 Hub site background route fallback: 不依賴 #dp-root.dp-view-hub，避免 Portal Shell 沒掛 class 時全站背景失效。 */
body.dp-hub-route,
body.dp-hub-route #dp-root{
  background-image:
    linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)),
    var(--dp-hub-site-bg) !important;
  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}
body.dp-hub-route .dp-router-output,
body.dp-hub-route .dp-c-top_hub,
body.dp-hub-route .dp-c-main_hub,
body.dp-hub-route .dp-c-right_hub{
  background:transparent !important;
}
body.dp-hub-route .dp-hub-hero,
body.dp-hub-route .dp-hub-index-hero{
  background-image:var(--dp-hub-hero-bg) !important;
}


/* v1.0.8 Hub global background layer fix
   讓全站背景掛到底層，並把 Portal Shell / Layout / Main / Right 等容器改成透明，避免背景圖被多層實色框蓋住。 */
body.dp-hub-route,
body.dp-view-hub,
body.dp-hub-has-global-bg{
  background-color:var(--dp-hub-bg, #111) !important;
  background-image:
    linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)),
    var(--dp-hub-site-bg) !important;
  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}
body.dp-hub-route #dp-root,
body.dp-view-hub #dp-root,
body.dp-hub-has-global-bg #dp-root,
#dp-root.dp-view-hub,
#dp-root.dp-view-hub .dp-shell,
#dp-root.dp-view-hub .dp-layout,
#dp-root.dp-view-hub .dp-main,
#dp-root.dp-view-hub .dp-right,
#dp-root.dp-view-hub .dp-top,
#dp-root.dp-view-hub .dp-router-output,
#dp-root.dp-view-hub .dp-c-top_hub,
#dp-root.dp-view-hub .dp-c-main_hub,
#dp-root.dp-view-hub .dp-c-right_hub,
body.dp-hub-route .dp-shell,
body.dp-hub-route .dp-layout,
body.dp-hub-route .dp-main,
body.dp-hub-route .dp-right,
body.dp-hub-route .dp-top,
body.dp-hub-route .dp-router-output,
body.dp-hub-route .dp-c-top_hub,
body.dp-hub-route .dp-c-main_hub,
body.dp-hub-route .dp-c-right_hub,
body.dp-hub-route [class*="top_hub"],
body.dp-hub-route [class*="main_hub"],
body.dp-hub-route [class*="right_hub"]{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
}
#dp-root.dp-view-hub .dp-hub-section,
#dp-root.dp-view-hub .dp-hub-side-card,
#dp-root.dp-view-hub .dp-hub-card,
body.dp-hub-route .dp-hub-section,
body.dp-hub-route .dp-hub-side-card,
body.dp-hub-route .dp-hub-card{
  background:rgba(24,24,24,.84) !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-section,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-side-card,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-card,
body.dp-mode-light.dp-hub-route .dp-hub-section,
body.dp-mode-light.dp-hub-route .dp-hub-side-card,
body.dp-mode-light.dp-hub-route .dp-hub-card{
  background:rgba(255,255,255,.84) !important;
}

/* v1.0.9 global site background height / cover fix */
html:has(body.dp-hub-route){
  min-height:100% !important;
  background:#101010 !important;
}
body.dp-hub-route{
  min-height:100vh !important;
  background-color:#101010 !important;
  background-image:linear-gradient(rgba(0,0,0,.46), rgba(0,0,0,.46)), var(--dp-hub-site-bg) !important;
  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}
body.dp-hub-route::before{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  z-index:0 !important;
  pointer-events:none !important;
  background-image:linear-gradient(rgba(0,0,0,.46), rgba(0,0,0,.46)), var(--dp-hub-site-bg) !important;
  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
}
body.dp-hub-route #dp-root,
#dp-root.dp-view-hub{
  position:relative !important;
  z-index:auto !important;
  min-height:100vh !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
}
body.dp-hub-route .dp-shell,
body.dp-hub-route .dp-layout,
body.dp-hub-route .dp-main,
body.dp-hub-route .dp-right,
body.dp-hub-route .dp-top,
body.dp-hub-route .dp-router-output,
body.dp-hub-route .dp-c-top_hub,
body.dp-hub-route .dp-c-main_hub,
body.dp-hub-route .dp-c-right_hub,
#dp-root.dp-view-hub .dp-shell,
#dp-root.dp-view-hub .dp-layout,
#dp-root.dp-view-hub .dp-main,
#dp-root.dp-view-hub .dp-right,
#dp-root.dp-view-hub .dp-top,
#dp-root.dp-view-hub .dp-router-output,
#dp-root.dp-view-hub .dp-c-top_hub,
#dp-root.dp-view-hub .dp-c-main_hub,
#dp-root.dp-view-hub .dp-c-right_hub{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
}
body.dp-hub-route .dp-shell,
body.dp-hub-route .dp-layout,
#dp-root.dp-view-hub .dp-shell,
#dp-root.dp-view-hub .dp-layout{
  min-height:calc(100vh - 64px) !important;
}
#dp-root.dp-view-hub .dp-hub-section,
#dp-root.dp-view-hub .dp-hub-side-card,
#dp-root.dp-view-hub .dp-hub-card{
  background:rgba(255,255,255,.86) !important;
  backdrop-filter:blur(8px) !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-section,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-side-card,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-card{
  background:rgba(18,18,18,.82) !important;
}


/* v1.0.10 site background var fallback
   Core v2.4.10 會輸出已加引號的 --dp-hub-site-bg，這裡統一使用 fallback，避免變數不存在時整條 background-image 失效。 */
body.dp-hub-route,
body.dp-hub-route::before{
  background-image:linear-gradient(rgba(0,0,0,.46), rgba(0,0,0,.46)), var(--dp-hub-site-bg, none) !important;
}


/* v1.0.11 real fixed background layer
   不再只靠 --dp-hub-site-bg；Core 會輸出 .dp-hub-site-bg-layer 實體層，避免 body/#dp-root/Portal 容器背景與 z-index 造成看不到。 */
body.dp-hub-route{
  background:#101010 !important;
}
body.dp-hub-route .dp-hub-site-bg-layer{
  display:block !important;
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  z-index:0 !important;
  pointer-events:none !important;
  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
}
body.dp-hub-route #dp-root,
#dp-root.dp-view-hub,
body.dp-hub-route .dp-shell,
body.dp-hub-route .dp-layout,
body.dp-hub-route .dp-main,
body.dp-hub-route .dp-right,
body.dp-hub-route .dp-top,
body.dp-hub-route .dp-router-output{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
}


/* v1.0.12 global background visual layer polish
   目標：背景圖已成功載入後，將 Hub 內容層改為半透明玻璃卡片，避免大白底把全站背景蓋住。 */
#dp-root.dp-view-hub{
  --dp-hub-glass-light:rgba(255,255,255,.72);
  --dp-hub-glass-light-strong:rgba(255,255,255,.82);
  --dp-hub-glass-light-soft:rgba(150,150,150,.76);
  --dp-hub-glass-dark:rgba(15,17,20,.76);
  --dp-hub-glass-dark-strong:rgba(18,20,24,.86);
  --dp-hub-glass-dark-soft:rgba(28,31,36,.78);
}

/* Shell / Layout 必須保持透明，背景才不會被整片底色吃掉。 */
body.dp-hub-route #dp-root,
#dp-root.dp-view-hub,
#dp-root.dp-view-hub .dp-shell,
#dp-root.dp-view-hub .dp-layout,
#dp-root.dp-view-hub .dp-main,
#dp-root.dp-view-hub .dp-right,
#dp-root.dp-view-hub .dp-top,
#dp-root.dp-view-hub .dp-router-output,
#dp-root.dp-view-hub .dp-c-top_hub,
#dp-root.dp-view-hub .dp-c-main_hub,
#dp-root.dp-view-hub .dp-c-right_hub,
body.dp-hub-route .dp-shell,
body.dp-hub-route .dp-layout,
body.dp-hub-route .dp-main,
body.dp-hub-route .dp-right,
body.dp-hub-route .dp-top,
body.dp-hub-route .dp-router-output,
body.dp-hub-route .dp-c-top_hub,
body.dp-hub-route .dp-c-main_hub,
body.dp-hub-route .dp-c-right_hub{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
}

/* Header 下方加淡淡陰影與透明層，避免白色 Header 與背景斷太硬。 */
#dp-root.dp-view-hub .dp-head,
body.dp-hub-route .dp-head{
  background:rgba(255,255,255,.92) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.14) !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-head,
body.dp-mode-dark.dp-hub-route .dp-head{
  background:rgba(14,15,18,.9) !important;
}

/* 主內容區塊：由實心白底改成玻璃卡片。 */
#dp-root.dp-mode-light.dp-view-hub .dp-hub-section,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-side-card,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-card,
body.dp-mode-light.dp-hub-route .dp-hub-section,
body.dp-mode-light.dp-hub-route .dp-hub-side-card,
body.dp-mode-light.dp-hub-route .dp-hub-card{
  background:var(--dp-hub-glass-light) !important;
  border:1px solid rgba(255,255,255,.42) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.16) !important;
  backdrop-filter:blur(14px) saturate(1.04) !important;
  -webkit-backdrop-filter:blur(14px) saturate(1.04) !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-section,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-side-card,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-card,
body.dp-mode-dark.dp-hub-route .dp-hub-section,
body.dp-mode-dark.dp-hub-route .dp-hub-side-card,
body.dp-mode-dark.dp-hub-route .dp-hub-card{
  background:var(--dp-hub-glass-dark) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 18px 48px rgba(0,0,0,.34) !important;
  backdrop-filter:blur(14px) saturate(1.02) !important;
  -webkit-backdrop-filter:blur(14px) saturate(1.02) !important;
}

/* 空狀態 / 文章列也改半透明，保留可讀性。 */
#dp-root.dp-mode-light.dp-view-hub .dp-hub-empty,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-card,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-row,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-card__thumb,
body.dp-mode-light.dp-hub-route .dp-hub-empty,
body.dp-mode-light.dp-hub-route .dp-hub-post-card,
body.dp-mode-light.dp-hub-route .dp-hub-post-row,
body.dp-mode-light.dp-hub-route .dp-hub-card__thumb{
  background:var(--dp-hub-glass-light-soft) !important;
  border:1px solid rgba(255,255,255,.36) !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-empty,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-card,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-row,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-card__thumb,
body.dp-mode-dark.dp-hub-route .dp-hub-empty,
body.dp-mode-dark.dp-hub-route .dp-hub-post-card,
body.dp-mode-dark.dp-hub-route .dp-hub-post-row,
body.dp-mode-dark.dp-hub-route .dp-hub-card__thumb{
  background:var(--dp-hub-glass-dark-soft) !important;
  border:1px solid rgba(255,255,255,.08) !important;
}

/* 右欄與外掛自由區塊，避免 New Block / 文字直接浮在背景上。 */
#dp-root.dp-view-hub .dp-right > .dp-block,
#dp-root.dp-view-hub .dp-right > [class*="dp-block"],
#dp-root.dp-view-hub .dp-c-right_hub > .dp-block,
body.dp-hub-route .dp-right > .dp-block,
body.dp-hub-route .dp-right > [class*="dp-block"],
body.dp-hub-route .dp-c-right_hub > .dp-block{
  background:rgba(255,255,255,.72) !important;
  border:1px solid rgba(255,255,255,.36) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.14) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;
  padding:18px !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-right > .dp-block,
#dp-root.dp-mode-dark.dp-view-hub .dp-right > [class*="dp-block"],
#dp-root.dp-mode-dark.dp-view-hub .dp-c-right_hub > .dp-block,
body.dp-mode-dark.dp-hub-route .dp-right > .dp-block,
body.dp-mode-dark.dp-hub-route .dp-right > [class*="dp-block"],
body.dp-mode-dark.dp-hub-route .dp-c-right_hub > .dp-block{
  background:rgba(15,17,20,.76) !important;
  border-color:rgba(255,255,255,.10) !important;
}

/* Top/Hero 區塊底部做漸層過渡，不讓背景與內容斷層。 */
#dp-root.dp-view-hub .dp-top,
body.dp-hub-route .dp-top{
  position:relative !important;
}
#dp-root.dp-view-hub .dp-top::after,
body.dp-hub-route .dp-top::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:-1px !important;
  height:90px !important;
  pointer-events:none !important;
  background:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.16)) !important;
}

/* 手機版不要過度 blur，避免效能與閱讀問題。 */
@media (max-width:768px){
  #dp-root.dp-view-hub .dp-hub-section,
  #dp-root.dp-view-hub .dp-hub-side-card,
  #dp-root.dp-view-hub .dp-hub-card,
  #dp-root.dp-view-hub .dp-right > .dp-block,
  body.dp-hub-route .dp-hub-section,
  body.dp-hub-route .dp-hub-side-card,
  body.dp-hub-route .dp-hub-card,
  body.dp-hub-route .dp-right > .dp-block{
    backdrop-filter:blur(8px) !important;
    -webkit-backdrop-filter:blur(8px) !important;
  }
}

/* v1.0.12.2 Hub frame overlap + tablet sidebar squeeze fix
   Only layout frame adjustments. Does not touch hero background / field mapping. */
#dp-root.dp-view-hub .dp-layout.has-right,
#dp-root.dp-view-hub main.dp-layout.has-right{
  position:relative !important;
  z-index:3 !important;
}
#dp-root.dp-view-hub .dp-main.dp-c-main_hub,
#dp-root.dp-view-hub .dp-right.dp-c-right_hub{
  position:relative !important;
  z-index:3 !important;
}
#dp-root.dp-view-hub .dp-right.dp-c-right_hub{
  min-width:320px !important;
}
#dp-root.dp-view-hub .dp-hub-side-card{
  width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
}
#dp-root.dp-view-hub .dp-hub-side-card dl{
  grid-template-columns:minmax(72px, 88px) minmax(0,1fr) !important;
}
#dp-root.dp-view-hub .dp-hub-side-card dt,
#dp-root.dp-view-hub .dp-hub-side-card dd{
  min-width:0 !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}

.dp-hub-side-card-1 dl {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px 12px;
    margin: 0;
}

  .dp-c-right_hub{
	 margin-top:-100px !important;
  }
	
@media (max-width:1180px){
  #dp-root.dp-view-hub .dp-layout.has-right,
  #dp-root.dp-view-hub main.dp-layout.has-right{
    grid-template-columns:1fr !important;
    margin-top:-72px !important;
  }

  #dp-root.dp-view-hub .dp-right.dp-c-right_hub{
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }
  #dp-root.dp-view-hub .dp-hub-front__body{
    grid-template-columns:1fr !important;
  }
  #dp-root.dp-view-hub .dp-hub-front__side{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;
  }
}

@media (max-width:768px){
  #dp-root.dp-view-hub .dp-layout.has-right,
  #dp-root.dp-view-hub main.dp-layout.has-right{
    margin-top:-36px !important;
  }
  #dp-root.dp-view-hub .dp-hub-front__side{
    display:flex !important;
    flex-direction:column !important;
  }
  #dp-root.dp-view-hub .dp-hub-side-card dl{
    grid-template-columns:78px minmax(0,1fr) !important;
  }
}

@media (max-width:520px){
  #dp-root.dp-view-hub .dp-hub-side-card dl{
    grid-template-columns:1fr !important;
    gap:4px 0 !important;
  }
  #dp-root.dp-view-hub .dp-hub-side-card dt{
    margin-top:8px !important;
  }
}

/* v1.0.12.3 Hub post card compact homepage-ready layout */
#dp-root.dp-view-hub .dp-hub-post-grid,
body.dp-hub-route .dp-hub-post-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
}
#dp-root.dp-view-hub .dp-hub-post-card,
body.dp-hub-route .dp-hub-post-card{
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:6px !important;
  overflow:hidden !important;
  background:rgba(22,26,31,.92) !important;
  box-shadow:none !important;
}
#dp-root.dp-view-hub .dp-hub-post-card a,
body.dp-hub-route .dp-hub-post-card a{
  display:flex !important;
  flex-direction:column !important;
  min-height:100% !important;
  color:inherit !important;
  text-decoration:none !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__media,
body.dp-hub-route .dp-hub-post-card__media{
  position:relative !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.06) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card img,
body.dp-hub-route .dp-hub-post-card img{
  width:100% !important;
  aspect-ratio:16/9 !important;
  object-fit:cover !important;
  display:block !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__type,
body.dp-hub-route .dp-hub-post-card__type{
  position:absolute !important;
  top:8px !important;
  left:8px !important;
  z-index:2 !important;
  display:inline-flex !important;
  align-items:center !important;
  margin:0 !important;
  padding:4px 8px !important;
  border-radius:4px !important;
  background:rgba(13,17,23,.82) !important;
  color:#fff !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:600 !important;
  backdrop-filter:blur(6px) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__body,
body.dp-hub-route .dp-hub-post-card__body{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  padding:12px 12px 10px !important;
  min-height:108px !important;
}
#dp-root.dp-view-hub .dp-hub-post-card h3,
body.dp-hub-route .dp-hub-post-card h3{
  margin:0 !important;
  color:var(--dp-hub-strong,#f5f7fb) !important;
  font-size:15px !important;
  line-height:1.45 !important;
  font-weight:700 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__meta,
body.dp-hub-route .dp-hub-post-card__meta{
  margin-top:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__date,
body.dp-hub-route .dp-hub-post-card__date{
  display:inline-flex !important;
  align-items:center !important;
  margin:0 !important;
  padding:4px 8px !important;
  border-radius:4px !important;
  background:rgba(255,255,255,.09) !important;
  color:rgba(255,255,255,.68) !important;
  font-size:12px !important;
  line-height:1.2 !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__views,
body.dp-hub-route .dp-hub-post-card__views,
#dp-root.dp-view-hub .dp-hub-post-row__views,
body.dp-hub-route .dp-hub-post-row__views{
  display:inline-flex !important;
  align-items:center !important;
  gap:5px !important;
  margin:0 !important;
  color:rgba(255,255,255,.56) !important;
  font-size:12px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
#dp-root.dp-view-hub .dp-hub-eye-icon,
body.dp-hub-route .dp-hub-eye-icon{
  width:15px !important;
  height:15px !important;
  flex:0 0 auto !important;
  opacity:.9 !important;
}
#dp-root.dp-view-hub .dp-hub-post-row,
body.dp-hub-route .dp-hub-post-row{
  grid-template-columns:104px minmax(0,1fr) 120px 84px !important;
  min-height:44px !important;
  padding:8px 12px !important;
  align-items:center !important;
}
#dp-root.dp-view-hub .dp-hub-post-row__date,
body.dp-hub-route .dp-hub-post-row__date{
  display:inline-flex !important;
  width:max-content !important;
  padding:4px 8px !important;
  border-radius:4px !important;
  background:rgba(255,255,255,.09) !important;
  color:rgba(255,255,255,.68) !important;
  font-size:12px !important;
}
@media (max-width:1200px){
  #dp-root.dp-view-hub .dp-hub-post-grid,
  body.dp-hub-route .dp-hub-post-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media (max-width:820px){
  #dp-root.dp-view-hub .dp-hub-post-grid,
  body.dp-hub-route .dp-hub-post-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  #dp-root.dp-view-hub .dp-hub-post-row,
  body.dp-hub-route .dp-hub-post-row{grid-template-columns:92px minmax(0,1fr) 62px !important;}
  #dp-root.dp-view-hub .dp-hub-post-row__views,
  body.dp-hub-route .dp-hub-post-row__views{display:none !important;}
}
@media (max-width:520px){
  #dp-root.dp-view-hub .dp-hub-post-grid,
  body.dp-hub-route .dp-hub-post-grid{grid-template-columns:1fr !important;}
}

/* v1.0.12.5 post card secondary label + white title
   分類標籤改吃 Hub 副色，文章卡片標題固定白色，亮暗模式仍分開控制。 */
#dp-root.dp-view-hub,
body.dp-hub-route{
  --dp-hub-card-category-bg:var(--dp-hub-secondary, var(--dp-hub-accent-2, #b8862b));
  --dp-hub-card-category-text:#ffffff;
  --dp-hub-card-date-bg:rgba(107,114,128,.14);
  --dp-hub-card-date-text:var(--dp-hub-muted, #626872);
  --dp-hub-card-view-text:var(--dp-hub-muted, #626872);
}

#dp-root.dp-mode-light.dp-view-hub,
.dp-root.dp-mode-light.dp-view-hub,
body.dp-mode-light.dp-hub-route,
body:not(.dp-mode-dark).dp-hub-route{
  --dp-hub-card-bg:rgba(248,250,252,.94);
  --dp-hub-card-bg-hover:rgba(255,255,255,.98);
  --dp-hub-card-border:rgba(15,23,42,.08);
  --dp-hub-card-title:#000;
  --dp-hub-card-media-bg:rgba(15,23,42,.05);
  --dp-hub-card-shadow:0 10px 22px rgba(15,23,42,.07);
  --dp-hub-row-bg:rgba(248,250,252,.86);
  --dp-hub-row-border:rgba(15,23,42,.08);
}

#dp-root.dp-mode-dark.dp-view-hub,
.dp-root.dp-mode-dark.dp-view-hub,
body.dp-mode-dark.dp-hub-route,
body.is-dark.dp-hub-route,
body.dark.dp-hub-route,
html[data-theme="dark"] body.dp-hub-route{
  --dp-hub-card-bg:rgba(18,21,26,.92);
  --dp-hub-card-bg-hover:rgba(24,28,35,.96);
  --dp-hub-card-border:rgba(255,255,255,.10);
  --dp-hub-card-title:#ffffff;
  --dp-hub-card-media-bg:rgba(255,255,255,.06);
  --dp-hub-card-shadow:0 14px 34px rgba(0,0,0,.26);
  --dp-hub-row-bg:rgba(18,21,26,.84);
  --dp-hub-row-border:rgba(255,255,255,.08);
  --dp-hub-card-date-bg:rgba(255,255,255,.09);
  --dp-hub-card-date-text:rgba(255,255,255,.68);
  --dp-hub-card-view-text:rgba(255,255,255,.58);
}

#dp-root.dp-view-hub .dp-hub-post-card,
body.dp-hub-route .dp-hub-post-card{
  background:var(--dp-hub-card-bg) !important;
  border-color:var(--dp-hub-card-border) !important;
  box-shadow:var(--dp-hub-card-shadow) !important;
  transition:transform .16s ease, background-color .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}
#dp-root.dp-view-hub .dp-hub-post-card:hover,
body.dp-hub-route .dp-hub-post-card:hover{
  background:var(--dp-hub-card-bg-hover) !important;
  transform:translateY(-2px) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__media,
body.dp-hub-route .dp-hub-post-card__media{
  background:var(--dp-hub-card-media-bg) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__type,
body.dp-hub-route .dp-hub-post-card__type{
  background:var(--dp-hub-card-category-bg) !important;
  color:var(--dp-hub-card-category-text) !important;
  border:1px solid rgba(255,255,255,.20) !important;
  box-shadow:0 6px 16px rgba(0,0,0,.18) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card h3,
body.dp-hub-route .dp-hub-post-card h3{
  color:var(--dp-hub-card-title) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__date,
body.dp-hub-route .dp-hub-post-card__date,
#dp-root.dp-view-hub .dp-hub-post-row__date,
body.dp-hub-route .dp-hub-post-row__date{
  background:var(--dp-hub-card-date-bg) !important;
  color:var(--dp-hub-card-date-text) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__views,
body.dp-hub-route .dp-hub-post-card__views,
#dp-root.dp-view-hub .dp-hub-post-row__views,
body.dp-hub-route .dp-hub-post-row__views{
  color:var(--dp-hub-card-view-text) !important;
}
#dp-root.dp-view-hub .dp-hub-post-row,
body.dp-hub-route .dp-hub-post-row{
  background:var(--dp-hub-row-bg) !important;
  border:1px solid var(--dp-hub-row-border) !important;
}


#dp-root.dp-view-hub .dp-hub-post-card span.dp-hub-post-card__type{
	color: var(--dp-hub-muted-1) !important;
}

/* v1.0.12.6 responsive post card columns + readable meta
   Base: user's v1.0.12.5. 桌機 4 個、平板 3 個、手機 2 個。 */
#dp-root.dp-view-hub,
body.dp-hub-route{
  --dp-hub-card-category-bg:var(--dp-hub-secondary, var(--dp-hub-accent-2, #b8862b));
  --dp-hub-card-category-text:#ffffff;
  --dp-hub-card-date-bg:rgba(107,114,128,.18);
  --dp-hub-card-date-text:#ffffff;
  --dp-hub-card-view-text:#ffffff;
}

#dp-root.dp-mode-light.dp-view-hub,
.dp-root.dp-mode-light.dp-view-hub,
body.dp-mode-light.dp-hub-route,
body:not(.dp-mode-dark).dp-hub-route{
  --dp-hub-card-bg:rgba(24,27,32,.92);
  --dp-hub-card-bg-hover:rgba(28,32,38,.01);
  --dp-hub-card-border:rgba(15,23,42,.14);
  --dp-hub-card-title:#ffffff;
  --dp-hub-card-media-bg:rgba(15,23,42,.08);
  --dp-hub-card-shadow:0 10px 22px rgba(15,23,42,.10);
  --dp-hub-row-bg:rgba(24,27,32,.86);
  --dp-hub-row-border:rgba(255,255,255,.08);
}

#dp-root.dp-mode-dark.dp-view-hub,
.dp-root.dp-mode-dark.dp-view-hub,
body.dp-mode-dark.dp-hub-route,
body.is-dark.dp-hub-route,
body.dark.dp-hub-route,
html[data-theme="dark"] body.dp-hub-route{
  --dp-hub-card-bg:rgba(18,21,26,.92);
  --dp-hub-card-bg-hover:rgba(24,28,35,.96);
  --dp-hub-card-border:rgba(255,255,255,.10);
  --dp-hub-card-title:#ffffff;
  --dp-hub-card-media-bg:rgba(255,255,255,.06);
  --dp-hub-card-shadow:0 14px 34px rgba(0,0,0,.26);
  --dp-hub-row-bg:rgba(18,21,26,.84);
  --dp-hub-row-border:rgba(255,255,255,.08);
  --dp-hub-card-date-bg:rgba(255,255,255,.10);
  --dp-hub-card-date-text:#ffffff;
  --dp-hub-card-view-text:#ffffff;
}

#dp-root.dp-view-hub .dp-hub-post-grid,
body.dp-hub-route .dp-hub-post-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
}

#dp-root.dp-view-hub .dp-hub-post-card,
body.dp-hub-route .dp-hub-post-card{
  position:relative !important;
  overflow:hidden !important;
  background:var(--dp-hub-card-bg) !important;
  border:1px solid var(--dp-hub-card-border) !important;
  border-radius:5px !important;
  box-shadow:var(--dp-hub-card-shadow) !important;
  transition:transform .16s ease, background-color .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}
#dp-root.dp-view-hub .dp-hub-post-card:hover,
body.dp-hub-route .dp-hub-post-card:hover{
  background:var(--dp-hub-card-bg-hover) !important;
  transform:translateY(-2px) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card a,
body.dp-hub-route .dp-hub-post-card a{
  display:block !important;
  text-decoration:none !important;
  color:#ffffff !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__media,
body.dp-hub-route .dp-hub-post-card__media{
  position:relative !important;
  background:var(--dp-hub-card-media-bg) !important;
  overflow:hidden !important;
}
#dp-root.dp-view-hub .dp-hub-post-card img,
body.dp-hub-route .dp-hub-post-card img{
  width:100% !important;
  aspect-ratio:16/9 !important;
  object-fit:cover !important;
  display:block !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__type,
body.dp-hub-route .dp-hub-post-card__type{
  position:absolute !important;
  left:8px !important;
  top:8px !important;
  z-index:2 !important;
  display:inline-flex !important;
  align-items:center !important;
  width:max-content !important;
  max-width:calc(100% - 16px) !important;
  margin:0 !important;
  padding:4px 8px !important;
  border-radius:4px !important;
  background:var(--dp-hub-card-category-bg) !important;
  color:var(--dp-hub-card-category-text) !important;
  border:1px solid rgba(255,255,255,.20) !important;
  box-shadow:0 6px 16px rgba(0,0,0,.18) !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__body,
body.dp-hub-route .dp-hub-post-card__body{
  display:flex !important;
  flex-direction:column !important;
  gap:16px !important;
  min-height:108px !important;
  padding:11px 12px 10px !important;
}
#dp-root.dp-view-hub .dp-hub-post-card h3,
body.dp-hub-route .dp-hub-post-card h3{
  margin:0 !important;
  color:var(--dp-hub-card-title) !important;
  font-size:15px !important;
  line-height:1.45 !important;
  font-weight:800 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__meta,
body.dp-hub-route .dp-hub-post-card__meta{
  margin-top:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__date,
body.dp-hub-route .dp-hub-post-card__date,
#dp-root.dp-view-hub .dp-hub-post-row__date,
body.dp-hub-route .dp-hub-post-row__date{
  display:inline-flex !important;
  align-items:center !important;
  width:max-content !important;
  margin:0 !important;
  padding:4px 8px !important;
  border-radius:4px !important;
  background:var(--dp-hub-card-date-bg) !important;
  color:var(--dp-hub-card-date-text) !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:500 !important;
  white-space:nowrap !important;
}
#dp-root.dp-view-hub .dp-hub-post-card__views,
body.dp-hub-route .dp-hub-post-card__views,
#dp-root.dp-view-hub .dp-hub-post-row__views,
body.dp-hub-route .dp-hub-post-row__views{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:4px !important;
  margin:0 !important;
  color:var(--dp-hub-card-view-text) !important;
  font-size:12px !important;
  line-height:1 !important;
  font-style:normal !important;
  white-space:nowrap !important;
}
#dp-root.dp-view-hub .dp-hub-eye-icon,
body.dp-hub-route .dp-hub-eye-icon{
  width:15px !important;
  height:15px !important;
  flex:0 0 auto !important;
  opacity:.9 !important;
}

#dp-root.dp-view-hub .dp-hub-post-row,
body.dp-hub-route .dp-hub-post-row{
  grid-template-columns:104px minmax(0,1fr) 120px 84px !important;
  min-height:44px !important;
  padding:8px 12px !important;
  align-items:center !important;
  background:var(--dp-hub-row-bg) !important;
  border:1px solid var(--dp-hub-row-border) !important;
}
#dp-root.dp-view-hub .dp-hub-post-row strong,
body.dp-hub-route .dp-hub-post-row strong,
#dp-root.dp-view-hub .dp-hub-post-row span,
#dp-root.dp-view-hub .dp-hub-post-row em,
body.dp-hub-route .dp-hub-post-row span,
body.dp-hub-route .dp-hub-post-row em{
  color:#ffffff !important;
}

@media (max-width:1200px){
  #dp-root.dp-view-hub .dp-hub-post-grid,
  body.dp-hub-route .dp-hub-post-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}

@media (max-width:768px){
  #dp-root.dp-view-hub .dp-hub-post-grid,
  body.dp-hub-route .dp-hub-post-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  #dp-root.dp-view-hub .dp-hub-post-row,
  body.dp-hub-route .dp-hub-post-row{grid-template-columns:92px minmax(0,1fr) 62px !important;}
  #dp-root.dp-view-hub .dp-hub-post-row__views,
  body.dp-hub-route .dp-hub-post-row__views{display:none !important;}
}

@media (max-width:520px){
  #dp-root.dp-view-hub .dp-hub-post-grid,
  body.dp-hub-route .dp-hub-post-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}
  #dp-root.dp-view-hub .dp-hub-post-card__body,
  body.dp-hub-route .dp-hub-post-card__body{padding:9px 8px 8px !important;min-height:96px !important;gap:9px !important;}
  #dp-root.dp-view-hub .dp-hub-post-card h3,
  body.dp-hub-route .dp-hub-post-card h3{font-size:13px !important;line-height:1.42 !important;}
  #dp-root.dp-view-hub .dp-hub-post-card__type,
  body.dp-hub-route .dp-hub-post-card__type{top:6px !important;left:6px !important;padding:3px 6px !important;font-size:11px !important;}
  #dp-root.dp-view-hub .dp-hub-post-card__date,
  body.dp-hub-route .dp-hub-post-card__date{padding:3px 6px !important;font-size:11px !important;}
  #dp-root.dp-view-hub .dp-hub-post-card__views,
  body.dp-hub-route .dp-hub-post-card__views{font-size:11px !important;gap:3px !important;}
  #dp-root.dp-view-hub .dp-hub-eye-icon,
  body.dp-hub-route .dp-hub-eye-icon{width:13px !important;height:13px !important;}
}

/* v1.0.12.7 card title readability + view meta align
   修正：亮色模式卡片底為淺色時，標題不可固定白色；深色模式才用白色。 */
#dp-root.dp-view-hub .dp-hub-post-card h3,
body.dp-hub-route .dp-hub-post-card h3,
#dp-root.dp-view-hub .dp-hub-post-card h3 a,
body.dp-hub-route .dp-hub-post-card h3 a{
  color:var(--dp-hub-strong) !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-card h3,
body.dp-mode-light.dp-hub-route .dp-hub-post-card h3,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-card h3 a,
body.dp-mode-light.dp-hub-route .dp-hub-post-card h3 a{
  color:#000000 !important;
  text-shadow:none !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-card h3,
body.dp-mode-dark.dp-hub-route .dp-hub-post-card h3,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-card h3 a,
body.dp-mode-dark.dp-hub-route .dp-hub-post-card h3 a{
  color:#ffffff !important;
}
#dp-root.dp-view-hub .dp-hub-post-card h3,
body.dp-hub-route .dp-hub-post-card h3{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  min-height:43px !important;
  margin:10px 12px 8px !important;
}

/* meta row：日期左、觀看數右；避免觀看數沉到不對的位置。 */
#dp-root.dp-view-hub .dp-hub-post-card .dp-hub-card-meta,
#dp-root.dp-view-hub .dp-hub-post-card .dp-hub-post-meta,
#dp-root.dp-view-hub .dp-hub-post-card .dp-hub-meta,
body.dp-hub-route .dp-hub-post-card .dp-hub-card-meta,
body.dp-hub-route .dp-hub-post-card .dp-hub-post-meta,
body.dp-hub-route .dp-hub-post-card .dp-hub-meta{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  margin:0 12px 12px !important;
  min-height:28px !important;
}
#dp-root.dp-view-hub .dp-hub-post-card .dp-hub-view-count,
#dp-root.dp-view-hub .dp-hub-post-card .dp-hub-views,
#dp-root.dp-view-hub .dp-hub-post-card [class*="view"],
body.dp-hub-route .dp-hub-post-card .dp-hub-view-count,
body.dp-hub-route .dp-hub-post-card .dp-hub-views,
body.dp-hub-route .dp-hub-post-card [class*="view"]{
  display:inline-flex !important;
  align-items:center !important;
  gap:5px !important;
  margin-left:auto !important;
  line-height:1 !important;
  color:var(--dp-hub-muted) !important;
}
#dp-root.dp-view-hub .dp-hub-post-card .dp-hub-view-count svg,
#dp-root.dp-view-hub .dp-hub-post-card .dp-hub-views svg,
body.dp-hub-route .dp-hub-post-card .dp-hub-view-count svg,
body.dp-hub-route .dp-hub-post-card .dp-hub-views svg{
  width:14px !important;
  height:14px !important;
  display:block !important;
  flex:0 0 auto !important;
}


/* v1.0.12.8 readable post row + final view align
   一般貼文列表不能在亮色模式固定白字，避免白底看不到。 */
#dp-root.dp-view-hub .dp-hub-post-row strong,
body.dp-hub-route .dp-hub-post-row strong{
  color:var(--dp-hub-strong) !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-row strong,
body.dp-mode-light.dp-hub-route .dp-hub-post-row strong{
  color:#f8fafc !important;
  text-shadow:none !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-row strong,
body.dp-mode-dark.dp-hub-route .dp-hub-post-row strong{
  color:#ffffff !important;
}
#dp-root.dp-view-hub .dp-hub-post-row__views,
body.dp-hub-route .dp-hub-post-row__views,
#dp-root.dp-view-hub .dp-hub-post-card__views,
body.dp-hub-route .dp-hub-post-card__views{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:4px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
#dp-root.dp-view-hub .dp-hub-post-row__views svg,
body.dp-hub-route .dp-hub-post-row__views svg,
#dp-root.dp-view-hub .dp-hub-post-card__views svg,
body.dp-hub-route .dp-hub-post-card__views svg{
  width:14px !important;
  height:14px !important;
  display:block !important;
  flex:0 0 auto !important;
}


/* v1.0.12.9 light mode row meta readability
   修正：一般貼文列表的日期 / 分類 / 瀏覽數不能被舊的 span/em 白字規則蓋掉。 */
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-row__date,
body.dp-mode-light.dp-hub-route .dp-hub-post-row__date{
  background:#e5e7eb !important;
  color:#4b5563 !important;
  text-shadow:none !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-row em,
body.dp-mode-light.dp-hub-route .dp-hub-post-row em{
  color:#4b5563 !important;
  text-shadow:none !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-row__views,
body.dp-mode-light.dp-hub-route .dp-hub-post-row__views{
  color:#6b7280 !important;
  text-shadow:none !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-post-row__views svg,
body.dp-mode-light.dp-hub-route .dp-hub-post-row__views svg{
  color:#6b7280 !important;
  fill:currentColor !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-row__date,
body.dp-mode-dark.dp-hub-route .dp-hub-post-row__date{
  background:rgba(255,255,255,.12) !important;
  color:#d1d5db !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-row em,
body.dp-mode-dark.dp-hub-route .dp-hub-post-row em{
  color:#d1d5db !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-row__views,
body.dp-mode-dark.dp-hub-route .dp-hub-post-row__views{
  color:#d1d5db !important;
}
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-post-row__views svg,
body.dp-mode-dark.dp-hub-route .dp-hub-post-row__views svg{
  color:#d1d5db !important;
  fill:currentColor !important;
}


/* v1.0.12.11 RIGHT SIDEBAR glass base fix
   直接在 Skin 補右欄半透明毛玻璃底，避免自由文字 / New Block 掉到卡片外時沒有背景。 */
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar,
body.dp-hub-route .dp-b-hub_frontend_sidebar{
  position:relative !important;
  isolation:isolate !important;
  background:rgba(25,25,25,.58) !important;
  border:1px solid rgba(148,163,184,.20) !important;
  box-shadow:0 18px 44px rgba(0,0,0,.26) !important;
  color:#e5e7eb !important;
  padding:20px !important;
  overflow:hidden !important;
  width:100% !important;
  box-sizing:border-box !important;
  -webkit-backdrop-filter:blur(18px) saturate(135%) !important;
  backdrop-filter:blur(18px) saturate(135%) !important;
}
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar::before,
body.dp-hub-route .dp-b-hub_frontend_sidebar::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:-1 !important;
  pointer-events:none !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035) 46%, rgba(255,255,255,.015)),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.12), transparent 42%) !important;
}
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar > .dp-hub-front,
body.dp-hub-route .dp-b-hub_frontend_sidebar > .dp-hub-front{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  width:100% !important;
}
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar .dp-hub-side-card,
body.dp-hub-route .dp-b-hub_frontend_sidebar .dp-hub-side-card{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 0 14px !important;
  margin:0 !important;
}
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar .dp-hub-side-card:last-child,
body.dp-hub-route .dp-b-hub_frontend_sidebar .dp-hub-side-card:last-child{
  padding-bottom:0 !important;
}
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar h2,
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar h3,
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar dt,
#dp-root.dp-view-hub .dp-b-hub_frontend_sidebar dd,
body.dp-hub-route .dp-b-hub_frontend_sidebar h2,
body.dp-hub-route .dp-b-hub_frontend_sidebar h3,
body.dp-hub-route .dp-b-hub_frontend_sidebar dt,
body.dp-hub-route .dp-b-hub_frontend_sidebar dd{
  color:inherit !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-b-hub_frontend_sidebar,
body.dp-mode-light.dp-hub-route .dp-b-hub_frontend_sidebar{
  background:linear-gradient(180deg,rgba(32,32,32,.48),rgba(18,18,18,.32)) !important;
  backdrop-filter:blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(180%) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  color:#f8fafc !important;
  box-shadow:0 16px 36px rgba(15,23,42,.10) !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-b-hub_frontend_sidebar::before,
body.dp-mode-light.dp-hub-route .dp-b-hub_frontend_sidebar::before{
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.16) 0%, rgba(255,255,255,.07) 18%, transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important;
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  #dp-root.dp-view-hub .dp-b-hub_frontend_sidebar,
  body.dp-hub-route .dp-b-hub_frontend_sidebar{
    background:rgba(25,25,25,.88) !important;
  }
  #dp-root.dp-mode-light.dp-view-hub .dp-b-hub_frontend_sidebar,
  body.dp-mode-light.dp-hub-route .dp-b-hub_frontend_sidebar{
    background:rgba(255,255,255,.92) !important;
  }
}



/* Glass Sidebar */
.dp-b-hub_frontend_sidebar,
.dp-hub-front__side{
    background:transparent !important;
}
.dp-hub-side-card{
    background:linear-gradient(180deg,
        rgba(40,40,40,.42),
        rgba(18,18,18,.28)) !important;
    border:1px solid rgba(255,255,255,.08)!important;
    backdrop-filter:blur(20px) saturate(180%)!important;
    -webkit-backdrop-filter:blur(20px) saturate(180%)!important;
    box-shadow:0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.05)!important;
}


/* v1.0.12.15 Hub Hero light/dark readability guard
   Hero 背景固定偏暗時，亮色模式不能套用深色文字；獨立判斷亮暗，避免標題與描述消失。 */
#dp-root.dp-view-hub .dp-hub-hero,
#dp-root.dp-view-hub .dp-hub-index-hero,
body.dp-hub-route .dp-hub-hero,
body.dp-hub-route .dp-hub-index-hero{
  color:#ffffff !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-hero,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-index-hero,
body.dp-mode-light.dp-hub-route .dp-hub-hero,
body.dp-mode-light.dp-hub-route .dp-hub-index-hero,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-hero,
#dp-root.dp-mode-dark.dp-view-hub .dp-hub-index-hero,
body.dp-mode-dark.dp-hub-route .dp-hub-hero,
body.dp-mode-dark.dp-hub-route .dp-hub-index-hero{
  color:#ffffff !important;
}
#dp-root.dp-view-hub .dp-hub-hero h1,
#dp-root.dp-view-hub .dp-hub-index-hero h1,
#dp-root.dp-view-hub .dp-hub-hero .dp-hub-title,
body.dp-hub-route .dp-hub-hero h1,
body.dp-hub-route .dp-hub-index-hero h1,
body.dp-hub-route .dp-hub-hero .dp-hub-title{
  color:#ffffff !important;
  text-shadow:0 2px 14px rgba(0,0,0,.45) !important;
}
#dp-root.dp-view-hub .dp-hub-hero p,
#dp-root.dp-view-hub .dp-hub-index-hero p,
#dp-root.dp-view-hub .dp-hub-hero__aliases,
#dp-root.dp-view-hub .dp-hub-hero__desc,
#dp-root.dp-view-hub .dp-hub-desc,
body.dp-hub-route .dp-hub-hero p,
body.dp-hub-route .dp-hub-index-hero p,
body.dp-hub-route .dp-hub-hero__aliases,
body.dp-hub-route .dp-hub-hero__desc,
body.dp-hub-route .dp-hub-desc{
  color:rgba(255,255,255,.82) !important;
  text-shadow:0 1px 10px rgba(0,0,0,.42) !important;
}
#dp-root.dp-view-hub .dp-hub-hero__platforms,
#dp-root.dp-view-hub .dp-hub-hero__platform-label,
#dp-root.dp-view-hub .dp-hub-hero__kicker,
body.dp-hub-route .dp-hub-hero__platforms,
body.dp-hub-route .dp-hub-hero__platform-label,
body.dp-hub-route .dp-hub-hero__kicker{
  color:rgba(255,255,255,.74) !important;
}

/* Hub left content rebuild v1.0 — right sidebar untouched */
.dp-hub-front__main .dp-hub-section__head--clean{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  margin:0 0 18px !important;
  padding:0 !important;
  border:0 !important;
}
.dp-hub-front__main .dp-hub-section__head--clean span{display:none !important;}
.dp-hub-front__main .dp-hub-section__head--clean h2{
  margin:0 !important;
  font-size:22px !important;
  line-height:1.25 !important;
}
.dp-hub-front__main .dp-hub-featured-news{
  display:grid !important;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr) !important;
  gap:18px !important;
  width:100% !important;
  min-width:0 !important;
}
.dp-hub-front__main .dp-hub-featured-lead,
.dp-hub-front__main .dp-hub-featured-row,
.dp-hub-front__main .dp-hub-category-card{
  min-width:0 !important;
}
.dp-hub-front__main .dp-hub-featured-lead > a,
.dp-hub-front__main .dp-hub-category-card > a{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
  color:inherit !important;
  text-decoration:none !important;
}
.dp-hub-front__main .dp-hub-featured-lead{
  overflow:hidden !important;
  border:1px solid rgba(148,163,184,.18) !important;
  background:#191919 !important;
}
.dp-hub-front__main .dp-hub-featured-lead__media{
  position:relative !important;
  aspect-ratio:16/9 !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.035) !important;
}
.dp-hub-front__main .dp-hub-featured-lead__media img,
.dp-hub-front__main .dp-hub-category-card__media img,
.dp-hub-front__main .dp-hub-featured-row__media img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
}
.dp-hub-front__main .dp-hub-featured-lead__placeholder{
  display:block !important;
  width:100% !important;
  height:100% !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  padding:18px !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body h3,
.dp-hub-front__main .dp-hub-category-card__body h3{
  margin:0 !important;
  font-size:18px !important;
  line-height:1.45 !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body p{
  margin:10px 0 16px !important;
  color:rgba(255,255,255,.68) !important;
  line-height:1.7 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
.dp-hub-front__main .dp-hub-content-meta{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin-top:auto !important;
  color:rgba(255,255,255,.55) !important;
  font-size:12px !important;
}
.dp-hub-front__main .dp-hub-content-meta > span{
  display:inline-flex !important;
  align-items:center !important;
  gap:5px !important;
}
.dp-hub-front__main .dp-hub-content-meta svg{
  width:14px !important;
  height:14px !important;
}
.dp-hub-front__main .dp-hub-featured-news__list{
  height: 322px;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow-y: auto;
    min-width: 0 !important;
}
.dp-hub-front__main .dp-hub-featured-row{
  display:grid !important;
  grid-template-columns:112px minmax(0,1fr) !important;
  gap:14px !important;
  align-items:center !important;
  min-height:88px !important;
  padding:10px !important;
  border:1px solid rgba(148,163,184,.18) !important;
  background:#191919 !important;
  color:inherit !important;
  text-decoration:none !important;
}
.dp-hub-front__main .dp-hub-featured-news__list{
    scrollbar-width:thin;
    scrollbar-color:#707070 transparent;
}

.dp-hub-front__main .dp-hub-featured-news__list::-webkit-scrollbar{
    width:6px;
}

.dp-hub-front__main .dp-hub-featured-news__list::-webkit-scrollbar-track{
    background:transparent;
}

.dp-hub-front__main .dp-hub-featured-news__list::-webkit-scrollbar-thumb{
    background:#555;
    border-radius:50px;
}

.dp-hub-front__main .dp-hub-featured-news__list::-webkit-scrollbar-thumb:hover{
    background:#8b8b8b;
}


.dp-hub-front__main .dp-hub-featured-row__media{
  display:block !important;
  aspect-ratio:16/9 !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.035) !important;
}
.dp-hub-front__main .dp-hub-featured-row__content{
  display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 0 5px 0 0;
}
.dp-hub-front__main .dp-hub-featured-row__content strong{
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  font-size:15px !important;
  line-height:1.45 !important;
}
.dp-hub-front__main .dp-hub-category-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:16px !important;
  width:100% !important;
}
.dp-hub-front__main .dp-hub-category-card{
  overflow:hidden !important;
  border:1px solid rgba(148,163,184,.18) !important;
  background:#191919 !important;
}
.dp-hub-front__main .dp-hub-category-card__media{
  aspect-ratio:16/9 !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.035) !important;
}
.dp-hub-front__main .dp-hub-category-card__body{
  display:flex !important;
  flex-direction:column !important;
  min-height:112px !important;
  padding:14px !important;
}
.dp-hub-front__main .dp-hub-section--category + .dp-hub-section--category{
  margin-top:18px !important;
}
@media (max-width:1100px){
  .dp-hub-front__main .dp-hub-featured-news{
    grid-template-columns:1fr !important;
  }
  .dp-hub-front__main .dp-hub-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:680px){
  .dp-hub-front__main .dp-hub-category-grid{
    grid-template-columns:1fr !important;
  }
  .dp-hub-front__main .dp-hub-featured-row{
    grid-template-columns:92px minmax(0,1fr) !important;
  }
}

/* Hub content tabs v1.0 — only one left-side block is shown at a time */
.dp-hub-front__main .dp-hub-tabs{
  width:100% !important;
  min-width:0 !important;
}
.dp-hub-front__main .dp-hub-tabs__nav{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  margin:0 0 14px !important;
  padding:0 0 10px !important;
  overflow-x:auto !important;
  border-bottom:1px solid rgba(148,163,184,.18) !important;
  scrollbar-width:thin !important;
}
.dp-hub-front__main .dp-hub-tabs__button{
  flex:0 0 auto !important;
  min-height:38px !important;
  padding:8px 15px !important;
  border:1px solid rgba(148,163,184,.18) !important;
  border-radius:6px !important;
  background:#191919 !important;
  color:rgba(255,255,255,.72) !important;
  font:inherit !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  cursor:pointer !important;
  transition:border-color .16s ease,background .16s ease,color .16s ease !important;
}
.dp-hub-front__main .dp-hub-tabs__button:hover,
.dp-hub-front__main .dp-hub-tabs__button:focus-visible{
  color:#fff !important;
  border-color:rgba(59,130,246,.62) !important;
  outline:none !important;
}
.dp-hub-front__main .dp-hub-tabs__button.is-active{
  color:#fff !important;
  background:#0b5fc6 !important;
  border-color:#0b5fc6 !important;
}
.dp-hub-front__main .dp-hub-tabs__panels,
.dp-hub-front__main .dp-hub-tabs__panel{
  width:100% !important;
  min-width:0 !important;
}
.dp-hub-front__main .dp-hub-tabs__panel{
  padding:24px !important;
  border:1px solid rgba(148,163,184,.18) !important;
  background:rgba(15,17,20,.72) !important;
}
.dp-hub-front__main .dp-hub-tabs__panel[hidden]{
  display:none !important;
}
.dp-hub-front__main .dp-hub-tabs__panel .dp-hub-section__head--clean{
  justify-content:flex-start !important;
  margin-bottom:18px !important;
}
.dp-hub-front__main .dp-hub-tabs__panel .dp-hub-section__head--clean h2{
  text-align:left !important;
}
@media (max-width:680px){
  .dp-hub-front__main .dp-hub-tabs__nav{
    margin-bottom:10px !important;
    padding-bottom:8px !important;
  }
  .dp-hub-front__main .dp-hub-tabs__button{
    min-height:36px !important;
    padding:8px 12px !important;
    font-size:14px !important;
  }
  .dp-hub-front__main .dp-hub-tabs__panel{
    padding:16px !important;
  }
}

/* Hub focus + category tabs refinement v1.1 */
.dp-hub-front__main{
  --dp-hub-content-surface:#0f1114;
  --dp-hub-content-card:#191919;
  --dp-hub-content-card-soft:#15171a;
  --dp-hub-content-text:#f8fafc;
  --dp-hub-content-muted:rgba(248,250,252,.62);
  --dp-hub-content-line:rgba(148,163,184,.18);
  --dp-hub-content-hover:rgba(255,255,255,.045);
}
#dp-root.dp-mode-light .dp-hub-front__main,
body.dp-mode-light .dp-hub-front__main,
body.is-light .dp-hub-front__main{
  --dp-hub-content-surface:#ffffff;
  --dp-hub-content-card:#ffffff;
  --dp-hub-content-card-soft:#f8fafc;
  --dp-hub-content-text:#111827;
  --dp-hub-content-muted:#64748b;
  --dp-hub-content-line:rgba(15,23,42,.14);
  --dp-hub-content-hover:#f1f5f9;
}

.dp-hub-front__main .dp-hub-focus-section{
  padding:20px !important;
	 margin: 20px 0 0 0;
  border:1px solid var(--dp-hub-content-line) !important;
  background:var(--dp-hub-content-surface) !important;
}
.dp-hub-front__main .dp-hub-focus-section .dp-hub-section__head--clean{
  margin-bottom:14px !important;
}
.dp-hub-front__main .dp-hub-focus-section .dp-hub-section__head--clean h2{
  color:var(--dp-hub-content-text) !important;
  font-size:20px !important;
}
.dp-hub-front__main .dp-hub-featured-news{
  grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr) !important;
  gap:14px !important;
  align-items:start !important;
}
.dp-hub-front__main .dp-hub-featured-lead,
.dp-hub-front__main .dp-hub-featured-row,
.dp-hub-front__main .dp-hub-category-card{
  background:var(--dp-hub-content-card) !important;
  border-color:var(--dp-hub-content-line) !important;
  color:var(--dp-hub-content-text) !important;
}
.dp-hub-front__main .dp-hub-featured-lead__media{
  aspect-ratio:16/8.2 !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body{
  padding:14px 16px !important;
  min-height:0 !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body h3{
  font-size:17px !important;
  line-height:1.4 !important;
  -webkit-line-clamp:2 !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body p{
  margin:7px 0 12px !important;
  color:var(--dp-hub-content-muted) !important;
  line-height:1.55 !important;
  -webkit-line-clamp:1 !important;
}
.dp-hub-front__main .dp-hub-featured-news__list{
  gap:8px !important;
}
.dp-hub-front__main .dp-hub-featured-row{
  grid-template-columns: 104px minmax(0, 1fr) !important;
    min-height: 62px !important;
    padding: 0px !important;
    gap: 12px !important;
}
.dp-hub-front__main .dp-hub-featured-row__content{
  gap:4px !important;
}
.dp-hub-front__main .dp-hub-featured-row__content strong{
color:var(--dp-hub-content-text) !important;
font-size:11px !important;
font-weight:300 !important;
}
.dp-hub-front__main .dp-hub-content-meta{
  color:var(--dp-hub-content-muted) !important;
}

/* 分頁移到焦點區下方，與焦點內容分開 */
.dp-hub-front__main .dp-hub-tabs--below-focus{
  margin-top:16px !important;
}
.dp-hub-front__main .dp-hub-tabs__nav{
  margin:0 !important;
  padding:0 0 10px !important;
  border-bottom:1px solid var(--dp-hub-content-line) !important;
  background:transparent !important;
}
.dp-hub-front__main .dp-hub-tabs__button{
  min-height:36px !important;
  padding:7px 14px !important;
  background:var(--dp-hub-content-card-soft) !important;
  color:var(--dp-hub-content-muted) !important;
  border-color:var(--dp-hub-content-line) !important;
}
.dp-hub-front__main .dp-hub-tabs__button:hover,
.dp-hub-front__main .dp-hub-tabs__button:focus-visible{
  color:var(--dp-hub-content-text) !important;
  background:var(--dp-hub-content-hover) !important;
}
.dp-hub-front__main .dp-hub-tabs__button.is-active{
  color:#fff !important;
  background:#0b5fc6 !important;
  border-color:#0b5fc6 !important;
}
.dp-hub-front__main .dp-hub-tabs__panel{
  padding:16px 0 0 !important;
  border:0 !important;
  background:transparent !important;
}

/* 分類卡：整塊高度貼近圖片，瀏覽數放圖上，標題在圖下 */
.dp-hub-front__main .dp-hub-category-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
}
.dp-hub-front__main .dp-hub-category-card{
  border-radius:0 !important;
}
.dp-hub-front__main .dp-hub-category-card > a{
  height:auto !important;
}
.dp-hub-front__main .dp-hub-category-card__media{
  position:relative !important;
  aspect-ratio:16/9 !important;
  background:var(--dp-hub-content-card-soft) !important;
}
.dp-hub-front__main .dp-hub-category-card__views{
  position:absolute !important;
  right:8px !important;
  bottom:8px !important;
  z-index:2 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:5px !important;
  padding:4px 7px !important;
  color:#fff !important;
  background:rgba(0,0,0,.68) !important;
  font-size:12px !important;
  line-height:1 !important;
}
.dp-hub-front__main .dp-hub-category-card__views svg{
  width:13px !important;
  height:13px !important;
}
.dp-hub-front__main .dp-hub-category-card__body{
  min-height:0 !important;
  padding:10px 12px 11px !important;
  background:var(--dp-hub-content-card) !important;
}
.dp-hub-front__main .dp-hub-category-card__body h3{
  color:var(--dp-hub-content-text) !important;
  font-size:15px !important;
  line-height:1.42 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
.dp-hub-front__main .dp-hub-category-card__body time{
  display:block !important;
  margin-top:8px !important;
  color:var(--dp-hub-content-muted) !important;
  font-size:12px !important;
}

@media (max-width:1100px){
  .dp-hub-front__main .dp-hub-featured-news{
    grid-template-columns:1fr !important;
  }
}
@media (max-width:680px){
  .dp-hub-front__main .dp-hub-focus-section{
    padding:14px !important;
  }
  .dp-hub-front__main .dp-hub-featured-lead__media{
    aspect-ratio:16/9 !important;
  }
  .dp-hub-front__main .dp-hub-category-grid{
    grid-template-columns:1fr !important;
  }
}

/* Hub featured lead full-image overlay v1.0.12.20 */
.dp-hub-front__main .dp-hub-featured-lead{
  position:relative !important;
  background:var(--dp-hub-content-card,#191919) !important;
}
.dp-hub-front__main .dp-hub-featured-lead > a{
  position:relative !important;
  display:block !important;
  min-height:0 !important;
  height:auto !important;
  overflow:hidden !important;
}
.dp-hub-front__main .dp-hub-featured-lead__media{
  width:100% !important;
  aspect-ratio:16/9 !important;
  min-height:0 !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  z-index:3 !important;
  display:block !important;
  min-height:0 !important;
  padding:42px 16px 14px !important;
  color:#fff !important;
  background:linear-gradient(180deg,rgba(6,8,11,0) 0%,rgba(6,8,11,.55) 34%,rgba(6,8,11,.88) 100%) !important;
  backdrop-filter:blur(2px) !important;
  -webkit-backdrop-filter:blur(2px) !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body h3{
  margin:0 !important;
  color:#fff !important;
  font-size:18px !important;
  line-height:1.4 !important;
  text-shadow:0 1px 3px rgba(0,0,0,.75) !important;
}
.dp-hub-front__main .dp-hub-featured-lead__body p{
  margin:7px 0 10px !important;
  color:rgba(255,255,255,.78) !important;
  -webkit-line-clamp:1 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.72) !important;
}
.dp-hub-front__main .dp-hub-featured-lead .dp-hub-content-meta{
  color:rgba(255,255,255,.74) !important;
}
.dp-hub-front__main .dp-hub-featured-lead .dp-hub-content-meta svg{
  color:#fff !important;
  fill:currentColor !important;
}
@media (max-width:680px){
  .dp-hub-front__main .dp-hub-featured-lead__body{
    padding:34px 12px 11px !important;
  }
  .dp-hub-front__main .dp-hub-featured-lead__body h3{
    font-size:16px !important;
  }
  .dp-hub-front__main .dp-hub-featured-lead__body p{
    display:none !important;
  }
}

/* v1.0.12.21 focus cleanup + 2-row horizontal rail + extension section */
.dp-hub-front__main .dp-hub-focus-section--no-title{
  padding-top:20px !important;
}
.dp-hub-front__main .dp-hub-focus-section--no-title > .dp-hub-section__head{
  display:none !important;
}

/* 分頁內容改為左右滑動：桌機同時看見約 3.5 塊，共兩行 */
.dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
  display:grid !important;
  grid-auto-flow:column !important;
  grid-template-rows:repeat(2,minmax(0,auto)) !important;
  grid-auto-columns:calc((100% - 35px) / 3.5) !important;
  grid-template-columns:none !important;
  gap:14px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  padding:0 0 10px !important;
  scroll-snap-type:x proximity !important;
  overscroll-behavior-inline:contain !important;
  scrollbar-width:thin !important;
}
.dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-card{
  min-width:0 !important;
  scroll-snap-align:start !important;
}
.dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-card__media{
  aspect-ratio:16/9 !important;
}
.dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-card__body{
  min-height:72px !important;
}

/* 最下方延伸區：由 other / more / extension 分類指定內容 */
.dp-hub-front__main .dp-hub-extension-section{
  margin-top:22px !important;
  padding-top:18px !important;
  border-top:1px solid var(--dp-hub-content-line) !important;
}
.dp-hub-front__main .dp-hub-extension-section__head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  margin:0 0 14px !important;
}
.dp-hub-front__main .dp-hub-extension-section__head h2{
  margin:0 !important;
  color:var(--dp-hub-content-text) !important;
  font-size:18px !important;
  line-height:1.35 !important;
  text-align:left !important;
}
.dp-hub-front__main .dp-hub-extension-section .dp-hub-category-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
}

@media (max-width:900px){
  .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-auto-columns:calc((100% - 21px) / 2.5) !important;
  }
  .dp-hub-front__main .dp-hub-extension-section .dp-hub-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:680px){
  .dp-hub-front__main .dp-hub-focus-section--no-title{
    padding-top:12px !important;
  }
  .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-template-rows:repeat(2,minmax(0,auto)) !important;
    grid-auto-columns:78% !important;
    gap:10px !important;
  }
  .dp-hub-front__main .dp-hub-extension-section .dp-hub-category-grid{
    grid-template-columns:1fr !important;
  }
}

/* v1.0.12.23 mobile sticky backend tabs selector + mobile 2.5 cards */
@media (max-width:768px){
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs{
    display:block !important;
    height:44px !important;
    min-height:44px !important;
    padding:6px 12px !important;
    overflow:visible !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__select-wrap{
    position:relative;
    display:block;
    width:100%;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__select{
    display:block;
    width:100%;
    height:32px;
    margin:0;
    padding:0 34px 0 11px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:5px;
    outline:0;
    appearance:auto;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:12px;
    font-weight:700;
    line-height:32px;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__select option{
    background:#171717;
    color:#fff;
  }
  #dp-root.dp-view-hub.dp-hub-sticky-visible .dp-hub-tabs{
    scroll-margin-top:104px !important;
  }
  .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-auto-columns:calc((100% - 15px) / 2.5) !important;
  }
}


/* v1.0.12.23 mobile sticky selector cleanup */
@media (max-width:768px){
  #dp-root.dp-view-hub .dp-hub-mobile-sticky{
    z-index:99 !important;
    background:#111315 !important;
    box-shadow:0 8px 24px rgba(0,0,0,.28) !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__tabs{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    height:44px !important;
    min-height:44px !important;
    padding:6px 10px !important;
    background:#111315 !important;
    border-top:0 !important;
    border-bottom:1px solid rgba(255,255,255,.10) !important;
    overflow:hidden !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__select-wrap{
    display:block !important;
    width:100% !important;
    height:32px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__select-wrap > span{
    display:none !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__select{
    position:relative !important;
    z-index:2 !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:32px !important;
    min-height:32px !important;
    margin:0 !important;
    padding:0 34px 0 10px !important;
    overflow:hidden !important;
    border:1px solid rgba(255,255,255,.14) !important;
    border-radius:5px !important;
    background:#1b1d20 !important;
    color:#f5f7fa !important;
    -webkit-text-fill-color:#f5f7fa !important;
    font-size:12px !important;
    font-weight:700 !important;
    line-height:30px !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    box-sizing:border-box !important;
    appearance:auto !important;
  }
  #dp-root.dp-view-hub .dp-hub-mobile-sticky__select option{
    background:#1b1d20 !important;
    color:#f5f7fa !important;
  }
  #dp-root.dp-view-hub.dp-hub-sticky-visible .dp-hub-tabs{
    scroll-margin-top:108px !important;
  }
}

/* v1.0.12.25 Hub hero device density normalization
   5 device ranges; 1280px is the desktop density watershed. */
#dp-root.dp-view-hub .dp-hub-hero__content{
  min-width:0 !important;
}
#dp-root.dp-view-hub .dp-hub-hero__aliases,
#dp-root.dp-view-hub .dp-hub-hero p{
  overflow-wrap:anywhere !important;
}

/* Wide desktop: >= 1280 */
@media (min-width:1280px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero{
    min-height:320px !important;
    padding:42px 0 34px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__inner{
    grid-template-columns:60px minmax(0,820px) !important;
    gap:24px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero h1,
  #dp-root.dp-view-hub .dp-hub-index-hero h1{
    font-size:30px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__pills{
    gap:10px !important;
    margin-top:16px !important;
  }
}

/* Compact desktop: 1024–1279 */
@media (min-width:1024px) and (max-width:1279px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero{
    min-height:286px !important;
    padding:32px 0 26px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__inner{
    grid-template-columns:56px minmax(0,720px) !important;
    gap:18px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__cover{
    width:56px !important;
    height:56px !important;
    min-width:56px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__cover span{font-size:31px !important;}
  #dp-root.dp-view-hub .dp-hub-hero h1,
  #dp-root.dp-view-hub .dp-hub-index-hero h1{
    font-size:27px !important;
    margin-bottom:5px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__aliases{
    font-size:13px !important;
    margin-bottom:6px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero p{
    font-size:13px !important;
    line-height:1.62 !important;
    -webkit-line-clamp:2 !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__platforms{
    gap:6px !important;
    margin-bottom:5px !important;
  }
  #dp-root.dp-view-hub .dp-hub-platform-pill{
    min-height:21px !important;
    padding:4px 8px !important;
    font-size:11px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__pills{
    gap:7px !important;
    margin-top:12px !important;
  }
  #dp-root.dp-view-hub .dp-hub-info-pill{
    min-height:24px !important;
    padding:5px 9px !important;
    font-size:12px !important;
  }
}

/* Tablet: 768–1023 */
@media (min-width:768px) and (max-width:1023px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero{
    min-height:252px !important;
    padding:26px 0 22px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__inner{
    grid-template-columns:52px minmax(0,1fr) !important;
    gap:14px !important;
    align-items:start !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__cover{
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__cover span{font-size:29px !important;}
  #dp-root.dp-view-hub .dp-hub-hero h1,
  #dp-root.dp-view-hub .dp-hub-index-hero h1{
    font-size:25px !important;
    line-height:1.12 !important;
    margin-bottom:4px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__aliases{
    font-size:12px !important;
    line-height:1.35 !important;
    margin-bottom:5px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero p{
    font-size:12px !important;
    line-height:1.55 !important;
    -webkit-line-clamp:2 !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__platforms{
    gap:5px !important;
    margin-bottom:5px !important;
  }
  #dp-root.dp-view-hub .dp-hub-platform-pill{
    min-height:20px !important;
    padding:4px 7px !important;
    font-size:11px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__pills{
    gap:6px !important;
    margin-top:10px !important;
  }
  #dp-root.dp-view-hub .dp-hub-info-pill{
    min-height:23px !important;
    padding:5px 8px !important;
    font-size:11px !important;
  }
}

/* Large phone: 480–767 */
@media (min-width:480px) and (max-width:767px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero{
    min-height:238px !important;
    padding:22px 0 20px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__inner{
    grid-template-columns:50px minmax(0,1fr) !important;
    gap:12px !important;
    align-items:start !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__cover{
    width:50px !important;
    height:50px !important;
    min-width:50px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__cover span{font-size:27px !important;}
  #dp-root.dp-view-hub .dp-hub-hero h1,
  #dp-root.dp-view-hub .dp-hub-index-hero h1{
    font-size:23px !important;
    margin-bottom:4px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__aliases{
    font-size:12px !important;
    line-height:1.32 !important;
    margin-bottom:4px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero p{
    font-size:12px !important;
    line-height:1.48 !important;
    -webkit-line-clamp:2 !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__platforms{
    gap:5px !important;
  }
  #dp-root.dp-view-hub .dp-hub-platform-pill{
    min-height:20px !important;
    padding:4px 7px !important;
    font-size:10px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__pills{
    gap:6px !important;
    margin-top:9px !important;
  }
  #dp-root.dp-view-hub .dp-hub-info-pill{
    min-height:22px !important;
    padding:5px 8px !important;
    font-size:11px !important;
  }
}

/* Small phone: <= 479 */
@media (max-width:479px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero{
    min-height:224px !important;
    padding:18px 0 16px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__inner{
    grid-template-columns:48px minmax(0,1fr) !important;
    gap:10px !important;
    align-items:start !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__cover{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__cover span{font-size:26px !important;}
  #dp-root.dp-view-hub .dp-hub-hero h1,
  #dp-root.dp-view-hub .dp-hub-index-hero h1{
    font-size:22px !important;
    line-height:1.5 !important;
    margin-bottom:3px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__aliases{
    font-size:11px !important;
    line-height:1.3 !important;
    margin-bottom:4px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero p{
    font-size:11px !important;
    line-height:1.45 !important;
    -webkit-line-clamp:2 !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__platforms{
    gap:4px !important;
    margin-bottom:4px !important;
  }
  #dp-root.dp-view-hub .dp-hub-platform-pill{
    min-height:19px !important;
    padding:4px 6px !important;
    font-size:10px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__pills{
    gap:5px !important;
    margin-top:8px !important;
  }
  #dp-root.dp-view-hub .dp-hub-info-pill{
    min-height:21px !important;
    padding:4px 7px !important;
    font-size:10px !important;
  }
}

/* v1.0.12.26 focus breakpoint + compact mobile hero information */
.dp-hub-front__main .dp-hub-featured-news{
  grid-template-columns:minmax(0,1.85fr) minmax(240px,1fr) !important;
  align-items:stretch !important;
}
.dp-hub-front__main .dp-hub-featured-news__list{
  min-width:0 !important;
}
@media (min-width:600px){
  .dp-hub-front__main .dp-hub-featured-news{
    grid-template-columns:minmax(0,1.85fr) minmax(240px,1fr) !important;
  }
}
@media (max-width:599px){
  .dp-hub-front__main .dp-hub-featured-news{
    grid-template-columns:1fr !important;
  }
}

#dp-root.dp-view-hub .dp-hub-platform-pill--mobile,
#dp-root.dp-view-hub .dp-hub-info-pill--mobile,
#dp-root.dp-view-hub .dp-hub-hero-more{
  display:none !important;
}
#dp-root.dp-view-hub .dp-hub-hero__platform-list{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  min-width:0 !important;
}

@media (max-width:599px){
  #dp-root.dp-view-hub .dp-hub-platform-pill--desktop,
  #dp-root.dp-view-hub .dp-hub-info-pill--desktop{
    display:none !important;
  }
  #dp-root.dp-view-hub .dp-hub-platform-pill--mobile,
  #dp-root.dp-view-hub .dp-hub-info-pill--mobile{
    display:inline-flex !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero-more{
    position:relative !important;
    display:inline-block !important;
    flex:0 0 auto !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero-more > summary{
    list-style:none !important;
    display:inline-flex !important;
    align-items:center !important;
    min-height:22px !important;
    padding:4px 8px !important;
    border:1px solid rgba(255,255,255,.16) !important;
    border-radius:5px !important;
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    font-size:10px !important;
    line-height:1 !important;
    font-weight:700 !important;
    cursor:pointer !important;
    white-space:nowrap !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero-more > summary::-webkit-details-marker{display:none !important;}
  #dp-root.dp-view-hub .dp-hub-hero-more__menu{
    position:absolute !important;
    top:calc(100% + 6px) !important;
    left:0 !important;
    z-index:30 !important;
    display:flex !important;
    flex-wrap:wrap !important;
    gap:6px !important;
    width:min(280px,calc(100vw - 96px)) !important;
    padding:10px !important;
    border:1px solid rgba(148,163,184,.24) !important;
    border-radius:7px !important;
    background:#17191d !important;
    box-shadow:0 16px 36px rgba(0,0,0,.38) !important;
  }
  #dp-root.dp-mode-light.dp-view-hub .dp-hub-hero-more__menu,
  body.dp-mode-light.dp-hub-route .dp-hub-hero-more__menu{
    background:#fff !important;
    border-color:rgba(15,23,42,.16) !important;
    box-shadow:0 16px 34px rgba(15,23,42,.16) !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__platforms,
  #dp-root.dp-view-hub .dp-hub-hero__pills{
    flex-wrap:nowrap !important;
    overflow:visible !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__platform-list{
    flex-wrap:nowrap !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__content{
    overflow:visible !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__platform-label{
    flex:0 0 auto !important;
  }
}

/* v1.0.12.27 Hub hero content-height correction
   Prevent dense platform/tag rows from being clipped by the next content slot. */
#dp-root.dp-view-hub .dp-hub-hero,
#dp-root.dp-view-hub .dp-hub-index-hero,
body.dp-hub-route .dp-hub-hero,
body.dp-hub-route .dp-hub-index-hero{
  height:auto !important;
  max-height:none !important;
}
#dp-root.dp-view-hub .dp-hub-hero__inner,
body.dp-hub-route .dp-hub-hero__inner{
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  align-items:start !important;
}
#dp-root.dp-view-hub .dp-hub-hero__content,
body.dp-hub-route .dp-hub-hero__content{
  height:auto !important;
  max-height:none !important;
  padding-bottom:8px !important;
}

/* 1024–1279: enough room for multi-row platform and information pills. */
@media (min-width:1024px) and (max-width:1279px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:340px !important;
    padding-top:34px !important;
    padding-bottom:34px !important;
  }
}

/* Tablet and large phone retain content-driven height instead of the old compressed shell. */
@media (min-width:600px) and (max-width:1023px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:320px !important;
    padding-top:28px !important;
    padding-bottom:30px !important;
  }
}

@media (max-width:599px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:280px !important;
    padding-bottom:24px !important;
  }
}

/* v1.0.12.28 Header height + sidebar overlap correction
   1) Medium desktop keeps the Hub hero fully visible instead of being covered by the next slot.
   2) Hub INFO rises only about half of the previous amount. */
#dp-root.dp-view-hub .dp-c-right_hub,
body.dp-hub-route .dp-c-right_hub{
  margin-top:-50px !important;
}

@media (min-width:1024px) and (max-width:1180px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:380px !important;
    padding-top:34px !important;
    padding-bottom:46px !important;
    overflow:visible !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__inner,
  #dp-root.dp-view-hub .dp-hub-hero__content,
  body.dp-hub-route .dp-hub-hero__inner,
  body.dp-hub-route .dp-hub-hero__content{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
  #dp-root.dp-view-hub .dp-layout.has-right,
  #dp-root.dp-view-hub main.dp-layout.has-right,
  body.dp-hub-route .dp-layout.has-right,
  body.dp-hub-route main.dp-layout.has-right{
    margin-top:0 !important;
  }
}

@media (max-width:1023px){
  #dp-root.dp-view-hub .dp-layout.has-right,
  #dp-root.dp-view-hub main.dp-layout.has-right,
  body.dp-hub-route .dp-layout.has-right,
  body.dp-hub-route main.dp-layout.has-right{
    margin-top:0 !important;
  }
  #dp-root.dp-view-hub .dp-c-right_hub,
  body.dp-hub-route .dp-c-right_hub{
    margin-top:0 !important;
  }
}

/* v1.0.12.29 Hub hero vertical centering + light-mode dropdown readability
   Keep the complete Hub header vertically centered on every device while allowing
   its content to grow naturally. Also prevent white text from disappearing inside
   the light-mode "more" menu. */
#dp-root.dp-view-hub .dp-hub-hero,
#dp-root.dp-view-hub .dp-hub-index-hero,
body.dp-hub-route .dp-hub-hero,
body.dp-hub-route .dp-hub-index-hero{
  display:flex !important;
  align-items:center !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  overflow:visible !important;
}
#dp-root.dp-view-hub .dp-hub-hero__inner,
body.dp-hub-route .dp-hub-hero__inner{
  align-items:center !important;
  align-content:center !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
}
#dp-root.dp-view-hub .dp-hub-hero__cover,
body.dp-hub-route .dp-hub-hero__cover{
  align-self:center !important;
}
#dp-root.dp-view-hub .dp-hub-hero__content,
body.dp-hub-route .dp-hub-hero__content{
  align-self:center !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  height:auto !important;
  max-height:none !important;
  padding-bottom:0 !important;
  overflow:visible !important;
}

/* Remove previous oversized fixed-height compensation. */
@media (min-width:1280px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    padding-top:32px !important;
    padding-bottom:32px !important;
  }
}
@media (min-width:1024px) and (max-width:1279px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:0 !important;
    padding-top:28px !important;
    padding-bottom:28px !important;
  }
}
@media (min-width:600px) and (max-width:1023px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:0 !important;
    padding-top:24px !important;
    padding-bottom:24px !important;
  }
}
@media (max-width:599px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:0 !important;
    padding-top:18px !important;
    padding-bottom:18px !important;
  }
  #dp-root.dp-view-hub .dp-hub-hero__inner,
  body.dp-hub-route .dp-hub-hero__inner{
    align-items:center !important;
  }
}

/* Light mode: dropdown surface and every item inside it must use dark text. */
#dp-root.dp-mode-light.dp-view-hub .dp-hub-hero-more__menu,
body.dp-mode-light.dp-hub-route .dp-hub-hero-more__menu{
  color:#111827 !important;
  background:#ffffff !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-hero-more__menu *,
body.dp-mode-light.dp-hub-route .dp-hub-hero-more__menu *{
  color:#111827 !important;
  text-shadow:none !important;
}
#dp-root.dp-mode-light.dp-view-hub .dp-hub-hero-more__menu .dp-hub-platform-pill,
#dp-root.dp-mode-light.dp-view-hub .dp-hub-hero-more__menu .dp-hub-info-pill,
body.dp-mode-light.dp-hub-route .dp-hub-hero-more__menu .dp-hub-platform-pill,
body.dp-mode-light.dp-hub-route .dp-hub-hero-more__menu .dp-hub-info-pill{
  background:#f3f4f6 !important;
  border-color:rgba(15,23,42,.16) !important;
  color:#111827 !important;
}

/* v1.0.12.30 Mobile "more" dropdown viewport-safe correction
   Keep expanded platform/tag items above the following content and inside the phone viewport. */
@media (max-width:599px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  #dp-root.dp-view-hub .dp-hub-hero__inner,
  #dp-root.dp-view-hub .dp-hub-hero__content,
  #dp-root.dp-view-hub .dp-hub-hero__platforms,
  #dp-root.dp-view-hub .dp-hub-hero__platform-list,
  #dp-root.dp-view-hub .dp-hub-hero__pills,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero__inner,
  body.dp-hub-route .dp-hub-hero__content,
  body.dp-hub-route .dp-hub-hero__platforms,
  body.dp-hub-route .dp-hub-hero__platform-list,
  body.dp-hub-route .dp-hub-hero__pills{
    overflow:visible !important;
  }

  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    position:relative !important;
    z-index:20 !important;
  }

  #dp-root.dp-view-hub .dp-hub-hero-more,
  body.dp-hub-route .dp-hub-hero-more{
    position:relative !important;
    z-index:80 !important;
  }

  #dp-root.dp-view-hub .dp-hub-hero-more__menu,
  body.dp-hub-route .dp-hub-hero-more__menu{
    left:auto !important;
    right:0 !important;
    top:calc(100% + 6px) !important;
    z-index:9999 !important;
    width:max-content !important;
    min-width:180px !important;
    max-width:min(280px,calc(100vw - 24px)) !important;
    max-height:min(52vh,320px) !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
  }

  /* The first platform row can sit near the left edge; keep its menu left-aligned. */
  #dp-root.dp-view-hub .dp-hub-hero__platforms .dp-hub-hero-more__menu,
  body.dp-hub-route .dp-hub-hero__platforms .dp-hub-hero-more__menu{
    left:0 !important;
    right:auto !important;
  }

  #dp-root.dp-view-hub .dp-hub-hero-more[open],
  body.dp-hub-route .dp-hub-hero-more[open]{
    z-index:9999 !important;
  }
}


/* v1.0.12.31 Hub hero final height tuning
   Keep the whole header vertically centered, but restore enough vertical breathing room
   from desktop through mobile without relying on clipping or fixed content height. */
#dp-root.dp-view-hub .dp-hub-hero,
#dp-root.dp-view-hub .dp-hub-index-hero,
body.dp-hub-route .dp-hub-hero,
body.dp-hub-route .dp-hub-index-hero{
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
}

@media (min-width:1280px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:286px !important;
    padding-top:42px !important;
    padding-bottom:42px !important;
  }
}

@media (min-width:1024px) and (max-width:1279px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:300px !important;
    padding-top:40px !important;
    padding-bottom:40px !important;
  }
}

@media (min-width:600px) and (max-width:1023px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:270px !important;
    padding-top:34px !important;
    padding-bottom:34px !important;
  }
}

@media (max-width:599px){
  #dp-root.dp-view-hub .dp-hub-hero,
  #dp-root.dp-view-hub .dp-hub-index-hero,
  body.dp-hub-route .dp-hub-hero,
  body.dp-hub-route .dp-hub-index-hero{
    min-height:238px !important;
    padding-top:26px !important;
    padding-bottom:26px !important;
  }
}


/* v1.0.12.32 Mobile hero more menu: compact anchored popover.
   JS in Frontend Core 2.4.18.1 handles one-open-at-a-time and outside/Esc closing. */
@media (max-width:599px){
  #dp-root.dp-view-hub .dp-hub-hero-more__menu,
  body.dp-hub-route .dp-hub-hero-more__menu{
    top:calc(100% + 8px) !important;
    bottom:auto !important;
    width:min(260px,calc(100vw - 32px)) !important;
    min-width:0 !important;
    max-width:calc(100vw - 32px) !important;
    max-height:220px !important;
    padding:8px !important;
    gap:6px !important;
    border-radius:8px !important;
    overflow:auto !important;
    overscroll-behavior:contain !important;
    box-sizing:border-box !important;
  }

  #dp-root.dp-view-hub .dp-hub-hero-more--platforms .dp-hub-hero-more__menu,
  body.dp-hub-route .dp-hub-hero-more--platforms .dp-hub-hero-more__menu{
    left:0 !important;
    right:auto !important;
  }

  #dp-root.dp-view-hub .dp-hub-hero-more--tags .dp-hub-hero-more__menu,
  body.dp-hub-route .dp-hub-hero-more--tags .dp-hub-hero-more__menu{
    left:auto !important;
    right:0 !important;
  }

  #dp-root.dp-view-hub .dp-hub-hero-more__menu .dp-hub-platform-pill,
  #dp-root.dp-view-hub .dp-hub-hero-more__menu .dp-hub-info-pill,
  body.dp-hub-route .dp-hub-hero-more__menu .dp-hub-platform-pill,
  body.dp-hub-route .dp-hub-hero-more__menu .dp-hub-info-pill{
    flex:0 1 auto !important;
    max-width:100% !important;
    min-height:30px !important;
    padding:6px 9px !important;
    font-size:11px !important;
    line-height:1.2 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }

  #dp-root.dp-view-hub .dp-hub-hero-more[open] > summary,
  body.dp-hub-route .dp-hub-hero-more[open] > summary{
    border-color:rgba(59,130,246,.78) !important;
    box-shadow:0 0 0 2px rgba(59,130,246,.16) !important;
  }
}

/* Hub Search v1.0 - Google-inspired, Hub-only search page */
body.dp-hub-search-route{
  --dp-hub-search-bg:#fff;
  --dp-hub-search-text:#202124;
  --dp-hub-search-muted:#5f6368;
  --dp-hub-search-line:#dadce0;
  --dp-hub-search-link:#1a0dab;
  --dp-hub-search-blue:#1a73e8;
  background:var(--dp-hub-search-bg) !important;
}
body.dp-mode-dark.dp-hub-search-route,
#dp-root.dp-mode-dark.dp-view-hub{
  --dp-hub-search-bg:#171717;
  --dp-hub-search-text:#e8eaed;
  --dp-hub-search-muted:#9aa0a6;
  --dp-hub-search-line:#3c4043;
  --dp-hub-search-link:#8ab4f8;
  --dp-hub-search-blue:#8ab4f8;
}
.dp-hub-search-hero{
  background:var(--dp-hub-search-bg) !important;
  border-bottom:1px solid var(--dp-hub-search-line);
  padding:24px 32px 18px;
  color:var(--dp-hub-search-text);
}
.dp-hub-search-hero__inner{
  width:min(1180px,100%);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:26px;
}
.dp-hub-search-brand{
  flex:0 0 auto;
  color:var(--dp-hub-search-text) !important;
  text-decoration:none;
  font-size:30px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.04em;
}
.dp-hub-search-form{
  position:relative;
  display:flex;
  align-items:center;
  width:min(690px,100%);
  min-height:46px;
  background:var(--dp-hub-search-bg);
  border:1px solid var(--dp-hub-search-line);
  border-radius:24px;
  box-shadow:0 1px 6px rgba(32,33,36,.18);
  overflow:hidden;
}
.dp-hub-search-form:focus-within,
.dp-hub-search-form:hover{box-shadow:0 1px 6px rgba(32,33,36,.28);}
.dp-hub-search-form__icon{
  width:18px;height:18px;margin-left:18px;flex:0 0 auto;background:var(--dp-hub-search-muted);
  mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m21 20-5.2-5.2a7 7 0 1 0-1 1L20 21l1-1ZM5 10a5 5 0 1 1 10 0 5 5 0 0 1-10 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dp-hub-search-form input{
  min-width:0;flex:1;border:0 !important;outline:0 !important;background:transparent !important;
  color:var(--dp-hub-search-text) !important;font-size:16px;line-height:1.5;padding:10px 12px;box-shadow:none !important;
}
.dp-hub-search-form__clear{
  color:var(--dp-hub-search-muted) !important;text-decoration:none;font-size:24px;line-height:1;padding:4px 10px;
}
.dp-hub-search-form button{
  align-self:stretch;border:0;border-left:1px solid var(--dp-hub-search-line);background:transparent;color:var(--dp-hub-search-blue);
  padding:0 22px;font-size:14px;font-weight:700;cursor:pointer;
}
.dp-hub-search-page{background:var(--dp-hub-search-bg) !important;color:var(--dp-hub-search-text);min-height:55vh;}
.dp-hub-search-page__inner{width:min(760px,calc(100% - 64px));margin:0 auto;padding:18px 0 54px;}
.dp-hub-search-meta{color:var(--dp-hub-search-muted);font-size:13px;line-height:1.5;margin:0 0 20px;}
.dp-hub-search-results{display:flex;flex-direction:column;gap:30px;}
.dp-hub-search-result{margin:0;padding:0;background:transparent !important;border:0 !important;box-shadow:none !important;}
.dp-hub-search-result__top{display:flex;align-items:center;gap:10px;margin-bottom:7px;}
.dp-hub-search-result__top img,
.dp-hub-search-result__avatar{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;object-fit:cover;background:#f1f3f4;color:#3c4043;font-size:13px;font-weight:700;}
.dp-hub-search-result__site{font-size:13px;line-height:1.2;color:var(--dp-hub-search-text);}
.dp-hub-search-result__url{font-size:11px;line-height:1.35;color:var(--dp-hub-search-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px;}
.dp-hub-search-result h2{margin:0 0 5px;font-size:20px !important;line-height:1.3;font-weight:400;}
.dp-hub-search-result h2 a{color:var(--dp-hub-search-link) !important;text-decoration:none;}
.dp-hub-search-result h2 a:hover{text-decoration:underline;}
.dp-hub-search-result p{margin:0;color:var(--dp-hub-search-muted);font-size:14px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.dp-hub-search-empty-state,.dp-hub-search-no-results{padding:80px 0;text-align:center;}
.dp-hub-search-empty-state h1,.dp-hub-search-no-results h1{margin:0 0 10px;color:var(--dp-hub-search-text);font-size:28px;line-height:1.3;font-weight:500;}
.dp-hub-search-empty-state p,.dp-hub-search-no-results p{margin:0;color:var(--dp-hub-search-muted);font-size:15px;}
.dp-hub-search-pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:40px;flex-wrap:wrap;}
.dp-hub-search-pagination a,.dp-hub-search-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border-radius:18px;text-decoration:none;font-size:14px;}
.dp-hub-search-pagination a{color:var(--dp-hub-search-blue) !important;}
.dp-hub-search-pagination a:hover{background:rgba(26,115,232,.08);}
.dp-hub-search-pagination span{background:var(--dp-hub-search-blue);color:#fff;}
.dp-hub-search-sidebar{display:none !important;}
body.dp-hub-search-route #dp-root .dp-layout-right-sidebar,
body.dp-hub-search-route #dp-root .dp-portal-right,
body.dp-hub-search-route #dp-root [data-area="right_hub"]{display:none !important;}
body.dp-hub-search-route #dp-root .dp-layout-main,
body.dp-hub-search-route #dp-root .dp-portal-main{width:100% !important;max-width:none !important;}
@media(max-width:768px){
  .dp-hub-search-hero{padding:18px 14px 14px;}
  .dp-hub-search-hero__inner{display:block;}
  .dp-hub-search-brand{display:block;margin:0 0 14px;text-align:center;font-size:26px;}
  .dp-hub-search-form{width:100%;min-height:44px;}
  .dp-hub-search-form button{padding:0 15px;}
  .dp-hub-search-page__inner{width:calc(100% - 28px);padding-top:16px;}
  .dp-hub-search-results{gap:26px;}
  .dp-hub-search-result h2{font-size:18px !important;}
  .dp-hub-search-result__url{max-width:240px;}
}

/* v1.0.12.36｜分類卡片改為無拉霸 Slide 軌道 */
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-behavior:smooth !important;
  scroll-snap-type:x mandatory !important;
  scroll-padding-inline:0 !important;
  overscroll-behavior-x:contain !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
  cursor:grab;
  user-select:none;
}
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid:active{
  cursor:grabbing;
}
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
  display:none !important;
}
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-card{
  scroll-snap-align:start !important;
  scroll-snap-stop:always !important;
}

@media (max-width:768px){
  #dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-auto-columns:82% !important;
    gap:12px !important;
    padding-bottom:0 !important;
  }
}

/* v1.0.12.37｜桌機真實拖曳 Slide + 縮小分類卡片 */
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
  grid-auto-columns:clamp(176px, calc((100% - 58px) / 5.2), 214px) !important;
  gap:12px !important;
  padding-bottom:0 !important;
  cursor:grab !important;
  touch-action:pan-y pinch-zoom !important;
  scroll-snap-type:x proximity !important;
}
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid.is-dragging{
  cursor:grabbing !important;
  scroll-behavior:auto !important;
  scroll-snap-type:none !important;
}
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid.is-dragging *{
  cursor:grabbing !important;
  user-select:none !important;
  -webkit-user-select:none !important;
}
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-card__body{
  min-height:64px !important;
  padding:8px 10px 9px !important;
}
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-card__body h3{
  font-size:12px !important;
  line-height:1.7 !important;
}
#dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-card__body time{
  margin-top:6px !important;
  font-size:11px !important;
}

@media (max-width:1100px) and (min-width:769px){
  #dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-auto-columns:clamp(170px, calc((100% - 34px) / 3.8), 210px) !important;
  }
}
@media (max-width:768px){
  #dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-auto-columns:72% !important;
    gap:10px !important;
    touch-action:pan-x pan-y !important;
  }
}
@media (max-width:480px){
  #dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-auto-columns:78% !important;
  }
}


/* v1.0.12.38｜手機版每排顯示 2.5 格 */
@media (max-width:768px){
  #dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-auto-columns:calc((100% - 20px) / 2.5) !important;
    gap:10px !important;
  }
}
@media (max-width:480px){
  #dp-root.dp-view-hub .dp-hub-front__main .dp-hub-tabs__panel .dp-hub-category-grid{
    grid-auto-columns:calc((100% - 20px) / 2.5) !important;
  }
}
