/* TEALING 雙彈窗樣式(已批准版逐字抽取) */
.tg7-support,.tg7-veil{--blue:#2a327e;--red:#e41f23;--gold:#b69955;--ink:#252a36;--paper:#faf8f3;--line:#d9d4c9}
.tg7-support{margin-top:39px;min-height:188px;position:relative;display:grid;grid-template-columns:300px 1fr auto;gap:36px;align-items:center;padding:26px 38px 30px 0;border-top:1px solid #cec6b5;isolation:isolate}
.tg7-support:before{content:"";position:absolute;z-index:-1;right:0;bottom:12px;width:290px;height:110px;border-bottom:2px solid var(--blue);border-radius:0 0 100% 0;opacity:.25;pointer-events:none}
.tg7-support:after{content:"";position:absolute;top:-1px;left:0;width:66px;height:3px;background:var(--red)}
.tg7-newma-logo{width:100%;height:auto;display:block;object-fit:contain}
.tg7-support-logo{width:264px;margin-left:4px}
.tg7-support-copy p{margin:0 0 8px;font-size:14px;color:var(--blue);font-weight:500}
.tg7-support-copy h2{font-family:"Noto Serif CJK TC",serif;font-size:29px;letter-spacing:.04em;font-weight:600;line-height:1.35;margin:0;color:var(--blue)}
.tg7-event-link{border:0;border-bottom:1px solid #a39d8f;background:transparent;color:var(--blue);display:flex;align-items:center;gap:14px;min-height:48px;padding:8px 0;font-size:13px;white-space:nowrap}
.tg7-event-link svg,.tg7-event-cta svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6}
.tg7-veil{position:fixed;inset:0;z-index:30;background:rgba(28,30,41,.65);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:36px}
.tg7-veil[hidden]{display:none}
.tg7-event-modal{position:relative;width:1040px;max-width:100%;height:600px;background:#fbf4e6;display:grid;grid-template-columns:46% 54%;overflow:hidden;box-shadow:0 22px 100px #1115;isolation:isolate}
.tg7-event-modal:before{content:"";position:absolute;inset:0;z-index:-1;background:url('/assets/popup-gen7/gpt-abstract.jpg') center/cover no-repeat}
.tg7-close{position:absolute;right:18px;top:18px;width:48px;height:48px;display:grid;place-items:center;padding:0;border:1px solid #a6a292;background:#faf8f3;color:var(--blue);border-radius:50%;z-index:8}
.tg7-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.tg7-event-photo-side{position:relative;display:flex;flex-direction:column;justify-content:flex-end;padding:30px 0 0 30px;isolation:isolate;background:linear-gradient(180deg,#fcf9f1 20%,#f8eddb)}
.tg7-event-brand{display:flex;align-items:center;gap:12px;position:absolute;left:30px;top:31px;right:14px}
.tg7-event-brand .tg7-gold-logo{width:46px;height:auto}
.tg7-event-brand span{font-size:14px;color:#4b4436;letter-spacing:.035em}
.tg7-event-image{position:relative;margin:0 0 38px;width:100%;height:auto;display:block;aspect-ratio:466/430;object-fit:contain;z-index:1}
.tg7-event-photo-side:after{content:"";position:absolute;left:30px;right:0;bottom:17px;height:3px;background:var(--gold)}
.tg7-event-copy{padding:97px 54px 36px 42px;display:flex;flex-direction:column;position:relative;z-index:1}
.tg7-event-copy:before{content:"";position:absolute;left:42px;top:72px;width:36px;height:3px;background:var(--red)}
.tg7-event-support-line{font-size:16px;line-height:1.6;font-weight:500;margin:0 0 15px;color:var(--blue);white-space:nowrap}
.tg7-event-copy h2{font-family:"Noto Serif CJK TC",serif;font-size:38px;font-weight:600;line-height:1.43;letter-spacing:.035em;color:var(--blue);margin:0 0 28px}
.tg7-event-copy h2 span{display:block}
.event-logo{width:304px;height:auto;display:block;margin:0 0 28px;max-width:100%}
.tg7-event-actions{display:flex;align-items:flex-start;flex-direction:column;gap:10px;margin-top:auto}
.tg7-event-cta{min-height:52px;padding:12px 21px;background:var(--blue);border:1px solid var(--blue);color:white;display:flex;align-items:center;justify-content:space-between;gap:25px;font-size:14px;font-weight:500;min-width:292px}
.tg7-event-continue{border:0;background:transparent;color:var(--blue);min-height:44px;font-size:13px;padding:4px 0;text-decoration:underline;text-underline-offset:6px;text-decoration-color:#9c967f}
.tg7-event-cta:focus-visible{outline-color:var(--blue);box-shadow:0 0 0 7px white}
.tg7-event-modal .photo-source{display:none}
@media(max-width:760px){
.tg7-support{margin-top:37px;min-height:0;padding:26px 0 22px;display:grid;grid-template-columns:1fr;gap:19px;border-top-color:#d1c9b6}
.tg7-support-logo{width:224px;margin-left:0;order:1}
.tg7-support-copy{order:0}
.tg7-support-copy p{font-size:13px;margin-bottom:8px}
.tg7-support-copy h2{font-size:25px;letter-spacing:.04em}
.tg7-support .tg7-event-link{order:2;justify-self:start;font-size:13px;min-height:44px}
.tg7-support:before{right:0;bottom:24px;width:155px;height:130px;border-bottom-width:2px}
.tg7-support:after{width:42px}
.tg7-veil{padding:18px;align-items:center;background:rgba(28,30,41,.68)}
.tg7-event-modal{width:354px;max-width:100%;height:754px;max-height:calc(100dvh - 32px);display:block;overflow:auto;background:#fbf6e9}
.tg7-event-modal:before{position:fixed;display:none}
.tg7-close{right:14px;top:14px;width:44px;height:44px;background:#fcf9f0}
.tg7-event-photo-side{padding:0;background:#fbf6e9;height:357px;display:block;overflow:hidden}
.tg7-event-brand{left:21px;top:18px;right:58px;gap:9px}
.tg7-event-brand .tg7-gold-logo{width:34px}
.tg7-event-brand span{font-size:11px;letter-spacing:0;max-width:170px}
.tg7-event-image{position:absolute;top:74px;left:22px;width:calc(100% - 60px);height:auto;margin:0;aspect-ratio:466/430}
.tg7-event-photo-side:after{left:0;right:0;bottom:14px;height:3px;background:var(--red)}
.tg7-event-photo-side:before{content:"";position:absolute;width:12px;top:74px;right:0;bottom:17px;background:var(--blue);border-top-left-radius:14px}
.tg7-event-copy{padding:20px 23px 20px;min-height:387px;background:url('/assets/popup-gen7/gpt-abstract.jpg') right bottom/740px auto no-repeat #fcf7ea}
.tg7-event-copy:before{display:none}
.tg7-event-support-line{font-size:14px;margin:0 0 10px;line-height:1.7}
.tg7-event-copy h2{font-size:30px;line-height:1.36;letter-spacing:.04em;margin-bottom:22px}
.tg7-event-copy h2 span{display:inline}
.tg7-event-copy h2 span:first-child:after{display:none}
.event-logo{width:260px;margin:0 0 24px}
.tg7-event-actions{gap:9px;margin-top:4px}
.tg7-event-cta{min-width:0;width:100%;font-size:13px;min-height:50px;padding:11px 17px}
.tg7-event-continue{font-size:12px;min-height:44px}
}
.tg7-support{margin-bottom:44px}
@media(max-width:600px){
.tg7-support{margin-top:28px}
}
.tg7-event-modal[hidden]{display:none}
.tg7-event-cta{text-decoration:none}
.tg7-event-photo-side{min-height:600px}
.tg7-event-switch{display:flex;justify-content:flex-end;margin-top:10px}
.tg7-event-switch-btn{border:1px solid #b9b2a0;background:#f4efe3;color:var(--blue);border-radius:999px;padding:9px 16px;font-size:13px;min-height:44px;cursor:pointer;font-family:inherit}
.tg7-event-switch-btn:hover{background:#eae2cd}
.tg7-school-modal .tg7-event-image{aspect-ratio:auto;height:440px;width:auto;max-width:100%;object-fit:contain;align-self:center}
.tg7-event-image.tg7-newma-hero-logo{align-self:center;width:calc(100% - 40px);margin:auto 20px auto 0;aspect-ratio:auto;height:auto;max-height:320px;object-fit:contain}
.tg7-school-meta{font-size:13px;color:#4b4436;margin:-12px 0 12px;letter-spacing:.02em}
.tg7-school-note{font-size:13px;line-height:1.7;color:#6b634d;background:#fdf9ee;border:1px solid #e3d9c0;padding:10px 14px;border-radius:6px;margin:0 0 16px}
@media(max-width:760px){
.tg7-veil{padding:46px 14px 12px;align-items:flex-start;overflow-y:auto}
.tg7-event-modal{display:block;height:auto;max-height:none;width:354px}
.tg7-event-photo-side{min-height:0;height:150px}
.tg7-event-brand{left:21px;top:12px}
.tg7-event-image{top:50px;left:50%;transform:translateX(-50%);width:calc(100% - 56px);max-width:calc(100% - 56px);height:auto;max-height:66px;aspect-ratio:auto;margin:0}
.tg7-event-photo-side:after{bottom:8px}
.tg7-event-photo-side:before{display:none}
.tg7-event-copy{padding:12px 23px;min-height:0}
.tg7-event-support-line{font-size:12px;margin:0 0 2px}
.tg7-event-copy h2{font-size:21px;margin-bottom:8px}
.event-logo{width:180px;margin:0 0 10px}
.tg7-event-actions{gap:6px}
.tg7-event-cta{min-height:44px;padding:10px 17px;font-size:12.5px}
.tg7-event-continue{min-height:36px;font-size:11.5px}
.tg7-event-switch{margin-top:4px}
.tg7-event-switch-btn{min-height:34px;padding:6px 14px;font-size:12px}
.tg7-school-modal .tg7-event-photo-side{height:370px;min-height:0}
.tg7-school-modal .tg7-event-image{top:44px;left:50%;transform:translateX(-50%);width:auto;max-width:calc(100% - 60px);height:312px;max-height:none;aspect-ratio:auto;margin:0}
.tg7-school-modal .tg7-event-copy h2,.tg7-school-modal .tg7-school-meta{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tg7-school-modal .tg7-school-note{padding:5px 9px;margin-bottom:4px}
.tg7-school-modal .tg7-event-copy{padding:6px 23px 8px}
.tg7-school-modal .tg7-event-support-line{font-size:11px}
.tg7-school-modal .tg7-event-actions{flex-direction:row;align-items:center;gap:10px}
.tg7-school-modal .tg7-event-cta{width:auto;flex:1;min-height:42px}
.tg7-school-modal .tg7-event-continue{min-height:30px;font-size:11px;white-space:nowrap}
.tg7-school-note{font-size:11px;line-height:1.55}
}

.tg7-veil,.tg7-support{font-family:inherit}.tg7-veil button,.tg7-support button{font-family:inherit;cursor:pointer}.tg7-veil :focus-visible,.tg7-support :focus-visible{outline:3px solid #2a327e;outline-offset:3px}.tg7-event-image{display:block}.tg7-close{flex-shrink:0}
.tg7-veil{z-index:10000;font-family:Arial,"Noto Sans TC",sans-serif}.tg7-veil *,.tg7-support *{box-sizing:border-box}.tg7-event-modal{outline:none}.tg7-event-copy a{color:inherit}.tg7-event-copy a.tg7-event-cta{color:white}.tg7-veil button{font-family:inherit}
.tg7-event-modal:focus-visible{outline:none}@media(max-width:760px){.tg7-event-copy{background:#fcf7ea}}
