/* 文游网 — 全局样式 */
:root {
  --ink: #141816;
  --ink-soft: #2a312e;
  --mist: #e8eee9;
  --paper: #f3f6f2;
  --fog: #d5ddd6;
  --accent: #c45c3e;
  --accent-deep: #9a3f28;
  --teal: #3d6b5f;
  --muted: #5c6b64;
  --line: rgba(20, 24, 22, 0.12);
  --shadow: 0 18px 50px rgba(20, 24, 22, 0.08);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --max: 1120px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--accent-deep);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 242, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* —— 首页英雄区 —— */
.hero {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f6f8f5;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 22, 0.25) 0%, rgba(20, 24, 22, 0.72) 55%, rgba(20, 24, 22, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(61, 107, 95, 0.45), transparent 60%),
    linear-gradient(135deg, #1e3a34 0%, #24352f 40%, #3a2a22 100%);
  background-size: cover;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1.5px);
  background-size: 48px 48px, 72px 72px;
}

.hero-bg::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42%;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(196, 92, 62, 0.25), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23141816' fill-opacity='0.55' d='M0,224L80,208C160,192,320,160,480,165.3C640,171,800,213,960,218.7C1120,224,1280,192,1360,176L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E")
      bottom / 100% 100% no-repeat;
  pointer-events: none;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.2%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
  max-width: 40rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: riseIn 0.9s ease 0.15s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 1rem;
  opacity: 0;
  animation: riseIn 0.9s ease 0.35s forwards;
}

.hero-desc {
  margin: 0 0 2rem;
  color: rgba(246, 248, 245, 0.78);
  font-size: 1.02rem;
  max-width: 28rem;
  opacity: 0;
  animation: riseIn 0.9s ease 0.55s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: riseIn 0.9s ease 0.7s forwards;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(246, 248, 245, 0.45);
  color: #f6f8f5;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(246, 248, 245, 0.08);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-soft);
  color: #fff;
}

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

/* —— 区块通用 —— */
.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-link {
  color: var(--teal);
  font-size: 0.92rem;
  white-space: nowrap;
}

.section-muted {
  background: linear-gradient(180deg, #eef2ee 0%, var(--paper) 100%);
}

/* —— 文章列表（非卡片堆叠，用分割线列表） —— */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.article-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.article-item time {
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.article-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.article-item .meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.article-item .tag {
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* —— 栏目导览 —— */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.channel {
  background: var(--paper);
  padding: 1.75rem 1.35rem;
  transition: background 0.25s ease;
}

.channel:hover {
  background: #fff;
}

.channel h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.channel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* —— 内页头 —— */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(180deg, #e4ebe5 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

/* —— 关于页 —— */
.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  padding: 3.5rem 0 4.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2.2rem 0 0.9rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

.prose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.prose-table th,
.prose-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose-table th {
  background: #eef2ee;
  color: var(--ink);
  font-weight: 600;
}

.prose-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.55);
}

.aside-panel {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: #fff;
}

.aside-panel h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.aside-panel p,
.aside-panel li {
  color: var(--muted);
  font-size: 0.92rem;
}

.aside-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* —— 文章正文 —— */
.article-page {
  padding: 3rem 0 4.5rem;
}

.article-wrap {
  max-width: 42rem;
  margin: 0 auto;
}

.article-wrap .eyebrow {
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.article-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.35;
  margin: 0 0 1rem;
}

.article-wrap .article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.article-body p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.85rem;
}

.article-nav {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

/* —— 页脚 —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(246, 248, 245, 0.78);
  padding: 2.75rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.footer-grid h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(246, 248, 245, 0.72);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(246, 248, 245, 0.72);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.beian-gongan img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* —— 响应式 —— */
@media (max-width: 900px) {
  .channel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .article-item .tag {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(243, 246, 242, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}


/* 鈥斺€?灏忓崠閮?鈥斺€?*/
.shop-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.shop-section {
  padding-top: 2rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.shop-aside-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}

.shop-filters {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.shop-filter {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.shop-filter:hover,
.shop-filter.is-active {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(61, 107, 95, 0.06);
}

.shop-note {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.shop-result {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.shop-sort select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 0.55rem;
  font: inherit;
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product {
  background: #fff;
  padding: 1.35rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: background 0.2s ease;
}

.product:hover {
  background: #fafcfb;
}

.product-cover {
  margin: -1.35rem -1.25rem 0.9rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e4ebe5, #d5ddd6);
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-intro-figure {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: #f3f6f3;
  overflow: hidden;
}

.project-intro-figure img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.product-cover-empty {
  min-height: 7rem;
}

.modal-cover {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
}

.feedback-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
}

.feedback-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.product-cat {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.product-name {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
}

.product-blurb {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.product-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-sm {
  min-height: 2.2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.shop-modal[hidden],
.cart-mask[hidden] {
  display: none !important;
}

.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.shop-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, 0.45);
}

.shop-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.shop-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.shop-modal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.35;
}

.modal-price {
  margin: 0 0 0.85rem;
}

.modal-desc {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.modal-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(100%, 22rem);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-mask {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(20, 24, 22, 0.35);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.15rem;
  overflow: auto;
  flex: 1;
}

.cart-empty {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.cart-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.cart-item-actions {
  display: flex;
  gap: 0.25rem;
  align-items: start;
}

.cart-item-actions button {
  border: 1px solid var(--line);
  background: #fff;
  width: 1.7rem;
  height: 1.7rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-foot {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-deep);
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* 鈥斺€?缁撶畻 / 寰俊鏀舵 鈥斺€?*/
.shop-steps {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.shop-steps h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.shop-steps ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* 结算：右侧抽屉（与购物篮同侧） */
#checkoutModal.shop-modal {
  z-index: 95;
  display: block;
  padding: 0;
  place-items: unset;
}

#checkoutModal .checkout-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(100%, 26rem);
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1.5rem 1.25rem 1.75rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow);
  animation: checkoutSlideIn 0.28s ease;
}

@keyframes checkoutSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (max-width: 480px) {
  #checkoutModal .checkout-panel {
    width: 100%;
  }
}

.checkout-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-summary {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  color: var(--ink-soft);
}

.sum-total {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}

.sum-total span:last-child {
  color: var(--accent-deep);
  font-family: var(--font-display);
}

.field {
  display: block;
  margin-bottom: 0.85rem;
}

.field span {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.field em {
  color: var(--accent);
  font-style: normal;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(61, 107, 95, 0.35);
  border-color: var(--teal);
}

.field-error {
  color: var(--accent-deep);
  font-size: 0.85rem;
  margin: -0.35rem 0 0.75rem;
}

.checkout-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.pay-amount {
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.15em;
}

.pay-order-box {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.85rem 0.95rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.pay-order-box code {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0.35rem 0 0.55rem;
  font-family: ui-monospace, Consolas, monospace;
}

.pay-email-line {
  color: var(--muted);
  word-break: break-all;
}

.linkish {
  border: 0;
  background: none;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
  margin-left: 0.5rem;
  text-decoration: underline;
}

.pay-qr-wrap {
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.pay-qr-wrap img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #fff;
}

.pay-qr-tip {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pay-steps {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.pay-actions {
  display: grid;
  gap: 0.5rem;
}

.pay-actions .btn {
  text-align: center;
}

.pay-foot-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}
