/*
Theme Name: PP Washi 和风素纸
Theme URI: https://example.com/pp-washi
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-washi
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --washi: #f7f3ea;
  --washi-2: #f1ece0;
  --paper: #fdfbf6;
  --sumi: #4a453d;
  --sumi-deep: #2f2b25;
  --shu: #b23a2f;
  --gray: #8a8377;
  --line: #ddd6c8;
  --container: 1080px;
  --font: "PingFang SC", "Hiragino Sans", "Microsoft YaHei", serif;
  --serif: "Songti SC", "Hiragino Mincho ProN", Georgia, serif;
  --container-narrow: 860px;
}

/* ===== 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: 2;
  color: var(--sumi);
  background: var(--washi);
  background-image:
    radial-gradient(circle at 25% 15%, rgba(178,58,47,.02), transparent 40%),
    radial-gradient(circle at 78% 72%, rgba(74,69,61,.025), transparent 45%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; height: auto; }
.container { width: min(100% - 44px, 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 30px; font-size: 15px; font-weight: 500;
  letter-spacing: .08em; border: 1px solid var(--sumi); background: transparent;
  color: var(--sumi); cursor: pointer; transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--sumi); color: var(--washi); }
.btn-main { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn-main:hover { background: var(--sumi-deep); border-color: var(--sumi-deep); color: var(--washi); }

/* ===== Header ===== */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 18px 0; }
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--shu); color: var(--washi); font-family: var(--serif); font-size: 20px;
}
.site-title { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .06em; line-height: 1.4; }
.site-desc { font-size: 11px; color: var(--gray); letter-spacing: .18em; }
.site-nav .menu { display: flex; gap: 30px; list-style: none; }
.site-nav a { font-size: 15px; letter-spacing: .06em; padding: 4px 0; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--shu); transform: scaleX(0); transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero { padding: 90px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1fr .85fr; gap: 60px; align-items: center; }
.hero-vert {
  display: inline-block; writing-mode: vertical-rl; font-family: var(--serif);
  font-size: 14px; letter-spacing: .35em; color: var(--gray);
  border-right: 1px solid var(--line); padding-right: 14px; margin-bottom: 22px; height: 88px;
}
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5.4vw, 58px); line-height: 1.4; font-weight: 600; letter-spacing: .06em; }
.hero h1 em { font-style: normal; color: var(--shu); }
.hero-sub { margin-top: 26px; font-size: 15px; color: var(--gray); max-width: 24em; line-height: 2.1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-fig { padding: 20px; }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-tint { background: var(--washi-2); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-kanji {
  display: block; font-family: var(--serif); font-size: 15px; color: var(--shu);
  letter-spacing: .2em; margin-bottom: 10px;
}
.sec-head h2 {
  font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .12em;
  display: inline-block; padding-bottom: 12px; position: relative;
}
.sec-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 34px; height: 1px; background: var(--shu);
}

/* ===== Products ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.prod { display: flex; flex-direction: column; gap: 12px; }
.prod-fig { background: var(--paper); border: 1px solid var(--line); padding: 16px 12px 8px; }
.prod:hover .prod-fig { border-color: var(--shu); }
.prod h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .06em; }
.prod h3 a:hover { color: var(--shu); }
.prod p { font-size: 14px; color: var(--gray); flex: 1; line-height: 2; }
.prod-link { font-size: 13px; letter-spacing: .06em; color: var(--shu); }

/* ===== Vows ===== */
.vow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.vow { text-align: center; }
.vow-num {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 16px;
  border: 1px solid var(--shu); border-radius: 50%; color: var(--shu);
  font-family: var(--serif); font-size: 17px;
}
.vow h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .1em; margin-bottom: 10px; }
.vow p { font-size: 14px; color: var(--gray); line-height: 2.05; text-align: left; }

/* ===== Steps ===== */
.step-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.step { text-align: center; }
.step b {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px;
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--sumi);
}
.step:hover b { border-color: var(--shu); color: var(--shu); }
.step p { font-size: 13px; color: var(--gray); letter-spacing: .04em; }

/* ===== Notes ===== */
.note-list { max-width: var(--container-narrow); margin-inline: auto; }
.note-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: baseline;
  padding: 18px 4px; border-bottom: 1px solid var(--line); transition: padding-left .2s ease;
}
.note-row:hover { padding-left: 12px; }
.note-row time { font-size: 13px; color: var(--gray); letter-spacing: .06em; }
.note-row h3 { font-size: 16px; font-weight: 500; letter-spacing: .03em; }
.note-row:hover h3 { color: var(--shu); }

/* ===== CTA ===== */
.cta-paper {
  margin: 70px 0; padding: 44px 40px; background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
  position: relative;
}
.cta-seal {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  background: var(--shu); color: var(--washi); font-family: var(--serif); font-size: 22px;
}
.cta-paper h2 { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .08em; }
.cta-paper p { font-size: 14px; color: var(--gray); margin-top: 8px; max-width: 40em; }
.cta-side { display: flex; align-items: center; gap: 20px; }
.cta-phone { font-family: var(--serif); font-size: 21px; letter-spacing: .04em; color: var(--shu); }

/* ===== Page hero / inner ===== */
.page-hero { padding: 56px 0 34px; border-bottom: 1px solid var(--line); text-align: center; }
.page-hero h1 { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .1em; }
.breadcrumbs { margin-top: 10px; font-size: 12px; color: var(--gray); letter-spacing: .08em; }
.breadcrumbs a:hover { color: var(--shu); }

.layout { display: grid; grid-template-columns: 1fr 260px; gap: 46px; padding: 52px 0 76px; align-items: start; }
.layout-full { padding: 52px 0 76px; max-width: var(--container-narrow); margin-inline: auto; }
.entry-card { padding: 26px 0; border-bottom: 1px solid var(--line); }
.entry-card h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .05em; margin-bottom: 8px; }
.entry-card h2 a:hover { color: var(--shu); }
.entry-meta { display: flex; gap: 16px; font-size: 12px; color: var(--gray); letter-spacing: .06em; }
.entry-meta a { color: var(--shu); }
.entry-excerpt { margin-top: 10px; font-size: 15px; color: var(--gray); line-height: 2; }
.entry-thumb { margin-bottom: 18px; border: 1px solid var(--line); }
.single-header { padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); text-align: center; }
.single-header h1 { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .06em; margin-bottom: 10px; }
.single-header .entry-meta { justify-content: center; }
.entry-content { font-size: 16px; line-height: 2.1; }
.entry-content > * + * { margin-top: 20px; }
.entry-content h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.entry-content h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content blockquote { border-left: 2px solid var(--shu); padding-left: 20px; color: var(--gray); }
.entry-content code { font-family: Menlo, Consolas, monospace; background: var(--washi-2); padding: 2px 6px; }
.entry-content a { color: var(--shu); border-bottom: 1px solid var(--line); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.post-nav a:hover { color: var(--shu); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; justify-content: center; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--paper); font-size: 14px;
}
.pagination .current, .pagination .page-numbers:hover { background: var(--shu); color: #fff; border-color: var(--shu); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 100px; }
.sidebar-cta { background: var(--paper); border: 1px solid var(--line); padding: 24px 20px; text-align: center; }
.sidebar-cta h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.sidebar-cta p { font-size: 13px; color: var(--gray); margin: 10px 0 14px; }
.sidebar-cta strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--shu); margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; }
.widget-title { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .1em; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.widget li a { font-size: 14px; color: var(--gray); }
.widget li a:hover { color: var(--shu); }

.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); font-family: inherit; font-size: 14px; }
.search-field:focus { outline: none; border-color: var(--shu); }
.search-submit { padding: 10px 18px; border: 1px solid var(--sumi); background: var(--sumi); color: var(--washi); cursor: pointer; letter-spacing: .08em; }
.search-submit:hover { background: var(--shu); border-color: var(--shu); }

/* ===== Comments ===== */
.comments-area { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments-area h2, .comment-reply-title { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .08em; margin-bottom: 18px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.comment-list .comment-body { border-left: 1px solid var(--line); padding-left: 18px; font-size: 15px; }
.comment-notes { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13px; letter-spacing: .06em; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: var(--paper); font-family: inherit; font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--shu); }
.comment-form .submit { padding: 12px 32px; border: 1px solid var(--shu); background: var(--shu); color: #fff; cursor: pointer; letter-spacing: .08em; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 100px 0; }
.error-code { font-family: var(--serif); font-size: 84px; color: var(--shu); line-height: 1; letter-spacing: .04em; }
.error-page h1 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .1em; margin: 14px 0 10px; }
.error-page p { color: var(--gray); margin-bottom: 22px; }
.error-page .search-form { max-width: 400px; margin: 0 auto 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); margin-top: 30px; }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand strong { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.footer-col p { font-size: 14px; color: var(--gray); line-height: 2; }
.footer-col h3 { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--sumi); margin-bottom: 16px; }
.footer-col ul, .footer-menu { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--gray); }
.footer-col a:hover { color: var(--shu); }
.footer-contact li { font-size: 14px; display: flex; gap: 10px; color: var(--gray); }
.footer-contact b { color: var(--sumi); font-weight: 500; min-width: 34px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 12px; color: var(--gray); letter-spacing: .06em; }
.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; gap: 36px; }
  .hero-vert { writing-mode: horizontal-tb; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; height: auto; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .vow-grid { grid-template-columns: repeat(2, 1fr); }
  .step-row { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 780px) {
  .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); cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 1px; background: var(--sumi); }
  .site-nav { display: none; order: 10; width: 100%; padding-top: 14px; margin-top: 14px; 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; }
  .hero { padding: 56px 0 48px; }
  .prod-grid, .vow-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: repeat(2, 1fr); }
  .note-row { grid-template-columns: 1fr; gap: 4px; }
  .cta-paper { padding: 32px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
}
