/*
Theme Name: PP Nautical 航海图
Theme URI: https://example.com/pp-nautical
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-nautical
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --chart: #f3ead6;
  --chart-2: #ece0c6;
  --paper: #faf5e9;
  --navy: #0f3557;
  --navy-2: #0a2740;
  --brass: #c08a3e;
  --brass-lit: #d9a860;
  --ink: #1c3348;
  --gray: #6c7c8a;
  --line: #d6c9ab;
  --container: 1140px;
  --font: "PingFang SC", "Microsoft YaHei", Georgia, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --grid: linear-gradient(rgba(15,53,87,.055) 1px, transparent 1px),
          linear-gradient(90deg, rgba(15,53,87,.055) 1px, transparent 1px);
}

/* ===== 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(--chart);
  background-image: var(--grid);
  background-size: 26px 26px;
}
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(--navy); background: transparent; color: var(--navy);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--navy); color: var(--chart); }
.btn-main { background: var(--navy); color: var(--chart); }
.btn-main:hover { background: var(--brass); border-color: var(--brass); color: var(--navy-2); }

/* ===== Topbar ===== */
.topbar { background: var(--navy-2); color: #c3d2dd; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.tb-tel { font-family: var(--mono); color: var(--brass-lit); font-weight: 600; }

/* ===== Header ===== */
.site-header { background: var(--paper); border-bottom: 2px solid var(--navy); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 15px 0; }
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--brass); background: var(--navy); color: var(--brass-lit); font-size: 21px;
}
.site-title { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: .01em; }
.site-desc { font-family: var(--mono); font-size: 11px; color: var(--gray); letter-spacing: .1em; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; }
.site-nav a { font-size: 15px; font-weight: 500; padding: 5px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--navy); border-bottom-color: var(--brass); }
.nav-toggle-input, .nav-toggle-label { display: none; }

/* ===== Hero ===== */
.hero { padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-coord {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--gray); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 20px;
}
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); line-height: 1.22; font-weight: 700; }
.hero h1 em {
  font-style: normal; color: var(--brass);
  border-bottom: 3px double var(--brass);
}
.hero-sub { margin-top: 20px; font-size: 16px; color: #46596a; max-width: 28em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.chart-frame {
  background: var(--paper); border: 2px solid var(--navy); padding: 24px 20px;
  box-shadow: 6px 6px 0 rgba(15,53,87,.12);
}
.chart-legend { display: flex; gap: 20px; justify-content: center; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--gray); }

/* ===== Depth bar ===== */
.depthbar { background: var(--navy); color: var(--chart); }
.depthbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.depth { padding: 24px 14px; text-align: center; border-right: 1px solid rgba(255,255,255,.14); }
.depth:last-child { border-right: 0; }
.depth b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--brass-lit); line-height: 1.15; }
.depth b i { font-style: normal; font-size: 15px; }
.depth span { font-size: 13px; color: #b9cad7; }

/* ===== Sections ===== */
.section { padding: 62px 0; }
.section-deep { background: var(--navy); color: #d9e3ea; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.sec-mark {
  display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--brass); color: var(--brass); font-family: var(--serif); font-weight: 700; font-size: 15px;
}
.sec-head h2 { font-family: var(--serif); font-size: 27px; font-weight: 700; }
.sec-en { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--gray); }
.sec-head-light { border-bottom-color: rgba(255,255,255,.2); }
.sec-head-light h2 { color: var(--chart); }
.sec-head-light .sec-en { color: #94a9b8; }

/* ===== Products ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod {
  background: var(--paper); border: 1.5px solid var(--line); padding: 16px 20px 22px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .16s ease, box-shadow .16s ease;
}
.prod:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 rgba(15,53,87,.16); border-color: var(--navy); }
.prod-chart { position: relative; background: var(--chart-2); padding: 10px 8px 4px; }
.prod-flag {
  position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 10px;
  background: var(--navy); color: var(--chart); padding: 2px 8px;
}
.prod h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.prod h3 a:hover { color: var(--brass); }
.prod p { font-size: 14px; color: var(--gray); flex: 1; line-height: 1.75; }
.prod-link { font-size: 14px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--brass); align-self: flex-start; }

/* ===== Reefs ===== */
.reef-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reef { border: 1px solid rgba(255,255,255,.22); border-top: 3px solid var(--brass); padding: 22px 20px; background: rgba(255,255,255,.04); }
.reef h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--brass-lit); margin-bottom: 8px; }
.reef p { font-size: 14px; color: #b8c8d4; line-height: 1.8; }

/* ===== Voyage ===== */
.voyage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.voyage::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 10px, transparent 10px 20px); opacity: .5;
}
.voy { text-align: center; position: relative; }
.voy b {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--navy);
  font-family: var(--serif); font-size: 15px; font-weight: 700; position: relative; z-index: 2;
}
.voy p { font-size: 14px; color: var(--gray); }

/* ===== Log ===== */
.log-list { background: var(--paper); border: 1.5px solid var(--line); }
.log-row {
  display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px dashed var(--line); transition: background .15s ease;
}
.log-row:last-child { border-bottom: 0; }
.log-row:hover { background: var(--chart-2); }
.log-row time { font-family: var(--mono); font-size: 13px; color: var(--gray); }
.log-row h3 { font-size: 16px; font-weight: 500; }
.log-row:hover h3 { color: var(--navy); }
.log-anchor { color: var(--brass); text-align: right; }

/* ===== CTA ===== */
.cta-chart {
  margin: 56px 0; padding: 32px 34px; background: var(--paper);
  border: 2px solid var(--navy); box-shadow: 8px 8px 0 rgba(15,53,87,.14);
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
}
.cta-rose {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy); color: var(--brass-lit); font-size: 26px; flex: none;
}
.cta-chart h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.cta-chart 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: 700; color: var(--navy); }

/* ===== Page hero / inner ===== */
.page-hero { background: var(--navy); color: var(--chart); padding: 38px 0; }
.page-hero h1 { font-family: var(--serif); font-size: 29px; font-weight: 700; }
.breadcrumbs { margin-top: 8px; font-size: 13px; color: #a9bccb; }
.breadcrumbs a { color: var(--brass-lit); }

.layout { display: grid; grid-template-columns: 1fr 290px; gap: 34px; padding: 44px 0 64px; align-items: start; }
.layout-full { padding: 44px 0 64px; }
.entry-card { background: var(--paper); border: 1.5px solid var(--line); padding: 24px; margin-bottom: 18px; }
.entry-card:hover { border-color: var(--navy); }
.entry-card h2 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.entry-card h2 a:hover { color: var(--brass); }
.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: #46596a; }
.entry-thumb { margin-bottom: 16px; border: 1px solid var(--line); }
.single-header { border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 22px; }
.single-header h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.entry-content { background: var(--paper); border: 1.5px solid var(--line); padding: 26px; font-size: 16px; }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); }
.entry-content h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content blockquote { border-left: 4px solid var(--brass); background: var(--chart-2); padding: 14px 18px; color: #46596a; }
.entry-content code { font-family: var(--mono); background: var(--chart-2); padding: 2px 6px; }
.entry-content a { color: var(--navy); text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 14px; }
.post-nav a:hover { color: var(--brass); }
.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: 1.5px solid var(--line); background: var(--paper); font-family: var(--mono);
}
.pagination .current, .pagination .page-numbers:hover { background: var(--navy); color: var(--chart); border-color: var(--navy); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.sidebar-cta { background: var(--navy); color: var(--chart); padding: 22px 20px; text-align: center; border: 2px solid var(--brass); }
.sidebar-cta h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: #b6c8d5; margin: 8px 0 12px; }
.sidebar-cta strong { display: block; font-family: var(--mono); font-size: 21px; color: var(--brass-lit); margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; background: var(--brass); border-color: var(--brass); color: var(--navy-2); }
.widget { background: var(--paper); border: 1.5px solid var(--line); padding: 20px; }
.widget-title { font-family: var(--serif); font-size: 17px; font-weight: 700; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--navy); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.widget li a { font-size: 14px; color: #46596a; }
.widget li a:hover { color: var(--brass); }

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

/* ===== Comments ===== */
.comments-area { margin-top: 28px; background: var(--paper); border: 1.5px solid var(--line); padding: 24px; }
.comments-area h2, .comment-reply-title { font-family: var(--serif); font-size: 19px; font-weight: 700; 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: 14px; 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: 1.5px solid var(--line); background: var(--chart); font-family: inherit; font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--navy); }
.comment-form .submit { padding: 12px 26px; border: 1.5px solid var(--navy); background: var(--navy); color: var(--chart); font-weight: 700; cursor: pointer; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 80px 0; }
.error-code { font-family: var(--serif); font-size: 92px; font-weight: 700; color: var(--navy); line-height: 1; }
.error-page h1 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 10px 0 8px; }
.error-page p { color: var(--gray); margin-bottom: 18px; }
.error-page .search-form { max-width: 420px; margin: 0 auto 18px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-2); color: #b3c4d1; margin-top: 20px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 48px 0 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand strong { font-family: var(--serif); font-size: 18px; color: var(--chart); }
.footer-col p { font-size: 14px; }
.footer-col h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--brass-lit); margin-bottom: 14px; }
.footer-col ul, .footer-menu { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--brass-lit); }
.footer-contact li { font-size: 14px; display: flex; gap: 8px; }
.footer-contact b { color: var(--chart); font-weight: 600; min-width: 34px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 15px 0; font-size: 13px; }
.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; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .reef-grid { grid-template-columns: repeat(2, 1fr); }
  .voyage { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .voyage::before { content: none; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 780px) {
  .topbar-inner { flex-direction: column; gap: 2px; text-align: center; }
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 8px; border: 1.5px solid var(--navy); cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--navy); }
  .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; }
  .depthbar-inner { grid-template-columns: repeat(2, 1fr); }
  .depth:nth-child(2) { border-right: 0; }
  .prod-grid, .reef-grid, .voyage { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 1fr; gap: 4px; }
  .log-anchor { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .sec-en { display: none; }
}
