/* EG 思考偏好快篩 — 所有樣式都限定在 .egq 底下，避免和 WordPress 佈景主題互相影響 */
/* 版面概念：深藍主視覺＋四色扇形，四個顏色只用來代表思考特質，介面本身保持中性 */
.egq, .egq-modal {
  --egq-ink: #14163a;
  --egq-ink-2: #4b4e6e;
  --egq-paper: #f4f5fa;
  --egq-surface: #ffffff;
  --egq-rule: #dfe1ec;
  --egq-on-ink: #f4f5fa;
  --egq-on-ink-2: #b9bcd6;
  --egq-line: #06c755;
  --egq-display: "Huninn", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --egq-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.egq {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(0px, 2vw, 20px);
  border-radius: 28px;
  background: var(--egq-paper);
  font-family: var(--egq-body);
  color: var(--egq-ink);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  scroll-margin-top: 96px;
}
.egq *, .egq *::before, .egq *::after { box-sizing: border-box; }
.egq p, .egq ul, .egq h2, .egq h3, .egq h4, .egq h5, .egq figure { margin: 0; padding: 0; }
.egq ul { list-style: none; }
.egq img { max-width: 100%; height: auto; display: block; }
.egq h2, .egq h3, .egq h4 { font-family: var(--egq-display); font-weight: 400; color: inherit; text-wrap: balance; letter-spacing: .01em; }

/* 按鈕 */
.egq .egq-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 30px; border-radius: 14px;
  font-family: var(--egq-body); font-weight: 700; font-size: 17px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.egq .egq-btn:hover:not(:disabled) { transform: translateY(-2px); }
.egq .egq-btn:disabled { opacity: .4; cursor: not-allowed; }
.egq button:focus-visible, .egq a:focus-visible, .egq summary:focus-visible, .egq input:focus-visible { outline: 3px solid #5b7cff; outline-offset: 2px; }
.egq .egq-btn-primary { background: var(--egq-ink); color: var(--egq-on-ink); }
.egq .egq-btn-bright { background: #fcf050; color: var(--egq-ink); }
.egq .egq-btn-ghost { background: transparent; color: var(--egq-ink); border-color: var(--egq-rule); }
.egq .egq-btn-line { background: var(--egq-line); color: var(--egq-ink); }
.egq .egq-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.egq a { color: inherit; }

.egq .egq-input {
  width: 100%; min-height: 52px; padding: 10px 16px;
  border: 2px solid var(--egq-rule); border-radius: 14px; background: var(--egq-surface);
  font-family: var(--egq-body); font-size: 16px; color: var(--egq-ink); margin: 0;
}
.egq .egq-input::placeholder { color: #7c7f9c; }
.egq .egq-input:focus { outline: none; border-color: var(--egq-ink); }

/* 開場主視覺 */
.egq-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 24px; background: var(--egq-ink); color: var(--egq-on-ink); overflow: hidden;
}
.egq .egq-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--egq-on-ink-2); margin-bottom: 10px; }
.egq-hero h2 { font-size: clamp(34px, 6vw, 52px); line-height: 1.2; margin-bottom: 14px; }
.egq .egq-hero-lead { color: var(--egq-on-ink-2); font-size: 17px; margin-bottom: 18px; }
.egq .egq-tagline { color: var(--egq-on-ink); font-size: 19px; font-weight: 500; margin-bottom: 20px; }
.egq .egq-hero-lead + .egq-hero-lead { margin-top: -10px; }
.egq .egq-hero-go { color: var(--egq-on-ink); font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.egq-hero .egq-small + .egq-small { margin-top: 6px; }
.egq .egq-fine { font-size: 12px; font-style: italic; opacity: .8; }
.egq-nb { display: inline-block; }
.egq-start { display: flex; gap: 10px; }
.egq-start .egq-input { flex: 1; min-width: 0; border-color: transparent; }
.egq .egq-hero .egq-btn-line { width: 100%; }
.egq .egq-hero .egq-link { color: var(--egq-on-ink); }
.egq-hero .egq-small { color: var(--egq-on-ink-2); margin-top: 14px; }
.egq-art { width: 100%; max-width: 340px; height: auto; margin: 0 auto; display: block; overflow: visible; }
.egq-art rect, .egq-art path { transition: fill .6s ease; }
.egq-stars path { transform-box: fill-box; transform-origin: center; animation: egq-twinkle 2.4s ease-in-out infinite; }
.egq-stars .egq-star-2 { animation-delay: -1.2s; }
@keyframes egq-twinkle { 50% { transform: scale(.72) rotate(15deg); opacity: .8; } }


/* 作答：一次一題 */
.egq-quiz {
  display: flex; flex-direction: column; min-height: min(620px, 82vh);
  padding: clamp(20px, 4vw, 36px); border-radius: 24px; background: var(--egq-surface);
}
.egq-meter { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.egq-progress { display: flex; align-items: center; gap: 10px; }
.egq-ring-wrap { position: relative; width: 40px; height: 40px; flex: none; }
.egq-ring { width: 40px; height: 40px; display: block; }
.egq-meter.is-milestone .egq-ring { animation: egq-ring-pop .6s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes egq-ring-pop { 40% { transform: scale(1.25) rotate(-12deg); } }
.egq-burst { position: absolute; inset: 0; pointer-events: none; }
.egq-burst i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; opacity: 0; animation: egq-burst .7s ease-out .1s; }
@keyframes egq-burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-30px) scale(.4); }
}
.egq-meter.is-milestone .egq-cheer { animation: egq-cheer .5s ease; font-weight: 700; color: var(--egq-ink); }
@keyframes egq-cheer { 0% { opacity: 0; transform: translateY(6px); } }
.egq-count { font-family: var(--egq-display); font-size: 24px; font-variant-numeric: tabular-nums; }
.egq-count small { font-size: 16px; color: var(--egq-ink-2); }
/* 作答後：輸入名字、腦補中過場 */
.egq .egq-namecard { min-height: 0; justify-content: center; gap: 12px; text-align: center; }
.egq-namecard .egq-eyebrow { color: var(--egq-ink-2); margin: 0; }
.egq-namecard h2 { font-size: clamp(26px, 5vw, 34px); line-height: 1.3; }
.egq-namecard .egq-small { color: var(--egq-ink-2); }
.egq-namecard .egq-start { margin-top: 8px; }
.egq-namecard .egq-input { border-color: var(--egq-rule); }
.egq .egq-skip { align-self: center; margin-top: 4px; color: var(--egq-ink-2); font-size: 15px; }
.egq .egq-loading { align-items: center; justify-content: center; text-align: center; gap: 10px; }
.egq-loading-art { width: min(260px, 70%); animation: egq-wobble 1.8s ease-in-out infinite; }
.egq-loading-art .egq-art { max-width: none; }
.egq-loading h2 { position: relative; font-size: 32px; }
.egq-loading h2::after { content: ""; position: absolute; left: 100%; animation: egq-dots 1.2s steps(4) infinite; }
.egq .egq-loading-msg { color: var(--egq-ink-2); min-height: 1.6em; }
@keyframes egq-wobble { 25% { transform: rotate(-3deg) scale(1.03); } 75% { transform: rotate(3deg) scale(1.03); } }
@keyframes egq-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.egq-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.egq-stage.egq-in-next { animation: egq-next .28s ease both; }
.egq-stage.egq-in-prev { animation: egq-prev .28s ease both; }
@keyframes egq-next { from { opacity: .3; transform: translateX(28px); } }
@keyframes egq-prev { from { opacity: .3; transform: translateX(-28px); } }
.egq-q-art { width: 150px; height: 150px; margin: 0 auto 24px; align-self: center; padding: 32px; border-radius: 40px; background: var(--egq-paper); color: var(--egq-ink); animation: egq-art-in .45s cubic-bezier(.2, .8, .2, 1.3) both; }
/* 插圖：先一筆畫出線條，再依圖示做各自的小動作 */
.egq-q-art svg { width: 100%; height: 100%; display: block; overflow: visible; transform-origin: center; animation: egq-bob 3.2s ease-in-out .9s infinite; }
.egq-q-art path { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: egq-draw .8s ease-out .15s forwards; }
@keyframes egq-art-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes egq-draw { to { stroke-dashoffset: 0; } }
.egq-q-art .egq-m-spin { animation-name: egq-spin; animation-duration: 6s; animation-timing-function: linear; }
.egq-q-art .egq-m-pulse { animation-name: egq-pulse; animation-duration: 1.8s; }
.egq-q-art .egq-m-beat { animation-name: egq-beat; animation-duration: 1.2s; }
.egq-q-art .egq-m-tilt { animation-name: egq-tilt; animation-duration: 2.4s; }
.egq-q-art .egq-m-glow { animation-name: egq-glow; animation-duration: 2s; }
.egq-q-art .egq-m-twinkle { animation-name: egq-twinkle-i; animation-duration: 2s; }
.egq-q-art .egq-m-scan { animation-name: egq-scan; animation-duration: 2.6s; }
.egq-q-art .egq-m-wave { animation-name: egq-wave; animation-duration: 1.6s; transform-origin: 50% 90%; }
.egq-q-art .egq-m-seesaw { animation-name: egq-seesaw; animation-duration: 2.4s; }
.egq-q-art .egq-m-pop { animation-name: egq-popi; animation-duration: 2.2s; }
.egq-q-art .egq-m-slide { animation-name: egq-slide; animation-duration: 2.2s; }
.egq-q-art .egq-m-grow { animation-name: egq-grow; animation-duration: 2.4s; transform-origin: 50% 100%; }
.egq-q-art .egq-m-snip { animation-name: egq-snip; animation-duration: 1.4s; }
@keyframes egq-bob { 50% { transform: translateY(-4px) rotate(3deg); } }
@keyframes egq-spin { to { transform: rotate(360deg); } }
@keyframes egq-pulse { 50% { transform: scale(1.12); } }
@keyframes egq-beat { 15%, 45% { transform: scale(1.15); } 30% { transform: scale(1); } }
@keyframes egq-tilt { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes egq-glow { 50% { transform: scale(1.08); filter: drop-shadow(0 0 4px #fbbf4b); } }
@keyframes egq-twinkle-i { 50% { transform: scale(.85) rotate(20deg); } }
@keyframes egq-scan { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes egq-wave { 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
@keyframes egq-seesaw { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes egq-popi { 20% { transform: scale(1.12) translateY(-3px); } 40% { transform: scale(1); } }
@keyframes egq-slide { 50% { transform: translateX(4px); } }
@keyframes egq-grow { 50% { transform: scaleY(1.12); } }
@keyframes egq-snip { 50% { transform: rotate(-12deg) scale(.95); } }
.egq .egq-q-text { font-family: var(--egq-display); font-size: clamp(25px, 4.6vw, 36px); line-height: 1.45; text-wrap: balance; max-width: 26em; margin: 0 auto; text-align: center; }
.egq-timer { height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--egq-paper); overflow: hidden; }
.egq-timer i { position: relative; display: block; height: 100%; border-radius: 2px; background: #b9bcd6; transform-origin: left; animation: egq-timer 15s linear forwards; }
@keyframes egq-timer { to { transform: scaleX(0); } }
/* 剩 5 秒：時間條變粗、彩虹流動閃爍；彩虹放在 ::after，倒數動畫不會被重新啟動 */
.egq-timer { transition: height .2s ease; }
.egq-timer i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; background: linear-gradient(90deg, #ea3323, #f59e0b, #fcf050, #67ca4c, #0a5bd8, #8e55bd, #ea3323); background-size: 200% 100%; }
.egq-quiz.is-hurry .egq-timer { height: 8px; border-radius: 4px; }
.egq-quiz.is-hurry .egq-timer i::after { opacity: 1; animation: egq-rainbow .8s linear infinite, egq-flash .5s ease-in-out infinite alternate; }
@keyframes egq-rainbow { to { background-position: -200% 0; } }
@keyframes egq-flash { to { filter: brightness(1.35) saturate(1.3); opacity: .55; } }
.egq-sec { display: inline-block; min-width: .7em; text-align: center; font-size: 1.25em; color: #ea3323; animation: egq-sec-pop .45s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes egq-sec-pop { from { transform: scale(1.8); opacity: .3; } }
/* 提示字放大，方便閱讀 */
.egq-quiz.is-hurry .egq-cheer, .egq-quiz.is-late .egq-cheer { font-size: 18px; font-weight: 700; color: var(--egq-ink); animation: egq-cheer .5s ease; }
.egq-quiz.is-late .egq-q-art { animation: egq-nudge .7s ease 2; }
@keyframes egq-nudge { 20% { transform: rotate(-7deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
.egq-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.egq .egq-choice {
  min-height: 76px; border-radius: 16px; border: 2px solid var(--egq-ink); background: var(--egq-surface);
  font-family: var(--egq-display); font-size: 21px; color: var(--egq-ink); cursor: pointer;
  transition: background-color .12s ease, color .12s ease, transform .12s ease;
}
.egq .egq-choice:hover { background: var(--egq-paper); }
.egq .egq-choice:active { transform: scale(.98); }
.egq .egq-choice.is-on { background: var(--egq-ink); color: var(--egq-on-ink); }
.egq .egq-choice.is-pop { animation: egq-pop .22s ease; }
@keyframes egq-pop { 50% { transform: scale(1.05); } }
.egq-cheer { transition: opacity .2s ease; }
.egq-quiz-foot { min-height: 40px; display: flex; align-items: center; margin-top: 12px; color: var(--egq-ink-2); font-size: 15px; }
.egq-keys { margin-left: auto; font-size: 13px; color: var(--egq-ink-2); }
.egq-keys kbd { display: inline-block; min-width: 1.8em; padding: 1px 6px; border: 1px solid var(--egq-rule); border-bottom-width: 2px; border-radius: 6px; font-family: var(--egq-body); font-size: 12px; text-align: center; background: var(--egq-paper); }
@media (hover: none), (max-width: 680px) { .egq-keys { display: none; } }
.egq .egq-legend-hint { margin-top: 14px; color: var(--egq-ink-2); }

/* 結果 */
.egq-report { padding: clamp(24px, 5vw, 44px); border-radius: 24px; background: var(--egq-surface); }
.egq-report .egq-eyebrow { color: var(--egq-ink-2); }
.egq-report h2 { font-size: clamp(30px, 5vw, 42px); line-height: 1.25; margin-bottom: 8px; }
.egq .egq-sub { color: var(--egq-ink-2); font-size: 17px; margin-bottom: 28px; }
.egq .egq-part { font-size: 25px; line-height: 1.3; margin-bottom: 16px; }
.egq-part small { display: block; font-family: var(--egq-body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--egq-ink-2); }
.egq-chart { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 5vw, 48px); align-items: center; margin-bottom: 28px; }
.egq-donut { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.egq-donut.is-new { animation: egq-bloom .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes egq-bloom { from { transform: rotate(50deg) scale(.7); } }
.egq .egq-legend { display: grid; gap: 12px; }
.egq-legend li { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--egq-ink-2); }
.egq-legend li > span:first-child { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.egq-legend li.is-top { font-family: var(--egq-display); font-size: 22px; color: var(--egq-ink); }
.egq-legend li.is-top > span:first-child { width: 18px; height: 18px; }
.egq .egq-switch { position: relative; display: inline-flex; align-items: center; justify-content: flex-end; flex: none; min-width: 60px; height: 24px; padding: 0 9px 0 26px; border-radius: 99px; background: var(--egq-rule); color: var(--egq-ink-2); font-family: var(--egq-body); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .2s ease; }
.egq-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(20, 22, 58, .3); transition: left .2s ease; }
.egq .egq-switch.is-on { justify-content: flex-start; padding: 0 26px 0 9px; background: var(--egq-ink); color: var(--egq-on-ink); }
.egq-switch.is-on i { left: calc(100% - 21px); }
.egq .egq-lead { font-size: 19px; margin-bottom: 10px; }
.egq-lead strong { font-weight: 700; }
.egq-copy { display: grid; gap: 10px; color: var(--egq-ink-2); max-width: 42em; }
.egq-copy .egq-lead { color: var(--egq-ink); margin: 0; }
.egq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.egq-combo { display: grid; gap: 10px; }
.egq .egq-combo-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 18px; }
.egq-combo-dots { display: flex; gap: 4px; }
.egq-combo-name small { padding: 2px 10px; border-radius: 99px; background: var(--egq-paper); font-size: 13px; font-weight: 700; color: var(--egq-ink-2); }
.egq .egq-motto { margin: 4px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--egq-ink); color: var(--egq-on-ink); font-family: var(--egq-display); font-size: clamp(22px, 4.5vw, 28px); line-height: 1.45; }
.egq-motto small { display: block; margin-bottom: 4px; font-family: var(--egq-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--egq-on-ink-2); }
.egq .egq-os-lead { font-size: 15px; color: var(--egq-ink-2); }
.egq .egq-os-bubble { position: relative; margin-top: 10px; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: var(--egq-paper); font-size: 17px; font-weight: 500; color: var(--egq-ink); }
.egq-combo > h4, .egq-flip h4 { font-size: 18px; line-height: 1.35; margin-top: 6px; }
.egq-combo > p:not([class]) { color: var(--egq-ink-2); }
.egq-flip { padding: 14px 18px; border-radius: 16px; border: 2px dashed var(--egq-rule); }
.egq .egq-flip p { margin-top: 4px; color: var(--egq-ink-2); }
.egq-section > p + p { margin-top: 8px; }
.egq-save { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--egq-rule); }
.egq-save-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.egq .egq-save .egq-small { color: var(--egq-ink-2); }
.egq-combo-head { display: grid; gap: 10px; margin-bottom: 28px; }
.egq .egq-after { margin-top: 22px; }

.egq-band { display: grid; gap: 12px; margin-top: 16px; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: var(--egq-line); color: var(--egq-ink); }
.egq-band h3 { font-size: clamp(23px, 4vw, 29px); line-height: 1.3; }
.egq-band .egq-small a { color: inherit; }
.egq .egq-band .egq-btn { justify-self: start; }
.egq .egq-band-soft { margin-top: 20px; background: #eceef5; }
.egq .egq-perks { display: grid; gap: 10px; margin: 4px 0 6px; }
.egq-perks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--egq-ink-2); }
.egq-perks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--egq-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.egq-perks b { display: block; color: var(--egq-ink); }
.egq-small { font-size: 14px; }
.egq .egq-subhead { margin-top: 32px; }
.egq-section h4.egq-subhead { font-size: 19px; line-height: 1.35; }

.egq-section { padding: 36px clamp(8px, 3vw, 20px) 0; }
.egq-section > h3 { font-size: 25px; line-height: 1.3; margin-bottom: 8px; }
.egq-section > p { color: var(--egq-ink-2); }

.egq .egq-traits { display: grid; gap: 8px; margin-top: 14px; }
.egq-trait { padding: 12px 18px; border-radius: 16px; background: var(--egq-surface); border: 2px solid transparent; }
.egq-trait summary { gap: 14px; }
.egq-trait .egq-acc-body { padding: 4px 0 6px 58px; }
.egq-trait.is-top { border-color: var(--egq-ink); }
.egq-trait-icon { width: 46px; height: 46px; padding: 5px; display: block; }
.egq-acc summary > .egq-trait-icon { flex: none; }
.egq-trait-icon svg { width: 100%; height: 100%; display: block; }
.egq-trait h4 { font-size: 19px; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.egq .egq-trait p { font-size: 15px; color: var(--egq-ink-2); }
.egq .egq-trait .egq-use { margin-top: 4px; color: var(--egq-ink); }
.egq-use b { font-weight: 700; }
.egq-note { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--egq-surface); border-left: 6px solid var(--egq-ink); }
.egq-note h4 { font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.egq .egq-note p { color: var(--egq-ink-2); font-size: 15px; }

.egq .egq-disclaimer { font-size: 14px; color: var(--egq-ink-2); border-top: 1px solid var(--egq-rule); padding-top: 14px; margin-top: 20px; }
.egq .egq-restart { justify-self: start; font-size: 14px; color: var(--egq-ink-2); }

/* 行為特質：中性色光譜，三段可點開說明，不顯示個人落點 */
.egq .egq-flag { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #eceef5; color: var(--egq-ink); font-size: 15px; }
.egq .egq-muted { color: var(--egq-ink-2); margin-top: 12px; }
.egq .egq-behs { display: grid; gap: 12px; margin-top: 16px; }
.egq-beh { padding: 20px 18px; border-radius: 18px; background: var(--egq-surface); }
.egq-beh h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 26px; line-height: 1.25; }
.egq-beh h4 small { font-family: var(--egq-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--egq-ink-2); }
.egq .egq-beh-ask { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--egq-ink); }
.egq .egq-beh-def, .egq .egq-beh-scene { margin-top: 8px; font-size: 15px; color: var(--egq-ink-2); }
.egq-beh-scene b, .egq-beh-tip b, .egq-beh-react b { color: var(--egq-ink); }
/* 參考 EG 報告的行為光譜：三區等寬色條，上方區名、下方五個描述詞 */
.egq-spec-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 18px; text-align: center; font-size: 14px; font-weight: 700; }
.egq-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.egq .egq-spec-seg { height: 52px; padding: 0; border: 0; border-radius: 0; background: var(--tone); cursor: pointer; transition: opacity .15s ease, box-shadow .15s ease; }
.egq .egq-spec-seg:hover { opacity: .85; }
.egq-spec.has-pick .egq-spec-seg { opacity: .35; }
.egq .egq-spec.has-pick .egq-spec-seg.is-on { opacity: 1; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--tone); }
.egq .egq-spec-ends { display: grid; grid-template-columns: 1fr 2fr 2fr 2fr 1fr; margin-top: 8px; }
.egq-spec-ends li { display: flex; justify-content: center; min-width: 0; font-size: 15px; font-weight: 700; color: var(--egq-ink-2); white-space: nowrap; }
.egq-spec-ends li:first-child { justify-content: flex-start; }
.egq-spec-ends li:last-child { justify-content: flex-end; }
.egq-beh-panel { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--egq-paper); font-size: 15px; display: grid; gap: 6px; }
.egq-beh-panel h5 { font-size: 16px; font-weight: 700; font-family: var(--egq-body); }
.egq .egq-beh-panel p { color: var(--egq-ink-2); }
.egq .egq-beh-hint { color: var(--egq-ink-2); }
.egq .egq-beh-note { margin-top: 10px; font-size: 14px; color: var(--egq-ink-2); }

/* 想法與行為的對照、互動觀察、延伸閱讀 */
.egq .egq-pairs { display: grid; gap: 10px; margin-top: 14px; }
.egq-pairs li { padding: 16px 18px; border-radius: 16px; background: var(--egq-surface); }
.egq-pairs h4 { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 1.35; margin-bottom: 6px; }
.egq .egq-pairs p { font-size: 15px; color: var(--egq-ink-2); }
.egq .egq-pairs .egq-pair-key { margin-top: 6px; color: var(--egq-ink); font-weight: 700; }
.egq-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.egq-reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.egq .egq-read { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--egq-surface); text-decoration: none; font-weight: 700; border: 2px solid transparent; transition: border-color .15s ease; }
.egq .egq-read:hover { border-color: var(--egq-ink); }
.egq-read small { display: block; font-size: 12px; font-weight: 500; color: var(--egq-ink-2); }
.egq-read-icon { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.egq-read-icon svg { width: 100%; height: 100%; display: block; }
.egq-read-icon > span { width: 36px; height: 36px; display: block; }
.egq-read-text { min-width: 0; }
.egq .egq-gap { margin-top: 14px; }

/* 可展開的區塊：先看標題，點了再看細節 */
.egq-acc summary { display: flex; align-items: center; cursor: pointer; list-style: none; }
.egq-acc summary::-webkit-details-marker { display: none; }
.egq-acc summary > * { flex: 1; min-width: 0; }
.egq-acc summary::after { content: "+"; flex: none; margin-left: 12px; font-size: 26px; line-height: 1; color: var(--egq-ink-2); }
.egq-acc[open] summary::after { content: "−"; }
.egq-acc-body { padding-top: 6px; }
.egq-spec-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 10px; }
.egq-spec-mini i { height: 8px; background: var(--tone); }
.egq-acc[open] .egq-spec-mini { display: none; }
.egq .egq-acc-box { margin-top: 24px; padding: 14px 18px; border-radius: 16px; background: var(--egq-surface); }
.egq-acc-box summary h4 { font-size: 18px; line-height: 1.35; }

/* 存圖視窗 */
.egq-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(20, 22, 58, .72); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--egq-body); color: var(--egq-ink); }
.egq-modal-box { position: relative; background: var(--egq-surface); border-radius: 18px; padding: 16px; max-width: 400px; width: 100%; max-height: 92vh; overflow: auto; text-align: center; }
.egq-modal-box img { display: block; width: 100%; height: auto; border-radius: 8px; }
.egq-modal-tip { font-weight: 700; margin: 0 28px 4px; }
.egq-modal-sub { margin: 0 28px 10px; font-size: 13px; color: var(--egq-ink-2); }
.egq-modal-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--egq-ink-2); }

@media (max-width: 680px) {
  /* 手機：文字從最上方開始，大腦放在標題右邊自己的欄位，不會壓到字 */
  .egq-hero { grid-template-columns: minmax(0, 1fr) 80px; column-gap: 12px; row-gap: 0; }
  .egq-hero > div { display: contents; }
  .egq-hero > div > * { grid-column: 1 / -1; }
  .egq-hero > div > h2 { grid-column: 1; grid-row: 2; font-size: min(32px, calc((100vw - 215px) / 6.3)); }
  .egq-hero > div > .egq-eyebrow { grid-row: 1; }
  /* 大腦依手機寬度放到最大：欄寬不變，往右邊留白和上下延伸，不推動任何文字 */
  .egq-hero > .egq-art { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; width: clamp(88px, calc(40vw - 48px), 128px); max-width: none; margin: -12px -20px 2px 0; }
  .egq-start { flex-direction: column; }
  .egq-q-art { width: 124px; height: 124px; padding: 26px; border-radius: 34px; margin-bottom: 18px; }
  .egq-chart { grid-template-columns: minmax(0, 1fr); }
  .egq-donut { max-width: 190px; }
  .egq .egq-actions .egq-btn { flex: 1 1 0; padding: 12px 10px; font-size: 15px; }
  .egq .egq-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .egq-legend li, .egq-legend li.is-top { font-size: 15px; gap: 6px; }
  .egq-legend .egq-switch { min-width: 54px; height: 22px; font-size: 11px; }
  .egq-legend .egq-switch i { width: 16px; height: 16px; }
  .egq-legend .egq-switch.is-on i { left: calc(100% - 19px); }
  .egq .egq-save .egq-btn { flex: 1 1 0; padding: 12px 10px; font-size: 15px; }
  .egq-trait .egq-acc-body { padding-left: 0; }
  .egq-reads { gap: 8px; }
  .egq .egq-read { flex-direction: column; justify-content: center; text-align: center; padding: 12px 8px; font-size: 15px; gap: 6px; }
  .egq-read-icon { width: 36px; height: 36px; }
  .egq-read-icon > span { width: 30px; height: 30px; }
  .egq .egq-spec-seg { height: 40px; }
  /* 手機只留第一、三、五個描述詞，各自置中在第一、二、三區下方 */
  .egq .egq-spec-ends { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .egq-spec-ends li, .egq-spec-ends li:first-child, .egq-spec-ends li:last-child { justify-content: center; font-size: 13px; }
  .egq-spec-ends li:nth-child(2), .egq-spec-ends li:nth-child(4) { display: none; }
  .egq-beh h4 { font-size: 23px; }
  .egq .egq-band .egq-btn { justify-self: stretch; }
}

@media (max-width: 350px) {
  /* 很窄的手機放不下並排，大腦回到標題上方 */
  .egq-hero { grid-template-columns: minmax(0, 1fr); }
  .egq-hero > .egq-art { grid-column: 1; grid-row: 1; width: 84px; margin: 0 0 6px; }
  .egq-hero > div > .egq-eyebrow { grid-row: 2; }
  .egq-hero > div > h2 { grid-column: 1; grid-row: 3; font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .egq *, .egq-art { animation: none !important; transition: none !important; }
  .egq .egq-q-art path { stroke-dashoffset: 0; }
  .egq-timer { display: none; }
}

/* 四級說法標籤（最順腦／很常用／偶爾會用／比較燒腦），和顯性／隱性開關並列 */
.egq .egq-legend { grid-template-columns: minmax(0, 1fr); }
.egq .egq-lad { display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 10px; border-radius: 99px; background: #fff; border: 1.5px solid var(--egq-rule); color: var(--egq-ink); font-family: var(--egq-body); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.egq-legend .egq-lad { margin-left: auto; }

/* 邀請朋友、兩人對照 */
.egq-inviter { display: flex; gap: 16px; align-items: center; margin: 18px 0 22px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); }
.egq-mini-donut { flex: none; }
.egq .egq-inviter-tag { font-size: 13px; font-weight: 700; color: #c8cbe6; margin: 0 0 6px; }
.egq-inviter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.egq-inviter li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #fff; }
.egq-inviter li span { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.egq-pair-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; align-items: center; margin: 8px 0 20px; }
.egq-pair-grid > b[role=columnheader] { font-size: 14px; color: var(--egq-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.egq .egq-pair-name { font-size: 16px; }
.egq-cell { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--egq-ink); white-space: nowrap; }
.egq-lv-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid; flex: none; box-sizing: border-box; }
.egq .egq-pair-sum { margin-bottom: 14px; }
.egq-pair-tips { display: grid; gap: 10px; }
.egq-pair-tip { padding: 14px 16px; border-radius: 14px; background: var(--egq-surface); border-left: 4px solid; }
.egq-pair-tip b { display: block; margin-bottom: 4px; }
.egq .egq-pair-tip p { margin: 0; font-size: 15px; color: var(--egq-ink-2); }
.egq-pair-ask { margin: 14px 0 8px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--egq-rule); }
.egq-pair-actions { display: grid; gap: 8px; margin: 0 0 28px; }
.egq-pair-actions .egq-btn, .egq-invite .egq-btn { width: 100%; justify-content: center; box-sizing: border-box; }
.egq-invite-label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--egq-ink-2); margin: 12px 0 14px; }
.egq .egq-small .egq-link { margin-left: 6px; }

.egq-pair-donuts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 20px; text-align: center; }
.egq-pair-donuts figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.egq-pair-donuts figcaption { font-size: 15px; font-weight: 700; color: var(--egq-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 傳回按鈕和上方說明拉開距離，下方小字置中 */
.egq .egq-pair-actions { margin: 28px 0 36px; gap: 12px; }
.egq .egq-pair-actions .egq-small { margin: 0; text-align: center; }

/* 折疊面板裡的延伸閱讀連結 */
.egq .egq-more { margin: 12px 0 0; font-size: 15px; }
.egq .egq-more a { color: var(--egq-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 被邀請的人：結果頁頂端的定位提示 */
.egq .egq-pair-guide { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--egq-surface); font-size: 14px; font-weight: 700; color: var(--egq-ink-2); text-align: center; }
.egq-beh-more > .egq-acc-body { padding-top: 8px; }

/* 完整報告推廣區：七格示意＋三個重點 */
.egq .egq-full { text-align: center; }
.egq-seven { display: flex; justify-content: center; gap: 20px; margin: 0 0 16px; }
.egq-seven-g { display: grid; gap: 6px; justify-items: center; }
.egq-seven-g > div { display: flex; gap: 7px; }
.egq-seven-dot { width: 18px; height: 18px; border-radius: 50%; }
.egq-seven-box { width: 18px; height: 18px; border-radius: 5px; border: 2.5px dashed; box-sizing: border-box; }
.egq .egq-seven-g small { font-size: 12px; font-weight: 700; color: var(--egq-ink-2); }
.egq .egq-full h3 { font-size: clamp(20px, 5.2vw, 24px); line-height: 1.45; }
.egq .egq-full > p { color: var(--egq-ink-2); }
.egq-full-perks { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.egq-full-perks li { display: grid; justify-items: center; align-content: start; gap: 8px; font-size: 14px; font-weight: 700; color: var(--egq-ink); line-height: 1.35; }
.egq-full-icon { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--egq-ink); }
.egq-full-icon svg { width: 24px; height: 24px; }
.egq-full .egq-btn { width: 100%; justify-content: center; box-sizing: border-box; }
.egq .egq-full .egq-small { margin: 12px 0 0; }

/* 結果頁：回 LINE 看自己最順腦那一項的情境 */
.egq .egq-line-more { margin: 16px 0 0; text-align: center; font-size: 15px; }
.egq .egq-line-more a { color: var(--egq-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 2.22.5 從朋友連結進來：加 LINE 好友區 */
.egq-join { margin: 20px 0 12px; padding: 18px 16px; border-radius: 16px; background: #fff; }
.egq-join-lead { margin: 0 0 14px; font-weight: 600; line-height: 1.7; }
.egq-join + .egq-btn { margin-top: 4px; }

/* 2.22.9 次要按鈕在灰底上看得見：白底＋深藍邊框；LINE 邀請用白底＋LINE 綠邊框＋小圖示 */
.egq .egq-btn-ghost { background: #fff; border-color: var(--egq-ink); color: var(--egq-ink); }
.egq .egq-btn-lineout { background: #fff; border-color: var(--egq-line); color: var(--egq-ink); }
.egq-line-ico { flex: none; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; background: #06C755 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 4C6.9 4 3 7.2 3 11.1c0 3.5 3.1 6.4 7.3 7l-.4 2.2c-.1.4.3.7.7.5l3.4-2.4c4.4-.4 7.9-3.4 7.9-7.3C21 7.2 17.1 4 12 4z'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* 完整報告四個優勢：窄螢幕字小一點，避免擠成三行 */
@media (max-width: 400px) { .egq-full-perks li { font-size: 13px; } }
.egq-full-perks .egq-nb { display: inline-block; white-space: nowrap; }

/* 兩人對照頁的加好友框：白底綠框 */
.egq .egq-band-outline { background: #fff; border: 2px solid var(--egq-line); }

/* 測驗頁不顯示頁尾的信箱、合作夥伴名錄和網站選單，只留標誌、社群和 LINE 按鈕 */
.page-id-6167 .elementor-location-footer .elementor-element-092d7eb,
.page-id-6167 .elementor-location-footer .elementor-element-938e8db,
.page-id-6167 .elementor-location-footer .elementor-element-6471fa2 { display: none !important; }

/* 2.22.22：邀請者結果頁的「找朋友一起腦補」放在組合文案前，用淺色底框和下方文案分開 */
.egq-report .egq-invite { margin: 28px 0 32px; padding: 24px 20px; background: rgb(236, 238, 245); border-radius: 24px; }
