/*
Theme Name: PP Timeline 编年长卷
Theme URI: https://example.com/pp-timeline
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 酸洗槽厂家的编年时间轴风 WordPress 主题。米灰底配年轮橙与墨蓝,横向可滑动的里程碑长卷、年份刻度尺、节点圆点与"交付节点 D0–D5"清单,以时间线为主结构讲述工厂沿革与交付流程,适合资历深、想讲发展故事的企业。
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-timeline
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --bg: #f4f3ef;
  --bg-2: #ebe9e2;
  --card: #ffffff;
  --ink: #2f3640;
  --orange: #d2762c;
  --orange-deep: #b25f1c;
  --navy: #33506b;
  --gray: #737a84;
  --line: #ddd9d0;
  --container: 1180px;
  --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(--bg);
}
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(--ink); border-radius: 4px; background: var(--card);
  color: var(--ink); cursor: pointer; transition: background .16s ease, color .16s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-main { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-main:hover { background: var(--orange-deep); border-color: var(--orange-deep); }

/* 刻度尺分隔条 */
.tick-rule {
  height: 10px; border-bottom: 2px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 30px);
  background-size: 30px 6px; background-repeat: repeat-x; background-position: 0 100%;
  opacity: .45;
}

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

/* ===== Hero ===== */
.hero { padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.hero-span {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--navy); border-bottom: 2px solid var(--orange); padding-bottom: 8px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 4.8vw, 48px); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { margin-top: 18px; font-size: 16px; color: var(--gray); max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.hero-fig { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px 20px; }

/* ===== Sections ===== */
.section { padding: 58px 0; }
.section-tint { background: var(--bg-2); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; }
.sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sec-note { font-size: 13px; color: var(--gray); }

/* ===== Rail (横向时间轴) ===== */
.rail-wrap { overflow-x: auto; padding-bottom: 10px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 0; min-width: 100%; position: relative; padding-top: 46px;
}
.rail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 3px;
  background: var(--line);
}
.milestone { position: relative; padding: 0 22px 6px 0; }
.ms-year {
  position: absolute; top: -46px; left: 0; font-family: var(--mono);
  font-size: 17px; font-weight: 700; color: var(--navy);
}
.ms-dot {
  position: absolute; top: -30px; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--line);
}
.milestone.is-now .ms-dot { border-color: var(--orange); background: var(--orange); }
.milestone.is-now .ms-year { color: var(--orange); }
.milestone h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.milestone p { font-size: 14px; color: var(--gray); line-height: 1.85; }

/* ===== Products ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .16s ease, transform .16s ease;
}
.prod:hover { border-color: var(--orange); transform: translateY(-3px); }
.prod-fig { background: var(--bg); border-radius: 4px; padding: 10px 8px 2px; }
.prod h3 { font-size: 18px; font-weight: 700; }
.prod h3 a:hover { color: var(--orange); }
.prod p { font-size: 14px; color: var(--gray); flex: 1; line-height: 1.8; }
.prod-link { font-size: 14px; font-weight: 600; color: var(--orange); }

/* ===== Stage list ===== */
.stage-list { list-style: none; border-top: 2px solid var(--ink); }
.stage-list li {
  display: grid; grid-template-columns: 56px 130px 1fr; gap: 18px; align-items: baseline;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.st-no {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff;
  background: var(--navy); text-align: center; border-radius: 3px; padding: 2px 0;
}
.stage-list b { font-size: 16px; font-weight: 800; }
.st-txt { font-size: 14.5px; color: var(--gray); }

/* ===== Notes ===== */
.note-list { border-left: 3px solid var(--line); margin-left: 8px; }
.note-row {
  position: relative; display: grid; grid-template-columns: 110px 20px 1fr; gap: 10px;
  align-items: baseline; padding: 14px 0 14px 0; transition: padding-left .16s ease;
}
.note-row:hover { padding-left: 10px; }
.note-row time { font-family: var(--mono); font-size: 13px; color: var(--gray); text-align: right; }
.note-dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--card);
  border: 3px solid var(--orange); margin-left: -15px;
}
.note-row h3 { font-size: 16px; font-weight: 500; }
.note-row:hover h3 { color: var(--orange); }

/* ===== CTA ===== */
.cta-node {
  position: relative; margin: 56px 0; padding: 34px 34px 34px 46px; background: var(--card);
  border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 0 6px 6px 0;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta-dot {
  position: absolute; left: -11px; top: 50%; margin-top: -9px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--orange);
  border: 3px solid var(--bg);
}
.cta-year { display: block; font-family: var(--mono); font-size: 13px; color: var(--navy); letter-spacing: .1em; margin-bottom: 6px; }
.cta-node h2 { font-size: 23px; font-weight: 800; letter-spacing: -.015em; }
.cta-node p { font-size: 14px; color: var(--gray); margin-top: 6px; max-width: 42em; }
.cta-side { display: flex; align-items: center; gap: 18px; }
.cta-phone { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--orange); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--card); border-bottom: 2px solid var(--ink); padding: 34px 0; }
.page-hero h1 { font-size: 27px; font-weight: 800; letter-spacing: -.015em; }
.breadcrumbs { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--gray); }
.breadcrumbs a:hover { color: var(--orange); }

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

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 94px; }
.sidebar-cta { background: var(--navy); color: #fff; border-radius: 6px; padding: 24px 20px; text-align: center; }
.sidebar-cta h3 { font-size: 17px; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: #c3d0dd; 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: var(--orange); border-color: var(--orange); color: #fff; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.widget-title { font-size: 16px; font-weight: 800; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--line); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #4d545e; }
.widget li a:hover { color: var(--orange); }

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

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

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

/* ===== Footer ===== */
.site-footer { background: var(--card); border-top: 2px solid var(--ink); margin-top: 22px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 44px 0 32px; }
.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(--navy); 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: #4d545e; }
.footer-col a:hover { color: var(--orange); }
.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-family: var(--mono); font-size: 12px; color: var(--gray); }
.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: 32px; }
  .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) {
  .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: 4px; cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--ink); }
  .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; }
  .rail { grid-auto-columns: minmax(200px, 1fr); }
  .prod-grid { grid-template-columns: 1fr; }
  .stage-list li { grid-template-columns: 46px 1fr; }
  .stage-list b { grid-column: 2; }
  .st-txt { grid-column: 2; }
  .note-row { grid-template-columns: 84px 18px 1fr; gap: 8px; }
  .cta-node { padding: 28px 22px 28px 34px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}
