/*
Theme Name: PP EcoGreen 绿盾环保
Theme URI: https://example.com/pp-ecogreen
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 酸洗槽 / 环保设备厂家的清新绿色风 WordPress 主题。绿白配色、大圆角卡片与波浪分隔,内置环保承诺、FAQ 手风琴等版块,突出聚丙烯材料可回收、绿色制造、达标排放的品牌形象,适合注重环保资质的设备企业。
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-ecogreen
Tags: green, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --green: #0e8a5c;
  --green-deep: #0a5c3e;
  --green-dark: #073d2a;
  --green-soft: #e8f6ef;
  --mint: #c9ecdb;
  --lime: #7fd6ac;
  --text: #253830;
  --text-dim: #5f7268;
  --line: #dcebe2;
  --white: #ffffff;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;
  --shadow: 0 10px 34px rgba(14, 92, 62, 0.10);
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, system-ui, 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: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green-deep); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: #17251f; 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 20px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  line-height: 1.4;
}
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(14, 138, 92, 0.28); }
.btn-green:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); }
.btn-soft { background: var(--green-soft); color: var(--green-deep); }
.btn-soft:hover { background: var(--mint); color: var(--green-dark); }
.btn-white { background: #fff; color: var(--green-deep); }
.btn-white:hover { background: var(--mint); color: var(--green-dark); }

/* ===== Header ===== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo { max-height: 52px; width: auto; }
.brand-mark {
  width: 48px; height: 48px; flex: none;
  background: linear-gradient(140deg, var(--green) 0%, #14a06e 100%);
  border-radius: 16px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.site-title { font-size: 22px; font-weight: 800; }
.site-title a { color: #17251f; }
.site-title a:hover { color: var(--green); }
.site-desc { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }

.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  border-radius: 12px;
  background: var(--green-soft);
}
.nav-toggle-label span { display: block; height: 2px; background: var(--green-deep); border-radius: 2px; }

.site-nav ul { display: flex; gap: 6px; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 10px 18px;
  margin: 18px 0;
  color: #2c3f36;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: var(--r-pill);
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { background: var(--green-soft); color: var(--green-deep); }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
  z-index: 99;
}
.site-nav li:hover > .sub-menu { display: block; }
.site-nav .sub-menu a { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--green-soft) 0%, #f6fbf8 100%);
  text-align: center;
  padding: 84px 0 0;
  overflow: hidden;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--mint);
  color: var(--green-deep);
  padding: 8px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
  box-shadow: 0 4px 14px rgba(14, 92, 62, 0.08);
}
.hero-badge::before { content: "●"; color: var(--green); font-size: 10px; }
.hero h1 { font-size: 46px; line-height: 1.25; max-width: 760px; margin: 0 auto 18px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { max-width: 640px; margin: 0 auto 34px; color: var(--text-dim); font-size: 17px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.hero-trust li { font-size: 14px; color: var(--text-dim); display: flex; align-items: center; gap: 7px; }
.hero-trust li::before {
  content: "✓";
  width: 20px; height: 20px;
  background: var(--mint);
  color: var(--green-dark);
  border-radius: 50%;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hero-figure {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -14px 44px rgba(14, 92, 62, 0.12);
  padding: 40px 50px 0;
}
.hero-figure svg { width: 100%; height: auto; }

/* ===== Wave divider ===== */
.wave { display: block; width: 100%; height: 70px; }
.wave-flip { transform: scaleY(-1); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-soft { background: #f6fbf8; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-pill {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 15.5px; }

/* ===== Feature cards ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.f-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 32px;
  text-align: center;
  transition: all 0.28s ease;
}
.f-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.f-icon {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  background: var(--green-soft);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
}
.f-icon svg { width: 38px; height: 38px; }
.f-card h3 { font-size: 20px; margin-bottom: 10px; }
.f-card p { font-size: 14.5px; color: var(--text-dim); }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.28s ease;
  display: flex;
  flex-direction: column;
}
.p-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--mint); }
.p-media {
  background: linear-gradient(160deg, var(--green-soft) 0%, var(--mint) 100%);
  padding: 34px 34px 26px;
  display: flex;
  justify-content: center;
}
.p-media svg { width: 160px; height: 112px; }
.p-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.p-body h3 { font-size: 19px; margin-bottom: 8px; }
.p-body h3 a { color: #17251f; }
.p-body h3 a:hover { color: var(--green); }
.p-body p { font-size: 14px; color: var(--text-dim); flex: 1; }
.p-more {
  margin-top: 16px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  transition: all 0.2s ease;
}
.p-card:hover .p-more { background: var(--green); color: #fff; }

/* ===== Eco pledge ===== */
.pledge {
  background:
    radial-gradient(circle at 85% 15%, rgba(127, 214, 172, 0.25) 0%, transparent 50%),
    linear-gradient(140deg, var(--green-deep) 0%, var(--green) 100%);
  border-radius: var(--r-lg);
  color: #fff;
  padding: 64px 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.pledge h2 { color: #fff; font-size: 32px; margin-bottom: 16px; }
.pledge p { color: #d3ecdf; font-size: 15.5px; margin-bottom: 14px; }
.pledge-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pledge-stat {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  padding: 22px 24px;
  backdrop-filter: blur(4px);
}
.pledge-stat b { display: block; font-size: 32px; font-weight: 800; line-height: 1.15; }
.pledge-stat b small { font-size: 16px; color: var(--lime); }
.pledge-stat span { font-size: 13.5px; color: #cbe9da; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--mint); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-size: 17px;
  font-weight: 700;
  color: #1d2e26;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: "−"; background: var(--green); color: #fff; }
.faq-item .faq-body { padding: 0 26px 22px; color: var(--text-dim); font-size: 15px; }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 26px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-date {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 5px 14px;
  border-radius: var(--r-pill);
}
.news-card h3 { font-size: 18px; margin: 14px 0 10px; line-height: 1.5; }
.news-card h3 a { color: #17251f; }
.news-card h3 a:hover { color: var(--green); }
.news-card p { font-size: 14px; color: var(--text-dim); flex: 1; }
.news-more { margin-top: 14px; font-size: 14px; font-weight: 700; }

/* ===== CTA ===== */
.cta-wrap { padding: 0 0 88px; }
.cta-card {
  background: linear-gradient(120deg, var(--green) 0%, #17a873 100%);
  border-radius: var(--r-lg);
  padding: 56px 60px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 18px 50px rgba(14, 138, 92, 0.30);
}
.cta-card h2 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.cta-card p { color: #d9f2e6; font-size: 15px; }
.cta-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-phone { color: #fff; text-align: right; }
.cta-phone small { display: block; font-size: 12.5px; color: #bfe8d4; }
.cta-phone strong { font-size: 26px; font-weight: 800; letter-spacing: 1px; }

/* ===== Footer ===== */
.site-footer { background: var(--green-dark); color: #a8c8b8; font-size: 14px; border-radius: 36px 36px 0 0; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 42px; padding: 62px 0 46px; }
.footer-col h3 { color: #fff; font-size: 16.5px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #a8c8b8; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-contact li b { color: #d2e8dc; font-weight: 600; margin-right: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.10); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Inner pages ===== */
.page-hero {
  background: linear-gradient(180deg, var(--green-soft) 0%, #f6fbf8 100%);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-size: 32px; }
.breadcrumbs { margin-top: 10px; font-size: 13.5px; color: var(--text-dim); }
.breadcrumbs a { color: var(--green); }

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

.entry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 34px;
  margin-bottom: 24px;
  transition: all 0.25s ease;
}
.entry-card:hover { box-shadow: var(--shadow); border-color: var(--mint); }
.entry-card h2 { font-size: 22px; margin-bottom: 10px; }
.entry-card h2 a { color: #17251f; }
.entry-card h2 a:hover { color: var(--green); }
.entry-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.entry-meta span { margin-right: 18px; }
.entry-excerpt { color: var(--text-dim); font-size: 15px; }
.entry-thumb { margin-bottom: 18px; border-radius: var(--r-md); overflow: hidden; }

.entry-content { font-size: 16px; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 0.7em; }
.entry-content h2 { font-size: 26px; }
.entry-content h2::before { content: "◆ "; color: var(--green); font-size: 18px; }
.entry-content h3 { font-size: 21px; }
.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(--green-soft);
  border-radius: var(--r-md);
  padding: 18px 24px;
  margin: 1.4em 0;
  color: #3c5348;
}
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content table th { background: var(--green-soft); }
.entry-content img { border-radius: var(--r-md); }
.entry-content a { text-decoration: underline; }

.single-header { text-align: left; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.single-header h1 { font-size: 30px; margin-bottom: 10px; }
.post-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* Sidebar */
.sidebar .widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 24px;
}
.sidebar .widget-title, .sidebar .widget h2 {
  font-size: 17px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar .widget-title::before, .sidebar .widget h2::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
}
.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: linear-gradient(140deg, var(--green) 0%, #17a873 100%);
  border-radius: var(--r-lg);
  color: #fff;
  padding: 30px 26px;
  margin-bottom: 24px;
  text-align: center;
}
.sidebar-cta h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13.5px; color: #d9f2e6; margin-bottom: 12px; }
.sidebar-cta strong { display: block; font-size: 23px; font-weight: 800; margin-bottom: 16px; }

/* Search form */
.search-form { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.search-form:focus-within { border-color: var(--green); }
.search-form .search-field { flex: 1; min-width: 0; padding: 12px 20px; border: none; outline: none; background: transparent; }
.search-form .search-submit {
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--r-pill);
  margin: 4px;
}
.search-form .search-submit:hover { background: var(--green-deep); }

/* 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: 9px 15px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* Comments */
.comments-area { margin-top: 46px; }
.comments-area > h2 { font-size: 22px; margin-bottom: 22px; }
.comment-list > li { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 16px; background: #fff; }
.comment-list .children { margin: 16px 0 0 26px; }
.comment-list .children > li { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 12px; }
.comment-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.comment-meta b { color: var(--green-deep); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; 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 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--green); }

/* 404 */
.error-page { text-align: center; padding: 96px 20px; }
.error-code {
  display: inline-block;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  background: var(--green-soft);
  padding: 20px 46px;
  border-radius: var(--r-lg);
}
.error-page h1 { font-size: 28px; margin: 22px 0 10px; }
.error-page p { color: var(--text-dim); margin-bottom: 28px; }
.error-page .search-form { max-width: 440px; margin: 0 auto 26px; }

/* 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: 13px; color: var(--text-dim); text-align: center; padding: 8px 0; }
.sticky { border-left: 4px solid var(--green); }
.bypostauthor { display: block; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .feature-grid, .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .pledge { grid-template-columns: 1fr; padding: 46px 40px; }
  .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: 12px; right: 12px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { margin: 0; border-radius: 12px; }
  .site-nav .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: 34px; }
  .hero-figure { padding: 26px 26px 0; }
  .cta-card { padding: 40px 32px; flex-direction: column; text-align: center; }
  .cta-phone { text-align: center; }
}
@media (max-width: 600px) {
  .section { padding: 62px 0; }
  .hero h1 { font-size: 28px; }
  .section-head h2 { font-size: 26px; }
  .feature-grid, .product-grid, .news-grid { grid-template-columns: 1fr; }
  .pledge-stats { grid-template-columns: 1fr; }
  .pledge { padding: 36px 26px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .site-footer { border-radius: 24px 24px 0 0; }
}
