:root {
    color-scheme: light;
    --ink: #1b1730;
    --muted: #615b73;
    --purple: #5b33bb;
    --line: #e8e4ee;
    --paper: #fff;
    --page: #f7f6fb;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--page);
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
:where(a, button, select):focus-visible { outline: 3px solid #7144d4; outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 12px; background: #fff; }

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 73px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 1.12rem; font-weight: 750; white-space: nowrap; }
.brand-mark {
    position: relative; display: grid; width: 33px; aspect-ratio: 1; place-items: center;
    color: #fff; background: #7044d8; border-radius: 10px;
}
.brand-mark::before {
    content: ""; width: 16px; height: 16px; border: 1px solid currentColor;
    border-radius: 50%; box-shadow: inset 0 0 0 4px #7044d8, inset 0 0 0 5px currentColor;
}
.brand-mark::after {
    content: ""; position: absolute; width: 8px; height: 1px; background: currentColor; border-radius: 2px;
    transform: translate(3px, -3px) rotate(-45deg);
}
.site-nav { gap: 26px; color: var(--muted); font-size: .9rem; }
.site-nav a:hover, .story-source a:hover { color: var(--purple); text-decoration: underline; }
.system-status {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 7px 11px;
    background: #f6f4fa; border-radius: 99px; color: var(--muted); font-size: .85rem; white-space: nowrap;
}
.system-status > span { width: 7px; height: 7px; border-radius: 50%; background: #a87221; }
.system-status--live > span { background: #208458; }

.hero {
    position: relative; isolation: isolate; overflow: hidden; min-height: 284px;
    display: flex; align-items: center; margin-block: 28px 30px; border-radius: 24px;
    color: #fff; background: radial-gradient(ellipse at 95% 0, #6b43c6, #332166 52%, #231944 83%);
}
.hero-text { padding: 39px clamp(28px, 5vw, 66px); z-index: 1; }
.hero h1 { font-size: clamp(2.35rem, 5.3vw, 4rem); line-height: 1.17; letter-spacing: -.064em; font-weight: 780; }
.hero h1 span { color: #c8b2ff; }
.hero p { margin-top: 19px; color: #e3d9fa; font-size: 1rem; line-height: 1.75; }
.radar-art {
    position: absolute; inset: 0 0 0 44%; display: grid; place-items: center; pointer-events: none;
    background-image: linear-gradient(#d4bbff13 1px, transparent 1px), linear-gradient(90deg, #d4bbff13 1px, transparent 1px);
    background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.radar-disc {
    position: relative; width: 390px; max-width: 83%; aspect-ratio: 1; border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 13.8%, #e3d3ff46 14% 14.3%, transparent 14.5% 20%);
}
.radar-sweep {
    position: absolute; inset: 7%; border-radius: 50%; transform: rotate(36deg);
    background: conic-gradient(from 0deg, transparent 0deg 286deg, #bca3ff00 286deg, #cbb5ff78 359.5deg, #e6d8ff 360deg);
}
.radar-axis { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; }
.radar-axis::before, .radar-axis::after { content: ""; position: absolute; background: #ddcaff44; }
.radar-axis::before { inset: 0 50% 0 auto; width: 1px; }
.radar-axis::after { inset: 50% 0 auto; height: 1px; }
.radar-disc i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #f0e5ff; box-shadow: 0 0 0 5px #d2b9ff2b, 0 0 18px #d2b9ff; }
.radar-disc i:nth-of-type(1) { top: 33%; left: 64%; }
.radar-disc i:nth-of-type(2) { top: 61%; left: 72%; background: #eab9fa; }
.radar-disc i:nth-of-type(3) { top: 47%; left: 32%; width: 6px; height: 6px; background: #c6b0ff; }

.dashboard { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 18px; margin-bottom: 48px; }
.people-panel, .timeline { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.people-panel { padding: 20px 12px 12px; }
.people-panel h2 { padding-inline: 10px; font-size: 1rem; margin-bottom: 12px; }
.people-list { display: grid; gap: 3px; }
.person-link { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid transparent; border-radius: 12px; }
.person-link:hover { background: #f8f6fc; }
.person-link.is-selected { color: #49249b; background: #f1ebff; border-color: #e6dbfa; }
.person-link strong, .person-link small { display: block; }
.person-link strong { font-size: .89rem; line-height: 1.5; }
.person-link small { font-size: .79rem; color: var(--muted); line-height: 1.5; }
.avatar {
    display: grid; flex: 0 0 38px; place-items: center; height: 38px; border-radius: 11px;
    color: #4b298f; background: #ede5ff; font-size: .78rem; font-weight: 750; letter-spacing: .02em;
}
.avatar--all { background: #dac9fc; color: #4b298f; font-size: 1.2rem; }
.avatar--blue { background: #deedff; color: #22548d; }
.avatar--orange { background: #ffebdc; color: #894317; }

.timeline { padding: 24px; }
.timeline-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.timeline-heading h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.25; }
.timeline-heading p { color: var(--muted); margin-top: 7px; font-size: .875rem; }
.date-filter { display: flex; gap: 6px; font-size: .875rem; }
.date-filter select, .date-filter button { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 6px 8px; }
.date-filter button { color: var(--purple); cursor: pointer; }
.date-filter button:hover { background: #f2ecfe; }
.type-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 19px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.type-bar a { display: block; padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: .875rem; }
.type-bar a:hover { background: #f6f3fa; }
.type-bar a.is-selected { color: #49249b; font-weight: 700; background: #efe8ff; }
.empty-state {
    min-height: 244px; margin-top: 17px; display: grid; align-content: center; justify-items: center; gap: 10px;
    padding: 26px 16px; text-align: center; border: 1px dashed #e0d8ef; border-radius: 13px; background: #fcfaff;
}
.empty-state h3 { font-size: 1.06rem; }
.empty-state p { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 3px; background: #f0e8ff; border-radius: 13px; }
.empty-icon span { position: relative; width: 23px; height: 16px; border: 1.5px solid #805ac4; border-radius: 4px; }
.empty-icon span::before, .empty-icon span::after { content: ""; position: absolute; height: 1.5px; left: 4px; border-radius: 4px; background: #805ac4; }
.empty-icon span::before { top: 4px; width: 12px; }
.empty-icon span::after { top: 8px; width: 7px; }
.button { display: inline-flex; justify-content: center; padding: 8px 13px; border: 1px solid #ddcffa; border-radius: 8px; color: var(--purple); background: #fff; font-weight: 650; font-size: .875rem; }
.button:hover { background: #f1eaff; }
.day-heading { color: var(--muted); font-size: .85rem; margin-top: 20px; padding-bottom: 4px; }
.story { margin-top: 10px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; }
.story-meta, .story-source { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.story h4 { margin-block: 9px; font-size: 1.09rem; line-height: 1.5; overflow-wrap: anywhere; }
.story p { color: var(--muted); margin-bottom: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.story-meta time, .story-source a { margin-left: auto; }
.story-source a { color: var(--purple); font-weight: 650; }
.tag { padding: 3px 7px; border-radius: 6px; font-weight: 650; }
.tag--personal { color: #4b298f; background: #ede5ff; }
.tag--official { color: #22548d; background: #deedff; }
.tag--media { color: #894317; background: #ffebdc; }
.pagination { display: flex; margin: 16px auto 0; width: fit-content; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-block: 20px; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.footer-inner strong { color: var(--ink); }

@media (max-width: 820px) {
    .wrap { width: calc(100% - 40px); }
    .dashboard { grid-template-columns: 190px minmax(0, 1fr); gap: 14px; }
    .timeline { padding: 17px; }
}

@media (max-width: 640px) {
    .wrap { width: calc(100% - 28px); }
    .masthead-inner { gap: 14px; min-height: 60px; }
    .site-nav { display: none; }
    .brand { font-size: 1rem; gap: 7px; }
    .brand-mark { width: 30px; }
    .system-status { font-size: .76rem; }
    .hero { min-height: 208px; margin-block: 15px 16px; border-radius: 17px; }
    .hero-text { padding: 23px 20px; }
    .hero p { max-width: 16rem; font-size: .9rem; margin-top: 13px; }
    .radar-art { opacity: .62; inset-inline-start: 34%; }
    .radar-disc { width: 255px; max-width: none; transform: translateX(21%); }
    .dashboard { display: block; margin-bottom: 28px; }
    .people-panel { margin-bottom: 12px; padding: 13px 10px 10px; }
    .people-panel h2 { padding-inline: 3px; margin-bottom: 8px; }
    .people-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .person-link { gap: 7px; padding: 6px; }
    .avatar { flex-basis: 32px; height: 32px; }
    .timeline { padding: 13px; }
    .timeline-heading { flex-wrap: wrap; }
    .type-bar { column-gap: 2px; margin-top: 13px; }
    .type-bar a { padding-inline: 7px; }
}
