/*
Theme Name: 午晟智造
Theme URI: https://www.wusheng-zz.com
Description: 北京午晟智造建筑工程有限公司企业官网主题 —— 建筑材料研发/生产/销售与建设技术咨询全周期服务，内置产品中心、应用行业、SEO 结构化数据与响应式布局。
Author: 午晟智造 / WorkBuddy
Author URI: https://www.wusheng-zz.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wusheng
Tags: construction, corporate, responsive, accessibility-ready, custom-logo, custom-menu, featured-images, seo
*/

:root {
  --ws-primary: #0b3d63;
  --ws-primary-dark: #082c47;
  --ws-primary-light: #14629c;
  --ws-accent: #f5a623;
  --ws-accent-dark: #e08e0b;
  --ws-ink: #1c2733;
  --ws-body: #3d4a57;
  --ws-muted: #6b7785;
  --ws-line: #e3e8ee;
  --ws-bg: #ffffff;
  --ws-bg-soft: #f4f7fa;
  --ws-bg-deep: #0b3d63;
  --ws-radius: 10px;
  --ws-radius-sm: 6px;
  --ws-shadow: 0 8px 24px rgba(11, 61, 99, 0.10);
  --ws-shadow-sm: 0 2px 10px rgba(11, 61, 99, 0.08);
  --ws-max: 1200px;
  --ws-gap: 24px;
  --ws-font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ws-font);
  color: var(--ws-body);
  background: var(--ws-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ws-primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ws-accent-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--ws-ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 23px); }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ws-accent); outline-offset: 2px; border-radius: 3px; }

.container { width: 100%; max-width: var(--ws-max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ws-accent); color: #1c2733; padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #1c2733; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--ws-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark {
  width: 42px; height: 42px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-light));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; letter-spacing: 1px;
}
.brand .brand-name { font-weight: 800; color: var(--ws-ink); font-size: 18px; line-height: 1.2; }
.brand .brand-sub { font-size: 12px; color: var(--ws-muted); letter-spacing: .5px; }

.nav-primary ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: nowrap; }
.nav-primary a {
  display: inline-block; padding: 9px 11px; color: var(--ws-ink); font-weight: 600; border-radius: 8px; font-size: 14px; white-space: nowrap;
}
.nav-primary a:hover, .nav-primary .current-menu-item > a { background: var(--ws-bg-soft); color: var(--ws-primary); }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer;
  background: var(--ws-accent); color: #1c2733; transition: transform .15s, background .2s; font-size: 15px;
}
.btn:hover { background: var(--ws-accent-dark); color: #1c2733; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--ws-primary); color: var(--ws-primary); }
.btn-outline:hover { background: var(--ws-primary); color: #fff; }
.btn-light { background: #fff; color: var(--ws-primary); }
.btn-light:hover { background: var(--ws-bg-soft); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ws-ink); margin: 5px auto; transition: .25s; }

@media (min-width: 761px) {
  .nav-primary { display: flex; align-items: center; }
  .nav-primary ul { flex: 0 0 auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(20,98,156,.55), transparent),
              linear-gradient(135deg, var(--ws-primary-dark), var(--ws-primary) 60%, var(--ws-primary-light));
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
                    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 40px 40px; background-position: 0 0, 20px 20px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(56px, 9vw, 110px) 0; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.15); padding: 6px 14px; border-radius: 999px; font-size: 13px; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); max-width: 56ch; color: rgba(255,255,255,.9); }
.hero .hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.8); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section.soft { background: var(--ws-bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--ws-accent-dark); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { margin: 10px 0 12px; }
.section-head p { color: var(--ws-muted); }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: var(--ws-gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--ws-line); border-radius: var(--ws-radius);
  padding: 26px; box-shadow: var(--ws-shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ws-shadow); border-color: #cfe0ee; }
.card .ic { width: 46px; height: 46px; border-radius: 11px; background: var(--ws-bg-soft); color: var(--ws-primary); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ws-muted); font-size: 14.5px; margin: 0; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--ws-primary); font-size: 14px; }

.product-card .tag { display: inline-block; font-size: 12px; color: var(--ws-primary-light); background: var(--ws-bg-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- About ---------- */
.about-grid { align-items: center; }
.about-media {
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-light));
  border-radius: var(--ws-radius); min-height: 320px; color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: center;
}
.about-media ul { list-style: none; padding: 0; margin: 0; }
.about-media li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); display: flex; gap: 10px; align-items: center; }
.about-media li:last-child { border-bottom: 0; }
.about-media .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ws-accent); flex: 0 0 auto; }

/* ---------- Industries ---------- */
.industry-card { text-align: center; padding: 24px 16px; }
.industry-card .ic { margin: 0 auto 12px; background: var(--ws-primary); color: #fff; }
.industry-card h3 { font-size: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ws-primary-dark), var(--ws-primary-light));
  color: #fff; border-radius: var(--ws-radius); padding: clamp(32px, 5vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.88); margin: 6px 0 0; }
.cta-band .btn { background: var(--ws-accent); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ws-muted); padding: 16px 0; }
.breadcrumb a { color: var(--ws-muted); }
.breadcrumb span.sep { margin: 0 8px; }

/* ---------- Page / Single ---------- */
.page-hero { background: var(--ws-bg-soft); padding: 40px 0; border-bottom: 1px solid var(--ws-line); }
.page-hero h1 { margin: 0; }
.page-hero .sub { color: var(--ws-muted); margin-top: 6px; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose img { border-radius: var(--ws-radius-sm); margin: 18px 0; }

/* ---------- Product single ---------- */
.product-layout { grid-template-columns: 1fr 340px; align-items: start; }
.product-meta { background: var(--ws-bg-soft); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: 22px; }
.product-meta h4 { margin: 0 0 12px; }
.product-meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14.5px; }
.product-meta dt { color: var(--ws-muted); }
.product-meta dd { margin: 0; color: var(--ws-ink); font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-list a { background: #fff; border: 1px solid var(--ws-line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--ws-primary); }
.tag-list a:hover { border-color: var(--ws-primary); }

/* ---------- Archive filters ---------- */
.archive-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { background: #fff; border: 1px solid var(--ws-line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ws-ink); font-weight: 600; }
.chip.active, .chip:hover { background: var(--ws-primary); color: #fff; border-color: var(--ws-primary); }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ws-line); }
.info-list .ic { color: var(--ws-primary); font-size: 20px; flex: 0 0 auto; }
.form-card { background: #fff; border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: 28px; box-shadow: var(--ws-shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ws-ink); font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--ws-line); border-radius: 8px; font: inherit; color: var(--ws-ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ws-primary-light); outline: none; box-shadow: 0 0 0 3px rgba(20,98,156,.15); }
.form-note { font-size: 13px; color: var(--ws-muted); }
.form-success { background: #e8f6ee; border: 1px solid #b7e2c8; color: #1d6b3e; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ws-bg-deep); color: #c7d6e3; margin-top: 0; }
.site-footer a { color: #c7d6e3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 32px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid .brand-name { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: 5px 0; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; color: #93a8bb; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Misc ---------- */
.notice { background: var(--ws-bg-soft); border: 1px dashed var(--ws-line); padding: 18px; border-radius: var(--ws-radius); color: var(--ws-muted); }
.pagination { margin-top: 36px; display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--ws-line); border-radius: 8px; }
.pagination .current { background: var(--ws-primary); color: #fff; border-color: var(--ws-primary); }

/* ---------- Case (成功案例) ---------- */
.case-card { overflow: hidden; padding: 0; }
.case-card .case-thumb { margin: -26px -26px 16px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ws-bg-soft); }
.case-card .case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .tag { margin: 26px 26px 0; }
.case-card h3 { padding: 0 26px; }
.case-card p { padding: 0 26px; flex: 1; }
.case-card .more { padding: 0 26px 26px; }

.case-header .tag { display: inline-block; font-size: 12px; color: var(--ws-primary-light); background: var(--ws-bg-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.case-header h1 { margin: 0 0 18px; }
.case-hero-img { margin: 24px 0; border-radius: var(--ws-radius); overflow: hidden; }
.case-layout { align-items: start; }
.case-body { grid-column: span 2; }
.case-meta { grid-column: span 1; }
.related-block { margin-top: 56px; }
.related-block h3 { margin-bottom: 20px; }
@media (max-width: 980px) {
	.case-body, .case-meta { grid-column: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-primary {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ws-line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-primary.open { max-height: 70vh; overflow-y: auto; }
  .nav-primary ul { flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; }
  .nav-primary a { display: block; padding: 13px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
