/* 1.6.0 final query-page alignment pass. Loaded last to prevent legacy styles overriding it. */
.qln-header,.qln-nav,.qln-main{margin-bottom:0!important}
.data-page-plan{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.data-page-plan>.qln-plan-hero{margin-top:0!important}
.qln-plan-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,150px));gap:8px;height:42px;align-content:center}
.qln-plan-tabs a{display:flex;height:34px;padding:0 18px;border:1px solid #d8e2ee;border-radius:6px;background:#fff;color:#40516b;font-size:13px;align-items:center;justify-content:center}
.qln-plan-tabs a.active{border-color:#e60012;background:#e60012;color:#fff;font-weight:700}

/* Every filter control is contained by its 260px sidebar. */
.college-query,.college-search,.college-search *,.rank-query-card,.rank-query-card *,.gaokao-query-card,.gaokao-query-card *{box-sizing:border-box;min-width:0}
.rank-query-card,.gaokao-query-card,.college-query{overflow:hidden}
.rank-field{width:100%;grid-template-columns:72px minmax(0,1fr)!important;text-align:left!important}
.rank-field>b{width:72px;justify-self:start!important;text-align:left!important}
.rank-field>input,.rank-field>select,.rank-field>div{width:100%!important;max-width:100%!important}
.rank-field input[name="score"]{min-width:0!important;max-width:100%!important;padding:0 8px!important}

/* New-gaokao keyword now responds to its radio selection and never leaves the card. */
.gaokao-target{width:100%!important;max-width:100%!important}
.gaokao-target>input[name="q"]{display:block!important;box-sizing:border-box!important;grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important;height:39px!important;margin:0!important;padding:0 9px!important;border:1px solid #d8e2ee!important;border-radius:6px!important}
.gaokao-query-actions{display:flex!important;flex-direction:column!important;gap:8px!important}
.gaokao-query-actions button,.gaokao-query-actions a{width:100%!important}
.gaokao-query-actions a{gap:7px!important}
.gaokao-query-actions a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

/* College filter: selectable education level, province select, name, then shared actions. */
.college-level-field{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
.college-level-field>b{font-size:13px;color:#253954;text-align:left}
.college-level-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.college-level-pills label{display:block!important;margin:0!important}
.college-level-pills input{position:absolute;opacity:0;pointer-events:none}
.college-level-pills span{display:flex;height:39px;border:1px solid #d8e2ee;border-radius:6px;background:#fff;color:#263a55;font-size:12px;align-items:center;justify-content:center}
.college-level-pills input:checked+span{border-color:#e60012;background:#e60012;color:#fff}
.college-query-actions{display:flex;flex-direction:column;gap:8px;margin-top:3px}
.college-query-actions button,.college-query-actions a{display:flex!important;width:100%!important;height:40px!important;margin:0!important;border-radius:7px!important;gap:7px;align-items:center;justify-content:center;font-size:13px;font-weight:700}
.college-query-actions button{border:0!important;background:#e60012!important;color:#fff!important}
.college-query-actions a{border:1px solid #d8e2ee;color:#536579;background:#fff}
.college-query-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

/* Exam diagnosis adopts the site's single brand red instead of the old blue system. */
.exam-tabs a.active,.exam-tabs a:hover,.exam-card button,.exam-profile-strip>a,.exam-empty>a,.exam-actions a,.exam-v2-toolbar button,.exam-action-plan li:before{border-color:#e60012!important;background:#e60012!important;color:#fff!important}
.exam-card button.secondary{border:1px solid #f2c9cd!important;background:#fff4f5!important;color:#e60012!important}
.exam-feature-grid i,.exam-latest strong,.exam-latest a,.exam-card summary,.exam-subject-analysis em,.exam-history-list article em,.exam-v2-toolbar a,.exam-priority-grid article strong,.exam-goal-summary strong,.exam-v2-empty a{color:#e60012!important}
.exam-feature-grid a:hover,.exam-card input:focus,.exam-card select:focus,.exam-card textarea:focus{border-color:#e60012!important;box-shadow:0 0 0 3px rgba(230,0,18,.09)!important}
.exam-report-head{background:linear-gradient(135deg,#a80010,#e60012)!important}
.exam-subject-analysis i,.exam-trend-chart>div>span,.exam-spark-bars i{background:linear-gradient(90deg,#ff5a66,#e60012)!important}
.exam-v2-section>header>span,.exam-goal-summary article>span{background:#fff0f1!important;color:#e60012!important}
.exam-report-footer{background:#72000a!important}

@media(max-width:760px){
  .qln-plan-tabs{grid-template-columns:repeat(2,1fr)!important;height:56px!important}
  .qln-plan-tabs a{height:40px;padding:0 8px}
  .rank-field,.college-level-field{grid-template-columns:68px minmax(0,1fr)!important}
  .rank-field>b,.college-level-field>b{width:68px;font-size:12px}
  .gaokao-target>input[name="q"]{height:40px!important}
}

/* 1.6.1: remove the inherited blue search frame and show the complete college form. */
.data-page-college>.college-query{height:auto!important;min-height:0!important;overflow:visible!important}
.college-query .college-search{display:flex!important;box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;flex-direction:column!important;gap:11px!important}
.college-query .college-search:focus,.college-query .college-search:focus-within,.college-level-field:focus,.college-level-field:focus-within{border:0!important;outline:0!important;box-shadow:none!important}
.college-level-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.college-query .college-search>label,.college-level-field{width:100%!important;margin:0!important}
.college-query .college-search input:focus,.college-query .college-search select:focus{border-color:#e60012!important;outline:0!important;box-shadow:0 0 0 3px rgba(230,0,18,.08)!important}

/* Query-result emphasis uses the single site brand color, never legacy blue. */
.control-table strong,.control-tag,.gaokao-result-table em,.rank-table-scroll tr.active td,.college-result-body strong,.college-result-body>a:hover,.data-results h2 a,.data-results article b,.qln-plan-table button{color:#e60012!important}
.rank-table-scroll tr.active td,.college-result-body>a:hover,.gaokao-result-table article:hover,.control-table tbody tr:hover td{background:#fff3f4!important}
.college-result-head,.gaokao-result-head,.control-table th,.rank-table-card th{background:#f7edef!important;color:#293a52!important}
.qln-plan-summary i.blue,.qln-plan-summary i.green{background:#e60012!important}
.qln-plan-summary article:nth-child(3) strong,.qln-plan-summary article:nth-child(4) strong{color:#e60012!important}

/* Header artwork is an exact scalable image; the backend-driven logo remains untouched. */
.qln-slogan{width:260px;height:76px;flex:0 0 260px;background:url('header-slogan.svg') center/contain no-repeat;font-size:0!important;line-height:0!important;color:transparent!important}

/* Backend-driven friend links and ICP filing. */
.qln-footer-friends{border-top:1px solid #26364a}
.qln-footer-friends>.qln-wrap{display:flex;min-height:52px;padding:13px 0;gap:18px;align-items:flex-start;font-size:12px}
.qln-footer-friends b{flex:0 0 auto;color:#fff}
.qln-footer-friends nav{display:flex;flex-wrap:wrap;gap:8px 22px}
.qln-footer-friends a{color:#aeb9c7}
.qln-footer-friends a:hover,.qln-icp:hover{color:#fff}
.qln-icp{color:#aeb9c7}

@media(max-width:760px){.college-level-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important}.qln-footer-friends{display:none}}
