/* 前台品牌區（寶輝 2026-11-04 v2：精緻版） */
.site-top .wrap.top-row:has(.brand.fx){height:80px}
.site-top .brand.fx{display:flex;align-items:center;gap:20px;background:none;padding:0;border-radius:0;text-decoration:none}
.brand.fx .brand-card{position:relative;display:block;background:linear-gradient(160deg,#165ea3 0%,#0e4e88 55%,#0b3d6c 100%);border-radius:10px;padding:6px 14px;overflow:hidden;
 box-shadow:inset 0 0 0 1px rgba(255,214,90,.55),0 4px 14px rgba(10,47,82,.22);animation:bfx-in .8s cubic-bezier(.22,1,.36,1) both}
.brand.fx .brand-card img{height:46px;width:auto;display:block;position:relative;z-index:1}
.brand.fx .shine{position:absolute;top:0;bottom:0;left:0;width:38%;z-index:2;pointer-events:none;
 background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,0) 30%,rgba(255,255,255,.32) 50%,rgba(255,255,255,0) 70%,transparent 100%);
 transform:translateX(-120%) skewX(-12deg);animation:bfx-shine 9s cubic-bezier(.45,0,.2,1) .7s infinite}
.brand.fx .burst,.brand.fx .sp{display:none}
.brand.fx .sp1{display:block;position:absolute;z-index:3;left:calc(10% + 14px);top:6px;width:10px;height:10px;pointer-events:none;background:#fff;
 clip-path:polygon(50% 0,58% 42%,100% 50%,58% 58%,50% 100%,42% 58%,0 50%,42% 42%);filter:drop-shadow(0 0 3px rgba(255,220,120,.9));opacity:0;animation:bfx-tw 9s ease-in-out 1.5s infinite}
.brand.fx .brand-tag{display:flex;flex-direction:column;justify-content:center;line-height:1.2;padding-left:20px;border-left:2px solid #e8eef4}
.brand.fx .brand-tag b{font-size:22px;font-weight:900;letter-spacing:.1em;white-space:nowrap;color:#0a2f52;animation:bfx-rise .6s ease-out .35s both}
.brand.fx .brand-tag b em{font-style:normal;color:#0e4e88;
 background:linear-gradient(90deg,#0e4e88 0%,#0e4e88 40%,#c58a00 50%,#0e4e88 60%,#0e4e88 100%);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:bfx-text 9s ease-in-out 1s infinite}
.brand.fx .brand-tag small{margin-top:4px;font-size:13px;font-weight:600;color:#5a6b7d;letter-spacing:.08em;white-space:nowrap;animation:bfx-rise .6s ease-out .5s both}
.brand.fx .brand-tag small i{font-style:normal;color:#d9a000;margin:0 7px;font-size:10px;vertical-align:1px}
.brand.fx.seen .brand-card,.brand.fx.seen .brand-tag b,.brand.fx.seen .brand-tag small{animation:none}
@keyframes bfx-in{0%{opacity:0;transform:translateX(-24px) scale(.92)}100%{opacity:1;transform:none}}
@keyframes bfx-shine{0%{transform:translateX(-120%) skewX(-12deg)}14%,100%{transform:translateX(330%) skewX(-12deg)}}
@keyframes bfx-tw{0%,12%,24%,100%{opacity:0;transform:scale(.3) rotate(0)}17%{opacity:1;transform:scale(1) rotate(45deg)}}
@keyframes bfx-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes bfx-text{0%,20%{background-position:100% 0}45%,100%{background-position:0 0}}
@media(max-width:1100px){.brand.fx .brand-tag small{display:none}.brand.fx .brand-tag b{font-size:18px}}
@media(max-width:860px){.site-top .wrap.top-row:has(.brand.fx){height:62px}.brand.fx .brand-tag{display:none}.brand.fx .brand-card{padding:5px 11px}.brand.fx .brand-card img{height:36px}}
@media(prefers-reduced-motion:reduce){.brand.fx *{animation:none!important}.brand.fx .sp1{display:none}}

/* v3：主體是左側協會 LOGO，右側附設資格降為輔助（寶輝 2026-11-04） */
.site-top .wrap.top-row:has(.brand.fx){height:92px}
.brand.fx{gap:16px}
.brand.fx .brand-card{padding:8px 18px;border-radius:12px;box-shadow:inset 0 0 0 1.5px rgba(255,210,80,.75),0 6px 18px rgba(10,47,82,.28);animation:bfx-in .8s cubic-bezier(.22,1,.36,1) both,bfx-halo 4.5s ease-in-out 1.2s infinite}
.brand.fx .brand-card img{height:60px}
.brand.fx .shine{width:34%;background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,0) 28%,rgba(255,244,200,.45) 50%,rgba(255,255,255,0) 72%,transparent 100%);animation-duration:7s}
.brand.fx .sp1{left:calc(8% + 26px);top:7px;width:12px;height:12px;animation-duration:7s}
.brand.fx .brand-tag{padding-left:16px;border-left:1px solid #e3e9ef}
.brand.fx .brand-tag b{font-size:15px;font-weight:700;letter-spacing:.12em;color:#4a5d71}
.brand.fx .brand-tag b em{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:#4a5d71;animation:none}
.brand.fx .brand-tag small{margin-top:3px;font-size:12px;font-weight:500;color:#7b8a99;letter-spacing:.06em}
.brand.fx .brand-tag small i{color:#c9a227}
.brand.fx.seen .brand-card{animation:bfx-halo 4.5s ease-in-out infinite}
@keyframes bfx-halo{0%,100%{box-shadow:inset 0 0 0 1.5px rgba(255,210,80,.7),0 6px 18px rgba(10,47,82,.28)}50%{box-shadow:inset 0 0 0 1.5px rgba(255,214,90,1),0 0 0 3px rgba(255,200,60,.18),0 6px 22px rgba(10,47,82,.3)}}
@media(max-width:1100px){.brand.fx .brand-tag small{display:none}.brand.fx .brand-tag b{font-size:14px}}
@media(max-width:860px){.site-top .wrap.top-row:has(.brand.fx){height:66px}.brand.fx .brand-card{padding:5px 12px}.brand.fx .brand-card img{height:42px}}
@media(prefers-reduced-motion:reduce){.brand.fx *{animation:none!important}}
