:root {
  color-scheme: light dark;
  --base: #202122;
  --muted: #54595d;
  --border: #a2a9b1;
  --surface: #fff;
  --soft: #f8f9fa;
  --link: #36c;
  --link-hover: #3056a9;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--base);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 1.6rem;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.portal-shell { width: min(100%, 112rem); margin: 0 auto; padding: 3.2rem 1.6rem 0; }
.portal-header { text-align: center; }
.portal-banner {
  display: block; width: min(70rem, 94vw); height: auto; margin: 0 auto;
  border-radius: .2rem;
}
.portal-kicker { margin: .8rem 0 1rem; color: var(--muted); letter-spacing: .18em; font-size: 1.4rem; }

.language-stage { position: relative; width: 58rem; height: 42rem; margin: 0 auto; }
.central-logo {
  position: absolute; left: 50%; top: 50%; width: 20rem; height: 20rem;
  transform: translate(-50%, -50%); object-fit: contain;
}
.language {
  position: absolute; width: 17rem; padding: .8rem; text-align: center;
  border-radius: .2rem;
}
.language:hover { background: var(--soft); text-decoration: none; }
.language strong { display: block; font-size: 2rem; }
.language small { display: block; margin-top: .3rem; color: var(--muted); font-size: 1.25rem; line-height: 1.35; }
.language-zh { top: 3.4rem; left: 2rem; }
.language-en { top: 3.4rem; right: 2rem; }
.language-fr { top: 16rem; left: 0; }
.language-ja { top: 16rem; right: 0; }
.language-ko { bottom: 3rem; left: 4rem; }
.language-lzh { bottom: 3rem; right: 4rem; }

.portal-search { display: flex; max-width: 62rem; height: 4.8rem; margin: 1rem auto 4.5rem; }
.portal-search input {
  min-width: 0; flex: 1; border: 1px solid var(--border); border-right: 0;
  border-radius: .2rem 0 0 .2rem; padding: 0 1.2rem; background: var(--surface); color: var(--base);
  font-size: 1.6rem;
}
.search-language-picker {
	position: relative; display: flex; width: 8.8rem; flex: 0 0 8.8rem; align-items: center;
	justify-content: center; border: 1px solid var(--border); border-left: 0; background: var(--surface);
}
.search-language-picker > span { color: var(--muted); font-weight: 600; pointer-events: none; }
.search-language-picker::after {
	content: ""; position: absolute; right: 1.15rem; top: 50%; width: .7rem; height: .7rem;
	border-right: .15rem solid var(--muted); border-bottom: .15rem solid var(--muted);
	transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.portal-search select {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0;
	font: inherit; cursor: pointer;
}
.portal-search button {
	position: relative; flex: 0 0 5.6rem; width: 5.6rem; border: 1px solid #36c;
	border-radius: 0 .2rem .2rem 0; padding: 0; background: #36c; color: #fff; cursor: pointer;
}
.portal-search button::before {
	content: ""; position: absolute; width: 1.8rem; height: 1.8rem; border: .3rem solid currentColor;
	border-radius: 50%; left: 1.55rem; top: 1.05rem; box-sizing: border-box;
}
.portal-search button::after {
	content: ""; position: absolute; width: 1.15rem; height: .3rem; border-radius: .2rem;
	background: currentColor; left: 3rem; top: 2.85rem; transform: rotate(45deg); transform-origin: left center;
}
.portal-search button:hover { background: #3056a9; }
.portal-search input:focus, .search-language-picker:focus-within { outline: 2px solid #36c; outline-offset: -2px; }

.links-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; padding-bottom: 2.4rem; }
.link-section { border-top: 1px solid var(--border); }
.section-rule { text-align: center; }
.section-rule h2 {
  display: inline-block; position: relative; top: -1.5rem; margin: 0; padding: 0 1.6rem;
  background: var(--surface); font-size: 1.8rem; font-weight: 600;
}
.friend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.friend {
  display: flex; align-items: center; min-height: 8.2rem; padding: 1rem 1.4rem;
  border-radius: .2rem;
}
.friend:hover { background: var(--soft); text-decoration: none; }
.friend img { width: 5.8rem; height: 5.8rem; flex: 0 0 5.8rem; object-fit: contain; margin-right: 1.5rem; }
.friend img.friend-art { object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.contact-icon {
  display: grid; place-items: center; width: 5.8rem; height: 5.8rem; flex: 0 0 5.8rem;
  margin-right: 1.5rem;
}
.contact-icon img { width: 4.6rem; height: 4.6rem; margin: 0; object-fit: contain; }
.friend strong { display: block; font-size: 1.7rem; }
.friend small { display: block; margin-top: .4rem; color: var(--muted); font-size: 1.3rem; }
.portal-footer {
  border-top: 1px solid var(--border); padding: 1.8rem 1.6rem 3rem; color: var(--muted);
  text-align: center; font-size: 1.25rem;
}
.portal-footer p { display: inline; margin: 0 .6rem; }
.footer-copy { margin-bottom: 1.2rem; }
.icp-badge { display: inline-block; line-height: 0; }
.icp-badge img { display: block; height: 2rem; width: auto; }

@media (max-width: 640px) {
  .portal-shell { padding-top: 1.6rem; }
  .portal-banner { width: 100%; }
  .language-stage { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; height: auto; padding-top: 18rem; margin: 1rem 0 2rem; }
  .central-logo { top: 8.8rem; width: 16rem; height: 16rem; }
  .language { position: static; width: auto; }
	.portal-search {
		display: flex; height: 4.8rem; margin: 1.2rem auto 4.5rem;
	}
	.portal-search input {
		height: 4.8rem; border: 1px solid var(--border); border-right: 0;
		border-radius: .2rem 0 0 .2rem; padding: 0 1rem; font-size: 1.5rem;
	}
	.search-language-picker { width: 7.2rem; flex-basis: 7.2rem; height: 4.8rem; }
	.search-language-picker::after { right: .8rem; }
	.portal-search button {
		flex-basis: 5.2rem; width: 5.2rem; height: 4.8rem; border-radius: 0 .2rem .2rem 0;
	}
	.portal-search button::before { left: 1.35rem; }
	.portal-search button::after { left: 2.8rem; }
  .links-layout { grid-template-columns: 1fr; gap: 2.8rem; }
  .friend-grid { grid-template-columns: 1fr; }
  .portal-footer p { display: block; margin: .4rem 0; }
}

@media (prefers-color-scheme: dark) {
  :root { --base: #eaecf0; --muted: #a2a9b1; --border: #54595d; --surface: #101418; --soft: #202122; --link: #88a3e8; --link-hover: #a6bbf5; }
}


