/*
Theme Name: PP Pharma 规格说明书
Theme URI: https://example.com/pp-pharma
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-pharma
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --paper: #ffffff;
  --tint: #f4f8fc;
  --blue: #1b63b5;
  --blue-deep: #124a8c;
  --blue-mist: #dbe8f6;
  --ink: #1f2933;
  --gray: #6a7783;
  --line: #d8e2ec;
  --warn: #c8531b;
  --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.85;
  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: 12px 26px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--blue); border-radius: 4px; background: var(--paper);
  color: var(--blue); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--blue-mist); }
.btn-main { background: var(--blue); color: #fff; }
.btn-main:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

/* ===== Notice bar ===== */
.noticebar { background: var(--blue-mist); border-bottom: 1px solid var(--line); font-size: 13px; }
.noticebar-inner { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--blue-deep); }
.nb-icon {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 12px; flex: none;
}
.nb-tel { margin-left: auto; font-family: var(--mono); font-weight: 700; }

/* ===== Header ===== */
.site-header { background: var(--paper); border-bottom: 2px solid var(--blue); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 15px 0; }
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .03em;
}
.site-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.site-desc { font-size: 11px; color: var(--gray); font-family: var(--mono); letter-spacing: .1em; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; }
.site-nav a { font-size: 15px; font-weight: 500; padding: 5px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero leaflet ===== */
.hero { padding: 46px 0 40px; background: var(--tint); }
.leaflet { background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(27,99,181,.06); }
.leaflet-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 26px; background: var(--blue); color: #fff;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
}
.leaflet-main { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 40px 34px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.28; font-weight: 800; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { margin-top: 16px; font-size: 16px; color: #4a5763; max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lf-figure { border-left: 1px dashed var(--line); padding-left: 34px; }
.lf-legend { list-style: none; counter-reset: lg; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.lf-legend li {
  counter-increment: lg; position: relative; padding-left: 30px;
  font-size: 13px; color: var(--gray); line-height: 1.6;
}
.lf-legend li::before {
  content: counter(lg); position: absolute; left: 0; top: 2px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: var(--mono); font-size: 11px;
}

/* ===== Sections ===== */
.section { padding: 60px 0; }
.section-tint { background: var(--tint); }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.sec-tag {
  font-family: var(--mono); font-size: 14px; font-weight: 700; color: #fff;
  background: var(--blue); padding: 4px 12px; border-radius: 4px;
}
.sec-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -.01em; }

/* ===== Facts ===== */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 6px; padding: 22px 20px; }
.fact h3 { font-size: 16px; font-weight: 800; color: var(--blue-deep); margin-bottom: 8px; }
.fact p { font-size: 14px; color: var(--gray); line-height: 1.75; }

/* ===== Products ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .16s ease, transform .16s ease;
}
.prod:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(27,99,181,.12); }
.prod-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; }
.prod-code { color: #fff; background: var(--blue); padding: 2px 8px; border-radius: 3px; }
.prod-spec { color: var(--gray); }
.prod-fig { background: var(--tint); border-radius: 6px; padding: 12px 10px 6px; margin: 4px 0; }
.prod h3 { font-size: 18px; font-weight: 800; }
.prod h3 a:hover { color: var(--blue); }
.prod p { font-size: 14px; color: var(--gray); flex: 1; line-height: 1.7; }
.prod-link { font-size: 13px; font-weight: 700; color: var(--blue); }

/* ===== Spec table ===== */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.spec-table th {
  text-align: left; padding: 13px 18px; background: var(--blue-mist);
  color: var(--blue-deep); font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.spec-table td { padding: 13px 18px; border-top: 1px solid var(--line); }
.spec-table td:first-child { font-weight: 700; width: 26%; }
.spec-table td:nth-child(2) { font-family: var(--mono); color: var(--blue); width: 28%; }
.spec-table tbody tr:hover { background: var(--tint); }

/* ===== Usage ===== */
.usage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usage { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px; }
.us-no {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-mist); color: var(--blue-deep); font-family: var(--mono);
  font-weight: 700; margin-bottom: 12px;
}
.usage h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.usage p { font-size: 14px; color: var(--gray); line-height: 1.75; }
.usage.warn { border-color: var(--warn); background: #fdf5f0; }
.usage.warn .us-no { background: var(--warn); color: #fff; }
.usage.warn h3 { color: var(--warn); }

/* ===== News ===== */
.news-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.news-row {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 14px;
  padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--paper);
  transition: background .15s ease;
}
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: var(--tint); }
.news-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.news-row h3 { font-size: 16px; font-weight: 500; }
.news-row:hover h3 { color: var(--blue); }
.news-row time { font-family: var(--mono); font-size: 12px; color: var(--gray); }

/* ===== CTA ===== */
.cta-leaflet { margin: 56px 0; border: 1.5px solid var(--blue); border-radius: 8px; overflow: hidden; }
.leaflet-tab {
  background: var(--blue); color: #fff; padding: 10px 26px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.leaflet-body {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
  padding: 28px 26px; background: var(--paper);
}
.leaflet-body h2 { font-size: 22px; font-weight: 800; }
.leaflet-body p { font-size: 14px; color: var(--gray); margin-top: 6px; max-width: 44em; }
.cta-side { display: flex; align-items: center; gap: 18px; }
.cta-phone { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--blue); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--tint); border-bottom: 1px solid var(--line); padding: 34px 0; }
.page-hero h1 { font-size: 27px; font-weight: 800; }
.breadcrumbs { margin-top: 6px; font-size: 13px; color: var(--gray); }
.breadcrumbs a:hover { color: var(--blue); }

.layout { display: grid; grid-template-columns: 1fr 290px; gap: 34px; padding: 44px 0 64px; align-items: start; }
.layout-full { padding: 44px 0 64px; }
.entry-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; margin-bottom: 18px; }
.entry-card:hover { border-color: var(--blue); }
.entry-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.entry-card h2 a:hover { color: var(--blue); }
.entry-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.entry-meta a { color: var(--blue); }
.entry-excerpt { margin-top: 10px; font-size: 15px; color: #46525e; }
.entry-thumb { margin-bottom: 16px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.single-header { border-bottom: 2px solid var(--blue); padding-bottom: 14px; margin-bottom: 22px; }
.single-header h1 { font-size: 27px; font-weight: 800; margin-bottom: 8px; }
.entry-content { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 26px; font-size: 16px; }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2 { font-size: 21px; font-weight: 800; color: var(--blue-deep); }
.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(--blue); background: var(--tint); padding: 14px 18px; border-radius: 0 6px 6px 0; color: #4a5763; }
.entry-content code { font-family: var(--mono); background: var(--blue-mist); padding: 2px 6px; border-radius: 3px; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 14px; }
.post-nav a { color: var(--blue); }
.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: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-family: var(--mono);
}
.pagination .current, .pagination .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.sidebar-cta { background: var(--blue); color: #fff; border-radius: 8px; padding: 22px 20px; text-align: center; }
.sidebar-cta h3 { font-size: 17px; font-weight: 800; }
.sidebar-cta p { font-size: 13px; color: #cfe0f3; margin: 8px 0 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 21px; margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; background: #fff; color: var(--blue); border-color: #fff; }
.widget { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.widget-title { font-size: 16px; font-weight: 800; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--blue-mist); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #45525e; }
.widget li a:hover { color: var(--blue); }

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

/* ===== Comments ===== */
.comments-area { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; 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(--blue-mist); 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: 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: 1px solid var(--line); border-radius: 5px; font-family: inherit; font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--blue); }
.comment-form .submit { padding: 12px 26px; border: 0; border-radius: 5px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 76px 0; }
.error-code { font-family: var(--mono); font-size: 88px; font-weight: 800; color: var(--blue); line-height: 1; }
.error-page h1 { font-size: 25px; 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: #f7fafd; border-top: 2px solid var(--blue); margin-top: 20px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 46px 0 34px; }
.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(--blue-deep); 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: #4c5966; }
.footer-col a:hover { color: var(--blue); }
.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-size: 13px; color: var(--gray); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .leaflet-main { grid-template-columns: 1fr; gap: 28px; }
  .lf-figure { border-left: 0; border-top: 1px dashed var(--line); padding-left: 0; padding-top: 24px; }
  .fact-grid, .usage-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 780px) {
  .noticebar-inner { flex-wrap: wrap; }
  .nb-tel { margin-left: 0; }
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--blue); }
  .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; }
  .leaflet-main { padding: 28px 20px; }
  .fact-grid, .usage-grid, .prod-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 12px 1fr; }
  .news-row time { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}
