/*
Theme Name: hnshanhai
Theme URI: https://hnshanhai.com/
Author: 湖南山海重工机械有限公司 信息中心
Author URI: https://hnshanhai.com/
Description: 湖南山海重工机械有限公司企业官网主题（湖南 + 山海 + 起重与混凝土机械）。模块型（Modular）建站方案：12 列栅格、编号模块、清晰分区、工程黄强调色，适用于中国 B2B 装备制造企业官网。含首页模块、产品中心、工程案例、新闻中心、询价表单与页脚备案模块。 A modular WordPress business theme for Chinese heavy-machinery manufacturers.
Version: 1.2.0
Requires at least: 6.4
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: hnshanhai
Domain Path: /languages
Tags: business, one-column, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

:root {
  --sh-paper: #f2f0eb;
  --sh-paper-2: #e8e5dd;
  --sh-ink: #10141a;
  --sh-steel: #16232e;
  --sh-yellow: #f5b301;
  --sh-grey: #78746b;
  --sh-line: #d6d2c8;
  --sh-red: #b4472b;
  --sh-max: 1240px;
  --sh-gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sh-paper);
  color: var(--sh-ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sh-red); }
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
figure { margin: 0; }

.sh-container { width: 100%; max-width: var(--sh-max); margin: 0 auto; padding: 0 var(--sh-gut); }
.sh-num {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--sh-grey);
}
.sh-label {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
}

/* ---------- 顶部信息条 ---------- */
.sh-topbar {
  background: var(--sh-steel);
  color: #cfcbc1;
  font-size: 13px;
  border-bottom: 1px solid #243545;
}
.sh-topbar .sh-container { display: flex; justify-content: space-between; gap: 16px; min-height: 38px; align-items: center; flex-wrap: wrap; }
.sh-topbar a:hover { color: var(--sh-yellow); }

/* ---------- 页头 / 导航 ---------- */
.sh-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(242, 240, 235, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--sh-line);
}
.sh-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.sh-brand { display: flex; align-items: center; gap: 12px; }
.sh-brand__mark { width: 44px; height: 44px; flex: 0 0 44px; }
.sh-brand__name { font-weight: 900; font-size: 19px; letter-spacing: .02em; line-height: 1.1; }
.sh-brand__sub { display: block; font-family: "Oswald", sans-serif; font-size: 10px; letter-spacing: .24em; color: var(--sh-grey); text-transform: uppercase; }
.sh-nav { margin-left: auto; }
.sh-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.sh-nav a { position: relative; font-size: 15px; font-weight: 500; padding: 6px 0; display: inline-block; }
.sh-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--sh-yellow); transition: width .25s ease;
}
.sh-nav a:hover::after, .sh-nav .current-menu-item a::after, .sh-nav a[aria-current="page"]::after { width: 100%; }
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 1px solid var(--sh-ink);
  background: var(--sh-ink); color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.sh-btn:hover { background: var(--sh-yellow); border-color: var(--sh-yellow); color: var(--sh-ink); }
.sh-btn--ghost { background: transparent; color: var(--sh-ink); }
.sh-btn--ghost:hover { background: var(--sh-ink); color: #fff; border-color: var(--sh-ink); }
.sh-btn--yellow { background: var(--sh-yellow); border-color: var(--sh-yellow); color: var(--sh-ink); }
.sh-btn--yellow:hover { background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; }
.sh-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--sh-line); background: transparent; cursor: pointer; }
.sh-toggle span { display: block; width: 20px; height: 2px; background: var(--sh-ink); margin: 4px auto; }

/* ---------- 模块通用 ---------- */
.sh-module { border-top: 1px solid var(--sh-line); padding: 72px 0; }
.sh-module--dark { background: var(--sh-steel); color: #e9e6df; border-top-color: #243545; }
.sh-module--dark .sh-module__desc { color: #9fa6ab; }
.sh-module__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sh-module__title { font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin: 4px 0 0; }
.sh-module__desc { max-width: 44ch; color: var(--sh-grey); font-size: 15px; margin: 0; }
.sh-module--dark .sh-num { color: #8f979e; }
.sh-module { scroll-margin-top: 96px; }
.sh-rule { height: 4px; width: 64px; background: var(--sh-yellow); }

/* ---------- 首屏 ---------- */
.sh-hero { position: relative; background: var(--sh-steel); color: #fff; overflow: hidden; }
.sh-hero__media { position: absolute; inset: 0; }
.sh-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(28%) contrast(106%); }
.sh-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,20,26,.94) 0%, rgba(16,20,26,.78) 42%, rgba(22,35,46,.32) 100%);
}
.sh-hero__inner { position: relative; padding: 116px 0 72px; }
.sh-hero h1 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 900; letter-spacing: -.02em; max-width: 17ch; }
.sh-hero h1 em { font-style: normal; color: var(--sh-yellow); }
.sh-hero__lead { max-width: 52ch; color: #cfd3d6; font-size: 17px; }
.sh-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.sh-hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16);
  margin-top: 56px;
}
.sh-hero__facts div { background: rgba(16,20,26,.72); padding: 20px 18px; }
.sh-fact__num { font-family: "Oswald", sans-serif; font-size: 34px; font-weight: 600; color: var(--sh-yellow); line-height: 1.1; }
.sh-fact__label { font-size: 12.5px; color: #b9bec2; letter-spacing: .06em; }

/* ---------- 产品网格 ---------- */
.sh-grid { display: grid; gap: 1px; background: var(--sh-line); border: 1px solid var(--sh-line); }
.sh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sh-card { background: var(--sh-paper); padding: 0; display: flex; flex-direction: column; }
.sh-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sh-paper-2); }
.sh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; filter: grayscale(12%); }
.sh-card:hover .sh-card__media img { transform: scale(1.04); filter: grayscale(0); }
.sh-card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.sh-card__no { font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--sh-grey); }
.sh-card h3 { font-size: 20px; margin: 8px 0 6px; }
.sh-card__spec { list-style: none; margin: 10px 0 18px; padding: 0; font-size: 13.5px; color: var(--sh-grey); }
.sh-card__spec li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--sh-line); padding: 5px 0; }
.sh-card__spec b { font-family: "Oswald", sans-serif; font-weight: 500; color: var(--sh-ink); letter-spacing: .04em; }
.sh-card__link { margin-top: auto; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; border-bottom: 2px solid var(--sh-yellow); align-self: flex-start; padding-bottom: 3px; }
.sh-card__link:hover { color: var(--sh-red); }

/* ---------- 图文 / 数据 ---------- */
.sh-media { position: relative; }
.sh-media img { width: 100%; height: 100%; object-fit: cover; }
.sh-media__tag { position: absolute; left: 0; bottom: 0; background: var(--sh-yellow); color: var(--sh-ink); font-size: 12px; font-weight: 700; letter-spacing: .16em; padding: 8px 14px; }
.sh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sh-line); border: 1px solid var(--sh-line); }
.sh-stats > div { background: var(--sh-paper); padding: 26px 22px; }
.sh-stats__num { font-family: "Oswald", sans-serif; font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1; }
.sh-stats__num sup { font-size: .4em; vertical-align: super; color: var(--sh-yellow); }
.sh-stats__label { font-size: 13.5px; color: var(--sh-grey); margin-top: 8px; }

/* ---------- 表格 ---------- */
.sh-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sh-table th, .sh-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--sh-line); }
.sh-table thead th { background: var(--sh-ink); color: #f2f0eb; font-family: "Oswald", sans-serif; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; }
.sh-table tbody tr:hover { background: #fff; }
.sh-table td b { font-family: "Oswald", sans-serif; font-weight: 500; letter-spacing: .04em; }

/* ---------- 新闻 ---------- */
.sh-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sh-post { background: var(--sh-paper); border: 1px solid var(--sh-line); padding: 24px; transition: border-color .2s, transform .2s; }
.sh-post:hover { border-color: var(--sh-ink); transform: translateY(-3px); }
.sh-post__date { font-family: "Oswald", sans-serif; font-size: 13px; letter-spacing: .12em; color: var(--sh-red); }
.sh-post h3 { font-size: 17.5px; margin: 10px 0 8px; }
.sh-post p { font-size: 14px; color: var(--sh-grey); margin: 0; }

/* ---------- 资质 ---------- */
.sh-certs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--sh-line); border: 1px solid var(--sh-line); }
.sh-certs div { background: var(--sh-paper); padding: 22px 12px; text-align: center; font-size: 13px; color: var(--sh-grey); }
.sh-certs strong { display: block; font-family: "Oswald", sans-serif; font-size: 17px; color: var(--sh-ink); letter-spacing: .06em; }

/* ---------- 表单 ---------- */
.sh-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sh-field label { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-grey); margin-bottom: 6px; }
.sh-field input, .sh-field textarea, .sh-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--sh-line); background: #fff;
  font: inherit; font-size: 15px; color: var(--sh-ink); border-radius: 0;
}
.sh-field input:focus, .sh-field textarea:focus, .sh-field select:focus { outline: 2px solid var(--sh-yellow); outline-offset: 0; border-color: var(--sh-ink); }
.sh-field--full { grid-column: 1 / -1; }

/* ---------- 页脚 ---------- */
.sh-footer { background: var(--sh-ink); color: #a9aeb3; font-size: 14px; padding: 56px 0 0; }
.sh-footer h4 { color: #fff; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-family: "Oswald", sans-serif; font-weight: 500; }
.sh-footer ul { list-style: none; margin: 0; padding: 0; }
.sh-footer li { padding: 5px 0; }
.sh-footer a:hover { color: var(--sh-yellow); }
.sh-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.sh-footer__bottom { border-top: 1px solid #243545; padding: 18px 0 30px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 其他 ---------- */
.sh-breadcrumb { font-size: 13px; color: var(--sh-grey); padding: 16px 0; border-bottom: 1px solid var(--sh-line); }
.sh-breadcrumb a:hover { color: var(--sh-red); }
.sh-page-title { font-size: clamp(30px, 4vw, 48px); font-weight: 900; margin: 28px 0 10px; }
.alignwide { max-width: 1140px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.sticky, .bypostavatar { display: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: var(--sh-yellow); padding: 10px 16px; }

@media (max-width: 980px) {
  .sh-grid--3, .sh-posts, .sh-stats, .sh-hero__facts, .sh-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .sh-certs { grid-template-columns: repeat(3, 1fr); }
  .sh-nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--sh-paper); border-left: 1px solid var(--sh-line); transform: translateX(100%); transition: transform .3s ease; padding: 96px 24px 24px; margin: 0; z-index: 70; }
  .sh-nav.is-open { transform: translateX(0); }
  .sh-nav ul { flex-direction: column; gap: 4px; }
  .sh-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--sh-line); }
  .sh-toggle { display: block; margin-left: auto; }
  .sh-header__inner .sh-btn { display: none; }
}
@media (max-width: 640px) {
  .sh-module { padding: 48px 0; }
  .sh-grid--3, .sh-grid--2, .sh-posts, .sh-stats, .sh-hero__facts, .sh-form, .sh-footer__cols { grid-template-columns: 1fr; }
  .sh-certs { grid-template-columns: repeat(2, 1fr); }
  .sh-hero__inner { padding: 72px 0 56px; }
  .sh-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
