:root {
  --ink: #1f2c35;
  --muted: #697077;
  --paper: #f8f4e8;
  --paper-2: #fffaf0;
  --line: #d4c5a9;
  --gold: #c9a462;
  --gold-dark: #8b6a34;
  --jade: #0d5667;
  --jade-2: #0b7488;
  --night: #081827;
  --night-2: #0d263b;
  --shadow: 0 18px 42px rgba(16, 28, 39, .18);
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(63, 142, 166, .22), transparent 26rem),
    linear-gradient(180deg, #e7eef2 0, #f3eee2 20rem, #eee5d4 100%);
  font-family: "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
  line-height: 1.65;
}
body.no-copy,
body.no-copy * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
body.no-copy input,
body.no-copy textarea,
body.no-copy select,
body.no-copy [contenteditable="true"] {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
body.no-copy img,
body.no-copy a {
  -webkit-user-drag: none;
  user-drag: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  min-height: 84px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(245px, 310px) 1fr minmax(230px, 330px);
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 3vw, 52px);
  color: #fff7df;
  background:
    linear-gradient(180deg, rgba(7, 20, 32, .98), rgba(10, 31, 48, .96)),
    radial-gradient(circle at 20% 0, rgba(31, 125, 150, .38), transparent 24rem);
  border-bottom: 1px solid rgba(201, 164, 98, .55);
  box-shadow: 0 10px 34px rgba(5, 18, 28, .38);
}
.corner { position: absolute; width: 46px; height: 46px; pointer-events: none; opacity: .75; }
.corner-left { left: 6px; top: 6px; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.corner-right { right: 6px; top: 6px; border-right: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-seal {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(223, 191, 126, .82);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.08), transparent 62%),
    url("/assets/logo.png?v=20260615a") center / cover no-repeat;
  box-shadow: 0 0 18px rgba(77, 181, 255, .28), 0 0 0 2px rgba(5, 18, 28, .5);
}
.brand-text { display: grid; min-width: 0; }
.brand-text strong {
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: .08em;
  text-shadow: 0 2px 12px rgba(0,0,0,.38);
}
.brand-text em { font-style: normal; color: #d8c99d; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(10px, 1.5vw, 24px);
  align-items: center;
  white-space: nowrap;
}
.nav-group {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px clamp(8px, 1.4vw, 22px);
  overflow: visible;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-home { justify-self: center; }
.nav a {
  flex: 0 0 auto;
  position: relative;
  padding: 10px 4px;
  color: #f4efd8;
  font-weight: 800;
  letter-spacing: .05em;
}
.nav a.active::after, .nav a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 48px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #5de8ff, transparent);
  box-shadow: 0 0 12px #58e5ff;
}
.search {
  display: flex;
  align-items: center;
  justify-self: end;
  width: min(100%, 330px);
  min-height: 46px;
  padding: 3px 9px 3px 18px;
  border: 1px solid rgba(201, 164, 98, .75);
  border-radius: 26px;
  background: linear-gradient(180deg, #fbfbf6, #e4e1d8);
  box-shadow: inset 0 1px 0 #fff, 0 4px 18px rgba(0,0,0,.18);
}
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: #273541; font: 700 .9rem "Microsoft YaHei", sans-serif; }
.search button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 43% 42%, transparent 0 7px, #172635 8px 10px, transparent 11px),
    linear-gradient(45deg, transparent 0 58%, #172635 59% 66%, transparent 67%);
  cursor: pointer;
}
.hero {
  position: relative;
  min-height: clamp(340px, 36vw, 500px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 164, 98, .7);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(244,239,221,.06)),
    linear-gradient(90deg, rgba(248,244,232,.42), rgba(248,244,232,.18) 48%, rgba(6,20,32,.12)),
    url("/assets/hero-xianxia.png") center / cover no-repeat;
  transform: scale(1.01);
}
.hero-content { position: relative; width: min(1220px, calc(100% - 32px)); text-align: center; padding: 40px 0; }
.hero h1 {
  margin: 0;
  color: #0d2b42;
  font-size: clamp(2rem, 3.25vw, 3.05rem);
  line-height: 1.18;
  letter-spacing: .08em;
  text-shadow: 0 2px 0 rgba(255,255,255,.7), 0 8px 22px rgba(44, 73, 90, .26);
}
.hero p {
  margin: 22px auto 26px;
  max-width: 760px;
  color: #1d3a50;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
}
.hero-button, .ink-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 30px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #fff8df;
  background: linear-gradient(180deg, #0b6c7c, #084855);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 8px 20px rgba(9, 74, 88, .24);
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}
.ink-button:disabled, .ink-button.is-submitting {
  color: #eef0ed;
  border-color: #aeb5b2;
  background: linear-gradient(180deg, #9aa4a1, #737e7b);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .76;
  pointer-events: none;
}
.hero-button { font-size: 1.35rem; min-width: 210px; }
.ink-button.ghost { color: var(--jade); background: transparent; }
.page-shell {
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}
.content-column { display: grid; gap: 14px; min-width: 0; }
.panel, .side-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,250,238,.9)),
    radial-gradient(circle at 100% 100%, rgba(79, 132, 152, .12), transparent 18rem);
  border: 1px solid rgba(185, 164, 127, .78);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(50, 44, 32, .12);
}
.panel::before, .side-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(209, 185, 138, .42);
  pointer-events: none;
}
.hot-products-panel, .latest-panel, .featured-panel, .products-shell .panel { padding: 16px 18px 18px; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(190, 169, 132, .55);
}
.section-title h2, .side-card h3 {
  margin: 0;
  color: #263944;
  font-size: 1.32rem;
  letter-spacing: .08em;
}
.section-title h2::before, .side-card h3::before { content: "\2726"; color: var(--gold-dark); margin-right: 7px; font-size: .9em; }
.section-title a { color: #5f7180; font-weight: 800; }
.latest-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.article-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(184, 167, 137, .65);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 252, 244, .86);
  box-shadow: 0 8px 16px rgba(37, 47, 51, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 116, 136, .5);
  box-shadow: 0 12px 22px rgba(37, 47, 51, .12);
}
.thumb, .product-image {
  position: relative;
  display: block;
  min-height: 132px;
  overflow: hidden;
  background: #dbe7ea;
}
.thumb img, .detail-cover { width: 100%; height: 100%; object-fit: cover; }
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  padding: 0;
}
.thumb span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 9px;
  border-radius: 5px;
  color: #fff9df;
  background: rgba(8, 73, 83, .86);
  font-size: .78rem;
  font-weight: 800;
}
.card-body { padding: 12px 12px 10px; }
.article-card-no-cover .card-body {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-card-no-cover .card-body .category-pill {
  align-self: flex-start;
  min-height: 24px;
  padding: 2px 8px;
  font-size: .78rem;
}
.card-body h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.45; min-height: 2.9em; }
.card-body p { margin: 0 0 9px; color: #52606a; font-size: .9rem; }
.article-card-no-cover .card-body p { flex: 1; }
.meta { display: flex; justify-content: space-between; gap: 8px; color: #7b7f7f; font-size: .82rem; }
.meta em { font-style: normal; }
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 2px;
  position: relative;
  z-index: 1;
}
.pagination a {
  min-width: 40px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid rgba(184, 167, 137, .72);
  border-radius: 999px;
  color: #1f5863;
  background: rgba(255, 253, 246, .78);
  font-weight: 900;
}
.pagination a.active,
.pagination a:hover {
  color: #fff8df;
  background: linear-gradient(180deg, #0b6c7c, #084855);
  border-color: var(--gold);
}
.fallback, .featured-art, .avatar, .moon, .recent-thumb {
  background-image:
    linear-gradient(180deg, rgba(4, 23, 37, .08), rgba(4, 23, 37, .42)),
    url("/assets/hero-xianxia.png");
  background-size: cover;
  background-position: center;
}
.fallback-1 { background-position: 12% 42%; }
.fallback-2 { background-position: 30% 46%; }
.fallback-3 { background-position: 48% 48%; }
.fallback-4 { background-position: 62% 46%; }
.fallback-5 { background-position: 78% 46%; }
.fallback-6 { background-position: 91% 48%; }
.featured {
  display: grid;
  grid-template-columns: minmax(280px, 52%) 1fr;
  gap: 24px;
  align-items: center;
}
.featured-art {
  min-height: 210px;
  border-radius: 6px;
  border: 1px solid rgba(185, 164, 127, .7);
  background-position: 42% 54%;
  box-shadow: var(--shadow);
}
.featured-copy h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.25; }
.featured-copy p { color: #59646c; margin: 0 0 18px; }
.featured-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.featured-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(184, 167, 137, .65);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 252, 244, .86);
  box-shadow: 0 8px 16px rgba(37, 47, 51, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 116, 136, .5);
  box-shadow: 0 12px 22px rgba(37, 47, 51, .12);
}
.featured-thumb {
  position: relative;
  display: block;
  min-height: 160px;
  overflow: hidden;
  background-color: #dbe7ea;
}
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-thumb span {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff8df;
  background: rgba(8, 73, 83, .88);
  border: 1px solid rgba(201, 164, 98, .78);
  font-weight: 900;
}
.featured-card-body { padding: 14px; }
.featured-card-no-cover .featured-card-body { min-height: 150px; }
.featured-card-body p { margin: 0 0 6px; color: var(--jade); font-weight: 900; font-size: .86rem; }
.featured-card-body h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.42; }
.featured-card-body em { color: #7a8082; font-style: normal; font-weight: 800; font-size: .9rem; }
.sidebar { display: grid; gap: 12px; align-content: start; }
.side-card { padding: 16px; }
.side-card h3 { margin-bottom: 13px; font-size: 1.08rem; }
.profile { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 3px solid rgba(222, 202, 158, .85);
  background-position: 80% 48%;
}
.profile-card .avatar {
  background:
    radial-gradient(circle, rgba(255,255,255,.1), transparent 64%),
    url("/assets/logo.png?v=20260615a") center / cover no-repeat;
  box-shadow: 0 0 16px rgba(77, 181, 255, .22);
}
.profile strong { display: block; font-size: 1.2rem; }
.profile span { display: inline-flex; margin-top: 3px; padding: 1px 8px; border-radius: 999px; color: #7b5b1f; background: #ead9b1; font-size: .78rem; font-weight: 800; }
.profile-card p, .side-card p { color: #56626b; margin: 12px 0; }
.almanac-date {
  text-align: center;
  font-weight: 900;
}
.almanac-date span,
.almanac-date em {
  display: block;
}
.almanac-date em {
  margin-top: 3px;
  color: #8b6a34;
  font-style: normal;
  font-size: .9rem;
}
.almanac-source {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(190, 169, 132, .55);
  color: #7a8082;
  font-size: .86rem;
  text-align: center;
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(190, 169, 132, .55); padding-top: 10px; text-align: center; }
.stats span { color: #5e6770; font-size: .82rem; }
.stats b { display: block; color: #1e303d; font-size: 1.1rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-cloud span {
  padding: 5px 12px;
  border-radius: 5px;
  color: #1f5863;
  background: #c9e4df;
  font-weight: 800;
  font-size: .9rem;
}
.category-card div, .category-card a {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px;
  color: #5a646c;
}
.category-card a.active { color: var(--jade); font-weight: 900; }
.recent-item { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; margin: 10px 0; }
.recent-item-no-thumb { grid-template-columns: 1fr; }
.recent-thumb { width: 56px; height: 44px; border-radius: 4px; overflow: hidden; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-item span:last-child { font-size: .9rem; line-height: 1.35; font-weight: 800; }
.recent-item em { display: block; color: #7a8082; font-style: normal; font-weight: 500; font-size: .8rem; }
.moon {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 2px solid #c9a462;
  background:
    radial-gradient(circle, rgba(255,255,255,.1), transparent 62%),
    url("/assets/logo.png?v=20260615a") center / cover no-repeat;
  box-shadow: 0 0 18px rgba(77, 181, 255, .28), inset 0 0 18px rgba(255,255,255,.18);
}
.sub-hero {
  position: relative;
  min-height: 230px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #10334a;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 164, 98, .7);
  background:
    linear-gradient(90deg, rgba(248,244,232,.62), rgba(248,244,232,.16)),
    url("/assets/hero-xianxia.png") center 48% / cover no-repeat;
}
.sub-hero h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: .12em; }
.sub-hero p { margin: 0 0 4px; color: var(--jade); font-weight: 900; text-transform: uppercase; }
.sub-hero span { font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.product-card {
  display: flex;
  flex-direction: column;
  height: 400px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 167, 137, .65);
  border-radius: 6px;
  background: rgba(255, 252, 244, .86);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(13, 116, 136, .5); box-shadow: 0 12px 22px rgba(37, 47, 51, .12); }
.product-image {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  height: auto;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.9), rgba(244, 236, 216, .72) 58%, rgba(225, 213, 188, .64)),
    linear-gradient(180deg, #f8f4e8, #e7dcc2);
}
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff8df;
  background: rgba(8, 73, 83, .88);
  border: 1px solid rgba(201, 164, 98, .78);
  font-weight: 900;
}
.product-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 58px);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff8df;
  background: rgba(120, 88, 38, .9);
  border: 1px solid rgba(255, 232, 176, .72);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-info {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 11px 11px;
}
.product-info h2 {
  min-height: 2.8em;
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.product-card .product-info > p:not(.price) {
  min-height: 3em;
  margin: 0 0 8px;
  color: #5d6870;
  font-size: .86rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  color: #8a4514;
  font-family: "FZHei-B01S", "FZLanTingHeiS-DB1-GB", "Microsoft YaHei UI", "SimHei", "Arial Black", sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  margin: 0 0 6px;
  line-height: 1.18;
}
.product-order-notice {
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 1px solid rgba(138, 69, 20, .34);
  border-radius: 5px;
  color: #713711;
  background: rgba(255, 245, 220, .88);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.35;
}
.detail-link { display: inline-flex; margin-top: auto; color: var(--jade); font-weight: 900; font-size: .86rem; }
.product-detail { padding: clamp(24px, 4vw, 48px); }
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  margin-top: 20px;
}
.product-detail-image {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #dbe7ea;
  box-shadow: var(--shadow);
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.detail-price { font-size: 1.45rem; }
.cny-estimate {
  margin: -2px 0 18px;
  color: #52646c;
  font-size: 1rem;
  font-weight: 900;
}
.detail-order-notice {
  margin: 0 0 18px;
  padding: 10px 12px;
  font-size: .96rem;
}
.product-description { margin: 18px 0 24px; color: #53616b; font-size: 1.05rem; }
.product-description p { margin: 0 0 1em; }
.buy-button { min-width: 150px; }
.stock-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
}
.stock-modal:target { display: grid; }
.stock-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 27, .66);
  backdrop-filter: blur(3px);
}
.stock-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px 28px;
  border: 1px solid rgba(201, 164, 98, .78);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,250,238,.96)),
    radial-gradient(circle at 100% 0, rgba(13, 116, 136, .16), transparent 12rem);
  box-shadow: 0 24px 60px rgba(5, 16, 27, .32);
}
.stock-modal-card h2 {
  margin: 0 0 10px;
  color: #183345;
  font-size: 1.5rem;
}
.stock-modal-card p {
  margin: 0 0 22px;
  color: #53616b;
  font-weight: 800;
}
.single-shell { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 42px; }
.poetry-shell { width: min(1180px, calc(100% - 32px)); padding-top: 30px; }
.poetry-detail-shell { width: min(980px, calc(100% - 32px)); }
.poetry-public-panel {
  min-height: 720px;
  padding: 0;
  overflow: hidden;
}
.poetry-public-panel .admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.poetry-public-panel .admin-section-title h2 {
  color: var(--jade);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
.poetry-public-line .admin-line-thumb {
  color: #fff8df;
  text-decoration: none;
}
.poetry-public-line .admin-line-title h3 a {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.poetry-public-line .admin-line-main p {
  color: var(--jade);
  font-weight: 900;
}
.poetry-public-line .admin-line-actions a {
  white-space: nowrap;
}
.poem-seal {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(139, 106, 52, .64);
  border-radius: 50%;
  color: #fff8df;
  background: var(--jade);
  font-weight: 900;
}
.poem-author { margin: 0 0 2px; color: var(--jade); font-size: .92rem; font-weight: 900; }
.poem-detail { padding: clamp(24px, 5vw, 58px); }
.poem-detail .back-link { display: inline-flex; margin-bottom: 18px; }
.poem-detail-head { max-width: 760px; margin: 0 auto; padding: 12px 0 24px; text-align: center; }
.poem-detail-head .poem-seal { margin: 0 auto 14px; }
.poem-detail-head h1 { margin: 0 0 8px; color: #183345; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.25; overflow-wrap: anywhere; }
.poem-detail-head time { color: #7a8287; font-size: .88rem; }
.poem-detail-content {
  max-width: 720px;
  margin: 10px auto 0;
  padding: 34px clamp(18px, 5vw, 58px);
  border: 1px solid rgba(184, 167, 137, .5);
  border-radius: 6px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,242,226,.86)),
    radial-gradient(circle at 50% 0, rgba(13, 116, 136, .1), transparent 15rem);
}
.poem-content { color: #354c56; font-size: 1.08rem; line-height: 2; }
.poem-detail-content :where(p, div, section, article, blockquote, h1, h2, h3, h4, h5, h6, ul, ol) {
  width: 100%;
  text-align: center !important;
}
.poem-content p { margin: 0 0 1em; white-space: normal; text-align: center; }
.poem-content p:last-child { margin-bottom: 0; }
.poem-content img { display: block; max-width: 100%; height: auto; margin: 14px auto; border: 1px solid var(--line); border-radius: 6px; }
.article-detail { padding: clamp(24px, 4vw, 52px); }
.back-link { color: var(--jade); font-weight: 900; }
.article-head { display: flex; gap: 12px; margin: 18px 0 10px; color: #61717c; }
.article-head span { color: #fff9df; background: var(--jade); border-radius: 5px; padding: 2px 9px; }
.article-head em { color: #8b6a34; font-style: normal; font-weight: 900; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin: 0 0 22px; }
.detail-cover { max-height: 520px; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 24px; }
.article-content { font-size: 1.08rem; }
.article-content p { margin: 0 0 1.1em; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.image-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.adjacent-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(184, 167, 137, .54);
}
.poem-detail .adjacent-nav {
  max-width: 720px;
  margin: 26px auto 0;
}
.adjacent-button {
  min-width: 0;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(184, 167, 137, .66);
  border-radius: 6px;
  color: #183345;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,242,226,.86)),
    radial-gradient(circle at 100% 0, rgba(13, 116, 136, .1), transparent 12rem);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.adjacent-button:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 116, 136, .48);
  box-shadow: 0 10px 22px rgba(37, 47, 51, .12);
}
.adjacent-button span {
  color: var(--jade);
  font-size: .86rem;
  font-weight: 900;
}
.adjacent-button strong {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.adjacent-button.next { text-align: right; }
.adjacent-button.disabled {
  color: #7a8287;
  background: rgba(238, 231, 213, .62);
  box-shadow: none;
  opacity: .68;
}
.adjacent-button.disabled span { color: #7a8287; }
.article-comments {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 167, 137, .58);
}
.comments-title span { color: #66727a; font-weight: 900; }
.comment-empty { margin: 0 0 18px; }
.comments-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.comment-item {
  padding: 14px 16px;
  border: 1px solid rgba(184, 167, 137, .55);
  border-radius: 6px;
  background: rgba(255,255,255,.48);
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.comment-meta strong { color: #183345; }
.comment-meta time { color: #7a8287; font-size: .9rem; }
.comment-body p { margin: 0 0 .8em; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-form {
  display: grid;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 167, 137, .42);
}
.comment-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.empty-scroll { padding: 38px; text-align: center; }
.empty-scroll h3 { margin: 0 0 8px; font-size: 1.4rem; }
.muted, .empty-scroll p { color: #66727a; }
.admin-shell { width: min(1320px, calc(100% - 32px)); }
.admin-shell .panel { margin-bottom: 16px; }
.admin-card { padding: 26px; }
.login-card { max-width: 460px; margin: 46px auto; }
.eyebrow { margin: 0 0 6px; color: var(--jade); font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-top h1, .login-card h1 { margin: 0; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric-grid div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(184, 167, 137, .58);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(246,239,222,.72)),
    radial-gradient(circle at 100% 0, rgba(13, 116, 136, .12), transparent 12rem);
}
.metric-grid span { color: #63717a; font-weight: 900; }
.metric-grid strong { color: #183345; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1; }
.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 16px;
  align-items: start;
}
.admin-product-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.admin-grid, .admin-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.inner-card {
  padding: 18px;
  border: 1px solid rgba(184, 167, 137, .55);
  border-radius: 6px;
  background: rgba(255,255,255,.44);
}
label { display: grid; gap: 7px; margin-bottom: 14px; color: #53616b; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cdbb9a;
  border-radius: 6px;
  background: rgba(255, 253, 246, .92);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}
textarea { resize: vertical; }
select { cursor: pointer; }
.admin-section-title { margin-bottom: 18px; }
.admin-section-title a { color: var(--jade); font-weight: 900; }
.admin-editor-card { min-width: 0; }
.cover-preview {
  width: min(280px, 100%);
  max-height: 178px;
  object-fit: cover;
  margin: -4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(37, 47, 51, .1);
}
.editor-label { margin: 0 0 7px; color: #53616b; font-weight: 800; }
.editor-note { margin: -4px 0 16px; color: #66727a; font-size: .92rem; }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px;
  border: 1px solid #cdbb9a;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: rgba(242, 234, 214, .78);
}
.editor-toolbar button {
  min-width: 38px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(139, 106, 52, .42);
  border-radius: 5px;
  color: #1b4050;
  background: rgba(255,255,255,.76);
  font: 900 .92rem "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.editor-toolbar button:hover { color: #fff8df; background: var(--jade); }
.editor-toolbar button:disabled { opacity: .55; cursor: wait; }
.rich-editor {
  min-height: 360px;
  max-height: 680px;
  overflow: auto;
  padding: 18px;
  border: 1px solid #cdbb9a;
  border-radius: 0 0 6px 6px;
  background: rgba(255, 253, 246, .94);
  outline: 0;
  font-size: 1rem;
}
.rich-editor:focus { border-color: var(--jade-2); box-shadow: 0 0 0 3px rgba(13, 116, 136, .14); }
.rich-editor p { margin: 0 0 1em; }
.rich-editor h2, .rich-editor h3 { margin: 1.1em 0 .55em; line-height: 1.25; }
.rich-editor img {
  max-width: 100%;
  max-height: 520px;
  height: auto;
  margin: 12px auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.rich-editor .editor-upload-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px dashed rgba(13, 116, 136, .45);
  border-radius: 6px;
  color: #1b4050;
  background: rgba(232, 244, 244, .76);
  font-weight: 800;
}
.rich-editor blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(234, 217, 177, .35);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.form-footer { margin-top: 16px; display: flex; justify-content: flex-end; }
.alert { border-radius: 6px; padding: 10px 12px; font-weight: 800; }
.alert.success { background: #e1efe4; color: #22583a; }
.alert.error { background: #f7e3df; color: #9d332a; }
.manage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(184, 167, 137, .55); }
.manage-row span { display: grid; gap: 2px; font-weight: 900; }
.manage-row small { color: #7b8388; font-weight: 500; }
.link-danger { border: 0; background: transparent; color: #a93d32; font: inherit; font-weight: 900; cursor: pointer; }
.table-wrap { overflow-x: auto; }
.content-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.content-table th {
  padding: 10px 12px;
  color: #52606a;
  border-bottom: 1px solid rgba(184, 167, 137, .65);
  font-size: .9rem;
  text-align: left;
}
.content-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(184, 167, 137, .36);
  vertical-align: middle;
}
.content-table td strong { display: block; line-height: 1.35; }
.content-table td small { display: block; margin-top: 4px; color: #7a8287; line-height: 1.45; }
.content-table tr:hover td { background: rgba(255,255,255,.36); }
.admin-management-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.admin-management-board .admin-list-panel {
  min-width: 0;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 164, 127, .78);
}
.admin-list-posts.is-loading .admin-manage-list,
.admin-list-posts.is-loading .pagination,
.admin-list-posts.is-loading .empty-cell,
.admin-list-products.is-loading .admin-manage-list,
.admin-list-products.is-loading .pagination,
.admin-list-products.is-loading .empty-cell {
  opacity: .52;
  pointer-events: none;
}
.admin-management-board .admin-section-title {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(190, 169, 132, .62);
  background: rgba(255, 253, 246, .68);
}
.admin-management-board .admin-section-title h2 {
  color: var(--jade);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
.admin-list-filter {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 190px;
}
.admin-list-filter label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #53616b;
  font-size: .9rem;
  white-space: nowrap;
}
.admin-list-filter select {
  width: min(190px, 42vw);
  padding: 8px 10px;
  font-size: .92rem;
}
.admin-manage-list {
  display: grid;
  align-content: start;
}
.admin-manage-line {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(184, 167, 137, .5);
  background:
    linear-gradient(180deg, rgba(255,255,255,.64), rgba(246,239,222,.72)),
    radial-gradient(circle at 100% 0, rgba(13, 116, 136, .08), transparent 11rem);
}
.admin-manage-line:hover { background-color: rgba(255,255,255,.54); }
.admin-line-thumb {
  width: 68px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(184, 167, 137, .7);
  border-radius: 5px;
  background-color: #dbe7ea;
}
.admin-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-line-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.admin-line-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.admin-line-title h3 {
  min-width: 0;
  margin: 0;
  color: #183345;
  font-size: 1rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-line-title em {
  flex: 0 0 auto;
  color: #8b6a34;
  font-size: .84rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.admin-line-main p {
  margin: 0;
  color: #64717a;
  font-size: .9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-line-main small {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: #7a8287;
  font-size: .82rem;
}
.admin-line-main .category-pill { min-height: 24px; padding: 2px 8px; font-size: .78rem; }
.admin-line-actions {
  justify-content: flex-end;
  gap: 10px;
}
.admin-management-board .pagination { margin: 16px 14px; }
.poem-admin-thumb {
  display: grid;
  place-items: center;
  color: #fff8df;
  background: linear-gradient(145deg, #0b6c7c, #1d4050);
  font-size: 1.4rem;
  font-weight: 900;
}
.comment-admin-panel { margin-top: 16px; }
.admin-comment-list {
  display: grid;
  border-top: 1px solid rgba(184, 167, 137, .42);
}
.admin-comment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(184, 167, 137, .42);
}
.admin-comment-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.admin-comment-main .comment-meta { margin: 0; justify-content: flex-start; }
.admin-comment-main p {
  margin: 0;
  color: #64717a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-comment-main small {
  color: #7a8287;
  font-size: .86rem;
}
.admin-comment-main small a {
  color: var(--jade);
  font-weight: 900;
}
.admin-manage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.admin-manage-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 167, 137, .58);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(246,239,222,.76)),
    radial-gradient(circle at 100% 0, rgba(13, 116, 136, .13), transparent 12rem);
  box-shadow: 0 12px 26px rgba(37, 47, 51, .09);
}
.admin-manage-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 167, 137, .5);
  background-color: #dbe7ea;
}
.admin-manage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-manage-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.admin-card-head {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-card-head em {
  flex: 0 0 auto;
  color: #8b6a34;
  font-size: .82rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.admin-card-head .muted {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: #69757c;
  font-size: .86rem;
  font-weight: 900;
}
.admin-manage-body h3 {
  min-height: 2.8em;
  margin: 0;
  color: #183345;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.admin-manage-body p {
  min-height: 2.9em;
  margin: 0;
  color: #64717a;
  font-size: .92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-manage-body small {
  color: #7a8287;
  font-size: .84rem;
}
.admin-manage-card .row-actions {
  min-height: 32px;
  align-items: center;
  padding-top: 2px;
  border-top: 1px solid rgba(184, 167, 137, .32);
}
.admin-empty { padding: 28px; }
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1f5863;
  background: #c9e4df;
  font-weight: 900;
  white-space: nowrap;
}
.table-thumb {
  display: block;
  width: 76px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(184, 167, 137, .65);
  border-radius: 5px;
}
.table-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-actions a { color: var(--jade); font-weight: 900; }
.row-actions form { margin: 0; }
.empty-cell { color: #6d7478; text-align: center; }
.site-footer {
  margin-top: auto;
  color: #e9dfbf;
  background:
    linear-gradient(180deg, rgba(8, 24, 39, .96), rgba(5, 16, 27, .98)),
    url("/assets/hero-xianxia.png") center 70% / cover no-repeat;
  border-top: 1px solid rgba(201, 164, 98, .65);
}
.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 18px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand strong { font-size: 1.8rem; }
.footer-inner h3 { margin: 0 0 10px; color: #f7edc9; }
.footer-inner a, .footer-inner span { display: block; color: #d5ccb0; margin: 3px 0; }
.footer-inner .footer-inline-link {
  display: inline;
  color: #f7edc9;
  margin: 0 0 0 6px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.copyright { margin: 0 auto; width: min(1240px, calc(100% - 40px)); padding: 12px 0 22px; text-align: center; color: #bfb392; border-top: 1px solid rgba(201, 164, 98, .28); }
@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr; gap: 10px; position: relative; }
  .brand, .search { justify-self: center; }
  .nav { width: 100%; }
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-management-board { grid-template-columns: 1fr; }
  .admin-manage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { padding: 12px 14px; }
  .brand-text strong { font-size: 1.55rem; }
  .brand-seal { width: 48px; height: 48px; }
  .nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    width: 100%;
    padding-bottom: 4px;
  }
  .nav-group { display: contents; }
  .nav a { font-size: .92rem; flex: 0 0 auto; }
  .search { width: 100%; }
  .hero { min-height: 390px; align-items: end; }
  .hero-content { padding-bottom: 34px; }
  .hero h1 { font-size: 2rem; white-space: normal; }
  .page-shell { width: min(100% - 22px, 1540px); }
  .poetry-shell, .poetry-detail-shell { width: min(100% - 22px, 1540px); }
  .poetry-public-panel { min-height: 560px; }
  .poetry-public-panel .admin-section-title { padding: 14px; }
  .poetry-public-line .admin-line-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .poetry-public-line .admin-line-title h3 a { white-space: normal; }
  .poem-detail-content { padding: 24px 14px; }
  .adjacent-nav { grid-template-columns: 1fr; }
  .adjacent-button.next { text-align: left; }
  .latest-grid, .featured, .featured-list, .product-grid, .sidebar, .admin-grid, .admin-lists, .metric-grid, .footer-inner, .poem-list { grid-template-columns: 1fr; }
  .product-card { height: auto; }
  .thumb { min-height: 180px; }
  .featured-art { min-height: 190px; }
  .side-card, .hot-products-panel, .latest-panel, .featured-panel, .products-shell .panel { padding: 14px; }
  .admin-card { padding: 18px; }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .admin-actions { justify-content: flex-start; }
  .rich-editor { min-height: 300px; }
  .admin-management-board .admin-list-panel { min-height: 0; }
  .admin-manage-line { grid-template-columns: 54px minmax(0, 1fr); }
  .admin-line-thumb { width: 54px; height: 44px; }
  .admin-line-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 66px; }
  .admin-comment-item { grid-template-columns: 1fr; }
  .comment-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .content-table { min-width: 640px; }
  .admin-manage-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-image { min-height: 260px; }
}

.product-purchase-options,
.product-tier-fields {
  width: 100%;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(184, 167, 137, .72);
  border-radius: 6px;
  background: rgba(255, 253, 246, .72);
}
.product-purchase-options legend,
.product-tier-fields legend {
  padding: 0 6px;
  color: #52646c;
  font-weight: 900;
}
.product-purchase-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
  padding: 9px 10px;
  border: 1px solid rgba(184, 167, 137, .45);
  border-radius: 5px;
  background: rgba(255, 255, 255, .62);
  cursor: pointer;
}
.product-purchase-option:hover {
  border-color: rgba(13, 116, 136, .62);
  background: rgba(231, 244, 244, .72);
}
.product-purchase-option input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--jade);
}
.product-purchase-option span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-purchase-option em {
  color: #8a4514;
  font-style: normal;
  font-weight: 900;
}
.product-tier-fields {
  margin-top: 4px;
}
.product-tier-fields[hidden] {
  display: none;
}
.product-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product-tier-card {
  padding: 12px;
  border: 1px solid rgba(184, 167, 137, .55);
  border-radius: 6px;
  background: rgba(255, 255, 255, .48);
}
.product-tier-card h3 {
  margin: 0 0 10px;
  color: #1b4050;
  font-size: 1rem;
}
@media (max-width: 760px) {
  .product-tier-grid {
    grid-template-columns: 1fr;
  }
}

/* Tiered product choices: horizontal cards */
.product-purchase-options {
  margin-top: 22px;
  padding: 14px;
  border-color: rgba(13, 116, 136, .38);
  background:
    linear-gradient(135deg, rgba(232, 246, 246, .92), rgba(255, 249, 232, .92)),
    radial-gradient(circle at 0 0, rgba(201, 164, 98, .2), transparent 45%);
  box-shadow: 0 10px 24px rgba(27, 64, 80, .08);
}
.product-purchase-options legend {
  color: #1b4050;
  font-size: 1rem;
  letter-spacing: .04em;
}
.product-purchase-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product-purchase-option {
  position: relative;
  min-height: 94px;
  margin: 0;
  padding: 14px 12px;
  align-items: flex-start;
  border-color: rgba(13, 116, 136, .28);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 5px 12px rgba(27, 64, 80, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.product-purchase-option:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 116, 136, .76);
  box-shadow: 0 9px 18px rgba(27, 64, 80, .13);
}
.product-purchase-option input[type="radio"] {
  flex: 0 0 auto;
  margin-top: 3px;
}
.product-purchase-option span {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  gap: 8px;
}
.product-purchase-option strong {
  color: #1b4050;
  font-size: 1.05rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.product-purchase-option em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff8df;
  background: linear-gradient(135deg, #9b5b1e, #c28b3d);
  box-shadow: 0 3px 8px rgba(138, 69, 20, .2);
}
.product-purchase-option.is-selected,
.product-purchase-option:has(input:checked) {
  border-color: #0d7488;
  background: linear-gradient(135deg, rgba(221, 244, 243, .98), rgba(255, 249, 226, .98));
  box-shadow: 0 10px 20px rgba(13, 116, 136, .18);
}
.product-purchase-option.is-selected::after,
.product-purchase-option:has(input:checked)::after {
  position: absolute;
  top: 9px;
  right: 9px;
  content: "已选择";
  color: #0d7488;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .05em;
}
@media (max-width: 680px) {
  .product-purchase-options {
    overflow-x: auto;
  }
  .product-purchase-option-grid {
    grid-template-columns: repeat(3, minmax(138px, 1fr));
    min-width: 438px;
  }
}

/* Payment Links: three currencies for the selected product/tier. */
.product-payment-form { min-width: 0; }
.product-payment-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.product-payment-buttons .product-payment-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 13px 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 9px;
  color: #fffaf0;
  background: linear-gradient(135deg, #155968, #087d88);
  box-shadow: 0 6px 14px rgba(13, 86, 103, .15);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.product-payment-buttons .payment-usd {
  background: linear-gradient(135deg, #344e70, #4b7593);
}
.product-payment-buttons .payment-hkd {
  background: linear-gradient(135deg, #835a2c, #b68137);
}
.product-payment-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(27, 64, 80, .23);
}
.product-payment-button:focus-visible {
  outline: 3px solid #c28b3d;
  outline-offset: 3px;
}
.payment-currency-code {
  font-size: .7rem;
  line-height: 1;
  letter-spacing: .16em;
  opacity: .8;
}
.payment-currency-label {
  font-size: clamp(.8rem, 1.8vw, 1rem);
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
[data-product-base-buy-url-field][hidden] { display: none; }
@media (max-width: 480px) {
  .product-payment-buttons { gap: 7px; }
  .product-payment-buttons .product-payment-button { min-height: 66px; padding-inline: 4px; }
}
