/*
Theme Name: DNT Corporate
Theme URI: https://hndnts.top
Author: 河南迪恩特电气技术有限公司
Description: 河南迪恩特电气技术有限公司企业官网主题（中英双语）
Version: 2.2.0
Text Domain: dnt-corporate
*/

:root {
  --ink: #101418;
  --ink-2: #3c4550;
  --muted: #6c7581;
  --faint: #717a86;
  --line: #e4e7eb;
  --line-2: #cfd4da;
  --paper: #ffffff;
  --wash: #f6f7f8;
  --accent: #12448a;
  --accent-2: #0e3569;
  --radius: 3px;
  --shell: 1180px;
  --gut: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.dnt-shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; }
.brand > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand strong { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.brand span span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.main-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; display: block; padding: 6px 0; font-size: 15px; color: var(--ink-2); transition: color .18s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--ink); }
.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--ink);
}

.lang-switch {
  flex: 0 0 auto;
  font-size: 13px; color: var(--ink-2); padding: 6px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s ease, color .18s ease;
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }

.header-cta {
  font-size: 14px; font-weight: 500; color: #fff; background: var(--ink);
  padding: 11px 20px; border-radius: var(--radius); transition: background .18s ease;
}
.header-cta:hover { background: #2b323b; }

.menu-toggle {
  display: none; flex: 0 0 auto; width: 40px; height: 40px; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; color: var(--ink); background: none;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}

/* ---------- Section scaffolding ---------- */
.site-main { display: block; }
.dnt-section { padding: 104px 0; }
.dnt-section.alt { background: var(--wash); }
.dnt-section + .dnt-section:not(.alt) { padding-top: 0; }
.dnt-section.alt + .dnt-section:not(.alt) { padding-top: 104px; }

.dnt-kicker {
  display: block; margin-bottom: 18px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.dnt-kicker::before { content: none; }
.dnt-title { margin: 0; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.22; }
.dnt-lead { margin: 18px 0 0; max-width: 620px; color: var(--muted); font-size: 17px; }
.dnt-section-head { margin-bottom: 54px; }
.dnt-section-head.center { text-align: center; }
.dnt-section-head.center .dnt-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.dnt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.dnt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-size: 15px; font-weight: 500; line-height: 1;
  color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.dnt-btn:hover { background: #2b323b; border-color: #2b323b; }
.dnt-btn.ghost { color: var(--ink); background: transparent; border-color: var(--line-2); }
.dnt-btn.ghost:hover { background: transparent; border-color: var(--ink); }
.dnt-btn.light { color: var(--ink); background: #fff; border-color: #fff; }
.dnt-btn.light:hover { background: #e9ebee; border-color: #e9ebee; }
/* 浅色区域里的 .light 按钮回退为深色实心，避免白底白字 */
.dnt-hero .dnt-btn.light { color: #fff; background: var(--ink); border-color: var(--ink); }
.dnt-hero .dnt-btn.light:hover { background: #2b323b; border-color: #2b323b; }
.cta-band .dnt-btn.light { color: var(--ink); background: #fff; border-color: #fff; }
.cta-band .dnt-btn.light:hover { background: #e9ebee; border-color: #e9ebee; }

/* ---------- Home hero ---------- */
.dnt-hero { background: var(--paper); padding: 104px 0 0; }
.dnt-hero::after {
  content: ""; display: block;
  width: calc(100% - var(--gut) * 2);
  max-width: calc(var(--shell) - var(--gut) * 2);
  margin: 72px auto 0;
  height: clamp(220px, 26vw, 340px);
  border-radius: var(--radius);
  background: #eceef0 url("assets/hero-bg-v2.jpg") center 62% / cover no-repeat;
}
.hero-copy { display: block; }
.hero-badge {
  display: block; margin-bottom: 22px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.hero-title {
  margin: 0; max-width: 15ch;
  font-size: clamp(40px, 5.6vw, 66px); line-height: 1.06; letter-spacing: -0.035em; color: var(--ink);
}
.hero-title em { font-style: normal; color: var(--faint); }
.hero-copy > p { margin: 28px 0 0; max-width: 600px; font-size: 18px; color: var(--muted); }

.hero-stats {
  width: 100%; max-width: var(--shell); margin: 64px auto 0; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hero-stat { padding: 26px 0 0; }
.hero-stat + .hero-stat { padding-left: 40px; border-left: 1px solid var(--line); }
.hero-stat strong { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }
.hero-stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ---------- Inner page header ---------- */
.page-hero { padding: 88px 0 56px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero::before { content: none; }
.page-hero .crumb { margin-bottom: 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.page-hero h1 { margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -0.03em; }
.page-hero p { max-width: 640px; margin: 0; font-size: 17px; color: var(--muted); }

/* ---------- Grid + cards ---------- */
.dnt-grid { display: grid; gap: 24px; }
.dnt-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dnt-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dnt-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.dnt-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: border-color .18s ease;
}
.dnt-card:hover { border-color: var(--line-2); }
.dnt-card .icon {
  display: block; width: 26px; height: 26px; margin: 0 0 22px;
  color: var(--accent); background: none; border: 0; font-size: 0;
}
.dnt-card .icon svg { width: 26px; height: 26px; display: block; }
.dnt-card h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.4; }
.dnt-card p { margin: 0; font-size: 15px; color: var(--muted); }
.dnt-card .more {
  display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .18s ease;
}
.dnt-card .more:hover { border-color: var(--ink); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > *:first-child { order: 2; }
.split-media { position: relative; }
.split-media::after { content: none; }
.split-media img { width: 100%; border-radius: var(--radius); }

.check-list { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.check-list li {
  position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink-2);
}
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 5px; height: 9px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- Product cards ---------- */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card img {
  width: 100%; height: 210px; object-fit: contain; padding: 26px;
  background: var(--wash); border-bottom: 1px solid var(--line);
}
.product-card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag {
  display: block; margin-bottom: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.product-card h3 { margin: 0 0 10px; font-size: 18px; }
.product-card .more { margin-top: auto; }

/* ---------- Project cards ---------- */
.project-card { padding: 0; overflow: hidden; }
.project-card img { width: 100%; height: 230px; object-fit: cover; }
.project-card .body { padding: 26px 26px 30px; }
.project-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.project-card .meta span {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 2px; padding: 3px 8px;
}
.project-card h3 { margin: 0 0 10px; font-size: 18px; }

/* ---------- Service flow ---------- */
.service-flow { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.service-step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.service-step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--faint);
}
.service-step h3 { margin: 0 0 8px; font-size: 17px; }
.service-step p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; padding: 76px 56px; text-align: center;
  background: var(--ink); border-radius: var(--radius); overflow: hidden;
}
.cta-band::after { content: none; }
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; }
.cta-band p { margin: 16px auto 0; max-width: 620px; color: rgba(255,255,255,.66); font-size: 16px; }
.cta-band .dnt-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.contact-panel { padding: 40px 36px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-panel h2 { margin: 0 0 10px; font-size: 22px; }
.contact-panel > p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.contact-line { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-line span { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.contact-line strong, .contact-line a { font-size: 15px; font-weight: 500; color: var(--ink); }
.contact-line a:hover { color: var(--accent); }
.contact-form-wrap { padding: 40px 36px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form-wrap > p { color: var(--muted); font-size: 15px; }

.dnt-contact-form-wrap { max-width: none; margin-top: 26px; }
#dnt-contact-form .field { margin: 0 0 18px; }
#dnt-contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#dnt-contact-form label { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
#dnt-contact-form input, #dnt-contact-form textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
#dnt-contact-form input:focus, #dnt-contact-form textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,20,24,.07);
}
#dnt-contact-form textarea { resize: vertical; min-height: 132px; }
#dnt-contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#dnt-contact-form button {
  margin-top: 4px; padding: 15px 30px; font: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  transition: background .18s ease;
}
#dnt-contact-form button:hover { background: #2b323b; }
#dnt-contact-form button:disabled { opacity: .55; cursor: default; }
#dnt-contact-form-msg { margin: 16px 0 0; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { padding: 84px 0 36px; background: var(--ink); color: rgba(255,255,255,.62); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 56px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer-brand strong { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.site-footer p { margin: 0; max-width: 420px; color: rgba(255,255,255,.55); }
.site-footer h3 { margin: 0 0 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 12px; line-height: 1.6; }
.site-footer a { color: rgba(255,255,255,.72); transition: color .18s ease; }
.site-footer a:hover { color: #fff; }
.copyright {
  margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.copyright a { color: rgba(255,255,255,.72); }
.copyright a:hover { color: #fff; }

/* ---------- 法律/正文页 ---------- */
.legal { max-width: 760px; }
.legal-date { margin: 0 0 40px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.legal h2 { margin: 44px 0 14px; font-size: 20px; line-height: 1.4; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 16px; font-size: 16px; color: var(--ink-2); }
.legal a { color: var(--accent); border-bottom: 1px solid rgba(18,68,138,.3); }
.legal a:hover { border-color: var(--accent); }
.legal .check-list { margin-bottom: 24px; }

/* 表单下方的隐私提示 */
.dnt-form-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.dnt-form-note a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.dnt-form-note a:hover { border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  :root { --gut: 24px; }
  .dnt-section { padding: 80px 0; }
  .dnt-section.alt + .dnt-section:not(.alt) { padding-top: 80px; }
  .dnt-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .service-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; order: 3; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--gut) 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { content: none; }
  .dnt-hero { padding-top: 64px; }
  .dnt-hero::after { margin-top: 48px; }
  .hero-stats { margin-top: 44px; grid-template-columns: 1fr; }
  .hero-stat { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .hero-stat + .hero-stat { padding-left: 0; border-left: 0; }
  .hero-stat:last-child { border-bottom: 0; }
  .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 0; }
  .dnt-grid.cols-3 { grid-template-columns: 1fr; }
  .page-hero { padding: 60px 0 42px; }
  .cta-band { padding: 52px 26px; }
  .contact-panel, .contact-form-wrap { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { padding-top: 62px; }
  .copyright { margin-top: 44px; }
}
@media (max-width: 620px) {
  .dnt-section { padding: 64px 0; }
  .dnt-section.alt + .dnt-section:not(.alt) { padding-top: 64px; }
  .dnt-grid.cols-4 { grid-template-columns: 1fr; }
  .service-flow { grid-template-columns: 1fr; gap: 26px; }
  .header-inner { gap: 12px; height: 64px; }
  .brand { gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .brand strong { font-size: 13.5px; line-height: 1.3; }
  .dnt-section-head { margin-bottom: 36px; }
  #dnt-contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .brand span span { display: none; }
}
