:root {
    color-scheme: light;
    --text: #22304a;
    --muted: #637189;
    --surface: rgba(255, 255, 255, .86);
    --surface-solid: #fff;
    --border: #e1e7f0;
    --primary: #2d3c5e;
    --soft: #f1f4f9;
    --green: #24764b;
    --green-soft: #e8f5ed;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(145deg, #f8faff, #f0f4fa); color: var(--text); font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.6; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button, a, input { touch-action: manipulation; }
:is(a, button, input):focus-visible { outline: 3px solid #789bdd; outline-offset: 4px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.glass-card { background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 44px -28px rgba(23, 47, 91, .25); backdrop-filter: blur(12px); }
.blur-dot { position: fixed; z-index: -1; width: 360px; height: 360px; left: -150px; top: 12%; pointer-events: none; background: radial-gradient(circle, rgba(156, 196, 247, .2), transparent 70%); }
.blur-dot-secondary { left: auto; top: auto; right: -120px; bottom: 5%; background: radial-gradient(circle, rgba(203, 189, 232, .2), transparent 70%); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; background: var(--surface-solid); padding: 12px 20px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.site-header { padding-top: 22px; padding-bottom: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px 10px 22px; border-radius: 22px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.logo img { object-fit: contain; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links :is(a, button) { border: 0; background: transparent; padding: 9px 15px; border-radius: 12px; font-size: .86rem; font-weight: 500; }
.nav-links :is(a, button):hover { background: var(--soft); }
.nav-links .nav-register { background: var(--primary); color: #fff; }
.nav-links .nav-register:hover { background: #415781; }
main { flex: 1; }
.announcements { max-width: 920px; margin: 0 auto 42px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.announcement-heading { align-items: flex-end; margin-bottom: 16px; }
.eyebrow { font-size: .74rem; color: var(--muted); margin-bottom: 5px; letter-spacing: .1em; }
h1 { font-size: 1.8rem; line-height: 1.3; letter-spacing: -.035em; font-weight: 650; }
.text-link { display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 4px 0; background: transparent; font-size: .86rem; font-weight: 600; color: var(--primary); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.discover-link { font-weight: 500; color: var(--muted); padding-bottom: 3px; flex-shrink: 0; }
.announcement-panel { position: relative; padding: 28px 32px 22px; border-radius: 26px; min-height: 260px; overflow: hidden; }
.announcement-panel::before { content: ''; position: absolute; top: 28px; bottom: 28px; left: 0; width: 4px; background: #93a7cb; border-radius: 0 4px 4px 0; }
.announcement-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .75rem; color: var(--muted); margin-bottom: 14px; }
.notice-type { font-weight: 600; }
.unread-marker { font-size: .68rem; color: #45668f; border-radius: 6px; background: #edf2fa; padding: 1px 7px; }
.announcement-preview h2 { font-size: 1.35rem; line-height: 1.5; font-weight: 650; margin-bottom: 12px; overflow-wrap: anywhere; }
.announcement-excerpt { color: #536178; font-size: .95rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.announcement-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.notice-pagination { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--muted); }
.notice-pagination button { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-solid); width: 34px; height: 34px; font-size: 1rem; }
.notice-pagination button:hover:not(:disabled) { background: var(--soft); }
.notice-pagination button:disabled { opacity: .35; }
.notice-summary { color: var(--muted); font-size: .73rem; margin-top: 10px; text-align: right; }
.notice-state { min-height: 208px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.state-mark { color: #91a0b6; font-size: 1.5rem; letter-spacing: .1em; }
.notice-state h2 { font-size: 1.13rem; font-weight: 600; }
.notice-state p { font-size: .88rem; color: var(--muted); }
.notice-state .btn-ghost { margin-top: 8px; }
.features-section { padding-bottom: 48px; }
.section-heading h2 { font-size: 1.45rem; line-height: 1.4; font-weight: 650; letter-spacing: -.02em; }
.section-description { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.access-legend { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: .67rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.guest-pill { background: var(--green-soft); color: var(--green); }
.registered-pill { background: #e9edf3; color: #637084; }
.category-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 24px; }
.category-filter { display: flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 6px 11px; font-size: .79rem; color: var(--muted); background: transparent; }
.category-filter:hover:not(:disabled) { background: var(--surface); }
.category-filter[aria-pressed="true"] { background: var(--surface-solid); color: var(--primary); border-color: var(--border); box-shadow: 0 3px 8px rgba(30, 60, 100, .035); }
.category-filter:disabled { opacity: .5; }
.category-count { font-size: .66rem; opacity: .8; }
.feature-group + .feature-group { margin-top: 26px; }
.feature-group-heading { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 12px; }
.feature-group-heading h3 { font-size: .81rem; font-weight: 600; }
.feature-group-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal-card { display: flex; flex-direction: column; padding: 21px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); min-width: 0; box-shadow: 0 6px 20px -18px rgba(30, 60, 100, .3); transition: transform .18s ease, box-shadow .18s ease; }
.portal-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -18px rgba(30, 60, 100, .3); border-color: #c0cee3; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.feature-icon { width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 600; border-radius: 11px; background: #edf1f7; color: #607393; }
.is-open .feature-icon { background: var(--green-soft); color: var(--green); }
.portal-card h4 { font-size: 1rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.card-description { color: var(--muted); font-size: .8rem; line-height: 1.8; margin-top: 7px; margin-bottom: 18px; overflow-wrap: anywhere; }
.card-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: .73rem; font-weight: 500; color: var(--muted); }
.is-open .card-action { color: var(--green); }
.feature-status { padding: 32px 20px; border: 1px dashed var(--border); border-radius: 20px; text-align: center; font-size: .9rem; color: var(--muted); }
.feature-status .btn-ghost { margin-top: 14px; }
.feature-footnote { color: var(--muted); margin-top: 20px; font-size: .72rem; }
.footer { border-top: 1px solid var(--border); padding: 22px 0; font-size: .73rem; color: var(--muted); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-author { margin-left: 9px; }
.footer a:hover { text-decoration: underline; }
.btn-primary, .btn-ghost { display: inline-block; border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: .84rem; text-align: center; }
.btn-primary { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
.btn-primary:hover { background: #415781; }
.btn-ghost { border: 1px solid var(--border); background: var(--surface-solid); color: var(--primary); }
.btn-ghost:hover { background: var(--soft); }
.registration-notice { margin: auto; width: min(640px, calc(100% - 32px)); max-height: 90vh; max-height: 90dvh; overflow-y: auto; padding: 32px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface-solid); color: var(--text); box-shadow: 0 28px 90px rgba(15, 23, 42, .25); }
.registration-notice::backdrop { background: rgba(15, 23, 42, .42); backdrop-filter: blur(5px); }
body.notice-open { overflow: hidden; }
.notice-eyebrow { color: var(--muted); font-size: .78rem; font-weight: 600; }
.registration-notice h2 { margin: 12px 0; font-size: 1.5rem; line-height: 1.5; overflow-wrap: anywhere; }
.notice-content { color: var(--muted); line-height: 1.9; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 22px; }
.notice-preference { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .88rem; }
.notice-preference input { width: 18px; height: 18px; accent-color: var(--primary); }
.notice-scope { font-size: .74rem; color: var(--muted); margin: 6px 0 20px; }
.notice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
html[data-font-size="large"] { font-size: 17px; }
html[data-theme="dark"] {
    color-scheme: dark;
    --text: #e5edf8;
    --muted: #a6b5ca;
    --surface: rgba(28, 40, 58, .92);
    --surface-solid: #1c283a;
    --border: #344258;
    --primary: #c1d4f1;
    --soft: #293952;
    --green: #92d5b0;
    --green-soft: #203d36;
}
html[data-theme="dark"] body { background: linear-gradient(145deg, #131b28, #192435); }
html[data-theme="dark"] .logo img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .announcement-excerpt { color: #b7c6db; }
html[data-theme="dark"] .registered-pill { background: #303d50; color: #b3bed0; }
html[data-theme="dark"] .unread-marker { background: #293b57; color: #b1c6e7; }
html[data-theme="dark"] .feature-icon { background: #293952; color: #b3c8e7; }
html[data-theme="dark"] .is-open .feature-icon { background: var(--green-soft); color: var(--green); }
html[data-theme="dark"] :is(.btn-primary, .nav-links .nav-register) { background: #38527b; border-color: #38527b; color: #fff; }
html[data-theme="dark"] :is(.btn-primary, .nav-links .nav-register):hover { background: #46638e; }
html[data-reduce-motion="true"] *, html[data-reduce-motion="true"] *::before, html[data-reduce-motion="true"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .portal-card { transition: none; } }
@media (max-width: 800px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-legend { align-self: flex-start; }
}
@media (max-width: 550px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .site-header { padding-top: 14px; padding-bottom: 26px; }
    .header-inner { padding: 8px 8px 8px 13px; gap: 8px; border-radius: 17px; }
    .logo { font-size: .9rem; gap: 7px; }
    .logo img { width: 25px; height: 25px; }
    .nav-links { gap: 1px; }
    .nav-links :is(a, button) { padding: 8px 10px; font-size: .77rem; }
    #contactBtn { display: none; }
    .eyebrow { font-size: .67rem; }
    h1 { font-size: 1.55rem; }
    .discover-link { font-size: .73rem; gap: 5px; }
    .announcements { margin-bottom: 30px; }
    .announcement-panel { padding: 20px 20px 16px; border-radius: 21px; min-height: 245px; }
    .announcement-panel::before { top: 21px; bottom: 21px; width: 3px; }
    .announcement-meta { gap: 8px; font-size: .68rem; margin-bottom: 12px; }
    .announcement-preview h2 { font-size: 1.13rem; }
    .announcement-excerpt { font-size: .84rem; -webkit-line-clamp: 4; }
    .announcement-bottom { margin-top: 16px; padding-top: 12px; }
    .text-link { font-size: .79rem; }
    .notice-summary { font-size: .66rem; }
    .notice-state { min-height: 205px; }
    .notice-state p { font-size: .79rem; }
    .features-section > .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
    .section-heading h2 { font-size: 1.3rem; }
    .section-description { font-size: .77rem; }
    .access-legend { gap: 7px; }
    .category-filters { gap: 3px; margin-bottom: 18px; }
    .category-filter { font-size: .74rem; padding: 6px 9px; }
    .category-count { display: none; }
    .feature-grid { grid-template-columns: 1fr; gap: 10px; }
    .portal-card { padding: 18px; }
    .card-topline { margin-bottom: 10px; }
    .card-description { margin-bottom: 13px; }
    .footer-content { justify-content: center; text-align: center; gap: 7px; }
    .registration-notice { padding: 24px; }
    .registration-notice h2 { font-size: 1.3rem; }
    .notice-actions > * { flex: 1; }
}
