@font-face {
  font-family: NotoSC;
  src: local("Noto Sans CJK SC");
  font-weight: 100 900;
}
:root {
  --bg: #fafbf8;
  --ink: #24303a;
  --sub: #687581;
  --muted: #98a4ad;
  --purple: #6254e8;
  --orange: #ff945b;
  --mint: #5dcda8;
  --yellow: #ffd763;
  --blue: #72b8f2;
  --coral: #ff9ea8;
  --border: #e9eaef;
  --shadow: 0 9px 30px rgba(40, 55, 75, 0.047);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: NotoSC, "Noto Sans CJK SC", "Microsoft Yahei", sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body {
  overflow-x: hidden;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
svg {
  vertical-align: middle;
}
b,
strong {
  font-weight: 760;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #24303a;
  font-size: 19px;
  white-space: nowrap;
}
.brand small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--sub);
  font-weight: 400;
  letter-spacing: 0.3px;
}
.brand-symbol {
  height: 35px;
  width: 35px;
  border-radius: 12px;
  background: #6153e8;
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 4px;
  justify-content: center;
  align-content: center;
  transform: rotate(-7deg);
}
.brand-symbol span {
  border-radius: 100%;
  background: #fff;
}
.brand-symbol span:nth-child(2) {
  opacity: 0.75;
}
.brand-symbol span:nth-child(3) {
  opacity: 0.56;
}
.btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  padding: 0 19px;
  font-size: 14px;
  font-weight: 650;
  background: var(--purple);
  color: #fff;
  white-space: nowrap;
}
.btn.alt {
  background: white;
  color: var(--purple);
  border: 1px solid #dcd9fd;
}
.btn.ghost {
  background: #f1f0ff;
  color: var(--purple);
}
.btn.disabled {
  background: #e8e9ed;
  color: #999fa8;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 40px;
  background: #f0eeff;
  color: #6254e8;
  font-size: 12px;
  white-space: nowrap;
}
.pill.orange {
  color: #ac5b24;
  background: #fff0e6;
}
.pill.green {
  color: #208d6f;
  background: #e6f7f0;
}
.pill.gray {
  color: #75808b;
  background: #f0f2f4;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.smallnote {
  font-size: 12px;
  color: var(--sub);
}
.muted {
  color: var(--sub);
}
.purple {
  color: var(--purple);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
}
.section-heading p {
  font-size: 14px;
  color: var(--sub);
  margin-top: 6px;
}
.link {
  color: var(--purple);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 650;
}
.outline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  color: #667685;
  border-radius: 12px;
  height: 42px;
  width: 42px;
}
.mini-dot {
  display: inline-block;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 4px;
}

.web-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 80px;
}
.web-nav-inner {
  max-width: 1240px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.web-nav nav {
  display: flex;
  gap: 27px;
  align-items: center;
  height: 100%;
  margin-left: 8px;
}
.web-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  color: #566370;
  position: relative;
  white-space: nowrap;
}
.web-nav a.active {
  color: var(--purple);
  font-weight: 800;
}
.web-nav a.active:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--purple);
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 4px;
}
.web-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.web-search {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  color: #9ba6af;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 235px;
}
.web-search span {
  margin-left: auto;
  font-size: 10px;
  background: #f5f5f7;
  padding: 4px 5px;
  border-radius: 4px;
  color: #9aa2af;
}
.wrap {
  width: 1200px;
  margin: auto;
}
.web-hero {
  display: grid;
  grid-template-columns: 454px 720px;
  gap: 24px;
  padding: 42px 0 52px;
  min-height: 630px;
  align-items: center;
}
.hero-left {
  padding-left: 4px;
}
.eyebrow {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6555d8;
  font-weight: 670;
  margin-bottom: 25px;
}
.eyebrow .line {
  width: 23px;
  height: 2px;
  background: #6f62ed;
}
.hero-left h1 {
  font-size: 47px;
  letter-spacing: -1.5px;
  line-height: 1.3;
  font-weight: 850;
}
.hero-left .lead {
  font-size: 16px;
  color: #677481;
  line-height: 1.98;
  margin: 26px 0 33px;
  max-width: 390px;
}
.hero-btns {
  display: flex;
  gap: 12px;
}
.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 35px;
}
.hero-stats strong {
  font-size: 26px;
  font-weight: 820;
}
.hero-stats small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #72808b;
}
.hero-stats .vertical {
  border-left: 1px solid #e3e6ed;
  padding-left: 32px;
}
.map-card {
  height: 570px;
  border: 1px solid #edecf4;
  border-radius: 30px;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(60, 60, 90, 0.035);
}
.map-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 49% 48%, #f9f7ff 2%, transparent 65%);
}
.map-bar {
  position: absolute;
  left: 22px;
  top: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.map-bar b {
  font-size: 13px;
}
.map-bar .tools {
  display: flex;
  gap: 8px;
}
.toolbutton {
  background: white;
  border: 1px solid #eae9f2;
  box-shadow: 0 2px 8px #2221;
  border-radius: 11px;
  height: 35px;
  padding: 0 11px;
  font-size: 12px;
  color: #697887;
}
.knowledge-svg {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 4px;
}
.feature-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  margin-top: 0;
  margin-bottom: 70px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 13px;
}
.feature em {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 21px;
  border-radius: 13px;
  background: #f0edff;
}
.feature b {
  font-size: 15px;
}
.feature small {
  display: block;
  font-size: 12px;
  color: #71808d;
  margin-top: 4px;
}
.content-section {
  margin: 0 0 68px;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.knowledge-card {
  border-radius: 21px;
  padding: 21px;
  display: flex;
  gap: 20px;
  min-height: 212px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.knowledge-art {
  width: 165px;
  flex-shrink: 0;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.knowledge-art.fourp {
  background: #fff4eb;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, 55px);
  gap: 7px;
  transform: rotate(-5deg);
}
.pgrid span {
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 26px;
  font-weight: 850;
}
.pgrid span:nth-child(1) {
  background: #ff945b;
}
.pgrid span:nth-child(2) {
  background: #72b8f2;
}
.pgrid span:nth-child(3) {
  background: #5dcda8;
}
.pgrid span:nth-child(4) {
  background: #ff9ea8;
}
.knowledge-art.pyramid {
  background: linear-gradient(160deg, #edf2ff, #f1fcff);
}
.pyramid-shape {
  width: 110px;
  height: 125px;
  background: linear-gradient(transparent, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.pyramid-shape div {
  height: 29px;
  background: #72a6e7;
  border-radius: 6px 6px 4px 4px;
}
.pyramid-shape div:nth-child(1) {
  width: 36px;
}
.pyramid-shape div:nth-child(2) {
  width: 75px;
}
.pyramid-shape div:nth-child(3) {
  width: 110px;
}
.kcopy {
  min-width: 0;
  flex: 1;
}
.kcopy h3 {
  font-size: 21px;
  margin: 13px 0 7px;
}
.kcopy p {
  font-size: 13px;
  line-height: 1.75;
  color: #6c7884;
}
.kcopy .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12px;
  color: #818d97;
}
.disabled-link {
  color: #aeb5bc;
}
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.domain-card {
  min-height: 126px;
  padding: 21px 22px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.domain-symbol {
  height: 48px;
  width: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.domain-card h3 {
  font-size: 16px;
  margin: 3px 0 12px;
}
.domain-card p {
  font-size: 12px;
  color: #8a95a0;
}
.domain-card .arrow {
  margin-left: auto;
  padding-top: 7px;
  color: #b3bac3;
}
.split {
  display: grid;
  grid-template-columns: 1.26fr 1fr;
  gap: 22px;
}
.social-card {
  padding: 28px;
}
.discussion-item {
  display: flex;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  gap: 15px;
}
.discussion-item:last-child {
  border: 0;
}
.discussion-item .bubble {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff1e9;
  color: #ee905b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.discussion-item h4 {
  font-size: 15px;
  margin-bottom: 7px;
}
.discussion-item p {
  font-size: 12px;
  color: #7b8993;
}
.membership {
  padding: 29px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8f7ff;
  position: relative;
  overflow: hidden;
}
.membership:after {
  content: "✦";
  position: absolute;
  right: -8px;
  top: 1px;
  color: #e2ddff;
  font-size: 145px;
  z-index: 0;
}
.membership > * {
  z-index: 1;
}
.membership h3 {
  font-size: 24px;
  margin: 14px 0 10px;
}
.membership p {
  font-size: 13px;
  line-height: 1.8;
  color: #667481;
}
.price {
  font-size: 36px;
  color: #f27647;
  font-weight: 830;
  margin: 20px 0 10px;
}
.price small {
  font-size: 16px;
}
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.article {
  padding: 23px;
  min-height: 162px;
}
.article .tiny-icon {
  width: 40px;
  height: 40px;
  background: #f0eeff;
  color: #6559dc;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
}
.article h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.article p {
  font-size: 12px;
  line-height: 1.65;
  color: #7a8792;
}
.footer {
  margin-top: 80px;
  border-top: 1px solid #ebeef2;
  background: #fff;
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8a949d;
}
.footer strong {
  color: #37404a;
  font-size: 17px;
  margin-right: 16px;
}

/* Runtime owners: shared primitives and responsive overrides. Reference palette retained. */
:root {
  --danger: #b0343e;
  --scroll-thumb: #c7c3db;
  --scroll-track: #f3f2f7;
  --scroll-hover: #9189b4;
  --scroll-active: #6254e8;
  --radius-control: 12px;
  --radius-panel: 20px;
}
html {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
* {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
::-webkit-scrollbar-thumb:active {
  background: var(--scroll-active);
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--purple);
}
button:hover,
.btn:hover {
  filter: brightness(0.95);
}
button:active,
.btn:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.btn {
  min-height: 44px;
  height: auto;
  padding: 11px 18px;
}
.web-nav-inner {
  padding: 0 28px;
  max-width: 1340px;
}
.web-search {
  min-width: 185px;
}
.wrap {
  width: min(1200px, calc(100% - 56px));
}
.web-hero {
  grid-template-columns: 0.85fr 1.2fr;
  gap: 32px;
  min-height: 660px;
}
.hero-left h1 {
  font-size: 52px;
  line-height: 1.25;
}
.map-card {
  height: 570px;
}
.map-large {
  height: 650px;
  margin-bottom: 30px;
}
.map-bar {
  gap: 8px;
}
.map-bar > div {
  display: flex;
  gap: 5px;
}
.map-bar button {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
}
.map-caption {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--sub);
}
.map-caption a {
  color: var(--purple);
}
.knowledge-svg {
  margin: 0;
  touch-action: pan-y;
}
.knowledge-svg a:hover circle {
  stroke: var(--ink);
  stroke-width: 2;
}
.card-art {
  width: 150px;
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 18%, white);
  overflow: hidden;
}
.card-art span {
  color: var(--accent);
  font-size: 64px;
}
.card-art img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top;
}
.knowledge-card {
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.knowledge-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 20px #6254e80d;
}
.knowledge-grid {
  margin-top: 22px;
}
.knowledge-grid > .empty {
  grid-column: 1/-1;
}
.knowledge-card h3 {
  line-height: 1.4;
}
.domain-grid {
  margin: 24px 0 55px;
}
.domain-card:hover {
  border-color: var(--purple);
}
.article-grid {
  margin: 24px 0;
}
.article h3 {
  margin-top: 15px;
}
.article small {
  color: var(--sub);
  display: block;
  margin-top: 20px;
}
.footer p {
  margin-top: 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 45px 0 32px;
}
.page-heading h1 {
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -1px;
}
.page-heading p {
  margin-top: 13px;
  color: var(--sub);
  line-height: 1.8;
}
.page-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.empty {
  padding: 45px 24px;
  min-height: 200px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 18px;
  line-height: 1.8;
  width: 100%;
}
.empty h3 {
  font-size: 18px;
}
.empty p {
  color: var(--sub);
  font-size: 14px;
  margin-top: 8px;
}
.empty-symbol {
  font-size: 38px;
  color: var(--purple);
  display: block;
}
.notice {
  background: #f4f2ff;
  border: 1px solid #e3dffc;
  padding: 16px;
  border-radius: 12px;
  color: #554b83;
  font-size: 14px;
  line-height: 1.8;
  margin: 20px 0;
}
.social-card .lead {
  font-size: 16px;
  color: var(--sub);
  line-height: 2;
  margin: 20px 0;
}
.social-card h2 {
  font-size: 25px;
}
.membership {
  gap: 15px;
}
.membership ul {
  line-height: 2.5;
  padding-left: 20px;
}
.membership-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 25px;
}
.membership h2 {
  margin-top: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0;
  font-size: 14px;
}
.field > span {
  font-weight: 650;
}
.field input,
.field textarea,
.field select,
input[type="search"],
.search-form > input,
.search-form > select {
  background: white;
  border: 1px solid #dcdfe7;
  border-radius: 12px;
  min-height: 46px;
  padding: 11px 14px;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
}
.field textarea {
  min-height: 110px;
  line-height: 1.8;
  resize: none;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
form[data-form] {
  max-width: 900px;
}
form[data-form="login"],
form[data-form="feedback"] {
  max-width: 580px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  margin: 0 auto 60px;
}
.form-error {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.7;
  margin: 15px 0;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.form-section {
  padding: 25px;
  margin-bottom: 24px;
}
.form-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.editor-guide {
  height: max-content;
  position: sticky;
  top: 100px;
  line-height: 2.2;
}
.editor-guide h3 {
  margin-top: 20px;
}
.editor-guide p {
  color: var(--sub);
  font-size: 13px;
  margin: 18px 0;
}
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  bottom: 20px;
  box-shadow: var(--shadow);
}
.save-bar span {
  font-size: 12px;
  color: var(--sub);
}
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
}
.search-form > input {
  flex: 1;
  min-width: 100px;
}
.search-form > select {
  max-width: 220px;
}
.search-form .field {
  margin: 0;
  flex: 1;
}
.search-form .field > span {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
.result-count {
  color: var(--sub);
  font-size: 13px;
  margin: 20px 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  font-size: 13px;
  color: var(--sub);
}
.pill.active,
.pill.selected {
  background: var(--purple);
  color: white;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 30px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--sub);
  padding-top: 30px;
}
.breadcrumb a:hover {
  color: var(--purple);
}
.definition {
  padding: 25px;
  margin-bottom: 30px;
}
.definition p {
  font-size: 19px;
  line-height: 1.9;
  margin-top: 15px;
}
.knowledge-detail {
  max-width: 1000px;
  margin: auto;
}
.reader {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
  overflow: hidden;
  margin: 30px 0 50px;
}
.reader-toolbar,
.reader-controls {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.reader-track {
  background: #f2f1f6;
  padding: 24px;
  min-height: 420px;
}
.reader-slide {
  margin: 0;
  text-align: center;
}
.reader-slide img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  min-height: 160px;
}
.reader-slide figcaption {
  color: var(--sub);
  font-size: 12px;
  padding-top: 12px;
}
.reader-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}
.reader-dots .selected {
  background: var(--purple);
  color: white;
}
.continuous .reader-slide {
  margin-bottom: 20px;
}
.paywall {
  text-align: center;
  padding: 30px;
  background: #f8f7ff;
}
.paywall p {
  margin: 14px 0;
  color: var(--sub);
}
.reading-body {
  max-width: 760px;
  margin: 40px auto;
  line-height: 2;
  font-size: 17px;
}
.reading-body h2 {
  margin: 25px 0;
}
.preline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.article-body {
  max-width: 800px;
  margin: auto;
}
.article-body .page-heading h1 {
  font-size: 40px;
}
.discussion {
  margin-bottom: 60px;
}
.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}
.comment p {
  margin-top: 8px;
}
details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  line-height: 1.8;
  min-height: 44px;
}
details p {
  color: var(--sub);
  line-height: 1.9;
  margin-top: 12px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #24303a;
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  max-width: min(90vw, 720px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-sidebar {
  width: 225px;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--border);
  padding: 26px 18px;
  overflow: auto;
  z-index: 20;
}
.admin-sidebar .brand {
  font-size: 17px;
  margin-bottom: 30px;
}
.sidebar-label {
  color: var(--sub);
  font-size: 11px;
  padding: 12px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-sidebar nav a {
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 11px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-sidebar nav a:hover {
  background: #f8f7ff;
}
.admin-sidebar nav .active {
  background: #f0edff;
  color: var(--purple);
  font-weight: 700;
}
.admin-sidebar nav small {
  font-size: 10px;
  color: #8c849f;
}
.return-site {
  display: block;
  margin-top: 25px;
  font-size: 12px;
  color: var(--purple);
  padding: 12px;
}
.admin-top {
  margin-left: 225px;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
  font-size: 13px;
}
.admin-main {
  margin-left: 225px;
  padding: 0 32px 60px;
  max-width: 1650px;
}
.admin-main .page-heading h1 {
  font-size: 30px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 30px;
}
.stat {
  padding: 25px;
}
.stat p {
  color: var(--sub);
  font-size: 13px;
}
.stat strong {
  font-size: 38px;
  display: block;
  margin-top: 15px;
}
.workflow {
  display: flex;
  gap: 18px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.workflow a {
  padding: 18px;
  background: #f8f7ff;
  border-radius: 14px;
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.workflow span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: grid;
  place-items: center;
}
.table-scroll {
  width: 100%;
  overflow: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  min-height: 300px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  padding: 17px 20px;
  background: #f6f6fa;
  white-space: nowrap;
  font-weight: 600;
  color: var(--sub);
}
td {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  line-height: 1.7;
  max-width: 400px;
  overflow-wrap: anywhere;
}
.table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 180px;
}
.table-actions button {
  font-size: 12px;
  padding: 8px 12px;
}
.table-scroll .empty {
  border: 0;
}
.upload-zone {
  padding: 32px 20px;
  border: 2px dashed #cfc9f6;
  border-radius: 15px;
  background: #f9f8ff;
  display: block;
  text-align: center;
  margin: 25px 0;
  color: var(--purple);
  cursor: pointer;
}
.upload-zone input {
  display: block;
  margin: 15px auto 0;
  max-width: 100%;
}
.upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.upload-slot {
  padding: 15px;
}
.upload-slot b {
  font-size: 13px;
}
.upload-slot img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  margin: 15px 0;
}
.slot-placeholder {
  height: 240px;
  display: grid;
  place-items: center;
  color: var(--sub);
  background: #f6f6fa;
  margin: 15px 0;
  border-radius: 10px;
}
.file-label {
  font-size: 12px;
  display: block;
  color: var(--purple);
  line-height: 2;
}
.file-label input {
  display: block;
  width: 100%;
  font-size: 11px;
}
.preview-frame {
  background: white;
  border: 1px solid var(--border);
  padding: 30px;
  margin: 30px auto;
  transition: max-width 0.2s;
  width: 100%;
  overflow-wrap: anywhere;
}
.preview-frame h1 {
  font-size: 28px;
  margin: 20px 0;
}
.preview-frame p {
  line-height: 1.9;
}
.preview-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.preview-images img {
  width: 100%;
  height: auto;
}
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.compact {
  padding: 22px;
  margin: 10px 0;
}
.compact h3 {
  font-size: 16px;
  margin: 12px 0;
}
.compact p {
  font-size: 12px;
  color: var(--sub);
}
.account-link {
  padding: 25px;
  min-height: 90px;
}
.mobile-nav,
.mobile-domains {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1200px) {
  .web-nav nav {
    gap: 18px;
  }
  .web-search {
    display: none;
  }
  .web-hero {
    gap: 20px;
  }
  .hero-left h1 {
    font-size: 44px;
  }
  .map-card {
    height: 520px;
  }
  .hero-stats {
    gap: 20px;
  }
  .hero-stats .vertical {
    padding-left: 20px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-guide {
    position: static;
  }
  .upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  .web-nav nav {
    display: none;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .web-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 35px 0;
    gap: 24px;
  }
  .hero-left h1 {
    font-size: 42px;
  }
  .hero-left h1 br:last-of-type {
    display: none;
  }
  .hero-left .lead {
    margin: 18px 0;
    line-height: 1.8;
  }
  .hero-stats {
    margin-top: 28px;
  }
  .web-hero > .map-card {
    height: 480px;
  }
  .domain-grid {
    grid-template-columns: 1fr 1fr;
  }
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  .split,
  .membership-layout {
    grid-template-columns: 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-strip {
    padding: 18px;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 40px;
  }
  .feature {
    width: 43%;
  }
  .feature small {
    font-size: 11px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 0;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .admin-sidebar {
    width: 180px;
    padding: 20px 10px;
  }
  .admin-sidebar .brand {
    font-size: 14px;
    gap: 8px;
  }
  .admin-main {
    margin-left: 180px;
    padding: 0 18px 40px;
  }
  .admin-top {
    margin-left: 180px;
    padding: 12px 18px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-main .split {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .search-form {
    flex-wrap: wrap;
  }
  .search-form > select {
    max-width: 100%;
  }
  .design-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 550px) {
  body {
    padding-bottom: 68px;
  }
  .web-nav {
    height: 66px;
  }
  .web-nav-inner {
    padding: 0 18px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-symbol {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }
  .web-actions .btn {
    font-size: 11px;
    min-height: 38px;
    padding: 8px 12px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .web-hero > .map-card {
    display: none;
  }
  .mobile-domains {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
  }
  .mobile-domains .domain-card {
    padding: 13px 10px;
    gap: 8px;
    min-height: 95px;
  }
  .mobile-domains .domain-symbol {
    width: 29px;
    height: 29px;
    border-radius: 10px;
    font-size: 15px;
  }
  .mobile-domains h3 {
    font-size: 12px;
    margin: 4px 0 9px;
  }
  .mobile-domains p {
    font-size: 10px;
  }
  .mobile-domains .arrow {
    display: none;
  }
  .hero-left h1 {
    font-size: 38px;
  }
  .hero-left .eyebrow {
    margin-bottom: 17px;
    font-size: 12px;
  }
  .hero-stats strong {
    font-size: 22px;
  }
  .hero-stats small {
    font-size: 10px;
  }
  .feature {
    gap: 8px;
  }
  .feature b {
    font-size: 12px;
  }
  .feature em {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .feature-strip {
    gap: 14px;
    padding: 14px;
  }
  .content-section {
    margin-bottom: 38px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 15px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .section-heading .link {
    font-size: 11px;
    white-space: nowrap;
  }
  .knowledge-card {
    padding: 14px;
    gap: 14px;
    min-height: 180px;
  }
  .card-art {
    width: 100px;
    min-height: 160px;
  }
  .card-art img {
    height: 160px;
  }
  .kcopy h3 {
    font-size: 18px;
  }
  .kcopy p {
    font-size: 12px;
  }
  .kcopy .bottom {
    font-size: 10px;
    gap: 8px;
  }
  .domain-grid {
    gap: 10px;
    margin-bottom: 32px;
  }
  .domain-card {
    padding: 15px 12px;
    gap: 10px;
    min-height: 110px;
  }
  .domain-symbol {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .domain-card h3 {
    font-size: 12px;
  }
  .domain-card p {
    font-size: 10px;
  }
  .domain-card .arrow {
    display: none;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 64px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fffffff5;
    border-top: 1px solid var(--border);
    z-index: 30;
  }
  .mobile-nav a {
    padding: 14px 10px;
    font-size: 12px;
    min-height: 44px;
  }
  .mobile-nav .active {
    color: var(--purple);
    font-weight: 750;
  }
  .footer {
    margin-top: 35px;
    padding: 24px 0;
  }
  .footer-inner {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
    font-size: 11px;
  }
  .reader-track {
    padding: 12px;
    min-height: 320px;
  }
  .reader-toolbar {
    padding: 14px;
    font-size: 12px;
  }
  .reader-toolbar button {
    font-size: 10px;
    padding: 7px;
    min-height: 34px;
  }
  .reader-controls {
    padding: 14px;
    font-size: 13px;
  }
  .reader-controls button {
    font-size: 12px;
    padding: 9px;
  }
  .reader-dots button {
    padding: 6px;
    min-height: 36px;
    font-size: 11px;
  }
  .reader-slide img {
    width: 100%;
    max-height: none;
  }
  .definition {
    padding: 20px;
  }
  .definition p {
    font-size: 16px;
  }
  .reading-body {
    font-size: 16px;
  }
  .page-heading h1,
  .article-body .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .map-large {
    height: 390px;
  }
  .map-large .map-bar {
    left: 12px;
    right: 12px;
    top: 12px;
    font-size: 10px;
  }
  .map-large .map-bar b {
    font-size: 10px;
  }
  .map-caption {
    font-size: 9px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }
  .social-card {
    padding: 20px;
  }
  .social-card h2 {
    font-size: 21px;
  }
  .social-card .lead {
    font-size: 14px;
  }
  .membership {
    padding: 23px;
  }
  .toast {
    bottom: 85px;
    font-size: 13px;
  }
  .search-form {
    padding: 12px;
  }
  .search-form > input {
    flex-basis: 65%;
  }
  .search-form > select {
    width: 100%;
    flex: 1;
    font-size: 12px;
  }
  .search-form .btn {
    font-size: 12px;
  }
  .admin-sidebar {
    position: static;
    width: 100%;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .admin-sidebar .brand {
    margin: 0 0 15px;
    font-size: 17px;
  }
  .admin-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 5px;
  }
  .admin-sidebar nav a {
    white-space: nowrap;
    min-height: 40px;
    font-size: 12px;
  }
  .admin-sidebar nav small,
  .sidebar-label,
  .return-site {
    display: none;
  }
  .admin-top,
  .admin-main {
    margin-left: 0;
  }
  .admin-top {
    font-size: 11px;
  }
  .admin-main {
    padding: 0 16px 35px;
  }
  .admin-main .page-heading h1 {
    font-size: 25px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 30px;
  }
  .form-section {
    padding: 18px;
  }
  .upload-grid {
    gap: 10px;
  }
  .upload-slot {
    padding: 10px;
  }
  .upload-slot img,
  .slot-placeholder {
    height: 180px;
  }
  .upload-slot b {
    font-size: 11px;
  }
  .save-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
  }
  .save-bar .btn {
    font-size: 12px;
  }
  .preview-frame {
    padding: 18px;
  }
  .preview-images {
    grid-template-columns: 1fr;
  }
  .design-grid {
    grid-template-columns: 1fr;
  }
  .editor-guide {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .btn,
  .card,
  .field input,
  .field textarea,
  .field select {
    border: 1px solid CanvasText;
  }
}
@media (max-width: 1200px) {
  .web-nav .web-search {
    display: none;
  }
}
@media (max-width: 550px) {
  .web-hero {
    padding: 22px 0;
    gap: 14px;
  }
  .hero-left h1 {
    font-size: 33px;
  }
  .hero-left .lead {
    font-size: 13px;
    line-height: 1.65;
    margin: 13px 0 18px;
  }
  .hero-left .eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .hero-stats {
    margin-top: 20px;
  }
  .hero-stats strong {
    font-size: 20px;
  }
  .hero-btns .btn {
    font-size: 12px;
    padding: 10px 12px;
  }
  .mobile-domains {
    gap: 8px;
  }
  .mobile-domains .domain-card {
    min-height: 78px;
    padding: 11px 9px;
  }
  .mobile-domains h3 {
    font-size: 11px;
    margin: 1px 0 6px;
  }
  .mobile-domains .domain-symbol {
    width: 25px;
    height: 25px;
  }
  .mobile-domains p {
    font-size: 9px;
  }
  .web-actions {
    margin-left: auto;
  }
}
@media (max-width: 550px) {
  #network-graph:not(.mobile-expanded) {
    display: none;
  }
}
dialog {
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 30px;
  box-shadow: 0 20px 80px #24303a33;
  color: var(--ink);
}
dialog::backdrop {
  background: #24303a77;
}
dialog h2 {
  font-size: 23px;
}
dialog p {
  line-height: 1.9;
  color: var(--sub);
  margin: 20px 0;
}
dialog .actions {
  justify-content: flex-end;
}
/* Extended operations reuse the canonical form/table/action tokens. */
.platform-form .field {
  margin: 16px 0;
}
.table-scroll .platform-form {
  padding: 14px;
  min-width: 210px;
  margin: 0;
}
.table-scroll .platform-form .field {
  margin: 8px 0;
}
.node-order {
  width: 75px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  min-height: 44px;
}
.network-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin: 15px 0 35px;
}
.network-sidebar {
  height: max-content;
  position: sticky;
  top: 20px;
  padding: 20px;
}
.network-sidebar .muted {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 15px;
}
.network-sidebar .field {
  font-size: 13px;
}
.domain-controls {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.domain-control {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: white;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  min-height: 55px;
  color: var(--ink);
}
.domain-control small {
  color: var(--sub);
  font-size: 11px;
}
.domain-control:hover {
  background: #f8f7ff;
}
.graph-toolbar {
  margin-bottom: 14px;
}
.graph-toolbar .btn {
  font-size: 12px;
}
.network-canvas {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: #fff;
}
.network-canvas:fullscreen {
  background: #fafbf8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.network-canvas:fullscreen svg {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.network-canvas svg {
  width: 100%;
  min-height: 500px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.network-canvas svg:active {
  cursor: grabbing;
}
.network-canvas svg a {
  cursor: pointer;
}
.network-canvas svg a:hover circle {
  stroke: var(--ink);
  stroke-width: 3px;
}
#graph-summary {
  position: absolute;
  bottom: 14px;
  left: 20px;
  right: 20px;
  font-size: 12px;
  color: var(--sub);
  background: #fffffff0;
  padding: 6px;
  border-radius: 6px;
  pointer-events: none;
}
#graph-preview p {
  line-height: 1.8;
  color: var(--sub);
  margin: 14px 0;
}
#graph-preview h2 {
  font-size: 22px;
}
#web-login-status {
  line-height: 1.8;
  color: var(--sub);
  margin: 20px 0;
}
.table-scroll details {
  min-width: 220px;
}
.platform-form .field input[type="checkbox"] {
  min-height: 20px;
}
@media (max-width: 900px) {
  .network-workspace {
    grid-template-columns: 1fr;
  }
  .network-sidebar {
    position: static;
  }
  .domain-controls {
    grid-template-columns: repeat(3, 1fr);
  }
  .network-sidebar .field {
    margin: 10px 0;
  }
  .network-canvas {
    min-height: 380px;
  }
  .network-canvas svg {
    min-height: 380px;
  }
}
@media (max-width: 550px) {
  .network-workspace {
    gap: 15px;
  }
  .network-sidebar {
    padding: 15px;
  }
  .domain-controls {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .domain-control {
    font-size: 12px;
    padding: 10px;
    min-height: 66px;
  }
  .network-canvas {
    min-height: 310px;
  }
  .network-canvas svg {
    min-height: 310px;
  }
  .graph-toolbar {
    gap: 6px;
  }
  .graph-toolbar .btn {
    font-size: 10px;
    padding: 8px 9px;
    min-height: 38px;
  }
  .platform-form {
    padding: 18px;
  }
  .search-form label {
    font-size: 11px;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .search-form label input {
    min-height: 40px;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
  }
}
.formatted-text p,
.reading-body p {
  margin: 14px 0;
}
.formatted-text h2,
.reading-body h2 {
  margin: 28px 0 15px;
}
.formatted-text h3,
.reading-body h3 {
  margin: 22px 0 12px;
}
.formatted-text blockquote,
.reading-body blockquote {
  border-left: 3px solid var(--purple);
  background: #f7f6ff;
  padding: 14px 20px;
  margin: 20px 0;
}
.formatted-text ul {
  padding-left: 24px;
  margin: 14px 0;
}

/* W02 / H02: scoped explorer; shared shell, tokens and content pages stay unchanged. */
.knowledge-explorer {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 255px;
  gap: 18px;
  align-items: start;
  margin: 24px 0;
}
.knowledge-explorer [hidden] {
  display: none !important;
}
.explorer-tree,
.explorer-detail {
  padding: 18px;
  position: sticky;
  top: 16px;
  max-height: calc(100dvh - 36px);
  overflow: auto;
}
.explorer-tree h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
.explorer-tree label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.explorer-search-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.explorer-search-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--bg);
}
.explorer-search-row .btn {
  padding: 8px;
  min-height: 44px;
}
.explorer-tree .actions {
  gap: 4px;
  margin: 10px 0;
}
.explorer-tree .actions .btn {
  font-size: 12px;
  padding: 8px;
}
.explorer-tree-row {
  display: flex;
  align-items: center;
  padding-left: calc(var(--depth) * 10px);
  min-height: 44px;
  gap: 3px;
}
.explorer-disclosure {
  flex: none;
  width: 28px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--sub);
  cursor: pointer;
}
.explorer-tree-choice {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 10px 4px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.explorer-tree-choice:hover,
.explorer-tree-choice.selected {
  background: var(--bg);
  color: var(--purple);
  font-weight: 700;
}
.explorer-domain-group {
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
}
.explorer-domain-group > .explorer-tree-row {
  border-left: 3px solid var(--accent);
}
.explorer-count {
  font-size: 12px;
  color: var(--sub);
  padding: 0 4px;
}
.explorer-tree-empty {
  font-size: 12px;
  color: var(--sub);
  margin: 6px 12px 10px 28px;
}
.explorer-main {
  min-width: 0;
}
#explorer-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
}
#explorer-breadcrumb .btn {
  padding: 6px;
  min-height: 44px;
  font-size: 12px;
}
#explorer-breadcrumb [aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
}
.explorer-toolbar {
  gap: 7px;
}
.explorer-toolbar .btn {
  font-size: 12px;
  min-height: 44px;
}
#explorer-status {
  font-size: 12px;
  color: var(--sub);
  margin: 12px 0;
  min-height: 24px;
}
.explorer-domains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.explorer-domain-card {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  color: var(--ink);
  cursor: pointer;
  min-height: 84px;
}
.explorer-domain-card strong,
.explorer-domain-card span {
  display: block;
}
.explorer-domain-card strong {
  font-size: 14px;
}
.explorer-domain-card span {
  font-size: 11px;
  color: var(--sub);
  margin-top: 6px;
}
.explorer-graph-panel {
  overflow: hidden;
  padding: 8px;
}
.explorer-graph-tools {
  gap: 5px;
  flex-wrap: wrap;
}
.explorer-graph-tools .btn {
  padding: 8px;
  font-size: 12px;
  min-height: 44px;
}
.explorer-graph-tools output {
  font-size: 12px;
  min-width: 36px;
  text-align: center;
}
.explorer-graph-tools .check {
  font-size: 12px;
  margin: 4px;
}
#explorer-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 360px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
}
#explorer-svg:active {
  cursor: grabbing;
}
.explorer-node-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 600;
  paint-order: stroke;
  stroke: white;
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.explorer-graph-node {
  cursor: pointer;
}
.explorer-graph-node:focus {
  outline: none;
}
.explorer-graph-node:focus circle,
.explorer-graph-node:hover circle {
  stroke: var(--ink);
  stroke-width: 5px;
}
.explorer-graph-node.selected circle {
  stroke-width: 5px;
}
.explorer-legend {
  font-size: 11px;
  color: var(--sub);
  margin: 8px;
}
.explorer-detail h2 {
  font-size: 22px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.explorer-detail p {
  font-size: 14px;
  line-height: 1.8;
}
.explorer-detail-path {
  font-size: 12px !important;
  color: var(--sub);
}
.explorer-detail .btn {
  display: block;
  text-align: center;
  min-height: 44px;
  margin: 20px 0;
}
.explorer-detail h3 {
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.explorer-related {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 12px 4px;
  min-height: 44px;
  color: var(--purple);
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.explorer-result {
  display: block;
  width: 100%;
  padding: 16px;
  margin: 10px 0;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--border);
}
button.explorer-result {
  cursor: pointer;
  min-height: 54px;
  font: inherit;
}
.explorer-result-title {
  padding: 0;
  min-height: 44px;
  color: var(--purple);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.explorer-result p {
  margin: 4px 0 10px;
  font-size: 14px;
  line-height: 1.7;
}
.explorer-result small,
.explorer-reason {
  color: var(--sub);
  font-size: 12px;
}
.explorer-result .link {
  display: block;
  margin-top: 12px;
  min-height: 36px;
  font-size: 13px;
}
#explorer-results h2 {
  font-size: 18px;
  margin: 22px 0 12px;
}
#explorer-pagination {
  margin: 18px 0;
  font-size: 12px;
  gap: 10px;
}
.explorer-graph-panel:fullscreen,
.explorer-fullscreen-fallback {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.explorer-graph-panel:fullscreen #explorer-svg,
.explorer-fullscreen-fallback #explorer-svg {
  flex: 1;
  min-height: 0;
  height: 100%;
}
.explorer-fullscreen-fallback {
  position: fixed;
  inset: 0;
  z-index: 1000;
  max-height: 100dvh;
  border-radius: 0;
}
.explorer-fallback {
  font-size: 14px;
  margin: 20px 0;
}
@media (min-width: 1025px) and (max-width: 1150px) {
  .knowledge-explorer {
    grid-template-columns: 210px minmax(0, 1fr) 215px;
    gap: 10px;
  }
  .explorer-tree,
  .explorer-detail {
    padding: 12px;
  }
  .explorer-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .knowledge-explorer {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .explorer-tree,
  .explorer-detail {
    position: static;
    max-height: none;
    width: 100%;
    padding: 15px;
  }
  .explorer-tree h2,
  #explorer-tree,
  #explorer-collapse {
    display: none;
  }
  .explorer-tree .actions {
    margin-bottom: 0;
  }
  .explorer-main {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .explorer-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    order: 0;
  }
  .explorer-domain-card {
    min-height: 90px;
  }
  .explorer-detail {
    order: 1;
  }
  .knowledge-explorer[data-mode="node"] .explorer-detail {
    order: 0;
  }
  .knowledge-explorer[data-mode="node"] .explorer-main {
    order: 1;
  }
  .explorer-graph-tools {
    gap: 3px;
  }
  #explorer-svg {
    min-height: 320px;
  }
  .explorer-graph-panel {
    padding: 5px;
  }
  .explorer-toolbar .btn {
    padding: 10px;
  }
  .explorer-search-row input {
    font-size: 16px;
  }
  .knowledge-explorer:not([data-mode="node"]) .explorer-detail {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .knowledge-explorer * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1024px) {
  .explorer-heading {
    padding: 16px 0 10px;
    gap: 0;
  }
  .explorer-heading .eyebrow {
    display: none;
  }
  .explorer-heading h1 {
    font-size: 25px;
  }
  .explorer-heading p {
    margin-top: 6px;
  }
  .knowledge-explorer {
    margin-top: 8px;
  }
  .explorer-tree {
    padding: 12px;
  }
  .explorer-tree .actions {
    position: absolute;
    right: 15px;
    top: 0;
    margin: 0;
  }
  .explorer-tree {
    position: relative;
  }
  .explorer-tree form > label {
    padding-right: 90px;
    /* 「刷新数据」是 top:0 的绝对定位按钮，高 44px；
       label 若只有一行文字高（约 29px），按钮下沿会压住输入框顶部。
       给 label 撑到按钮同高，按钮就完整落在这一行内。 */
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .explorer-domains {
    gap: 8px;
    margin: 6px 0;
  }
  .explorer-domain-card {
    min-height: 76px;
    padding: 12px;
  }
  .knowledge-explorer[data-mode="global"] #explorer-breadcrumb,
  .knowledge-explorer[data-mode="global"] #explorer-back,
  .knowledge-explorer[data-mode="global"] #explorer-list-toggle {
    display: none;
  }
  .knowledge-explorer[data-mode="global"] .explorer-toolbar {
    display: none;
  }
  #explorer-status {
    margin: 4px 0 8px;
  }
  .explorer-main .explorer-detail {
    order: initial;
    margin: 8px 0 12px;
  }
  .explorer-detail-related,
  .explorer-detail h3,
  .explorer-detail .muted {
    display: none;
  }
  .knowledge-explorer[data-mode="node"] .explorer-main {
    order: initial;
  }
  .explorer-detail .btn {
    margin: 12px 0 0;
  }
}
@media (max-width: 1024px) {
  .explorer-node-label {
    font-size: 18px;
  }
  .explorer-graph-node text:not(.explorer-node-label) {
    font-size: 16px;
  }
}
.knowledge-explorer {
  scroll-margin-top: 20px;
}
#explorer-breadcrumb,
#explorer-results {
  scroll-margin-top: 20px;
}
.explorer-node-label {
  font-size: 16px;
}
@media (max-width: 1024px) {
  .explorer-node-label {
    font-size: 18px;
  }
}

/* Reading is a native top-layer modal; the graph beneath is never remounted. */
dialog.network-reading-drawer {
  inset: 0 0 0 auto;
  margin: 0;
  width: 50vw;
  max-width: 55vw;
  min-width: 520px;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  background: var(--bg);
}
dialog.network-reading-drawer[open] {
  display: flex;
  flex-direction: column;
}
.network-reading-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface, #fff);
  flex: none;
}
.network-reading-header h2 {
  font-size: 20px;
  margin: 0;
}
.network-reading-header p {
  font-size: 12px;
  margin: 5px 0 10px;
  line-height: 1.5;
}
.network-reading-header .actions {
  gap: 8px;
  justify-content: space-between;
}
.network-reading-header .btn {
  font-size: 13px;
  min-height: 44px;
}
#network-reading-frame {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  display: block;
}
.network-reading-drawer [hidden] {
  display: none !important;
}
#network-reading-status {
  margin: 12px 20px;
  font-size: 13px;
}
#network-reading-status:empty {
  display: none;
}
#network-reading-error {
  margin: 16px 20px;
}
.explorer-graph-node.reading-selected circle {
  stroke: var(--ink);
  stroke-width: 6px;
}
.embedded-knowledge-reader {
  padding: 0;
  margin: 0;
  background: var(--bg);
}
.embedded-knowledge-reader .wrap {
  width: calc(100% - 32px);
  max-width: 100%;
  margin: 0 auto;
}
.embedded-knowledge-reader .page-heading {
  padding: 20px 0;
  gap: 12px;
}
.embedded-knowledge-reader .page-heading h1 {
  font-size: 28px;
}
.embedded-knowledge-reader .article-grid,
.embedded-knowledge-reader .knowledge-grid {
  grid-template-columns: 1fr;
}
.embedded-knowledge-reader .reader-slide img {
  width: 100%;
  max-height: none;
  height: auto;
}
.embedded-knowledge-reader .reader-track {
  padding: 8px;
  min-height: 0;
}
.embedded-knowledge-reader .reader-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}
.embedded-knowledge-reader .content-section {
  padding: 24px 0;
}
.reader-magnify {
  margin: 12px auto;
  min-height: 44px;
}
dialog.knowledge-image-zoom {
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}
dialog.knowledge-image-zoom[open] {
  display: flex;
  flex-direction: column;
}
.knowledge-image-zoom header {
  padding: 12px;
  gap: 8px;
  flex: none;
}
.knowledge-image-zoom header .btn {
  min-height: 44px;
}
.knowledge-image-viewport {
  overflow: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.knowledge-image-viewport img {
  display: block;
  height: auto;
  max-width: none;
}
@media (max-width: 1024px) {
  dialog.network-reading-drawer {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    border-radius: 0;
  }
  .network-reading-header {
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .network-reading-header p {
    margin-bottom: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.network-reading-drawer[open] {
    animation: knowledge-drawer-enter 0.18s ease-out;
  }
  @keyframes knowledge-drawer-enter {
    from {
      opacity: 0;
      transform: translateX(24px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}
.explorer-tree-choice.reading-selected,
.explorer-result.reading-selected {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
  background: var(--bg);
}
@supports not (height: 100dvh) {
  dialog.network-reading-drawer,
  dialog.knowledge-image-zoom {
    height: 100vh;
    max-height: 100vh;
  }
}
.embedded-knowledge-reader #main {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
/* Mobile tree owns only H5; the desktop graph and reading template remain shared. */
.mobile-knowledge-tree {
  display: none;
}
@media (max-width: 1024px) {
  .knowledge-explorer[data-mobile-tree="true"] .explorer-toolbar {
    display: flex;
    gap: 6px;
    margin: 4px 0;
  }
  .knowledge-explorer[data-mobile-tree="true"] #explorer-list-toggle {
    display: inline-flex;
  }
  .knowledge-explorer[data-mobile-tree="true"] #explorer-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 12px;
  }
  .knowledge-explorer[data-mobile-tree="true"][data-mode="global"]
    #explorer-breadcrumb,
  .knowledge-explorer[data-mobile-tree="true"][data-mode="global"]
    #explorer-back {
    display: none;
  }
  .knowledge-explorer[data-mobile-tree="true"] #explorer-domains,
  .knowledge-explorer[data-mobile-tree="true"] #explorer-graph-panel,
  .knowledge-explorer[data-mobile-tree="true"] #explorer-detail {
    display: none !important;
  }
  .knowledge-explorer[data-mobile-tree="true"]:not([data-mode="search"]):not(
      [data-list="true"]
    )
    #explorer-results {
    display: none;
  }
  .mobile-knowledge-tree:not([hidden]) {
    display: block;
    overflow: auto;
    max-width: 100%;
    padding: 4px 2px 16px;
    overscroll-behavior-x: contain;
  }
  .mobile-tree-canvas {
    padding: 4px 5px;
    transform-origin: top center;
  }
  .mobile-tree-trail {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mobile-tree-step {
    position: relative;
    max-width: 100%;
    padding-top: 16px;
  }
  .mobile-tree-step:first-child {
    padding-top: 0;
  }
  .mobile-tree-step:not(:first-child):before {
    content: "";
    position: absolute;
    height: 16px;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--purple);
  }
  .mobile-tree-node {
    font: inherit;
    line-height: 1.4;
    min-height: 48px;
    width: 100%;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--tree-color);
    border-left: 4px solid var(--tree-color);
    border-radius: 12px;
    color: #24303a;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    overflow-wrap: anywhere;
  }
  .mobile-tree-node strong {
    font-size: 14px;
    font-weight: 600;
  }
  .mobile-tree-node small {
    font-size: 11px;
    color: #53616b;
  }
  .mobile-tree-step .mobile-tree-node {
    min-width: 150px;
    max-width: 260px;
  }
  .mobile-tree-node.is-current {
    background: color-mix(in srgb, var(--tree-color) 12%, white);
    box-shadow: 0 0 0 2px var(--tree-color);
  }
  .mobile-tree-node:focus-visible {
    outline: 3px solid #24303a;
    outline-offset: 3px;
  }
  .mobile-tree-children {
    margin: 0 0 0 14px;
    padding: 8px 0 0 18px;
    border-left: 2px solid #b7becb;
  }
  .mobile-tree-leaf {
    position: relative;
    margin: 0 0 10px;
  }
  .mobile-tree-leaf:before {
    content: "";
    position: absolute;
    left: -20px;
    top: 25px;
    width: 20px;
    border-top: 2px solid #b7becb;
  }
  .mobile-tree-children.has-relations {
    border-left-style: dashed;
  }
  .has-relations .mobile-tree-leaf:before {
    border-top-style: dashed;
  }
  .mobile-tree-children.is-global {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 10px;
    border: 0;
    margin: 0;
    padding: 20px 0 0;
    position: relative;
  }
  .mobile-tree-children.is-global:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 35px;
    border-left: 2px solid #aab2c4;
  }
  .is-global .mobile-tree-leaf {
    margin: 0;
    min-width: 0;
  }
  .is-global .mobile-tree-leaf:before {
    left: auto;
    right: -12px;
    width: 12px;
    top: 50%;
  }
  .is-global .mobile-tree-leaf:nth-child(even):before {
    left: -12px;
    right: auto;
  }
  .is-global .mobile-tree-node {
    padding: 8px;
    min-height: 62px;
  }
  .mobile-tree-tools {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
  }
  .mobile-tree-tools .btn,
  .mobile-tree-canvas > .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .mobile-tree-cross {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
  }
  .mobile-tree-legend {
    font-size: 11px;
    color: #53616b;
    margin: 10px 0;
  }
  .mobile-tree-overview {
    margin-top: 12px;
    padding: 16px;
  }
  .mobile-tree-overview h2 {
    font-size: 20px;
    margin: 6px 0;
  }
  .mobile-tree-overview small {
    display: block;
    margin-top: 10px;
    font-size: 11px;
  }
  .mobile-tree-children.is-list {
    display: block;
  }
  .mobile-tree-children.is-list .mobile-tree-leaf {
    margin-bottom: 10px;
  }
  .mobile-tree-children.is-list:before,
  .mobile-tree-children.is-list .mobile-tree-leaf:before {
    display: none;
  }
}
@media (max-width: 400px) {
  .knowledge-explorer[data-mobile-tree="true"] .explorer-toolbar .btn {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 44px;
  }
  .knowledge-explorer[data-mobile-tree="true"] #explorer-status {
    font-size: 11px;
  }
  .mobile-tree-children.is-global {
    row-gap: 8px;
    padding-top: 14px;
  }
  .is-global .mobile-tree-node {
    min-height: 56px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-tree-leaf {
    animation: mobile-tree-grow 0.18s ease-out;
  }
  @keyframes mobile-tree-grow {
    from {
      opacity: 0;
      translate: 0 -6px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}
@media (max-width: 1024px) {
  .mobile-tree-children:not(.is-global) {
    position: relative;
    margin-top: 18px;
  }
  .mobile-tree-children:not(.is-global):before {
    content: "";
    position: absolute;
    top: -18px;
    left: -2px;
    width: calc(50% - 7px);
    height: 18px;
    border-top: 2px solid #b7becb;
    border-left: 2px solid #b7becb;
    border-radius: 10px 0 0 0;
  }
  .mobile-tree-children.has-relations:before {
    border-style: dashed;
    border-right: 0;
    border-bottom: 0;
  }
  .mobile-tree-children.is-list:before {
    display: none;
  }
}
@media (max-width: 1024px) {
  .mobile-tree-children.is-empty {
    border: 0;
    margin: 12px 0 0;
    padding: 0;
  }
  .mobile-tree-children.is-empty:before {
    display: none;
  }
  .mobile-tree-children.is-empty .notice {
    margin: 0;
  }
}
@media (max-width: 1024px) {
  .knowledge-explorer[data-mobile-tree="true"]:not([data-mode="search"])
    #explorer-results {
    display: none;
  }
}
/* Compact global overview keeps all six domains above the mobile tab bar on short phones. */
@media (max-width: 1024px) and (max-height: 700px) {
  body:has(.knowledge-explorer[data-mobile-tree="true"][data-mode="global"])
    .explorer-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .knowledge-explorer[data-mobile-tree="true"][data-mode="global"]
    .explorer-tree
    form
    > label {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .knowledge-explorer[data-mobile-tree="true"][data-mode="global"]
    .explorer-tree
    .actions {
    display: none;
  }
  .knowledge-explorer[data-mobile-tree="true"][data-mode="global"]
    .explorer-tree {
    padding: 8px;
  }
}

/* 文章非会员预览锁定区 */
.paywall-guard {
  margin: 34px 0 10px;
  padding: 30px 24px;
  border: 1px solid #E9EAEF;
  border-radius: 18px;
  background: #FAFBF8;
  text-align: center;
}
.paywall-guard h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.paywall-guard p {
  margin: 0 0 18px;
  line-height: 1.9;
}
.paywall-guard .btn {
  display: inline-block;
}

/* 后台轮播管理 */
.banner-row{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #F0F1F4}
.banner-row:last-child{border-bottom:0}
.banner-row img{width:128px;height:84px;object-fit:cover;border-radius:10px;background:#F3F5F7;flex:0 0 auto}
.banner-info{flex:1;min-width:0}
.banner-info b{display:block;font-size:14px;margin-bottom:4px}
.banner-info small{color:#7A858F;font-size:12px;line-height:1.7}
.inline-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-size:13px;color:#5C6873}

/* 陪练沿用 content-section、field 和 btn，不占用页面导航。 */
.practice-entry { min-width: 0; }
.practice-entry [hidden] { display: none !important; }
.practice-entry textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.practice-entry [data-practice-panel] { padding-top: 16px; }
.practice-entry [data-practice-status] { min-height: 1.8em; color: var(--sub); }
.practice-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 0; border-bottom: 1px solid var(--border); }
.practice-entry button { min-height: 44px; }
.practice-entry button:disabled { cursor: wait; opacity: .55; }

/* 陪练入口视觉：做成一张「邀请卡」，不是一行普通文字。
   8 图阅读器是大卡片、文字介绍是独立区块，中间这一行裸字会被完全忽略。 */
.practice-entry{
  margin: 34px 0 10px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--border,#E5E9E1);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(36,48,58,.04);
}
.practice-entry h2{
  font-size: 21px;
  margin: 0 0 6px;
}
.practice-entry h2::before{
  content: "AI 陪练";
  display: inline-block;
  margin-right: 10px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #6254E8;
  background: rgba(98,84,232,.09);
  border-radius: 6px;
  vertical-align: 3px;
}
.practice-entry > p{
  margin: 0 0 20px;
  color: var(--sub,#839078);
  font-size: 14px;
}
.practice-entry [data-practice-open]{ padding: 10px 24px; }
.practice-entry [data-practice-panel]{
  margin-top: 22px;
  padding-top: 4px;
  border-top: 1px solid var(--border,#E5E9E1);
}
.practice-entry [data-practice-panel] > p:first-of-type{
  margin: 18px 0 4px;
  font-size: 15px;
  color: var(--sub,#839078);
}
.practice-messages:empty{ display: none; }
.practice-message{ font-size: 14.5px; line-height: 1.78; }
.practice-message strong{ color: #6254E8; font-weight: 600; }
.practice-entry [data-practice-result] h3{ margin: 20px 0 10px; font-size: 17px; }
@media (max-width: 640px){
  .practice-entry{ margin: 26px 0 8px; padding: 20px 18px; border-radius: 14px; }
  .practice-entry h2{ font-size: 19px; }
  .practice-entry h2::before{ margin-right: 8px; }
}
