/*
Theme Name: ZQLoveGIS Theme
Theme URI: https://zqlovegis.cn
Author: zq
Author URI: https://zqlovegis.cn
Description: A modern GIS portfolio and technical blog theme.
Version: 0.1.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: zqlovegis-theme
*/

body {
  background: #f6f4ef;
  color: #09111f;
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", sans-serif;
  margin: 0;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(0, 124, 186, 0.12), transparent 20%),
    radial-gradient(circle at 88% 10%, rgba(155, 81, 224, 0.1), transparent 18%),
    radial-gradient(circle at 78% 78%, rgba(46, 164, 79, 0.1), transparent 22%),
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    linear-gradient(90deg, rgba(9, 17, 31, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(9, 17, 31, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 36px 36px, 36px 36px;
  background-position: 0 0, 0 0, 0 0, 0 0, center center, center center;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.paper-dashboard-page {
  background: #f6f4ef;
}

.paper-site-header,
.paper-site-footer,
.paper-dashboard,
.paper-content-shell {
  width: min(1140px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.paper-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 18px;
  padding-bottom: 14px;
}

.paper-site-header__inner,
.paper-site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.paper-site-header__inner {
  padding: 16px 22px;
  border: 1px solid rgba(232, 230, 223, 0.92);
  border-radius: 18px;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(9, 17, 31, 0.06);
}

.paper-site-brand__title {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
}

.paper-site-brand__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #007cba, rgba(155, 81, 224, 0.75));
}

.paper-site-brand__subtitle {
  margin: 2px 0 0;
  color: #8190a2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  position: relative;
  padding-left: 18px;
}

.paper-site-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.paper-site-brand__subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(129, 144, 162, 0.72);
  transform: translateY(-50%);
}

.paper-site-brand__subtitle::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(129, 144, 162, 0.76);
  transform: translateY(-50%);
}

.paper-site-nav,
.paper-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.paper-site-nav a,
.paper-site-footer__links a {
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
}

.paper-site-nav a:hover,
.paper-site-footer__links a:hover {
  text-decoration: none;
}

.paper-site-nav a::after,
.paper-site-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.paper-site-nav a:hover::after,
.paper-site-footer__links a:hover::after {
  transform: scaleX(1);
}

.paper-site-nav a.is-active {
  color: #0f3f5c;
}

.paper-site-nav a.is-active::after {
  transform: scaleX(1);
}

.paper-dashboard {
  display: grid;
  grid-template-columns: 7fr 3fr;
  column-gap: 40px;
  align-items: start;
  max-width: 1140px;
  margin-top: 28px;
  margin-bottom: 56px;
}

.paper-main-column,
.paper-sidebar {
  min-width: 0;
}

.paper-sidebar {
  position: sticky;
  top: 40px;
}

.paper-panel {
  background: #ffffff;
  border: 1px solid #e8e6df;
  border-radius: 8px;
  padding: 32px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.02),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  position: relative;
  overflow: hidden;
}

.paper-panel::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 124, 186, 0.22), rgba(0, 124, 186, 0));
  pointer-events: none;
}

.paper-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -72px;
  top: -72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 124, 186, 0.08), rgba(0, 124, 186, 0));
  pointer-events: none;
}

.paper-panel + .paper-panel,
.paper-sidebar .paper-panel + .paper-panel {
  margin-top: 24px;
}

.paper-dashboard h1,
.paper-about h1,
.paper-about h2,
.paper-about h3,
.paper-dashboard h2,
.paper-dashboard h3 {
  margin: 0 0 16px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  line-height: 1.3;
  color: #09111f;
}

.paper-dashboard h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.paper-dashboard h2,
.paper-about h2 {
  font-size: 1.5rem;
}

.paper-dashboard h3,
.paper-about h3 {
  font-size: 1.1rem;
}

.paper-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #8190a2;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.paper-kicker {
    margin: 0 0 8px;
    color: #0f3f5c;
    font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.paper-english-desc {
  margin: 0 0 16px;
  color: #555555;
  font-style: italic;
  font-size: 0.88rem;
}

.paper-lead,
.paper-lab p,
.paper-bio,
.paper-track p,
.paper-empty-state p {
  color: #555555;
  line-height: 1.8;
}

.paper-lead {
    margin: 0 0 18px;
    font-size: 0.96rem;
  }

.paper-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 24px;
  align-items: start;
}

.paper-hero-copy {
  min-width: 0;
}

.paper-map-frame {
  position: relative;
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(15, 63, 92, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(rgba(15, 63, 92, 0.04), rgba(15, 63, 92, 0.04)),
    linear-gradient(90deg, rgba(15, 63, 92, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(15, 63, 92, 0.06) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.paper-map-frame__label {
  display: inline-block;
  margin-bottom: 10px;
  color: #8190a2;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-map-frame__grid {
  position: relative;
  height: 92px;
  border: 1px solid rgba(15, 63, 92, 0.16);
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 36%, rgba(15, 63, 92, 0.18), transparent 18%),
    radial-gradient(circle at 72% 68%, rgba(15, 63, 92, 0.16), transparent 16%),
    linear-gradient(90deg, rgba(15, 63, 92, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 63, 92, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 16px 16px, 16px 16px;
}

.paper-map-frame__grid::before,
.paper-map-frame__grid::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(15, 63, 92, 0.62);
}

.paper-map-frame__grid::before {
  left: 22%;
  top: 26%;
  width: 4px;
  height: 4px;
}

.paper-map-frame__grid::after {
  right: 18%;
  bottom: 22%;
  width: 5px;
  height: 5px;
}

.paper-map-frame__axis {
  position: absolute;
  color: #8190a2;
  font-size: 10px;
  font-family: "IBM Plex Mono", monospace;
}

.paper-map-frame__axis--north {
  top: 12px;
  right: 14px;
}

.paper-map-frame__axis--east {
  right: 14px;
  bottom: 12px;
}

.paper-hero-note,
.paper-profile-note {
    margin: 10px 0 0;
    color: #8190a2;
    font-size: 0.76rem;
    line-height: 1.65;
  }

.paper-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.paper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.paper-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.paper-btn--primary {
  background: linear-gradient(135deg, #0b1a2d 0%, #124a74 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 74, 116, 0.22);
}

.paper-btn--outline {
  border: 1px solid #09111f;
  color: #09111f;
  background: rgba(255, 255, 255, 0.75);
}

.paper-lab-link {
  color: #007cba;
  text-decoration: none;
}

.paper-lab-link:hover {
  text-decoration: underline;
}

.paper-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 8px;
}

.paper-article-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #e8e6df;
  transition: transform 0.16s ease, background-color 0.16s ease;
  position: relative;
}

.paper-article-item:hover {
  transform: translateX(2px);
  background: rgba(9, 17, 31, 0.015);
}

.paper-article-item:last-child {
  border-bottom: none;
}

.paper-article-date {
  width: 90px;
  flex-shrink: 0;
  color: #8190a2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
}

.paper-article-info {
  min-width: 0;
}

.paper-article-info h3 {
  margin-bottom: 8px;
}

.paper-article-info h3 a {
  text-decoration: none;
  box-shadow: inset 0 -1px 0 transparent;
  transition: box-shadow 0.18s ease;
}

.paper-article-info h3 a:hover {
  text-decoration: none;
  box-shadow: inset 0 -1px 0 currentColor;
}

.paper-article-info p {
  margin: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.7;
}

.paper-real-name {
    margin: -10px 0 6px;
    color: #555555;
    font-size: 0.92rem;
  }

.paper-profile-head {
    margin-bottom: 14px;
  }

.paper-profile-head--compact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.paper-profile-avatar {
    display: block;
    width: 76px;
    height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  object-fit: cover;
  box-shadow:
    0 6px 18px rgba(9, 17, 31, 0.08),
    0 0 0 1px rgba(0, 124, 186, 0.16);
}

.paper-profile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

.paper-profile-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #0f3f5c;
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
  width: fit-content;
}

.paper-profile-links svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
}

.paper-profile-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.paper-profile-link-text strong {
    font-size: 0.86rem;
    font-weight: 600;
  }

.paper-profile-link-text small {
    color: #8190a2;
    font-size: 0.72rem;
    line-height: 1.4;
  }

.paper-profile-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.paper-profile-links a:hover::after {
  transform: scaleX(1);
}

.paper-bio {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
  }

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.paper-tags span {
  border: 1px solid #e8e6df;
  border-radius: 4px;
  background: #f2f2f2;
  padding: 4px 8px;
  font-size: 12px;
}

.paper-github-card + .paper-github-card {
  margin-top: 16px;
}

.paper-skill-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
  }

.paper-skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid #e8e6df;
    border-radius: 999px;
    background: #f6f7f8;
    font-size: 10px;
    line-height: 1;
    color: #334155;
  }

.paper-skill-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #0f3f5c;
  }

.paper-github-card img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #eef0f2;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.paper-track + .paper-track {
  margin-top: 16px;
}

.paper-track-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: #007cba;
  font-size: 12px;
  font-weight: 700;
}

.paper-track-id svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.paper-track strong {
  display: block;
  color: #09111f;
}

.paper-sidebar-copy {
  margin: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.8;
}

.paper-sidebar-copy + .paper-sidebar-copy {
  margin-top: 14px;
}

.paper-track p {
  margin: 6px 0 0;
  font-size: 14px;
}

.paper-skill-group + .paper-skill-group {
  margin-top: 16px;
}

.paper-skill-group .paper-tags {
  margin-top: 8px;
}

.paper-tags--compact {
  gap: 6px;
}

.paper-tags--compact span {
  padding: 3px 7px;
  font-size: 11px;
  background: #f6f7f8;
}

.paper-site-footer {
  padding-bottom: 42px;
}

.paper-site-footer__inner {
  border-top: 1px solid #e8e6df;
  padding-top: 20px;
}

.paper-site-footer p {
  margin: 0;
  max-width: 54rem;
  color: #555555;
}

.paper-about {
  width: min(1140px, calc(100% - 40px));
  max-width: 1140px;
  margin: 28px auto 40px;
}

.paper-content-shell {
  max-width: 840px;
  margin-top: 28px;
  margin-bottom: 56px;
}

.paper-reading-card {
  background: #ffffff;
  border: 1px solid #e8e6df;
  border-radius: 10px;
  padding: 40px 44px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.02),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.paper-reading-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #ece8df;
  margin-bottom: 28px;
}

.paper-reading-kicker {
  margin: 0 0 10px;
  color: #8190a2;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-reading-card h1,
.paper-reading-card h2,
.paper-reading-card h3,
.paper-reading-card h4 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  color: #09111f;
}

.paper-reading-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.paper-reading-summary {
  margin: 18px 0 0;
  color: #555555;
  font-size: 1rem;
  line-height: 1.85;
}

.paper-reading-body {
  color: #1a2431;
  font-size: 1rem;
  line-height: 1.95;
}

.paper-reading-body > *:first-child {
  margin-top: 0;
}

.paper-reading-body > *:last-child {
  margin-bottom: 0;
}

.paper-reading-body h2,
.paper-reading-body h3,
.paper-reading-body h4 {
  margin-top: 2.2em;
  margin-bottom: 0.9em;
}

.paper-reading-body p,
.paper-reading-body ul,
.paper-reading-body ol,
.paper-reading-body blockquote,
.paper-reading-body pre {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.paper-reading-body a {
  color: #0f3f5c;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.paper-reading-body blockquote {
  margin-left: 0;
  padding: 14px 18px;
  border-left: 3px solid #007cba;
  background: #f8fafc;
  color: #4a5563;
}

.paper-reading-body code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
  background: #f2f4f7;
  padding: 0.14em 0.35em;
  border-radius: 4px;
}

.paper-reading-body pre {
  overflow-x: auto;
  padding: 16px 18px;
  background: #0f1722;
  color: #edf2f7;
  border-radius: 8px;
}

.paper-reading-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.paper-reading-body img {
  border-radius: 8px;
}

.paper-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.paper-archive-item {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e6df;
}

.paper-archive-item:last-child {
  border-bottom: none;
}

.paper-archive-item h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.paper-archive-item h2 a {
  text-decoration: none;
}

.paper-archive-item h2 a:hover {
  text-decoration: underline;
}

.paper-pagination {
  margin-top: 24px;
}

.paper-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.paper-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 24px;
}

.paper-about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1024px) {
  .paper-dashboard {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .paper-sidebar {
    position: static;
  }

  .paper-about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .paper-site-header__inner,
  .paper-site-footer__inner,
  .paper-article-item {
    flex-direction: column;
  }

  .paper-site-brand {
    gap: 6px;
  }

  .paper-site-brand__subtitle {
    padding-left: 14px;
  }

  .paper-site-brand__subtitle::before {
    width: 6px;
  }

  .paper-site-brand__subtitle::after {
    left: 8px;
  }

  .paper-dashboard,
  .paper-site-header,
  .paper-site-footer,
  .paper-about,
  .paper-content-shell {
    width: min(100% - 32px, 1140px);
  }

  .paper-panel {
    padding: 24px;
  }

  .paper-panel::before {
    left: 24px;
    right: 24px;
  }

  .paper-profile-head--compact {
    align-items: flex-start;
  }

  .paper-hero-top {
    grid-template-columns: 1fr;
  }

  .paper-map-frame {
    min-height: auto;
  }

  .paper-map-frame__grid {
    height: 86px;
  }

  .paper-article-item {
    gap: 8px;
  }

  .paper-article-date {
    width: auto;
  }

  .paper-reading-card {
    padding: 26px 24px;
  }

  .paper-site-header {
    padding-top: 12px;
  }

  .paper-site-header__inner {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .paper-archive-item {
    flex-direction: column;
    gap: 8px;
  }
}
