/* 鴻亞徵信社 互動效果與信任元件（無外部函式庫） */
.fx-progress{position:fixed;top:0;left:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#d9ad68,#efcb91);z-index:60;pointer-events:none}
/* 游標聚光 */
.fx-glow{position:relative;isolation:isolate}
.fx-glow:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),rgba(226,184,117,.20),transparent 65%);z-index:1}
.fx-glow:hover:after{opacity:1}
main>section.fx-sglow{position:relative}
main>section.fx-sglow:before{content:"";position:absolute;inset:-12px calc((100% - 100vw)/2);pointer-events:none;opacity:0;transition:opacity .5s;background:radial-gradient(520px circle at var(--mx,50%) var(--my,50%),rgba(217,173,104,.08),transparent 70%);z-index:-1}
main>section.fx-sglow:hover:before{opacity:1}
.card.fx-tilt{transition:transform .2s ease-out,box-shadow .25s;transform-style:preserve-3d;will-change:transform}
.card .tag{display:inline-block;font-size:12px;letter-spacing:.08em;color:#805522;border:1px solid #d8c19a;border-radius:20px;padding:1px 10px;margin-bottom:6px}
.card p{font-size:15px;margin:.4em 0}
/* 放大鏡 */
.fx-lens-host{position:relative}
.fx-lens{position:absolute;width:150px;height:150px;border-radius:50%;pointer-events:none;overflow:hidden;border:2px solid #e2b875;box-shadow:0 10px 30px #0008,inset 0 0 20px #0006;opacity:0;transition:opacity .2s;z-index:5;background:#0d131d}
.fx-lens.on{opacity:1}.fx-lens>*{position:absolute;left:0;top:0;transform-origin:0 0;max-width:none!important;margin:0!important}
.fx-lens-host.fx-lens-active{cursor:zoom-in}
/* 狀態列 */
.fx-status{display:inline-flex;align-items:center;gap:6px}
.fx-status i{width:8px;height:8px;border-radius:50%;background:#4fbf7a;box-shadow:0 0 0 0 #4fbf7a88;animation:fxpulse 2.4s infinite}
.fx-status.night{color:#f3c56b}.fx-status.night i{background:#f0a836;box-shadow:0 0 0 0 #f0a83688}
@keyframes fxpulse{70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
/* 安全離開 */
.fx-exit{position:fixed;right:14px;bottom:18px;z-index:55;display:flex;gap:6px;align-items:center}
.fx-exit button{font:600 14px/1 inherit;border-radius:22px;border:1px solid #8b3a2f;background:#a5402f;color:#fff;padding:10px 14px;min-height:40px;cursor:pointer;box-shadow:0 6px 16px #0004}
.fx-exit .fx-q{background:#1a2330;border-color:#4a5462;width:40px;padding:0}
.fx-exitpanel{position:fixed;right:14px;bottom:70px;z-index:56;max-width:340px;background:#111a26;color:#eee6d6;border:1px solid #4a5462;border-radius:10px;padding:16px 18px;font-size:14px;line-height:1.7;box-shadow:0 18px 40px #0007}
.fx-exitpanel h2{font-size:1rem;margin:0 0 6px;color:#f4d6a3}.fx-exitpanel ul{margin:6px 0;padding-left:1.2em}.fx-exitpanel button{margin-top:8px}
@media(max-width:860px){
  /* 不要貼在畫面底部：會擋住主視覺 LINE／電話鈕與固定行動列 */
  .fx-exit{
    top:calc(env(safe-area-inset-top,0px) + .5rem);
    bottom:auto;
    right:auto;
    left:auto;
    position:fixed;
    z-index:70;
  }
  .fx-exit.fx-exit-topbar{position:static;margin-left:auto;box-shadow:none}
  .fx-exit button{min-height:36px;padding:8px 12px;font-size:13px}
  .fx-exitpanel{
    top:calc(env(safe-area-inset-top,0px) + 3.2rem);
    bottom:auto;
    right:10px;left:10px;max-width:none
  }
}
.top .wrap{align-items:center}
.top .fx-exit{flex-shrink:0}

/* LINE 預覽 */
.linepeek{margin:16px 0;background:#111a26;color:#eee6d6;border:1px solid #38414d;border-radius:10px;padding:4px 16px}
.linepeek summary{cursor:pointer;padding:12px 0;font-weight:600;color:#f4d6a3}
.bubbles{display:grid;gap:10px;margin:8px 0 14px}
.bubble{max-width:85%;padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.7}
.bubble.me{justify-self:end;background:#17643e;color:#fff;border-bottom-right-radius:4px}
.bubble.them{justify-self:start;background:#253244;border-bottom-left-radius:4px}
.openers{display:grid;gap:8px;margin:8px 0 14px}
.opener{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#0b111a;border:1px solid #2c3440;border-radius:8px;padding:10px 12px;font-size:15px}
.opener button{flex:none;border:1px solid #d9ad68;background:transparent;color:#f4d6a3;border-radius:5px;padding:6px 12px;min-height:36px;cursor:pointer;font:inherit;font-size:14px}
/* 工具離線徽章 */
.fx-offline{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:18px 0 0;padding:12px 16px;border-radius:8px;background:#0e2a1c;border:1px solid #2f7a52;color:#d9f2e3;font-size:14px;line-height:1.6}
.fx-offline b{color:#9fe0b9}.fx-offline .net{margin-left:auto;font-size:13px;padding:2px 10px;border-radius:12px;background:#163d29}.fx-offline .net.off{background:#5a4314;color:#ffe2a6}
/* 台灣地圖 */
.maplayout{display:grid;grid-template-columns:minmax(0,1.05fr) 1fr;gap:28px;align-items:start;margin:10px 0 24px}
.twmap{margin:0;position:relative;background:radial-gradient(ellipse at 60% 40%,#1d2a3a,#0d131d 75%);border:1px solid #38414d;border-radius:12px;padding:12px}
.twmap svg{width:100%;height:auto;display:block;max-height:640px}
.twmap path{fill:#2b3a4d;stroke:#0d131d;stroke-width:1.2;transition:fill .2s}
.twmap a:hover path,.twmap a:focus path,.twmap a.on path{fill:#d9ad68}
.twmap a:focus{outline:none}.twmap a:focus-visible path{stroke:#fff;stroke-width:2.5}
.twmap .hit{fill:transparent;stroke:none}.twmap a.isl path{stroke:#2b3a4d;stroke-width:3.5;stroke-linejoin:round}.twmap a.isl:hover path,.twmap a.isl.on path,.twmap a.isl:focus path{stroke:#d9ad68}.twmap a.isl:hover .hit,.twmap a.isl.on .hit{fill:#d9ad6814}
.twmap .inset{fill:none;stroke:#4a5462;stroke-dasharray:4 3}.twmap .lbl{fill:#9aa3ad;font-size:12px}
.maptip{position:absolute;right:14px;top:14px;background:#0b111acc;color:#f4e1c3;border:1px solid #4a5462;border-radius:6px;padding:6px 10px;font-size:14px;pointer-events:none;max-width:70%}
.twmap figcaption{font-size:12px;color:#9aa3ad;margin-top:6px}
@media(max-width:860px){.maplayout{grid-template-columns:1fr}}
/* 小工具共用 */
.quiz .opt{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.quiz .opt label{display:inline-flex!important;gap:6px;align-items:center;margin:0!important;font-weight:400!important;background:#0b111a;border:1px solid #2c3440;border-radius:6px;padding:8px 12px;cursor:pointer}
.light{display:flex;gap:14px;align-items:center;margin:10px 0}.light i{width:22px;height:22px;border-radius:50%;background:#2c3440;display:inline-block}
.light.g i.g{background:#3fbf6f;box-shadow:0 0 14px #3fbf6f}.light.y i.y{background:#f0b429;box-shadow:0 0 14px #f0b429}.light.r i.r{background:#e5484d;box-shadow:0 0 14px #e5484d}
.meter{height:12px;border-radius:6px;background:#2c3440;overflow:hidden;margin:8px 0}.meter span{display:block;height:100%;background:linear-gradient(90deg,#3fbf6f,#f0b429,#e5484d);transition:width .4s}
.tl{list-style:none;margin:0;padding:0 0 0 22px;border-left:2px solid #d9ad68}.tl li{position:relative;margin:0 0 16px;padding:10px 14px;background:#0b111a;border:1px solid #2c3440;border-radius:8px}
.tl li:before{content:"";position:absolute;left:-31px;top:14px;width:14px;height:14px;border-radius:50%;background:#d9ad68;border:3px solid #111a26}
.tl .gap{list-style:none;background:none;border:0;padding:0 0 0 4px;color:#9aa3ad;font-size:13px}.tl .gap:before{display:none}
.report{background:#fffdf8;color:#20252d;border:1px solid #cfc6b6;border-radius:6px;padding:28px;box-shadow:0 18px 40px #382d1e1a;font-size:15px;position:relative;overflow:hidden}
.report:before{content:"虛構範例・非真實案件";position:absolute;top:26px;right:-52px;transform:rotate(35deg);background:#a5402f;color:#fff;font-size:12px;padding:4px 50px;letter-spacing:.1em}
.report table{width:100%;border-collapse:collapse;font-size:14px;margin-bottom:8px}.report h3{margin-top:22px;padding-right:90px}.report th,.report td{border:1px solid #d8d0c0;padding:6px 8px;text-align:left;vertical-align:top}
.report .ph{display:grid;place-items:center;aspect-ratio:4/3;background:repeating-linear-gradient(45deg,#e9e3d6,#e9e3d6 10px,#f3eee4 10px,#f3eee4 20px);color:#6b6457;font-size:13px;border:1px dashed #b7ab95;border-radius:4px}
.report .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cmp>div{border-radius:8px;padding:14px 16px}.cmp .vague{background:#f3e7e3;border:1px solid #e0c4bb}.cmp .clear{background:#e6f1ea;border:1px solid #b9d7c4}
.cmp b{display:block;margin-bottom:4px}
@media(max-width:700px){.cmp,.report .grid2{grid-template-columns:1fr}.report{padding:18px}}
@media print{.fx-exit,.fx-progress,header,footer,.top,.mobile,.pagehero .actions{display:none!important}}
@media (prefers-reduced-motion:reduce){.fx-status i{animation:none}.card.fx-tilt{transform:none!important}.fx-glow:after,main>section.fx-sglow:before{display:none}}
/* 偵探小狗隨文點綴（小、不擋操作、行動版不造成橫向溢出） */
html,body{overflow-x:hidden}
header,footer,main,.pagehero,.hero,.dog-host,.dog-cta-host,.dog-card-host,.dog-table-host,.dog-faq-host,details.dog-faq-host,.tablewrap,.actions{position:relative}
main>section{position:relative}
main>section.dog-h2-pad>h2{padding-right:78px}
main>section.dog-bot-pad{padding-bottom:78px}
.dog-spot{position:absolute;pointer-events:none;user-select:none;width:62px;height:62px;object-fit:contain;z-index:2;filter:drop-shadow(0 3px 6px rgba(32,37,45,.16));opacity:.96}
.dog-spot--tr{top:14px;right:10px;width:66px;height:66px;transform:rotate(4deg)}
.dog-spot--top-r{top:-32px;right:16px;width:62px;height:62px;transform:rotate(-3deg)}
.dog-spot--top-l{top:-30px;left:6px;width:58px;height:58px;transform:rotate(3deg)}
.dog-spot--mid-r{top:-28px;right:18%;width:56px;height:56px;transform:rotate(-5deg)}
.dog-spot--br{bottom:8px;right:12px;width:60px;height:60px;transform:rotate(-4deg)}
.dog-spot--bl{bottom:8px;left:12px;width:56px;height:56px;transform:rotate(5deg)}
/* page / main corners + peeking from edges */
.dog-spot--main-tr{top:8px;right:4px;width:60px;height:60px;transform:rotate(6deg)}
.dog-spot--main-bl{bottom:4px;left:2px;width:58px;height:58px;transform:rotate(-6deg)}
.dog-spot--peek-r{top:28%;right:-14px;width:54px;height:54px;transform:rotate(12deg)}
.dog-spot--peek-l{top:62%;left:-14px;width:52px;height:52px;transform:rotate(-10deg)}
/* chrome */
header{overflow:visible}
.dog-spot--hdr{top:50%;right:8px;width:48px;height:48px;transform:translateY(-50%) rotate(-8deg);z-index:3}
footer{overflow:hidden}
.dog-spot--ftr{right:18px;bottom:10px;width:58px;height:58px;transform:rotate(7deg)}
/* hero, CTA, cards, tables, FAQ */
.dog-spot--hero{top:8px;right:4px;width:64px;height:64px;transform:rotate(5deg)}
.dog-spot--cta{top:-28px;right:0;width:52px;height:52px;transform:rotate(-7deg)}
.dog-card-host{padding-top:12px}
.dog-spot--card{top:-18px;right:8px;width:44px;height:44px;transform:rotate(8deg)}
.dog-spot--table{top:-22px;right:10px;width:50px;height:50px;transform:rotate(-4deg)}
.dog-faq-host>summary{padding-right:52px}
.dog-spot--faq{top:8px;right:6px;width:42px;height:42px;transform:rotate(6deg)}
@media(max-width:700px){
  main>section.dog-h2-pad>h2{padding-right:58px}
  main>section.dog-bot-pad{padding-bottom:66px}
  .dog-spot{width:46px;height:46px}
  .dog-spot--tr{top:10px;right:6px;width:50px;height:50px}
  .dog-spot--top-r{top:-22px;right:8px;width:48px;height:48px}
  .dog-spot--top-l{top:-22px;left:4px;width:46px;height:46px}
  .dog-spot--mid-r{top:-20px;right:10%;width:46px;height:46px}
  .dog-spot--br{bottom:6px;right:8px;width:48px;height:48px}
  .dog-spot--bl{bottom:6px;left:8px;width:46px;height:46px}
  .dog-spot--main-tr{top:4px;right:2px;width:46px;height:46px}
  .dog-spot--main-bl{bottom:2px;left:0;width:44px;height:44px}
  .dog-spot--peek-r{right:-8px;width:42px;height:42px;top:24%}
  .dog-spot--peek-l{left:-8px;width:42px;height:42px;top:58%}
  .dog-spot--hdr{width:36px;height:36px;right:4px}
  .dog-spot--ftr{width:44px;height:44px;right:10px;bottom:8px}
  .dog-spot--hero{width:48px;height:48px;top:4px;right:0}
  .dog-spot--cta{width:40px;height:40px;top:-22px}
  .dog-spot--card{width:36px;height:36px;top:-14px;right:4px}
  .dog-spot--table{width:40px;height:40px}
  .dog-spot--faq{width:34px;height:34px}
  header .wrap{padding-right:44px} /* room for header dog, avoid overlap with brand on wrap-wrap */
}
@media print{.dog-spot{display:none!important}}

/* t713u：手機／平板 ≤768px，小狗不得覆蓋文字。邊緣探出頭與角落絕對定位隱藏；其餘改為區塊間、靠中的小圖。 */
@media (max-width: 768px){
  .dog-spot--hdr,
  .dog-spot--peek-r,
  .dog-spot--peek-l,
  .dog-spot--main-tr,
  .dog-spot--main-bl,
  .dog-spot--hero{display:none!important}
  .dog-spot--tr,.dog-spot--top-r,.dog-spot--top-l,.dog-spot--mid-r,
  .dog-spot--br,.dog-spot--bl,.dog-spot--cta,.dog-spot--faq,
  .dog-spot--table,.dog-spot--card,.dog-spot--ftr{
    position:relative!important;
    top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
    transform:none!important;
    width:36px!important;height:36px!important;
    margin:6px auto 10px!important;
    display:block;
    z-index:0;
    animation:none!important;
  }
  main>section.dog-h2-pad>h2{padding-right:0}
  main>section.dog-bot-pad{padding-bottom:0}
  .dog-faq-host>summary{padding-right:0}
  header .wrap{padding-right:0}
  .ag-hero-card-top.dog-card-host > .dog-spot--card,
  .ag-hero-card-foot.dog-card-host > .dog-spot--card{
    top:auto!important;bottom:auto!important;right:auto!important;
  }
}


/* t718u：任何寬度，小狗都不得覆蓋文字或按鈕。窄屏與桌面一律改為區塊之間；緊身容器與導覽列上的狗隱藏。 */
.dog-spot--hdr,
.dog-spot--faq,
.dog-spot--card,
.dog-spot--table{display:none!important}
.dog-spot--tr,.dog-spot--top-r,.dog-spot--top-l,.dog-spot--mid-r,
.dog-spot--br,.dog-spot--bl,.dog-spot--cta,.dog-spot--ftr,
.dog-spot--peek-r,.dog-spot--peek-l,.dog-spot--main-tr,.dog-spot--main-bl,
.dog-spot--hero{
  position:relative!important;
  top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
  transform:none!important;
  width:48px!important;height:48px!important;
  margin:8px auto 12px!important;
  display:block;
  z-index:0;
  animation:none!important;
  float:none!important;
}
main>section.dog-h2-pad>h2{padding-right:0}
main>section.dog-bot-pad{padding-bottom:0}
.dog-faq-host>summary{padding-right:0}
header .wrap{padding-right:0}
.ag-hero-card-top.dog-card-host > .dog-spot--card,
.ag-hero-card-foot.dog-card-host > .dog-spot--card{
  display:none!important;
}
@media (max-width:768px){
  .dog-spot--tr,.dog-spot--top-r,.dog-spot--top-l,.dog-spot--mid-r,
  .dog-spot--br,.dog-spot--bl,.dog-spot--cta,.dog-spot--ftr,
  .dog-spot--peek-r,.dog-spot--peek-l,.dog-spot--main-tr,.dog-spot--main-bl,
  .dog-spot--hero{
    width:36px!important;height:36px!important;
    margin:6px auto 10px!important;
  }
}
@media (min-width:1280px){
  /* 寬桌面：把探出頭／主區角落的狗放到內容欄兩側留白，而不是壓在字上 */
  main.wrap, header, footer, .pagehero, section.dog-host, .dog-host{overflow:visible}
  .dog-spot--peek-r,.dog-spot--main-tr{
    position:absolute!important;
    left:100%!important;right:auto!important;top:28px!important;bottom:auto!important;
    margin:0 0 0 14px!important;
    width:56px!important;height:56px!important;
    display:block!important;
    transform:rotate(8deg)!important;
  }
  .dog-spot--peek-l,.dog-spot--main-bl{
    position:absolute!important;
    right:100%!important;left:auto!important;top:42%!important;bottom:auto!important;
    margin:0 14px 0 0!important;
    width:56px!important;height:56px!important;
    display:block!important;
    transform:rotate(-8deg)!important;
  }
}

/* t721u：星座比較圖下方的示意分數說明 */
.chart-explain{margin:22px 0 8px;max-width:46em}
.chart-explain>.note{color:#b9b2a3;font-size:.92rem;line-height:1.7}
.chart-idx{margin:16px 0;padding:16px 18px;background:#111a26;border:1px solid rgba(226,184,117,.22);border-radius:12px}
.chart-idx h3{margin:0 0 12px;color:#f4e1c3;font-size:1.08rem}
.chart-idx h4{margin:14px 0 6px;color:#e2b875;font-size:1rem;font-weight:600}
.chart-idx p{margin:0 0 8px;color:#e0e0df;max-width:46em}
.chart-idx p:last-child{margin-bottom:0}
.chart-idx b{color:#f6e7ce;font-weight:600}
@media(max-width:700px){
  .chart-idx{padding:14px 14px}
}
