/*
Theme Name: PP MonoMinimal 素白精工
Theme URI: https://example.com/pp-monominimal
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-monominimal
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --ink: #101214;
  --ink-soft: #3c4043;
  --gray: #86898d;
  --line: #e4e4e2;
  --line-dark: #101214;
  --paper: #ffffff;
  --paper-warm: #f7f7f5;
  --container: 1140px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.55; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--ink); line-height: 1.3; font-weight: 600; }
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 24px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
::selection { background: var(--ink); color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 15px 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: all 0.25s ease;
  line-height: 1.5;
}
.btn:hover { opacity: 1; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #fff; color: var(--ink); }
.btn-paper { background: transparent; color: var(--ink); }
.btn-paper:hover { background: var(--ink); color: #fff; }
.btn-invert { border-color: #fff; background: transparent; color: #fff; }
.btn-invert:hover { background: #fff; color: var(--ink); }

/* ===== Header ===== */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  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: 76px; gap: 26px; }
.site-branding { display: flex; align-items: baseline; gap: 14px; }
.site-branding .custom-logo { max-height: 44px; width: auto; }
.site-title { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 4px; }
.site-title a { color: var(--ink); }
.site-desc { font-size: 11px; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; }

.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.nav-toggle-label span { display: block; height: 1px; background: var(--ink); }

.site-nav ul { display: flex; gap: 34px; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 26px 0;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 2.5px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { opacity: 1; border-bottom-color: var(--ink); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { border-bottom-color: var(--ink); }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: -20px;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  display: none;
  z-index: 99;
}
.site-nav li:hover > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.site-nav .sub-menu li:last-child a { border-bottom: none; }

/* ===== Hero ===== */
.hero { padding: 110px 0 90px; border-bottom: 1px solid var(--line); position: relative; }
.hero-index {
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-index::after { content: ""; height: 1px; width: 80px; background: var(--ink); }
.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1.18;
  margin-bottom: 34px;
}
.hero h1 .thin { font-weight: 400; color: var(--gray); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero-sub { max-width: 520px; color: var(--ink-soft); font-size: 16px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-marks {
  display: flex;
  gap: 0;
  margin-top: 70px;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-marks .mark { flex: 1; min-width: 180px; padding: 26px 30px; border-right: 1px solid var(--line); }
.hero-marks .mark:last-child { border-right: none; }
.hero-marks b { display: block; font-family: var(--serif); font-size: 30px; color: var(--ink); font-weight: 600; }
.hero-marks span { font-size: 12.5px; color: var(--gray); letter-spacing: 2px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-warm { background: var(--paper-warm); }
.section-line { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; margin-bottom: 64px; flex-wrap: wrap; }
.sec-no { font-size: 13px; letter-spacing: 4px; color: var(--gray); }
.sec-head h2 { font-size: 40px; letter-spacing: 3px; }
.sec-head .sec-note { font-size: 14px; color: var(--gray); max-width: 380px; }

/* ===== Product list ===== */
.plist { border-top: 1px solid var(--line-dark); }
.plist-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.6fr 60px;
  gap: 30px;
  align-items: center;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line);
  transition: all 0.25s ease;
  cursor: pointer;
  color: inherit;
}
.plist-row:hover { background: var(--ink); opacity: 1; }
.plist-no { font-family: var(--serif); font-size: 15px; color: var(--gray); letter-spacing: 2px; transition: color 0.25s ease; }
.plist-row h3 { font-size: 23px; letter-spacing: 2px; transition: color 0.25s ease; }
.plist-row p { font-size: 14px; color: var(--gray); transition: color 0.25s ease; }
.plist-arrow { font-size: 20px; color: var(--ink); text-align: right; transition: all 0.25s ease; }
.plist-row:hover .plist-no { color: rgba(255, 255, 255, 0.6); }
.plist-row:hover h3 { color: #fff; }
.plist-row:hover p { color: rgba(255, 255, 255, 0.72); }
.plist-row:hover .plist-arrow { color: #fff; transform: translateX(6px); }

/* ===== Spec table ===== */
.spec-wrap { overflow-x: auto; }
.spec-table { min-width: 700px; border-top: 1px solid var(--line-dark); }
.spec-table th, .spec-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table thead th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
}
.spec-table td:first-child { font-family: var(--serif); color: var(--ink); font-size: 16px; }
.spec-table tbody tr { transition: background 0.2s ease; }
.spec-table tbody tr:hover { background: var(--paper-warm); }
.spec-foot { margin-top: 20px; font-size: 13px; color: var(--gray); letter-spacing: 1px; }

/* ===== Philosophy ===== */
.philo { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.philo-title h2 { font-size: 38px; letter-spacing: 3px; line-height: 1.4; }
.philo-title .vertical {
  margin-top: 30px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--gray);
  height: 150px;
}
.philo-body p { margin-bottom: 1.4em; font-size: 15.5px; }
.philo-body p:first-of-type::first-letter { font-family: var(--serif); font-size: 2.4em; float: left; line-height: 1; margin: 6px 10px 0 0; color: var(--ink); }
.philo-facts { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.philo-facts li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.philo-facts b { font-family: var(--serif); font-weight: 600; color: var(--ink); }

/* ===== Case ===== */
.case-figure { border: 1px solid var(--line-dark); padding: 60px; background: var(--paper-warm); }
.case-figure svg { width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
.case-caption { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px 0; font-size: 13px; color: var(--gray); letter-spacing: 2px; flex-wrap: wrap; }
.case-caption b { color: var(--ink); font-weight: 600; }
.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 60px; border: 1px solid var(--line); }
.case-col { padding: 34px 32px; border-right: 1px solid var(--line); }
.case-col:last-child { border-right: none; }
.case-col h3 { font-size: 19px; letter-spacing: 2px; margin-bottom: 10px; }
.case-col p { font-size: 14px; color: var(--gray); }

/* ===== News ===== */
.news-list { border-top: 1px solid var(--line-dark); }
.news-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 30px;
  align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.news-item:hover { opacity: 1; background: var(--paper-warm); }
.news-item time { font-size: 13px; color: var(--gray); letter-spacing: 2px; }
.news-item h3 { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.news-item .news-cat { font-size: 12px; letter-spacing: 2px; color: var(--gray); border: 1px solid var(--line); padding: 4px 14px; white-space: nowrap; }

/* ===== CTA ===== */
.cta-mono { background: var(--ink); color: #fff; padding: 96px 0; text-align: center; }
.cta-mono .sec-no { color: rgba(255, 255, 255, 0.4); }
.cta-mono h2 { color: #fff; font-size: 42px; letter-spacing: 4px; margin: 16px 0 14px; }
.cta-mono p { color: rgba(255, 255, 255, 0.62); max-width: 520px; margin: 0 auto 40px; font-size: 15px; }
.cta-mono .cta-row { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-mono .cta-phone { font-family: var(--serif); font-size: 26px; letter-spacing: 3px; color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); font-size: 14px; color: var(--gray); }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 46px; padding: 70px 0 56px; }
.footer-col h3 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--ink-soft); }
.footer-brand { font-family: var(--serif); font-size: 24px; letter-spacing: 4px; color: var(--ink); font-weight: 700; margin-bottom: 14px; }
.footer-col p { margin-bottom: 10px; }
.footer-contact li { display: flex; gap: 14px; }
.footer-contact b { color: var(--ink); font-weight: 500; flex: none; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; font-size: 12.5px; letter-spacing: 1px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Inner pages ===== */
.page-hero { padding: 76px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 40px; letter-spacing: 3px; }
.breadcrumbs { margin-top: 14px; font-size: 12.5px; color: var(--gray); letter-spacing: 2px; }
.breadcrumbs a { color: var(--ink); }

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

.entry-card { padding: 34px 4px; border-bottom: 1px solid var(--line); }
.entry-card:first-child { border-top: 1px solid var(--line-dark); }
.entry-card h2 { font-size: 24px; letter-spacing: 1px; margin-bottom: 10px; }
.entry-meta { font-size: 12.5px; color: var(--gray); letter-spacing: 2px; margin-bottom: 12px; }
.entry-meta span { margin-right: 20px; }
.entry-excerpt { color: var(--ink-soft); font-size: 15px; }
.entry-thumb { margin-bottom: 20px; }
.entry-thumb img { filter: grayscale(1); transition: filter 0.4s ease; }
.entry-thumb:hover img { filter: grayscale(0); }

.entry-content { font-size: 16px; }
.entry-content h2, .entry-content h3 { margin: 1.8em 0 0.8em; letter-spacing: 2px; }
.entry-content h2 { font-size: 27px; }
.entry-content h3 { font-size: 21px; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em 1.5em; }
.entry-content ul { list-style: "— "; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  border-left: 1px solid var(--ink);
  padding: 4px 0 4px 28px;
  margin: 1.6em 0;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.entry-content table th, .entry-content table td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.entry-content table thead th { border-bottom: 1px solid var(--ink); }
.entry-content a { border-bottom: 1px solid var(--ink); }
.single-header { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line-dark); }
.single-header h1 { font-size: 32px; letter-spacing: 2px; margin-bottom: 12px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; letter-spacing: 1px; }

/* Sidebar */
.sidebar .widget { border: 1px solid var(--line); padding: 28px; margin-bottom: 26px; }
.sidebar .widget-title, .sidebar .widget h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}
.sidebar .widget ul li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar-cta { background: var(--ink); color: #fff; padding: 32px 28px; margin-bottom: 26px; }
.sidebar-cta h3 { color: #fff; font-size: 19px; letter-spacing: 2px; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.sidebar-cta strong { display: block; font-family: var(--serif); font-size: 21px; letter-spacing: 2px; margin-bottom: 18px; }

/* Search form */
.search-form { display: flex; border-bottom: 1px solid var(--ink); }
.search-form .search-field { flex: 1; min-width: 0; padding: 11px 2px; border: none; outline: none; background: transparent; letter-spacing: 1px; }
.search-form .search-submit { padding: 11px 4px 11px 16px; background: none; border: none; color: var(--ink); font-size: 13px; letter-spacing: 3px; cursor: pointer; }
.search-form .search-submit:hover { opacity: 0.5; }

/* Pagination */
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 9px 14px;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 1px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--ink); border-color: var(--ink); color: #fff; opacity: 1; }

/* Comments */
.comments-area { margin-top: 54px; }
.comments-area > h2 { font-size: 24px; letter-spacing: 2px; margin-bottom: 26px; }
.comment-list > li { border-bottom: 1px solid var(--line); padding: 20px 2px; }
.comment-list .children { margin: 16px 0 0 26px; border-left: 1px solid var(--line); padding-left: 20px; }
.comment-meta { font-size: 12.5px; color: var(--gray); letter-spacing: 1px; margin-bottom: 8px; }
.comment-meta b { color: var(--ink); }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 12px 2px;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
}
.comment-form input:focus, .comment-form textarea:focus { border-bottom-color: var(--ink); }

/* 404 */
.error-page { text-align: center; padding: 120px 20px; }
.error-code { font-family: var(--serif); font-size: 120px; line-height: 1; color: var(--ink); letter-spacing: 10px; }
.error-page h1 { font-size: 26px; letter-spacing: 3px; margin: 22px 0 12px; }
.error-page p { color: var(--gray); margin-bottom: 34px; }
.error-page .search-form { max-width: 400px; margin: 0 auto 34px; }

/* 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-size: 12.5px; color: var(--gray); text-align: center; padding: 8px 0; letter-spacing: 1px; }
.sticky { background: var(--paper-warm); }
.bypostauthor { display: block; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .philo { grid-template-columns: 1fr; gap: 40px; }
  .philo-title .vertical { display: none; }
  .case-cols { grid-template-columns: 1fr; }
  .case-col { border-right: none; border-bottom: 1px solid var(--line); }
  .case-col:last-child { border-bottom: none; }
  .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: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 15px 24px; border-bottom: 1px solid var(--line); }
  .site-nav .sub-menu { position: static; display: block; border: none; padding-left: 18px; }
  .hero { padding: 70px 0 60px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .plist-row { grid-template-columns: 50px 1fr 40px; }
  .plist-row p { display: none; }
  .sec-head { flex-direction: column; gap: 8px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .news-item .news-cat { justify-self: start; }
}
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .sec-head h2 { font-size: 30px; }
  .cta-mono h2 { font-size: 30px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .hero-marks .mark { min-width: 50%; border-bottom: 1px solid var(--line); }
  .case-figure { padding: 30px 22px; }
}
