/*
Theme Name: PP SteelPlate 锈钢板材
Theme URI: https://example.com/pp-steelplate
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 酸洗槽厂家的重工业风 WordPress 主题。钢板拉丝质感配锈橙点缀,铆钉边角、承重参数条、钢骨内胆剖面示意与车间快报,主打"型钢骨架 + PP 内胆"的重载型槽体制造商,适合以结构强度和重工经验为卖点的工厂。
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-steelplate
Tags: dark, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --steel-900: #1b1f24;
  --steel-800: #262b32;
  --steel-700: #333941;
  --steel-100: #eceef1;
  --paper: #f6f7f9;
  --white: #ffffff;
  --rust: #c2542a;
  --rust-lit: #e0703f;
  --ink: #22272e;
  --gray: #6b7480;
  --line: #d6dae0;
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --brush: repeating-linear-gradient(180deg, rgba(255,255,255,0.045) 0 2px, rgba(0,0,0,0.05) 2px 4px);
}

/* ===== 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: var(--paper);
}
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: 13px 26px; font-size: 15px; font-weight: 700;
  border: 2px solid var(--steel-900); background: var(--white); color: var(--steel-900);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--steel-900); }
.btn-main { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn-main:hover { box-shadow: 4px 4px 0 var(--steel-900); }
.btn-ghost { background: transparent; border-color: currentColor; }

/* ===== Topbar ===== */
.topbar {
  background: var(--steel-900); color: #b9c0c9; font-size: 13px;
  background-image: var(--brush);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; }
.tb-tag { letter-spacing: .04em; }
.tb-tel b { color: var(--rust-lit); font-family: var(--mono); font-size: 14px; margin-left: 4px; }

/* ===== Header ===== */
.site-header {
  background: var(--steel-800); background-image: var(--brush);
  border-bottom: 4px solid var(--rust); position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 22px; padding: 16px 0; }
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--rust); color: #fff; font-weight: 900; font-size: 18px;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.site-title { font-size: 21px; font-weight: 800; line-height: 1.25; color: #fff; letter-spacing: .02em; }
.site-desc { font-size: 12px; color: #97a0ab; font-family: var(--mono); letter-spacing: .06em; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; }
.site-nav a { font-size: 15px; font-weight: 600; color: #d7dce2; padding: 6px 0; position: relative; }
.site-nav a:hover { color: #fff; }
.site-nav .menu > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }
.header-cta .btn { padding: 10px 20px; }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--steel-900), var(--steel-700));
  background-image: var(--brush), linear-gradient(160deg, var(--steel-900), var(--steel-700));
  color: #fff; padding: 74px 0 66px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--rust) 0 30px, var(--steel-900) 30px 60px);
  opacity: .85;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero-badge {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--rust-lit); border: 1px solid rgba(224,112,63,.5); padding: 5px 12px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.2; font-weight: 900; letter-spacing: .01em; }
.hero h1 em {
  font-style: normal; color: var(--rust-lit);
  text-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
.hero-sub { margin-top: 18px; font-size: 16px; color: #c3cad2; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-actions .btn-ghost { color: #fff; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin-top: 26px; }
.hero-points li { font-size: 14px; color: #aeb6c0; padding-left: 18px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px;
  margin-top: -4px; background: var(--rust); border-radius: 50%;
}
.hero-plate {
  position: relative; background: var(--steel-800); border: 3px solid #454c56;
  padding: 30px 26px 22px; background-image: var(--brush);
}
.plate-rivets { position: absolute; inset: 8px; pointer-events: none; }
.plate-rivets span {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9aa3ad, #4c535d);
  box-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.plate-rivets span:nth-child(1) { top: 0; left: 0; }
.plate-rivets span:nth-child(2) { top: 0; right: 0; }
.plate-rivets span:nth-child(3) { bottom: 0; left: 0; }
.plate-rivets span:nth-child(4) { bottom: 0; right: 0; }
.plate-tag {
  margin-top: 12px; text-align: center; font-family: var(--mono); font-size: 12px;
  color: #98a1ac; letter-spacing: .06em;
}

/* ===== Spec bar ===== */
.specbar { background: var(--steel-100); border-bottom: 1px solid var(--line); }
.specbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 26px 16px; text-align: center; border-right: 1px solid var(--line); }
.spec:last-child { border-right: 0; }
.spec b { display: block; font-size: 36px; font-weight: 900; color: var(--steel-900); line-height: 1.1; }
.spec b i { font-style: normal; font-size: 16px; color: var(--rust); margin-left: 3px; }
.spec span { font-size: 13px; color: var(--gray); }

/* ===== Sections ===== */
.section { padding: 66px 0; }
.section-dark {
  background: var(--steel-900); background-image: var(--brush); color: #dfe3e8;
}
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; border-bottom: 3px solid var(--steel-900); padding-bottom: 12px; }
.sec-no {
  display: grid; place-items: center; min-width: 40px; height: 40px;
  background: var(--rust); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.sec-note { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--gray); letter-spacing: .12em; }
.sec-head-light { border-bottom-color: #454c56; }
.sec-head-light h2 { color: #fff; }
.sec-head-light .sec-note { color: #8d96a1; }

/* ===== Products ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod { background: var(--white); border: 2px solid var(--steel-900); display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.prod:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--rust); }
.prod-shot { position: relative; padding: 20px 18px 8px; background: var(--steel-100); border-bottom: 2px solid var(--steel-900); }
.prod-spec {
  position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 11px;
  background: var(--steel-900); color: #fff; padding: 3px 8px;
}
.prod-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-body h3 { font-size: 18px; font-weight: 800; }
.prod-body p { font-size: 14px; color: var(--gray); flex: 1; }
.prod-link { font-size: 14px; font-weight: 700; color: var(--rust); }

/* ===== Advantages ===== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv { border: 2px solid #454c56; padding: 24px 20px; background: rgba(255,255,255,.03); }
.adv-no {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px;
  border: 2px solid var(--rust); color: var(--rust-lit); font-family: var(--mono); font-weight: 700;
}
.adv h3 { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.adv p { font-size: 14px; color: #a9b2bc; }

/* ===== Flow ===== */
.flow-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.flow { background: var(--white); border: 2px solid var(--line); padding: 20px 14px; text-align: center; position: relative; }
.flow b {
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 12px;
  background: var(--steel-900); color: #fff; font-family: var(--mono); font-size: 15px;
}
.flow h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.flow p { font-size: 13px; color: var(--gray); }
.flow:not(:last-child)::after {
  content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: var(--rust); font-weight: 900; z-index: 2;
}

/* ===== News ===== */
.news-list { border-top: 2px solid var(--steel-900); }
.news-row {
  display: grid; grid-template-columns: 120px 1fr 30px; align-items: center; gap: 16px;
  padding: 17px 12px; border-bottom: 1px solid var(--line); background: var(--white);
  transition: background .15s ease, padding-left .15s ease;
}
.news-row:hover { background: var(--steel-100); padding-left: 20px; }
.news-row time { font-family: var(--mono); font-size: 13px; color: var(--gray); }
.news-row h3 { font-size: 16px; font-weight: 600; }
.news-go { color: var(--rust); font-weight: 800; text-align: right; }

/* ===== CTA ===== */
.cta-steel {
  position: relative; margin: 60px 0; padding: 34px 36px;
  background: var(--steel-800); background-image: var(--brush);
  border: 3px solid var(--rust); color: #fff;
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
}
.cta-rivets { position: absolute; inset: 9px; pointer-events: none; }
.cta-rivets span {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9aa3ad, #4c535d);
}
.cta-rivets span:nth-child(1) { top: 0; left: 0; }
.cta-rivets span:nth-child(2) { top: 0; right: 0; }
.cta-rivets span:nth-child(3) { bottom: 0; left: 0; }
.cta-rivets span:nth-child(4) { bottom: 0; right: 0; }
.cta-steel h2 { font-size: 24px; font-weight: 800; }
.cta-steel p { font-size: 14px; color: #b8c0c9; margin-top: 6px; }
.cta-side { display: flex; align-items: center; gap: 18px; }
.cta-phone { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--rust-lit); }

/* ===== Page hero / inner ===== */
.page-hero {
  background: var(--steel-900); background-image: var(--brush);
  color: #fff; padding: 40px 0; border-bottom: 4px solid var(--rust);
}
.page-hero h1 { font-size: 28px; font-weight: 800; }
.breadcrumbs { margin-top: 8px; font-size: 13px; color: #9aa3ae; }
.breadcrumbs a { color: #c8ced5; }
.breadcrumbs i { font-style: normal; margin: 0 6px; color: var(--rust); }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; padding: 46px 0 66px; align-items: start; }
.layout-full { padding: 46px 0 66px; }
.entry-card { background: var(--white); border: 2px solid var(--line); padding: 24px; margin-bottom: 20px; }
.entry-card:hover { border-color: var(--steel-900); }
.entry-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.entry-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.entry-meta a { color: var(--rust); }
.entry-excerpt { margin-top: 10px; font-size: 15px; color: #4d5661; }
.entry-thumb { margin-bottom: 16px; border: 2px solid var(--line); }
.single-header { border-bottom: 3px solid var(--steel-900); padding-bottom: 14px; margin-bottom: 20px; }
.single-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.entry-content { background: var(--white); border: 2px solid var(--line); padding: 26px; font-size: 16px; }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2 { font-size: 22px; font-weight: 800; border-left: 5px solid var(--rust); 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: 5px solid var(--rust); background: var(--steel-100);
  padding: 14px 18px; color: #4d5661;
}
.entry-content code { font-family: var(--mono); background: var(--steel-100); padding: 2px 6px; }
.entry-content a { color: var(--rust); text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 14px; }
.post-nav a { color: var(--rust); font-weight: 600; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 2px solid var(--line); background: var(--white); font-family: var(--mono); font-weight: 700;
}
.pagination .current, .pagination .page-numbers:hover { background: var(--steel-900); color: #fff; border-color: var(--steel-900); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.sidebar-cta {
  background: var(--steel-900); background-image: var(--brush); color: #fff;
  border: 3px solid var(--rust); padding: 22px 20px; text-align: center;
}
.sidebar-cta h3 { font-size: 18px; font-weight: 800; }
.sidebar-cta p { font-size: 13px; color: #aab2bc; margin: 8px 0 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 21px; color: var(--rust-lit); margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; }
.widget { background: var(--white); border: 2px solid var(--line); padding: 20px; }
.widget-title { font-size: 16px; font-weight: 800; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 3px solid var(--steel-900); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #45505c; }
.widget li a:hover { color: var(--rust); }

.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); font-size: 14px; font-family: inherit; }
.search-field:focus { outline: none; border-color: var(--rust); }
.search-submit { padding: 10px 16px; border: 2px solid var(--steel-900); background: var(--steel-900); color: #fff; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--rust); border-color: var(--rust); }

/* ===== Comments ===== */
.comments-area { margin-top: 30px; background: var(--white); 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: 4px solid var(--line); padding-left: 14px; 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: 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: 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(--rust); }
.comment-form .submit {
  padding: 12px 26px; border: 2px solid var(--rust); background: var(--rust);
  color: #fff; font-weight: 700; cursor: pointer;
}

/* ===== 404 ===== */
.error-page { text-align: center; padding: 80px 0; }
.error-code { font-family: var(--mono); font-size: 90px; font-weight: 900; color: var(--rust); line-height: 1; }
.error-page h1 { font-size: 26px; font-weight: 800; margin: 10px 0 8px; }
.error-page p { color: var(--gray); margin-bottom: 18px; }
.error-page .search-form { max-width: 420px; margin: 0 auto 18px; }

/* ===== Footer ===== */
.site-footer { background: var(--steel-900); background-image: var(--brush); color: #aeb6c0; margin-top: 20px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 50px 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-col p { font-size: 14px; }
.footer-col h3 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--rust); display: inline-block; }
.footer-col ul, .footer-menu { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--rust-lit); }
.footer-contact li { font-size: 14px; display: flex; gap: 8px; }
.footer-contact b { color: #fff; font-weight: 600; min-width: 34px; }
.footer-bottom { border-top: 1px solid #3a4048; padding: 16px 0; font-size: 13px; }
.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; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-row { grid-template-columns: repeat(3, 1fr); }
  .flow:nth-child(3)::after { content: none; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 780px) {
  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 8px; border: 2px solid #545b65; cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; background: #fff; }
  .site-nav {
    display: none; order: 10; width: 100%; padding-top: 12px;
    border-top: 1px solid #3d444d; margin-top: 12px;
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav .menu { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 10px 0; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
  .specbar-inner { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2) { border-right: 0; }
  .prod-grid, .adv-grid, .flow-row { grid-template-columns: 1fr; }
  .flow::after { content: none !important; }
  .news-row { grid-template-columns: 1fr; gap: 4px; }
  .news-go { display: none; }
  .cta-steel { padding: 26px 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .sec-note { display: none; }
}
