/* StudyHub v2: 990728 visual system inspired by exam-portal information architecture. */
:root {
  --study-blue: #174ea6;
  --study-blue-deep: #0f376f;
  --study-teal: #0f766e;
  --study-teal-soft: #ecfdf5;
  --study-surface: #ffffff;
  --study-bg: #f4f8fb;
  --study-line: #dfe8f1;
}

body.site-v2 {
  background:
    radial-gradient(1100px 520px at 12% -220px, rgba(219, 234, 254, .72), transparent 70%),
    var(--study-bg);
}

.site-v2 .top-strip {
  background: linear-gradient(90deg, #0b3558 0%, #0f4c6b 58%, #0f665f 100%);
}

.site-v2 .site-header {
  box-shadow: 0 5px 22px rgba(20, 54, 86, .06);
}

.site-v2 .header-inner {
  height: 70px;
}

.site-v2 .brand-logo {
  background: linear-gradient(140deg, var(--study-blue) 0%, #0f766e 100%);
}

.site-v2 .nav-link.active::after {
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg, var(--study-blue), var(--study-teal));
}

.site-v2 .nav-sub {
  border-color: var(--study-line);
  box-shadow: 0 14px 32px rgba(20, 54, 86, .12);
}

.site-v2 .page-head {
  padding-top: 34px;
}

.site-v2 .page-title {
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: -.02em;
}

.site-v2 .page-desc {
  max-width: 820px;
  line-height: 1.85;
}

.site-v2 .btn,
.site-v2 .hs-btn,
.site-v2 .dl-btn {
  border-radius: 10px;
}

.site-v2 .section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.site-v2 .section-title,
.site-v2 .group-title {
  letter-spacing: -.01em;
}

.site-v2 .ec-card,
.site-v2 .gc-card,
.site-v2 .tl-item,
.site-v2 .prose-card,
.site-v2 .biji-card {
  border-color: var(--study-line);
  box-shadow: 0 3px 14px rgba(23, 78, 166, .045);
}

.site-v2 .ec-card:hover,
.site-v2 .gc-card:hover,
.site-v2 .tl-item:hover {
  border-color: #9db8e4;
  box-shadow: 0 10px 28px rgba(23, 78, 166, .10);
}

.site-v2 .sub-cat {
  border-color: var(--study-line);
  background: var(--study-surface);
}

.site-v2 .subject-link em {
  background: #eef4fb;
  color: #34506f;
}

.subject-hub {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid var(--study-line);
  border-radius: 14px;
  background:
    radial-gradient(620px 220px at 100% 0%, rgba(219, 234, 254, .72), transparent 68%),
    #fff;
}

.subject-hub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 17px;
}

.subject-hub-head > div > span {
  color: var(--study-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.subject-hub-head h2 {
  margin: 4px 0 6px;
  font-size: 25px;
}

.subject-hub-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.subject-hub-head > a {
  flex: 0 0 auto;
  padding-top: 7px;
  color: var(--study-blue);
  font-size: 13px;
  font-weight: 700;
}

.subject-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.subject-hub-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 155px;
  padding: 15px;
  border: 1px solid var(--study-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .93);
  color: var(--ink);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.subject-hub-card:hover {
  transform: translateY(-2px);
  border-color: #9db8e4;
  box-shadow: 0 9px 22px rgba(23, 78, 166, .09);
}

.subject-hub-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 9px;
  background: #edf5ff;
  font-size: 17px;
}

.subject-hub-card strong {
  display: block;
  font-size: 16px;
}

.subject-hub-card em {
  display: block;
  margin-top: 3px;
  color: var(--study-teal);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}

.subject-hub-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.subject-hub-go {
  display: block;
  margin-top: 10px;
  color: var(--study-blue);
  font-size: 12px;
  font-weight: 700;
}

.subject-hub-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.subject-hub-actions a {
  display: block;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f5f9fd;
  color: var(--ink);
}

.subject-hub-actions a:hover {
  background: #edf5ff;
  color: var(--study-blue);
}

.subject-hub-actions b,
.subject-hub-actions span {
  display: block;
}

.subject-hub-actions b {
  font-size: 14px;
}

.subject-hub-actions span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.subject-hub-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #dc9a2b;
  border-radius: 0 7px 7px 0;
  background: #fffaf0;
  color: #634d26;
  font-size: 12.5px;
  line-height: 1.7;
}

.exam-portal-page {
  padding: 22px 0 48px;
}

.exam-portal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 10px 0 14px;
  padding: 28px 30px;
  border: 1px solid var(--study-line);
  border-radius: 16px;
  background:
    radial-gradient(680px 260px at 90% -35%, rgba(224, 242, 238, .9), transparent 70%),
    linear-gradient(135deg, #f8fbff, #edf5ff);
}

.exam-portal-eyebrow {
  color: var(--study-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.exam-portal-title h1 {
  margin: 4px 0 7px;
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -.025em;
}

.exam-portal-title p {
  max-width: 760px;
  margin: 0;
  color: #52647a;
  font-size: 14px;
  line-height: 1.8;
}

.exam-portal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.exam-portal-actions a {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid #bfd1e6;
  border-radius: 8px;
  background: #fff;
  color: var(--study-blue);
  font-size: 13px;
  font-weight: 700;
}

.exam-portal-actions a:first-child {
  border-color: var(--study-blue);
  background: var(--study-blue);
  color: #fff;
}

.exam-portal-stats {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 8px;
}

.exam-portal-stats div {
  padding: 12px 9px;
  text-align: center;
  border: 1px solid var(--study-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .82);
}

.exam-portal-stats strong,
.exam-portal-stats span {
  display: block;
}

.exam-portal-stats strong {
  color: var(--study-blue);
  font-size: 22px;
}

.exam-portal-stats span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.exam-portal-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 17px;
  padding: 6px;
  border: 1px solid var(--study-line);
  border-radius: 12px;
  background: #fff;
}

.exam-portal-tabs > a {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: #42566e;
  font-size: 13px;
}

.exam-portal-tabs > a:hover,
.exam-portal-tabs > a.on {
  background: #edf5ff;
  color: var(--study-blue);
}

.exam-portal-tabs > a.on {
  font-weight: 700;
}

.exam-portal-tabs > a span {
  font-size: 14px;
}

.exam-portal-tabs > a strong {
  font-size: 13px;
}

.exam-portal-tabs > a em {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
}

.exam-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 18px;
  align-items: start;
  margin: 18px 0;
}

.exam-overview-main,
.exam-overview-side,
.exam-portal-page > .wrap > .subject-hub {
  border: 1px solid var(--study-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(23, 78, 166, .045);
}

.exam-overview-main {
  min-width: 0;
  padding: 20px;
}

.exam-overview-side {
  overflow: hidden;
}

.exam-dashboard {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 250px;
  gap: 14px;
  align-items: stretch;
  margin: 17px 0 16px;
}

.exam-quickboard,
.exam-cycle-card {
  border: 1px solid var(--study-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(23, 78, 166, .045);
}

.exam-quickboard {
  padding: 15px;
}

.exam-quickboard .exam-panel-head {
  margin-bottom: 8px;
}

.exam-quickboard .exam-panel-head h2 {
  font-size: 17px;
}

.exam-quickboard-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  padding: 8px 0;
  border-top: 1px solid #edf1f5;
}

.exam-quickboard-row > strong {
  padding-top: 4px;
  color: var(--study-blue);
  font-size: 12px;
}

.exam-quickboard-row > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.exam-quickboard-row a {
  padding: 4px 5px;
  border-radius: 5px;
  color: #465a71;
  font-size: 11.5px;
  line-height: 1.45;
}

.exam-quickboard-row a:hover {
  background: #edf5ff;
  color: var(--study-blue);
}

.exam-feature-banner {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 32px 34px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(320px 180px at 88% 12%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(135deg, #174ea6 0%, #1265a1 54%, #0f766e 100%);
}

.exam-feature-banner::before,
.exam-feature-banner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
}

.exam-feature-banner::before {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -80px;
}

.exam-feature-banner::after {
  width: 430px;
  height: 430px;
  left: 47%;
  bottom: -370px;
}

.exam-feature-banner > span {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .8;
}

.exam-feature-banner h2 {
  position: relative;
  margin: 8px 0 9px;
  color: #fff;
  font-size: clamp(28px, 3.6vw, 43px);
  letter-spacing: -.03em;
}

.exam-feature-banner p {
  position: relative;
  max-width: 560px;
  margin: 0 0 17px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.8;
}

.exam-feature-banner > div {
  position: relative;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.exam-feature-banner > div a {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.exam-feature-banner > div a:first-child {
  border-color: #fff;
  background: #fff;
  color: var(--study-blue);
}

.exam-feature-banner > em {
  position: absolute;
  left: 34px;
  bottom: 20px;
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
  font-style: normal;
}

.exam-cycle-card {
  padding: 15px;
}

.exam-cycle-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f5;
}

.exam-cycle-row span {
  color: var(--study-teal);
  font-size: 11px;
  font-weight: 800;
}

.exam-cycle-row b {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}

.exam-cycle-cta {
  display: block;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--study-blue);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.exam-feature-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.exam-feature-cards a {
  display: block;
  min-width: 0;
  min-height: 105px;
  padding: 14px;
  border: 1px solid var(--study-line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.exam-feature-cards a:nth-child(1) {
  background: #edf9f6;
}

.exam-feature-cards a:nth-child(2) {
  background: #eff6ff;
}

.exam-feature-cards a:nth-child(3) {
  background: #fff8ec;
}

.exam-feature-cards a:nth-child(4) {
  background: #f7f3ff;
}

.exam-feature-cards span,
.exam-feature-cards strong,
.exam-feature-cards em {
  display: block;
}

.exam-feature-cards span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.exam-feature-cards strong {
  margin: 5px 0;
  font-size: 15px;
}

.exam-feature-cards em {
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.5;
}

.exam-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.exam-panel-head h2,
.exam-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.exam-panel-head a,
.exam-panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.exam-update-list {
  border-top: 1px solid var(--study-line);
}

.exam-update-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 45px;
  border-bottom: 1px solid #edf1f5;
  color: var(--ink-2);
}

.exam-update-row:hover {
  color: var(--study-blue);
}

.exam-update-row span,
.exam-update-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.exam-update-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.exam-quick-list {
  padding: 8px 14px 15px;
}

.exam-quick-list > a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 6px 2px;
  border-bottom: 1px solid #edf1f5;
}

.exam-quick-list > a span {
  font-size: 15px;
}

.exam-quick-list > a strong {
  color: var(--ink-2);
  font-size: 13px;
}

.exam-quick-list > a em {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
}

.exam-article-grid .exam-overview-main {
  padding: 20px 22px 0;
}

.exam-article-grid .sidebar-block {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-v2 .group-title span {
  background: var(--study-teal-soft);
  color: var(--study-teal);
}

.site-v2 .site-footer {
  background: linear-gradient(100deg, #0d3154 0%, #0e4050 58%, #114a45 100%);
}

/* Homepage portal masthead */
.portal-hero {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--study-line);
  background:
    radial-gradient(780px 360px at 18% -120px, rgba(219, 234, 254, .9), transparent 70%),
    linear-gradient(135deg, #fbfdff 0%, #f4f9ff 56%, #f5fbf8 100%);
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) 262px;
  gap: 18px;
  align-items: stretch;
}

.portal-exam-rail,
.portal-side,
.portal-main {
  border: 1px solid var(--study-line);
  background: rgba(255, 255, 255, .94);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(23, 78, 166, .06);
}

.portal-exam-rail {
  padding: 14px;
}

.portal-rail-head,
.portal-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 10px;
}

.portal-rail-head strong,
.portal-side-head strong {
  color: var(--ink);
  font-size: 15px;
}

.portal-rail-head span,
.portal-side-head a {
  color: var(--muted);
  font-size: 11.5px;
}

.portal-exam-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  min-height: 53px;
  padding: 8px 7px;
  border-radius: 9px;
  color: var(--ink);
}

.portal-exam-link:hover {
  background: #f3f8fe;
  color: var(--study-blue);
}

.portal-exam-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf4fb;
  font-size: 15px;
}

.portal-exam-link strong,
.portal-exam-link em {
  display: block;
  font-style: normal;
}

.portal-exam-link strong {
  font-size: 14px;
}

.portal-exam-link em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.portal-exam-link b {
  color: #9aabc0;
  font-size: 17px;
  font-weight: 400;
}

.portal-rail-more {
  display: block;
  margin-top: 8px;
  padding: 10px 6px 3px;
  border-top: 1px solid var(--study-line);
  color: var(--study-blue);
  font-size: 12px;
  font-weight: 700;
}

.portal-main {
  padding: 25px 28px 22px;
}

.portal-copy {
  max-width: 760px;
}

.portal-overline {
  color: var(--study-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.portal-copy h1 {
  margin: 7px 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.35;
  letter-spacing: -.025em;
}

.portal-copy h1 em {
  color: var(--study-blue);
  font-style: normal;
}

.portal-copy p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #52647b;
  font-size: 15px;
  line-height: 1.8;
}

.portal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  max-width: 690px;
  padding: 4px;
  border: 1px solid #cad8e8;
  border-radius: 11px;
  background: #fff;
}

.portal-search input {
  min-width: 0;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  font: 14px var(--font);
  outline: none;
}

.portal-search button {
  border: 0;
  border-radius: 8px;
  background: var(--study-blue);
  color: #fff;
  font: 700 14px var(--font);
  cursor: pointer;
}

.portal-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
}

.portal-hot .hero-tag {
  margin: 0;
}

.portal-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 21px;
}

.portal-action-grid a {
  display: block;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--study-line);
  border-radius: 10px;
  color: var(--ink);
  background: #fbfdff;
}

.portal-action-grid a:hover {
  border-color: #9db8e4;
  color: var(--ink);
  background: #fff;
}

.portal-action-grid span {
  display: block;
  color: var(--study-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.portal-action-grid strong {
  display: block;
  margin: 3px 0 2px;
  font-size: 15px;
}

.portal-action-grid em {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.5;
}

.portal-side {
  padding: 15px;
}

.portal-side-list {
  display: grid;
  gap: 7px;
}

.portal-side-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 9px;
  background: #f7fafd;
  color: var(--ink-2);
}

.portal-side-list a:hover {
  background: #edf5ff;
  color: var(--study-blue);
}

.portal-side-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 7px;
  background: var(--study-teal-soft);
  color: var(--study-teal);
  font-size: 11px;
  font-weight: 800;
}

.portal-side-list b {
  font-size: 12.5px;
  font-weight: 600;
}

.portal-side-stats {
  display: grid;
  grid-template-columns: auto 1fr auto auto 1fr auto;
  align-items: baseline;
  gap: 4px;
  margin-top: 13px;
  padding: 12px 10px;
  border: 1px solid var(--study-line);
  border-radius: 9px;
  background: #fff;
}

.portal-side-stats em,
.portal-side-stats span {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
}

.portal-side-stats strong {
  color: var(--study-blue);
  font-size: 18px;
}

/* Exam service center: reusable task matrix for every exam channel. */
.exam-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.exam-service-card {
  position: relative;
  display: block;
  min-height: 92px;
  padding: 16px 16px 14px;
  border: 1px solid var(--study-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.exam-service-card::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 13px;
  color: #8aa0ba;
  font-size: 20px;
}

.exam-service-card:hover {
  transform: translateY(-2px);
  border-color: #9db8e4;
  box-shadow: 0 10px 24px rgba(23, 78, 166, .09);
}

.exam-service-card b {
  display: block;
  margin-bottom: 5px;
  color: var(--study-blue);
  font-size: 16px;
}

.exam-service-card span {
  display: block;
  padding-right: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Knowledge point cards. */
.kb-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
}

.kb-tools button {
  appearance: none;
  border: 1px solid var(--study-line);
  border-radius: 999px;
  background: #fff;
  color: #44566d;
  padding: 6px 13px;
  font: 600 13px/1.4 var(--font);
  cursor: pointer;
}

.kb-tools button.on {
  border-color: var(--study-blue);
  background: var(--study-blue);
  color: #fff;
}

.kb-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 26px;
}

.kb-note-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--study-line);
  border-radius: 12px;
  background: #fff;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.kb-note-card:hover {
  transform: translateY(-2px);
  border-color: #9db8e4;
  box-shadow: 0 9px 24px rgba(23, 78, 166, .09);
}

.kb-note-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--study-teal);
  font-size: 12px;
  font-weight: 700;
}

.kb-note-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.kb-note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.kb-note-card .kb-note-go {
  margin-top: auto;
  padding-top: 14px;
  color: var(--study-blue);
  font-size: 13px;
  font-weight: 700;
}

/* Resource filters. */
.resource-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.resource-filter button {
  appearance: none;
  border: 1px solid var(--study-line);
  border-radius: 8px;
  background: #fff;
  color: #44566d;
  padding: 7px 13px;
  font: 600 13px/1.4 var(--font);
  cursor: pointer;
}

.resource-filter button.on {
  background: var(--study-blue);
  border-color: var(--study-blue);
  color: #fff;
}

/* Future Taobao affiliate book cards. */
.book-purchase-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid #d99a2b;
  background: #fffaf0;
  color: #6e5426;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}

.book-card {
  padding: 16px;
  border: 1px solid var(--study-line);
  border-radius: 12px;
  background: #fff;
}

.book-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.book-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.book-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #eef2f7;
  color: #7b8797;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: not-allowed;
}

/* Premium exam-portal theme */
.portal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(980px 520px at 16% -20%, rgba(42, 125, 167, .48), transparent 72%),
    radial-gradient(760px 420px at 92% 10%, rgba(15, 118, 110, .42), transparent 72%),
    linear-gradient(128deg, #071c35 0%, #0b3157 52%, #0b514f 100%);
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.portal-hero .portal-hero-grid {
  position: relative;
  z-index: 1;
}

.portal-hero .portal-main,
.portal-hero .portal-exam-rail,
.portal-hero .portal-side {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(5, 24, 46, .46);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.portal-hero .portal-rail-head strong,
.portal-hero .portal-side-head strong,
.portal-hero .portal-exam-link,
.portal-hero .portal-copy h1,
.portal-hero .portal-side-list b {
  color: #fff;
}

.portal-hero .portal-rail-head span,
.portal-hero .portal-side-head a,
.portal-hero .portal-exam-link em,
.portal-hero .portal-copy p,
.portal-hero .portal-action-grid em,
.portal-hero .portal-side-stats em,
.portal-hero .portal-side-stats span {
  color: rgba(226, 237, 248, .72);
}

.portal-hero .portal-exam-link:hover,
.portal-hero .portal-side-list a:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.portal-hero .portal-exam-icon {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.portal-overline {
  color: #edc878;
}

.portal-copy h1 em {
  color: #80e1cf;
}

.portal-hero .portal-action-grid a {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.portal-hero .portal-action-grid a:hover {
  border-color: rgba(237, 200, 120, .72);
  background: rgba(255, 255, 255, .11);
  color: #fff;
}

.portal-hero .portal-action-grid strong {
  color: #fff;
}

.portal-hero .portal-action-grid span {
  color: #edc878;
}

.portal-hero .portal-side-list a,
.portal-hero .portal-side-stats {
  border-color: rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .06);
}

.portal-hero .portal-side-list span {
  background: rgba(128, 225, 207, .14);
  color: #8be4d2;
}

.portal-hero .portal-side-stats strong {
  color: #ffd780;
}

.portal-hero .portal-rail-more {
  border-color: rgba(255, 255, 255, .12);
  color: #edc878;
}

.exam-portal-head {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  background:
    radial-gradient(650px 280px at 90% 0%, rgba(19, 132, 120, .38), transparent 72%),
    linear-gradient(130deg, #081f3a 0%, #0d3e63 58%, #0c5a55 100%);
}

.exam-portal-head::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -230px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}

.exam-portal-title,
.exam-portal-stats {
  position: relative;
  z-index: 1;
}

.exam-portal-title h1 {
  color: #fff;
}

.exam-portal-title p {
  color: rgba(233, 242, 250, .78);
}

.exam-portal-eyebrow {
  color: #edc878;
}

.exam-portal-actions a {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.exam-portal-actions a:first-child {
  border-color: #edc878;
  background: #edc878;
  color: #0b3157;
}

.exam-portal-stats div {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .07);
}

.exam-portal-stats strong {
  color: #fff;
}

.exam-portal-stats span {
  color: rgba(233, 242, 250, .66);
}

@media (max-width: 900px) {
  .portal-hero-grid {
    grid-template-columns: 1fr;
  }
  .portal-exam-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .portal-rail-head,
  .portal-rail-more {
    grid-column: 1 / -1;
  }
  .exam-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subject-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subject-hub-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exam-portal-head {
    grid-template-columns: 1fr;
  }
  .exam-portal-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .exam-overview-grid {
    grid-template-columns: 1fr;
  }
  .exam-dashboard {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .exam-cycle-card {
    grid-column: 1 / -1;
  }
  .exam-feature-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kb-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-v2 .layout-with-side {
    display: flex;
    flex-direction: column;
  }
  .site-v2 .layout-with-side .content-area {
    order: 1;
  }
  .site-v2 .layout-with-side .sidebar {
    order: 2;
  }
}

@media (max-width: 640px) {
  body.site-v2 {
    overflow-x: hidden;
  }
  .site-v2 .wrap {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
  .site-v2 .layout-with-side,
  .site-v2 .content-area,
  .site-v2 .biji-cards,
  .site-v2 .kb-note-grid,
  .site-v2 .tl-list {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .site-v2 .subject-nav-list,
  .site-v2 .major-rows {
    min-width: 0;
    flex-wrap: wrap;
  }
  .site-v2 .biji-card,
  .site-v2 .kb-note-card,
  .site-v2 .tl-item,
  .site-v2 .exam-service-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .exam-service-grid,
  .kb-note-grid,
  .subject-hub-grid,
  .subject-hub-actions,
  .exam-dashboard,
  .exam-feature-cards {
    grid-template-columns: 1fr;
  }
  .exam-cycle-card {
    grid-column: auto;
  }
  .subject-hub-head {
    display: block;
  }
  .subject-hub-head > a {
    display: inline-block;
    margin-top: 10px;
  }
  .exam-service-card {
    min-height: auto;
  }
  .portal-main {
    padding: 20px 17px;
  }
  .exam-portal-head {
    padding: 22px 18px;
  }
  .exam-update-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .exam-update-row em {
    display: none;
  }
  .portal-action-grid {
    grid-template-columns: 1fr;
  }
}
