@font-face {
  font-family: "Noto Sans SC Resource";
  src: url("/resources/assets/fonts/NotoSansSC-Resource-Subset.ttf?v=20260906-link2") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #061823;
  --navy-900: #071c2b;
  --navy-800: #0c2d40;
  --ink: #102d39;
  --muted: #5d737b;
  --paper: #f3f7f5;
  --white: #ffffff;
  --line: #cad9d5;
  --teal: #0a7c84;
  --cyan: #28cad8;
  --cyan-soft: #e4f5f4;
  --orange: #f17a2a;
  --orange-soft: #fff0e4;
  --font: "Noto Sans SC Resource", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --shadow: 0 16px 38px rgba(7, 35, 45, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #e3ebe8; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: #e3ebe8; font-family: var(--font); line-height: 1.65; }
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  color: var(--navy-950);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.mobile-resource-page {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 44px rgba(8, 32, 41, .1);
}

.mobile-resource-hero {
  position: relative;
  min-height: 342px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 73%, rgba(40, 202, 216, .12), transparent 34%),
    linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 48%, #0b3549 100%);
  isolation: isolate;
}
.mobile-resource-hero::before,
.mobile-resource-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mobile-resource-hero::before {
  z-index: 0;
  inset: -42% -78% -32% 10%;
  background: repeating-radial-gradient(ellipse at 60% 64%, transparent 0 26px, rgba(107, 214, 220, .12) 27px 28px, transparent 29px 44px);
  opacity: .34;
  transform: rotate(-8deg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, rgba(0, 0, 0, .3) 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, rgba(0, 0, 0, .3) 100%);
}
.mobile-resource-hero::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(6, 24, 35, .98) 0%, rgba(6, 24, 35, .84) 48%, transparent 85%),
    linear-gradient(0deg, rgba(4, 20, 29, .7) 0%, transparent 35%);
}
.hero-basin {
  position: absolute;
  z-index: 1;
  right: -122px;
  bottom: -153px;
  width: 440px;
  height: 440px;
  aspect-ratio: 1;
  background: url("/resources/assets/knowledge-basin.webp") center / contain no-repeat;
  opacity: .72;
  mix-blend-mode: screen;
  transform: rotate(-2deg);
  -webkit-mask-image: radial-gradient(ellipse 66% 64% at 51% 49%, #000 0%, rgba(0, 0, 0, .92) 45%, rgba(0, 0, 0, .54) 64%, transparent 84%);
  mask-image: radial-gradient(ellipse 66% 64% at 51% 49%, #000 0%, rgba(0, 0, 0, .92) 45%, rgba(0, 0, 0, .54) 64%, transparent 84%);
}
.hero-content { position: relative; z-index: 3; min-height: 342px; padding: 19px 18px 20px; padding: calc(19px + env(safe-area-inset-top)) 18px 20px; }
.hero-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-brand-row a { width: 132px; display: block; }
.hero-brand-row img { display: block; width: 100%; height: auto; }
.hero-brand-row > span { color: rgba(191, 230, 233, .76); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.hero-copy { width: min(78%, 312px); padding-top: 57px; }
.hero-kicker { margin: 0 0 10px; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.hero-copy h1 { margin: 0; font-size: clamp(37px, 11.2vw, 52px); font-weight: 850; line-height: 1.09; letter-spacing: -.055em; text-shadow: 0 8px 26px rgba(0, 9, 15, .28); }
.hero-copy h1 em { color: #c7eef0; font-size: .72em; font-style: normal; font-weight: 700; letter-spacing: -.04em; }
.hero-copy > p:last-child { max-width: 276px; margin: 16px 0 0; color: #c0d7db; font-size: 12px; line-height: 1.75; }
.hero-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(143, 214, 217, .24);
  border-bottom: 1px solid rgba(143, 214, 217, .16);
  background: rgba(5, 29, 42, .24);
  backdrop-filter: blur(3px);
}
.hero-status span { min-height: 54px; display: grid; align-content: center; gap: 2px; padding: 7px 10px; border-right: 1px solid rgba(143, 214, 217, .16); }
.hero-status span:last-child { border-right: 0; }
.hero-status b { color: #f2ffff; font-size: 13px; line-height: 1.2; }
.hero-status small { color: #90adb4; font-size: 9px; line-height: 1.35; }

main { background: var(--paper); }
.sync-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; padding: 24px 18px 20px; border-bottom: 1px solid #dde7e4; background: #edf4f2; }
.sync-intro p, .catalog-heading p, .mobile-use-guide > p:first-child { margin: 0 0 6px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.sync-intro h2, .catalog-heading h2, .mobile-use-guide h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.38; letter-spacing: -.02em; }
.sync-intro a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 2px 0 10px; border-bottom: 1px solid #8fb7b4; color: #0a6871; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sync-intro a span { color: var(--orange); font-size: 17px; }

.mobile-catalog { padding: 28px 16px 32px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.catalog-heading > span { flex: 0 0 auto; padding-bottom: 2px; color: #72868c; font-size: 10px; }
.mobile-search { position: relative; display: block; margin-top: 20px; }
.mobile-search > i { position: absolute; top: 50%; left: 15px; width: 13px; height: 13px; border: 1.5px solid var(--teal); border-radius: 50%; transform: translateY(-57%); pointer-events: none; }
.mobile-search > i::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.5px; background: var(--teal); transform: rotate(45deg); }
.mobile-search input { width: 100%; height: 50px; padding: 0 62px 0 43px; border: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--ink); background: var(--white); font-size: 13px; }
.mobile-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10, 124, 132, .11); }
.mobile-search input:disabled { cursor: wait; opacity: .62; }
.mobile-search button { position: absolute; top: 3px; right: 3px; min-width: 52px; height: 44px; border: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 700; }
.mobile-category-tabs { display: flex; gap: 8px; margin-top: 13px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.mobile-category-tabs::-webkit-scrollbar { display: none; }
.mobile-category-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 13px; border: 1px solid #bfd1ce; border-radius: 999px; color: #506a72; background: rgba(255, 255, 255, .66); font-size: 12px; }
.mobile-category-tabs button[aria-pressed="true"] { border-color: var(--orange); color: var(--navy-900); background: var(--orange-soft); font-weight: 750; }
.mobile-category-tabs small { margin-left: 5px; color: #829398; font-size: 9px; }
.mobile-result-count { min-height: 23px; margin: 15px 1px 8px; color: #61777f; font-size: 11px; }
.mobile-result-count b { color: var(--orange); font-size: 14px; }

.mobile-resource-list { display: grid; gap: 12px; }
.mobile-loading { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .72); color: var(--muted); text-align: center; }
.mobile-loading > span { width: 36px; height: 36px; border: 2px solid #c9dad7; border-top-color: var(--teal); border-radius: 50%; animation: mobile-spin .8s linear infinite; }
.mobile-loading p { margin: 0; font-size: 12px; }
.mobile-loading.is-error { min-height: 230px; padding: 30px 22px; }
.mobile-loading.is-error > div { max-width: 315px; }
.mobile-loading.is-error h3 { margin: 0 0 8px; font-size: 18px; }
.mobile-loading.is-error p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.mobile-loading.is-error button, .mobile-loading.is-error a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: 16px 4px 0; padding: 0 14px; border: 1px solid #a7c5c2; color: var(--teal); background: var(--white); font-size: 12px; font-weight: 700; text-decoration: none; }

.mobile-resource-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 28px rgba(8, 41, 50, .06); }
.mobile-resource-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(180deg, var(--cyan), var(--teal)); }
.resource-card-head { padding: 17px 16px 14px 19px; border-bottom: 1px solid #e1e9e7; }
.resource-card-labels { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resource-category-label { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.resource-published { display: inline-flex; align-items: center; gap: 5px; color: #477079; font-size: 10px; }
.resource-published::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2caaa5; box-shadow: 0 0 0 3px rgba(44, 170, 165, .12); }
.resource-card-head h3 { margin: 10px 0 0; color: var(--ink); font-size: 18px; line-height: 1.48; letter-spacing: -.02em; }
.resource-edition { margin: 6px 0 0; color: #4d6872; font-size: 12px; line-height: 1.7; }
.resource-summary { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.78; }
.resource-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.resource-topics span { padding: 3px 7px; color: #477079; background: #edf6f4; font-size: 9px; }
.resource-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: 1px solid #e1e9e7; background: #f6f9f8; }
.resource-facts > div { min-width: 0; padding: 10px 8px; border-right: 1px solid #e1e9e7; }
.resource-facts > div:nth-child(3n) { border-right: 0; }
.resource-facts > div:nth-child(-n+3) { border-bottom: 1px solid #e1e9e7; }
.resource-facts dt { color: #7a8d92; font-size: 8px; }
.resource-facts dd { margin: 3px 0 0; overflow: hidden; color: #284c58; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.resource-identity { padding: 12px 16px 0 19px; }
.resource-identity summary { min-height: 38px; display: flex; align-items: center; justify-content: space-between; color: #55717a; font-size: 10px; cursor: pointer; }
.resource-identity summary::after { content: "+"; color: var(--orange); font-size: 16px; font-weight: 400; }
.resource-identity[open] summary::after { content: "−"; }
.resource-identity code { display: block; margin: 0 0 12px; overflow-wrap: anywhere; color: #46626c; font: 9px/1.7 Consolas, monospace; }
.resource-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px 16px 16px 19px; }
.resource-actions a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--teal); color: var(--white); background: var(--teal); font-size: 12px; font-weight: 750; text-decoration: none; }
.resource-actions a:last-child { min-width: 92px; border-color: #a8c1bf; color: #315f68; background: var(--white); }
.resource-actions a span { color: #bdf2f2; font-size: 15px; }
.resource-actions a:last-child span { color: var(--orange); }

.mobile-empty { min-height: 170px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; padding: 28px 20px; border: 1px dashed #aac2bf; background: rgba(255, 255, 255, .62); }
.mobile-empty > span { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #afd0cd; border-radius: 50%; color: var(--teal); background: var(--cyan-soft); font-size: 21px; }
.mobile-empty > span::before { content: ""; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; transform: translate(-2px, -2px); }
.mobile-empty > span::after { content: ""; position: absolute; width: 8px; height: 1.5px; background: currentColor; transform: translate(7px, 7px) rotate(45deg); }
.mobile-empty h3 { margin: 0 0 5px; font-size: 16px; }
.mobile-empty p { margin: 0; color: var(--muted); font-size: 12px; }

.mobile-use-guide { padding: 30px 18px; color: #eaf7f7; background: #0a2a3b; }
.mobile-use-guide > p:first-child { color: #67d8dd; }
.mobile-use-guide h2 { color: var(--white); }
.mobile-use-guide ol { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(147, 211, 214, .18); }
.mobile-use-guide li { min-height: 74px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; border-bottom: 1px solid rgba(147, 211, 214, .18); }
.mobile-use-guide li b { color: var(--orange); font: 750 11px/1 Consolas, monospace; }
.mobile-use-guide li span { color: #a8c2c7; font-size: 11px; line-height: 1.68; }
.mobile-use-guide li strong { display: block; color: var(--white); font-size: 13px; }
.wechat-tip { margin: 17px 0 0; padding: 12px 13px; border-left: 3px solid var(--orange); color: #a9c3c7; background: rgba(255, 255, 255, .04); font-size: 11px; line-height: 1.75; }
.wechat-tip strong { color: #ffe0ca; }

.mobile-boundary { margin: 0; padding: 20px 18px; display: grid; grid-template-columns: 70px 1fr; gap: 12px; border-bottom: 1px solid #dce5e2; background: #edf4f2; }
.mobile-boundary strong { color: var(--teal); font-size: 11px; }
.mobile-boundary p { margin: 0; color: #60777f; font-size: 11px; line-height: 1.75; }
.no-script { margin: 0; padding: 22px 18px; color: #6c4d35; background: var(--orange-soft); font-size: 12px; }
.no-script a { margin-left: 4px; color: var(--teal); font-weight: 700; }

footer { padding: 26px 18px 32px; padding: 26px 18px calc(32px + env(safe-area-inset-bottom)); color: #82969b; background: var(--navy-950); text-align: center; }
footer img { width: 132px; height: auto; opacity: .8; }
footer p { margin: 12px 0 2px; font-size: 10px; }
footer a { color: #9cc2c6; font-size: 10px; text-decoration: none; }

button, a { -webkit-tap-highlight-color: transparent; }
button:focus, a:focus, input:focus, summary:focus { outline: 3px solid var(--cyan); outline-offset: 3px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible), input:focus:not(:focus-visible), summary:focus:not(:focus-visible) { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@keyframes mobile-spin { to { transform: rotate(360deg); } }

@media (max-width: 359px) {
  .hero-content { padding-inline: 15px; }
  .hero-brand-row > span { font-size: 9px; }
  .hero-copy { width: 84%; }
  .hero-copy h1 { font-size: 36px; }
  .hero-basin { right: -150px; opacity: .63; }
  .sync-intro { grid-template-columns: 1fr; align-items: start; }
  .sync-intro a { justify-self: start; padding-left: 0; }
  .catalog-heading { align-items: start; }
  .catalog-heading > span { max-width: 82px; text-align: right; }
  .resource-card-head { padding-inline: 16px 13px; }
  .resource-facts { grid-template-columns: repeat(2, 1fr); }
  .resource-facts > div:nth-child(3n) { border-right: 1px solid #e1e9e7; }
  .resource-facts > div:nth-child(2n) { border-right: 0; }
  .resource-facts > div:nth-child(-n+4) { border-bottom: 1px solid #e1e9e7; }
  .resource-actions { grid-template-columns: 1fr; padding-inline: 16px 13px; }
  .resource-actions a:last-child { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
