/* 990728 learning-first visual layer. Loaded after the legacy theme. */
:root {
  --v3-navy: #102f4c;
  --v3-navy-deep: #092337;
  --v3-blue: #174ea6;
  --v3-blue-soft: #edf5ff;
  --v3-teal: #0f766e;
  --v3-teal-deep: #0b5f59;
  --v3-teal-soft: #e9f8f4;
  --v3-amber: #c78619;
  --v3-amber-soft: #fff7e6;
  --v3-bg: #f3f7fa;
  --v3-card: #fff;
  --v3-line: #dce7ee;
  --v3-text: #102f4c;
  --v3-text-2: #29465f;
  --v3-muted: #5f7384;
  --v3-shadow: 0 10px 32px rgba(18, 54, 82, .07);
  --v3-radius: 15px;
}

body.site-v3 {
  color: var(--v3-text-2);
  background:
    radial-gradient(980px 420px at 8% -160px, rgba(205, 228, 255, .48), transparent 70%),
    var(--v3-bg);
}

.site-v3 .wrap {
  max-width: 1200px;
}

.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -.15em;
}

.site-v3 .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.site-v3 [hidden] {
  display: none !important;
}

.site-v3 a {
  text-underline-offset: 3px;
}

.site-v3 .prose-card p a,
.site-v3 .article-body p a,
.site-v3 .page-copy p a {
  text-decoration: underline;
}

.site-v3 :focus-visible {
  outline: 3px solid rgba(23, 78, 166, .34);
  outline-offset: 3px;
}

.site-v3 .skip-link {
  background: var(--v3-navy);
}

.site-v3 .top-strip {
  background: linear-gradient(90deg, #092337 0%, #0d4056 62%, #0d5a55 100%);
}

.site-v3 .top-strip .ts-links {
  gap: 18px;
}

.site-v3 .top-strip .ts-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  color: #e8f1f5;
  opacity: 1;
}

.site-v3 .top-strip .ts-links .ui-icon {
  width: 14px;
  height: 14px;
  color: #8ce9cf;
}

.site-v3 .site-header {
  background: rgba(253, 254, 254, .96);
  border-bottom-color: #dce6eb;
  box-shadow: 0 3px 18px rgba(19, 58, 83, .045);
}

.site-v3 .header-inner {
  height: 72px;
}

.site-v3 .brand-logo {
  border-radius: 12px;
  background: linear-gradient(145deg, #174ea6, #0b5f59);
  box-shadow: 0 6px 18px rgba(15, 82, 104, .2);
}

.site-v3 .brand-text strong {
  color: var(--v3-navy);
}

.site-v3 .brand-text em {
  color: var(--v3-muted);
}

.site-v3 .search-form input {
  border-color: #d3e0e7;
  background: #f6f9fb;
}

.site-v3 .main-nav {
  background: rgba(255, 255, 255, .98);
  border-top-color: #e9f0f3;
}

.site-v3 .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #506873;
}

.site-v3 .nav-link.active {
  color: var(--v3-navy);
}

.site-v3 .nav-link.active::after {
  background: var(--v3-teal);
}

.site-v3 .page-head {
  padding: 30px 0 20px;
}

.site-v3 .page-title {
  color: var(--v3-navy);
}

.site-v3 .page-desc,
.site-v3 .section-head p {
  color: var(--v3-muted);
}

.site-v3 .section-head h2,
.site-v3 .page-title,
.site-v3 .article-title,
.site-v3 h1,
.site-v3 h2,
.site-v3 h3,
.site-v3 h4 {
  color: var(--v3-navy);
}

.site-v3 .section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.site-v3 .section-alt {
  background: #eef4f6;
}

.site-v3 .section-head h2::before {
  background: var(--v3-teal);
}

.site-v3 .btn,
.site-v3 .hs-btn,
.site-v3 .dl-btn {
  min-height: 44px;
  border-radius: 9px;
  border-color: #cbdbe4;
  box-shadow: none;
}

.site-v3 .btn:not(.ghost),
.site-v3 .hs-btn:not(.ghost),
.site-v3 .dl-btn {
  background: var(--v3-teal);
  border-color: var(--v3-teal);
  color: #fff;
}

.site-v3 .btn:hover,
.site-v3 .hs-btn:hover,
.site-v3 .dl-btn:hover {
  background: var(--v3-teal-deep);
  border-color: var(--v3-teal-deep);
  color: #fff;
}

.site-v3 .btn.ghost {
  background: #fff;
  color: var(--v3-text-2);
}

.site-v3 .sidebar-block,
.site-v3 .prose-card,
.site-v3 .article-card,
.site-v3 .gc-card,
.site-v3 .tiku-card,
.site-v3 .book-card,
.site-v3 .search-direct-card,
.site-v3 .tpl-card {
  border-color: var(--v3-line);
  box-shadow: 0 4px 18px rgba(18, 54, 82, .045);
}

.site-v3 .tl-item p,
.site-v3 .tpl-card p {
  color: var(--v3-muted);
}

.site-v3 .list-item-excerpt,
.site-v3 .list-item time,
.site-v3 .meta-views {
  color: var(--v3-muted);
}

.site-v3 .sidebar-title,
.site-v3 .group-title {
  color: var(--v3-navy);
}

.site-v3 .breadcrumb {
  color: var(--v3-muted);
  line-height: 1.7;
}

.site-v3 .breadcrumb a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 2px 2px;
}

.site-v3 .pill,
.site-v3 .mini-tag,
.site-v3 .badge {
  border-color: #d5e3ea;
}

/* Shared dark page hero, used where legacy pages had their own heading band. */
.site-v3 .hero,
.site-v3 .tiku-hero,
.site-v3 .thk-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0;
  color: #fff;
  background:
    radial-gradient(700px 300px at 86% -30%, rgba(40, 154, 137, .34), transparent 70%),
    linear-gradient(125deg, #092337 0%, #103e58 58%, #0b5550 100%);
}

.site-v3 .hero h1,
.site-v3 .tiku-hero h1,
.site-v3 .thk-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -.025em;
}

.site-v3 .hero h1 em,
.site-v3 .tiku-hero h1 em,
.site-v3 .thk-hero h1 em {
  color: #8ce9cf;
  font-style: normal;
}

.site-v3 .hero-sub,
.site-v3 .thk-hero p {
  max-width: 780px;
  color: rgba(230, 241, 247, .78);
  font-size: 14.5px;
  line-height: 1.8;
}

.site-v3 .tiku-quick a {
  border-top-color: var(--v3-teal);
}

.site-v3 .tiku-quick em,
.site-v3 .tiku-group-tag {
  background: var(--v3-teal);
}

.site-v3 .tiku-quick em {
  background: transparent;
  color: var(--v3-teal-deep);
}

.site-v3 .tiku-icon {
  color: var(--v3-teal-deep);
}

.site-v3 .tiku-card {
  border-radius: var(--v3-radius);
}

.site-v3 .tiku-card:hover {
  border-color: #91beb7;
  box-shadow: 0 8px 22px rgba(15, 118, 110, .1);
}

.site-v3 .thk-filter-head > div > b,
.site-v3 .thk-section-hd > div > p,
.site-v3 .thk-tool p,
.site-v3 .thk-note {
  color: var(--v3-muted);
}

.site-v3 .thk-section-hd > div > span,
.site-v3 .thk-tool-kind {
  color: var(--v3-teal-deep);
}

.site-v3 .thk-chip.on {
  border-color: var(--v3-teal-deep);
  background: var(--v3-teal-deep);
}

.site-v3 .thk-chip.on b {
  background: rgba(0, 0, 0, .24);
}

/* Learning continuation cards shared by /tiku and article pages. */
.tiku-resume {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 20px;
  align-items: center;
  margin: 0 auto 18px;
  padding: 18px 20px;
  border: 1px solid #b8dbd4;
  border-radius: 14px;
  background:
    radial-gradient(440px 180px at 90% 0%, rgba(212, 246, 239, .9), transparent 70%),
    #fff;
  box-shadow: var(--v3-shadow);
  position: relative;
}

.tiku-resume-copy > span,
.home-study-eyebrow {
  color: var(--v3-teal-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .11em;
}

.tiku-resume-copy > strong {
  display: block;
  margin-top: 4px;
  color: var(--v3-navy);
  font-size: 18px;
}

.tiku-resume-copy p {
  margin: 3px 0 0;
  color: var(--v3-muted);
  font-size: 12.5px;
}

.tiku-resume-metrics {
  display: flex;
  gap: 8px;
}

.tiku-resume-metrics div {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f5faf9;
  text-align: center;
}

.tiku-resume-metrics b,
.tiku-resume-metrics span {
  display: block;
}

.tiku-resume-metrics b {
  color: var(--v3-navy);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.tiku-resume-metrics span {
  color: var(--v3-muted);
  font-size: 10px;
}

.tiku-resume > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--v3-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tiku-resume time {
  position: absolute;
  right: 20px;
  bottom: 8px;
  color: var(--v3-muted);
  font-size: 10px;
}

/* Article task action and readable article frame. */
.article-study-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid #cfe3df;
  border-radius: 11px;
  background: #f4fbf9;
}

.article-study-action p {
  flex: 1;
  margin: 0;
  color: var(--v3-muted);
  font-size: 12px;
  line-height: 1.6;
}

.article-study-button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--v3-teal);
  border-radius: 9px;
  background: var(--v3-teal);
  color: #fff;
  font: 700 12.5px var(--font);
  cursor: pointer;
}

.article-study-button.is-added,
.article-study-button:disabled {
  border-color: #c7d9d6;
  background: #fff;
  color: var(--v3-teal-deep);
  cursor: default;
}

.site-study-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 26px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--v3-navy);
  box-shadow: 0 12px 30px rgba(10, 35, 56, .24);
  color: #fff;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}

.site-study-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-v3 .layout-article .article-title {
  max-width: 18em;
  font-size: clamp(31px, 3.6vw, 45px);
  line-height: 1.3;
}

.site-v3 .article-body {
  max-width: 74ch;
  color: #263f56;
  font-size: 16px;
  line-height: 1.9;
}

.site-v3 .article-body h2 {
  margin-top: 1.75em;
  padding-left: 13px;
  border-left: 4px solid var(--v3-teal);
}

.site-v3 .article-body a {
  color: var(--v3-blue);
  text-decoration: underline;
}

.site-v3 .sb-wechat,
.site-v3 .sb-qzone {
  color: #344e64;
}

.site-v3 .comment-form-notice,
.site-v3 .cf-tip {
  color: #475f72;
}

.site-v3 .share-btn {
  min-height: 36px;
}

.site-v3 .table-wrap {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: #fff;
}

.site-v3 .table-scroll-hint {
  display: none;
}

.site-v3 .table-wrap table {
  min-width: 680px;
  margin: 0;
}

.site-v3 .table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f8f8;
  color: var(--v3-navy);
}

.site-v3 .table-wrap tbody td:first-child,
.site-v3 .table-wrap thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}

.site-v3 .table-wrap thead th:first-child {
  z-index: 3;
  background: #f3f8f8;
}

.site-v3 .footer-bottom .wrap {
  color: #b4c4ca;
}

.site-v3 .footer-bottom a {
  color: #dbe7ea;
}

.site-v3 .footer-note,
.site-v3 .footer-contact,
.site-v3 .footer-col p,
.site-v3 .footer-col a {
  color: #cedde2;
}

.site-v3 .footer-tags .mini-tag {
  color: #edf5f7;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}

@media (max-width: 860px) {
  .site-v3 .site-header {
    position: static;
    backdrop-filter: none;
  }

  .site-v3 .header-inner {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0 10px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .site-v3 .brand {
    order: 1;
  }

  .site-v3 .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .site-v3 .search-form {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
  }

  .site-v3 .main-nav {
    display: none;
  }

  .site-v3 .main-nav.open {
    display: block;
  }

  .site-v3 .nav-inner {
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .tiku-resume {
    grid-template-columns: 1fr auto;
  }

  .tiku-resume-metrics {
    grid-column: 1;
  }

  .tiku-resume > a {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-width: 640px) {
  .site-v3 .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-v3 .page-head {
    padding-top: 24px;
  }

  .site-v3 .section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .site-v3 .article-study-action {
    align-items: stretch;
    flex-direction: column;
  }

  .article-study-button {
    width: 100%;
  }

  .tiku-resume {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .tiku-resume-metrics,
  .tiku-resume > a {
    grid-column: auto;
    grid-row: auto;
  }

  .tiku-resume > a {
    width: 100%;
  }

  .tiku-resume time {
    right: 15px;
  }

  .site-v3 .table-scroll-hint {
    display: block;
    width: max-content;
    margin: 0 0 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--v3-teal-soft);
    color: var(--v3-teal-deep);
    font-size: 10.5px;
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-v3 *,
  .site-v3 *::before,
  .site-v3 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
