/* Shared presentation for the static portal; all page content lives in HTML. */
:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #243843;
  background: #f3efe6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #243843;
  --muted: #64736b;
  --teal: #315e69;
  --line: #d7d1c6;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #315e69; outline-offset: 5px; border-radius: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.8vw, 3.65rem); font-weight: 800; letter-spacing: 0.015em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 750; }
h3 { font-size: 1.1rem; }
p { max-width: 70ch; }

.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 8px 16px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.portal-header, main, .portal-footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.brand img { image-rendering: pixelated; flex-shrink: 0; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; }
.portal-header nav { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; }
.portal-header nav a { padding-block: 10px; color: var(--muted); text-decoration: none; }
.portal-header nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; }
.portal-header nav .nav-create { padding-inline: 14px; border: 1px solid #d9c36d; border-radius: 6px; background: rgb(251 249 243 / 82%); box-shadow: 2px 2px 0 rgb(232 200 95 / 30%); color: #3f5150; font-weight: 700; backdrop-filter: blur(8px); }

.hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; padding-block: 78px 70px; }
.hero-copy { min-width: 0; }
.lead { margin-top: 24px; color: var(--muted); font-size: 1.1rem; line-height: 1.9; }
.hero-copy .lead { max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid #d9c36d; border-radius: 6px; background: rgb(247 228 129 / 88%); box-shadow: 3px 3px 0 rgb(202 177 91 / 24%); color: #3f5150; font-weight: 750; text-decoration: none; text-align: center; backdrop-filter: blur(8px); }
.button:hover { background: #f1d75f; }
.button-secondary { border-color: #cfc8bb; background: rgb(251 249 243 / 84%); box-shadow: 2px 2px 0 rgb(215 209 198 / 72%); color: var(--teal); }
.button-secondary:hover { background: #e9e4d8; }
.local-note { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.hero-art { position: relative; min-height: 410px; overflow: visible; background: radial-gradient(circle, rgb(49 94 105 / 10%) 1px, transparent 1.5px) 0 0 / 18px 18px; }
.hero-art > p { position: absolute; bottom: 0; left: 10px; margin: 0; color: var(--teal); font-size: 0.95rem; letter-spacing: 0.05em; }
.portal-photo { position: absolute; z-index: 1; margin: 0; padding: 10px 10px 12px; border: 1px solid #d7d1c6; border-radius: 8px 12px 7px 10px; background: #fbf9f3; box-shadow: 0 14px 32px rgb(36 56 67 / 15%); }
.portal-photo img { width: 100%; height: calc(100% - 30px); border: 1px solid rgb(36 56 67 / 10%); border-radius: 4px; object-fit: cover; }
.portal-photo figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; color: #596b62; font-size: 0.7rem; font-weight: 750; }
.portal-photo figcaption a { color: #7d887f; font-size: 0.62rem; font-weight: 500; text-decoration: none; }
.portal-photo figcaption a:hover { text-decoration: underline; }
.portal-photo--main { top: 19px; left: 18px; width: min(290px, 77%); height: 343px; transform: rotate(-4deg); }
.portal-photo--main img { object-position: center 62%; }
.portal-photo--small { right: 0; bottom: 27px; z-index: 2; width: 153px; height: 184px; padding: 7px 7px 9px; transform: rotate(7deg); }
.portal-photo--small figcaption { font-size: 0.63rem; }
.portal-photo--small figcaption a { font-size: 0.55rem; }
.photo-pixel-mark { position: absolute; z-index: 3; top: 10px; right: 5px; display: grid; width: 45px; height: 54px; place-items: center; border: 2px solid #243843; background: #f1d65c; box-shadow: 3px 3px 0 #243843; color: #243843; font-size: 0.8rem; font-weight: 900; line-height: 1.15; text-align: center; transform: rotate(7deg); }
.photo-doodle { position: absolute; z-index: 3; top: 103px; right: 4px; color: #e8745e; font-size: 1.8rem; transform: rotate(12deg); }

.section { padding-block: 42px 52px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 28px; }
.section-heading p { margin-top: 10px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 28px 0; padding: 0; list-style: none; counter-reset: stage; }
.steps li { position: relative; padding-left: 40px; counter-increment: stage; }
.steps li::before { position: absolute; top: 0; left: 0; content: counter(stage); display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #96b7a5; border-radius: 50%; color: var(--teal); font-size: 0.9rem; line-height: 1; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.boundary { padding: 16px 20px; border-left: 3px solid #a8bfaf; background: #edf3ee; color: var(--muted); font-size: 0.9rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.tool-grid > li { display: flex; min-width: 0; }
.tool-card { display: flex; width: 100%; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 13px 16px 12px 15px; background: #fbf9f3; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.tool-grid li:nth-child(6n + 1) .tool-card__visual { background: #e6eee8; }
.tool-grid li:nth-child(6n + 2) .tool-card__visual { background: #f5e9c6; }
.tool-grid li:nth-child(6n + 3) .tool-card__visual { background: #e2eceb; }
.tool-grid li:nth-child(6n + 4) .tool-card__visual { background: #f3eadf; }
.tool-grid li:nth-child(6n + 5) .tool-card__visual { background: #f4e9d9; }
.tool-grid li:nth-child(6n) .tool-card__visual { background: #e4ebe6; }
.tool-card__visual { display: grid; width: 78px; height: 78px; place-items: center; margin-bottom: 14px; border: 1px solid rgb(36 56 67 / 9%); border-radius: 20px 17px 21px 16px; box-shadow: inset 0 -3px 0 rgb(36 56 67 / 5%); transform: rotate(-2deg); }
.tool-card__visual img { width: 72px; height: 72px; object-fit: contain; }
.tool-card:hover { border-color: #a8beb3; box-shadow: 0 9px 21px rgb(36 56 67 / 8%); transform: translateY(-3px); }
.tool-card h3 a { color: var(--ink); text-decoration: none; }
.tool-card h3 a:hover { text-decoration: underline; }
.tool-card p { margin-top: 14px; margin-bottom: 22px; color: var(--muted); font-size: 0.94rem; }
.text-link { display: inline-block; padding-block: 5px; font-size: 0.94rem; font-weight: 700; }
.tool-card .text-link { margin-top: auto; }
.channel-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 0; list-style: none; }
.channel-list p { margin-top: 10px; color: var(--muted); font-size: 0.94rem; }
.channel-list .text-link { margin-top: 12px; }
.status { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 5px; background: #e9efeb; color: var(--muted); font-size: 0.75rem; font-weight: 500; vertical-align: middle; }

.breadcrumbs { padding-top: 26px; font-size: 0.88rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #536459; }
.page-intro { padding-block: 38px 52px; }
.page-intro .lead { max-width: 45em; }
.detail-columns { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding-block: 40px; border-top: 1px solid var(--line); }
.feature-list, .usage-list { padding-left: 1.35em; margin-block: 20px 0; color: var(--muted); }
.feature-list li, .usage-list li { margin-bottom: 14px; padding-left: 6px; }
.feature-list li::marker, .usage-list li::marker { color: var(--teal); }
.notice { margin-bottom: 44px; padding: 26px 30px; border-left: 4px solid #a9bfc0; background: #eaf1ed; }
.notice h2 { font-size: 1.15rem; }
.notice p { margin-top: 12px; color: var(--muted); font-size: 0.94rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 20px 0 0; padding: 0; list-style: none; }
.related a { display: inline-block; padding-block: 6px; }
.not-found { padding-block: 64px 100px; min-height: 65vh; }
.error-code { margin-bottom: 12px; color: var(--teal); font-size: 4rem; font-weight: 800; }
.portal-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; }
.portal-footer nav { display: flex; gap: 20px; margin-left: auto; }
.portal-footer nav a { padding-block: 6px; }

@media (max-width: 900px) {
  .hero { gap: 24px; padding-block: 54px; }
  .hero-art { min-height: 370px; }
  .portal-photo--main { left: 8px; height: 315px; }
  .portal-photo--small { width: 137px; height: 168px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .channel-list { gap: 20px; }
  .detail-columns { gap: 36px; }
}

@media (max-width: 600px) {
  .portal-header, main, .portal-footer { width: calc(100% - 32px); }
  .portal-header { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 18px 8px; }
  .portal-header nav { justify-content: space-between; width: 100%; gap: 16px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 38px; }
  .hero-art { width: min(100%, 400px); min-height: 354px; margin: 0 auto; }
  .portal-photo { padding: 7px 7px 9px; }
  .portal-photo--main { top: 7px; left: 6%; width: 70%; height: 296px; }
  .portal-photo--small { right: 3px; bottom: 24px; width: 126px; height: 155px; }
  .portal-photo figcaption { font-size: 0.62rem; }
  .portal-photo figcaption a { font-size: 0.55rem; }
  .photo-pixel-mark { top: 3px; right: 0; width: 36px; height: 44px; font-size: 0.68rem; }
  .photo-doodle { top: 75px; right: 0; }
  .hero-art > p { bottom: 0; left: 4px; font-size: 0.8rem; }
  .lead { margin-top: 18px; font-size: 1rem; }
  .actions { gap: 10px; margin-top: 24px; }
  .button { padding-inline: 16px; font-size: 0.92rem; }
  .section { padding-block: 30px 36px; }
  .steps, .channel-list, .detail-columns, .tool-grid { grid-template-columns: 1fr; }
  .steps, .channel-list { gap: 24px; }
  .tool-grid { gap: 14px; }
  .tool-card { padding: 19px; }
  .channel-list li + li { border-top: 1px solid var(--line); padding-top: 22px; }
  .page-intro { padding-block: 30px 36px; }
  .detail-columns { gap: 28px; padding-block: 30px; }
  .notice { padding: 22px 20px; margin-bottom: 30px; }
  .portal-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .portal-footer nav { margin-left: 0; }
  .not-found { padding-block: 40px 70px; }
}
