:root {
    color-scheme: light;
    --paper: #f7f7f3;
    --white: #fff;
    --ink: #18182a;
    --muted: #54546a;
    --accent: #5241a5;
    --line: #e6e4eb;
    --night: #0c1539;
    font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
a:focus-visible { outline: 3px solid #8464ea; outline-offset: 4px; border-radius: 3px; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 4; inset: .5rem auto auto .5rem; transform: translateY(-200%); padding: .5rem 1rem; background: var(--white); }
.skip:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.25rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.brand-mark { display: inline-grid; position: relative; width: 2.125rem; aspect-ratio: 1; place-content: center; border-radius: .7rem; background: #251f50; flex: 0 0 auto; }
.brand-mark::before { content: ""; width: 1.2rem; height: .66rem; border: 1px solid #d3c8ff; border-radius: 50%; transform: rotate(-42deg); }
.brand-mark::after { content: ""; position: absolute; inset: 45%; border-radius: 50%; background: #fff; }
.primary-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; }
.primary-nav a { display: block; padding: .5rem .65rem; border-radius: .55rem; color: var(--muted); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.primary-nav a:hover, .primary-nav [aria-current], .primary-nav .current-section { background: #eeebfb; color: #45358f; }

.home { padding-block: clamp(1.35rem, 4vw, 2.75rem) 4rem; }
.feature { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: center; min-height: clamp(27rem, 35vw, 31.5rem); border-radius: 1.6rem; background: var(--night); color: #fff; }
.feature-image { position: absolute; z-index: -2; width: 69%; height: 100%; inset: 0 0 0 auto; object-fit: cover; object-position: center; }
.feature::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--night) 17%, rgba(12,21,57,.97) 31%, rgba(12,21,57,.45) 57%, transparent 77%); }
.feature-copy { padding: clamp(2rem, 6.2vw, 5rem); width: min(100%, 39rem); }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .11em; }
.feature-label { display: flex; gap: .65rem; align-items: center; color: #e2d9ff; }
.feature-label span { width: 1px; height: .9rem; background: #9f91ce; }
.feature h1 { margin: .8rem 0 1.1rem; font-size: clamp(2.8rem, 5.4vw, 5rem); letter-spacing: -.045em; line-height: 1.15; font-weight: 850; }
.feature-summary { max-width: 20rem; color: #d9ddf2; font-size: 1rem; line-height: 1.85; }
.feature-button { display: inline-flex; margin-top: 1.6rem; padding: .65rem 1.125rem; color: #201948; background: #e2d8ff; border-radius: .6rem; font-weight: 750; }
.feature-button:hover { background: #f3edff; color: #201948; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 22rem); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.page-home .content-grid { margin-top: clamp(1.8rem, 5vw, 3.25rem); }
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); letter-spacing: -.025em; line-height: 1.25; }
.section-head p { margin-top: .35rem; color: var(--muted); }
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.35rem); }
.story-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1.125rem; background: var(--white); }
.story-card:hover { border-color: #c5b8e9; }
.story-cover { display: block; overflow: hidden; background: #ebe8f3; aspect-ratio: 16 / 9; }
.story-cover img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: clamp(.875rem, 2vw, 1.35rem); }
.date { display: block; margin-bottom: .4rem; color: var(--accent); font-size: .875rem; font-weight: 700; }
.story-copy :is(h2, h3) { font-size: clamp(1.07rem, 2vw, 1.3rem); line-height: 1.45; overflow-wrap: anywhere; }
.story-copy p { margin-top: .55rem; color: var(--muted); overflow-wrap: anywhere; }
.sidebar { display: grid; gap: 1rem; }
.side-panel { min-width: 0; padding: clamp(1.1rem, 2.5vw, 1.5rem); border: 1px solid var(--line); border-radius: 1.125rem; background: var(--white); }
.side-panel h2 { font-size: 1.2rem; line-height: 1.3; }
.side-stories { margin-top: .65rem; list-style: none; }
.side-stories li + li { border-top: 1px solid var(--line); }
.side-stories a { display: flex; gap: .7rem; align-items: center; min-height: 3.2rem; padding: .65rem 0; font-size: .9375rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.side-stories img { flex: none; width: 4.75rem; height: 3.5rem; border-radius: .4rem; object-fit: cover; background: #ebe8f3; }
.side-stories li:last-child a { padding-bottom: 0; }
.side-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.side-tags a { padding: .3rem .65rem; background: #eeebf8; color: #473485; border-radius: .4rem; font-size: .875rem; }

.inner { padding-block: 1.65rem 4rem; }
.trail { margin-bottom: 1rem; font-size: .875rem; color: var(--muted); }
.trail ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; list-style: none; }
.trail li + li::before { content: "/"; margin-right: .6rem; color: #77768a; }
.trail a { color: var(--accent); }
.category-head { padding-bottom: clamp(.8rem, 2vw, 1.15rem); margin-bottom: clamp(.95rem, 2.5vw, 1.4rem); border-bottom: 1px solid var(--line); }
.category-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; }
.category-head h1 { font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.category-head p { max-width: 42rem; margin-top: .55rem; color: var(--muted); }
.category-page { padding: .16rem .55rem; border-radius: .4rem; background: #eeebfb; color: #45358f; font-size: .875rem; white-space: nowrap; }
.collection-head { margin-bottom: 2rem; padding: clamp(1.5rem, 5vw, 3.25rem); border-radius: 1.35rem; background: #ebe7f7; }
.collection-title, .collection-head h1, .article-head h1 { font-size: clamp(2rem, 4.7vw, 3.45rem); letter-spacing: -.035em; line-height: 1.25; overflow-wrap: anywhere; }
.collection-head p { max-width: 45rem; margin-top: .75rem; color: #4d4664; font-size: 1.05rem; }
.pagination { margin-top: 1.5rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.pagination li { min-width: 2.5rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--white); color: var(--accent); text-align: center; }
.pagination a, .pagination span { display: block; padding: .35rem .55rem; }
.pagination a:hover { background: #eeebfb; }
.pagination li.active { background: #eeebfb; border-color: #c5b8e9; font-weight: 750; }

.article-panel { min-width: 0; padding: clamp(1.2rem, 5vw, 3.3rem); border: 1px solid var(--line); border-radius: 1.35rem; background: var(--white); }
.article-head { margin-bottom: 1.6rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.category-label { display: inline-block; margin-bottom: .7rem; color: var(--accent); }
.article-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .95rem; color: var(--muted); font-size: .9375rem; }
.article-meta a { color: var(--accent); text-decoration: underline; }
.prose { font-size: clamp(1rem, 1.7vw, 1.125rem); line-height: 1.9; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose figure, .prose blockquote { margin: 1rem 0; }
.prose h2, .prose h3 { margin: 1.75rem 0 .6rem; line-height: 1.4; }
.prose ul, .prose ol { padding-inline-start: 1.45em; }
.prose img { display: inline-block; max-width: 100% !important; height: auto !important; border-radius: .55rem; vertical-align: middle; }
.prose iframe, .prose video { max-width: 100%; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 1rem; }
.prose th, .prose td { padding: .6rem; border: 1px solid var(--line); }
.prose pre { overflow-x: auto; }
.prose figure { max-width: 100%; }
.prose blockquote { border-inline-start: 3px solid #c8b8ef; padding-inline-start: 1rem; }
.article-neighbors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .8rem; margin-top: 1rem; }
.article-neighbors a { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); overflow-wrap: anywhere; }
.article-neighbors span { display: block; color: var(--accent); font-size: .875rem; font-weight: 700; }
.related { margin-top: 2rem; }

.site-footer { background: #15152a; color: #f5f3ff; padding-block: 2.1rem 1.25rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 1.1rem; }
.footer-inner p, .footer-legal { color: #c7c4d5; }
.footer-inner p { margin-top: .45rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; }
.site-footer a:hover { color: #dacdff; text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .65rem 1.4rem; border-top: 1px solid #38364f; padding-top: 1rem; margin-top: 1.25rem; font-size: .875rem; }
.footer-legal p { flex: 1 1 23rem; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; overflow-wrap: anywhere; }
.footer-stats a { color: #ddd2fa; }

@media (max-width: 56rem) {
    .header-inner { flex-wrap: wrap; padding-block: .8rem; gap: .45rem 1rem; }
    .content-grid { grid-template-columns: minmax(0,1fr); }
    .feature-image { width: 78%; }
}
@media (max-width: 37.5rem) {
    .wrap { width: calc(100% - 1.75rem); }
    .header-inner { display: block; }
    .primary-nav { margin-top: .45rem; }
    .primary-nav ul { gap: .18rem .25rem; }
    .primary-nav a { padding: .36rem .44rem; font-size: .875rem; }
    .feature { min-height: 28rem; align-content: end; border-radius: 1.05rem; }
    .feature-image { width: 100%; height: 85%; object-position: center top; }
    .feature::before { background: linear-gradient(0deg, var(--night) 14%, rgba(12,21,57,.91) 36%, rgba(12,21,57,.12) 75%); }
    .feature-copy { padding: 1.2rem; }
    .feature h1 { font-size: clamp(2.2rem, 10vw, 3.3rem); margin-block: .55rem; }
    .feature-summary { line-height: 1.6; }
    .feature-button { margin-top: .9rem; }
    .stories { grid-template-columns: 1fr; }
}
