/* 首页独立主题；保留 Material 的导航、搜索和移动抽屉。 */
body:has(.jr-home) {
  --md-default-bg-color: #0c1016;
  --md-default-fg-color: #e9edf3;
  --md-default-fg-color--light: #a5afbd;
  --md-default-fg-color--lighter: #717e90;
  --md-default-fg-color--lightest: #252d38;
  --md-primary-fg-color: #111720;
  --md-primary-fg-color--dark: #090d12;
  --md-primary-bg-color: #e9edf3;
  --md-primary-bg-color--light: #a5afbd;
  --md-accent-fg-color: #a5c9e8;
  --md-typeset-a-color: #a5c9e8;
  --md-code-bg-color: #151d28;
  --md-code-fg-color: #d8e3f0;
  background: #0c1016;
  color: #e9edf3;
}

body:has(.jr-home) .md-header {
  background: #0c1016f5;
  border-bottom: 1px solid #222b37;
  box-shadow: none;
}
body:has(.jr-home) .md-tabs { background: transparent; }
body:has(.jr-home) .md-header__inner,
body:has(.jr-home) .md-tabs__inner { max-width: 64rem; }
body:has(.jr-home) .md-main__inner {
  max-width: 64rem;
  margin: 0 auto;
}
body:has(.jr-home) .md-content__inner {
  max-width: none;
  margin: 0;
  padding: 0 1.2rem;
}
body:has(.jr-home) .md-content__inner::before { display: none; }
body:has(.jr-home) .md-footer { border-top: 1px solid #252d38; background: #090d12; }
body:has(.jr-home) .md-footer-meta { background: transparent; }
body:has(.jr-home) .md-nav__link--active { color: #a5c9e8; }
body:has(.jr-home) .md-search-result mark { color: #bcdcff; }
body:has(.jr-home) .md-search__input { color: #e9edf3; }
body:has(.jr-home) .md-search__input::placeholder { color: #a5afbd; }

@media (min-width: 76.25em) {
  body:has(.jr-home) .md-sidebar--primary { display: none; }
}

.jr-home {
  padding-bottom: 2rem;
  --home-muted: #a2adbc;
  --home-line: #28303b;
  --home-accent: #a5c9e8;
  color: #ecf0f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: .78rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.jr-home *, .jr-home *::before, .jr-home *::after { box-sizing: border-box; }
.jr-home :is(h1, h2, h3, p, ul, figure) { margin: 0; }
.jr-home a { color: inherit; }
.jr-home a:hover { color: var(--home-accent); }
.jr-home :is(a, summary):focus-visible { outline: 2px solid var(--home-accent); outline-offset: 5px; }
.jr-home .home-eyebrow { color: var(--home-muted); font-size: .58rem; font-weight: 500; letter-spacing: .15em; }
.jr-home .home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  min-height: 29rem;
  padding: 3rem 0 2.5rem;
}
.jr-home .home-hero-copy { position: relative; z-index: 1; padding: 1rem 0; }
.jr-home .home-welcome { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.35rem; }
.jr-home .home-welcome::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a5c9e8; box-shadow: 0 0 0 4px #a5c9e80d; }
.jr-home h1 { color: #f0f2f5; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.28; letter-spacing: -.05em; }
.jr-home h1 span { color: #a5c9e8; }
.jr-home .home-lead { max-width: 25rem; margin: 1.25rem 0 1.6rem; color: var(--home-muted); font-size: .78rem; line-height: 2; }
.jr-home .home-lead strong { color: #e7edf4; font-weight: 500; }
.jr-home .home-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.jr-home .home-button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 48px; padding: .6rem 1.1rem; border: 1px solid #3a4656; border-radius: 5px; color: #dce4ee; font-size: .7rem; font-weight: 600; transition: background .18s, border-color .18s; }
.jr-home .home-button-primary { border-color: #dce7f2; background: #dce7f2; color: #101821; }
.jr-home .home-button:hover { border-color: #a5c9e8; background: #1b2735; color: #ecf4ff; }
.jr-home .home-button-primary:hover { background: #fff; border-color: #fff; color: #101821; }
.jr-home .home-hero-note { margin-top: 1.3rem; color: #8d99a9; font-size: .57rem; letter-spacing: .08em; }
.jr-home .home-visual { position: relative; width: 115%; margin-left: -8%; }
.jr-home .home-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 65%, transparent 90%); }
.jr-home .home-visual figcaption { position: absolute; bottom: 7%; left: 16%; right: 12%; display: flex; justify-content: space-between; border-top: 1px solid #34404d; padding-top: .6rem; color: #8d99a9; font-size: .5rem; letter-spacing: .15em; }
.jr-home .home-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); padding: 1.5rem 0; }
.jr-home .home-stat { padding: 0 1.6rem; border-right: 1px solid var(--home-line); }
.jr-home .home-stat:first-child { padding-left: 0; }
.jr-home .home-stat:last-child { border: 0; }
.jr-home .home-stat strong { display: block; color: #e9edf3; font-size: 1.8rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.jr-home .home-stat span { display: block; margin-top: .45rem; color: var(--home-muted); font-size: .6rem; }
.jr-home .home-section { padding: 3.5rem 0 0; scroll-margin-top: 7rem; }
.jr-home .home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.jr-home .home-section h2 { margin-top: .5rem; color: #e9edf3; font-size: 1.6rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.4; }
.jr-home .home-section-intro { max-width: 29rem; margin-top: .65rem; color: var(--home-muted); font-size: .7rem; }
.jr-home .home-section-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: #b4bfce; font-size: .65rem; white-space: nowrap; }
.jr-home .home-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.jr-home .home-tool { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.4rem; border: 1px solid var(--home-line); border-radius: 10px; background: #111720; transition: border-color .18s, background .18s; }
.jr-home .home-tool:hover { border-color: #526276; background: #141c26; }
.jr-home .home-tool-heading { display: flex; align-items: center; gap: .85rem; }
.jr-home .home-tool-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid #344252; border-radius: 8px; background: #1a2532; color: #c2d6e9; font-size: .9rem; font-weight: 600; letter-spacing: -.04em; }
.jr-home .home-tool-excel .home-tool-icon { background: #172a25; color: #a1cbb7; border-color: #2b453a; }
.jr-home .home-tool-word .home-tool-icon { background: #1a253b; color: #a7bce7; border-color: #2f3e5a; }
.jr-home .home-tool h3 { margin: 0; color: #e9edf3; font-size: .85rem; font-weight: 600; line-height: 1.5; }
.jr-home .home-tool small { display: block; margin-top: .15rem; color: #8e9bad; font-size: .53rem; letter-spacing: .06em; }
.jr-home .home-tool p { margin: 1rem 0; color: var(--home-muted); font-size: .68rem; line-height: 1.9; }
.jr-home .home-capabilities { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .15rem 0 1.15rem; color: #b1bccc; font-size: .58rem; }
.jr-home .home-capabilities span::before { content: "·"; margin-right: .35rem; color: #9ab8d3; }
.jr-home .home-tool-links { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--home-line); }
.jr-home .home-tool-links a { display: inline-flex; align-items: center; min-height: 44px; color: #c9d9e9; font-size: .65rem; }
.jr-home .home-tool-links a:last-child { margin-left: auto; color: #98a6b8; font-size: .6rem; }
.jr-home .home-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.jr-home .home-tools .home-tool { padding: 1.1rem; }
.jr-home .home-tools .home-tool-icon { width: 1.9rem; height: 1.9rem; font-size: .67rem; }
.jr-home .home-tools h3 { font-size: .75rem; }
.jr-home .home-learn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--home-line); }
.jr-home .home-course { display: grid; grid-template-columns: 1.8rem 1fr auto; align-items: start; gap: .6rem; padding: 1.5rem 1.2rem 1.5rem 0; border-bottom: 1px solid var(--home-line); }
.jr-home .home-course:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--home-line); }
.jr-home .home-course-number { color: #7e8a9c; font-family: monospace; font-size: .6rem; line-height: 1.9; }
.jr-home .home-course h3 { color: #e0e7f0; font-size: .85rem; font-weight: 500; }
.jr-home .home-course p { margin-top: .4rem; color: var(--home-muted); font-size: .65rem; }
.jr-home .home-course-arrow { color: #b2c8df; transition: transform .18s; }
.jr-home .home-course:hover .home-course-arrow { transform: translate(3px, -3px); }
.jr-home .home-about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; margin-top: 3.5rem; padding: 2.5rem; border: 1px solid var(--home-line); border-radius: 12px; background: #10161e; }
.jr-home .home-profile { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.jr-home .home-profile img { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; }
.jr-home .home-profile strong { display: block; font-size: .85rem; font-weight: 500; }
.jr-home .home-profile span { color: var(--home-muted); font-size: .58rem; }
.jr-home .home-about h2 { margin: 0; font-size: 1.4rem; line-height: 1.6; font-weight: 500; color: #dce5ef; letter-spacing: -.025em; }
.jr-home .home-about-copy p { margin-bottom: .8rem; color: var(--home-muted); font-size: .7rem; line-height: 2; }
.jr-home .home-about-copy strong { color: #d7e3f0; font-weight: 500; }
.jr-home .home-about-copy p:last-child { margin-bottom: 0; color: #c2d4e6; }
.jr-home .home-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.jr-home .home-social { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--home-line); border-radius: 8px; }
.jr-home .home-social strong { display: block; font-size: .75rem; font-weight: 500; }
.jr-home .home-social small { color: var(--home-muted); font-size: .6rem; }
.jr-home details.home-contact { margin: 1rem 0 0; padding: 0; border: 1px solid var(--home-line); border-radius: 8px; background: #10161e; box-shadow: none; color: inherit; font-size: inherit; }
.jr-home details.home-contact > summary { margin: 0; padding: .8rem 1.2rem; border: 0; background: transparent; color: #c2ccd9; font-size: .7rem; font-weight: 400; cursor: pointer; }
.jr-home details.home-contact > summary::before { display: none; }
.jr-home details.home-contact > summary::after { top: 1rem; right: 1rem; background-color: #a5c9e8; }
.jr-home .home-qr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding: 1rem 1.2rem; }
.jr-home .home-qr { min-width: 0; text-align: center; }
.jr-home .home-qr a { display: block; padding: .4rem; border-radius: 6px; background: #fff; }
.jr-home .home-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.jr-home .home-qr figcaption { margin-top: .5rem; color: #acb8c8; font-size: .58rem; line-height: 1.7; }
.jr-home .home-contact-note { margin: 1rem 0 0; color: var(--home-muted); font-size: .63rem; }
.jr-home .home-contact-note a { color: #bdcfe2; }

@media (max-width: 1000px) {
  .jr-home .home-hero { min-height: auto; padding: 2.5rem 0; }
  .jr-home h1 { font-size: 2.2rem; }
  .jr-home .home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-home .home-about { padding: 1.7rem; gap: 1.5rem; }
}

@media (max-width: 700px) {
  body:has(.jr-home) .md-content__inner { padding: 0 1rem; }
  .jr-home .home-hero { grid-template-columns: 1fr; padding: 2rem 0 0; }
  .jr-home .home-hero-copy { padding: 0; }
  .jr-home h1 { font-size: clamp(2rem, 8.7vw, 2.8rem); }
  .jr-home .home-lead { max-width: 100%; font-size: .75rem; margin: 1rem 0 1.2rem; }
  .jr-home .home-visual { width: 100%; max-width: 22rem; margin: -.5rem auto 0; }
  .jr-home .home-visual img { aspect-ratio: 1; object-fit: contain; }
  .jr-home .home-visual figcaption { bottom: 5%; left: 9%; right: 9%; }
  .jr-home .home-stats { grid-template-columns: repeat(2, 1fr); padding: .3rem 0; }
  .jr-home .home-stat { padding: 1rem .75rem; border: 0; }
  .jr-home .home-stat:nth-child(odd) { padding-left: 0; }
  .jr-home .home-stat:nth-child(-n+2) { border-bottom: 1px solid var(--home-line); }
  .jr-home .home-stat strong { font-size: 1.5rem; }
  .jr-home .home-section { padding-top: 2.5rem; scroll-margin-top: 4rem; }
  .jr-home .home-section h2 { font-size: 1.35rem; }
  .jr-home .home-section-head { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .jr-home .home-featured, .jr-home .home-tools, .jr-home .home-learn-grid { grid-template-columns: 1fr; }
  .jr-home .home-tool, .jr-home .home-tools .home-tool { padding: 1.1rem; }
  .jr-home .home-tool h3, .jr-home .home-tools h3 { font-size: .85rem; }
  .jr-home .home-tool p { font-size: .7rem; }
  .jr-home .home-course, .jr-home .home-course:nth-child(even) { padding: 1.2rem 0; border-left: 0; }
  .jr-home .home-about { grid-template-columns: 1fr; margin-top: 2.5rem; padding: 1.2rem; gap: 1.2rem; }
  .jr-home .home-about h2 { font-size: 1.3rem; }
  .jr-home .home-socials { grid-template-columns: 1fr; gap: .6rem; }
  .jr-home .home-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .jr-home *, .jr-home *::before, .jr-home *::after { transition: none !important; }
}
