/*
Theme Name: PPV Ducting 管道轴测
Theme URI: https://example.com/ppv-ducting
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 通风管件厂商的等轴测装配图风 WordPress 主题。图纸浅灰底配装配橙与钢青蓝,等轴测爆炸插图、件号引出圈、管件编号卡、连接方式对比与现场装配步骤,适合按图成套供货、强调件件对得上的管件供应商。
Version: 2.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-ducting
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --paper: #f4f5f8;
  --paper-2: #e9ebf1;
  --card: #ffffff;
  --steel: #2b3550;
  --steel-2: #414d70;
  --orange: #e0781f;
  --orange-deep: #c1640f;
  --slate: #8b96b5;
  --ink: #22283c;
  --gray: #6a7291;
  --line: #d8dce7;
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  /* 等轴测网格 */
  --iso:
    repeating-linear-gradient(30deg, rgba(43,53,80,.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-30deg, rgba(43,53,80,.035) 0 1px, transparent 1px 34px);
}

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

/* ===== Header ===== */
.site-header { background: var(--card); border-bottom: 2px solid var(--steel); 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;
  background: var(--steel); color: var(--orange); font-family: var(--mono); font-weight: 700; font-size: 15px;
  transform: skewX(-8deg);
}
.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: .08em; }
.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(--orange); border-bottom-color: var(--orange); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero(深钢蓝 + 等轴测网格) ===== */
.hero { position: relative; overflow: hidden; padding: 74px 0 0; background: linear-gradient(158deg, #141c2e 0%, #1e2a44 55%, #172136 100%); color: #e6ebf7; }
.hero-grid { position: absolute; inset: 0; background-image: var(--iso); opacity: .9; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(180deg, rgba(244,245,248,0), var(--paper)); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr 1.08fr; gap: 46px; align-items: center; padding-bottom: 54px; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #ffd0a0; background: rgba(224,120,31,.14); border: 1px solid rgba(224,120,31,.34); border-radius: 4px; padding: 5px 14px; margin-bottom: 20px; }
.hero-tag i { width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); }
.hero h1 { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.14; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { margin-top: 18px; font-size: 16px; color: #a7b1cd; max-width: 28em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-bom { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-bom li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #a7b1cd; }
.hero-bom b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange); font-family: var(--mono); font-size: 12px; flex: none; }
.hero-scene { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px 18px 14px; }
.hero-scene figcaption { margin-top: 10px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.14); font-family: var(--mono); font-size: 12px; color: #8f9ab8; }

.spec-strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: 12px; box-shadow: 0 20px 50px rgba(20,28,46,.16); overflow: hidden; margin-bottom: -42px; }
.spec { padding: 22px 24px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: 0; }
.spec b { display: block; font-family: var(--mono); font-size: 25px; font-weight: 800; color: var(--steel); letter-spacing: -.02em; }
.spec b i { font-style: normal; font-size: .6em; color: var(--orange); }
.spec span { font-size: 12.5px; color: var(--gray); }

.btn-ghost { border: 1.5px solid rgba(255,255,255,.3); color: #e6ebf7; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ===== Sections ===== */
.section { padding: 56px 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(--steel); }
.sec-no {
  display: grid; place-items: center; min-width: 32px; height: 32px;
  background: var(--orange); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.sec-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.015em; }
.sec-note { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--gray); }

/* ===== Parts ===== */
.part-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.part {
  background: var(--card); border: 2px solid var(--line); display: flex; flex-direction: column;
  transition: border-color .16s ease, transform .16s ease;
}
.part:hover { border-color: var(--steel); transform: translateY(-3px); }
.part-fig { position: relative; background: var(--paper); border-bottom: 2px solid var(--line); padding: 10px 8px 2px; }
.part-no {
  position: absolute; top: 10px; left: 12px; font-family: var(--mono); font-size: 11px;
  color: #fff; background: var(--steel); padding: 2px 9px;
}
.part-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.part-body h3 { font-size: 18px; font-weight: 700; }
.part-body h3 a:hover { color: var(--orange); }
.part-body p { font-size: 14px; color: var(--gray); flex: 1; line-height: 1.75; }
.part-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.part-spec { font-family: var(--mono); color: var(--orange); font-weight: 700; }
.part-foot a { font-weight: 700; color: var(--steel); }

/* ===== Join ===== */
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.join { background: var(--card); border: 2px solid var(--line); border-top: 4px solid var(--steel); padding: 24px 22px; }
.join h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.join p { font-size: 14px; color: var(--gray); line-height: 1.9; }
.join-tag {
  display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px;
  padding: 2px 10px; border-radius: 10px;
}
.join-tag.ok { color: #1c7a52; background: rgba(28,122,82,.1); }
.join-tag.warn { color: var(--orange-deep); background: rgba(224,120,31,.12); }

/* ===== Steps ===== */
.step-list { list-style: none; border-top: 2px solid var(--steel); }
.step-list li {
  display: grid; grid-template-columns: 52px 120px 1fr; gap: 18px; align-items: baseline;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.st-no { font-family: var(--mono); font-size: 12px; color: #fff; background: var(--steel-2); text-align: center; padding: 2px 0; }
.step-list b { font-size: 16px; font-weight: 800; }
.step-list span:last-child { font-size: 14.5px; color: var(--gray); }

/* ===== 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-sq { width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); }
.note-row h3 { font-size: 16px; font-weight: 500; }
.note-row:hover h3 { color: var(--orange); }
.note-row time { font-family: var(--mono); font-size: 12px; color: var(--gray); }

/* ===== CTA ===== */
.cta-assy {
  margin: 54px 0; padding: 32px 34px; background: var(--steel); color: #fff;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta-bubble {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border: 2px solid var(--orange); border-radius: 50%; color: var(--orange);
  font-family: var(--mono); font-size: 22px; font-weight: 700;
}
.cta-assy h2 { font-size: 23px; font-weight: 800; letter-spacing: -.015em; }
.cta-assy p { font-size: 14px; color: #b6bed6; 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(--orange); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--card); border-bottom: 2px solid var(--steel); 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(--orange); }

.layout { display: grid; grid-template-columns: 1fr 290px; gap: 30px; padding: 42px 0 62px; align-items: start; }
.layout-full { padding: 42px 0 62px; }
.entry-card { background: var(--card); border: 2px solid var(--line); padding: 22px 24px; margin-bottom: 16px; }
.entry-card:hover { border-color: var(--steel); }
.entry-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.entry-card h2 a:hover { color: var(--orange); }
.entry-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.entry-meta a { color: var(--orange); }
.entry-excerpt { margin-top: 10px; font-size: 15px; color: #474f6b; }
.entry-thumb { margin-bottom: 16px; border: 1px solid var(--line); }
.single-header { border-bottom: 2px solid var(--steel); 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; border-left: 5px solid var(--orange); padding-left: 12px; }
.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(--steel); background: var(--paper); padding: 14px 18px; color: #474f6b; }
.entry-content code { font-family: var(--mono); background: var(--paper-2); padding: 2px 6px; }
.entry-content a { color: var(--orange); 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(--orange); }
.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: 2px solid var(--line); background: var(--card); font-family: var(--mono); font-weight: 700;
}
.pagination .current, .pagination .page-numbers:hover { background: var(--steel); color: #fff; border-color: var(--steel); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.sidebar-cta { background: var(--steel); color: #fff; padding: 24px 20px; text-align: center; }
.sidebar-cta h3 { font-size: 17px; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: #b6bed6; margin: 8px 0 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 21px; color: var(--orange); margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; }
.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(--steel); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #474f6b; }
.widget li a:hover { color: var(--orange); }

.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); font-family: var(--mono); font-size: 14px; }
.search-field:focus { outline: none; border-color: var(--steel); }
.search-submit { padding: 10px 18px; border: 2px solid var(--orange); background: var(--orange); color: #fff; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--orange-deep); border-color: var(--orange-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); 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: 2px solid var(--orange); background: var(--orange); 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(--orange); 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(--steel); 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: 800; }
.footer-col p { font-size: 14px; color: var(--gray); }
.footer-col h3 { font-size: 15px; font-weight: 800; 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: #474f6b; }
.footer-col a:hover { color: var(--orange); }
.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; }
  .part-grid { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: 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); cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2.5px; 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; }
  .part-grid { grid-template-columns: 1fr; }
  .step-list li { grid-template-columns: 44px 1fr; }
  .step-list b { grid-column: 2; }
  .step-list span:last-child { grid-column: 2; }
  .note-row { grid-template-columns: 14px 1fr; }
  .note-row time { display: none; }
  .cta-assy { padding: 26px 22px; }
  .sec-note { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}

/* ===== 应用行业(深色带) ===== */
.section-dark { background: linear-gradient(160deg, #141c2e, #1e2a44); color: #d7deef; }
.section-dark .sec-head h2 { color: #fff; }
.section-dark .sec-no { background: var(--orange); color: #fff; }
.section-dark .sec-note { color: #8f9ab8; }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 26px 24px; transition: background .18s ease, transform .18s ease; }
.ind-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.ind-card .ind { width: 50px; height: 50px; margin-bottom: 14px; }
.ind-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 7px; }
.ind-card p { font-size: 13.5px; color: #8f9ab8; line-height: 1.8; }

/* ===== 交付流程 ===== */
.flow-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flow-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px; position: relative; }
.flow-item:hover { border-color: var(--orange); }
.flow-no { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff; background: var(--steel); border-radius: 4px; padding: 3px 10px; margin-bottom: 12px; }
.flow-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.flow-item p { font-size: 13.5px; color: var(--gray); line-height: 1.8; }
.flow-out { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--orange-deep); background: rgba(224,120,31,.1); border-radius: 4px; padding: 3px 10px; }

/* ===== 答疑 ===== */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 46px; align-items: start; }
.faq-side h2 { font-size: clamp(24px, 3vw, 33px); font-weight: 800; letter-spacing: -.028em; margin-top: 10px; }
.faq-side p { margin-top: 12px; font-size: 14.5px; color: var(--gray); }
.faq-tel { display: block; margin-top: 14px; font-family: var(--mono); font-size: 24px; font-weight: 800; color: var(--orange-deep); }
.faq-list { display: flex; flex-direction: column; gap: 11px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 2px 22px; }
.faq-item[open] { border-color: rgba(224,120,31,.5); }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 32px 17px 0; font-size: 15.5px; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 0 18px; font-size: 14px; color: var(--gray); line-height: 1.85; }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .ind-grid, .flow-list { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 780px) {
  .hero-bom { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ind-grid, .flow-list { grid-template-columns: 1fr; }
}
