/*
Theme Name: PPV Hvac 暖通图例
Theme URI: https://example.com/ppv-hvac
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 通风系统供应商的暖通图纸风 WordPress 主题。图纸白配管道青与墨蓝,系统单线图 Hero(罩口→风管→阀→风机→塔)、六种图例符号卡、设备明细表与图签栏,把"图上有的都能供"讲清楚,适合能出方案又能供货的通风工程商。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ppv-hvac
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --paper: #f5f7f8;
  --paper-2: #eaeff1;
  --card: #ffffff;
  --teal: #1f7a8c;
  --teal-deep: #175c6a;
  --ink: #1b2a33;
  --gray: #61757e;
  --line: #d4dfe3;
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  /* 图纸网格 */
  --grid:
    repeating-linear-gradient(0deg, rgba(31,122,140,.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(31,122,140,.05) 0 1px, transparent 1px 24px);
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  background-image: var(--grid);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; height: auto; }
.sym { width: 118px; height: 88px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.btn {
  display: inline-block; padding: 12px 26px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card);
  color: var(--ink); cursor: pointer; transition: background .16s ease, color .16s ease;
}
.btn:hover { background: var(--ink); color: var(--card); }
.btn-main { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-main:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

/* ===== Header ===== */
.site-header { background: var(--card); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px;
  background: var(--teal); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.site-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.site-desc { font-family: var(--mono); font-size: 11px; color: var(--gray); letter-spacing: .06em; }
.site-nav .menu { display: flex; gap: 24px; list-style: none; }
.site-nav a { font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--teal); border-bottom-color: var(--teal); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero sheet(图纸框)===== */
.hero { padding: 44px 0 40px; }
.sheet { background: var(--card); border: 2px solid var(--ink); }
.sheet-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 24px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--gray); letter-spacing: .06em;
}
.sheet-no { color: var(--teal); font-weight: 700; }
.sheet-body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px 30px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.24; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub { margin-top: 16px; font-size: 15.5px; color: var(--gray); max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sheet-dwg { display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); padding: 14px; }
.sheet-foot {
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--gray);
}
.sheet-foot span { padding: 9px 24px; border-right: 1px solid var(--line); }
.sheet-foot span:last-child { border-right: 0; }

/* ===== Sections ===== */
.section { padding: 52px 0; }
.section-tint { background: var(--paper-2); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sec-tag { font-family: var(--mono); font-size: 12px; color: #fff; background: var(--ink); padding: 3px 12px; }
.sec-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.015em; }

/* ===== Legend cards ===== */
.legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.legend-card {
  background: var(--card); border: 2px solid var(--line); padding: 16px 20px 20px;
  transition: border-color .16s ease, transform .16s ease;
}
.legend-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.legend-fig { display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); padding: 10px; margin-bottom: 12px; }
.legend-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.legend-card h3 a:hover { color: var(--teal); }
.legend-card p { font-size: 14px; color: var(--gray); line-height: 1.8; }

/* ===== BOM table ===== */
.table-wrap { overflow-x: auto; background: var(--card); border: 2px solid var(--ink); }
.bom-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.bom-table th {
  text-align: left; padding: 11px 18px; background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  border-right: 1px solid #33454f;
}
.bom-table th:last-child { border-right: 0; }
.bom-table td { padding: 11px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.bom-table td:last-child { border-right: 0; }
.bom-table tbody tr:last-child td { border-bottom: 0; }
.bom-table tbody tr:hover { background: var(--paper); }
.bom-table .no { font-family: var(--mono); color: var(--teal); font-weight: 700; }
.bom-table .spec { font-family: var(--mono); color: var(--gray); }
.table-note { font-size: 13px; color: var(--gray); padding: 12px 18px; border-top: 1px solid var(--line); background: var(--paper); }

/* ===== Keys ===== */
.key-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.key { background: var(--card); border: 2px solid var(--line); border-top: 4px solid var(--teal); padding: 22px 20px; }
.key-no {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border: 2px solid var(--teal); color: var(--teal); font-family: var(--mono); font-weight: 700;
}
.key h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.key p { font-size: 14px; color: var(--gray); line-height: 1.85; }

/* ===== Notes ===== */
.note-list { background: var(--card); border: 2px solid var(--line); }
.note-row {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background .15s ease;
}
.note-row:last-child { border-bottom: 0; }
.note-row:hover { background: var(--paper); }
.note-tick { width: 10px; height: 10px; border: 2px solid var(--teal); border-radius: 2px; }
.note-row h3 { font-size: 16px; font-weight: 500; }
.note-row:hover h3 { color: var(--teal); }
.note-row time { font-family: var(--mono); font-size: 12px; color: var(--gray); }

/* ===== CTA ===== */
.cta-sheet {
  margin: 50px 0; background: var(--card); border: 2px solid var(--ink); padding: 30px 32px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta-label { display: inline-block; font-family: var(--mono); font-size: 11.5px; color: #fff; background: var(--teal); padding: 2px 12px; margin-bottom: 10px; }
.cta-sheet h2 { font-size: 23px; font-weight: 800; letter-spacing: -.015em; }
.cta-sheet p { font-size: 14px; color: var(--gray); margin-top: 8px; max-width: 42em; }
.cta-side { display: flex; align-items: center; gap: 18px; }
.cta-phone { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--teal); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--card); border-bottom: 2px solid var(--ink); padding: 30px 0; }
.page-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.breadcrumbs { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.breadcrumbs a:hover { color: var(--teal); }

.layout { display: grid; grid-template-columns: 1fr 290px; gap: 30px; padding: 40px 0 60px; align-items: start; }
.layout-full { padding: 40px 0 60px; }
.entry-card { background: var(--card); border: 2px solid var(--line); padding: 22px 24px; margin-bottom: 16px; }
.entry-card:hover { border-color: var(--teal); }
.entry-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.entry-card h2 a:hover { color: var(--teal); }
.entry-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.entry-meta a { color: var(--teal); }
.entry-excerpt { margin-top: 10px; font-size: 15px; color: #43555e; }
.entry-thumb { margin-bottom: 16px; border: 1px solid var(--line); }
.single-header { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 20px; }
.single-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.entry-content { background: var(--card); border: 2px solid var(--line); padding: 26px; font-size: 16px; }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2 { font-size: 21px; font-weight: 800; color: var(--teal-deep); }
.entry-content h3 { font-size: 18px; font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content blockquote { border-left: 4px solid var(--teal); background: var(--paper); padding: 14px 18px; color: #43555e; }
.entry-content code { font-family: var(--mono); background: var(--paper-2); padding: 2px 6px; }
.entry-content a { color: var(--teal); text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 14px; }
.post-nav a:hover { color: var(--teal); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 2px solid var(--line); background: var(--card); font-family: var(--mono); font-weight: 700;
}
.pagination .current, .pagination .page-numbers:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.sidebar-cta { background: var(--ink); color: #fff; padding: 24px 20px; text-align: center; }
.sidebar-cta h3 { font-size: 17px; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: #a9bcc4; margin: 8px 0 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 21px; color: #fff; margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; background: var(--teal); border-color: var(--teal); color: #fff; }
.widget { background: var(--card); border: 2px solid var(--line); padding: 20px; }
.widget-title { font-size: 16px; font-weight: 800; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #43555e; }
.widget li a:hover { color: var(--teal); }

.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 14px; }
.search-field:focus { outline: none; border-color: var(--teal); }
.search-submit { padding: 10px 18px; border: 2px solid var(--teal); border-radius: 4px; background: var(--teal); color: #fff; font-weight: 600; cursor: pointer; }
.search-submit:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

/* ===== Comments ===== */
.comments-area { margin-top: 24px; background: var(--card); border: 2px solid var(--line); padding: 24px; }
.comments-area h2, .comment-reply-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.comment-list .comment-body { border-left: 3px solid var(--line); padding-left: 16px; font-size: 15px; }
.comment-notes { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--teal); }
.comment-form .submit { padding: 12px 28px; border: 0; border-radius: 4px; background: var(--teal); color: #fff; font-weight: 700; cursor: pointer; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 78px 0; }
.error-code { font-family: var(--mono); font-size: 86px; font-weight: 800; color: var(--teal); line-height: 1; }
.error-page h1 { font-size: 25px; font-weight: 800; margin: 12px 0 8px; }
.error-page p { color: var(--gray); margin-bottom: 20px; }
.error-page .search-form { max-width: 420px; margin: 0 auto 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--card); border-top: 2px solid var(--ink); margin-top: 22px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 42px 0 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand strong { font-size: 17px; font-weight: 800; }
.footer-col p { font-size: 14px; color: var(--gray); }
.footer-col h3 { font-size: 15px; font-weight: 800; color: var(--teal-deep); margin-bottom: 14px; }
.footer-col ul, .footer-menu { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: #43555e; }
.footer-col a:hover { color: var(--teal); }
.footer-contact li { font-size: 14px; display: flex; gap: 8px; color: var(--gray); }
.footer-contact b { color: var(--ink); font-weight: 600; min-width: 34px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 14px 0; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .sheet-body { grid-template-columns: 1fr; gap: 26px; }
  .legend-grid { grid-template-columns: repeat(2, 1fr); }
  .key-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 780px) {
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 8px; border: 2px solid var(--line); border-radius: 4px; cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2.5px; background: var(--ink); }
  .site-nav { display: none; order: 10; width: 100%; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav .menu { flex-direction: column; gap: 2px; }
  .site-nav a { display: block; padding: 10px 0; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
  .sheet-body { padding: 26px 20px; }
  .sheet-foot { grid-template-columns: repeat(2, 1fr); }
  .sheet-foot span:nth-child(2) { border-right: 0; }
  .legend-grid, .key-grid { grid-template-columns: 1fr; }
  .note-row { grid-template-columns: 14px 1fr; }
  .note-row time { display: none; }
  .cta-sheet { padding: 26px 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}
