/*
Theme Name: PP Porcelain 青花瓷
Theme URI: https://example.com/pp-porcelain
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-porcelain
Tags: light, blue, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --white: #f8fafc;
  --glaze: #eef4fa;
  --cobalt: #1e4c9a;
  --cobalt-deep: #143467;
  --cobalt-mist: #d7e4f4;
  --ink: #24344d;
  --gray: #6c7c96;
  --line: #c9d9ec;
  --container: 1120px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--serif); font-size: 16.5px; line-height: 1.95; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; transition: color 0.22s ease; }
a:hover { color: var(--cobalt-deep); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--cobalt-deep); line-height: 1.4; 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 24px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
::selection { background: rgba(30, 76, 154, 0.22); }

/* 青花点纹条 */
.qh-band {
  height: 16px;
  background:
    radial-gradient(circle at 8px 8px, var(--cobalt) 2.6px, transparent 3px),
    radial-gradient(circle at 24px 8px, rgba(30, 76, 154, 0.45) 1.8px, transparent 2.2px);
  background-size: 32px 16px;
  background-color: var(--glaze);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 38px;
  font-family: var(--serif);
  font-size: 15.5px;
  letter-spacing: 4px;
  cursor: pointer;
  border: 1.5px solid var(--cobalt);
  color: var(--cobalt);
  background: transparent;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn:hover { background: var(--cobalt-mist); color: var(--cobalt-deep); }
.btn-cobalt { background: var(--cobalt); color: #f6fafd; }
.btn-cobalt:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }

/* ===== Header ===== */
.site-header {
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(6px);
  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: 80px; gap: 26px; }
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding .custom-logo { max-height: 50px; width: auto; }
.brand-mark {
  width: 48px; height: 48px; flex: none;
  border: 2px solid var(--cobalt);
  border-radius: 50%;
  color: var(--cobalt);
  font-family: var(--serif);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(30, 76, 154, 0.4); border-radius: 50%; }
.site-title { font-size: 24px; letter-spacing: 5px; }
.site-title a { color: var(--cobalt-deep); }
.site-desc { font-size: 12px; color: var(--gray); letter-spacing: 3px; }

.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px;
  padding: 10px;
  border: 1.5px solid var(--cobalt);
  border-radius: 50%;
}
.nav-toggle-label span { display: block; height: 1.5px; background: var(--cobalt); }

.site-nav ul { display: flex; gap: 6px; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 28px 16px;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--ink);
  position: relative;
}
.site-nav a::after {
  content: "❋";
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%) scale(0);
  font-size: 10px;
  color: var(--cobalt);
  transition: transform 0.22s ease;
}
.site-nav a:hover { color: var(--cobalt); }
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { transform: translateX(-50%) scale(1); }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: var(--white);
  border: 1.5px solid var(--cobalt);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  z-index: 99;
}
.site-nav li:hover > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.site-nav .sub-menu li:last-child a { border-bottom: none; }
.site-nav .sub-menu a::after { display: none; }

/* ===== Hero(圆盘) ===== */
.hero { text-align: center; padding: 84px 0 76px; background: linear-gradient(180deg, var(--glaze) 0%, var(--white) 82%); }
.hero-kicker { display: inline-flex; align-items: center; gap: 14px; color: var(--gray); font-size: 14px; letter-spacing: 6px; margin-bottom: 28px; }
.hero-kicker::before, .hero-kicker::after { content: "❋"; color: var(--cobalt); font-size: 11px; }
.hero h1 { font-size: 48px; letter-spacing: 10px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero-sub { max-width: 620px; margin: 0 auto 38px; color: var(--gray); font-size: 16px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }

.plate {
  width: min(460px, 82vw);
  height: min(460px, 82vw);
  margin: 0 auto;
  border-radius: 50%;
  background: #fdfefe;
  border: 3px solid var(--cobalt);
  box-shadow: inset 0 0 0 12px var(--white), inset 0 0 0 14px rgba(30, 76, 154, 0.5), 0 22px 50px rgba(30, 76, 154, 0.16);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.plate::before {
  content: "";
  position: absolute; inset: 26px;
  border-radius: 50%;
  border: 1.5px dashed rgba(30, 76, 154, 0.4);
}
.plate svg { width: 68%; height: auto; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-glaze { background: var(--glaze); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.sec-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--gray); font-size: 13px; letter-spacing: 5px; margin-bottom: 12px; }
.sec-kicker::before, .sec-kicker::after { content: "❋"; color: var(--cobalt); font-size: 10px; }
.section-head h2 { font-size: 36px; letter-spacing: 8px; }
.section-head p { color: var(--gray); font-size: 15px; margin-top: 12px; }

/* ===== 盘卡产品 ===== */
.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pcard { text-align: center; }
.pcard-plate {
  width: 190px; height: 190px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fdfefe;
  border: 2px solid var(--cobalt);
  box-shadow: inset 0 0 0 7px var(--white), inset 0 0 0 8.5px rgba(30, 76, 154, 0.5), 0 12px 26px rgba(30, 76, 154, 0.12);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.28s ease;
}
.pcard:hover .pcard-plate { transform: rotate(-5deg) scale(1.04); }
.pcard-plate svg { width: 66%; height: auto; }
.pcard h3 { font-size: 21px; letter-spacing: 4px; margin-bottom: 8px; }
.pcard h3 a { color: var(--cobalt-deep); }
.pcard h3 a:hover { color: var(--cobalt); }
.pcard p { font-size: 14px; color: var(--gray); max-width: 300px; margin: 0 auto 10px; }
.pcard-more { font-size: 13.5px; letter-spacing: 3px; border-bottom: 1px solid var(--cobalt); padding-bottom: 3px; }

/* ===== 出窑六道 ===== */
.kiln-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kiln { text-align: center; position: relative; padding: 0 6px; }
.kiln::before {
  content: "";
  display: block;
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--cobalt);
  background:
    radial-gradient(circle at center, var(--cobalt) 5px, transparent 5.5px),
    #fdfefe;
  position: relative; z-index: 2;
  transition: background-color 0.25s ease;
}
.kiln:hover::before { background-color: var(--cobalt-mist); }
.kiln::after {
  content: "";
  position: absolute;
  top: 26px; left: calc(50% + 30px); right: calc(-50% + 30px);
  border-top: 1.5px dashed var(--line);
}
.kiln:last-child::after { display: none; }
.kiln h3 { font-size: 17px; letter-spacing: 2px; margin-bottom: 4px; }
.kiln p { font-size: 12.5px; color: var(--gray); }

/* ===== 瓷铭 ===== */
.motto { max-width: 720px; margin: 0 auto; text-align: center; }
.motto blockquote { font-size: 27px; letter-spacing: 5px; line-height: 2; color: var(--cobalt-deep); }
.motto-sign { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gray); font-size: 14px; letter-spacing: 3px; }
.motto-sign::before, .motto-sign::after { content: ""; width: 52px; height: 1px; background: var(--line); }

/* ===== 双列对照(瓷与槽) ===== */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--cobalt); border-radius: 18px; overflow: hidden; }
.pair-col { padding: 40px 42px; }
.pair-col:first-child { background: var(--cobalt); color: #dbe7f7; }
.pair-col:first-child h3 { color: #fff; }
.pair-col:last-child { background: #fdfefe; }
.pair-col h3 { font-size: 22px; letter-spacing: 4px; margin-bottom: 16px; }
.pair-col li { padding: 9px 0 9px 26px; position: relative; font-size: 15px; border-bottom: 1px dashed rgba(201, 217, 236, 0.4); }
.pair-col:last-child li { border-bottom-color: var(--line); }
.pair-col li:last-child { border-bottom: none; }
.pair-col li::before { content: "❋"; position: absolute; left: 0; font-size: 11px; }
.pair-col:first-child li::before { color: #9db9e0; }
.pair-col:last-child li::before { color: var(--cobalt); }

/* ===== 窑记 ===== */
.annals { max-width: 780px; margin: 0 auto; border-top: 2px solid var(--cobalt); }
.annal {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.annal:hover { background: var(--glaze); }
.annal time { font-size: 13.5px; color: var(--gray); letter-spacing: 2px; }
.annal h3 { font-size: 18.5px; letter-spacing: 2px; font-weight: 600; }
.annal:hover h3 { color: var(--cobalt); }

/* ===== CTA ===== */
.cta-qh {
  background: var(--cobalt);
  border-radius: 24px;
  color: #dbe7f7;
  text-align: center;
  padding: 62px 50px;
  position: relative;
  overflow: hidden;
}
.cta-qh::before, .cta-qh::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.22);
}
.cta-qh::before { left: -70px; top: -70px; }
.cta-qh::after { right: -60px; bottom: -80px; }
.cta-qh h2 { color: #fff; font-size: 32px; letter-spacing: 8px; margin-bottom: 12px; }
.cta-qh p { font-size: 15px; max-width: 520px; margin: 0 auto 30px; }
.cta-qh .cta-phone { display: block; font-size: 26px; letter-spacing: 4px; color: #fff; margin-bottom: 26px; }
.cta-qh .btn { border-color: #fff; color: #fff; }
.cta-qh .btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--glaze); font-size: 14.5px; color: var(--gray); margin-top: 84px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 42px; padding: 56px 0 44px; }
.footer-col h3 { font-size: 16px; letter-spacing: 4px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray); }
.footer-col a:hover { color: var(--cobalt); }
.footer-col p { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { color: var(--cobalt-deep); font-size: 20px; letter-spacing: 4px; }
.footer-contact li b { color: var(--ink); margin-right: 8px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Inner pages ===== */
.page-hero { text-align: center; padding: 58px 0 48px; background: var(--glaze); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 34px; letter-spacing: 8px; }
.breadcrumbs { margin-top: 10px; font-size: 13px; color: var(--gray); letter-spacing: 2px; }
.breadcrumbs a { color: var(--cobalt); }

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

.entry-card {
  background: #fdfefe;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 30px 32px;
  margin-bottom: 24px;
  transition: all 0.25s ease;
}
.entry-card:hover { border-color: var(--cobalt); box-shadow: 0 14px 32px rgba(30, 76, 154, 0.12); }
.entry-card h2 { font-size: 22px; letter-spacing: 2px; margin-bottom: 8px; }
.entry-card h2 a { color: var(--cobalt-deep); }
.entry-card h2 a:hover { color: var(--cobalt); }
.entry-meta { font-size: 13px; color: var(--gray); letter-spacing: 2px; margin-bottom: 10px; }
.entry-meta span { margin-right: 18px; }
.entry-excerpt { color: var(--gray); font-size: 15px; }
.entry-thumb { margin-bottom: 16px; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); }

.entry-content { font-size: 16.5px; }
.entry-content h2, .entry-content h3 { margin: 1.7em 0 0.8em; letter-spacing: 3px; }
.entry-content h2 { font-size: 26px; text-align: center; }
.entry-content h2::after { content: "❋"; display: block; color: var(--cobalt); font-size: 13px; margin-top: 8px; }
.entry-content h3 { font-size: 20px; }
.entry-content p { margin-bottom: 1.15em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em 1.7em; }
.entry-content ul { list-style: "❋ "; }
.entry-content ol { list-style: cjk-ideographic; }
.entry-content blockquote {
  border: 1.5px solid var(--cobalt);
  border-radius: 14px;
  background: var(--glaze);
  padding: 20px 26px;
  margin: 1.5em 0;
  text-align: center;
  letter-spacing: 2px;
  color: var(--cobalt-deep);
}
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 10px 14px; }
.entry-content table th { background: var(--glaze); letter-spacing: 2px; color: var(--cobalt-deep); }
.entry-content a { border-bottom: 1px solid var(--cobalt); }
.entry-content img { border-radius: 12px; border: 1.5px solid var(--line); }
.single-header { text-align: center; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 2px solid var(--cobalt); }
.single-header h1 { font-size: 30px; letter-spacing: 4px; margin-bottom: 10px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; letter-spacing: 1px; }

/* Sidebar */
.sidebar .widget { background: #fdfefe; border: 1.5px solid var(--line); border-radius: 16px; padding: 26px; margin-bottom: 26px; }
.sidebar .widget-title, .sidebar .widget h2 {
  font-size: 17px;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.sidebar .widget ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar-cta {
  background: var(--cobalt);
  border-radius: 16px;
  color: #dbe7f7;
  padding: 30px 26px;
  margin-bottom: 26px;
  text-align: center;
}
.sidebar-cta h3 { color: #fff; font-size: 19px; letter-spacing: 4px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13.5px; margin-bottom: 12px; }
.sidebar-cta strong { display: block; font-size: 21px; letter-spacing: 2px; color: #fff; margin-bottom: 16px; }
.sidebar-cta .btn-cobalt { background: #fff; color: var(--cobalt); border-color: #fff; }
.sidebar-cta .btn-cobalt:hover { background: var(--cobalt-mist); }

/* Search form */
.search-form { display: flex; border: 1.5px solid var(--cobalt); border-radius: 999px; overflow: hidden; background: #fdfefe; }
.search-form .search-field { flex: 1; min-width: 0; padding: 11px 18px; border: none; outline: none; background: transparent; font-family: var(--serif); }
.search-form .search-submit {
  padding: 11px 22px;
  background: var(--cobalt);
  color: #fff;
  border: none;
  font-family: var(--serif);
  letter-spacing: 3px;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--cobalt-deep); }

/* Pagination */
.pagination { display: flex; gap: 9px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 8px 14px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 14px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }

/* Comments */
.comments-area { margin-top: 50px; }
.comments-area > h2 { font-size: 22px; letter-spacing: 3px; text-align: center; margin-bottom: 24px; }
.comment-list > li { background: #fdfefe; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.comment-list .children { margin: 14px 0 0 24px; }
.comment-meta { font-size: 13px; color: var(--gray); letter-spacing: 1px; margin-bottom: 8px; }
.comment-meta b { color: var(--cobalt); }
.comment-form p { margin-bottom: 15px; }
.comment-form label { display: block; font-size: 13.5px; letter-spacing: 2px; margin-bottom: 6px; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fdfefe;
  outline: none;
  font-family: var(--serif);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--cobalt); }

/* 404 */
.error-page { text-align: center; padding: 100px 20px; }
.error-code {
  display: inline-flex; align-items: center; justify-content: center;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 3px solid var(--cobalt);
  box-shadow: inset 0 0 0 10px var(--white), inset 0 0 0 11.5px rgba(30, 76, 154, 0.5);
  font-size: 64px; font-weight: 700;
  color: var(--cobalt);
  letter-spacing: 6px;
}
.error-page h1 { font-size: 27px; letter-spacing: 6px; margin: 26px 0 10px; }
.error-page p { color: var(--gray); margin-bottom: 30px; }
.error-page .search-form { max-width: 420px; margin: 0 auto 28px; }

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .plate-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .kiln-row { grid-template-columns: repeat(3, 1fr); gap: 28px 12px; }
  .kiln::after { display: none; }
  .pair { grid-template-columns: 1fr; }
  .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(--white);
    border-bottom: 1.5px solid var(--cobalt);
    display: none;
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 13px 24px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-nav .sub-menu { position: static; transform: none; display: block; border: none; border-radius: 0; }
  .hero { padding: 60px 0 54px; }
  .hero h1 { font-size: 33px; letter-spacing: 6px; }
  .annal { grid-template-columns: 1fr; gap: 4px; }
  .cta-qh { padding: 44px 30px; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 27px; letter-spacing: 4px; }
  .section-head h2 { font-size: 27px; letter-spacing: 4px; }
  .plate-grid { grid-template-columns: 1fr; }
  .kiln-row { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .cta-qh h2 { font-size: 25px; letter-spacing: 4px; }
}
