/*
Theme Name: PP Blueprint 蓝图工程
Theme URI: https://example.com/pp-blueprint
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: pp-blueprint
Tags: blue, dark, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --paper: #123f77;
  --paper-2: #0e3466;
  --line: rgba(191, 216, 245, 0.4);
  --line-dim: rgba(191, 216, 245, 0.18);
  --white: #f2f7fd;
  --text: #cdddf2;
  --dim: #8fadd2;
  --note: #ffd94a;
  --container: 1160px;
  --mono: "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ===== 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.8;
  color: var(--text);
  background:
    linear-gradient(var(--line-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dim) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--note); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--white); line-height: 1.35; font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
::selection { background: rgba(255, 217, 74, 0.4); }

.mono { font-family: var(--mono); }

/* Frame with corner ticks */
.frame { position: relative; border: 2px solid var(--white); }
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--note);
  pointer-events: none;
}
.frame::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.frame::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  transition: all 0.22s ease;
}
.btn:hover { background: rgba(242, 247, 253, 0.12); color: var(--white); }
.btn-note { border-color: var(--note); background: var(--note); color: #1c2c47; font-weight: 700; }
.btn-note:hover { background: #ffe680; border-color: #ffe680; color: #1c2c47; }

/* ===== Header ===== */
.site-header {
  background: rgba(14, 48, 94, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--white);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 13px; }
.site-branding .custom-logo { max-height: 46px; width: auto; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  border: 2px solid var(--white);
  color: var(--note);
  font-family: var(--mono);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.site-title { font-size: 21px; letter-spacing: 3px; font-weight: 700; }
.site-title a { color: var(--white); }
.site-desc { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }

.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
  padding: 10px;
  border: 2px solid var(--white);
}
.nav-toggle-label span { display: block; height: 2px; background: var(--white); }

.site-nav ul { display: flex; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 26px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 2px;
  color: var(--text);
  border-bottom: 3px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--note); border-bottom-color: var(--note); }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 210px;
  background: var(--paper-2);
  border: 2px solid var(--white);
  display: none;
  z-index: 99;
}
.site-nav li:hover > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 11px 16px; border-bottom: 1px solid var(--line-dim); }

/* ===== Hero(图框) ===== */
.hero { padding: 72px 0 64px; }
.hero-sheet { padding: 54px 50px 0; }
.sheet-head {
  display: flex; justify-content: space-between; gap: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--dim);
  margin-bottom: 34px; flex-wrap: wrap;
}
.sheet-head b { color: var(--note); font-weight: 700; }
.hero h1 { font-size: 46px; letter-spacing: 4px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--note); }
.hero-sub { max-width: 640px; color: var(--text); font-size: 16px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

/* dimension line 尺寸标注 */
.dim-line {
  position: relative;
  height: 2px;
  background: var(--white);
  margin: 0 6px 40px;
}
.dim-line::before, .dim-line::after {
  content: "";
  position: absolute; top: -7px;
  width: 2px; height: 16px;
  background: var(--white);
}
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }
.dim-line span {
  position: absolute;
  left: 50%; top: -30px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--note);
  background: var(--paper);
  padding: 0 14px;
}

/* title block 图签 */
.title-block { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--white); }
.tb-cell { border-right: 1px solid var(--line); padding: 12px 18px; }
.tb-cell:last-child { border-right: none; }
.tb-cell small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; }
.tb-cell b { font-family: var(--mono); font-size: 14.5px; color: var(--white); letter-spacing: 1px; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-no {
  font-family: var(--mono);
  font-size: 13px;
  color: #1c2c47;
  background: var(--note);
  padding: 3px 12px;
  letter-spacing: 2px;
  font-weight: 700;
}
.sec-head h2 { font-size: 30px; letter-spacing: 3px; }
.sec-head .sec-note { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 1px; }

/* ===== Drawing list(产品) ===== */
.dwg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dwg {
  border: 1.5px dashed var(--line);
  padding: 26px 26px 24px;
  transition: all 0.25s ease;
  background: rgba(14, 48, 94, 0.45);
  display: flex; flex-direction: column;
}
.dwg:hover { border-style: solid; border-color: var(--note); transform: translateY(-4px); }
.dwg-no { font-family: var(--mono); font-size: 12px; color: var(--note); letter-spacing: 2px; }
.dwg h3 { font-size: 20px; letter-spacing: 2px; margin: 8px 0 14px; }
.dwg h3 a { color: var(--white); }
.dwg h3 a:hover { color: var(--note); }
.dwg svg { width: 100%; max-width: 230px; height: auto; margin: 0 auto 14px; }
.dwg p { font-size: 13.5px; color: var(--dim); flex: 1; }
.dwg-foot {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line-dim);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: 1px;
}
.dwg-foot a { color: var(--note); }

/* ===== Spec table ===== */
.bp-table-wrap { overflow-x: auto; border: 2px solid var(--white); }
.bp-table { min-width: 720px; }
.bp-table th, .bp-table td { border: 1px solid var(--line); padding: 12px 18px; text-align: left; font-size: 14px; }
.bp-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--note);
  text-transform: uppercase;
  background: rgba(255, 217, 74, 0.08);
}
.bp-table td:first-child { font-family: var(--mono); color: var(--white); }
.bp-table tbody tr:hover { background: rgba(242, 247, 253, 0.05); }
.bp-note { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 1px; }
.bp-note b { color: var(--note); }

/* ===== Process nodes ===== */
.node-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.node { text-align: center; position: relative; padding: 0 10px; }
.node::before {
  content: "";
  display: block;
  width: 18px; height: 18px;
  margin: 0 auto 16px;
  border: 2px solid var(--white);
  transform: rotate(45deg);
  background: var(--paper);
  position: relative; z-index: 2;
  transition: all 0.2s ease;
}
.node:hover::before { background: var(--note); border-color: var(--note); }
.node::after {
  content: "";
  position: absolute;
  top: 9px; left: calc(50% + 16px); right: calc(-50% + 16px);
  border-top: 1.5px dashed var(--line);
}
.node:last-child::after { display: none; }
.node h3 { font-size: 17px; letter-spacing: 2px; margin-bottom: 4px; }
.node p { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 1px; }

/* ===== Rev table(新闻 = 变更记录) ===== */
.rev-list { border: 2px solid var(--white); }
.rev-head {
  display: grid; grid-template-columns: 90px 130px 1fr 90px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 2px; color: var(--note);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  gap: 16px;
}
.rev {
  display: grid; grid-template-columns: 90px 130px 1fr 90px;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-dim);
  color: inherit;
}
.rev:last-child { border-bottom: none; }
.rev:hover { background: rgba(242, 247, 253, 0.06); }
.rev .rev-no { font-family: var(--mono); font-size: 12.5px; color: var(--note); }
.rev time { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.rev h3 { font-size: 15.5px; font-weight: 600; letter-spacing: 1px; }
.rev .rev-go { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: right; }
.rev:hover .rev-go { color: var(--note); }

/* ===== CTA(标注框) ===== */
.cta-bp {
  border: 2px solid var(--note);
  background: rgba(255, 217, 74, 0.07);
  padding: 46px 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  position: relative;
}
.cta-bp::before {
  content: "▲";
  position: absolute;
  top: -14px; left: 60px;
  color: var(--note);
  font-size: 14px;
}
.cta-bp h2 { font-size: 27px; letter-spacing: 3px; margin-bottom: 6px; }
.cta-bp p { font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: 1px; }
.cta-side { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-phone { font-family: var(--mono); font-size: 22px; color: var(--note); letter-spacing: 2px; font-weight: 700; }

/* ===== Footer(图签栏) ===== */
.site-footer { border-top: 2px solid var(--white); background: rgba(10, 36, 72, 0.85); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 44px; }
.footer-col h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--note);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--note); }
.footer-col p { color: var(--text); margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand strong { color: var(--white); font-size: 18px; letter-spacing: 2px; }
.footer-contact li b { color: var(--white); margin-right: 8px; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; }
.footer-bottom .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; color: var(--dim);
}

/* ===== Inner pages ===== */
.page-hero { padding: 56px 0 46px; border-bottom: 2px solid var(--white); background: rgba(14, 48, 94, 0.5); }
.page-hero h1 { font-size: 32px; letter-spacing: 3px; }
.breadcrumbs { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--dim); }
.breadcrumbs a { color: var(--note); }

.layout { display: grid; grid-template-columns: 1fr 310px; gap: 42px; padding: 60px 0; }
.layout-full { padding: 60px 0; }
.main-col { min-width: 0; }

.entry-card {
  border: 1.5px dashed var(--line);
  background: rgba(14, 48, 94, 0.45);
  padding: 28px 30px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}
.entry-card:hover { border-style: solid; border-color: var(--note); }
.entry-card h2 { font-size: 21px; letter-spacing: 1px; margin-bottom: 8px; }
.entry-card h2 a { color: var(--white); }
.entry-card h2 a:hover { color: var(--note); }
.entry-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 1px; margin-bottom: 10px; }
.entry-meta span { margin-right: 16px; }
.entry-excerpt { color: var(--text); font-size: 14.5px; }
.entry-thumb { margin-bottom: 16px; border: 2px solid var(--white); }

.entry-content { font-size: 16px; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 0.7em; letter-spacing: 2px; }
.entry-content h2 { font-size: 24px; padding-left: 14px; border-left: 4px solid var(--note); }
.entry-content h3 { font-size: 19px; }
.entry-content p { margin-bottom: 1.1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.6em; }
.entry-content ul { list-style: square; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  border: 1.5px dashed var(--note);
  padding: 16px 22px;
  margin: 1.4em 0;
  color: var(--white);
  background: rgba(255, 217, 74, 0.06);
}
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 10px 14px; }
.entry-content table th { color: var(--note); font-family: var(--mono); font-size: 13px; }
.entry-content a { color: var(--note); text-decoration: underline; }
.entry-content img { border: 2px solid var(--white); }
.single-header { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 2px solid var(--white); }
.single-header h1 { font-size: 28px; letter-spacing: 2px; margin-bottom: 8px; }
.post-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 22px; border-top: 1.5px dashed var(--line); font-family: var(--mono); font-size: 13px; }

/* Sidebar */
.sidebar .widget { border: 2px solid var(--white); padding: 24px; margin-bottom: 26px; background: rgba(14, 48, 94, 0.45); }
.sidebar .widget-title, .sidebar .widget h2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--note);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--line-dim); font-size: 14px; }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar-cta { border: 2px solid var(--note); background: rgba(255, 217, 74, 0.08); padding: 26px 24px; margin-bottom: 26px; }
.sidebar-cta h3 { font-size: 17px; letter-spacing: 2px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 19px; color: var(--note); letter-spacing: 1px; margin-bottom: 16px; }

/* Search form */
.search-form { display: flex; border: 2px solid var(--white); }
.search-form .search-field {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  background: transparent;
  border: none; outline: none;
  color: var(--white);
  font-family: var(--mono);
  font-size: 13.5px;
}
.search-form .search-field::placeholder { color: var(--dim); }
.search-form .search-submit {
  padding: 11px 18px;
  background: var(--white);
  color: #123f77;
  border: none;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--note); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 8px 13px;
  text-align: center;
  border: 1.5px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { border-color: var(--note); color: var(--note); }

/* Comments */
.comments-area { margin-top: 46px; }
.comments-area > h2 { font-size: 20px; letter-spacing: 2px; margin-bottom: 20px; }
.comment-list > li { border: 1.5px dashed var(--line); padding: 18px; margin-bottom: 16px; }
.comment-list .children { margin: 14px 0 0 24px; }
.comment-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.comment-meta b { color: var(--note); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(10, 36, 72, 0.6);
  border: 1.5px solid var(--line);
  color: var(--white);
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--note); }

/* 404 */
.error-page { text-align: center; padding: 100px 20px; }
.error-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 100px; font-weight: 700; line-height: 1;
  color: var(--note);
  border: 2px dashed var(--note);
  padding: 18px 44px;
}
.error-page h1 { font-size: 26px; letter-spacing: 3px; margin: 24px 0 10px; }
.error-page p { color: var(--dim); margin-bottom: 30px; }
.error-page .search-form { max-width: 430px; margin: 0 auto 28px; }

/* WP core */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: center; padding: 8px 0; }
.sticky { border-left: 4px solid var(--note); }
.bypostauthor { display: block; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .dwg-grid { grid-template-columns: repeat(2, 1fr); }
  .node-row { grid-template-columns: repeat(3, 1fr); gap: 26px 0; }
  .node::after { display: none; }
  .title-block { grid-template-columns: repeat(2, 1fr); }
  .tb-cell { border-bottom: 1px solid var(--line-dim); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper-2);
    border-bottom: 2px solid var(--white);
    display: none;
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 13px 22px; border-bottom: 1px solid var(--line-dim); }
  .site-nav .sub-menu { position: static; display: block; border: none; background: rgba(10, 36, 72, 0.6); }
  .hero-sheet { padding: 34px 26px 0; }
  .hero h1 { font-size: 32px; letter-spacing: 2px; }
  .rev-head { display: none; }
  .rev { grid-template-columns: 1fr; gap: 4px; }
  .rev .rev-go { display: none; }
  .cta-bp { padding: 34px 28px; flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .section { padding: 58px 0; }
  .hero h1 { font-size: 26px; }
  .sec-head h2 { font-size: 24px; }
  .dwg-grid { grid-template-columns: 1fr; }
  .node-row { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .dim-line span { font-size: 11px; }
}
