:root {
  color-scheme: light;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --layout-max: 1360px;
  --page-gutter: 40px;
  --grid-gap: 24px;
  --paper: #f4f5f2;
  --surface: #ffffff;
  --ink: #18201e;
  --muted: #66706d;
  --line: #d9ddda;
  --line-soft: #eaedea;
  --accent: #1e716d;
  --accent-soft: #eaf3f0;
  --accent-on-dark: #73c9ca;
  --brand-canvas: #feeae3;
  --section-gray: #f4f5f2;
  --section-dark: #18201e;
  --radius-sm: 6px;
  --radius-md: 12px;
  --header-height: 56px;
}

/* Resource library v1: source-linked full article reader and PDF actions. */
.resource-article-layout {
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 48px;
}

.resource-article {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.88;
}

.resource-article-page .page-title {
  max-width: 940px;
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.22;
}

.article-loading {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.resource-article-summary {
  margin: 0 0 32px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #55514c;
  font-size: 16px;
  line-height: 1.75;
}

.resource-article-content h2,
.resource-article-content h3,
.resource-article-content h4 {
  margin: 42px 0 14px;
  font-family: var(--font-ui);
  line-height: 1.45;
}

.resource-article-content h2 { font-size: 26px; }
.resource-article-content h3 { font-size: 22px; }
.resource-article-content h4 { font-size: 19px; }

.resource-article-content p,
.resource-article-content ul,
.resource-article-content ol,
.resource-article-content blockquote,
.resource-article-content pre {
  margin: 0 0 22px;
}

.resource-article-content ul,
.resource-article-content ol {
  padding-left: 24px;
}

.resource-article-content li + li {
  margin-top: 8px;
}

.resource-article-content blockquote {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: #f6f4f1;
  color: #55514c;
}

.resource-article-content pre {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f5f4f1;
  font-size: 14px;
  line-height: 1.7;
}

.resource-article-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.resource-article-content p code {
  padding: 2px 5px;
  background: #f1efeb;
  font-size: 0.9em;
}

.resource-article-content a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.resource-article-content hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.resource-article-images {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.resource-article-images figure,
.resource-inline-image {
  margin: 0;
}

.resource-article-images img,
.resource-inline-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-soft);
}

.resource-article-images figcaption,
.resource-inline-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.resource-inline-image {
  margin: 28px 0;
}

.resource-article-actions {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.resource-content-id {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.resource-action {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  gap: 8px;
}

.resource-action .ui-icon {
  width: 18px;
  height: 18px;
}

.resource-action-primary {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 760px) {
  .resource-article-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .resource-article-actions {
    position: static;
    order: -1;
    width: 100%;
    margin: 0 0 28px;
    padding: 0 0 24px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .resource-article {
    max-width: none;
    font-size: 15px;
    line-height: 1.85;
  }

  .resource-article-page .page-title {
    font-size: 28px;
    line-height: 1.28;
  }

  .resource-article-content h2 { font-size: 22px; }
  .resource-article-content h3 { font-size: 19px; }
  .resource-article-content h4 { font-size: 17px; }

  .resource-action {
    min-height: 52px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.ui-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.arrow .ui-icon {
  width: 18px;
  height: 18px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.98);
}

.header-inner {
  width: min(var(--layout-max), calc(100% - 80px));
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.brand strong {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a,
.desktop-nav button,
.mobile-nav a,
.mobile-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  gap: 5px;
}

.nav-external-icon {
  width: 15px;
  height: 15px;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.desktop-nav a.is-current,
.mobile-nav a:hover,
.mobile-nav button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.app-shell {
  width: min(var(--layout-max), calc(100% - 80px));
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.app-shell:focus {
  outline: none;
}

.page-title,
.intro h1,
.content-title,
.detail-title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0;
}

.intro {
  min-height: 112px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.intro h1 {
  font-size: 40px;
  line-height: 1.2;
}

.intro p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #383633;
  font-size: 16px;
}

.intro .updated-at {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.home-columns {
  display: grid;
  grid-template-columns: 792px 384px;
  gap: 24px;
  padding-top: 32px;
}

.home-main,
.home-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-section {
  min-width: 0;
  border-top: 2px solid var(--ink);
}

.section-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 24px;
  line-height: 1.25;
}

.section-heading a,
.section-heading button,
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-link.is-current {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.editorial-list,
.update-list,
.community-links,
.plain-list,
.directory-list,
.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
}

.editorial-row:first-child,
.update-row:first-child,
.community-link:first-child,
.plain-row:first-child,
.directory-row:first-child,
.article-row:first-child {
  border-top-color: var(--line);
}

.editorial-row .kind,
.update-row time,
.meta,
.access-label {
  color: var(--muted);
  font-size: 12px;
}

.editorial-row strong,
.update-row strong,
.community-link strong,
.plain-row strong,
.directory-row strong,
.article-row strong {
  font-weight: 600;
}

.editorial-row:hover strong,
.update-row:hover strong,
.community-link:hover strong,
.plain-row:hover strong,
.directory-row:hover strong,
.article-row:hover strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.editorial-row .arrow,
.community-link .arrow,
.plain-row .arrow,
.directory-row .arrow {
  color: var(--accent);
}

.resource-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.resource-group {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 12px;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}

.resource-group:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid var(--line-soft);
}

.resource-group:nth-child(even) {
  padding-left: 24px;
}

.resource-group strong {
  font-family: var(--font-ui);
  font-size: 18px;
}

.resource-group p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.resource-group span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-size: 13px;
}

.resource-group:hover strong {
  color: var(--accent);
}

.update-tabs {
  display: flex;
  gap: 14px;
}

.update-tabs button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.update-tabs button.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.update-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-content: center;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
}

.update-row strong {
  display: block;
  line-height: 1.45;
}

.access-label {
  display: inline-block;
  margin-top: 2px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-link {
  min-height: 68px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
}

.community-link p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-title {
  font-size: 40px;
  line-height: 1.2;
}

.page-description {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.notice {
  margin: 24px 0;
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
}

.resource-workspace {
  height: calc(100vh - 310px);
  min-height: 560px;
  max-height: 820px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.resource-mobile-tabs {
  display: none;
}

.resource-tree-pane,
.resource-reader-pane {
  min-width: 0;
  min-height: 0;
}

.resource-tree-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--section-gray);
}

.resource-cloud-search {
  min-height: 64px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.resource-cloud-search .ui-icon {
  width: 18px;
  height: 18px;
}

.resource-cloud-search input {
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.resource-cloud-tree {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.resource-cloud-folder {
  border-bottom: 1px solid var(--line-soft);
}

.resource-cloud-folder summary {
  min-height: 52px;
  display: grid;
  grid-template-columns: 16px 20px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.resource-cloud-folder summary::-webkit-details-marker {
  display: none;
}

.resource-folder-chevron,
.resource-folder-icon {
  width: 17px;
  height: 17px;
}

.resource-folder-chevron {
  color: var(--muted);
  transition: transform 160ms ease;
}

.resource-cloud-folder[open] .resource-folder-chevron {
  transform: rotate(90deg);
}

.resource-folder-icon {
  color: var(--accent);
}

.resource-cloud-folder summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.resource-cloud-folder > div {
  padding: 2px 8px 10px;
}

.resource-cloud-document {
  min-height: 48px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px 12px;
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
}

.resource-cloud-document .ui-icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.resource-cloud-document > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-cloud-document:hover {
  color: var(--ink);
}

.resource-cloud-document.is-selected {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 650;
}

.resource-cloud-empty {
  margin: 0;
  padding: 8px 39px 14px;
  color: var(--muted);
  font-size: 12px;
}

.resource-reader-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.resource-reader-heading {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 16px 24px 16px 32px;
  border-bottom: 1px solid var(--line);
}

.resource-reader-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.4;
}

.resource-reader-actions {
  display: flex;
  gap: 8px;
}

.resource-reader-actions a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
}

.resource-reader-actions a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.resource-reader-actions .ui-icon {
  width: 19px;
  height: 19px;
}

.resource-reader-scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.resource-reader-scroll .resource-article {
  width: min(760px, calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
  padding: 36px 0 72px;
  font-size: 16px;
  line-height: 1.9;
}

.resource-reader-scroll .resource-article-content h2 {
  font-size: 24px;
}

.resource-reader-scroll .resource-article-content h3 {
  font-size: 20px;
}

.resource-reader-scroll .resource-article-content h4 {
  font-size: 18px;
}

.question-cloud-label {
  min-height: 56px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.question-workspace .resource-cloud-tree {
  padding-bottom: 8px;
}

.question-cloud-label .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.question-cloud-label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.question-cloud-list {
  padding: 8px;
}

.question-cloud-document {
  min-height: 64px;
}

.question-reader-heading > div:first-child {
  min-width: 0;
}

.question-content-block + .question-content-block {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.question-content-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.question-answer {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.question-thread-list {
  border-top: 1px solid var(--line);
}

.question-comment {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.question-comment .resource-article-content {
  font-size: 15px;
  line-height: 1.8;
}

.question-comment .resource-article-content > :last-child {
  margin-bottom: 0;
}

.question-replies {
  margin: 18px 0 0 20px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.question-comment.is-reply {
  padding: 16px 0;
}

.resource-table-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.resource-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

.resource-table-wrap th,
.resource-table-wrap td {
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.resource-table-wrap th {
  background: var(--section-gray);
  font-weight: 650;
}

.resource-table-image {
  width: auto;
  max-width: 240px;
  max-height: 320px;
  display: block;
  margin: 8px 0;
  object-fit: contain;
}

.resource-table-wrap tr:last-child td {
  border-bottom: 0;
}

.resource-table-wrap th:last-child,
.resource-table-wrap td:last-child {
  border-right: 0;
}

.resource-reader-back {
  display: none;
}

.resource-reader-empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
}

.resource-reader-empty p {
  margin: 6px 0 0;
  font-size: 14px;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .resource-workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .resource-reader-heading {
    padding-right: 20px;
    padding-left: 24px;
  }

  .resource-reader-scroll .resource-article {
    width: calc(100% - 48px);
  }
}

@media (max-width: 760px) {
  .resource-workspace {
    height: calc(100dvh - 270px);
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px minmax(0, 1fr);
    border-radius: 10px;
  }

  .question-workspace {
    height: calc(100dvh - 300px);
    min-height: 520px;
  }

  .resource-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .resource-mobile-tabs button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
  }

  .resource-mobile-tabs button.is-active {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .resource-tree-pane,
  .resource-reader-pane {
    grid-column: 1;
    grid-row: 2;
  }

  .resource-tree-pane {
    border-right: 0;
  }

  .resource-reader-pane {
    display: none;
  }

  .resource-workspace.is-mobile-reader .resource-tree-pane {
    display: none;
  }

  .resource-workspace.is-mobile-reader .resource-reader-pane {
    display: flex;
  }

  .resource-reader-back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-left: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 14px;
  }

  .resource-reader-back .ui-icon {
    width: 17px;
    height: 17px;
  }

  .resource-reader-heading {
    min-height: 76px;
    gap: 12px;
    padding: 12px 14px 12px 16px;
  }

  .resource-reader-heading h2 {
    font-size: 20px;
    line-height: 1.45;
  }

  .resource-reader-actions {
    gap: 6px;
  }

  .resource-reader-actions a {
    width: 40px;
    height: 40px;
  }

  .resource-reader-scroll .resource-article {
    width: calc(100% - 40px);
    padding: 24px 0 48px;
    font-size: 15px;
    line-height: 1.85;
  }

  .resource-reader-scroll .resource-article-content h2 {
    font-size: 21px;
  }

  .resource-reader-scroll .resource-article-content h3 {
    font-size: 18px;
  }

  .resource-cloud-document {
    min-height: 52px;
  }

  .question-cloud-document {
    min-height: 60px;
  }

  .question-content-block + .question-content-block {
    margin-top: 28px;
    padding-top: 24px;
  }

  .question-answer {
    padding-left: 14px;
  }

  .question-replies {
    margin-left: 8px;
    padding-left: 12px;
  }
}

.plain-row,
.directory-row,
.article-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
}

.plain-row p,
.directory-row p,
.article-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plain-row .row-main,
.directory-row .row-main,
.article-row .row-main {
  min-width: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 792px 384px;
  gap: 24px;
  padding-top: 28px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.single-column-detail {
  max-width: 792px;
  padding-top: 28px;
}

.guest-meta {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.detail-side {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.detail-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.detail-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-section h2 {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #383633;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.paid-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.paid-offer-card {
  min-width: 0;
  min-height: 320px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas:
    "visual header"
    "visual meta"
    "visual actions";
  grid-template-rows: auto 1fr auto;
  gap: 0 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.paid-offer-header {
  grid-area: header;
  min-height: 0;
}

.paid-offer-header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.paid-offer-header > div > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.paid-catalog-open {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.paid-catalog-open:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.paid-catalog-open .ui-icon {
  width: 17px;
  height: 17px;
}

.paid-offer-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
}

.paid-offer-visual,
.paid-offer-coming-visual {
  width: 220px;
  height: 270px;
  grid-area: visual;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--paper);
}

.paid-offer-visual {
  display: grid;
  place-items: center;
  padding: 8px;
}

.paid-offer-visual img {
  width: 100%;
  height: 100%;
  display: block;
  background: #fff;
  object-fit: contain;
}

.paid-offer-fallback {
  display: none;
  max-width: 180px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.paid-offer-visual.is-error img {
  display: none;
}

.paid-offer-visual.is-error .paid-offer-fallback {
  display: block;
}

.paid-offer-meta {
  min-height: 0;
  grid-area: meta;
  padding-top: 18px;
}

.paid-offer-meta > strong,
.paid-offer-meta > time,
.paid-offer-meta > p {
  display: block;
}

.paid-offer-meta > strong {
  color: var(--accent);
  font-size: 24px;
  line-height: 1.3;
}

.paid-offer-meta > time,
.paid-offer-meta > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.paid-student-offer {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

.paid-student-offer strong,
.paid-student-offer span {
  display: inline;
}

.paid-student-offer strong {
  font-size: 13px;
}

.paid-student-offer span {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.paid-student-offer .ui-icon {
  width: 16px;
  height: 16px;
}

.paid-offer-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  padding-top: 20px;
}

.paid-offer-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.paid-offer-actions .paid-offer-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.paid-offer-actions .ui-icon {
  width: 18px;
  height: 18px;
}

.paid-offer-coming .paid-offer-header > div > span,
.paid-offer-coming .paid-offer-meta > strong {
  color: var(--muted);
}

.paid-offer-coming-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}

.paid-offer-coming-visual .ui-icon {
  width: 36px;
  height: 36px;
}

.paid-offer-coming-visual span {
  max-width: 150px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.paid-purchase-flow {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.paid-purchase-flow h2,
.paid-benefit-grid h3 {
  margin: 0;
}

.paid-purchase-flow h2 {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 650;
}

.paid-purchase-flow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.paid-purchase-flow li {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-left: 1px solid var(--line);
}

.paid-purchase-flow li > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.paid-purchase-flow li > p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.paid-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.paid-benefit-grid > a {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.paid-benefit-grid > a:first-child {
  border-left: 0;
}

.paid-benefit-grid > a > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}

.paid-benefit-grid > a > span .ui-icon {
  width: 20px;
  height: 20px;
}

.paid-benefit-grid h3 {
  font-size: 16px;
  font-weight: 650;
}

.paid-benefit-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.paid-benefit-grid > a > .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.paid-source-note {
  color: var(--muted);
  font-size: 12px;
}

.paid-source-note {
  margin: 22px 0 0;
  line-height: 1.7;
}

.paid-source-note a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 4px;
  color: var(--accent);
}

.paid-source-note .ui-icon {
  width: 14px;
  height: 14px;
}

body.dialog-open {
  overflow: hidden;
}

.paid-catalog-dialog {
  width: min(1160px, calc(100vw - 64px));
  height: min(760px, calc(100vh - 64px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.paid-catalog-dialog::backdrop {
  background: rgba(29, 29, 31, 0.48);
}

.paid-catalog-dialog-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.paid-catalog-dialog-shell > header {
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 20px;
}

.paid-catalog-dialog-shell > header > div p,
.paid-catalog-dialog-shell > header > div h2,
.paid-catalog-dialog-shell > header > div span {
  margin: 0;
}

.paid-catalog-dialog-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}

.paid-catalog-dialog-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.paid-catalog-dialog-shell > header > div p {
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

.paid-catalog-dialog-shell > header > div h2 {
  margin-top: 1px;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
}

.paid-catalog-dialog-shell > header > div span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.paid-catalog-dialog-shell > header button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.paid-catalog-dialog-shell > header button .ui-icon {
  width: 20px;
  height: 20px;
}

.paid-cloud-mobile-tabs {
  display: none;
}

.paid-cloud-shell {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.paid-cloud-sidebar {
  min-width: 0;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--section-gray);
}

.paid-cloud-folder {
  border-bottom: 1px solid var(--line-soft);
}

.paid-cloud-folder summary {
  min-height: 52px;
  display: grid;
  grid-template-columns: 16px 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.paid-cloud-folder summary::-webkit-details-marker {
  display: none;
}

.paid-folder-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.paid-cloud-folder[open] .paid-folder-chevron {
  transform: rotate(90deg);
}

.paid-folder-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.paid-cloud-folder summary > span {
  min-width: 0;
  grid-column: 3;
  padding-left: 0;
}

.paid-cloud-folder summary > small {
  grid-column: 4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.paid-cloud-folder > div {
  padding: 2px 8px 10px;
}

.paid-cloud-folder button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
}

.paid-cloud-folder button .ui-icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.paid-cloud-folder button > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.paid-cloud-folder button:hover {
  color: var(--ink);
}

.paid-cloud-folder button.is-selected {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 650;
}

.paid-cloud-empty-folder {
  margin: 0;
  padding: 8px 38px 14px;
  color: var(--muted);
  font-size: 12px;
}

.paid-cloud-preview {
  min-width: 0;
  overflow: auto;
  padding: 48px 56px;
}

.paid-cloud-preview-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.paid-cloud-preview h3 {
  max-width: 680px;
  margin: 14px 0 18px;
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.4;
}

.paid-cloud-preview-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.paid-cloud-preview-state.is-ready {
  color: var(--accent);
}

.paid-cloud-preview-state.is-missing,
.paid-cloud-preview-state.is-error {
  color: #a5445a;
}

.paid-cloud-preview-excerpt {
  max-width: 680px;
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
}

.paid-cloud-preview-state .ui-icon {
  width: 17px;
  height: 17px;
}

.paid-cloud-preview-note {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.paid-cloud-back {
  display: none;
}

.guest-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 28px;
}

.guest-card {
  min-width: 0;
  height: 286px;
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.guest-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.guest-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.guest-monogram {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-canvas);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.guest-status {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.guest-status.is-paused,
.guest-availability.is-paused strong {
  color: #a5445a;
}

.guest-card-name {
  font-size: 17px;
  line-height: 1.25;
}

.guest-card-role {
  min-height: 34px;
  margin-top: 4px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.4;
}

.guest-card > p {
  display: -webkit-box;
  min-height: 56px;
  margin: 12px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guest-card > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guest-card > ul li {
  max-width: 100%;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-size: 12px;
}

.guest-card-cta .ui-icon {
  width: 16px;
  height: 16px;
}

.guest-back-link {
  display: inline-flex;
  margin-bottom: 22px;
}

.guest-profile-layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.guest-profile-side {
  min-width: 0;
}

.guest-portrait-placeholder {
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--brand-canvas);
}

.guest-portrait-placeholder strong {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 58px;
  line-height: 1;
}

.guest-portrait-placeholder span,
.guest-availability span,
.guest-qr-reserve > p {
  color: var(--muted);
  font-size: 12px;
}

.guest-availability {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guest-availability strong {
  font-size: 14px;
}

.guest-qr-reserve {
  margin-top: 18px;
  text-align: center;
}

.guest-qr-reserve > img,
.guest-qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #ffffff;
}

.guest-qr-reserve > img {
  display: block;
  object-fit: contain;
}

.guest-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.guest-qr-placeholder > span {
  width: 76px;
  height: 76px;
  border: 1px dashed #a7a7ad;
  background:
    linear-gradient(90deg, transparent 47%, #d2d2d7 47% 53%, transparent 53%),
    linear-gradient(transparent 47%, #d2d2d7 47% 53%, transparent 53%);
}

.guest-qr-placeholder strong {
  font-size: 13px;
  font-weight: 500;
}

.guest-qr-reserve > p {
  margin: 8px 0 0;
}

.guest-profile-main {
  min-width: 0;
}

.guest-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.guest-profile-tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.guest-profile-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.guest-profile-heading p,
.guest-profile-heading h1,
.guest-profile-heading strong {
  margin: 0;
}

.guest-profile-heading p {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.guest-profile-heading h1 {
  margin-top: 5px;
  font-family: var(--font-ui);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.12;
}

.guest-profile-heading strong {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
}

.guest-profile-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.guest-profile-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 22px;
}

.guest-profile-section p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.85;
}

.guest-profile-section p:last-child {
  margin-bottom: 0;
}

.guest-profile-section > ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.guest-profile-section li {
  line-height: 1.7;
}

.guest-service-scope > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-service-scope > div span {
  padding: 8px 11px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: var(--accent);
  font-size: 13px;
}

.guest-link {
  min-height: 88px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}

.guest-link:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.guest-link:nth-child(even) {
  padding-left: 18px;
}

.avatar-placeholder {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #efede7;
}

.avatar-placeholder::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b8b4ac;
  transform: translateX(-50%);
}

.avatar-placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 32px;
  height: 28px;
  border-radius: 50% 50% 0 0;
  background: #b8b4ac;
  transform: translateX(-50%);
}

.empty-state {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  :root {
    --header-height: 56px;
  }

  .header-inner,
  .app-shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    gap: 16px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .brand strong {
    font-size: 16px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
  }

  .mobile-nav:not([hidden]) {
    display: block;
    padding: 0 16px 8px;
    border-top: 1px solid var(--line-soft);
  }

  .mobile-nav a,
  .mobile-nav button {
    width: 100%;
    min-height: 44px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    text-decoration: none;
  }

  .app-shell {
    padding: 24px 0 48px;
  }

  .intro {
    min-height: 0;
    padding-bottom: 24px;
  }

  .intro h1,
  .page-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .intro p,
  .page-description {
    font-size: 16px;
  }

  .home-columns {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 24px;
  }

  .home-main,
  .home-aside {
    display: contents;
  }

  .recommended-section { order: 1; }
  .resources-section { order: 2; }
  .updates-section { order: 3; }
  .community-section { order: 4; }

  .section-heading {
    min-height: 52px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .editorial-row {
    min-height: 64px;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .editorial-row .date {
    display: none;
  }

  .resource-groups {
    grid-template-columns: 1fr;
  }

  .resource-group,
  .resource-group:nth-child(odd),
  .resource-group:nth-child(even) {
    min-height: 68px;
    padding: 12px 0;
    border-right: 0;
  }

  .update-row {
    min-height: 72px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .community-link {
    min-height: 68px;
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .detail-layout {
    display: block;
    padding-top: 20px;
  }

  .plain-row,
  .directory-row,
  .article-row {
    min-height: 68px;
  }

  .detail-side {
    margin-top: 24px;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .guest-directory {
    grid-template-columns: 1fr;
  }

  .guest-link,
  .guest-link:nth-child(odd),
  .guest-link:nth-child(even) {
    min-height: 82px;
    padding: 10px 0;
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Brand exhibition layer: image first, chrome recedes. */
.site-header {
  min-height: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  transition: background-color 140ms ease;
}

body.home-page:not(.is-scrolled) .site-header {
  border-bottom-color: transparent;
  background: var(--brand-canvas);
}

body.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  backdrop-filter: saturate(120%) blur(12px);
}

.header-inner {
  height: 56px;
}

.brand img {
  border: 0;
  border-radius: 6px;
}

.brand strong,
.page-title,
.content-title,
.detail-title,
.detail-section h2,
.resource-group strong,
.section-heading h2 {
  font-family: var(--font-ui);
}

.brand strong {
  font-size: 17px;
  font-weight: 600;
}

.desktop-nav a,
.desktop-nav button {
  font-size: 13px;
}

.app-shell.is-home {
  width: 100%;
  max-width: none;
  padding: 0;
}

.brand-hero {
  position: relative;
  height: 704px;
  overflow: hidden;
  background: var(--brand-canvas);
}

.brand-hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--layout-max), calc(100% - 80px));
  margin: 0 auto;
  padding-top: 136px;
}

.brand-hero h1 {
  max-width: 440px;
  margin: 0;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-hero p {
  max-width: 440px;
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.brand-hero-image {
  position: absolute;
  top: -72px;
  right: max(-40px, calc((100vw - 1440px) / 2 - 40px));
  z-index: 1;
  width: 880px;
  height: 880px;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 1;
  animation: brand-image-enter 240ms ease-out both;
}

@keyframes brand-image-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.showcase-section {
  width: 100%;
  padding: 96px 24px;
}

.showcase-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.showcase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.showcase-heading h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.showcase-heading a,
.showcase-more {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 17px;
  text-decoration: none;
}

.showcase-heading a:hover,
.showcase-more:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.showcase-featured,
.showcase-community {
  background: var(--section-dark);
  color: #ffffff;
}

.showcase-featured .showcase-heading h2,
.showcase-community .showcase-heading h2 {
  color: #ffffff;
}

.featured-reading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 72px;
  align-items: stretch;
}

.featured-lead {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
}

.featured-lead > span {
  color: #a1a1a6;
  font-size: 14px;
}

.featured-lead h3 {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.featured-lead p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #d2d2d7;
  font-size: 20px;
  line-height: 1.6;
}

.featured-lead em {
  margin-top: 30px;
  color: var(--accent-on-dark);
  font-size: 17px;
  font-style: normal;
}

.featured-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-index a {
  min-height: 94px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #424245;
  color: #ffffff;
  text-decoration: none;
}

.featured-index a:last-child {
  border-bottom: 1px solid #424245;
}

.featured-index span {
  color: #a1a1a6;
  font-size: 14px;
}

.featured-index strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.featured-index em {
  color: var(--accent-on-dark);
  font-style: normal;
}

.showcase-resources {
  background: var(--section-gray);
}

.showcase-resources .resource-groups {
  border-top-color: #d2d2d7;
}

.showcase-resources .resource-group {
  min-height: 124px;
  border-bottom-color: #d2d2d7;
}

.showcase-resources .resource-group:nth-child(odd) {
  border-right-color: #d2d2d7;
}

.showcase-resources .resource-group strong {
  font-size: 24px;
  font-weight: 600;
}

.showcase-resources .resource-group p,
.showcase-resources .resource-group span {
  font-size: 14px;
}

.showcase-updates {
  background: #ffffff;
}

.updates-inner {
  max-width: 980px;
}

.showcase-updates .update-row {
  min-height: 84px;
  border-top-color: #d2d2d7;
}

.showcase-updates .update-row strong {
  font-size: 18px;
}

.showcase-updates .update-tabs button {
  font-size: 17px;
}

.showcase-more {
  margin-top: 24px;
}

.showcase-community .community-link {
  min-height: 112px;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  border-top-color: #424245;
  color: #ffffff;
}

.showcase-community .community-link:last-child {
  border-bottom: 1px solid #424245;
}

.showcase-community .community-link strong {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
}

.showcase-community .community-link p {
  color: #a1a1a6;
  font-size: 17px;
}

.showcase-community .community-link .arrow {
  color: var(--accent-on-dark);
}

.app-shell:not(.is-home) {
  padding-top: 48px;
}

.page-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-description,
.detail-section p,
.notice {
  font-size: 17px;
}

.detail-section h2 {
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-header,
  body.home-page:not(.is-scrolled) .site-header,
  body.is-scrolled .site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .mobile-menu-button {
    position: relative;
    border: 0;
    background: transparent;
  }

  .menu-lines,
  .menu-lines::before {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transform: translateX(-50%);
    transition: transform 140ms ease, top 140ms ease;
  }

  .menu-lines {
    top: 18px;
  }

  .menu-lines::before {
    content: "";
    top: 7px;
  }

  .mobile-menu-button.is-open .menu-lines {
    top: 22px;
    transform: translateX(-50%) rotate(45deg);
  }

  .mobile-menu-button.is-open .menu-lines::before {
    top: 0;
    transform: translateX(-50%) rotate(-90deg);
  }

  .mobile-nav:not([hidden]) {
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 19;
    display: block;
    overflow-y: auto;
    padding: 24px;
    border-top: 0;
    background: var(--section-gray);
  }

  .mobile-nav a,
  .mobile-nav button {
    min-height: 64px;
    border-bottom: 1px solid #d2d2d7;
    font-size: 28px;
    font-weight: 600;
  }

  .brand-hero {
    height: 680px;
  }

  .brand-hero-copy {
    width: 100%;
    padding: 56px 24px 0;
  }

  .brand-hero h1 {
    max-width: 342px;
    font-size: 40px;
    line-height: 1.12;
  }

  .brand-hero p {
    max-width: 342px;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.65;
  }

  .brand-hero-image {
    top: auto;
    right: auto;
    bottom: -84px;
    left: -32px;
    width: 520px;
    height: 520px;
    object-position: 54% 48%;
  }

  .showcase-section {
    padding: 64px 24px;
  }

  .showcase-heading {
    margin-bottom: 32px;
  }

  .showcase-heading h2 {
    font-size: 32px;
  }

  .featured-reading {
    display: block;
  }

  .featured-lead {
    min-height: 360px;
    justify-content: flex-start;
  }

  .featured-lead h3 {
    margin-top: 18px;
    font-size: 36px;
  }

  .featured-lead p {
    margin-top: 18px;
    font-size: 17px;
  }

  .featured-index {
    margin-top: 24px;
  }

  .featured-index a {
    min-height: 82px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .showcase-resources .resource-group {
    min-height: 92px;
  }

  .showcase-resources .resource-group strong {
    font-size: 22px;
  }

  .showcase-updates .showcase-heading {
    align-items: flex-start;
  }

  .showcase-updates .update-row {
    min-height: 84px;
  }

  .showcase-community .community-link {
    min-height: 112px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
  }

  .showcase-community .community-link strong {
    font-size: 24px;
  }

  .showcase-community .community-link p {
    grid-column: 1;
    margin-top: 6px;
    font-size: 15px;
  }

  .showcase-community .community-link .arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .app-shell:not(.is-home) {
    padding-top: 32px;
  }

  .page-title {
    font-size: 36px;
  }
}

/* Approved homepage sections: Apple brand hero + original content workbench. */
.brand-hero {
  height: 440px;
}

.brand-hero-copy {
  padding-top: 36px;
}

.brand-hero h1 {
  max-width: none;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-hero-image {
  top: -34px;
  right: max(40px, calc((100vw - 1360px) / 2));
  width: 640px;
  height: 640px;
}

.personal-profile {
  width: 720px;
}

.profile-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
}

.profile-lines {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.profile-lines li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.6;
}

.profile-lines .ui-icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--accent);
}

.career-roadmap {
  margin-top: 18px;
}

.career-roadmap h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.career-roadmap-track {
  width: 720px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(29, 29, 31, 0.22);
  list-style: none;
}

.career-roadmap-track li {
  position: relative;
  min-width: 0;
  padding-right: 12px;
}

.career-roadmap-track li::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.career-roadmap-track time {
  display: block;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.career-roadmap-track span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.home-workbench {
  width: 100%;
  padding: 32px 40px 88px;
  background: var(--section-gray);
}

.home-content-grid,
.home-ecosystem,
.social-platforms {
  width: min(var(--layout-max), 100%);
  margin: 0 auto;
}

.social-platforms {
  display: block;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.social-platforms-heading {
  min-height: 72px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.social-platforms-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.3;
}

.social-platforms-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.social-platform-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.social-platform-item {
  min-width: 0;
  min-height: 84px;
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--line-soft);
}

.social-platform-item:first-child {
  border-left: 0;
}

.social-platform-primary {
  min-width: 0;
  flex: 1;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.social-platform-primary:hover {
  background: var(--section-gray);
}

.social-platform-primary > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.social-platform-item strong {
  font-size: 16px;
  font-weight: 600;
}

.social-platform-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.social-platform-item > a,
.social-platform-detail {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 0 18px 0 8px;
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
  text-underline-offset: 4px;
  text-decoration: none;
  gap: 5px;
}

.social-platform-detail {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.platform-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.platform-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.platform-icon-xiaohongshu {
  background: #ff2442;
}

.platform-icon-bilibili {
  background: #fb7299;
}

.platform-icon-zhihu {
  background: #056de8;
}

.platform-icon-wechat {
  background: #07c160;
}

.platform-icon-github {
  background: #24292f;
}

.platform-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid #d2d2d7;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
  overflow: auto;
}

.platform-dialog::backdrop {
  background: rgba(29, 29, 31, 0.62);
}

.platform-dialog header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid #e8e8ed;
}

.platform-dialog > header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
}

.platform-dialog-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-dialog-title-wrap p,
.platform-dialog-title-wrap h2 {
  margin: 0;
}

.platform-dialog-title-wrap p {
  color: var(--muted);
  font-size: 12px;
}

.platform-dialog-title-wrap h2 {
  margin-top: 2px;
  font-size: 20px;
}

.platform-dialog-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f3;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.platform-dialog-close .ui-icon {
  width: 20px;
  height: 20px;
}

.platform-dialog-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--section-gray);
}

.platform-dialog-image-wrap img {
  max-width: 100%;
  max-height: min(66vh, 680px);
  display: block;
  object-fit: contain;
}

.platform-dialog footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 20px;
  border-top: 1px solid #e8e8ed;
}

.platform-dialog footer span {
  color: var(--muted);
  font-size: 13px;
}

.platform-dialog footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 4px;
  gap: 6px;
}

.platform-dialog footer a .ui-icon {
  width: 17px;
  height: 17px;
}

.wechat-community-dialog {
  width: min(980px, calc(100% - 32px));
  overflow: hidden;
}

.github-projects-dialog {
  width: min(760px, calc(100% - 32px));
}

.github-projects-body {
  padding: 18px 24px 24px;
}

.github-projects-body > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.github-repository-list {
  border-top: 1px solid var(--line-soft);
}

.github-repository-list a {
  min-height: 72px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
}

.github-repository-list a:hover {
  color: var(--accent);
}

.github-repository-list a > span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.github-repository-list a > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.github-repository-list strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.github-repository-list small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.github-repository-list .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.wechat-community-dialog > header {
  position: relative;
  top: auto;
}

.wechat-community-body {
  max-height: calc(100vh - 104px);
  background: #ffffff;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wechat-qr-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #d2d2d7;
}

.wechat-qr-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 280px auto;
  justify-items: center;
  gap: 14px;
  padding: 24px 32px 20px;
  text-align: center;
}

.wechat-qr-card + .wechat-qr-card {
  border-left: 1px solid #d2d2d7;
}

.wechat-qr-card > div:first-child {
  display: grid;
  gap: 4px;
}

.wechat-qr-card strong {
  font-size: 18px;
}

.wechat-qr-card span {
  color: var(--muted);
  font-size: 13px;
}

.wechat-qr-image {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wechat-qr-image img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.wechat-qr-image .wechat-personal-image {
  width: min(280px, 100%);
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}

.wechat-qr-card > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.wechat-groups {
  padding: 24px 28px 28px;
}

.platform-dialog .wechat-groups > header {
  min-height: 0;
  align-items: flex-end;
  padding: 0 0 16px;
  border-bottom: 0;
}

.wechat-groups h3,
.wechat-groups p {
  margin: 0;
}

.wechat-groups h3 {
  font-size: 22px;
}

.wechat-groups p,
.wechat-groups > header > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.wechat-group-table {
  border-top: 1px solid #d2d2d7;
  border-bottom: 1px solid #d2d2d7;
}

.wechat-group-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 130px 130px;
  align-items: center;
  border-top: 1px solid #e8e8ed;
}

.wechat-group-row:first-child {
  border-top: 0;
}

.wechat-group-row > span {
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.wechat-group-head {
  min-height: 42px;
  background: #f7f7f8;
}

.wechat-group-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.wechat-group-head > span:first-child {
  text-align: left;
}

.wechat-group-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.wechat-group-name em {
  min-width: 34px;
  padding: 3px 6px;
  border: 1px solid #c7c7cc;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.wechat-group-name strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.home-library,
.home-updates {
  min-width: 0;
  padding: 30px 32px 32px;
}

.home-library {
  border-right: 1px solid var(--line);
}

.home-module-heading {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
}

.home-module-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.home-module-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 36em;
  font-size: 13px;
  line-height: 1.6;
}

.home-module-heading a,
.home-all-updates {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  gap: 6px;
}

.home-module-heading a:hover,
.home-all-updates:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.home-library-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.home-folder-list {
  padding: 0 16px 0 0;
  border-right: 1px solid var(--line-soft);
}

.home-folder-list button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.home-folder-list button.is-active {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 650;
}

.home-folder-list button.is-active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.home-folder-list em {
  font-size: 13px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.home-resource-pane {
  padding-left: 24px;
}

.home-resource-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
}

.home-resource-row strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.home-resource-row:hover strong {
  color: var(--accent);
}

.home-folder-select {
  display: none;
}

.home-updates .update-row {
  min-height: 58px;
  border-top-color: var(--line-soft);
}

.home-updates .update-row strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.home-updates .update-row time,
.home-updates .access-label {
  font-size: 12px;
}

.home-all-updates {
  margin-top: 14px;
}

.home-ecosystem {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.home-ecosystem a {
  min-height: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 5px 16px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.home-ecosystem a:last-child {
  border-right: 0;
}

.home-ecosystem strong {
  font-size: 22px;
  font-weight: 650;
}

.home-ecosystem p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.home-ecosystem span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent);
}

.home-ecosystem .ui-icon,
.home-module-heading .ui-icon,
.home-all-updates .ui-icon,
.social-platform-item > a .ui-icon,
.social-platform-detail .ui-icon,
.back-link .ui-icon {
  width: 18px;
  height: 18px;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .header-inner,
  .app-shell,
  .brand-hero-copy {
    width: calc(100% - 48px);
  }

  .home-workbench {
    padding-right: 24px;
    padding-left: 24px;
  }

  .brand-hero-image {
    right: -80px;
    width: 620px;
    height: 620px;
    opacity: 0.14;
    animation: none;
  }

  .home-content-grid {
    display: block;
  }

  .social-platforms {
    display: block;
  }

  .social-platforms-heading {
    min-height: 72px;
  }

  .social-platform-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-platform-item {
    border-top: 1px solid #e8e8ed;
  }

  .social-platform-item:nth-child(odd) {
    border-left: 0;
  }

  .social-platform-item.is-github {
    grid-column: 1 / -1;
  }

  .home-library {
    border-right: 0;
  }

  .home-updates {
    border-top: 1px solid #d2d2d7;
  }
}

@media (max-width: 760px) {
  .brand-hero {
    height: 700px;
  }

  .brand-hero-copy {
    width: 100%;
    height: 520px;
    padding: 24px 16px 16px;
    background: var(--brand-canvas);
  }

  .brand-hero h1 {
    font-size: 36px;
    line-height: 1.25;
  }

  .personal-profile {
    width: 100%;
  }

.profile-label {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .profile-lines {
    gap: 5px;
    margin-top: 8px;
  }

  .profile-lines li {
    font-size: 14px;
    line-height: 1.55;
  }

  .career-roadmap {
    margin-top: 15px;
  }

  .career-roadmap h2 {
    margin-bottom: 9px;
    font-size: 15px;
  }

  .career-roadmap-track {
    width: auto;
    display: block;
    margin-left: 4px;
    padding: 0 0 0 16px;
    border-top: 0;
    border-left: 1px solid rgba(29, 29, 31, 0.22);
  }

  .career-roadmap-track li {
    min-height: 34px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: start;
    padding: 0 0 4px;
  }

  .career-roadmap-track li::before {
    top: 5px;
    left: -20px;
  }

  .career-roadmap-track time {
    font-size: 12px;
  }

  .career-roadmap-track span {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .career-roadmap-track br {
    display: block;
  }

.brand-hero-image {
    top: 520px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: 54% 48%;
  }

.home-workbench {
    padding: 24px 16px 64px;
  }

  .social-platforms {
    display: block;
    margin-bottom: 28px;
  }

.social-platforms-heading {
    min-height: 72px;
    display: block;
    padding: 16px;
  }

  .social-platforms-heading p {
    margin-top: 5px;
  }

  .social-platform-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.social-platform-item {
    min-height: 112px;
    display: block;
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
  }

  .social-platform-item:nth-child(odd) {
    border-left: 0;
  }

  .social-platform-item.is-github {
    grid-column: 1 / -1;
  }

  .social-platform-primary {
    min-height: 72px;
    padding: 10px 12px 4px;
  }

  .social-platform-item > a,
  .social-platform-detail {
    min-height: 36px;
    padding: 0 12px 8px 58px;
  }

  .platform-dialog {
    border-radius: 14px;
  }

  .platform-dialog-image-wrap {
    padding: 10px;
  }

  .platform-dialog footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .github-projects-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .github-projects-body {
    padding: 12px 16px 18px;
  }

  .github-repository-list a {
    min-height: 76px;
    padding: 10px 0;
  }

  .wechat-community-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .wechat-community-body {
    max-height: calc(100dvh - 86px);
  }

  .wechat-qr-card {
    grid-template-rows: auto 190px auto;
    gap: 10px;
    padding: 16px 8px 12px;
  }

  .wechat-qr-card strong {
    font-size: 15px;
  }

  .wechat-qr-card span {
    font-size: 11px;
  }

  .wechat-qr-image {
    height: 190px;
  }

  .wechat-groups {
    padding: 20px 12px 24px;
  }

  .platform-dialog .wechat-groups > header {
    display: block;
    padding-bottom: 12px;
  }

  .wechat-groups > header > span {
    display: block;
  }

  .wechat-group-head {
    display: none;
  }

  .wechat-group-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 4px;
    padding: 14px 0;
  }

  .wechat-group-name {
    grid-column: 1 / -1;
    padding: 0;
  }

  .wechat-group-name strong {
    white-space: normal;
  }

  .wechat-group-row > span {
    display: grid;
    gap: 4px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
  }

  .wechat-group-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
  }

  .home-content-grid {
    display: block;
  }

.home-library,
  .home-updates {
    padding: 24px 20px 28px;
  }

  .home-library {
    border-right: 0;
  }

.home-updates {
    border-top: 1px solid var(--line);
  }

.home-module-heading h2 {
    font-size: 26px;
  }

  .home-library-body {
    display: block;
  }

  .home-folder-list {
    display: none;
  }

  .home-folder-select {
    width: 100%;
    height: 44px;
    display: block;
    margin-bottom: 10px;
    padding: 0 10px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
  }

  .home-resource-pane {
    padding-left: 0;
  }

  .home-resource-row {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .home-resource-row strong {
    font-size: 16px;
  }

  .home-updates .update-row {
    min-height: 64px;
  }

  .home-ecosystem {
    display: block;
    margin-top: 32px;
  }

.home-ecosystem a {
    min-height: 92px;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-ecosystem a:last-child {
    border-bottom: 0;
  }
}

/* Keep article reader overrides after the approved homepage layers. */
.detail-layout.resource-article-layout {
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 48px;
}

@media (max-width: 760px) {
  .detail-layout.resource-article-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .detail-layout .resource-article-actions {
    position: static;
    order: -1;
    margin: 0 0 28px;
    padding: 0 0 24px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }
}

/* Consultation guest directory and profile responsiveness. */
@media (min-width: 761px) and (max-width: 1050px) {
  .guest-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-profile-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
  }

  .guest-qr-reserve > img,
  .guest-qr-placeholder {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 760px) {
  .guest-card {
    height: auto;
    min-height: 272px;
  }

  .guest-back-link {
    margin-bottom: 18px;
  }

  .guest-profile-layout {
    display: block;
    padding-bottom: 28px;
  }

  .guest-profile-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .guest-portrait-placeholder {
    height: 180px;
    border-radius: 14px;
  }

  .guest-portrait-placeholder strong {
    font-size: 42px;
  }

  .guest-availability {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  .guest-qr-reserve {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .guest-qr-reserve > img,
  .guest-qr-placeholder {
    width: 100%;
    height: 180px;
  }

  .guest-qr-placeholder > span {
    width: 54px;
    height: 54px;
  }

  .guest-profile-main {
    margin-top: 30px;
  }

  .guest-profile-tags {
    gap: 6px;
    margin-bottom: 20px;
  }

  .guest-profile-tags span {
    padding: 6px 9px;
    font-size: 11px;
  }

  .guest-profile-heading h1 {
    font-size: 34px;
  }

  .guest-profile-heading strong {
    font-size: 15px;
  }

  .guest-profile-section {
    padding: 21px 0;
  }

  .guest-profile-section p {
    font-size: 15px;
    line-height: 1.8;
  }
}

/* Paid columns reuse the verified offer structure from woshida.cn/pricing. */
@media (min-width: 761px) and (max-width: 1050px) {
  .paid-offer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .paid-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paid-purchase-flow {
    grid-template-columns: 1fr;
  }

  .paid-cloud-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .paid-cloud-preview {
    padding: 36px 32px;
  }
}

@media (max-width: 760px) {
  .paid-offer-grid,
  .paid-benefit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .paid-offer-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "header"
      "visual"
      "meta"
      "actions";
    grid-template-rows: auto auto auto auto;
    gap: 0;
    padding: 20px;
  }

  .paid-offer-header {
    min-height: 0;
    margin-bottom: 18px;
  }

  .paid-offer-visual,
  .paid-offer-coming-visual {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 4 / 5;
    align-self: center;
  }

  .paid-offer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paid-purchase-flow {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .paid-purchase-flow ol {
    grid-template-columns: 1fr;
  }

  .paid-purchase-flow li {
    min-height: 52px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
    padding: 0;
  }

  .paid-purchase-flow li:first-child {
    border-top: 0;
  }

  .paid-benefit-grid > a {
    min-height: 104px;
  }

  .paid-catalog-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .paid-catalog-dialog-shell > header {
    min-height: 72px;
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 8px 12px 8px 16px;
  }

  .paid-catalog-dialog-icon {
    width: 36px;
    height: 36px;
  }

  .paid-catalog-dialog-shell > header > div p {
    display: none;
  }

  .paid-catalog-dialog-shell > header > div h2 {
    font-size: 18px;
  }

  .paid-cloud-mobile-tabs {
    height: 44px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
  }

  .paid-cloud-mobile-tabs button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
  }

  .paid-cloud-mobile-tabs button.is-active {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .paid-cloud-shell {
    display: block;
  }

  .paid-cloud-sidebar {
    width: 100%;
    height: 100%;
    border-right: 0;
    border-bottom: 0;
  }

  .paid-cloud-preview {
    width: 100%;
    height: 100%;
    display: none;
    padding: 24px 20px 32px;
  }

  .paid-catalog-dialog.is-mobile-preview .paid-cloud-sidebar {
    display: none;
  }

  .paid-catalog-dialog.is-mobile-preview .paid-cloud-preview {
    display: block;
  }

  .paid-cloud-back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -10px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 14px;
  }

  .paid-cloud-preview h3 {
    margin-top: 12px;
    font-size: 22px;
    line-height: 1.45;
  }

  .paid-cloud-preview-excerpt {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.85;
  }
}
