/*
Theme Name: PP GoldCrown 金冠商务
Theme URI: https://example.com/pp-goldcrown
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-goldcrown
Tags: dark, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --navy: #0f1a30;
  --navy-2: #15223c;
  --navy-3: #1b2a49;
  --gold: #c9a962;
  --gold-hi: #e6cf95;
  --text: #e9e6dd;
  --dim: #93a0b8;
  --line: rgba(201, 169, 98, 0.28);
  --line-dim: rgba(147, 160, 184, 0.16);
  --container: 1140px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, "Times New Roman", 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(--sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--navy);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: #f5f2ea; line-height: 1.35; font-weight: 600; }
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(201, 169, 98, 0.4); }

/* Gold ornament */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); font-size: 13px; }
.orn::before, .orn::after { content: ""; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 42px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 3px;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: all 0.28s ease;
}
.btn-gold { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-hi) 100%); color: #1a2233; }
.btn-gold:hover { background: var(--gold-hi); color: #101828; box-shadow: 0 8px 26px rgba(201, 169, 98, 0.35); }
.btn-outline { background: transparent; color: var(--gold-hi); }
.btn-outline:hover { background: rgba(201, 169, 98, 0.12); color: #fff; }

/* ===== Header (double deck, centered) ===== */
.site-header { background: var(--navy); border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line); position: relative; z-index: 100; }
.header-top { text-align: center; padding: 26px 20px 18px; }
.site-branding { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.site-branding .custom-logo { max-height: 56px; width: auto; }
.brand-mark {
  width: 54px; height: 54px;
  border: 1px solid var(--gold);
  color: var(--gold-hi);
  font-family: var(--serif);
  font-size: 20px; 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(201, 169, 98, 0.4); }
.site-title { font-family: var(--serif); font-size: 27px; letter-spacing: 6px; }
.site-title a { color: #f5f2ea; }
.site-title a:hover { color: var(--gold-hi); }
.site-desc { font-size: 11px; color: var(--dim); letter-spacing: 4px; text-transform: uppercase; }

.header-nav { border-top: 1px solid var(--line-dim); position: relative; }
.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: 1px solid var(--line);
  margin: 8px auto;
}
.nav-toggle-label span { display: block; height: 1px; background: var(--gold); }
.site-nav ul { display: flex; justify-content: center; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 16px 28px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 2px;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 10px;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.site-nav a:hover { color: var(--gold-hi); }
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { width: 34px; }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  display: none;
  z-index: 99;
}
.site-nav li:hover > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 12px 20px; font-size: 14px; border-bottom: 1px solid var(--line-dim); text-align: center; }
.site-nav .sub-menu a::after { display: none; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 104px 20px 96px;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(201, 169, 98, 0.10) 0%, transparent 65%),
    var(--navy);
  border-bottom: 1px solid var(--line-dim);
  position: relative;
}
.hero .orn { margin-bottom: 26px; }
.hero-est { font-size: 12.5px; letter-spacing: 6px; color: var(--gold); text-transform: uppercase; }
.hero h1 { font-size: 52px; letter-spacing: 6px; margin: 22px auto 20px; max-width: 860px; line-height: 1.3; }
.hero h1 b { color: var(--gold-hi); font-weight: 600; }
.hero-sub { max-width: 620px; margin: 0 auto 42px; color: var(--dim); font-size: 16px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-foot { margin-top: 66px; display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.hero-foot li { font-size: 13px; color: var(--dim); letter-spacing: 2px; }
.hero-foot li b { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold-hi); letter-spacing: 1px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-deep { background: var(--navy-2); border-top: 1px solid var(--line-dim); border-bottom: 1px solid var(--line-dim); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head .orn { margin-bottom: 18px; }
.sec-en { font-size: 12px; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; }
.section-head h2 { font-size: 38px; letter-spacing: 4px; margin-top: 10px; }
.section-head p { color: var(--dim); font-size: 15px; margin-top: 14px; }

/* ===== Products (2-col stately cards) ===== */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.p-card {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--navy-3) 0%, var(--navy-2) 100%);
  padding: 44px 42px;
  position: relative;
  transition: all 0.3s ease;
}
.p-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201, 169, 98, 0.14); pointer-events: none; transition: border-color 0.3s ease; }
.p-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); border-color: var(--gold); }
.p-card:hover::before { border-color: rgba(201, 169, 98, 0.4); }
.p-num { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: 4px; }
.p-card h3 { font-size: 25px; letter-spacing: 3px; margin: 12px 0 14px; }
.p-card h3 a { color: #f5f2ea; }
.p-card h3 a:hover { color: var(--gold-hi); }
.p-card p { font-size: 14.5px; color: var(--dim); margin-bottom: 22px; }
.p-card svg { width: 190px; height: auto; margin-bottom: 18px; }
.p-link { font-size: 13px; letter-spacing: 3px; color: var(--gold-hi); border-bottom: 1px solid var(--line); padding-bottom: 4px; }

/* ===== Pillars ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.pillar { padding: 48px 40px; text-align: center; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: none; }
.pillar-ico { font-family: var(--serif); font-size: 30px; color: var(--gold); margin-bottom: 16px; }
.pillar h3 { font-size: 21px; letter-spacing: 3px; margin-bottom: 12px; }
.pillar p { font-size: 14px; color: var(--dim); }

/* ===== Timeline ===== */
.gc-timeline { position: relative; max-width: 720px; margin: 0 auto; }
.gc-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
.tl-row { position: relative; width: 50%; padding: 0 44px 52px 0; text-align: right; }
.tl-row:nth-child(even) { margin-left: 50%; padding: 0 0 52px 44px; text-align: left; }
.tl-row::after {
  content: "";
  position: absolute; top: 8px; right: -5.5px;
  width: 11px; height: 11px;
  background: var(--navy);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.tl-row:nth-child(even)::after { right: auto; left: -5.5px; }
.tl-year { font-family: var(--serif); font-size: 26px; color: var(--gold-hi); letter-spacing: 2px; }
.tl-row h3 { font-size: 18px; letter-spacing: 2px; margin: 6px 0 6px; }
.tl-row p { font-size: 13.5px; color: var(--dim); }

/* ===== Global ===== */
.globe-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.globe-tag {
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 2px;
  padding: 10px 26px;
  transition: all 0.25s ease;
}
.globe-tag:hover { border-color: var(--gold); color: var(--gold-hi); }
.globe-note { text-align: center; margin-top: 30px; color: var(--dim); font-size: 14px; }
.globe-note b { color: var(--gold-hi); font-family: var(--serif); font-size: 19px; }

/* ===== News (elegant list) ===== */
.news-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 30px;
  align-items: baseline;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line-dim);
  color: inherit;
  transition: background 0.2s ease;
}
.news-item:hover { background: rgba(201, 169, 98, 0.05); }
.news-item time { font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: 1px; }
.news-item h3 { font-size: 18.5px; letter-spacing: 1px; font-weight: 600; }
.news-item .arrow { color: var(--gold); font-size: 18px; }

/* ===== CTA ===== */
.cta-crown {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-hi) 100%);
  color: #1a2233;
  text-align: center;
  padding: 84px 20px;
}
.cta-crown h2 { color: #17202f; font-size: 36px; letter-spacing: 5px; margin-bottom: 14px; }
.cta-crown p { max-width: 560px; margin: 0 auto 36px; font-size: 15px; color: #3b4356; }
.cta-crown .cta-phone { font-family: var(--serif); font-size: 30px; letter-spacing: 3px; color: #17202f; display: block; margin-bottom: 26px; }
.btn-navy { background: var(--navy); color: var(--gold-hi); border-color: var(--navy); }
.btn-navy:hover { background: #182540; color: #fff; }

/* ===== Footer ===== */
.site-footer { background: #0b1425; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; padding: 64px 0 50px; }
.footer-col h3 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--dim); }
.footer-col a:hover { color: var(--gold-hi); }
.footer-col p { margin-bottom: 10px; }
.footer-brand { font-family: var(--serif); font-size: 22px; letter-spacing: 5px; color: #f5f2ea; margin-bottom: 14px; }
.footer-contact li b { color: var(--text); margin-right: 8px; }
.footer-bottom { border-top: 1px solid var(--line-dim); padding: 20px 0; font-size: 12.5px; letter-spacing: 1px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Inner pages ===== */
.page-hero { text-align: center; padding: 66px 0 56px; border-bottom: 1px solid var(--line-dim); background: radial-gradient(600px 240px at 50% 0%, rgba(201, 169, 98, 0.09) 0%, transparent 65%); }
.page-hero .orn { margin-bottom: 16px; }
.page-hero h1 { font-size: 36px; letter-spacing: 5px; }
.breadcrumbs { margin-top: 12px; font-size: 12.5px; letter-spacing: 2px; color: var(--dim); }
.breadcrumbs a { color: var(--gold-hi); }

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

.entry-card {
  border: 1px solid var(--line-dim);
  background: var(--navy-2);
  padding: 32px 36px;
  margin-bottom: 26px;
  transition: border-color 0.25s ease;
}
.entry-card:hover { border-color: var(--gold); }
.entry-card h2 { font-size: 23px; letter-spacing: 2px; margin-bottom: 10px; }
.entry-card h2 a { color: #f5f2ea; }
.entry-card h2 a:hover { color: var(--gold-hi); }
.entry-meta { font-size: 12.5px; color: var(--dim); letter-spacing: 2px; margin-bottom: 12px; }
.entry-meta span { margin-right: 18px; }
.entry-excerpt { color: var(--dim); font-size: 14.5px; }
.entry-thumb { margin-bottom: 18px; border: 1px solid var(--line-dim); }

.entry-content { font-size: 16px; color: #d7d4ca; }
.entry-content h2, .entry-content h3 { margin: 1.7em 0 0.7em; letter-spacing: 2px; }
.entry-content h2 { font-size: 26px; text-align: center; }
.entry-content h2::after { content: ""; display: block; width: 46px; height: 1px; background: var(--gold); margin: 14px auto 0; }
.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.6em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  border: 1px solid var(--line);
  padding: 22px 30px;
  margin: 1.5em 0;
  font-family: var(--serif);
  color: var(--gold-hi);
  text-align: center;
  letter-spacing: 1px;
}
.entry-content table th, .entry-content table td { border: 1px solid var(--line-dim); padding: 10px 14px; }
.entry-content table th { background: var(--navy-3); color: var(--gold-hi); }
.entry-content a { text-decoration: underline; }
.single-header { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.single-header h1 { font-size: 30px; letter-spacing: 3px; margin-bottom: 10px; }
.post-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line-dim); font-size: 13.5px; letter-spacing: 1px; }

/* Sidebar */
.sidebar .widget { border: 1px solid var(--line-dim); background: var(--navy-2); padding: 28px; margin-bottom: 26px; }
.sidebar .widget-title, .sidebar .widget h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dim);
}
.sidebar .widget ul li { padding: 9px 0; border-bottom: 1px solid var(--line-dim); font-size: 14px; }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar-cta {
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  padding: 32px 28px;
  margin-bottom: 26px;
  text-align: center;
  position: relative;
}
.sidebar-cta::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201, 169, 98, 0.25); pointer-events: none; }
.sidebar-cta h3 { font-size: 19px; letter-spacing: 3px; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.sidebar-cta strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-hi); letter-spacing: 2px; margin-bottom: 18px; }

/* Search form */
.search-form { display: flex; border: 1px solid var(--line); }
.search-form .search-field { flex: 1; min-width: 0; padding: 12px 16px; border: none; outline: none; background: rgba(11, 20, 37, 0.6); color: var(--text); letter-spacing: 1px; }
.search-form .search-submit {
  padding: 12px 22px;
  background: linear-gradient(120deg, var(--gold), var(--gold-hi));
  color: #1a2233;
  border: none;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
}

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 9px 14px;
  text-align: center;
  border: 1px solid var(--line-dim);
  color: var(--text);
  font-size: 13.5px;
  letter-spacing: 1px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(201, 169, 98, 0.08); }

/* Comments */
.comments-area { margin-top: 50px; }
.comments-area > h2 { font-size: 23px; letter-spacing: 2px; text-align: center; margin-bottom: 26px; }
.comment-list > li { border: 1px solid var(--line-dim); background: var(--navy-2); padding: 20px; margin-bottom: 16px; }
.comment-list .children { margin: 16px 0 0 24px; }
.comment-list .children > li { border: 1px dashed var(--line-dim); padding: 16px; margin-bottom: 12px; }
.comment-meta { font-size: 12.5px; color: var(--dim); letter-spacing: 1px; margin-bottom: 8px; }
.comment-meta b { color: var(--gold-hi); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); 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 14px;
  background: rgba(11, 20, 37, 0.6);
  border: 1px solid var(--line-dim);
  color: var(--text);
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); }

/* 404 */
.error-page { text-align: center; padding: 110px 20px; }
.error-code { font-family: var(--serif); font-size: 110px; line-height: 1; color: var(--gold-hi); letter-spacing: 10px; }
.error-page h1 { font-size: 27px; letter-spacing: 4px; margin: 20px 0 12px; }
.error-page p { color: var(--dim); margin-bottom: 32px; }
.error-page .search-form { max-width: 420px; margin: 0 auto 30px; }

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }
  .site-nav { display: none; border-top: 1px solid var(--line-dim); }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { text-align: center; padding: 13px 20px; border-bottom: 1px solid var(--line-dim); }
  .site-nav a::after { display: none; }
  .site-nav .sub-menu { position: static; transform: none; display: block; border: none; background: var(--navy-3); }
  .hero { padding: 70px 20px 64px; }
  .hero h1 { font-size: 36px; letter-spacing: 3px; }
  .hero-foot { gap: 34px; }
  .gc-timeline::before { left: 8px; }
  .tl-row, .tl-row:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 40px 36px; text-align: left; }
  .tl-row::after, .tl-row:nth-child(even)::after { right: auto; left: 2.5px; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .news-item .arrow { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 66px 0; }
  .section-head h2 { font-size: 28px; letter-spacing: 2px; }
  .hero h1 { font-size: 29px; }
  .cta-crown h2 { font-size: 27px; letter-spacing: 2px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .p-card { padding: 32px 26px; }
}
