/* Ocean notebook: local styles, shared by all Hexo pages. */
:root {
  --paper: #f6f7f4;
  --sheet: #fff;
  --ink: #233b48;
  --muted: #6a7e86;
  --line: #dde7e5;
  --accent: #167d8d;
  --wash: #edf5f3;
  --card-bg: var(--sheet);
  --font-color: var(--ink);
  --text-highlight-color: var(--ink);
}
[data-theme="dark"] {
  --paper: #101f28;
  --sheet: #182d37;
  --ink: #dfebe9;
  --muted: #a2b7bd;
  --line: #2c4650;
  --accent: #79c9d2;
  --wash: #203e47;
  --card-bg: var(--sheet);
  --font-color: var(--ink);
  --text-highlight-color: var(--ink);
}
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { background: var(--paper); color: var(--ink); }
::selection { background: #b5dfda; color: #112a38; }
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #d99a43; outline-offset: 5px; border-radius: 4px;
}
#page-header { background-color: #123440; }
#page-header::before { background: transparent !important; }
#page-header.full_page { height: 540px; min-height: 0; background-attachment: scroll; }
#page-header #nav { height: 76px; padding: 0 max(32px, calc((100vw - 1320px) / 2)); box-shadow: none; }
#nav .site-name { font-size: 20px; letter-spacing: .02em; }
#nav .site-page { font-size: 14px; }
#nav .menus_items .menus_item { padding: 0 0 0 17px; }
#nav .menus_items .menus_item .site-page::after { background: #e5bf77; height: 2px; }
#page-header.nav-fixed #nav { background: var(--sheet); box-shadow: 0 2px 20px #102c3810; }
#page-header.nav-fixed #nav a, #page-header.nav-fixed #nav span.site-page { color: var(--ink); }
#page-header.full_page #site-info {
  position: relative; top: auto; margin: 0 auto; padding: 139px 48px 54px; max-width: 1320px; text-align: left;
}
#page-header.full_page #site-title {
  text-align: left; color: #f1f6ef; font-size: clamp(32px, 3.7vw, 50px); font-weight: 650; letter-spacing: .04em; text-shadow: none;
}
.hero-eyebrow, .notebook-eyebrow { font-family: 'Cascadia Code', Consolas, monospace; font-size: 11px; letter-spacing: .2em; }
.hero-eyebrow { color: #a1c9ca; margin-bottom: 14px; }
.hero-description { color: #e7f0eb; font-size: 23px; letter-spacing: .04em; margin: 16px 0 4px; }
.hero-note { color: #b4cbd0; font-size: 14px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; align-items: center; }
.hero-actions a { padding: 10px 20px; border-radius: 7px; font-size: 14px; font-weight: 600; transition: transform .2s, background .2s; }
.hero-actions a:hover { transform: translateY(-2px); }
.hero-actions a.hero-primary { background: #d7eae0; color: #173e4a; }
.hero-primary span { margin-left: 18px; }
.hero-actions a.hero-secondary { border: 1px solid #5c838c; color: #e0efec; }
.hero-actions a.hero-secondary:hover { background: #ffffff12; }
.hero-caption { color: #a5c3c8; font-size: 12px; margin-top: 27px; letter-spacing: .07em; }
.hero-dot { display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: #e5bf77; }
#page-header #scroll-down { bottom: 13px; }
#page-header #scroll-down i { font-size: 17px; animation: none; opacity: .6; }
#page-header.not-home-page { height: 260px; }
#page-header #page-site-info { top: 125px; }
#page-header.not-home-page #site-title { font-size: 34px; letter-spacing: .05em; }
#page-header.post-bg { height: 320px; }
#page-header.post-bg::before { background: linear-gradient(90deg, #102c38d9, #102c3840) !important; }
#page-header #post-info { bottom: 44px; }
#post-info .post-title { font-size: clamp(26px, 3.3vw, 38px); line-height: 1.45; text-shadow: none; }
#post-info #post-meta { color: #d2e5e5; font-size: 13px; }
.layout { max-width: 1320px; padding: 40px 32px 60px; gap: 26px; }
.layout > div:first-child { min-width: 0; }
#aside-content { width: 270px; flex: 0 0 270px; padding-left: 0; }
#recent-posts { flex: 1; width: calc(100% - 296px); }
.notebook-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 22px; gap: 12px; }
.notebook-eyebrow { color: var(--muted); font-size: 10px; }
.notebook-heading h2 { margin: 0; color: var(--ink); font-size: 25px; font-weight: 600; letter-spacing: .04em; }
.notebook-heading > a { color: var(--accent); font-size: 13px; border-bottom: 1px solid var(--line); }
#recent-posts .recent-post-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#recent-posts .recent-post-item {
  display: block; margin: 0; width: 100%; height: auto; min-height: 215px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--sheet); box-shadow: 0 3px 12px #153e4803; transition: border-color .2s, box-shadow .2s, transform .2s;
}
#recent-posts .recent-post-item:hover { transform: translateY(-3px); border-color: #8ab6b8; box-shadow: 0 8px 24px #153e480a; }
#recent-posts .recent-post-item > .recent-post-info { padding: 26px 26px 24px; width: 100%; height: auto; }
.note-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; font-size: 11px; color: var(--muted); }
.note-level { flex-shrink: 0; color: var(--accent); background: var(--wash); padding: 2px 9px; border-radius: 4px; font-size: 11px; }
.note-level[data-level="提高"], .note-level[data-level="专题"] { color: #9c6728; background: #faf1e0; }
[data-theme="dark"] .note-level[data-level="提高"], [data-theme="dark"] .note-level[data-level="专题"] { color: #eac589; background: #493d2b; }
#recent-posts .recent-post-item .article-title { color: var(--ink); font-size: 20px; line-height: 1.5; -webkit-line-clamp: 2; }
#recent-posts .recent-post-item .article-title:hover { color: var(--accent); }
#recent-posts .recent-post-item .article-meta-wrap { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
#recent-posts .article-meta-wrap > .article-meta { display: none; }
#recent-posts .post-meta-date .article-meta-label { margin: 0 5px; }
#recent-posts .recent-post-item .content { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.9; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
#aside-content .card-widget, .layout > #page, .layout > #post, .layout > #archive, .layout > #tag, .layout > #category {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; box-shadow: none;
}
#aside-content .card-widget { padding: 22px; margin-top: 20px; }
#aside-content > .card-widget:first-child { margin-top: 0; }
#aside-content .card-info { background: linear-gradient(155deg, var(--wash), var(--sheet) 70%); }
#aside-content .avatar-img { width: 88px; height: 88px; border: 4px solid var(--sheet); box-shadow: 0 0 0 1px var(--line); margin: 3px auto 12px; }
#aside-content .author-info-name { font-size: 22px; color: var(--ink); }
#aside-content .author-info-description { color: var(--muted); font-size: 13px; }
[data-theme="dark"] .social-icon .fa-github { color: var(--ink) !important; }
#aside-content .site-data .headline { font-size: 12px; color: var(--muted); }
#aside-content .site-data .length-num { font-family: Georgia, serif; font-size: 24px; }
#aside-content .card-info #card-info-btn { background: #1e6170; border-radius: 6px; font-size: 13px; padding: 7px 0; }
#aside-content .item-headline { font-size: 15px; font-weight: 600; }
#aside-content .item-headline i { color: var(--accent); }
#aside-content .aside-list-item .content .title { font-size: 13px; line-height: 1.7; }
#aside-content .aside-list-item .content time { font-size: 11px; color: var(--muted); }
.layout > #page, .layout > #post { padding: 38px 42px; }
#article-container { line-height: 1.95; overflow-wrap: break-word; font-size: 16px; }
#article-container h1, #article-container h2, #article-container h3 { color: var(--ink); letter-spacing: .01em; }
#article-container h2 { margin: 1.8em 0 .8em; padding-bottom: .4em; border-bottom: 1px solid var(--line); font-size: 1.5em; }
#article-container a { color: var(--accent); }
#article-container blockquote { border-left: 3px solid var(--accent); background: var(--wash); color: var(--muted); border-radius: 0 8px 8px 0; padding: 12px 18px; font-size: 14px; }
#article-container figure.highlight { border-radius: 9px; margin: 22px 0; font-size: 13px; }
#article-container pre { tab-size: 4; }
#article-container .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 8px 0; }
#article-container table { font-size: 14px; }
.acm-notebook #article-container > ul:first-of-type { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.acm-notebook #article-container > ul:first-of-type li { margin: 0; }
.acm-notebook #article-container > ul:first-of-type a { display: block; background: var(--wash); border: 1px solid var(--line); padding: 5px 12px; border-radius: 6px; font-size: 13px; }
.acm-notebook #article-container > ul:not(:first-of-type) { padding-left: 22px; }
.acm-notebook #article-container > ul:not(:first-of-type) li { margin: 6px 0; font-size: 14px; color: var(--muted); }
#pagination { margin-top: 30px; }
#pagination .page-number, #pagination .extend { border-radius: 6px; box-shadow: none; }
#pagination .page-number.current { background: #1e6170; }
#footer { background: #102e3a; margin-top: 12px; }
#footer-wrap { color: #b6ced1; padding: 32px 20px; font-size: 12px; line-height: 2; }
#footer-wrap a { color: #d9e9e5; }
#rightside > div > button, #rightside > div > a { border-radius: 7px; background: #1e6170; }
#local-search .search-dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); }
#local-search .search-dialog-title, #local-search .search-result-title { color: var(--accent); }
#links .link-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#links .link-navigation::after { display: none; }
#links .link-navigation .card { width: 100%; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; float: none; background: var(--wash); }
#links .link-navigation .card:hover { transform: translateY(-3px); }
#links .card .card-header .info { white-space: normal; color: var(--muted); }
#links .card .card-header a { color: var(--accent); }
@media (min-width: 1500px) { #page-header.full_page { background-size: cover; } }
@media (max-width: 1100px) {
  #page-header #nav { padding: 0 24px; }
  #nav .menus_items .menus_item { padding-left: 11px; }
  #page-header.full_page #site-info { padding-left: 32px; }
  #aside-content { width: 240px; flex-basis: 240px; }
  .layout { padding: 30px 24px 48px; gap: 20px; }
  #recent-posts .recent-post-item > .recent-post-info { padding: 21px; }
  #recent-posts .recent-post-items { gap: 16px; }
  .layout > #page, .layout > #post { padding: 30px; }
}
@media (max-width: 900px) and (min-width: 769px) {
  #recent-posts .recent-post-items { grid-template-columns: 1fr; }
  #recent-posts .recent-post-item { min-height: 0; }
}
@media (max-width: 768px) {
  #page-header.full_page { height: 485px; background-position: 66% center; }
  #page-header.full_page::before { background: linear-gradient(90deg, #112c38ef, #112c3899) !important; }
  #page-header #nav { height: 64px; padding: 0 20px; }
  #nav .site-name { font-size: 18px; }
  #page-header.full_page #site-info { padding: 121px 25px 28px; }
  #page-header.full_page #site-title { font-size: 34px; }
  .hero-description { font-size: 19px; margin-top: 18px; }
  .hero-note { font-size: 12px; margin-top: 5px; margin-bottom: 24px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .16em; }
  .hero-actions { gap: 10px; }
  .hero-actions a { padding: 9px 13px; font-size: 12px; }
  .hero-primary span { margin-left: 10px; }
  .hero-caption { font-size: 11px; margin-top: 26px; }
  #page-header.not-home-page { height: 220px; }
  #page-header #page-site-info { top: 110px; }
  #page-header.not-home-page #site-title { font-size: 28px; }
  #page-header.post-bg { height: 300px; }
  #page-header #post-info { bottom: 28px; padding: 0 8px; }
  #post-info .post-title { font-size: 26px; }
  #post-info #post-meta { font-size: 11px; }
  .layout { padding: 26px 16px 36px; gap: 22px; }
  #recent-posts { width: 100%; }
  #recent-posts .recent-post-items { grid-template-columns: 1fr; gap: 15px; }
  #recent-posts .recent-post-item { min-height: 0; }
  #recent-posts .recent-post-item > .recent-post-info { padding: 22px; }
  #recent-posts .recent-post-item .article-title { font-size: 21px; }
  .notebook-heading { margin-bottom: 18px; }
  .notebook-heading h2 { font-size: 23px; }
  .notebook-heading > a { font-size: 12px; }
  #aside-content { width: 100%; flex-basis: auto; }
  .layout > #page, .layout > #post { padding: 25px 21px; }
  #article-container { font-size: 15px; }
  #links .link-navigation { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
