:root {
  --pc-bg: #f3efe8;
  --pc-paper: #fffdf9;
  --pc-paper-2: #f6f1ea;
  --pc-line: #e4d8c8;
  --pc-line-strong: #d3bea3;
  --pc-text: #30261d;
  --pc-muted: #7f6d5c;
  --pc-accent: #8f6440;
  --pc-shadow: 0 14px 32px rgba(68, 46, 25, .07);
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8f5ef 0%, #f2ede4 100%);
  color: var(--pc-text);
  font-family: "Segoe UI", "PingFang SC", Arial, sans-serif;
}

body {
  line-height: 1.75;
}

img {
  max-width: 100%;
}

a {
  color: var(--pc-accent);
  text-decoration: none;
}

a:hover {
  color: #6d4a2c;
}

.pc-hidden {
  display: none;
}

.pc-wrap {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
}

.pc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 232, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pc-line);
}

/* Row 1: brand + search/actions */
.pc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
}

.pc-brand a {
  font-size: 26px;
  font-weight: 800;
  color: var(--pc-text);
  white-space: nowrap;
}

.pc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Row 2: nav bar */
.pc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 0 12px;
  border-top: 1px solid var(--pc-line);
  margin-top: 2px;
}

.pc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--pc-text);
  font-size: 14px;
  font-weight: 500;
  transition: .2s ease;
  white-space: nowrap;
}

.pc-nav a:hover,
.pc-home-link {
  background: rgba(255,255,255,.7);
}

.pc-home-link {
  font-weight: 700;
}

/* Shared muted text styles */
.pc-row-meta,
.pc-article-meta,
.pc-mini-row span,
.pc-mini-row strong,
.pc-tag-ribbon span,
.pc-breadcrumb,
.pc-breadcrumb a,
.pc-breadcrumb li,
.pc-diy-box strong {
  color: var(--pc-muted);
  font-size: 13px;
}

.pc-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--pc-line);
  background: #fff;
  color: var(--pc-text);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.pc-search,
.pc-search-wide {
  display: grid;
  grid-template-columns: minmax(120px, 200px) auto;
  gap: 0;
}

.pc-search input,
.pc-search-wide input {
  height: 38px;
  border-radius: 12px 0 0 12px;
  border: 1px solid var(--pc-line);
  border-right: none;
  background: #fff;
  padding: 0 14px;
  outline: none;
  color: var(--pc-text);
  font-size: 13px;
}

.pc-search input:focus {
  border-color: var(--pc-accent);
}

.pc-search button,
.pc-search-wide button,
.pc-btn {
  height: 38px;
  border: 0;
  border-radius: 0 12px 12px 0;
  padding: 0 16px;
  background: var(--pc-accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pc-btn-light {
  background: #fff;
  color: var(--pc-text);
  border: 1px solid var(--pc-line);
}

.pc-main {
  padding: 24px 0 40px;
}

.pc-intro-band,
.pc-lead-banner,
.pc-list-head,
.pc-search-panel,
.pc-diy-panel,
.pc-empty-page,
.pc-article-detail,
.pc-detail-panel,
.pc-comments-box,
.pc-row-group,
.pc-side-tags,
.pc-tag-ribbon {
  background: var(--pc-paper);
  border: 1px solid var(--pc-line);
  border-radius: 24px;
  box-shadow: var(--pc-shadow);
}

.pc-intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  margin-bottom: 22px;
}

.pc-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1e7da;
  color: var(--pc-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.pc-intro-copy h1,
.pc-list-head h1,
.pc-search-panel h1,
.pc-diy-panel h1,
.pc-article-shell h1,
.pc-empty-page h1 {
  margin: 14px 0 10px;
  font-size: 48px;
  line-height: 1.08;
}

.pc-intro-copy p,
.pc-list-head p,
.pc-lead-banner p,
.pc-row-body p,
.pc-search-card p,
.pc-diy-box span {
  color: var(--pc-muted);
}

.pc-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pc-lead-banner,
.pc-list-head,
.pc-search-panel,
.pc-diy-panel,
.pc-empty-page {
  padding: 26px 28px;
  margin-bottom: 22px;
}

.pc-lead-banner h2,
.pc-row-body h3,
.pc-search-card h3 {
  margin: 10px 0;
  font-size: 28px;
  line-height: 1.16;
}

.pc-row-group {
  padding: 18px;
  margin-bottom: 22px;
}

.pc-row-head {
  margin-bottom: 10px;
  padding: 8px 6px 14px;
}

.pc-row-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: var(--pc-paper-2);
  border: 1px solid var(--pc-line);
}

.pc-row-card + .pc-row-card {
  margin-top: 14px;
}

.pc-row-thumb {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.pc-row-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.pc-row-tail {
  display: flex;
  justify-content: center;
}

.pc-row-tail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pc-line-strong);
  color: var(--pc-text);
  font-weight: 700;
}

.pc-breadcrumb {
  margin-bottom: 18px;
}

.pc-pagination,
.pagination {
  margin-top: 18px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 4px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--pc-line);
  background: #fff;
  color: var(--pc-text);
}

.pc-detail-wrap {
  width: min(1080px, calc(100% - 24px));
}

.pc-article-detail,
.pc-comments-box,
.pc-detail-panel,
.pc-side-tags {
  padding: 24px;
}

.pc-article-cover {
  margin: 18px 0 22px;
  overflow: hidden;
  border-radius: 18px;
}

.pc-article-content {
  font-size: 17px;
  line-height: 1.95;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pc-article-content > :first-child { margin-top: 0 !important; }

.pc-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 18px 0;
  display: block;
}

.pc-article-content h1, .pc-article-content h2, .pc-article-content h3,
.pc-article-content h4, .pc-article-content h5, .pc-article-content h6 {
  margin: 32px 0 14px; font-weight: 700; line-height: 1.3;
}
.pc-article-content h1 { font-size: 28px; }
.pc-article-content h2 { font-size: 24px; border-bottom: 1px solid var(--pc-line, #e6ddcf); padding-bottom: 8px; }
.pc-article-content h3 { font-size: 20px; }
.pc-article-content h4 { font-size: 18px; }

.pc-article-content p, .pc-article-content div { margin: 0 0 16px; }
.pc-article-content a { text-decoration: underline; text-underline-offset: 3px; }
.pc-article-content b, .pc-article-content strong { font-weight: 700; }

.pc-article-content ul, .pc-article-content ol {
  margin: 14px 0; padding: 0 0 0 28px; line-height: 1.8;
}
.pc-article-content ol { list-style: decimal; }
.pc-article-content ul { list-style: disc; }
.pc-article-content li { margin-bottom: 6px; }

.pc-article-content blockquote {
  border-left: 4px solid var(--pc-accent, #9e6f43);
  padding: 14px 20px; margin: 20px 0;
  background: var(--pc-paper-2, #f7f2ea);
  border-radius: 0 14px 14px 0; color: var(--pc-muted, #7d705f);
}

.pc-article-content code {
  padding: 2px 6px; margin: 0 3px;
  background: var(--pc-paper-2, #f7f2ea);
  border: 1px solid var(--pc-line, #e6ddcf);
  border-radius: 6px; font-size: 14px;
  font-family: 'Consolas', 'Monaco', monospace;
}

.pc-article-content pre {
  padding: 18px 20px; margin: 20px 0;
  background: var(--pc-text, #332b22); color: var(--pc-paper, #fffdf9);
  border-radius: 14px; font-size: 14px; line-height: 1.6;
  overflow-x: auto; white-space: pre;
  font-family: 'Consolas', 'Monaco', monospace;
}
.pc-article-content pre code {
  padding: 0; margin: 0; background: none; border: none; border-radius: 0; color: inherit;
}

.pc-article-content hr {
  border: 0; border-top: 1px solid var(--pc-line, #e6ddcf); margin: 24px 0;
}

.pc-article-content table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  overflow-x: auto; display: block;
}
.pc-article-content thead { background: var(--pc-paper-2, #f7f2ea); }
.pc-article-content td, .pc-article-content th {
  min-width: 60px; border: 1px solid var(--pc-line, #e6ddcf);
  padding: 8px 12px; text-align: left;
}
.pc-article-content th { font-weight: 700; }

/* Title word-wrap */
.pc-article-detail h1 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Mini-row link truncation */
.pc-mini-row a {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pc-tags,
.pc-tag-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-tags a,
.pc-tag-ribbon a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #faf6ef;
  border: 1px solid var(--pc-line);
  color: var(--pc-text);
}

.pc-detail-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.pc-detail-panel h3,
.pc-side-tags h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.pc-mini-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: #faf6ef;
  border: 1px solid var(--pc-line);
}

.pc-mini-row + .pc-mini-row {
  margin-top: 12px;
}

.pc-mini-row a {
  display: block;
  color: var(--pc-text);
  font-weight: 700;
}

.pc-search-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.pc-search-results {
  display: grid;
  gap: 14px;
}

.pc-search-card,
.pc-diy-box {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--pc-paper-2);
  border: 1px solid var(--pc-line);
}

.pc-empty-inline {
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: var(--pc-muted);
  background: #faf6ef;
  border: 1px dashed var(--pc-line-strong);
}

.pc-diy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pc-diy-box strong {
  display: block;
  margin-bottom: 8px;
}

.pc-footer {
  padding: 0 0 30px;
}

.pc-footer-inner {
  padding: 20px 24px;
  text-align: center;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--pc-line);
  border-radius: 22px;
}

.pc-footer p {
  margin: 0;
  color: var(--pc-muted);
}

.pc-empty-page {
  text-align: center;
}

.pc-scrolltop {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--pc-accent);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .25s ease;
  box-shadow: 0 8px 24px rgba(70, 46, 27, .22);
}

.pc-scrolltop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .pc-row-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .pc-row-tail {
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .pc-intro-band,
  .pc-search-top,
  .pc-detail-rows,
  .pc-diy-grid {
    grid-template-columns: 1fr;
  }

  .pc-menu-toggle {
    display: inline-flex;
  }

  .pc-nav {
    display: none;
    border-top: none;
    padding: 8px 0 12px;
  }

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

  .pc-row-card,
  .pc-search,
  .pc-search-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pc-wrap,
  .pc-detail-wrap {
    width: min(100% - 16px, 1320px);
  }

  .pc-main {
    padding-top: 16px;
  }

  /* Header mobile */
  .pc-header-top {
    flex-wrap: wrap;
    min-height: 50px;
    gap: 8px;
  }

  .pc-brand a {
    font-size: 22px;
  }

  .pc-search,
  .pc-search-wide {
    grid-template-columns: 1fr auto;
  }

  .pc-intro-copy h1,
  .pc-list-head h1,
  .pc-search-panel h1,
  .pc-diy-panel h1,
  .pc-article-shell h1,
  .pc-empty-page h1 {
    font-size: 32px;
  }

  .pc-lead-banner h2,
  .pc-row-body h3,
  .pc-search-card h3 {
    font-size: 22px;
  }

  .pc-lead-banner,
  .pc-list-head,
  .pc-search-panel,
  .pc-diy-panel,
  .pc-empty-page,
  .pc-article-detail,
  .pc-detail-panel,
  .pc-comments-box,
  .pc-row-group,
  .pc-side-tags,
  .pc-footer-inner,
  .pc-tag-ribbon {
    padding: 18px;
  }

  .pc-diy-grid {
    grid-template-columns: 1fr;
  }

  /* Article content mobile */
  .pc-article-content { font-size: 15px; }
  .pc-article-content h1 { font-size: 24px; }
  .pc-article-content h2 { font-size: 20px; }
  .pc-article-content h3 { font-size: 18px; }
  .pc-article-content pre { font-size: 12px; padding: 14px; }
  .pc-article-content table { font-size: 13px; }
  .pc-article-content td, .pc-article-content th { padding: 6px 8px; min-width: 40px; }
  .pc-article-content img { border-radius: 10px; margin: 12px 0; }
  .pc-article-detail h1 { font-size: 28px; }
  .pc-detail-rows { grid-template-columns: 1fr; }
}
