:root {
  --paper: #eef5f4;
  --paper-deep: #dfeae8;
  --ink: #17312d;
  --ink-soft: #324b46;
  --muted: #647873;
  --teal: #2d756a;
  --teal-dark: #205a52;
  --aqua: #8ac2bb;
  --warm: #efc96f;
  --coral: #d57b68;
  --line: rgba(35, 78, 70, 0.14);
  --glass: rgba(247, 252, 251, 0.56);
  --glass-strong: rgba(250, 253, 252, 0.84);
  --shadow: 0 22px 58px rgba(23, 65, 57, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(43, 91, 83, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 91, 83, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  font-family: "Segoe UI Variable Text", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid rgba(213, 123, 104, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}

.glass-panel,
.site-header-inner {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: var(--glass);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(31, 88, 78, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
  backdrop-filter: blur(24px) saturate(1.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 20px 0;
}

.site-header-inner {
  width: min(1120px, 100%);
  min-height: 66px;
  margin: 0 auto;
  padding: 10px 14px 10px 12px;
  border-color: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: max-content;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: inset -7px -7px 0 rgba(239, 201, 111, 0.28);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
}

.brand-text small {
  color: var(--muted);
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

nav a {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 6px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.64);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, #2d756a, #368d80);
  box-shadow: 0 7px 18px rgba(39, 105, 95, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

main {
  width: min(1040px, calc(100% - 40px));
  min-height: calc(100vh - 180px);
  margin: 34px auto 72px;
}

.hero {
  position: relative;
  min-height: 470px;
  padding: 34px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #dfe8e7;
  background-image: url("study-desk.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(225, 239, 236, 0.38) 0%, rgba(232, 242, 240, 0.14) 48%, rgba(13, 47, 42, 0.08) 100%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  content: "";
  background: linear-gradient(var(--teal) 0 46%, var(--warm) 46% 72%, var(--coral) 72% 100%);
}

.glass-filter-svg {
  position: absolute;
  pointer-events: none;
}

.hero-lens {
  position: relative;
  z-index: 2;
  width: min(610px, 66%);
  min-height: 352px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(237, 247, 245, 0.34);
  box-shadow:
    0 30px 72px rgba(22, 58, 52, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(18, 61, 54, 0.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  cursor: grab;
  touch-action: none;
  will-change: left, top;
}

.hero-lens.dragging {
  cursor: grabbing;
  user-select: none;
}

.hero-refraction-stage {
  position: absolute;
  inset: -34px;
  z-index: 0;
  overflow: hidden;
  will-change: filter;
}

.hero-refraction-copy {
  position: absolute;
  max-width: none;
  background-image: url("study-desk.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.hero-glass-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(241, 252, 249, 0.16) 48%, rgba(139, 202, 191, 0.12));
  pointer-events: none;
}

.hero-glass-rim {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    inset 0 2px 1px rgba(255, 255, 255, 0.92),
    inset 1px 0 1px rgba(255, 255, 255, 0.36),
    inset 0 -2px 3px rgba(14, 55, 48, 0.2),
    inset 14px 16px 30px rgba(255, 255, 255, 0.09),
    inset -16px -18px 30px rgba(17, 66, 57, 0.08);
  pointer-events: none;
}

.hero-glass-rim::before {
  position: absolute;
  inset: 2px;
  padding: 1px;
  border-radius: 24px;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), transparent 22%, transparent 72%, rgba(122, 194, 182, 0.38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.hero-content {
  position: relative;
  z-index: 4;
  min-height: 352px;
  padding: 46px 48px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.hero-content::before {
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.94), transparent);
}

.page-kicker,
.section-heading p {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title,
.article-body h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 760;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
}

.hero-content > p {
  max-width: 470px;
  margin: 18px 0 0;
  color: #3a5752;
  font-size: 19px;
}

.hero-link {
  margin-top: 28px;
  color: #dce6e3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.hero-link span {
  transition: transform 180ms ease;
}

.hero-link:hover span {
  transform: translateX(4px);
}

.hero-caption {
  position: absolute;
  right: 20px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  color: rgba(242, 250, 248, 0.88);
  display: flex;
  gap: 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.notice {
  margin: 18px 0 52px;
  padding: 16px 18px;
  border-radius: 8px;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  font-size: 14px;
  box-shadow:
    0 14px 36px rgba(26, 70, 62, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.notice strong {
  color: var(--teal-dark);
}

.section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading p {
  margin-bottom: 3px;
  color: var(--muted);
}

.section h2,
.section-heading h2,
.site-note h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.3;
}

.section-heading > a {
  font-size: 14px;
  font-weight: 650;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-list li {
  position: relative;
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  min-height: 116px;
  padding: 18px 18px 17px 21px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(242, 250, 248, 0.45));
  box-shadow:
    0 12px 30px rgba(27, 68, 61, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(40, 104, 92, 0.06);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.article-list li::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  content: "";
  background: var(--aqua);
}

.article-list li:nth-child(3n + 2)::before {
  background: var(--warm);
}

.article-list li:nth-child(3n)::before {
  background: var(--coral);
}

.article-list li:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 28px rgba(27, 68, 61, 0.09);
  transform: translateY(-2px);
}

.article-list time,
.article-meta {
  color: var(--muted);
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.article-list time {
  margin-bottom: 7px;
}

.article-list a {
  color: var(--ink);
  font-size: 17px;
  font-weight: 680;
  line-height: 1.55;
}

.article-list a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.article-list a:hover {
  text-decoration: none;
}

.site-note {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
}

.site-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.plain-page,
.article-body {
  width: min(790px, 100%);
  margin: 0 auto;
}

.plain-page.glass-panel,
.article-body.glass-panel {
  padding: 46px 54px 54px;
  border-radius: 8px;
}

.page-title {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.plain-page p,
.plain-page li,
.article-body p {
  color: var(--ink-soft);
  font-size: 17px;
}

.plain-page p,
.article-body p {
  margin: 1.15em 0;
}

.article-index {
  width: 100%;
}

.article-index .article-list {
  margin-top: 32px;
}

.article-month + .article-month {
  margin-top: 54px;
}

.month-heading {
  margin: 34px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.month-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.month-heading span {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.article-body {
  padding: 46px 54px 56px;
}

.article-back {
  margin-bottom: 24px;
  color: var(--teal-dark);
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
}

.article-back::before {
  content: "← ";
}

.article-body h1 {
  font-size: 36px;
  line-height: 1.35;
}

.article-meta {
  margin: 14px 0 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-body p {
  line-height: 1.95;
  text-align: justify;
}

.site-footer {
  padding: 28px 20px 34px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer span + span::before {
  margin-right: 24px;
  color: var(--aqua);
  content: "·";
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-panel,
  .site-header-inner {
    background: var(--glass-strong);
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 8px 10px 0;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  nav a {
    white-space: nowrap;
  }

  main {
    width: min(100% - 24px, 720px);
    margin-top: 22px;
  }

  .hero {
    min-height: 430px;
    padding: 28px;
    background-position: 62% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(244, 249, 248, 0.97) 0%, rgba(244, 249, 248, 0.88) 58%, rgba(244, 249, 248, 0.28) 100%);
  }

  .hero-lens {
    width: min(560px, 78%);
    min-height: 350px;
  }

  .hero-content {
    min-height: 350px;
    padding: 40px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .article-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  nav {
    gap: 2px;
    font-size: 13px;
  }

  nav a {
    min-height: 34px;
    padding: 6px 8px;
  }

  .hero {
    min-height: 480px;
    padding: 18px;
    align-items: center;
    background-position: 68% center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(244, 249, 248, 0.99) 0%, rgba(244, 249, 248, 0.92) 56%, rgba(244, 249, 248, 0.24) 100%);
  }

  .hero-lens {
    width: 100%;
    min-height: 400px;
    border-radius: 22px;
  }

  .hero-content {
    min-height: 400px;
    padding: 32px 24px 118px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-content > p {
    font-size: 17px;
  }

  .notice {
    margin-bottom: 40px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .site-note {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plain-page.glass-panel,
  .article-body.glass-panel {
    padding: 34px 22px 38px;
  }

  .page-title {
    font-size: 31px;
  }

  .article-body h1 {
    font-size: 29px;
  }

  .article-body p {
    font-size: 16px;
    text-align: left;
  }

  .site-footer span + span::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hero-refraction-stage {
    display: none;
  }

  .hero-lens {
    background: rgba(247, 251, 250, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
