/*
Theme Name: PPV Anemo 风量仪表
Theme URI: https://example.com/ppv-anemo
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 通风管道厂商的仪表盘风 WordPress 主题。仪表灰白配指针红与深钢蓝,圆形刻度表盘(风速/全压/阻力系数/噪声四项读数)、皮托管测点插图与风速对照表,把管件选型讲成"调这四个数",适合以实测数据取信客户的供应商。
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-anemo
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --bg: #f1f4f7;
  --bg-2: #e6ebf1;
  --card: #ffffff;
  --red: #d63c3c;
  --red-deep: #b62c2c;
  --steel: #28303c;
  --steel-2: #48566b;
  --ink: #1d242e;
  --gray: #6d7b8c;
  --line: #d5dde6;
  --green: #1f8f5f;
  --radius: 12px;
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --lift: 0 2px 6px rgba(29,36,46,.05), 0 12px 26px rgba(40,48,60,.07);
}

/* ===== 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(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; height: auto; }
.gauge { width: 190px; height: 190px; }
.gauge-sm { width: 120px; height: 120px; }
.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(--steel); border-radius: 6px; background: var(--card);
  color: var(--steel); cursor: pointer; transition: background .16s ease, color .16s ease;
}
.btn:hover { background: var(--steel); color: #fff; }
.btn-main { background: var(--red); border-color: var(--red); color: #fff; }
.btn-main:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* ===== Read bar ===== */
.readbar { background: var(--steel); color: #b8c3d1; font-family: var(--mono); font-size: 12px; }
.readbar-inner { display: flex; align-items: center; gap: 20px; padding: 7px 0; }
.rb-item { display: flex; align-items: center; gap: 7px; }
.rb-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.rb-tel { margin-left: auto; color: #fff; font-weight: 700; }

/* ===== Header ===== */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); 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: 50%;
  background: var(--steel); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 5px var(--red);
}
.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(--red); border-bottom-color: var(--red); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero { padding: 56px 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.hero-chip {
  display: inline-block; font-size: 13px; color: var(--steel-2);
  background: var(--bg-2); border-radius: 20px; padding: 5px 16px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub { margin-top: 18px; font-size: 16px; color: var(--gray); max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.hero-panel { background: var(--card); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--lift); }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gray); }
.panel-live { color: var(--green); font-weight: 600; }
.gauge-row { display: grid; place-items: center; padding: 8px 0 4px; }
.panel-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel-foot small { display: block; font-size: 12px; color: var(--gray); }
.panel-foot b { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.panel-foot b.ok { color: var(--green); }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section-tint { background: var(--bg-2); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.sec-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -.015em; }
.sec-note { font-size: 13px; color: var(--gray); }

/* ===== Meters ===== */
.meter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.meter { background: var(--card); border-radius: var(--radius); padding: 20px 20px 24px; text-align: center; box-shadow: var(--lift); }
.meter .gauge-sm { margin: 0 auto 8px; }
.meter h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.meter p { font-size: 13.5px; color: var(--gray); line-height: 1.85; text-align: left; }

/* ===== Products ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod {
  background: var(--card); border-radius: var(--radius); padding: 16px 22px 24px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--lift);
  transition: transform .16s ease, box-shadow .16s ease;
}
.prod:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(29,36,46,.07), 0 18px 36px rgba(40,48,60,.12); }
.prod-fig { position: relative; background: var(--bg); border-radius: 8px; padding: 10px 8px 2px; }
.prod-spec {
  position: absolute; top: 10px; right: 12px; font-family: var(--mono); font-size: 11px;
  background: var(--steel); color: #fff; padding: 2px 9px; border-radius: 8px;
}
.prod h3 { font-size: 18px; font-weight: 700; }
.prod h3 a:hover { color: var(--red); }
.prod p { font-size: 14px; color: var(--gray); flex: 1; line-height: 1.8; }
.prod-link { font-size: 14px; font-weight: 600; color: var(--red); }

/* ===== V table ===== */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--lift); }
.v-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.v-table th {
  text-align: left; padding: 13px 20px; background: var(--steel); color: #fff;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
}
.v-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); }
.v-table tbody tr:last-child td { border-bottom: 0; }
.v-table tbody tr:hover { background: var(--bg); }
.v-table td:first-child { font-weight: 700; }
.v-table .v { font-family: var(--mono); color: var(--red); font-weight: 700; }
.table-note { font-size: 13px; color: var(--gray); padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg); }

/* ===== Log ===== */
.log-list { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--lift); }
.log-row {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 14px;
  padding: 15px 22px; border-bottom: 1px solid var(--line); transition: background .16s ease;
}
.log-row:last-child { border-bottom: 0; }
.log-row:hover { background: var(--bg); }
.log-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.log-row h3 { font-size: 16px; font-weight: 500; }
.log-row:hover h3 { color: var(--red); }
.log-row time { font-family: var(--mono); font-size: 12px; color: var(--gray); }

/* ===== CTA ===== */
.cta-panel {
  margin: 54px 0; background: var(--card); border-radius: 16px; padding: 30px 34px; box-shadow: var(--lift);
  display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center;
}
.cta-gauge { display: grid; place-items: center; }
.cta-panel h2 { font-size: 23px; font-weight: 800; letter-spacing: -.015em; }
.cta-panel p { font-size: 14px; color: var(--gray); margin-top: 8px; max-width: 42em; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 18px; }
.cta-phone { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--red); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 32px 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(--red); }

.layout { display: grid; grid-template-columns: 1fr 290px; gap: 28px; padding: 42px 0 62px; align-items: start; }
.layout-full { padding: 42px 0 62px; }
.entry-card { background: var(--card); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--lift); }
.entry-card:hover { transform: translateY(-2px); }
.entry-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.entry-card h2 a:hover { color: var(--red); }
.entry-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.entry-meta a { color: var(--red); }
.entry-excerpt { margin-top: 10px; font-size: 15px; color: #47525f; }
.entry-thumb { margin-bottom: 16px; border-radius: 8px; overflow: hidden; }
.single-header { padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--line); }
.single-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.entry-content { background: var(--card); border-radius: var(--radius); padding: 28px; font-size: 16px; box-shadow: var(--lift); }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2 { font-size: 21px; font-weight: 800; color: var(--steel); }
.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(--red); background: var(--bg); padding: 14px 18px; border-radius: 0 8px 8px 0; color: #47525f; }
.entry-content code { font-family: var(--mono); background: var(--bg-2); padding: 2px 6px; border-radius: 4px; }
.entry-content a { color: var(--red); text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 14px; }
.post-nav a { color: var(--red); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
  border-radius: 6px; background: var(--card); font-family: var(--mono); box-shadow: var(--lift);
}
.pagination .current, .pagination .page-numbers:hover { background: var(--steel); color: #fff; }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.sidebar-cta { background: var(--steel); color: #fff; border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.sidebar-cta h3 { font-size: 17px; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: #b8c3d1; 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(--red); border-color: var(--red); color: #fff; }
.widget { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--lift); }
.widget-title { font-size: 16px; font-weight: 700; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #47525f; }
.widget li a:hover { color: var(--red); }

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

/* ===== Comments ===== */
.comments-area { margin-top: 24px; background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--lift); }
.comments-area h2, .comment-reply-title { font-size: 18px; font-weight: 700; 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(--bg-2); 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: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--steel); }
.comment-form .submit { padding: 12px 28px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 80px 0; }
.error-code { font-family: var(--mono); font-size: 88px; font-weight: 800; color: var(--red); 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: 1px solid var(--line); margin-top: 22px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 44px 0 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand strong { font-size: 17px; font-weight: 700; }
.footer-col p { font-size: 14px; color: var(--gray); }
.footer-col h3 { font-size: 15px; font-weight: 700; color: var(--steel); 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: #47525f; }
.footer-col a:hover { color: var(--red); }
.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: 15px 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) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .meter-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-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) {
  .readbar-inner { flex-wrap: wrap; gap: 10px; }
  .rb-tel { margin-left: 0; }
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--steel); }
  .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; }
  .meter-grid, .prod-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-gauge { display: none; }
  .log-row { grid-template-columns: 12px 1fr; }
  .log-row time { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}
