:root {
    --body-background: #fbfaf7;
    --card-background: #fffefd;
    --accent-color: #244d43;
    --accent-color-darker: #16382f;
    --accent-color-text: #fff;
    --body-text-color: #5c625f;
    --card-text-color-main: #202622;
    --card-text-color-secondary: #707773;
    --card-separator-color: #e4e5df;
    --card-border-radius: 22px;
    --shadow-l1: 0 8px 30px rgba(38, 52, 44, .06);
    --shadow-l2: 0 14px 38px rgba(38, 52, 44, .1);

    /* Blog 文章页字体：以后只需修改这一组数值。 */
    --blog-post-title-size: clamp(2.4rem, 2.7vw, 3.2rem);
    --blog-post-title-weight: 550;
    --blog-post-title-spacing: .012em;
    --blog-post-body-size: 1.52rem;
    --blog-post-body-line-height: 1.72;
}

body { letter-spacing: -.01em; }
.container.main-container { max-width: 1520px; gap: 42px; }
.main { min-width: 0; }
.left-sidebar { min-width: 190px; }
.sidebar header .site-avatar .site-logo { box-shadow: 0 8px 22px rgba(27, 52, 41, .15); }
#main-menu { gap: 6px; }
#main-menu li a { border-radius: 10px; box-sizing: border-box; padding: 8px 10px; transition: background .2s ease, color .2s ease; width: 137px; }
#main-menu li a:hover { background: #edf1ea; }
#main-menu li.current a { color: var(--accent-color); background: #edf1ea; }
#main-menu li svg { width: 18px; height: 18px; }
.right-sidebar { min-width: 230px; }
.widget-toc { padding: 0; }
.widget-toc .widget-title, .about-toc h2 { color: #243027; font-size: 1.65rem; font-weight: 500; letter-spacing: .01em; margin: 0 0 21px; text-transform: uppercase; }
.widget--toc, .about-toc .toc-nav { background: transparent; border-left: 1px solid rgba(100,124,108,.2); border-radius: 0; box-shadow: none; max-height: none; }
.toc-nav { max-height: 60vh; padding: 0; }
.toc-nav ul, .toc-nav ol { list-style: none; margin: 0; padding-left: 0; }
.toc-nav li { margin: 0; padding: 0; }
.toc-nav li a { border-radius: 0 8px 8px 0; color: #69776e; display: block; font-size: 1.5rem; line-height: 1.35; padding: 9px 12px 9px 18px; transition: background .18s ease, color .18s ease; }
.toc-nav li a:hover { background: #edf1ea; color: var(--accent-color); }
.toc-nav ol li a:first-of-type::before { content: none !important; }
.toc-nav li.active-class > a { border-left: 0 !important; box-shadow: none; color: var(--accent-color); font-size: 1.62rem; font-weight: 650; margin-left: 0 !important; padding-left: 18px !important; }
.toc-nav ul ul, .toc-nav ol ol { padding-left: 0; }
.toc-nav li > ul, .toc-nav li > ol { margin: 0 !important; padding-left: 0 !important; }
.article-content h1 a.header-anchor, .article-content h2 a.header-anchor, .article-content h3 a.header-anchor, .article-content h4 a.header-anchor, .article-content h5 a.header-anchor, .article-content h6 a.header-anchor { display: none; }

/* Blog */
.blog-page-heading, .world-heading { margin: 0 0 28px; }
.eyebrow { color: #829087; font-size: 1.25rem; font-weight: 650; letter-spacing: .08em; margin: 0 0 8px; text-transform: uppercase; }
.blog-page-heading h1, .world-heading h1 { font-size: clamp(3.4rem, 5vw, 5.2rem); line-height: 1; margin: 0; color: #17211b; letter-spacing: -.055em; }
.blog-page-meta { align-items: center; color: #747c76; display: flex; font-size: 1.5rem; justify-content: space-between; margin-top: 28px; }
.blog-page-meta a, .archives-link { color: #1c2b22; font-weight: 600; }
.blog-page-meta a span, .archives-link span { font-size: 2rem; vertical-align: -2px; }
.blog-feed { display: grid; gap: 18px; }
.blog-card { background: rgba(255,255,255,.72); border: 1px solid #e0e4dd; border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 42%); min-height: 180px; overflow: hidden; position: relative; transition: box-shadow .22s ease, transform .22s ease; }
.blog-card:not(.has-cover) { grid-template-columns: 1fr; }
.blog-card.has-cover { display: block; }
.blog-card:hover { box-shadow: var(--shadow-l2); transform: translateY(-2px); }
.blog-card-link { inset: 0; position: absolute; z-index: 4; }
.blog-card-copy { align-self: center; padding: 20px 28px; }
.blog-card.has-cover .blog-card-copy { min-height: 180px; position: relative; width: 57%; z-index: 2; }
.blog-card time { color: #7f8780; font-size: 1.15rem; font-weight: 500; }
.blog-card h2 { color: #26332b; font-size: 1.72rem; font-weight: 500; letter-spacing: .005em; line-height: 1.25; margin: 7px 0 4px; }
.blog-card p { color: #68736c; font-size: 1.28rem; letter-spacing: -.01em; line-height: 1.45; margin: 0; }
.blog-card-meta { color: #757e77; display: flex; flex-wrap: wrap; font-size: 1.15rem; gap: 10px; margin-top: 11px; }
.blog-card-meta span { align-items: center; display: inline-flex; gap: 5px; }
.blog-card-meta svg { height: 15px; width: 15px; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.blog-card-tags span, .tag-list a { background: #f1f3ee; border: 1px solid #e0e4dd; border-radius: 9px; color: #626b64; font-size: 1.1rem; padding: 3px 8px; }
.blog-card-cover { background: #e9ece6; overflow: hidden; }
.blog-card.has-cover .blog-card-cover { bottom: 0; inset-inline-end: 0; position: absolute; top: 0; width: 62%; z-index: 0; }
.blog-card.has-cover .blog-card-cover::after { background: linear-gradient(90deg, #fcfdfb 0%, rgba(252,253,251,.88) 19%, rgba(252,253,251,0) 52%); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.blog-card-cover img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.blog-card:hover .blog-card-cover img { transform: scale(1.035); }
.blog-card-arrow { align-items: center; color: #3d4941; display: flex; font-size: 4rem; font-weight: 300; height: 100%; justify-content: center; position: absolute; right: 18px; top: 0; z-index: 5; }
.blog-sidebar { padding-top: 80px; }
.blog-sidebar-title { align-items: center; color: #202722; display: flex; gap: 10px; margin-bottom: 16px; }
.blog-sidebar-title svg { height: 27px; width: 27px; }
.blog-sidebar-title h2 { font-size: 2.3rem; margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; }
.blog-sidebar .tag-list a { border-radius: 10px; font-size: 1.25rem; padding: 5px 10px; }
.tag-list a { position: relative; z-index: 3; }
.tag-list a:hover { background: #e6ede4; color: #244d43; }
.tag-empty { color: #8b928d; font-size: 1.35rem; }
.archives-link { display: block; font-size: 1.5rem; margin-top: 34px; text-align: right; }
  .empty-state { border: 1px dashed #cbd4ca; border-radius: 18px; color: #78837a; padding: 45px; text-align: center; }

/* Archives */
.custom-archives-page .main.full-width { padding-right: clamp(56px, 5vw, 112px); }
.archive-year { margin: 0 0 40px; }
.archive-year > h2 { color: #56665d; font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; }
.archive-year > h2 a { color: inherit; text-decoration: none; }
.custom-tags-page .main.full-width { padding-right: clamp(56px, 5vw, 112px); }
.tag-listing > h2 { color: #56665d; font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; text-transform: uppercase; }
.tag-listing > h1 { color: #27342c; font-size: 1.72rem; font-weight: 550; line-height: 1.25; margin: 0 0 14px; }
.archive-post-list { display: grid; gap: 14px; }
.archive-post-card { align-items: center; background: rgba(252, 253, 251, .76); border: 1px solid rgba(100, 124, 108, .18); border-radius: 18px; color: inherit; display: flex; justify-content: space-between; min-height: 96px; padding: 16px 29px 16px 36px; position: relative; text-decoration: none; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.archive-post-card:hover { background: #f5f8f3; border-color: #597565; box-shadow: 0 7px 20px rgba(57, 78, 65, .07); }
.archive-post-copy h3 { color: #27342c; font-size: 1.7rem; font-weight: 550; letter-spacing: .005em; line-height: 1.25; margin: 0 0 7px; }
.archive-post-copy time { color: #7b867e; font-size: 1.22rem; }
.archive-post-meta { color: #7b867e; font-size: 1.22rem; }
.archive-post-indicator { display: block; flex: 0 0 42px; height: 36px; position: relative; }
.archive-indicator-arrow { color: #4d5c52; display: block; height: 32px; position: absolute; right: 2px; top: 2px; width: 32px; }
.archive-indicator-arrow path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.archive-arrow-shaft { transform: scaleX(0); transform-box: fill-box; transform-origin: right center; transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.archive-post-card:hover .archive-post-copy h3,
.archive-post-card:hover .archive-post-copy time,
.archive-post-card:hover .archive-indicator-arrow { color: var(--accent-color); }
.archive-post-card:hover .archive-arrow-shaft { transform: scaleX(1); }

/* Home */
.home-feed { max-width: 820px; }
.home-feed-heading { margin: 2px 0 18px; }
.home-feed-heading .eyebrow { margin-bottom: 5px; }
.home-feed-heading > div { align-items: baseline; display: flex; justify-content: space-between; }
.home-feed-heading h1 { color: #1d2922; font-size: 2.25rem; font-weight: 500; letter-spacing: .005em; margin: 0; }
.home-feed-heading a { color: #607168; font-size: 1.25rem; position: relative; z-index: 3; }
.home-feed-heading a span { font-size: 1.55rem; margin-left: 3px; }
.home-post-list { display: grid; gap: 13px; }
.home-post-card { background: rgba(252,253,251,.86); border: 1px solid rgba(100,124,108,.17); border-radius: 18px; min-height: 156px; overflow: hidden; position: relative; }
.home-post-link { inset: 0; position: absolute; z-index: 4; }
.home-post-copy { display: flex; flex-direction: column; justify-content: center; min-height: 156px; padding: 20px 24px; position: relative; width: 100%; z-index: 2; }
.home-post-card.has-cover .home-post-copy { width: 66%; }
.home-post-meta { align-items: center; color: #7b857e; display: flex; flex-wrap: wrap; font-size: 1.12rem; gap: 9px 13px; }
.home-post-meta span { align-items: center; display: inline-flex; gap: 5px; }
.home-post-meta svg { height: 14px; width: 14px; }
.home-post-card h2 { color: #26332b; font-size: 1.72rem; font-weight: 500; letter-spacing: .005em; line-height: 1.25; margin: 8px 0 5px; }
.home-post-card p { color: #6d786f; display: -webkit-box; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.45; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-post-tags { display: flex; gap: 6px; margin-top: 10px; }
.home-post-tags span { border: 1px solid rgba(100,124,108,.16); border-radius: 999px; color: #68766d; font-size: 1.08rem; padding: 3px 8px; }
.home-post-cover { inset: 0 0 0 auto; overflow: hidden; position: absolute; width: 45%; z-index: 0; }
.home-post-cover::after { background: linear-gradient(90deg, #fcfdfb 0%, rgba(252,253,251,.78) 22%, rgba(252,253,251,0) 66%); content: ""; inset: 0; position: absolute; z-index: 1; }
.home-post-cover img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.home-post-card:hover .home-post-cover img { transform: scale(1.035); }
.home-post-arrow { color: #607268; font-size: 1.75rem; font-weight: 300; position: absolute; right: 18px; top: calc(50% - .9rem); z-index: 5; }
.home-sidebar { min-width: 245px; padding-top: 70px; }
.home-sidebar .widget { margin-bottom: 34px; }
.home-sidebar .search-form.widget { margin-bottom: 42px; }
.home-sidebar .widget-icon { margin-bottom: 7px; }
.home-sidebar .widget-icon svg { color: #708077; height: 26px; width: 26px; }
.home-sidebar .widget-title { color: #536159; font-size: 1.35rem; letter-spacing: .025em; margin: 0 0 12px; }
.home-sidebar .widget-archive--list { border: 1px solid rgba(100,124,108,.17); border-radius: 14px; box-shadow: none; }
.home-sidebar .archives-year a { font-size: 1.22rem; padding: 13px 15px; }
.home-sidebar .tagCloud .tagCloud-tags { gap: 7px; }
.home-sidebar .tagCloud .tagCloud-tags a { background: rgba(252,253,251,.9); border: 1px solid rgba(100,124,108,.16); border-radius: 9px; box-shadow: none; color: #647169; font-size: 1.17rem; padding: 6px 10px; }
.home-empty { color: #78837a; font-size: 1.3rem; }

/* Blog article layout */
  :root[data-scheme="light"] { --body-background: #f8faf7; --card-background: #fcfdfb; --card-background-selected: #edf2eb; --accent-color: #52705f; --accent-color-darker: #385745; --body-text-color: #65736b; --card-text-color-main: #25342b; --card-text-color-secondary: #6b786f; --card-text-color-tertiary: #7b877f; --card-separator-color: rgba(100, 124, 108, .16); --blockquote-background-color: #f4f7f2; }
  .blog-article-page .blog-article-sidebar { min-height: 1px; }
  .blog-article-page .main-article { background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
  .blog-article-page .main-article .article-image { margin-bottom: 22px; overflow: hidden; }
  .blog-article-page .main-article .article-image img { border-radius: 18px; display: block; height: auto; max-height: none; object-fit: contain; width: 100%; }
  .blog-article-page .main-article .article-header .article-details { max-width: 790px; padding: 0 0 22px; }
  .blog-article-page .main-article .article-title { color: #17211b; font-family: var(--base-font-family); font-size: var(--blog-post-title-size) !important; font-weight: var(--blog-post-title-weight) !important; letter-spacing: var(--blog-post-title-spacing) !important; line-height: 1.16; margin: 0; }
  .blog-article-page .main-article .article-title-wrapper { border-bottom: 1px solid rgba(100, 124, 108, .24); padding-bottom: 20px; }
  .blog-article-page .main-article .article-subtitle { color: #69736d; font-size: 1.38rem !important; font-style: normal; font-weight: 400 !important; letter-spacing: -.01em !important; line-height: 1.55 !important; margin: 4px 0 0; }
  .blog-post-meta { align-items: center; color: #707a73; flex-direction: row; flex-wrap: wrap; font-size: 1.22rem; gap: 9px 15px; margin: 0 0 22px; }
  .blog-post-meta > span { align-items: center; display: inline-flex; gap: 6px; }
  .blog-post-meta svg { height: 16px; width: 16px; }
  .blog-post-tags { gap: 8px !important; }
  .blog-post-tags b { color: #44534a; font-size: 1.8rem; font-weight: 500; line-height: .8; }
  .blog-post-tags a { color: #626d65; text-decoration: none; }
  .blog-post-tags a + a::before { color: #a1aaa3; content: "/"; margin-right: 8px; }
  .blog-article-page .main-article .article-content { color: #303833; font-size: var(--blog-post-body-size); line-height: var(--blog-post-body-line-height); margin: 18px 0 0; max-width: 790px; padding: 0; }
  .blog-article-page .main-article .article-content > p { margin: 0 0 1.12em; }
  .blog-article-page .main-article .article-content > blockquote { box-sizing: border-box; margin: 1.35em 0; max-width: 100%; width: 100%; }
  .blog-article-page .main-article .article-content > p > img { border-radius: 10px; display: block; height: auto; margin: 1.7em auto; max-width: 77%; }
  .blog-article-page .main-article .article-content .blog-photo { margin: 1.7em auto; max-width: 77%; }
  .blog-article-page .main-article .article-content .blog-photo img { border-radius: 10px; display: block; height: auto; margin: 0; max-width: 100%; }
  .blog-article-page .main-article .article-content .blog-photo figcaption { color: #6b786f; font-size: var(--blog-post-body-size); line-height: var(--blog-post-body-line-height); margin-top: 6px; text-align: center; }
  .blog-article-page .main-article .article-content h2,
  .blog-article-page .main-article .article-content h3 { border: 0; color: #1c2520; font-size: 1.9rem; margin: 1.7em 0 .6em; padding: 0; scroll-margin-top: 24px; }
  .blog-article-page .main-article .article-content h2 { font-size: 2.15rem; }
  .blog-article-page .main-article .article-content hr { margin: 32px 0; width: 72px; }
  .post-info-card { border: 1px solid rgba(100, 124, 108, .23); border-radius: 18px; margin: 44px 0 0; max-width: 790px; padding: 20px 24px; }
  .post-info-heading { margin-bottom: 16px; }
  .post-info-title { color: #27342c; font-size: 1.7rem; line-height: 1.3; margin: 0; }
  .post-info-url { color: #78847b; font-size: 1.22rem; margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .post-info-details { display: flex; flex-wrap: wrap; gap: 16px 42px; margin: 0; }
  .post-info-details div { min-width: 130px; }
  .post-info-details dt { color: #78847b; font-size: 1.22rem; margin: 0 0 2px; }
  .post-info-details dd { color: #45554a; font-size: 1.4rem; margin: 0; }
  .post-info-details dd a { color: inherit; text-decoration: none; }
  .post-info-details dd a:hover { color: var(--accent-color); }
.post-info-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 17px; }
.post-share-action { align-items: center; background: #f1f4ef; border: 0; border-radius: 50%; color: #506157; cursor: pointer; display: inline-flex; height: 44px; justify-content: center; padding: 0; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; width: 44px; }
.post-share-action svg { fill: none; height: 21px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.25; width: 21px; }
.post-share-action--x svg { fill: currentColor; stroke: none; }
.post-share-action:hover { background: #e5ece3; color: var(--accent-color); transform: translateY(-1px); }
.post-qr-dialog { background: #fffefa; border: 1px solid rgba(100,124,108,.24); border-radius: 18px; box-shadow: 0 18px 60px rgba(31,52,39,.2); color: #334238; padding: 24px; text-align: center; }
.post-qr-dialog::backdrop { background: rgba(28,42,33,.3); backdrop-filter: blur(2px); }
.post-qr-dialog p { font-size: 1.35rem; font-weight: 600; margin: 0 0 14px; }
.post-qr-dialog img { display: block; height: 260px; margin: 0 auto 13px; width: 260px; }
.post-qr-dialog span { color: #748178; display: block; font-size: .95rem; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-qr-close { background: transparent; border: 0; color: #627268; cursor: pointer; font: 400 1.8rem/1 inherit; position: absolute; right: 10px; top: 9px; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
  .blog-post-navigation { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2px 0 0; max-width: 790px; }
  .post-neighbor { align-items: center; color: #4d5b52; display: flex; font-size: 1.65rem; gap: 14px; line-height: 1.35; min-width: 0; text-decoration: none; }
  .post-neighbor span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .post-neighbor-icon { align-items: center; display: inline-flex; flex: 0 0 auto; height: 1.35em; justify-content: center; width: 1.35em; }
  .post-neighbor-icon svg { height: 1.15em; stroke-width: 2.5; width: 1.15em; }
  .post-neighbor--previous { grid-column: 1; grid-row: 1; }
  .post-neighbor--next { grid-column: 2; grid-row: 1; justify-content: flex-end; text-align: right; }
  .post-neighbor:hover { color: var(--accent-color); }

/* About */
.about-page .about-article { background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
.about-page .about-header { max-width: 790px; padding: 0 0 36px; }
.about-page .about-header h1 { color: #1d2922; font-size: 2.4rem; font-weight: 400; letter-spacing: .01em; line-height: 1.2; margin: 0; }
.about-page .about-article .article-content { color: #303833; font-size: var(--blog-post-body-size); line-height: var(--blog-post-body-line-height); margin: 0; max-width: 790px; padding: 0; }
.about-page .about-article .article-content > p { margin: 0 0 1.12em; }
.about-page .about-article .article-content h2,
.about-page .about-article .article-content h3 { border: 0; color: #1c2520; font-size: 1.9rem; font-weight: 600; letter-spacing: .005em; margin: 1.65em 0 .62em; padding: 0; scroll-margin-top: 24px; }
.about-page .about-article .article-content h2 { font-size: 2.5rem; font-weight: 700; }
.about-page .about-article .article-content h2:first-child { margin-top: .25em; }
.about-page .about-article .article-content ul { margin: .5em 0 1em; padding-left: 1.25em; }
.about-page .about-article .article-content li { margin: .25em 0; }
.about-sidebar { min-width: 230px; }
.about-toc { padding: 0; }
.about-sidebar .toc-nav { max-height: none; }
.education-entry { align-items: baseline; display: grid; gap: 12px 20px; grid-template-columns: 8px minmax(115px, auto) minmax(180px, auto) 1fr; margin: .45em 0; }
.education-dot { background: #9aaca0; border-radius: 50%; height: 6px; transform: translateY(-.08em); width: 6px; }
.education-entry time,
.education-school,
.education-program { color: #303833; white-space: nowrap; }
.experience-entry { border: 0; padding: 0 4px 23px; }
.experience-entry:first-of-type { border-top: 0; }
.about-page .about-article .article-content h2 + .experience-entry { padding-top: 0; }
.about-page .about-article .article-content .experience-entry + h2 { margin-top: calc(1.65em - 23px); }
.experience-entry-header { margin: 0; }
.experience-kicker,
.experience-organization { color: #78877b; font-size: 1.04rem; font-weight: 600; letter-spacing: .055em; line-height: 1.35; margin: 0 !important; }
.experience-kicker,
.experience-organization { text-transform: uppercase; }
.experience-title-row { align-items: baseline; display: flex; gap: 18px; justify-content: space-between; margin: 3px 0; }
.about-page .about-article .article-content .experience-title-row h3 { color: #26352b; font-size: 1.82rem; font-weight: 600; line-height: 1.15; margin: 0; }
.experience-period { color: #718075; flex: 0 0 auto; font-size: var(--blog-post-body-size); white-space: nowrap; }
.experience-summary { color: #354238; font-size: var(--blog-post-body-size); line-height: var(--blog-post-body-line-height); margin: 9px 0 !important; max-width: 720px; }
.experience-links { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.experience-links a { color: #547765; font-size: var(--blog-post-body-size); font-weight: 600; text-decoration: none; }
.experience-links a:hover { color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; }
.experience-links span { font-size: 1em; margin-left: 2px; }

/* World */
.world-heading > p:last-child { color: #6c766f; font-size: 1.7rem; margin: 17px 0 0; }
.world-atlas { background: #dce9e3; border: 1px solid rgba(255,255,255,.85); border-radius: 28px; min-height: 515px; overflow: hidden; position: relative; }
#world-map { height: 515px; width: 100%; }
#world-map.leaflet-container { background: #dce9e3; font-family: inherit; }
#world-map .leaflet-tile { filter: saturate(.62) sepia(.13) hue-rotate(85deg) brightness(1.06) contrast(.9); }
#world-map .leaflet-control-zoom a { border-color: #e1e7df; color: #355544; }
#world-map .leaflet-control-attribution { display: none; }
.country-label { background: rgba(255,254,249,.94); border: 1px solid #dbe5db; border-radius: 8px; box-shadow: 0 4px 14px rgba(38,70,51,.14); color: #234434; font: 600 1.3rem/1.2 inherit; padding: 5px 8px; }
.country-label::before { display: none; }
.area-label { background: rgba(255,254,249,.96); border: 1px solid #c9ddce; border-radius: 8px; box-shadow: 0 4px 14px rgba(38,70,51,.14); color: #234434; font: 600 1.25rem/1.2 inherit; padding: 5px 8px; }
.area-label::before { display: none; }
.map-caption { background: rgba(255,254,249,.78); border-radius: 10px; bottom: 20px; color: #4a6254; font-family: Georgia, serif; font-size: 1.35rem; font-style: italic; left: 26px; padding: 7px 11px; pointer-events: none; position: absolute; z-index: 2; }
.memory-marker { background: transparent; border: 0; }
.memory-marker span { background: #b9695e; border: 4px solid #fffaf4; border-radius: 50% 50% 50% 0; box-shadow: 0 3px 10px rgba(99, 35, 35, .3); display: block; height: 22px; margin: 0 auto; transform: rotate(-45deg); transition: transform .2s ease; width: 22px; }
.memory-marker:hover span { transform: rotate(-45deg) scale(1.18); }
.memory-label { background: rgba(255,254,249,.96); border: 1px solid #d4e0d4; border-radius: 8px; box-shadow: 0 4px 14px rgba(38,70,51,.14); color: #294536; font: 500 1.2rem/1.2 inherit; padding: 5px 8px; }
.memory-label::before { display: none; }
.world-empty-note { background: rgba(255,254,249,.92); border: 1px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 10px 30px rgba(50,78,65,.12); max-width: 270px; padding: 15px 18px; position: absolute; right: 18px; text-align: center; top: 18px; z-index: 500; }
.world-empty-note span { color: #b86c5b; display: block; font-size: 2rem; }
.world-empty-note strong { color: #25382c; display: block; font-size: 1.65rem; margin: 5px 0; }
.world-empty-note p { color: #6e7972; font-size: 1.25rem; line-height: 1.45; margin: 0; }
.world-empty-note code { font-size: 1.1rem; }
.map-credit { background: rgba(255,254,249,.72); bottom: 8px; color: #6c7e72; padding: 2px 5px; position: absolute; right: 8px; z-index: 500; }
.hidden { display: none; }
.place-dialog { background: #fffefa; border: 0; border-radius: 24px; box-shadow: 0 20px 70px rgba(20,36,28,.3); color: #253328; max-height: min(86vh, 920px); max-width: min(820px, calc(100vw - 32px)); overflow-y: auto; padding: 32px 34px; }
.place-dialog::backdrop { background: rgba(22,39,30,.32); backdrop-filter: blur(2px); }
.place-dialog h2 { font-size: 2.5rem; margin: 0; }
.place-dialog-note { color: #6d766f; line-height: 1.6; margin: 3px 0 0; }
.place-dialog-gallery { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 24px; }
.place-dialog-gallery.single-photo { display: block; }
.place-dialog-gallery figure { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.7fr) minmax(170px, .7fr); margin: 0; min-width: 0; }
.place-dialog-gallery figure.without-caption { display: block; }
.place-dialog-gallery img { border-radius: 11px; display: block; height: auto; max-height: 540px; object-fit: contain; object-position: left top; width: 100%; }
.place-dialog-gallery figcaption { align-self: stretch; border-left: 1px solid #d9e2d8; color: #66736a; font-size: 1.25rem; line-height: 1.7; padding: 8px 0 8px 18px; }
.dialog-close { background: #fffefa; border: 1px solid #e2e6dd; border-radius: 50%; color: #3a4b3e; cursor: pointer; font-size: 2.2rem; height: 34px; line-height: 1; position: absolute; right: 15px; top: 15px; width: 34px; z-index: 1; }

/* 深色模式：自定义页面不再沿用浅色硬编码，保持文字、卡片与地图控件清晰可读。 */
:root[data-scheme="dark"] {
    --body-background: #1c2420;
    --card-background: #26312b;
    --card-background-selected: #334238;
    --accent-color: #a8c8b0;
    --accent-color-darker: #c4dfca;
    --accent-color-text: #18221c;
    --body-text-color: #bdcabc;
    --card-text-color-main: #edf4ed;
    --card-text-color-secondary: #c7d3c8;
    --card-text-color-tertiary: #a8b8aa;
    --card-separator-color: rgba(202, 218, 204, .2);
    --blockquote-background-color: #222d26;
    --shadow-l1: 0 8px 30px rgba(0, 0, 0, .2);
    --shadow-l2: 0 14px 38px rgba(0, 0, 0, .32);
}

:root[data-scheme="dark"] #main-menu li a:hover,
:root[data-scheme="dark"] #main-menu li.current a { background: #2d3a31; }
:root[data-scheme="dark"] .widget-toc .widget-title,
:root[data-scheme="dark"] .blog-page-heading h1,
:root[data-scheme="dark"] .world-heading h1,
:root[data-scheme="dark"] .blog-page-meta a,
:root[data-scheme="dark"] .archives-link,
:root[data-scheme="dark"] .blog-card h2,
:root[data-scheme="dark"] .blog-sidebar-title,
:root[data-scheme="dark"] .home-feed-heading h1,
:root[data-scheme="dark"] .home-post-card h2,
:root[data-scheme="dark"] .blog-article-page .main-article .article-title,
:root[data-scheme="dark"] .blog-article-page .main-article .article-content h2,
:root[data-scheme="dark"] .blog-article-page .main-article .article-content h3,
:root[data-scheme="dark"] .about-page .about-header h1,
:root[data-scheme="dark"] .about-page .about-article .article-content h2,
:root[data-scheme="dark"] .about-page .about-article .article-content h3,
:root[data-scheme="dark"] .about-toc h2 { color: var(--card-text-color-main); }

:root[data-scheme="dark"] .widget--toc,
:root[data-scheme="dark"] .about-toc .toc-nav { border-color: rgba(202, 218, 204, .24); }
:root[data-scheme="dark"] .toc-nav li a,
:root[data-scheme="dark"] .about-sidebar .toc-nav li a,
:root[data-scheme="dark"] .blog-page-meta,
:root[data-scheme="dark"] .blog-card time,
:root[data-scheme="dark"] .blog-card p,
:root[data-scheme="dark"] .blog-card-meta,
:root[data-scheme="dark"] .tag-empty,
:root[data-scheme="dark"] .home-feed-heading a,
:root[data-scheme="dark"] .home-post-meta,
:root[data-scheme="dark"] .home-post-card p,
:root[data-scheme="dark"] .home-empty,
:root[data-scheme="dark"] .blog-article-page .main-article .article-subtitle,
:root[data-scheme="dark"] .blog-post-meta,
:root[data-scheme="dark"] .about-page .about-article .article-content,
:root[data-scheme="dark"] .world-heading > p:last-child { color: var(--card-text-color-secondary); }
:root[data-scheme="dark"] .toc-nav li a:hover { background: #2d3a31; color: var(--accent-color); }
:root[data-scheme="dark"] .blog-article-page .main-article .article-content,
:root[data-scheme="dark"] .blog-article-page .main-article .article-content p,
:root[data-scheme="dark"] .blog-article-page .main-article .article-content li,
:root[data-scheme="dark"] .blog-article-page .main-article .article-content blockquote,
:root[data-scheme="dark"] .blog-article-page .main-article .article-content strong,
:root[data-scheme="dark"] .blog-article-page .main-article .article-content em { color: #e2ece3 !important; }

:root[data-scheme="dark"] .blog-card,
:root[data-scheme="dark"] .home-post-card { background: rgba(38, 49, 43, .94); border-color: rgba(202, 218, 204, .18); }
:root[data-scheme="dark"] .archive-post-card { background: rgba(38, 49, 43, .94); border-color: rgba(202, 218, 204, .18); }
:root[data-scheme="dark"] .archive-post-card:hover { background: #2d3a31; border-color: var(--accent-color); box-shadow: 0 7px 20px rgba(0, 0, 0, .18); }
:root[data-scheme="dark"] .archive-year > h2,
:root[data-scheme="dark"] .tag-listing > h2,
:root[data-scheme="dark"] .tag-listing > h1,
:root[data-scheme="dark"] .archive-post-copy h3 { color: var(--card-text-color-main); }
:root[data-scheme="dark"] .archive-post-copy time,
:root[data-scheme="dark"] .archive-post-meta,
:root[data-scheme="dark"] .archive-indicator-arrow { color: var(--card-text-color-secondary); }
:root[data-scheme="dark"] .blog-card-tags span,
:root[data-scheme="dark"] .tag-list a,
:root[data-scheme="dark"] .home-post-tags span,
:root[data-scheme="dark"] .home-sidebar .tagCloud .tagCloud-tags a { background: #2b382f; border-color: rgba(202, 218, 204, .18); color: var(--card-text-color-secondary); }
:root[data-scheme="dark"] .tag-list a:hover { background: #3a4a3e; color: var(--card-text-color-main); }
:root[data-scheme="dark"] .blog-card.has-cover .blog-card-cover::after { background: linear-gradient(90deg, #26312b 0%, rgba(38,49,43,.9) 19%, rgba(38,49,43,0) 52%); }
:root[data-scheme="dark"] .home-post-cover::after { background: linear-gradient(90deg, #26312b 0%, rgba(38,49,43,.83) 22%, rgba(38,49,43,0) 66%); }
:root[data-scheme="dark"] .blog-card-arrow,
:root[data-scheme="dark"] .home-post-arrow,
:root[data-scheme="dark"] .home-sidebar .widget-icon svg,
:root[data-scheme="dark"] .home-sidebar .widget-title { color: var(--card-text-color-secondary); }
:root[data-scheme="dark"] .home-sidebar .widget-archive--list { border-color: rgba(202, 218, 204, .18); }

:root[data-scheme="dark"] .blog-post-tags b,
:root[data-scheme="dark"] .blog-post-tags a,
:root[data-scheme="dark"] .education-entry time,
:root[data-scheme="dark"] .education-school,
:root[data-scheme="dark"] .education-program,
:root[data-scheme="dark"] .about-page .about-article .article-content .experience-title-row h3 { color: var(--card-text-color-main); }
:root[data-scheme="dark"] .experience-kicker,
:root[data-scheme="dark"] .experience-period,
:root[data-scheme="dark"] .experience-organization { color: var(--card-text-color-tertiary); }
:root[data-scheme="dark"] .experience-summary { color: var(--card-text-color-secondary); }
:root[data-scheme="dark"] .experience-links a { color: var(--accent-color); }
:root[data-scheme="dark"] .blog-post-tags a + a::before { color: var(--card-text-color-tertiary); }
:root[data-scheme="dark"] .blog-article-page .main-article .article-title-wrapper { border-color: rgba(202, 218, 204, .24); }
:root[data-scheme="dark"] .post-neighbor { color: var(--card-text-color-secondary); }
:root[data-scheme="dark"] .post-info-card { border-color: rgba(202, 218, 204, .25); }
:root[data-scheme="dark"] .post-info-title,
:root[data-scheme="dark"] .post-info-details dd { color: var(--card-text-color-main); }
:root[data-scheme="dark"] .post-info-url,
:root[data-scheme="dark"] .post-info-details dt { color: var(--card-text-color-tertiary); }
:root[data-scheme="dark"] .post-share-action { background: #2b382f; color: var(--card-text-color-secondary); }
:root[data-scheme="dark"] .post-share-action:hover { background: #3a4a3e; color: var(--card-text-color-main); }
:root[data-scheme="dark"] .post-qr-dialog { background: #26312b; border-color: #4a5d4e; color: var(--card-text-color-main); }
:root[data-scheme="dark"] .post-qr-dialog span,
:root[data-scheme="dark"] .post-qr-close { color: var(--card-text-color-tertiary); }

:root[data-scheme="dark"] .world-atlas,
:root[data-scheme="dark"] #world-map.leaflet-container { background: #263a31; border-color: rgba(202, 218, 204, .18); }
:root[data-scheme="dark"] #world-map .leaflet-tile { filter: saturate(.42) sepia(.1) hue-rotate(85deg) brightness(.7) contrast(.95); }
:root[data-scheme="dark"] #world-map .leaflet-control-zoom a { background: #2c3a31; border-color: #45584a; color: #d8e8da; }
:root[data-scheme="dark"] .country-label,
:root[data-scheme="dark"] .area-label,
:root[data-scheme="dark"] .memory-label,
:root[data-scheme="dark"] .map-caption,
:root[data-scheme="dark"] .world-empty-note,
:root[data-scheme="dark"] .map-credit { background: rgba(35, 47, 40, .94); border-color: #4a5d4e; color: #d6e3d8; }
:root[data-scheme="dark"] .country-label,
:root[data-scheme="dark"] .area-label,
:root[data-scheme="dark"] .memory-label { color: #e4efe5; }
:root[data-scheme="dark"] .world-empty-note strong { color: #eef6ef; }
:root[data-scheme="dark"] .world-empty-note p { color: #c5d3c7; }
:root[data-scheme="dark"] .place-dialog { background: #26312b; color: #edf4ed; }
:root[data-scheme="dark"] .place-dialog-note,
:root[data-scheme="dark"] .place-dialog-gallery figcaption { color: #c7d3c8; }
:root[data-scheme="dark"] .place-dialog-gallery figcaption { border-color: #4a5d4e; }
:root[data-scheme="dark"] .dialog-close { background: #2b382f; border-color: #4a5d4e; color: #edf4ed; }

@media (max-width: 1023px) {
    .container.main-container { gap: 20px; }
    .right-sidebar { display: none; }
    .blog-card { grid-template-columns: minmax(0, 1fr) minmax(155px, 38%); }
}

@media (max-width: 767px) {
    .container.main-container { padding-left: 15px; padding-right: 15px; }
    .custom-archives-page .main.full-width { padding-right: 0; }
    .custom-tags-page .main.full-width { padding-right: 0; }
    .blog-page-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
    .blog-card, .blog-card:not(.has-cover) { grid-template-columns: 1fr; }
    .blog-card.has-cover { display: flex; flex-direction: column; }
    .blog-card.has-cover .blog-card-copy { min-height: 0; order: 1; width: 100%; }
    .blog-card.has-cover .blog-card-cover { min-height: 170px; order: -1; position: relative; width: 100%; }
    .blog-card.has-cover .blog-card-cover::after { display: none; }
    .blog-card-cover { min-height: 170px; order: -1; }
    .home-feed-heading > div { align-items: flex-start; flex-direction: column; gap: 7px; }
    .home-post-card.has-cover .home-post-copy { min-height: 0; padding: 18px 20px; width: 100%; }
    .home-post-card.has-cover { display: flex; flex-direction: column; }
    .home-post-cover { height: 155px; order: -1; position: relative; width: 100%; }
    .home-post-cover::after { background: linear-gradient(180deg, rgba(252,253,251,0) 35%, #fcfdfb 100%); }
    .home-post-arrow { top: 132px; }
    .education-entry { align-items: start; gap: 4px 10px; grid-template-columns: 8px 1fr; }
    .education-entry time { grid-column: 2; }
    .education-entry .education-school,
    .education-entry .education-program { grid-column: 2; }
    .experience-entry { padding: 0 0 23px; }
    .experience-title-row { align-items: flex-start; flex-direction: column; gap: 4px; }
    .experience-summary { margin-top: 12px !important; }
    .blog-card-copy { padding: 23px 24px; }
    .archive-post-card { min-height: 90px; padding: 15px 18px 15px 22px; }
    .archive-post-copy h3 { font-size: 1.48rem; }
    .archive-post-copy time { font-size: 1.1rem; }
    .blog-post-navigation { gap: 12px; grid-template-columns: 1fr; margin-top: 26px; }
    .post-info-card { margin-top: 34px; padding: 18px; }
    .post-info-details { gap: 13px 24px; }
    .post-neighbor { font-size: 1.45rem; }
    .post-neighbor--previous { grid-column: 1; grid-row: auto; }
    .post-neighbor--next { grid-column: 1; grid-row: auto; }
    .blog-article-page .main-article .article-content > p > img,
    .blog-article-page .main-article .article-content .blog-photo { max-width: 100%; }
    .world-atlas, #world-map { min-height: 400px; height: 400px; }
    .world-empty-note { max-width: 250px; padding: 17px 20px; }
    .map-caption { font-size: 1.3rem; left: 18px; }
    .place-dialog-gallery figure { gap: 11px; grid-template-columns: 1fr; }
    .place-dialog-gallery figcaption { border-left: 0; border-top: 1px solid #d9e2d8; padding: 11px 0 0; }
  }
