:root {
  --paper:#f6f7f9;
  --ink:#16191e;
  --muted:#747b88;
  --line:#dfe3e9;
  --blue:#2860e8;
  --blue-pale:#edf2ff;
  --white:#fff;
  --max:1200px;
  font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0
}

button,input,textarea,select {
  font:inherit
}

a {
  color:inherit;
  text-decoration:none
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button:disabled {
  opacity:.5;
  cursor:wait
}

button {
  color:inherit
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #8badff;
  outline-offset:5px
}

button {
  border:0;
  background:none
}

p {
  line-height:1.85
}

::selection {
  background:#cddcff
}

.site-header,main,.site-footer {
  max-width:var(--max);
  margin:auto
}

.site-header {
  height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:30px
}

.brand {
  display:flex;
  gap:14px;
  align-items:center;
  font-size:18px;
  font-weight:750;
  letter-spacing:-.7px
}

.brand-mark {
  display:grid;
  place-content:center;
  position:relative;
  font-size:18px;
  width:37px;
  height:37px;
  background:var(--ink);
  color:white;
  border-radius:9px;
  display:flex;
  align-items:center;
  gap:1px
}

.brand-mark span {
  color:#80a4ff
}

.brand-dot,.footer-name span {
  color:var(--blue)
}

nav {
  display:flex;
  gap:36px;
  align-items:center
}

nav a {
  position:relative;
  font-size:14px;
  color:var(--muted);
  padding:14px 0
}

nav a.active {
  color:var(--ink);
  font-weight:650
}

nav a.active:after {
  content:'';
  position:absolute;
  width:4px;
  height:4px;
  background:var(--blue);
  border-radius:50%;
  bottom:3px;
  left:50%
}

.header-actions {
  display:flex;
  gap:24px;
  align-items:center;
  font-size:12px
}

.language {
  padding:8px 0
}

.language span {
  color:var(--muted)
}

.github-top {
  border-left:1px solid var(--line);
  padding-left:24px
}

.hero {
  position:relative;
  padding:65px 0 60px;
  overflow:hidden
}

.eyebrow {
  font-family:Consolas,monospace;
  font-size:11px;
  letter-spacing:2px;
  display:flex;
  gap:10px;
  align-items:center;
  color:#5e6776
}

.dot {
  width:6px;
  height:6px;
  background:var(--blue);
  border-radius:50%;
  display:inline-block
}

.hero h1 {
  font-size:clamp(100px,13vw,178px);
  font-weight:900;
  letter-spacing:-.075em;
  line-height:1.17;
  margin:34px 0 10px;
  position:relative;
  z-index:1
}

.hero-title {
  position:relative;
  width:max-content;
  max-width:100%
}

.hero-title:after {
  content:'*';
  position:absolute;
  right:-76px;
  top:4px;
  color:var(--blue);
  font:110px Georgia,serif;
  transform:rotate(12deg)
}

.hero-en {
  font-size:clamp(32px,4.7vw,62px);
  letter-spacing:-2.8px;
  font-weight:450;
  margin:0;
  line-height:1.15
}

.hero-en span {
  color:var(--blue)
}

.hero-bottom {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:36px;
  margin-top:35px
}

.intro {
  max-width:530px;
  color:#656d7a;
  font-size:14px;
  margin:0
}

.intro strong {
  font-weight:600;
  color:var(--ink)
}

.hero-actions {
  display:flex;
  gap:12px;
  flex-shrink:0
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  background:var(--ink);
  color:white;
  border:1px solid var(--ink);
  padding:14px 22px;
  font-size:13px;
  border-radius:5px;
  transition:transform .2s,background .2s
}

.button:hover {
  background:#303640;
  transform:translateY(-2px)
}

.button.secondary {
  background:transparent;
  color:var(--ink);
  border-color:var(--line)
}

.button.secondary:hover {
  background:white
}

.button.blue {
  background:var(--blue);
  border-color:var(--blue)
}

.hero-note {
  position:absolute;
  right:5px;
  top:95px;
  color:#808895;
  font:10px/1.8 Consolas,monospace;
  letter-spacing:1px;
  text-align:right
}

.hero-note:before {
  content:'+';
  font-size:28px;
  display:block;
  color:#bbc2ce;
  margin-bottom:36px
}

.interest-strip {
  display:flex;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:21px 0;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  color:#6f7784;
  font:10px Consolas,monospace;
  letter-spacing:1.5px
}

.interests {
  display:flex;
  gap:32px;
  color:#4e5868
}

.interests span:before {
  content:'↗';
  color:var(--blue);
  margin-right:10px
}

.section {
  padding:65px 0
}

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

.section-heading h2 {
  font-size:26px;
  letter-spacing:-1px;
  margin:8px 0 0;
  font-weight:650
}

.section-heading .index {
  font:10px Consolas,monospace;
  color:var(--muted);
  letter-spacing:1.8px
}

.small-link {
  font-size:12px;
  color:#576170;
  white-space:nowrap
}

.small-link:hover {
  color:var(--blue)
}

.project-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:30px
}

.project-card {
  width:100%;
  text-align:left;
  padding:0
}

.project-cover {
  aspect-ratio:1.55;
  overflow:hidden;
  background:#e8ecf2;
  border-radius:7px;
  position:relative
}

.project-cover img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s
}

.project-card:hover img {
  transform:scale(1.035)
}

.project-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:18px
}

.project-meta h3 {
  font-size:16px;
  margin:0;
  font-weight:550
}

.project-meta p {
  font-size:11px;
  color:var(--muted);
  margin:7px 0 0
}

.project-arrow {
  font-size:20px;
  color:var(--muted)
}

.empty-art {
  aspect-ratio:2.8;
  border:1px solid var(--line);
  border-radius:7px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:40px 55px;
  background:linear-gradient(115deg,#edf2fa,#fdfdff);
  overflow:hidden
}

.empty-art:after {
  content:'+';
  position:absolute;
  right:18px;
  top:12px;
  color:#a4b4d2;
  font:22px monospace
}

.draft-shape {
  width:150px;
  height:175px;
  border:1px solid #a3b9ea;
  transform:rotate(-12deg);
  position:relative;
  background:#f7faff;
  box-shadow:18px 13px 0 #dae5ff
}

.draft-shape:before {
  content:'DRAFT / 001';
  position:absolute;
  top:20px;
  left:15px;
  font:9px monospace;
  color:#5976b8
}

.draft-shape:after {
  content:'↗';
  position:absolute;
  bottom:15px;
  right:22px;
  font-size:65px;
  color:var(--blue);
  font-weight:200
}

.empty-copy {
  max-width:55%
}

.empty-copy .eyebrow {
  color:var(--blue);
  font-size:9px
}

.empty-copy h3 {
  font-size:24px;
  font-weight:500;
  letter-spacing:-1px;
  margin:12px 0
}

.empty-copy p {
  font-size:12px;
  color:var(--muted);
  margin:0
}

.writing-section {
  border-top:1px solid var(--line)
}

.article-row {
  display:grid;
  grid-template-columns:120px 1fr 110px 24px;
  align-items:center;
  gap:24px;
  padding:25px 0;
  border-top:1px solid var(--line);
  width:100%;
  text-align:left
}

.article-row:hover h3 {
  color:var(--blue)
}

.article-date,.article-category {
  font:11px Consolas,"Microsoft YaHei",monospace;
  color:var(--muted)
}

.article-row h3 {
  margin:0;
  font-size:17px;
  font-weight:550
}

.article-row p {
  margin:6px 0 0;
  font-size:12px;
  color:var(--muted)
}

.empty-writing {
  border-top:1px solid var(--line);
  padding:30px 0;
  display:flex;
  align-items:center;
  gap:24px
}

.empty-writing span {
  font-size:25px;
  color:#b5c2db
}

.empty-writing p {
  font-size:13px;
  color:var(--muted);
  margin:0
}

.about-strip {
  margin-bottom:70px;
  background:var(--blue-pale);
  border:1px solid #dce5fc;
  border-radius:7px;
  padding:28px 32px;
  display:flex;
  align-items:center;
  gap:24px
}

.about-avatar {
  width:42px;
  height:42px;
  border-radius:50%;
  background:white;
  display:grid;
  place-items:center;
  color:var(--blue);
  font-weight:700
}

.about-strip p {
  font-size:12px;
  color:#64728a;
  flex:1;
  margin:0
}

.about-strip strong {
  color:#2b405f;
  font-weight:550
}

.site-footer {
  border-top:1px solid var(--line);
  padding:38px 0 24px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between
}

.footer-name {
  font-size:22px;
  letter-spacing:-.8px;
  font-weight:650
}

.site-footer p {
  font-size:11px;
  color:var(--muted);
  margin:9px 0
}

.footer-links {
  display:flex;
  align-items:center;
  gap:25px;
  font-size:12px
}

.muted {
  color:var(--muted)
}

.text-button {
  padding:0;
  font-size:inherit
}

.text-button:hover {
  color:var(--blue)
}

.footer-bottom {
  width:100%;
  border-top:1px solid var(--line);
  margin-top:30px;
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  color:#9198a4;
  font:9px Consolas,monospace;
  letter-spacing:1px
}

.footer-status {
  display:flex;
  align-items:center;
  gap:7px
}

.footer-status i {
  width:5px;
  height:5px;
  background:var(--blue);
  border-radius:50%
}

.page-heading {
  padding:65px 0 35px
}

.page-heading h1 {
  font-size:60px;
  letter-spacing:-3px;
  margin:18px 0
}

.page-heading p {
  font-size:14px;
  color:var(--muted);
  max-width:600px
}

.filters {
  display:flex;
  gap:8px;
  margin-bottom:30px;
  flex-wrap:wrap
}

.filter {
  border:1px solid var(--line);
  border-radius:30px;
  padding:8px 18px;
  font-size:12px;
  color:var(--muted)
}

.filter.active {
  background:var(--ink);
  color:white;
  border-color:var(--ink)
}

.page-content {
  padding-bottom:80px;
  min-height:300px
}

.links-tools {
  display:flex;
  gap:15px;
  justify-content:space-between;
  margin-bottom:30px
}

.search {
  background:white;
  border:1px solid var(--line);
  border-radius:5px;
  padding:13px 16px;
  width:min(400px,100%);
  outline-offset:2px
}

.link-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}

.link-card {
  display:flex;
  gap:16px;
  align-items:center;
  padding:24px;
  background:white;
  border:1px solid var(--line);
  border-radius:7px;
  transition:transform .2s,border-color .2s
}

.link-card:hover {
  transform:translateY(-3px);
  border-color:#91b0fa
}

.link-icon {
  width:40px;
  height:40px;
  border-radius:10px;
  background:var(--blue-pale);
  display:grid;
  place-items:center;
  color:var(--blue);
  font-weight:650;
  font-size:17px;
  flex-shrink:0
}

.link-label {
  min-width:0;
  flex:1
}

.link-label strong {
  display:block;
  font-size:14px;
  font-weight:550
}

.link-label small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.link-card>span:last-child {
  color:#8b97ae
}

.detail {
  max-width:850px;
  margin:0 auto;
  padding:50px 0 90px
}

.detail h1 {
  font-size:44px;
  letter-spacing:-1.5px;
  line-height:1.3
}

.detail-meta {
  font-size:12px;
  color:var(--muted);
  margin:20px 0 30px
}

.detail img {
  max-width:100%;
  border-radius:6px
}

.prose {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:16px;
  line-height:2;
  color:#424b59;
  margin:30px 0
}

.back-link {
  font-size:12px;
  color:var(--muted)
}

.admin-bar {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:30px
}

.admin-list {
  display:flex;
  flex-direction:column;
  gap:10px
}

.admin-row {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  padding:18px;
  background:white;
  border:1px solid var(--line);
  border-radius:5px
}

.admin-row strong {
  font-size:14px;
  font-weight:550
}

.admin-row small {
  display:block;
  color:var(--muted);
  margin-top:6px;
  font-size:11px
}

.row-actions {
  display:flex;
  gap:16px;
  flex-shrink:0;
  font-size:12px
}

.danger {
  color:#b93d3d
}

.admin-note {
  padding:16px;
  background:var(--blue-pale);
  font-size:12px;
  color:#50678e;
  border-radius:5px;
  margin-bottom:25px;
  line-height:1.8
}

dialog {
  border:1px solid var(--line);
  border-radius:12px;
  padding:28px;
  width:min(610px,calc(100% - 32px));
  max-height:85vh;
  box-shadow:0 30px 100px #18274630;
  color:var(--ink);
  background:var(--paper)
}

dialog::backdrop {
  background:#17213366;
  backdrop-filter:blur(4px)
}

.modal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}

.modal-head h2 {
  font-size:23px;
  margin:0 0 18px
}

.icon-button {
  font-size:28px;
  width:32px;
  height:32px;
  align-self:flex-start
}

.form-field {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:17px 0;
  font-size:12px;
  color:#626c7b
}

.form-field input,.form-field select,.form-field textarea {
  width:100%;
  padding:12px;
  border:1px solid #d7dce5;
  border-radius:5px;
  color:var(--ink);
  background:white
}

.form-field textarea {
  resize:vertical;
  min-height:100px
}

.form-field input[type=file] {
  font-size:11px
}

.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}

.form-actions {
  display:flex;
  justify-content:flex-end;
  margin-top:24px
}

.form-error {
  color:#b53535;
  font-size:12px;
  line-height:1.6
}

.form-hint {
  font-size:12px;
  color:var(--muted);
  line-height:1.8
}

.check-field {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px
}

.check-field input {
  width:16px;
  height:16px
}

.empty-result {
  font-size:14px;
  color:var(--muted);
  padding:40px 0
}

.error-panel {
  padding:30px;
  background:white;
  border:1px solid var(--line);
  margin:40px 0;
  border-radius:7px
}

.error-panel p {
  color:var(--muted);
  font-size:14px
}

#toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translate(-50%,20px);
  opacity:0;
  pointer-events:none;
  background:var(--ink);
  color:white;
  padding:13px 24px;
  border-radius:6px;
  font-size:13px;
  transition:.2s;
  z-index:10;
  max-width:90%;
  text-align:center
}

#toast.show {
  transform:translate(-50%,0);
  opacity:1
}

.skip-link {
  position:fixed;
  left:20px;
  top:-80px;
  z-index:20;
  background:white;
  padding:12px
}

.skip-link:focus {
  top:12px
}

@media(min-width:1500px) {
  :root {
    --max:1280px
  }
  .hero {
    padding-top:80px;
    padding-bottom:75px
  }
  .hero h1 {
    font-size:190px
  }
}

@media(max-width:1300px) {
  .site-header,main,.site-footer {
    margin-left:6%;
    margin-right:6%
  }
  .hero h1 {
    font-size:13vw
  }
}

@media(max-width:850px) {
  .site-header {
    gap:18px;
    height:90px
  }
  .brand {
    font-size:15px;
    gap:8px
  }
  .brand-mark {
    width:30px;
    height:30px;
    font-size:15px
  }
  nav {
    gap:22px
  }
  .github-top {
    display:none
  }
  .hero-note {
    top:70px;
    font-size:8px
  }
  .hero-title:after {
    right:-50px;
    font-size:75px
  }
  .hero-bottom {
    align-items:flex-start;
    flex-direction:column;
    gap:22px
  }
  .hero {
    padding-top:45px
  }
  .hero h1 {
    font-size:17vw
  }
  .hero-en {
    font-size:45px
  }
  .interest-strip>span {
    display:none
  }
  .interests {
    justify-content:space-between;
    width:100%;
    gap:10px
  }
  .link-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .article-row {
    grid-template-columns:85px 1fr 20px;
    gap:15px
  }
  .article-category {
    display:none
  }
  .empty-art {
    aspect-ratio:2.4;
    padding:30px
  }
  .draft-shape {
    width:100px;
    height:125px
  }
  .draft-shape:after {
    font-size:45px
  }
  .empty-copy h3 {
    font-size:20px
  }
}

@media(max-width:560px) {
  .site-header,main,.site-footer {
    margin-left:22px;
    margin-right:22px
  }
  .site-header {
    height:auto;
    min-height:108px;
    flex-wrap:wrap;
    padding:18px 0 0;
    gap:0
  }
  .brand {
    order:1;
    font-size:16px
  }
  .header-actions {
    order:2
  }
  nav {
    order:3;
    width:100%;
    justify-content:space-between;
    margin-top:12px
  }
  nav a {
    font-size:12px;
    padding:12px 10px
  }
  .hero {
    padding:38px 0
  }
  .hero .eyebrow {
    font-size:9px;
    letter-spacing:1px
  }
  .hero-note {
    display:none
  }
  .hero h1 {
    font-size:24vw;
    letter-spacing:-.09em;
    margin-top:32px;
    margin-bottom:12px
  }
  .hero-title:after {
    font-size:58px;
    right:-37px;
    top:0
  }
  .hero-en {
    font-size:37px;
    letter-spacing:-2px
  }
  .hero-bottom {
    margin-top:26px
  }
  .intro {
    font-size:13px
  }
  .hero-actions {
    width:100%
  }
  .button {
    padding:13px 18px;
    gap:22px;
    font-size:12px
  }
  .interests {
    font-size:8px;
    letter-spacing:0;
    flex-wrap:wrap;
    gap:14px
  }
  .interests span:before {
    margin-right:5px
  }
  .interest-strip {
    padding:18px 0
  }
  .section {
    padding:40px 0
  }
  .section-heading h2 {
    font-size:23px
  }
  .project-grid {
    grid-template-columns:1fr
  }
  .empty-art {
    aspect-ratio:auto;
    min-height:230px;
    padding:25px;
    gap:25px
  }
  .draft-shape {
    width:72px;
    height:100px;
    flex-shrink:0;
    box-shadow:10px 8px 0 #dae5ff
  }
  .draft-shape:before {
    font-size:6px;
    left:9px
  }
  .draft-shape:after {
    font-size:35px;
    right:12px
  }
  .empty-copy {
    max-width:65%
  }
  .empty-copy h3 {
    font-size:18px
  }
  .empty-copy p {
    font-size:11px
  }
  .about-strip {
    padding:22px 18px;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:40px
  }
  .about-strip .small-link {
    margin-left:56px
  }
  .site-footer {
    padding-top:28px
  }
  .footer-links {
    width:100%;
    margin-top:22px;
    justify-content:space-between;
    font-size:11px
  }
  .footer-bottom {
    font-size:8px
  }
  .footer-bottom>span:nth-child(2) {
    display:none
  }
  .page-heading {
    padding:40px 0 22px
  }
  .page-heading h1 {
    font-size:45px
  }
  .link-grid {
    grid-template-columns:1fr
  }
  .link-card {
    padding:18px
  }
  .links-tools {
    flex-wrap:wrap
  }
  .search {
    width:100%
  }
  .article-row {
    grid-template-columns:1fr 20px
  }
  .article-date {
    grid-column:1/-1
  }
  .article-row h3 {
    font-size:16px
  }
  .detail h1 {
    font-size:30px
  }
  .prose {
    font-size:14px
  }
  .form-row {
    grid-template-columns:1fr;
    gap:0
  }
  dialog {
    padding:22px
  }
  .admin-row {
    align-items:flex-start
  }
  .row-actions {
    gap:12px
  }
  .page-content {
    padding-bottom:45px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    transition:none!important;
    animation:none!important
  }
}

