/* 基于 mengkunsoft/wallpaper，保留原作者署名。 */
:root {
  --paper: #f7f8f4;
  --ink: #25312b;
  --muted: #8b928a;
  --olive: #65774d;
  --line: #e2e6dd;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #91a675;
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
  width: 24px;
  height: 24px;
}
::selection {
  background: #dae2cc;
}
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background: #c4cbbb;
  border-radius: 8px;
}
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 248, 244, 0.94);
  backdrop-filter: blur(18px);
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1600px;
  margin: auto;
  min-height: 88px;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: 3px;
  min-width: 180px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--olive);
  color: white;
  border-radius: 13px;
}
.brand-mark svg {
  width: 31px;
  height: 31px;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px;
  color: var(--muted);
  margin-top: 3px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  align-self: stretch;
}
.nav-item {
  position: relative;
  align-self: stretch;
  padding: 0 3px;
  color: #858b80;
  font-size: 14px;
}
.nav-item:hover,
.nav-item.active {
  color: var(--ink);
}
.nav-item.active:after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 17px;
  height: 3px;
  background: var(--olive);
  border-radius: 4px;
  transform: translateX(-50%);
}
.page-shell {
  max-width: 1600px;
  padding: 32px 56px 0;
  margin: 0 auto;
}
.hero {
  height: 430px;
  border-radius: 20px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #384d42;
}
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-image {
  object-position: 50% 52%;
  transition: opacity 0.4s;
}
.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(17, 36, 32, 0.76),
      rgba(17, 36, 32, 0.24) 60%,
      rgba(17, 36, 32, 0.08)
    ),
    linear-gradient(0deg, rgba(9, 28, 23, 0.38), transparent 35%);
  z-index: -1;
}
.hero-content {
  padding: 44px 52px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #dde6d4;
  margin: 0 0 22px;
}
.eyebrow > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7d6ac;
}
.hero h1 {
  font-size: 49px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 4px;
  margin: 0 0 16px;
}
.hero-description {
  font-size: 13px;
  color: #e0e7de;
  line-height: 1.95;
  letter-spacing: 1.3px;
  margin: 0 0 23px;
}
.explore-button {
  background: #edf2e5;
  color: #344631;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 7px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.explore-button:hover {
  background: white;
  transform: translateY(-2px);
}
.explore-button span {
  font-size: 19px;
  line-height: 1;
}
.hero-bottom {
  position: absolute;
  left: 52px;
  right: 30px;
  bottom: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d8dfd3;
  font-size: 10px;
  letter-spacing: 1px;
}
.small-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccd9ba;
  vertical-align: middle;
  margin-right: 7px;
}
.hero-bottom button {
  border: 1px solid #ffffff50;
  border-radius: 30px;
  background: #ffffff14;
  color: white;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 13px;
  backdrop-filter: blur(8px);
  font-size: 11px;
}
.hero-bottom button:hover {
  background: #ffffff30;
}
.hero-bottom svg {
  width: 14px;
  height: 14px;
}
.gallery-section {
  padding-top: 49px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.section-kicker {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--olive);
  margin: 0 0 11px;
  font-weight: 600;
}
.section-heading h2 {
  font-size: 27px;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0;
}
.title-dot {
  color: var(--olive);
  padding-left: 3px;
}
.section-heading p:last-child {
  font-size: 12px;
  color: var(--muted);
  margin: 11px 0 0;
  letter-spacing: 0.5px;
}
.view-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.view-switch button {
  padding: 8px;
  border-radius: 5px;
  color: #a0a697;
}
.view-switch button.active {
  background: #e8ecdf;
  color: var(--olive);
}
.view-switch svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.3;
}
.category-bar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 26px 0 21px;
}
.category-list {
  display: flex;
  gap: 9px;
  flex: 1;
  flex-wrap: wrap;
  max-height: 36px;
  overflow: hidden;
}
.category-list.expanded {
  max-height: none;
}
.category {
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 25px;
  padding: 9px 17px;
  color: #777f72;
  font-size: 12px;
  line-height: 16px;
}
.category:hover {
  background: #e9ede2;
}
.category.active {
  background: var(--olive);
  color: #fff;
}
.more-categories {
  padding: 9px 0;
  white-space: nowrap;
  color: #818875;
  font-size: 11px;
}
.more-categories span {
  padding-left: 8px;
}
.collection-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0 18px;
  font-size: 11px;
  color: #969d8f;
}
.collection-meta > span:first-child {
  font-size: 13px;
  color: #4c5745;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.collection-meta > span:first-child:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--olive);
  border-radius: 50%;
}
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
.wallpaper-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.wallpaper-card {
  min-width: 0;
  animation: appear 0.4s ease both;
}
.card-image-button {
  width: 100%;
  display: block;
  position: relative;
  padding: 0;
  background: #e9ede3;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  text-align: left;
}
.card-image-button:before {
  content: "拾景 / WALLPAPER";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9aa58d;
  letter-spacing: 3px;
  font-size: 10px;
}
.card-image-button img {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s,
    opacity 0.3s;
}
.card-image-button:hover img {
  transform: scale(1.045);
}
.card-image-button:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #14221d60, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}
.card-image-button:hover:after {
  opacity: 1;
}
.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: block;
  padding: 4px 8px;
  background: #ffffffdf;
  color: #4e5a46;
  font-size: 9px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.card-open {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  right: 13px;
  bottom: 13px;
  width: 32px;
  height: 32px;
  background: #ffffffee;
  color: #33492c;
  border-radius: 50%;
  font-size: 19px;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.25s;
}
.card-image-button:hover .card-open,
.card-image-button:focus-visible .card-open {
  opacity: 1;
  transform: none;
}
.card-info {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 13px 2px 0;
}
.card-info h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-info > span {
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #929b88;
}
.card-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 2px 0;
  line-height: 1.7;
}
.image-unavailable {
  display: grid !important;
  place-items: center;
  position: absolute;
  inset: 0;
  background: #e9ede3;
  color: #858e7b;
  font-size: 12px;
  letter-spacing: 1px;
}
.skeleton {
  aspect-ratio: 16/10;
  border-radius: 12px;
  background: linear-gradient(100deg, #e7ebdf 25%, #f0f2eb 45%, #e7ebdf 65%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.load-area {
  text-align: center;
  margin: 37px 0 0;
  min-height: 91px;
}
.load-button {
  border: 1px solid #d7ddce;
  border-radius: 7px;
  background: #fff9;
  padding: 12px 31px;
  font-size: 12px;
  color: #667357;
}
.load-button:hover {
  background: #e8eddf;
}
.load-button span {
  margin-left: 22px;
}
.load-area p {
  font-size: 11px;
  color: #929b88;
  margin: 15px 0;
}
.empty-state {
  text-align: center;
  padding: 64px 20px 25px;
}
.empty-state > span {
  font-size: 40px;
  color: #9eae8d;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 500;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
}
.closing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #929b85;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 52px 0 62px;
}
.note-line {
  width: 45px;
  height: 1px;
  background: #d4dbc9;
}
.site-footer {
  max-width: 1488px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2px;
}
.footer-brand span {
  font-size: 11px;
  letter-spacing: 1px;
  margin-left: 20px;
  color: #8b9580;
  font-weight: 400;
}
.site-footer p {
  font-size: 10px;
  color: #9aa18f;
  margin: 13px 0 0;
}
.site-footer p a:hover {
  text-decoration: underline;
}
.footer-signoff {
  font-size: 8px;
  letter-spacing: 2px;
  color: #8d9881;
}
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  border: 1px solid var(--line);
  width: 43px;
  height: 43px;
  background: #fff;
  box-shadow: 0 4px 20px #33432210;
  border-radius: 50%;
  font-size: 22px;
  color: var(--olive);
  z-index: 10;
}
.preview {
  padding: 0;
  border: 1px solid #ffffff1f;
  border-radius: 17px;
  width: min(1060px, 92vw);
  max-height: 92dvh;
  background: #f7f8f4;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 30px 120px #0008;
}
.preview::backdrop {
  background: #142018d9;
  backdrop-filter: blur(12px);
}
body:has(.preview[open]) {
  overflow: hidden;
}
.preview-toolbar {
  padding: 17px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.preview-divider {
  padding: 0 13px;
  color: #abb39d;
}
.preview-toolbar button {
  font-size: 19px;
  padding: 0 5px;
}
.preview-image-wrap {
  background: #15211b;
  min-height: 160px;
  display: grid;
  place-items: center;
}
.preview-image-wrap img {
  display: block;
  width: 100%;
  height: min(60dvh, 680px);
  object-fit: contain;
}
.preview-image-wrap p {
  color: #c8cfbd;
  font-size: 13px;
  margin: 30px;
}
.preview-info {
  padding: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.preview-info h2 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 500;
}
.preview-info p {
  font-size: 11px;
  color: #8c967f;
  line-height: 1.8;
  margin: 0;
  max-width: 530px;
}
.download-options {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
}
.download-options label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.download-options select {
  border: 1px solid #dbe1d3;
  padding: 10px;
  border-radius: 6px;
  background: transparent;
  font-size: 11px;
  max-width: 140px;
  color: var(--ink);
}
.download-options a {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  background: var(--olive);
  color: white;
  border-radius: 6px;
  padding: 12px 17px;
  font-size: 11px;
}
.audio-button {
  font-size: 11px;
  color: var(--olive);
  padding: 10px 0 0;
}
.audio-button:hover {
  text-decoration: underline;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (min-width: 1700px) {
  .wallpaper-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .wallpaper-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1600px) {
  .site-footer {
    margin-left: 56px;
    margin-right: 56px;
  }
}
@media (max-width: 1000px) {
  .header-inner {
    padding: 0 28px;
  }
  .page-shell {
    padding: 25px 28px 0;
  }
  .brand {
    min-width: 130px;
  }
  .main-nav {
    gap: 22px;
  }
  .hero {
    height: 405px;
  }
  .hero-content {
    padding: 36px;
  }
  .hero-bottom {
    left: 36px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .wallpaper-grid {
    gap: 23px 16px;
  }
  .wallpaper-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer {
    margin-left: 28px;
    margin-right: 28px;
  }
  .footer-signoff {
    display: none;
  }
  .preview-info {
    align-items: flex-start;
  }
  .download-options {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 680px) {
  html {
    scroll-padding-top: 125px;
  }
  .header-inner {
    min-height: 104px;
    padding: 15px 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand {
    font-size: 21px;
    min-width: 0;
    gap: 8px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }
  .brand-mark svg {
    width: 26px;
    height: 26px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .main-nav {
    order: 3;
    flex-basis: 100%;
    height: 43px;
    justify-content: center;
    gap: 39px;
    margin-top: 10px;
  }
  .nav-item {
    font-size: 12px;
  }
  .nav-item.active:after {
    bottom: 0;
    width: 24px;
    height: 2px;
  }
  .page-shell {
    padding: 19px 18px 0;
  }
  .hero {
    height: 410px;
    border-radius: 13px;
  }
  .hero-content {
    padding: 31px 26px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 25px;
  }
  .hero h1 {
    font-size: 39px;
    line-height: 1.45;
    letter-spacing: 2px;
  }
  .hero-description {
    font-size: 11px;
    line-height: 1.9;
    margin-bottom: 23px;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #142e27c9, #142e271a),
      linear-gradient(0deg, #142e2766, transparent 40%);
  }
  .hero-bottom {
    left: 26px;
    right: 18px;
    bottom: 18px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .hero-bottom button {
    font-size: 9px;
    padding: 7px 10px;
  }
  .gallery-section {
    padding-top: 34px;
  }
  .section-kicker {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .section-heading h2 {
    font-size: 21px;
    letter-spacing: 0.2px;
  }
  .section-heading p:last-child {
    font-size: 10px;
  }
  .view-switch {
    padding: 3px;
  }
  .view-switch button {
    padding: 6px;
  }
  .view-switch svg {
    width: 14px;
    height: 14px;
  }
  .category-bar {
    padding: 20px 0 16px;
    gap: 6px;
  }
  .category-list {
    gap: 5px;
    max-height: 33px;
  }
  .category {
    font-size: 10px;
    padding: 8px 11px;
    line-height: 15px;
  }
  .more-categories {
    font-size: 10px;
    padding-top: 9px;
  }
  .more-categories span {
    padding-left: 2px;
  }
  .collection-meta {
    padding: 19px 0 14px;
    font-size: 9px;
  }
  .collection-meta > span:first-child {
    font-size: 11px;
  }
  .wallpaper-grid,
  .wallpaper-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 12px;
  }
  .wallpaper-grid.compact {
    gap: 16px 9px;
  }
  .card-image-button {
    border-radius: 8px;
    aspect-ratio: 4/3;
  }
  .card-info {
    padding-top: 10px;
    gap: 4px;
    align-items: flex-start;
    flex-direction: column;
  }
  .card-info h3 {
    font-size: 11px;
    max-width: 100%;
  }
  .card-info > span {
    font-size: 8px;
  }
  .card-badge {
    font-size: 7px;
    padding: 3px 5px;
    top: 8px;
    left: 8px;
  }
  .card-subtitle {
    font-size: 10px;
  }
  .card-open {
    width: 25px;
    height: 25px;
    font-size: 15px;
    right: 8px;
    bottom: 8px;
    opacity: 1;
    transform: none;
  }
  .load-area {
    margin-top: 28px;
  }
  .load-button {
    font-size: 11px;
    padding: 11px 25px;
  }
  .closing-note {
    font-size: 9px;
    letter-spacing: 1px;
    gap: 10px;
    padding: 27px 0 37px;
  }
  .note-line {
    width: 25px;
  }
  .site-footer {
    margin: 0 18px;
    padding: 23px 0;
  }
  .footer-brand {
    font-size: 17px;
  }
  .footer-brand span {
    font-size: 10px;
    margin-left: 11px;
  }
  .site-footer p {
    font-size: 8px;
    line-height: 1.8;
  }
  .back-top {
    width: 36px;
    height: 36px;
    right: 15px;
    bottom: 15px;
    font-size: 18px;
  }
  .preview {
    width: 95vw;
    border-radius: 12px;
  }
  .preview-toolbar {
    padding: 14px 16px;
  }
  .preview-info {
    padding: 17px;
    flex-direction: column;
    gap: 18px;
  }
  .preview-info h2 {
    font-size: 16px;
  }
  .download-options {
    flex-direction: row;
    width: 100%;
  }
  .download-options a {
    flex: 1;
    justify-content: space-between;
  }
  .preview-image-wrap img {
    height: 49dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
