/*
Theme Name: PP LabTest 化验报告
Theme URI: https://example.com/pp-labtest
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: pp-labtest
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --white: #fbfdfd;
  --paper: #ffffff;
  --teal: #0d8a8a;
  --teal-deep: #075e5e;
  --teal-mist: #e2f2f2;
  --ink: #22333b;
  --gray: #64757e;
  --line: #d4e4e4;
  --pass: #159a52;
  --container: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

/* ===== 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(--ink);
  background:
    linear-gradient(rgba(13, 138, 138, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 138, 138, 0.05) 1px, transparent 1px),
    var(--white);
  background-size: 26px 26px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal-deep); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.32; font-weight: 800; }
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(13, 138, 138, 0.22); }

.mono { font-family: var(--mono); }
.pass-tag {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--pass);
  font-weight: 800;
  font-size: 13.5px;
}
.pass-tag::before { content: "✓"; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--teal);
  background: var(--paper);
  color: var(--teal);
  transition: all 0.2s ease;
}
.btn:hover { background: var(--teal-mist); color: var(--teal-deep); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

/* ===== Header ===== */
.site-header {
  background: rgba(251, 253, 253, 0.95);
  backdrop-filter: blur(6px);
  border-top: 4px solid var(--teal);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo { max-height: 46px; width: auto; }
.brand-mark {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  border: 2.5px solid var(--teal);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.site-title { font-size: 20px; font-weight: 800; }
.site-title a { color: var(--ink); }
.site-desc { font-family: var(--mono); font-size: 10.5px; color: var(--gray); 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: 1.5px solid var(--teal);
  border-radius: 8px;
}
.nav-toggle-label span { display: block; height: 2px; background: var(--teal); }

.site-nav ul { display: flex; gap: 2px; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 25px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--teal); border-bottom-color: var(--teal); }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  box-shadow: 0 10px 26px rgba(13, 138, 138, 0.12);
  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); font-size: 14px; }
.site-nav .sub-menu li:last-child a { border-bottom: none; }

/* ===== Hero(化验单) ===== */
.hero { padding: 66px 0 60px; }
.report {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(13, 138, 138, 0.1);
  overflow: hidden;
}
.report-head {
  background: var(--teal);
  color: #fff;
  padding: 14px 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.report-head b { letter-spacing: 3px; font-size: 15px; }
.report-head span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; color: #bfe4e4; }
.report-body { padding: 40px 44px 36px; }
.report-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}
.rm-cell { padding: 12px 16px; border-right: 1px solid var(--line); background: var(--teal-mist); }
.rm-cell:last-child { border-right: none; }
.rm-cell small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--gray); text-transform: uppercase; }
.rm-cell b { font-size: 14.5px; }
.hero h1 { font-size: 42px; letter-spacing: 1px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub { color: var(--gray); font-size: 16px; max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.report-foot {
  border-top: 1px dashed var(--line);
  margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--gray); letter-spacing: 1px;
}
.report-foot b { color: var(--pass); }

/* ===== Sections ===== */
.section { padding: 74px 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 38px; flex-wrap: wrap; }
.sec-no { font-family: var(--mono); font-size: 13px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 6px; padding: 3px 12px; letter-spacing: 1px; }
.sec-head h2 { font-size: 28px; }
.sec-head .sec-note { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }

/* ===== 检测项目表 ===== */
.lab-table-wrap { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px rgba(13, 138, 138, 0.08); }
.lab-table-scroll { overflow-x: auto; }
.lab-table { min-width: 760px; }
.lab-table th, .lab-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lab-table thead th {
  background: var(--teal-mist);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--teal-deep);
  text-transform: uppercase;
}
.lab-table tbody tr:last-child td { border-bottom: none; }
.lab-table tbody tr:hover { background: #f4fafa; }
.lab-table td:first-child { font-weight: 700; }
.lab-table .mono { color: var(--gray); font-size: 13px; }
.lab-note { padding: 12px 20px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--gray); }

/* ===== 样品卡 ===== */
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sample {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.22s ease;
}
.sample:hover { border-color: var(--teal); box-shadow: 0 14px 32px rgba(13, 138, 138, 0.14); transform: translateY(-4px); }
.sample-label {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--teal-mist);
  border-bottom: 1px dashed var(--teal);
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--teal-deep);
}
.sample-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.sample-body svg { width: 100%; max-width: 210px; height: auto; margin: 0 auto 14px; }
.sample-body h3 { font-size: 18.5px; margin-bottom: 6px; }
.sample-body h3 a { color: var(--ink); }
.sample-body h3 a:hover { color: var(--teal); }
.sample-body p { font-size: 13.5px; color: var(--gray); flex: 1; }
.sample-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.sample-foot a { font-size: 13.5px; font-weight: 700; }

/* ===== 检测流程 ===== */
.flow-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
}
.flow::before {
  content: attr(data-step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-mist);
  border: 2px solid var(--teal);
  color: var(--teal-deep);
  font-family: var(--mono);
  font-weight: 700;
  margin-bottom: 10px;
}
.flow h3 { font-size: 16.5px; margin-bottom: 4px; }
.flow p { font-size: 12.5px; color: var(--gray); }

/* ===== 承诺徽章 ===== */
.vow-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.vow { text-align: center; }
.vow-ring {
  width: 104px; height: 104px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--teal);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7.5px rgba(13, 138, 138, 0.4);
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--teal-deep);
  font-weight: 800;
}
.vow-ring b { font-size: 21px; }
.vow-ring small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; color: var(--gray); }
.vow h3 { font-size: 17.5px; margin-bottom: 6px; }
.vow p { font-size: 13.5px; color: var(--gray); }

/* ===== 检测通报 ===== */
.bulletin { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.bulletin-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.bulletin-row:last-child { border-bottom: none; }
.bulletin-row:hover { background: #f4fafa; }
.bulletin-row time { font-family: var(--mono); font-size: 12px; color: var(--gray); }
.bulletin-row h3 { font-size: 15.5px; font-weight: 700; }
.bulletin-row:hover h3 { color: var(--teal); }
.bulletin-row .bl-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--pass); border: 1.5px solid var(--pass); border-radius: 6px; padding: 2px 9px; white-space: nowrap; }

/* ===== CTA ===== */
.cta-lab {
  background: var(--teal);
  border-radius: 16px;
  color: #fff;
  padding: 50px 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  box-shadow: 0 20px 44px rgba(13, 138, 138, 0.3);
}
.cta-lab h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.cta-lab p { color: #c4e6e6; font-size: 14.5px; }
.cta-side { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-phone { font-family: var(--mono); font-size: 23px; font-weight: 700; letter-spacing: 1px; }
.cta-lab .btn { background: #fff; border-color: #fff; color: var(--teal-deep); }
.cta-lab .btn:hover { background: var(--teal-mist); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); color: var(--gray); font-size: 14px; margin-top: 74px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 52px 0 42px; }
.footer-col h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray); }
.footer-col a:hover { color: var(--teal); }
.footer-col p { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand strong { color: var(--ink); font-size: 18px; }
.footer-contact li b { color: var(--ink); margin-right: 8px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 15px 0; font-size: 12.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Inner pages ===== */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 46px 0; }
.page-hero h1 { font-size: 30px; }
.breadcrumbs { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--gray); letter-spacing: 1px; }
.breadcrumbs a { color: var(--teal); }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 54px 0; }
.layout-full { padding: 54px 0; }
.main-col { min-width: 0; }

.entry-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 22px;
  transition: all 0.2s ease;
}
.entry-card:hover { border-color: var(--teal); box-shadow: 0 12px 28px rgba(13, 138, 138, 0.1); }
.entry-card h2 { font-size: 20px; margin-bottom: 8px; }
.entry-card h2 a { color: var(--ink); }
.entry-card h2 a:hover { color: var(--teal); }
.entry-meta { font-family: var(--mono); font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.entry-meta span { margin-right: 16px; }
.entry-excerpt { color: var(--gray); font-size: 14.5px; }
.entry-thumb { margin-bottom: 16px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }

.entry-content { font-size: 16px; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 0.7em; }
.entry-content h2 { font-size: 24px; padding-left: 13px; border-left: 4px solid var(--teal); }
.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: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  background: var(--teal-mist);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 15px 22px;
  margin: 1.4em 0;
  color: #33555c;
}
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 10px 14px; background: var(--paper); }
.entry-content table th { background: var(--teal-mist); font-family: var(--mono); font-size: 13px; color: var(--teal-deep); }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: 8px; border: 1px solid var(--line); }
.single-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.single-header h1 { font-size: 26px; margin-bottom: 8px; }
.post-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 38px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 700; }

/* Sidebar */
.sidebar .widget {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
}
.sidebar .widget-title, .sidebar .widget h2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-deep);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 14px;
}
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar-cta {
  background: var(--teal);
  border-radius: 12px;
  color: #fff;
  padding: 26px 24px;
  margin-bottom: 22px;
  text-align: center;
}
.sidebar-cta h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: #c4e6e6; margin-bottom: 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 19px; font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; }
.sidebar-cta .btn-teal { background: #fff; color: var(--teal-deep); border-color: #fff; }
.sidebar-cta .btn-teal:hover { background: var(--teal-mist); }

/* Search form */
.search-form { display: flex; background: var(--paper); border: 1.5px solid var(--teal); border-radius: 8px; overflow: hidden; }
.search-form .search-field { flex: 1; min-width: 0; padding: 11px 14px; border: none; outline: none; background: transparent; }
.search-form .search-submit {
  padding: 11px 18px;
  background: var(--teal);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--teal-deep); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 13px;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Comments */
.comments-area { margin-top: 44px; }
.comments-area > h2 { font-size: 20px; margin-bottom: 20px; }
.comment-list > li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.comment-list .children { margin: 12px 0 0 22px; }
.comment-meta { font-family: var(--mono); font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.comment-meta b { color: var(--teal); }
.comment-form p { margin-bottom: 13px; }
.comment-form label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--teal); }

/* 404 */
.error-page { text-align: center; padding: 90px 20px; }
.error-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 92px; font-weight: 700; line-height: 1;
  color: var(--teal);
  background: var(--paper);
  border: 2px dashed var(--teal);
  border-radius: 14px;
  padding: 18px 42px;
}
.error-page h1 { font-size: 26px; margin: 24px 0 10px; }
.error-page p { color: var(--gray); margin-bottom: 28px; }
.error-page .search-form { max-width: 420px; margin: 0 auto 26px; }

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .sample-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-row { grid-template-columns: repeat(2, 1fr); }
  .vow-row { grid-template-columns: 1fr; gap: 30px; }
  .report-meta { grid-template-columns: repeat(2, 1fr); }
  .rm-cell { border-bottom: 1px solid var(--line); }
  .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);
    border-bottom: 3px solid var(--teal);
    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); }
  .site-nav .sub-menu { position: static; display: block; box-shadow: none; border: none; }
  .report-body { padding: 28px 24px 26px; }
  .hero h1 { font-size: 30px; }
  .cta-lab { padding: 34px 26px; flex-direction: column; text-align: center; }
  .bulletin-row { grid-template-columns: 1fr; gap: 4px; }
  .bulletin-row .bl-tag { justify-self: start; }
}
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .hero h1 { font-size: 25px; }
  .sec-head h2 { font-size: 23px; }
  .sample-grid, .flow-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
}
