/* 万莫独立站 · 暖纸画廊 × 精密工坊 (Linear + Apple Notes) */

:root {
  --paper: #fbfbf9;
  --surface: #ffffff;
  --surface-soft: #f3f1ec;
  --surface-hover: #eceae3;
  --ink: #181a17;
  --ink-2: #363933;
  --muted: #5d6158;
  --subtle: #82867c;
  --line: rgba(24, 26, 23, 0.09);
  --line-strong: rgba(24, 26, 23, 0.16);
  --green: #1f4a3c;
  --green-hover: #16382d;
  --green-soft: rgba(31, 74, 60, 0.075);
  --green-border: rgba(31, 74, 60, 0.24);
  --orange: #c8532b;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --shadow-xs: 0 1px 2px rgba(24, 26, 23, 0.04);
  --shadow-sm: 0 1px 3px rgba(24, 26, 23, 0.05), 0 8px 20px -12px rgba(24, 26, 23, 0.09);
  --shadow-md: 0 6px 18px rgba(24, 26, 23, 0.07), 0 22px 44px -18px rgba(24, 26, 23, 0.14);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
  --container: 1120px;
  --gutter: clamp(18px, 4vw, 32px);
}

html {
  background: var(--paper);
  scroll-padding-top: 84px;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(31, 74, 60, 0.16);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

a:hover {
  color: var(--green);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  border-radius: 6px;
  font-size: 13px;
}

/* ---------- 粘性磨砂顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 249, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.header-inner {
  width: min(100%, var(--container));
  min-height: 64px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: #fbfbf9;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
  padding-right: 4px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.brand-mark span {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.brand:hover .brand-mark {
  background: var(--green);
  transform: translateY(-0.5px);
}

.brand-name {
  line-height: 1;
}

.site-header #navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
  font-size: 14px;
}

.site-header #navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 450;
  white-space: nowrap;
}

.site-header #navigation a:hover {
  color: var(--ink);
  background: rgba(24, 26, 23, 0.045);
  text-decoration: none;
}

.site-header #navigation [aria-current] {
  color: var(--ink);
  font-weight: 600;
  background: rgba(24, 26, 23, 0.065);
  text-decoration: none;
}

.site-header #navigation a.shop-link {
  margin-left: 10px;
  padding: 0 13px;
  border: 1px solid var(--green-border);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 550;
}

.site-header #navigation a.shop-link:hover {
  background: rgba(31, 74, 60, 0.13);
  border-color: rgba(31, 74, 60, 0.36);
  color: var(--green-hover);
}

.menu-toggle {
  display: none;
}

/* ---------- 主容器 ---------- */

main#main {
  flex: 1 0 auto;
  width: min(100%, var(--container));
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 通用按钮与标题 ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.button:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #ffffff;
  transform: none;
}

.button.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.button-secondary:hover {
  background: var(--surface-soft);
  border-color: rgba(24, 26, 23, 0.28);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(31, 74, 60, 0.32);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--green-hover);
  border-bottom-color: var(--green-hover);
}

.page-title {
  padding: 36px 0 22px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- 首页双栏（产品 + 分享） ---------- */

.dual-content {
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(32px, 5vw, 64px);
  padding: 38px 0 72px;
  align-items: start;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.section-title a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.section-title a::after {
  content: "→";
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.18s var(--ease);
}

.section-title a:hover {
  color: var(--green);
}

.section-title a:hover::after {
  transform: translateX(2px);
}

/* ---------- 产品卡片（首页列表 & 独立产品页橱窗） ---------- */

.catalog-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.catalog-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.catalog-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid rgba(24, 26, 23, 0.07);
}

.catalog-image img,
.type-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.catalog-image img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s var(--ease);
}

.catalog-card:hover .catalog-image img {
  transform: scale(1.03);
}

.type-art {
  display: grid;
  place-content: center;
  background: var(--surface-soft);
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 32px;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.type-art sup {
  font-size: 14px;
  color: var(--orange);
}

.catalog-text {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 2px 2px 2px 0;
}

.catalog-text h2,
.catalog-text h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--ink);
}

.catalog-text h2 a:hover,
.catalog-text h3 a:hover {
  color: var(--green);
  text-decoration: none;
}

.catalog-text p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  margin: 0 0 12px;
}

.compact-summary {
  display: none;
}

.product-actions,
.detail-product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-card .product-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
}

.catalog-card .product-actions > a.product-go {
  border: 1px solid var(--green);
  background: var(--green);
  color: #ffffff;
}

.catalog-card .product-actions > a.product-go:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #ffffff;
}

.catalog-card .product-actions > a.feature-demo-link {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink-2);
}

.catalog-card .product-actions > a.feature-demo-link:hover {
  background: var(--surface-hover);
  border-color: rgba(24, 26, 23, 0.24);
  color: var(--ink);
}

/* 独立产品页 /projects/：橱窗双列展示，完整呈现产品截图 */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 0 72px;
}

.catalog-grid .catalog-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.catalog-grid .catalog-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-soft);
}

.catalog-grid .catalog-image img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(24, 26, 23, 0.08);
}

.catalog-grid .catalog-text {
  padding: 18px 20px 20px;
}

.catalog-grid .catalog-text h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.catalog-grid .catalog-text p {
  font-size: 13.5px;
  margin-bottom: 16px;
}

.catalog-grid .product-actions > a {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

/* ---------- 分享列表（苹果备忘录阅读质感） ---------- */

.post-row {
  border-bottom: 1px solid var(--line);
}

.post-row:last-child {
  border-bottom-color: transparent;
}

.post-link {
  display: grid;
  gap: 18px;
  align-items: center;
  margin: 4px -12px;
  padding: 15px 12px;
  border-radius: 10px;
  border-bottom: 0;
  overflow-wrap: anywhere;
  transition: background-color 0.16s var(--ease);
}

.post-link:hover {
  background: var(--surface-soft);
  color: inherit;
}

.post-link.with-cover {
  grid-template-columns: minmax(0, 1fr) 108px;
}

.post-link h2,
.post-link h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.48;
  margin: 0 0 6px;
  color: var(--ink);
  transition: color 0.16s var(--ease);
}

.post-link:hover h2,
.post-link:hover h3 {
  color: var(--green);
  text-decoration: none;
}

.post-link p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-link time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.post-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(24, 26, 23, 0.07);
  background: var(--surface-soft);
}

/* ---------- 分享列表页 & 关于页容器 ---------- */

.cms-posts,
.about-page {
  width: min(100%, 760px);
  padding: 0 0 72px;
  margin: 0 auto;
}

.cms-posts .page-title,
.about-page .page-title {
  padding-inline: 0;
}

.public-search {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 5px 5px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.public-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 74, 60, 0.12);
}

.public-search input {
  flex: 1;
  min-width: 0;
  padding: 7px 4px 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.public-search input::placeholder {
  color: var(--subtle);
}

.public-search input:focus-visible {
  outline: none;
}

.public-search .button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
}

.empty-state {
  color: var(--muted);
  margin: 22px 0 8px;
  font-size: 14px;
}

/* ---------- 关于我与联系卡片 ---------- */

.about-bio {
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.about-bio p {
  margin-bottom: 18px;
}

.about-bio a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(31, 74, 60, 0.35);
  text-underline-offset: 4px;
}

.about-bio a:hover {
  color: var(--green-hover);
  text-decoration-color: var(--green-hover);
}

.about-page .contact-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: 34px 0 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  scroll-margin-top: 88px;
}

.contact-copy {
  min-width: 0;
}

.contact-detail h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.contact-handle {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--muted);
}

.contact-handle strong {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  user-select: all;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-detail #copy-feedback {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--green);
  min-height: 0;
}

.contact-detail #copy-feedback:empty {
  margin: 0;
  min-height: 0;
}

.contact-qr {
  flex-shrink: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.contact-detail img {
  display: block;
  width: 132px;
  height: auto;
  padding: 0;
  border-radius: 6px;
}

/* ---------- 详情页（文章 / 产品） ---------- */

.article-wrap {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 0 80px;
}

.layout-magazine {
  max-width: 840px;
}

.preview-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--green-border);
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

.preview-banner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.back-link:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.article-header {
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin: 0 0 12px;
  color: var(--ink);
}

.article-header time {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.article-summary {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--muted);
}

.detail-product-actions {
  margin-top: 20px;
  gap: 10px;
}

.article-cover {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 26px 0 30px;
  box-shadow: var(--shadow-xs);
}

.article-content {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.article-content h1 {
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 34px 0 14px;
  color: var(--ink);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 38px 0 14px;
  color: var(--ink);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  margin: 28px 0 10px;
  color: var(--ink);
}

.article-content p {
  margin: 0 0 20px;
}

.article-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(31, 74, 60, 0.35);
  text-underline-offset: 4px;
}

.article-content a:hover {
  color: var(--green-hover);
  text-decoration-color: var(--green-hover);
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 26px auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

.article-content li {
  margin: 8px 0;
}

.article-content pre {
  overflow: auto;
  padding: 18px 20px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink);
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article-content :not(pre) > code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.article-content blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background: var(--surface-soft);
  color: var(--ink-2);
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 14px;
}

.article-content th {
  background: var(--surface-soft);
  font-weight: 600;
  color: var(--ink);
}

.article-content td,
.article-content th {
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
  text-align: left;
}

.align-center { text-align: center; }
.align-right { text-align: right; }
.align-left { text-align: left; }

.layout-magazine .article-header {
  border-bottom: 2px solid var(--green);
  padding-bottom: 24px;
}

.layout-magazine .article-content {
  font-size: 17px;
  line-height: 2.02;
}

.layout-magazine .article-content h2 {
  color: var(--green);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.error-actions {
  padding: 8px 0 80px;
}

/* ---------- 贴底页脚 ---------- */

footer.site-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner small {
  width: auto;
  order: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner .filing-links {
  width: auto;
  order: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
  padding: 0;
  font-size: 12px;
}

.footer-inner .filing-links a:hover {
  color: var(--ink);
}

/* ---------- 个人站版「问万莫」客服 ---------- */

.personal-chat {
  flex-shrink: 0;
  min-width: 82px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --line-strong: rgba(24, 26, 23, 0.16);
  --dim: var(--muted);
  --mint: var(--green);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

.personal-chat > button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.personal-chat > button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.personal-chat > button:hover {
  border-color: var(--green-border);
  background: var(--surface-soft);
  color: var(--green);
}

.personal-chat > button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.personal-chat .wmchat-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: none;
}

.personal-chat .wmchat-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.personal-chat .wmchat-head-title {
  color: var(--ink);
}

.personal-chat .wmchat-head-sub {
  color: var(--muted);
}

.personal-chat .wmchat-close {
  color: var(--muted);
  border-color: var(--line-strong);
}

.personal-chat .wmchat-close:hover {
  color: var(--ink);
  border-color: rgba(24, 26, 23, 0.3);
}

.personal-chat .wmchat-msg--bot .wmchat-bubble {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  color: var(--ink);
}

.personal-chat .wmchat-msg--user .wmchat-bubble {
  color: var(--ink);
  background: #e9f0ec;
  border: 1px solid rgba(31, 74, 60, 0.2);
}

.personal-chat .wmchat-input,
.personal-chat .wmchat-code {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.personal-chat .wmchat-input:focus {
  border-color: var(--green);
}

.personal-chat .wmchat-chip {
  background: var(--paper);
  color: var(--ink-2);
  border-color: var(--line-strong);
}

.personal-chat .wmchat-chip:hover {
  color: var(--green);
  border-color: var(--green-border);
  background: var(--green-soft);
}

.personal-chat .wmchat-send,
.personal-chat .wmchat-copy {
  background: var(--green);
  color: #ffffff;
}

.personal-chat .wmchat-send:hover,
.personal-chat .wmchat-copy:hover {
  background: var(--green-hover);
}

.personal-chat .wmchat-link {
  color: var(--green);
  border-bottom-color: rgba(31, 74, 60, 0.35);
}

.personal-chat .wmchat-link:hover {
  color: var(--green-hover);
  border-bottom-color: var(--green-hover);
}

.personal-chat .wmchat-status.is-error {
  color: #a43723;
}

.personal-chat .wmchat-wechat {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

@media (min-width: 721px) {
  .personal-chat .wmchat-panel {
    top: 74px;
    right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    bottom: auto;
    transform-origin: 100% 0;
  }
}

/* ---------- 覆盖旧 style.css 在 1320px / 1000px 断点的外边距 ---------- */

@media (max-width: 1320px) {
  .site-header,
  footer.site-footer {
    margin-left: 0;
    margin-right: 0;
  }

  main#main {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1000px) {
  .dual-content {
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    gap: 32px;
  }

  .catalog-card {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
  }

  .article-wrap {
    max-width: 740px;
  }
}

@media (max-width: 760px) {
  .dual-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 20px 0 44px;
  }

  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .header-inner {
    position: relative;
    min-height: 58px;
    gap: 8px;
  }

  .site-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    margin-inline-start: auto;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
  }

  .site-header #navigation {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: var(--gutter);
    right: var(--gutter);
    padding: 10px;
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    z-index: 45;
  }

  .site-header #navigation.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-header #navigation a {
    min-height: 42px;
    padding: 0 12px;
  }

  .site-header #navigation a.shop-link {
    margin: 6px 0 0;
    justify-content: center;
  }

  .personal-chat > button {
    min-height: 40px;
    padding: 0 11px;
  }

  .page-title {
    padding: 24px 0 16px;
  }

  .section-title {
    padding-bottom: 10px;
  }

  .section-title h2 {
    font-size: 18px;
  }

  /* 手机首页保持极紧凑单行卡片，让首篇分享在首屏露出 */
  .catalog-list {
    margin-top: 12px;
    gap: 10px;
  }

  .catalog-list .catalog-card {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 10px;
    border-radius: 11px;
  }

  .catalog-list .catalog-image {
    margin: 0;
    aspect-ratio: 1;
    border-radius: 8px;
  }

  .catalog-list .catalog-text {
    padding: 0;
  }

  .catalog-list .catalog-text h3 {
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 1.35;
  }

  .catalog-list .catalog-text p {
    margin: 0 0 8px;
    font-size: 12.5px;
    line-height: 1.48;
  }

  .catalog-list .has-compact-summary .full-summary {
    display: none;
  }

  .catalog-list .compact-summary {
    display: inline;
  }

  .catalog-list .product-actions {
    gap: 6px;
  }

  .catalog-card .product-actions > a {
    padding: 0 10px;
    font-size: 12px;
  }

  .post-link {
    margin: 2px -8px;
    padding: 13px 8px;
    gap: 14px;
  }

  .post-link.with-cover {
    grid-template-columns: minmax(0, 1fr) 80px;
  }

  .post-link h2,
  .post-link h3 {
    font-size: 15.5px;
  }

  .post-link p {
    font-size: 13px;
  }

  .cms-posts,
  .about-page {
    padding-bottom: 48px;
  }

  .about-page .contact-detail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 20px;
  }

  .contact-detail img {
    width: 112px;
  }

  .article-wrap {
    padding: 22px 0 56px;
  }

  .article-summary,
  .layout-magazine .article-content {
    font-size: 15px;
  }

  .article-content pre {
    font-size: 12px;
    padding: 14px;
  }

  .footer-inner {
    padding-block: 18px;
    gap: 8px 16px;
  }

  .footer-inner .filing-links {
    margin-left: 0;
    flex-direction: row;
    gap: 6px 16px;
  }
}

@media (max-width: 720px) {
  .personal-chat .wmchat-panel {
    max-height: 82dvh;
    border-radius: 16px 16px 0 0;
  }

  .personal-chat .wmchat-form .wmchat-input {
    font-size: 16px;
  }
}

@media (pointer: coarse) {
  .catalog-card .product-actions > a {
    min-height: 42px;
  }
}
