/*
Theme Name: PANO Vacuum Blog
Theme URI: https://panovacuum.cn/
Author: PANO Vacuum
Description: 帕诺真空官网博客主题，版式与 panovacuum.cn 主站一致（导航、页脚、卡片、中文排版）。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: pano
*/

:root {
  --pano-ui-green: #4E70C3;
  --pano-ui-green-hover: #3D5A9B;
  --pano-ui-ink: #333333;
  --pano-ui-muted: #666666;
  --pano-ui-mint: #F4F6FC;
  --pano-ui-mint-strong: #E7ECFA;
  --pano-ui-line: #E3E8F2;
  --pano-primary: #2B3A5C;
  --pano-accent: #4E70C3;
  --pano-accent-soft: #EDF1FB;
  --pano-accent-warm: #f1940f;
  --pano-line: #E3E8F2;
  --pano-bg: #FFFFFF;
  --pano-bg-alt: #F4F6FB;
  --pano-neutral-600: #666666;
  --pano-neutral-900: #333333;
  --pano-radius: 10px;
  --pano-shadow: 0 12px 32px rgba(46, 75, 150, 0.10);
  --pano-shadow-soft: 0 2px 10px rgba(46, 75, 150, 0.06);
  --pano-wrap: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pano-bg);
  color: var(--pano-ui-ink);
  font-family: Inter, "SF Pro Text", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pano-accent); text-decoration: none; }
a:hover { color: var(--pano-ui-green-hover); }

h1, h2, h3, h4, h5, h6 { color: var(--pano-primary); margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -0.005em; }

p { margin: 0 0 18px; }

.container { max-width: var(--pano-wrap); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ---------------- Header ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--pano-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--pano-wrap);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  color: var(--pano-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .brand-en { font-size: 26px; text-transform: uppercase; }
.brand .brand-zh { font-size: 15px; font-weight: 600; color: var(--pano-ui-muted); letter-spacing: 0.02em; }
.brand:hover { color: var(--pano-primary); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  color: var(--pano-neutral-900);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.main-nav a:hover { color: var(--pano-accent); background: var(--pano-accent-soft); }
.main-nav a.is-active { color: var(--pano-accent); background: var(--pano-accent-soft); }

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--pano-accent);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.header-cta:hover { background: var(--pano-ui-green-hover); }

/* ---------------- Page head / hero ---------------- */
.page-head {
  background: linear-gradient(180deg, var(--pano-ui-mint) 0%, #fff 100%);
  border-bottom: 1px solid var(--pano-line);
  padding: 52px 0 44px;
}
.page-head .crumb { font-size: 13.5px; color: var(--pano-ui-muted); margin-bottom: 14px; }
.page-head .crumb a { color: var(--pano-ui-muted); }
.page-head .crumb a:hover { color: var(--pano-accent); }
.page-head h1 { font-size: 34px; line-height: 1.3; margin: 0 0 12px; }
.page-head .lead { font-size: 16.5px; color: var(--pano-ui-muted); max-width: 62ch; margin: 0; }

/* ---------------- Cards / list ---------------- */
.section { padding: 48px 0 64px; }
.section-tight { padding: 32px 0 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { font-size: 22px; color: var(--pano-primary); }
.section-title::after {
  content: ""; display: block; width: 44px; height: 3px; background: var(--pano-accent);
  border-radius: 2px; margin-top: 10px;
}

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

.post-card {
  border: 1px solid var(--pano-line);
  border-radius: var(--pano-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--pano-shadow-soft);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.post-card:hover { box-shadow: var(--pano-shadow); transform: translateY(-2px); border-color: #d6def0; }
.post-card .thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pano-bg-alt); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-inner { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .chip {
  align-self: flex-start;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--pano-accent); background: var(--pano-accent-soft);
  border-radius: 999px; padding: 3px 10px;
}
.post-card h2, .post-card h3 { font-size: 18px; line-height: 1.55; margin: 0; }
.post-card h2 a, .post-card h3 a { color: var(--pano-primary); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--pano-accent); }
.post-card p { font-size: 14.5px; line-height: 1.75; color: var(--pano-ui-muted); margin: 0; flex: 1; }
.post-card .meta { font-size: 13px; color: #8a93a6; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- Single article ---------------- */
.article-wrap { max-width: 800px; margin: 0 auto; padding: 44px 24px 64px; }
.article-head h1 { font-size: 33px; line-height: 1.4; margin: 0 0 16px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 13.5px; color: var(--pano-ui-muted);
  padding-bottom: 20px; border-bottom: 1px solid var(--pano-line); margin-bottom: 26px;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c3cad9; }
.article-cover { margin: 0 0 30px; }
.article-cover img { width: 100%; border-radius: 12px; }

.article-body { font-size: 17px; line-height: 1.95; color: var(--pano-ui-ink); }
.article-body > p:first-of-type { font-size: 17.5px; color: #445067; }
.article-body h2 {
  font-size: 22px; line-height: 1.5; margin: 42px 0 16px; padding-left: 14px; position: relative;
}
.article-body h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  background: var(--pano-accent); border-radius: 2px;
}
.article-body h3 { font-size: 18.5px; margin: 30px 0 12px; }
.article-body h4 { font-size: 17px; margin: 24px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin: 0 0 10px; }
.article-body ul li::marker { color: var(--pano-accent); }
.article-body ol li::marker { color: var(--pano-accent); font-weight: 600; }
.article-body strong { color: var(--pano-primary); font-weight: 700; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 26px 0; padding: 16px 20px; border-left: 3px solid var(--pano-accent);
  background: var(--pano-ui-mint); color: #46536e; border-radius: 0 8px 8px 0;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 28px 0; }
.article-body figure img { border-radius: 12px; }
.article-body figcaption, .article-body .wp-caption-text {
  font-size: 13.5px; color: #8a93a6; text-align: center; margin-top: 10px; line-height: 1.7;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--pano-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--pano-ui-mint); color: var(--pano-primary); font-weight: 600; }
.article-body hr { border: 0; border-top: 1px solid var(--pano-line); margin: 36px 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.tag-row a {
  font-size: 13px; color: #5b6577; background: var(--pano-bg-alt); border: 1px solid var(--pano-line);
  border-radius: 999px; padding: 5px 12px; text-decoration: none;
}
.tag-row a:hover { color: var(--pano-accent); border-color: #c9d6f5; background: var(--pano-accent-soft); }

/* CTA box */
.cta-box {
  margin: 40px 0 0; padding: 26px 28px; border-radius: 12px;
  background: linear-gradient(135deg, #f7f9ff 0%, var(--pano-ui-mint-strong) 100%);
  border: 1px solid #dfe6f8;
}
.cta-box h3 { font-size: 19px; margin: 0 0 8px; }
.cta-box p { font-size: 15px; color: #556074; margin: 0 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px;
  border-radius: 8px; background: var(--pano-accent); color: #fff !important;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--pano-ui-green-hover); }
.btn-outline { background: #fff; color: var(--pano-accent) !important; border: 1px solid #c9d6f5; }
.btn-outline:hover { background: var(--pano-accent-soft); }

.author-box {
  display: flex; gap: 14px; align-items: flex-start; margin: 30px 0 0;
  padding: 18px 20px; border: 1px solid var(--pano-line); border-radius: 12px; background: #fff;
}
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
  background: var(--pano-accent-soft); color: var(--pano-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.author-box .name { font-size: 15px; font-weight: 700; color: var(--pano-primary); }
.author-box .role { font-size: 13.5px; color: var(--pano-ui-muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0 0; }
.post-nav a {
  display: block; padding: 16px 18px; border: 1px solid var(--pano-line); border-radius: 10px;
  text-decoration: none; background: #fff;
}
.post-nav a:hover { border-color: #c9d6f5; background: #fafbff; }
.post-nav .label { font-size: 12.5px; color: #8a93a6; display: block; margin-bottom: 4px; }
.post-nav .ttl { font-size: 15px; color: var(--pano-primary); font-weight: 600; line-height: 1.5; }
.post-nav .next { text-align: right; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--pano-bg-alt); color: var(--pano-ui-muted); border-top: 1px solid var(--pano-ui-line); margin-top: 24px; }
.footer-main {
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.85fr) minmax(0,.85fr) minmax(0,1.2fr);
  gap: 48px; padding: 56px 24px 40px; max-width: var(--pano-wrap); margin: 0 auto; align-items: start;
}
.footer-identity { max-width: 360px; }
.footer-brand { color: var(--pano-ui-ink); font-size: 26px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.01em; }
.footer-tagline { font-size: 14px; line-height: 1.75; color: var(--pano-ui-muted); margin: 0 0 20px; max-width: 34ch; }
.footer-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 10px;
  background: var(--pano-ui-ink); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none;
}
.footer-cta:hover { background: #1c2740; }
.footer-title { color: var(--pano-ui-ink); font-size: 12px; font-weight: 600; letter-spacing: .1em; margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 9px; }
.footer-links a { font-size: 14px; line-height: 1.6; color: var(--pano-ui-muted); text-decoration: none; }
.footer-links a:hover { color: var(--pano-ui-ink); }
.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li { margin: 0 0 9px; font-size: 14px; line-height: 1.6; }
.footer-contact-list .label { color: #98a1b3; margin-right: 6px; }
.footer-contact-list a { color: var(--pano-ui-muted); text-decoration: none; }
.footer-contact-list a:hover { color: var(--pano-ui-ink); }
.footer-bottom {
  border-top: 1px solid var(--pano-ui-line);
  padding: 18px 24px 26px; max-width: var(--pano-wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  font-size: 13px; color: #8a93a6;
}
.footer-bottom a { color: #8a93a6; text-decoration: none; }
.footer-bottom a:hover { color: var(--pano-ui-ink); }
.footer-bottom .sep { color: #ccd3e0; }
.footer-operator { font-size: 12.5px; color: #98a1b3; }

/* ---------------- Pagination / archive ---------------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0 0; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 12px; border: 1px solid var(--pano-line); border-radius: 8px;
  font-size: 14px; color: #5b6577; text-decoration: none; background: #fff;
}
.pagination .page-numbers.current { background: var(--pano-accent); border-color: var(--pano-accent); color: #fff; }
.pagination .page-numbers:hover { border-color: #c9d6f5; color: var(--pano-accent); }

.empty-state { padding: 60px 0; text-align: center; color: var(--pano-ui-muted); }

/* ---------------- Search ---------------- */
.search-form { display: flex; gap: 8px; max-width: 420px; }
.search-form input[type="search"] {
  flex: 1; height: 40px; padding: 0 14px; border: 1px solid var(--pano-line);
  border-radius: 8px; font-size: 15px; color: var(--pano-ui-ink); background: #fff;
}
.search-form button {
  height: 40px; padding: 0 18px; border: 0; border-radius: 8px;
  background: var(--pano-accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .header-inner { padding: 12px 18px; }
  .brand .brand-en { font-size: 22px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .main-nav a { white-space: nowrap; padding: 7px 10px; font-size: 14px; }
  .page-head { padding: 36px 0 30px; }
  .page-head h1 { font-size: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 28px 18px 48px; }
  .article-head h1 { font-size: 25px; }
  .article-body { font-size: 16.5px; line-height: 1.9; }
  .article-body h2 { font-size: 20px; margin-top: 34px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 18px 28px; }
  .post-nav { grid-template-columns: 1fr; }
}

/* 同专题延伸阅读 */
.related { margin: 34px 0 10px; padding: 22px 24px; border: 1px solid var(--pano-line); border-radius: var(--pano-radius); background: var(--pano-bg-alt); }
.related h3 { font-size: 16px; margin: 0 0 12px; color: var(--pano-primary); }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.related li a { font-size: 15.5px; color: var(--pano-primary); }
.related li a:hover { color: var(--pano-accent); }
.related li span { font-size: 13px; color: #8a93a6; white-space: nowrap; }
.related .more { display: inline-block; margin-top: 12px; font-size: 14px; }
.article-cover img, .article-body figure img { border-radius: 12px; }
.post-card .chip { text-decoration: none; }
.post-card a.chip:hover { color: var(--pano-accent); }
