.wrapper{display:grid;grid-template-columns:20% 80%}
.wrap{padding: 25px 45px;display:flex;flex-direction:column;height:100vh;justify-content:space-between;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}
.contentMain{ overflow-y: auto;}
#NewsBox .cate{display: inline-flex;flex-wrap: wrap;border: 1px solid #dedddd;background: white;border-radius: 10px;padding: 8px;margin-bottom: 30px;gap: 10px;}
#NewsBox .cate a{padding:8px 24px;border-radius: 11px;color: #848484;font-weight: 500;font-size: 15px;}
#NewsBox .cate a.active{background: #0f172a;color: white;}
#NewsBox .cate a:hover{background: #0f172a;color: white;}



#NewsBox .chartItem::before { content: "成績趨勢圖"; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; margin-bottom: 16px; border-radius: 999px; background: rgb(107 107 107/8%); color: #818181; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
#NewsBox .chartItem {padding: 40px;border-radius: 20px;border: 1px solid rgba(255,255,255,0.05);box-shadow: 0 10px 30px rgb(0 0 0/7%);margin: 20px auto 40px auto;/* width: 100% !important; */max-width: 800px;position: relative;overflow: hidden;background: radial-gradient(circle at top right,rgb(255 255 255/14%),transparent 28%),linear-gradient(180deg,#ffffff 0%,#ffffff 100%);}
#NewsBox .cate { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
#NewsBox .cate a { background: rgba(255,255,255,0.05); color: #94a3b8; padding: 8px 18px; border-radius: 50px; text-decoration: none; font-size: 14px; transition: all 0.3s ease; border: 1px solid transparent; }
#NewsBox .cate a.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.3); }



#pastresults{width: 99%;border:1px solid #dedddd;border-radius:15px;background:#fff;border-collapse:separate;border-spacing:0;overflow:hidden}
#pastresults tr:first-child{border-bottom: 1px solid #dedddd;background: #f7f9fb;}
#pastresults tr:first-child th{padding: 10px 20px;border-bottom: 1px solid #dedddd;color: #949494;font-size: 14px;font-weight: 500;text-align: center;}
#pastresults tr:first-child th:first-child, #pastresults tr td:first-child{text-align:left;}
#pastresults td{padding: 10px 20px;text-align: center;font-size: 15px;font-weight: 400;border-bottom: 1px solid #f1f1f1;}
#pastresults td.score{color:var(--primary);font-size: 17px;font-weight: 500;}
#pastresults td.time{font-size:14px;color: #858585;}
#pastresults td.see svg{color: #5f626e;width: 17px;}
#pastresults tr:last-child td{border-bottom:0}
#NewsBox .scoresdetails{margin-bottom: 30px;background: #101528;border-radius: 15px;padding: 50px 40px;}
#NewsBox .scoresdetails *{color:white;}
#NewsBox .scoresdetails .tit{display:flex;align-items: center;gap: 10px;font-size: 22px;letter-spacing: 1px;font-weight: 500;}
#NewsBox .scoresdetails .tit span{background:var(--primary);width: 40px;aspect-ratio: 1/1;border-radius: 8px;display: inline-flex;align-items: center;justify-content: center;}
#NewsBox .scoresdetails .tit svg{width: 24px;}
#NewsBox .scoresdetails .box{display:grid;grid-template-columns: repeat(3, 1fr);padding: 30px 0;border-top: 1px solid #52545d;border-bottom: 1px solid #52545d;margin: 30px 0;gap: 30px;}
#NewsBox .scoresdetails .box >div, #NewsBox .scoresdetails .timebox >div{display:flex;flex-direction: column;justify-content: space-between;}
#NewsBox .scoresdetails .box p, #NewsBox .scoresdetails .timebox p{color:#94a3b8;font-size: 14px;}
#NewsBox .scoresdetails .box p#result-box{color:white;font-size: 24px;font-weight: 800;}
#NewsBox .scoresdetails .box p#result-suject{color: var(--primary);font-size: 20px;}
#NewsBox .scoresdetails .box p#result-box span { margin-left: 10px; }
#NewsBox .scoresdetails .timebox{display:grid;grid-template-columns: repeat(2, 1fr);}
#NewsBox .scoresdetails .timebox p#result-time{color:white}
#NewsBox .scoresdetails .box > div:last-child { grid-column: 1/-1; position: relative; padding: 26px 30px 26px 70px; border-radius: 15px; background: #252b3f; border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); overflow: hidden; }
#NewsBox .scoresdetails .box > div:last-child::before { content: "“"; position: absolute; left: 22px; top: 24px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 80px; line-height: .5; opacity: .4; color: #808da2; }
#NewsBox .scoresdetails .box > div:last-child::after { content: ""; position: absolute; left: 0; top: -5%; bottom: 0; width: 4px; height: 110%; background: var(--primary); box-shadow: 4px 0 15px rgba(var(--primary-rgb),0.5); }
#NewsBox .scoresdetails .box > div:last-child p:first-child { letter-spacing: 1px; margin-bottom: 5px; font-size: 16px; }
#NewsBox .scoresdetails .box > div:last-child p:last-child { font-size: 18px; line-height: 1.9; color: #f1f5f9; font-weight: 400; }
#NewsBox .scoresdetails .box > div:last-child:hover { transform: translateY(-2px); transition: .25s ease; box-shadow: 0 12px 28px rgba(0,0,0,.25); }

#parse{border: 1px solid #e2e8f0;border-radius:15px;}
#parse .tit{border-bottom: 1px solid #e2e8f0;display: flex;align-items: center;justify-content: space-between;padding: 20px 40px;}
#parse .tit .h3{display:flex;align-items: center;gap: 10px;font-size: 17px;font-weight: 600;color: #334155;line-height: 1;}
#parse .tit .h3 svg{width: 19px;height: 19px;}
#parse .tit a{background:var(--primary);display: inline-flex;padding: 12px 20px;align-items: center;gap: 8px;border-radius: 8px;color: white;font-size: 15px;line-height: 1;}
#parse .tit a:hover{background: #c37b03;}
#parse .tit a svg{stroke: white;width: 17px;height: 17px;}
#analysislist .box{border-bottom: 1px solid #e2e8f0;background: white;padding: 25px 40px;}
#analysislist .box p.qBadge {color: #64748b;background-color: #f1f5f9;font-size: 12px;display: inline-block;padding: 5px 10px;line-height: 1;border-radius: 5px;}
#analysislist .box > b { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg,#fff1f2 0%,#ffe4e6 100%); border: 1px solid #fecdd3; color: #dc2626 !important; font-size: 14px; font-weight: 600; line-height: 1; vertical-align: middle; box-shadow: 0 4px 12px rgba(220,38,38,0.08); }
#analysislist .box > a span{display: inline-flex;align-items: center;gap: 8px;margin-left: 10px;padding: 8px 12px;border-radius: 999px;background: linear-gradient(135deg, var(--black) 0%, var(--info) 100%);border: 1px solid var(--info);color: white;font-size: 14px;font-weight: 600;line-height: 1;vertical-align: middle;box-shadow: 0 4px 12px rgba(220,38,38,0.08);}
#analysislist .box > a:hover span{background: linear-gradient(135deg, #232323 0%, #4f4f4f 100%);}
#analysislist .box > b::before {
  content:"";width:18px;height:18px;flex:0 0 18px;border-radius:50%;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 8v5'/><path d='M12 16h.01'/></svg>")
        center/14px 14px no-repeat,#fff;box-shadow:inset 0 0 0 1px rgba(220,38,38,.15);
}

#analysislist .box .h3 *{font-size:18px;font-weight: 500;}
#analysislist .box .h3{margin-bottom:10px;margin-top: 10px;}
#analysislist .ansList { list-style: none; padding: 0; margin: 16px 0 0; width: 100%; display: flex; flex-direction: column; gap: 16px; }
#analysislist .ansItem {margin: 0;position: relative;display: grid;grid-template-columns: 32px 1fr;align-items: center;gap: 14px;width: 100%;padding: 18px 18px;border-radius: 16px;border: 2px solid #e6edf5;background: #fff;transition: border-color .15s ease,box-shadow .15s ease,background-color .15s ease,transform .12s ease;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;}
#analysislist .ansItem .ansRight{display:flex;justify-content: flex-end;}
#analysislist .ansItem:not(.is-user, .is-wrong, .is-correct) .ansRight{display:none;}
#analysislist .ansItem.is-user{border-color: #10b981;background-color: #d1fae5;}
#analysislist .ansItem.is-user *{border-color: #064e3b;color:#064e3b}
#analysislist .ansItem.is-user .ansUserBadge{background-color: #059669;}
#analysislist .ansItem.is-wrong{border-color: #ef4444;background-color: #fef2f2;}
#analysislist .ansItem.is-wrong *{border-color: #7f1d1d;color:#7f1d1d}
#analysislist .ansItem.is-wrong .ansUserBadge{background-color: #dc2626;}
#analysislist .ansItem.is-correct:not(.is-user){border-color: #ecfdf5;background-color: #ecfdf5;}
#analysislist .ansItem.is-correct, #analysislist .ansItem.is-wrong {grid-template-columns: 32px 1fr 150px;}
#analysislist .ansItem.is-correct *{border-color: #064e3b;color:#064e3b}
#analysislist .ansItem.is-correct svg{width: 19px;height: 19px;}
#analysislist .ansItem .ansUserBadge{display: inline-flex;align-items: center;color: white;font-size: 13px;gap: 3px;padding: 5px 14px 4px 7px;border-radius: 50px;}
#analysislist .ansItem .ansUserBadge svg{stroke: white;width: 15px;height: 15px;}
#analysislist .ansBadge {width: 30px;height: 30px;border-radius: 999px;display: inline-flex;align-items: center;justify-content: center;font-weight: 800;font-size: 14px;letter-spacing: .02em;border: 1px solid #c8d3df;color: #7a8a9a;flex: 0 0 auto;}
#gpt-dialog {
	width: min(90%, 880px);
	border: 0;
	padding: 0;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	left: calc(50% - 440px);
	overflow-y: scroll;
	height: 90vh;
	top: 5vh;
	border-radius: 15px;
}
#gpt-dialog::-webkit-scrollbar { width: 5px; }
#gpt-dialog::-webkit-scrollbar-track { background: rgba(var(--info-rgb), .3); }
#gpt-dialog::-webkit-scrollbar-thumb { background: #333;border-radius:50px; }

#gpt-dialog::backdrop {
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}

#gpt-dialog .gpt-dialog-inner {
	position: relative;
	padding: 45px;
}

#gpt-dialog #gpt-answer {
	font-size: 16px;
	line-height: 1.8;
	color: #1f2937;
}

#gpt-dialog #closeBtn {
	width: 45px;
	aspect-ratio: 1/1;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	cursor: pointer;
	transition: 0.3s;
	position: absolute;
	right: 5px;
	top: 5px;
	border: 0;
}
#gpt-dialog #closeBtn svg{
    width: 18px;
    height: 18px;
}
#gpt-dialog #closeBtn:hover {
	background: var(--secondary);
}

#gpt-dialog .gpt-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	text-align: center;
	color: #334155;
}

#gpt-dialog .gpt-loading-icon {
	width: 46px;
	height: 46px;
	border: 4px solid #e5e7eb;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: gptSpin 0.85s linear infinite;
	margin-bottom: 18px;
}

#gpt-dialog .gpt-loading-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #111827;
}

#gpt-dialog .gpt-loading-text {
	font-size: 14px;
	color: #64748b;
}

@keyframes gptSpin {
	to {
		transform: rotate(360deg);
	}
}

.gpt-cta-btn.is-loading {
	pointer-events: none;
	opacity: 0.65;
}
#gpt-dialog .gpt-warning {
	margin-top: 24px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-size: 14px;
	line-height: 1.7;
}
#gpt-dialog #gpt-answer {
	font-size: 16px;
	line-height: 1.85;
	color: #1f2937;
}

#gpt-dialog #gpt-answer h2,
#gpt-dialog #gpt-answer h3,
#gpt-dialog #gpt-answer h4 {
	margin: 0 0 14px;
	color: #111827;
	font-weight: 800;
	line-height: 1.45;
}

#gpt-dialog #gpt-answer h2 {
	font-size: 24px;
}

#gpt-dialog #gpt-answer h3 {
	font-size: 20px;
	margin-top: 24px;
	padding-left: 12px;
	border-left: 4px solid #2563eb;
}

#gpt-dialog #gpt-answer h4 {
	font-size: 17px;
	color: #2563eb;
	margin-top: 18px;
}

#gpt-dialog #gpt-answer p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.85;
	color: #374151;
}

#gpt-dialog #gpt-answer strong,
#gpt-dialog #gpt-answer b {
	color: #111827;
	font-weight: 800;
	background: linear-gradient(transparent 58%, #dbeafe 58%);
	padding: 0 2px;
}

#gpt-dialog #gpt-answer ul,
#gpt-dialog #gpt-answer ol {
	margin: 12px 0 18px;
	padding-left: 22px;
}

#gpt-dialog #gpt-answer li {
	margin-bottom: 8px;
	line-height: 1.75;
}

#gpt-dialog #gpt-answer .gpt-section {
	margin-top: 22px;
	padding: 20px;
	border-radius: 16px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
}

#gpt-dialog #gpt-answer .gpt-point {
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: 14px;
	background: #eff6ff;
	border-left: 5px solid #2563eb;
	color: #1e3a8a;
	font-weight: 600;
}

#gpt-dialog #gpt-answer .gpt-warning {
	margin-top: 24px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-size: 14px;
	line-height: 1.7;
}
#gpt-dialog #gpt-answer {
	font-size: 16px;
	line-height: 1.85;
	color: #1f2937;
}

#gpt-dialog #gpt-answer .gpt-answer-content {
	padding: 24px;
	border-radius: 18px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
}

#gpt-dialog #gpt-answer .gpt-answer-head {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5e7eb;
}

#gpt-dialog #gpt-answer .gpt-answer-label {
	display: inline-flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

#gpt-dialog #gpt-answer .gpt-answer-main-title {
	margin: 0;
	color: #111827;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.35;
}

#gpt-dialog #gpt-answer .gpt-section {
	margin-top: 20px;
	padding: 20px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

#gpt-dialog #gpt-answer .gpt-section:first-of-type {
	margin-top: 0;
}

#gpt-dialog #gpt-answer .gpt-section-title {
	position: relative;
	margin: 0 0 14px;
	padding-left: 14px;
	color: #111827;
	font-size: 20px;
	font-weight: 850;
	line-height: 1.45;
}

#gpt-dialog #gpt-answer .gpt-section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 4px;
	height: 22px;
	border-radius: 999px;
	background: #2563eb;
}

#gpt-dialog #gpt-answer .gpt-section-body p {
	margin: 0 0 14px;
	color: #374151;
	font-size: 16px;
	line-height: 1.9;
}

#gpt-dialog #gpt-answer .gpt-section-body p:last-child {
	margin-bottom: 0;
}

#gpt-dialog #gpt-answer strong,
#gpt-dialog #gpt-answer b {
	color: #111827;
	font-weight: 900;
	background: linear-gradient(transparent 58%, #dbeafe 58%);
	padding: 0 2px;
}

#gpt-dialog #gpt-answer ul,
#gpt-dialog #gpt-answer ol {
	margin: 12px 0 18px;
	padding-left: 22px;
}

#gpt-dialog #gpt-answer li {
	margin-bottom: 8px;
	color: #374151;
	line-height: 1.75;
}

#gpt-dialog #gpt-answer .gpt-warning {
	margin-top: 24px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-size: 14px;
	line-height: 1.7;
}
@media (max-width: 1280px){
    .wrapper{grid-template-columns: 25% 75%;}
}
@media (max-width: 980px){
    .wrap, .contentMain{height:auto;}
    .wrapper{grid-template-columns: 1fr;}
}
@media (max-width:768px) {
    #gpt-dialog{left:5%}
	#NewsBox .chartItem {padding: 15px;border-radius: 12px;max-width: 340px !important;width: 340px !important;}
}
@media (max-width: 680px){
    #gpt-dialog .gpt-dialog-inner{padding: 50px 30px;}
    #gpt-dialog #closeBtn{font-size:12px}
    #analysislist .box > a{display:block;margin-top: 10px;}
    #analysislist .box > a span{margin:0;display: block;text-align: center;}
    #analysislist .ansItem.is-correct, #analysislist .ansItem.is-wrong{grid-template-columns: 32px 1fr 90px;}
    #analysislist .ansItem .ansUserBadge{font-size:12px;}
    #parse .tit{padding: 20px 20px;}
    #analysislist .box{padding: 25px 20px;}
    #NewsBox .scoresdetails .box{display:flex;flex-direction: column;gap: 10px;padding: 20px 0;margin: 20px 0;}
    #NewsBox .scoresdetails .box >div{display:flex;flex-direction: row;align-items: center;justify-content: space-between;}
    #NewsBox .scoresdetails{padding: 30px 20px;}
	#NewsBox .scoresdetails .box > div:last-child { display: flex; flex-direction: column; align-items: flex-start; padding: 25px 30px 26px 30px; }
	#NewsBox .scoresdetails .box > div:last-child::before { font-size: 50px; top: 19px; left: 0px; }
	#NewsBox .scoresdetails .box > div:last-child p:last-child { font-size: 16px; }
    .wrap{padding: 45px 25px;}
    #pastresults{border-spacing:0}
	#pastresults thead,#pastresults th{display:none}
	#pastresults tr:first-child{display:none;}
	#pastresults, #pastresults tbody, #pastresults tr, #pastresults td{display:block;width:100%}
	#pastresults tbody tr{background:#fff;border-bottom: 1px solid #e6edf5;padding: 12px 15px;box-shadow:0 10px 24px rgba(16,24,40,.06);box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;}
	#pastresults tbody tr td{border:none !important;background:transparent;padding: 7px 0;display:flex;align-items: center;justify-content:space-between;gap:12px}
	#pastresults tbody tr td::before{content:attr(data-label);color: #8c8e91;font-size:12px;font-weight: 700;letter-spacing:.08em;flex:0 0 auto;}
	#pastresults tbody tr td{color: #3f4042;font-weight:700;font-size:14px}
	#pastresults td.time{font-weight: 400;}
	#pastresults tbody tr td.score{font-size: 20px;font-weight:900}
	#pastresults tbody tr td.see a{border-radius:14px;font-weight:800;display: inline-flex;background: #5f626e;align-items: center;justify-content: center;width: 30px;}
	#pastresults td.see svg{color: white;}
}
@media (max-width: 680px){
	#NewsBox .chartItem {max-width: 280px !important;width: 280px !important;}
}