:root {
    color-scheme: light;
    --ink: #263c55;
    --muted: #8295a9;
    --blue: #5799d2;
    --line: #e4eef7;
    --surface: rgba(255, 255, 255, .88);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 10% 0%, rgba(196, 226, 251, .72), transparent 38rem),
        radial-gradient(ellipse at 100% 32%, rgba(218, 237, 255, .7), transparent 34rem),
        #f4f9fe;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

button, input { font: inherit; }
a { color: inherit; }
.page { width: min(940px, calc(100% - 36px)); margin: 0 auto; }
.hero { padding: 82px 0 56px; text-align: center; }
.eyebrow { color: #76a6d0; font-size: 11px; font-weight: 700; letter-spacing: .24em; }
h1 { margin: 13px 0 10px; font-size: clamp(30px, 5vw, 44px); letter-spacing: .03em; }
.hero > p { margin: 0; color: var(--muted); font-size: 15px; }
.search {
    display: flex; align-items: center; gap: 12px; width: min(640px, 100%);
    margin: 32px auto 0; padding: 7px 8px 7px 19px; border: 1px solid #e3edf6;
    border-radius: 16px; background: white; box-shadow: 0 14px 36px rgba(86, 143, 191, .12);
}
.search > span { color: #81a8c9; font-size: 25px; line-height: 1; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search:focus-within { border-color: #8dbce3; box-shadow: 0 0 0 4px rgba(87, 153, 210, .16), 0 14px 36px rgba(86, 143, 191, .12); }
.search input::placeholder { color: #a6b5c3; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #4b8fc9;
    outline-offset: 3px;
}
.search button, .about-button {
    border: 0; border-radius: 11px; padding: 11px 20px; color: white; background: var(--blue);
    cursor: pointer; transition: background .2s, transform .2s;
}
.search button:hover, .about-button:hover { background: #4285c0; transform: translateY(-1px); }
.section { margin: 10px 0 42px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading > div { display: flex; align-items: center; gap: 9px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: #4a93cf; background: #e5f2fd; }
.section-note { color: var(--muted); font-size: 13px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 13px; }
.link-card {
    display: flex; align-items: center; gap: 13px; min-height: 76px; min-width: 0; padding: 14px;
    border: 1px solid var(--line); border-radius: 15px; background: var(--surface);
    text-decoration: none; box-shadow: 0 5px 16px rgba(50, 103, 148, .04);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.link-card:hover { transform: translateY(-3px); border-color: #bfddf5; box-shadow: 0 12px 24px rgba(50, 103, 148, .1); }
.link-logo { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; overflow: hidden; border-radius: 13px; color: #4c8dbf; background: #eaf5ff; font-weight: 700; }
.link-logo img { width: 100%; height: 100%; object-fit: cover; }
.link-name { font-size: 14px; font-weight: 650; }
.link-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.link-name, .link-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-url { color: var(--muted); font-size: 11px; }
.empty { padding: 24px; border: 1px dashed #d5e5f2; border-radius: 15px; color: var(--muted); text-align: center; background: rgba(255,255,255,.55); }
.post-list { display: grid; gap: 15px; }
.post { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.post-date { color: #8ca0b3; font-size: 12px; }
.post-text { margin: 11px 0 0; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 15px; }
.post-images img { width: 100%; max-height: 340px; border-radius: 11px; object-fit: cover; }
footer { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 64px 0 26px; padding: 28px 0 12px; border-top: 1px solid #e3edf6; color: #90a0af; font-size: 12px; text-align: center; }
footer p { margin: 0; }
footer a { color: #7898b5; text-decoration: none; }
footer a:hover { color: #4b8fc9; }
.about-button { padding: 9px 22px; border-radius: 999px; font-size: 13px; }
dialog { width: min(460px, calc(100% - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); box-shadow: 0 20px 70px rgba(30, 66, 97, .2); }
dialog::backdrop { background: rgba(34, 57, 78, .35); backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.dialog-top button { border: 0; color: var(--muted); background: transparent; font-size: 25px; cursor: pointer; }
#about-text { margin: 20px 0 4px; color: #5e7285; line-height: 1.9; white-space: pre-wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 560px) {
    .hero { padding: 58px 0 42px; }
    .section-note { font-size: 11px; }
    .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .link-card { gap: 9px; min-height: 68px; padding: 10px; }
    .link-logo { flex-basis: 36px; width: 36px; height: 36px; }
    .link-name { font-size: 13px; }
}
