:root {
  --paper: #f7f5ef;
  --ink: #282b26;
  --muted: #7b7c72;
  --line: #deded3;
  --red: #a93629;
  --green: #47634f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft Yahei",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  padding: 10px 17px;
  color: var(--ink);
}
button:hover {
  background: #eae8df;
}
.primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.primary:hover {
  background: #8e2e23;
}
.quiet {
  border: 0;
}
.small {
  font-size: 12px;
  padding: 6px 11px;
}
.demo-strip {
  background: #ece8d9;
  text-align: center;
  color: #6b6045;
  font-size: 12px;
  padding: 7px 16px;
}
.demo-strip b {
  font-weight: 600;
}
.wrap {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
header {
  border-bottom: 1px solid var(--line);
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: serif;
}
.brand-mark {
  font-size: 27px;
  background: var(--red);
  color: var(--paper);
  padding: 0 11px;
  line-height: 44px;
}
.brand strong {
  display: block;
  font-size: 25px;
  letter-spacing: 3px;
  line-height: 1.3;
}
.brand small {
  font: 9px sans-serif;
  letter-spacing: 2px;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav button {
  border: 0;
  padding: 12px 0;
  color: var(--muted);
  border-radius: 0;
}
.nav button.active {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.eyebrow {
  letter-spacing: 3px;
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
}
.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 50px;
  padding: 48px 0 39px;
  align-items: center;
}
.hero h1 {
  font-family: "Songti SC", STSong, serif;
  font-weight: 500;
  font-size: 49px;
  line-height: 1.35;
  margin: 15px 0 18px;
  letter-spacing: 3px;
}
.hero p {
  color: var(--muted);
  line-height: 2;
  margin-bottom: 24px;
}
.hero small {
  font-size: 12px;
  margin-left: 18px;
  color: var(--muted);
}
.hero-art {
  height: 296px;
  background: #e8e7db;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.hero-art:before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid #d6d5c8;
  border-radius: 50%;
  right: -40px;
  top: 30px;
}
.hero-paper {
  background: #f7f5eb;
  border: 1px solid #d4d0bd;
  width: 218px;
  height: 279px;
  padding: 15px;
  box-shadow: 6px 14px 22px #3c3c2225;
  transform: rotate(-11deg);
  position: relative;
  left: 12px;
  top: 30px;
}
.hero-paper.second {
  position: absolute;
  transform: rotate(12deg);
  left: 48%;
  top: 26px;
  background: #e5e5d8;
}
.mini-name {
  font-family: serif;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 3px;
  border-bottom: 3px double #414c3e;
  line-height: 1.4;
}
.paper-date {
  font-size: 7px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #aaa79a;
  padding: 3px 0;
}
.paper-headline {
  font-family: serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  margin: 10px 0;
}
.paper-photo {
  height: 63px;
  background: linear-gradient(
    165deg,
    #a8b8a4 0 45%,
    #667a61 45% 65%,
    #c6c1a7 65%
  );
  position: relative;
  overflow: hidden;
}
.paper-photo:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30px;
  width: 30px;
  height: 55px;
  background: #e5dec9;
  box-shadow:
    35px 13px 0 #c8bfa5,
    67px -3px 0 #e2dac6,
    100px 15px 0 #bcb9a2;
}
.paper-lines {
  height: 63px;
  margin-top: 10px;
  background: repeating-linear-gradient(transparent 0 4px, #b8b6a6 4px 5px);
  opacity: 0.7;
  column-count: 3;
}
.hero-stamp {
  position: absolute;
  right: 28px;
  bottom: 20px;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 50%;
  width: 75px;
  height: 75px;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(12deg);
  font-size: 12px;
  line-height: 1.6;
  background: #f4f1e8dd;
}
.steps {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  color: #696b60;
  font-size: 12px;
}
.steps span b {
  font: italic 20px Georgia;
  margin-right: 12px;
  color: #a4a695;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 34px;
  gap: 18px;
}
.section-title h2 {
  font:
    26px "Songti SC",
    serif;
  letter-spacing: 2px;
  margin: 0;
}
.section-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.search {
  width: 245px;
  background: #fff9;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 4px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.filters button {
  font-size: 12px;
  padding: 7px 16px;
  border: 1px solid transparent;
}
.filters .selected {
  background: var(--ink);
  color: white;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: #fdfcf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.cover-stage {
  height: 219px;
  background: #eeeee6;
  padding: 18px;
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.cover-stage .paper {
  width: 157px;
  background: #f8f7ef;
  padding: 10px 11px;
  border: 1px solid #d6d5c5;
  box-shadow: 3px 5px 9px #3332;
  height: 211px;
  transform: rotate(-3deg);
  transition: transform 0.25s;
}
.product-card:hover .paper {
  transform: rotate(0deg) translateY(-3px);
}
.paper .mini-name {
  font-size: 25px;
  color: var(--cover);
  border-color: var(--cover);
}
.paper .paper-headline {
  font-size: 14px;
}
.paper .paper-photo {
  height: 44px;
}
.paper .paper-lines {
  height: 44px;
}
.cover-stage img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.label {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #fcfbf3cc;
  border: 1px solid #dedccf;
  padding: 2px 8px;
  font-size: 10px;
  color: #626653;
}
.product-body {
  padding: 18px 20px;
}
.product-body .meta {
  font-size: 10px;
  color: var(--muted);
}
.product-body h3 {
  font:
    21px "Songti SC",
    serif;
  margin: 6px 0 8px;
}
.product-body p {
  font-size: 12px;
  color: var(--muted);
  min-height: 39px;
  margin: 0 0 18px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price {
  font: 26px Georgia;
  color: var(--red);
}
.price small {
  font: 12px sans-serif;
}
.stock {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.product-bottom button {
  font-size: 12px;
  padding: 7px 15px;
}
.editor-note {
  border: 1px solid var(--line);
  padding: 27px 32px;
  display: flex;
  justify-content: space-between;
  margin: 38px 0;
  background: #efeee4;
  gap: 20px;
}
.editor-note strong {
  font: 21px serif;
}
.editor-note p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.editor-note .symbol {
  font: 45px Georgia;
  color: #a7aa96;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 35px;
}
.page-head {
  margin: 35px 0 25px;
}
.page-head h1 {
  font: 32px serif;
  margin: 0 0 8px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
}
.panel {
  border: 1px solid var(--line);
  background: #fffdf7;
  padding: 24px;
  border-radius: 5px;
  margin-bottom: 22px;
}
.panel h3 {
  margin: 0 0 15px;
  font-size: 16px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  background: #ece9df;
  color: #77715d;
}
.badge.green {
  background: #e6eee3;
  color: #40623c;
}
.badge.red {
  background: #f2e3de;
  color: #a34330;
}
.muted {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 70px 20px;
}
.empty h2 {
  font: 26px serif;
}
.order-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 18px;
}
.order-main {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.order-main h3 {
  font: 23px serif;
  margin: 0 0 7px;
}
.order-main p {
  color: var(--muted);
  font-size: 12px;
}
.address {
  background: #edf0e6;
  border-left: 3px solid var(--green);
  padding: 16px 20px;
  margin-top: 18px;
}
.address strong {
  display: block;
  color: var(--green);
  margin-bottom: 6px;
}
.locked {
  padding: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding-top: 32px;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.sidebar .eyebrow {
  margin-bottom: 18px;
}
.sidebar button {
  display: block;
  border: 0;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}
.sidebar button.active {
  background: #e9e6dc;
  color: var(--red);
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  padding: 17px;
  background: #fffdf7;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  display: block;
  font: 29px Georgia;
  margin-top: 6px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  font-weight: 500;
  background: #eeeee5;
  color: var(--muted);
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
.table-scroll {
  overflow: auto;
}
.admin-main {
  min-width: 0;
}
.admin-main .page-head {
  margin-top: 0;
}
.notice {
  border: 1px solid #ded7bb;
  background: #f3efdf;
  padding: 14px 18px;
  color: #776743;
  font-size: 12px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 12px;
  color: #65685d;
  margin-bottom: 14px;
}
label input,
label textarea,
label select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 85px;
}
.span2 {
  grid-column: span 2;
}
.qr-layout {
  display: flex;
  align-items: center;
  gap: 35px;
}
.qr-layout img {
  width: 230px;
  background: white;
  border: 1px solid var(--line);
}
.qr-layout code {
  display: block;
  background: #eeeae0;
  padding: 9px;
  margin: 15px 0;
  word-break: break-all;
}
.download {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 10px 18px;
  border-radius: 4px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 7px;
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 30px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #20251b80;
  backdrop-filter: blur(2px);
}
dialog h2 {
  font: 27px serif;
  margin: 0 0 10px;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  padding: 5px 10px;
  font-size: 21px;
}
.dialog-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
}
.quantity input {
  width: 80px;
  padding: 9px;
  border: 1px solid var(--line);
  background: white;
  text-align: center;
}
.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.full {
  width: 100%;
}
.error {
  color: var(--red);
  font-size: 12px;
  margin: 12px 0;
  min-height: 19px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 23px;
  background: #2d372b;
  color: white;
  border-radius: 4px;
  z-index: 50;
  box-shadow: 0 4px 16px #0002;
  display: none;
}
.login-options {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.login-options button {
  flex: 1;
}
.tabs-line {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
  font-size: 12px;
}
.payment-options {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.payment-options div {
  padding: 15px;
  flex: 1;
  border: 1px solid var(--line);
  opacity: 0.6;
}
.payment-options span {
  display: block;
  font-size: 11px;
}
.pay-success {
  text-align: center;
  padding: 20px 0;
}
.pay-success .circle {
  font-size: 35px;
  color: var(--green);
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-message {
  font-size: 12px;
  color: var(--green);
}
@media (min-width: 1400px) {
  .wrap {
    width: 1220px;
  }
  .hero {
    padding: 55px 0;
  }
  .hero-art {
    height: 320px;
  }
  .cover-stage {
    height: 240px;
  }
}
@media (max-width: 950px) {
  .nav {
    gap: 15px;
  }
  .header-actions .user-name {
    display: none;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero {
    gap: 25px;
  }
  .hero-art {
    height: 280px;
  }
  .product-grid {
    gap: 17px;
  }
  .product-body {
    padding: 15px;
  }
  .admin-shell {
    grid-template-columns: 150px 1fr;
    gap: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  header {
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 10px;
  }
  .brand strong {
    font-size: 21px;
  }
  .brand-mark {
    font-size: 22px;
    line-height: 38px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 50px;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions button {
    padding: 7px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 0;
    gap: 22px;
  }
  .hero h1 {
    font-size: 38px;
    margin-top: 10px;
  }
  .hero-art {
    height: 225px;
  }
  .hero-paper {
    top: 42px;
    left: -25px;
  }
  .hero-paper.second {
    top: 10px;
  }
  .hero p {
    margin-bottom: 18px;
  }
  .steps {
    font-size: 10px;
  }
  .steps span b {
    font-size: 16px;
    margin-right: 5px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cover-stage {
    height: 180px;
    padding: 12px;
  }
  .cover-stage .paper {
    width: 130px;
    height: 185px;
    padding: 8px;
  }
  .paper .mini-name {
    font-size: 20px;
  }
  .paper .paper-headline {
    font-size: 12px;
  }
  .paper .paper-photo {
    height: 34px;
  }
  .product-body {
    padding: 12px;
  }
  .product-body h3 {
    font-size: 19px;
  }
  .product-body p {
    display: none;
  }
  .product-bottom {
    align-items: end;
    margin-top: 12px;
  }
  .price {
    font-size: 23px;
  }
  .product-bottom button {
    font-size: 11px;
    padding: 6px 10px;
  }
  .section-title {
    align-items: start;
  }
  .search {
    width: 150px;
  }
  .editor-note {
    padding: 20px;
  }
  .editor-note strong {
    font-size: 18px;
  }
  footer {
    gap: 20px;
    font-size: 10px;
  }
  .admin-shell {
    display: block;
    padding-top: 20px;
  }
  .sidebar {
    display: flex;
    overflow: auto;
    gap: 7px;
    border-right: 0;
    padding: 0;
    margin-bottom: 25px;
  }
  .sidebar .eyebrow {
    display: none;
  }
  .sidebar button {
    white-space: nowrap;
    width: auto;
    padding: 8px 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 13px;
  }
  .form-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: span 1;
  }
  .qr-layout {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
  .panel {
    padding: 18px;
  }
  .order-main {
    flex-wrap: wrap;
  }
  .order-top {
    font-size: 11px;
    gap: 15px;
  }
  .form-grid {
    gap: 0;
  }
  .filters {
    gap: 2px;
  }
  .filters button {
    padding: 6px 10px;
  }
  .hero-stamp {
    right: 18px;
    bottom: 14px;
  }
  .demo-strip {
    font-size: 10px;
  }
}
