/* 瓜瓜的博客 */
:root {
  --paper: #f6f8f7;
  --ink: #253b32;
  --text: #35443c;
  --muted: #65746b;
  --accent: #3c654d;
  --line: #dce3dd;
  --wash: #eaf0eb;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body > main { min-height: calc(100svh - 215px); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: #d7e5d7; color: #203f2a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
[hidden] { display: none !important; }
.shell { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.reading-shell { width: min(780px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; background: var(--ink); color: white; padding: 10px 20px; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 28px 24px; border-bottom: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 28px; min-width: 0; }
.wordmark { display: flex; align-items: baseline; gap: 13px; }
.wordmark-name { color: var(--ink); font: 600 26px/1.2 var(--sans); letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; white-space: nowrap; }
.site-nav a { position: relative; color: var(--muted); padding-block: 6px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.site-nav .nav-rss { display: flex; padding: 10px; }
.header-search { display: flex; flex-shrink: 0; align-items: center; width: 200px; min-height: 42px; padding-left: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--wash); color: var(--muted); }
.header-search:focus-within { border-color: var(--accent); background: var(--paper); }
.header-search input { width: 100%; min-width: 0; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 13px; line-height: 1.5; }
.header-search input::placeholder { color: var(--muted); opacity: 1; }
.header-search button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--accent); }
.header-search button:hover { color: var(--ink); }
.home-intro { padding: 44px 0 36px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .12em; margin-bottom: 21px; }
.home-intro h1 { font: 500 clamp(26px, 3vw, 34px)/1.5 var(--sans); color: var(--ink); letter-spacing: -.015em; }
.intro-description { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 9px; }
.writing { padding-bottom: 78px; }
.section-bar { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.section-bar h2 { font-size: 14px; font-weight: 500; color: var(--ink); }
.article-count { margin-left: 8px; font: 11px var(--sans); color: var(--muted); vertical-align: middle; }
.article-entry { padding: 28px 0 33px; border-bottom: 1px solid var(--line); }
.article-entry:first-child { padding-top: 0; }
.article-entry-copy { min-width: 0; max-width: 780px; padding: 8px 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.article-meta time { font: 11px/1.5 var(--sans); letter-spacing: .02em; }
.article-meta a { color: var(--accent); }
.article-meta a:hover { text-decoration: underline; }
.article-entry h3 { font: 600 26px/1.5 var(--sans); color: var(--ink); margin-top: 17px; letter-spacing: -.02em; text-wrap: pretty; }
.article-entry h3 a:hover { color: var(--accent); }
.article-summary { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 15px 0 20px; }
.article-subtitle { font-size: 14px; color: var(--muted); margin-top: 8px; }
.read-link { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; font-size: 13px; color: var(--accent); }
.read-link span { font-size: 18px; transition: transform .15s ease; }
.read-link:hover span { transform: translateX(3px); }
.empty-state { padding-block: 50px; color: var(--muted); font-size: 14px; }
.empty-state a { color: var(--accent); text-decoration: underline; }
.site-footer { padding: 25px 0 30px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; }
.footer-note { margin-left: 20px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.page-content, .tags-page { padding-block: 68px 90px; }
.page-heading { margin-bottom: 45px; }
.page-heading h1, .error-page h1 { font: 600 36px/1.4 var(--sans); color: var(--ink); }
.page-description { color: var(--muted); font-size: 14px; margin-top: 15px; }
.post { padding: 48px 0 80px; }
.back-to-top { position: fixed; right: calc(24px + env(safe-area-inset-right)); bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 48px; min-height: 56px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--accent); box-shadow: 0 2px 8px rgba(37, 59, 50, .08); font-size: 11px; line-height: 1.3; }
.back-to-top:hover { border-color: var(--accent); background: var(--wash); color: var(--ink); }
.back-link { display: inline-block; font-size: 12px; color: var(--muted); }
.back-link:hover { color: var(--accent); text-decoration: underline; }
.post-heading { margin-bottom: 35px; }
.post-heading .article-meta { margin-top: 44px; }
.post-heading h1 { color: var(--ink); font: 600 clamp(28px, 3.5vw, 36px)/1.5 var(--sans); letter-spacing: -.025em; margin-top: 16px; text-wrap: pretty; }
.post-subtitle { font-size: 18px; color: var(--muted); margin-top: 12px; }
.post-author { font-size: 12px; color: var(--muted); margin-top: 18px; }
.prose { font-size: 17px; line-height: 1.95; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.4em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--ink); font-weight: 600; line-height: 1.5; margin: 2em 0 .8em; scroll-margin-top: 30px; }
.prose h1 { font-size: 30px; }
.prose h2 { font-size: 25px; }
.prose h3 { font-size: 21px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1.5em; }
.prose li { padding-left: .25em; margin-bottom: .35em; }
.prose li p { margin-bottom: .6em; }
.prose blockquote { border-left: 2px solid #a2b9a7; margin: 30px 0; padding: 2px 0 2px 24px; color: var(--muted); }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; font-size: 12px; font-style: normal; margin-top: 12px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose code { font: .85em/1.7 var(--mono); background: var(--wash); padding: .15em .35em; border-radius: 3px; }
.prose pre { background: #edf1ed; padding: 22px; border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; line-height: 1.7; font-size: 14px; }
.prose pre code { background: transparent; padding: 0; font-size: inherit; }
.prose .highlight { background: transparent; }
.prose .highlight pre { margin-block: 24px; }
.prose table { display: block; width: 100%; border-collapse: collapse; margin: 28px 0; overflow-x: auto; font-size: 14px; }
.prose th, .prose td { padding: 10px 16px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--wash); }
.prose img { margin-inline: auto; }
.film-photo { margin: 45px 0; }
.film-photo img { width: 100%; height: auto; border-radius: 2px; background: var(--wash); }
.film-photo figcaption { display: flex; justify-content: space-between; color: var(--muted); font: 10px/1.5 var(--sans); margin-top: 10px; letter-spacing: .06em; }
.image-fallback { display: block; background: var(--wash); color: var(--muted); padding: 35px; text-align: center; font-size: 13px; }
.post-end { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 52px; padding-top: 24px; font-size: 11px; color: var(--muted); }
.post-end a:hover { color: var(--accent); }
.post-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 45px; }
.post-pagination div:last-child { text-align: right; }
.post-pagination span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.post-pagination a { font-size: 14px; color: var(--ink); }
.post-pagination a:hover { text-decoration: underline; }
.post-toc { background: var(--wash); padding: 20px 24px; margin-block: 30px; font-size: 13px; }
.post-toc p { color: var(--muted); font-size: 12px; }
.post-toc ol { margin: 12px 0 0; padding-left: 18px; }
.post-toc li { margin-top: 6px; }
.post-toc .toc-subheading { margin-left: 16px; }
.post-toc a:hover { text-decoration: underline; }
.tag-index { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.tag-index a { border: 1px solid var(--line); color: var(--accent); padding: 7px 18px; border-radius: 3px; font-size: 13px; }
.tag-index a:hover { background: var(--wash); border-color: #b4c9b8; }
.tag-section { margin-top: 40px; scroll-margin-top: 36px; }
.tag-section h2 { font: 600 23px/1.4 var(--sans); color: var(--ink); margin-bottom: 15px; }
.archive-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.archive-row a { font-size: 15px; color: var(--text); }
.archive-row a:hover { color: var(--accent); }
.archive-row time { flex-shrink: 0; font: 11px var(--sans); color: var(--muted); }
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 86px; align-items: start; padding-block: 64px; }
.about-comments { padding-bottom: 80px; }
.about-comments .post-comments { margin-top: 0; }
.about-photo img { width: 100%; border-radius: 3px; }
.about-copy { min-width: 0; max-width: 660px; }
.about-copy h1 { font: 600 32px/1.5 var(--sans); letter-spacing: -.025em; color: var(--ink); margin-bottom: 28px; }
.about-copy .prose { font-size: 15px; }
.about-copy blockquote { margin-top: 38px; }
.about-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; font-size: 12px; color: var(--accent); }
.about-links a:hover { text-decoration: underline; }
.about-wechat { width: 240px; max-width: 100%; padding-top: 6px; break-inside: avoid; }
.about-wechat h2 { margin-bottom: 14px; font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--ink); }
.wechat-qr { display: block; width: 217px; max-width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: zoom-in; }
.wechat-qr:hover { border-color: var(--accent); }
.wechat-qr img { width: 215px; height: auto; }
.wechat-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.error-page { padding-block: 110px 130px; }
.error-page p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 24px 0 32px; }
.error-page .back-link { display: block; margin-top: 28px; }
.text-button { background: none; color: var(--accent); border: 0; padding: 0; font-size: 14px; }
@media (min-width: 1200px) {
  .film-photo { margin-inline: -120px; }
}
@media (max-width: 950px) {
  .about-page { gap: 48px; }
  .about-copy h1 { font-size: 30px; }
}
@media (max-width: 700px) {
  .shell, .reading-shell { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; gap: 12px 18px; padding-block: 20px; }
  .header-actions { display: contents; }
  .header-search { width: min(100%, 200px); margin-left: auto; }
  .header-search input { font-size: 16px; }
  .wordmark { gap: 0; }
  .wordmark-name { font-size: 25px; }
  .site-nav { gap: 16px; margin-left: auto; font-size: 13px; }
  .site-nav .nav-rss { padding: 8px; margin-right: -8px; }
  .home-intro { padding-block: 32px 28px; }
  .home-intro h1 { font-size: 26px; }
  .eyebrow { font-size: 11px; margin-bottom: 17px; }
  .intro-description { font-size: 13px; margin-top: 8px; }
  .section-bar { margin-bottom: 18px; }
  .article-entry-copy { padding: 0; }
  .article-entry h3 { font-size: 23px; line-height: 1.5; margin-top: 13px; }
  .article-summary { font-size: 14px; margin-block: 12px 14px; }
  .article-meta { font-size: 11px; gap: 12px; }
  .article-meta time { font-size: 10px; }
  .writing { padding-bottom: 48px; }
  .site-footer { display: block; padding-block: 24px 28px; font-size: 10px; }
  .footer-note { margin-left: 12px; }
  .footer-links { margin-top: 14px; gap: 23px; font-size: 11px; }
  .post { padding-block: 30px 55px; }
  .back-to-top { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .post-heading .article-meta { margin-top: 32px; }
  .post-heading h1 { font-size: 28px; line-height: 1.5; }
  .prose { font-size: 16px; line-height: 1.95; }
  .film-photo { margin-block: 32px; }
  .film-photo figcaption { font-size: 9px; }
  .post-end { font-size: 10px; }
  .post-pagination { gap: 20px; }
  .post-pagination a { font-size: 12px; }
  .page-content, .tags-page { padding-block: 44px 60px; }
  .page-heading h1, .error-page h1 { font-size: 30px; }
  .page-heading { margin-bottom: 32px; }
  .archive-row { display: block; padding-block: 15px; }
  .archive-row time { display: block; margin-top: 8px; }
  .about-page { display: flex; flex-direction: column; gap: 35px; align-items: stretch; padding-block: 38px 44px; }
  .about-comments { padding-bottom: 48px; }
  .about-photo img { width: min(100%, 320px); }
  .about-copy h1 { font-size: 28px; margin-bottom: 24px; }
  .about-copy .prose { font-size: 15px; }
  .about-links { margin-top: 28px; }
  .error-page { padding-block: 80px 100px; }
}
@media (max-width: 370px) {
  .site-nav { gap: 14px; }
  .home-intro h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .back-link, .back-to-top, .post-end a, .post-pagination, .post-toc, .post-comments, .about-comments { display: none; }
  .reading-shell { width: 100%; }
  .post { padding: 0; }
  .film-photo { margin-inline: 0; break-inside: avoid; }
  .prose pre { white-space: pre-wrap; }
}

.keynote-frame iframe { width: 100%; min-height: 450px; border: 0; }

.post-comments { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-comments h2 { margin-bottom: 18px; font-size: 18px; font-weight: 600; color: var(--ink); }
.post-comments .twikoo { max-width: 100%; margin-inline: 0; color: var(--text); font: 14px/1.7 var(--sans); }
.post-comments .twikoo input, .post-comments .twikoo textarea, .post-comments .twikoo button { font-family: var(--sans); }
.post-comments .twikoo .tk-submit input.tk-input__inner,
.post-comments .twikoo .tk-submit .tk-input-group__prepend { height: 40px; line-height: 40px; }
.post-comments .twikoo .tk-submit .tk-input-group__prepend { background: var(--wash); }
.post-comments .twikoo .tk-submit textarea.tk-input__inner { min-height: 132px; padding: 12px; line-height: 1.8; }
.post-comments .twikoo .tk-submit .tk-input__inner:focus { border-color: var(--accent); }
.post-comments .twikoo .tk-input__inner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-comments .twikoo .tk-button--primary { background: var(--accent); border-color: var(--accent); }
.post-comments .twikoo .tk-button--primary:not(.is-disabled):hover,
.post-comments .twikoo .tk-button--primary:not(.is-disabled):focus,
.post-comments .twikoo .tk-button--primary:not(.is-disabled):active { background: var(--ink); border-color: var(--ink); }
.post-comments .twikoo .tk-button--primary.is-disabled,
.post-comments .twikoo .tk-button--primary.is-disabled:hover,
.post-comments .twikoo .tk-button--primary.is-disabled:focus,
.post-comments .twikoo .tk-button--primary.is-disabled:active { background: var(--accent); border-color: var(--accent); }
.post-comments .twikoo .tk-action-link,
.post-comments .twikoo .tk-action-icon,
.post-comments .twikoo .tk-expand,
.post-comments .twikoo .tk-nick-link:hover { color: var(--accent); }
.post-comments .twikoo .tk-comments .tk-extras, .post-comments .twikoo .tk-comments .tk-time { color: var(--muted); }
.post-comments .twikoo .tk-extra-text { line-height: 1.4; }
.post-comments .twikoo .tk-content { font-size: 15px; line-height: 1.8; word-break: normal; overflow-wrap: anywhere; }
.post-comments .twikoo .tk-content p + p { margin-top: .75em; }
.post-comments .comment-status, .post-comments noscript p { color: var(--muted); font-size: 14px; }
.comment-retry { color: var(--accent); background: var(--wash); border: 1px solid var(--line); border-radius: 3px; margin-top: 12px; padding: 9px 15px; font-size: 14px; }
.comment-retry:hover { border-color: var(--accent); }
@media (max-width: 767px) {
  .post-comments .twikoo .tk-input input, .post-comments .twikoo .tk-input textarea { font-size: 16px; }
}
