/*
 * 文件作用：
 * service / downloads / contact 等内容页的完整组件样式。
 * 包含：页面 Hero、板块容器、服务卡片网格、流程步骤、覆盖网格、
 *       CTA 横条、下载表格、联系卡片、联系表单等。
 * 仅对 body.pmgr-page-service / pmgr-page-downloads / pmgr-page-contact 生效。
 *
 * 导航是白色 fixed，页面内容需要 padding-top 偏移。
 */

/* ── 通用：内容页顶部偏移（为 fixed 导航留出空间）── */
body.pmgr-page-service,
body.pmgr-page-downloads,
body.pmgr-page-contact {
  background: #0b0b0c !important;
  padding-top: var(--pmgr-nav-height, 84px);
}

/* 通用全宽块 */
.page-hero,
.page-section,
.cta-band {
  width: 100%;
  box-sizing: border-box;
}

/* 主容器：1280px 居中 */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════
   页面 Hero（顶部 Banner）
   ══════════════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  background: #0b0b0c;
  color: #ffffff;
  padding: 90px 40px 70px;
  border-bottom: 3px solid var(--pmgr-red, #C8102E);
  overflow: hidden;
}

/* 右侧红色装饰光晕 */
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%) rotate(18deg);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.22) 0%, rgba(200, 16, 46, 0) 65%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pmgr-red, #C8102E);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--pmgr-red, #C8102E);
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 22px;
  color: #ffffff !important;
  letter-spacing: -0.01em;
}

.page-lead {
  font-size: 17px;
  line-height: 1.65;
  color: #d5d5d7;
  max-width: 820px;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   板块容器（Section）
   ══════════════════════════════════════════════════════════════ */

.page-section {
  padding: 80px 40px;
}

.section-light {
  background: #f7f8fa;
  color: #222226;
}

.section-dark {
  background: #1a1a1d;
  color: #e8e8ea;
}

.section-alt {
  background: #eef1f5;
  color: #222226;
}

/* 板块标题区 */
.section-head {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: #222226;
  margin: 0 0 12px;
  line-height: 1.25;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

/* 标题红色短线 */
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--pmgr-red, #C8102E);
  border-radius: 2px;
}

.section-title.light {
  color: #ffffff !important;
}

.section-title.align-left {
  display: block;
  padding-bottom: 10px;
}

.section-title.align-left::after {
  left: 0;
  transform: none;
  width: 56px;
}

.section-subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: #5a5a60;
  margin: 12px 0 0;
}

.section-subtitle.light {
  color: #b0b0b5;
}

.section-head.align-left {
  max-width: 100%;
  margin: 0 auto 32px;
  text-align: left;
}

/* ══════════════════════════════════════════════════════════════
   服务卡片网格（3 × 2）
   ══════════════════════════════════════════════════════════════ */

.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.srv-card {
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-top: 3px solid transparent;
  border-radius: 8px;
  padding: 28px 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.srv-card:hover {
  border-top-color: var(--pmgr-red, #C8102E);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.srv-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--pmgr-red, #C8102E);
  letter-spacing: -1px;
  margin-bottom: 10px;
  line-height: 1;
}

.srv-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1d;
  margin: 0 0 12px;
}

.srv-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #5a5a60;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   服务流程步骤（4 步）
   ══════════════════════════════════════════════════════════════ */

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--pmgr-red, #C8102E);
}

.process-step .step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--pmgr-red, #C8102E);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.process-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.process-step p {
  font-size: 13px;
  line-height: 1.7;
  color: #b5b5b8;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   全球覆盖 / 区域网格（3 列）
   ══════════════════════════════════════════════════════════════ */

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.coverage-card {
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-radius: 8px;
  padding: 28px 26px;
}

.coverage-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1d;
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pmgr-red, #C8102E);
  display: inline-block;
}

.coverage-hub {
  font-size: 13px;
  font-weight: 600;
  color: var(--pmgr-red, #C8102E);
  margin: 12px 0 14px;
  letter-spacing: 0.5px;
}

.coverage-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coverage-card li {
  font-size: 14px;
  line-height: 1.9;
  color: #5a5a60;
  padding-left: 18px;
  position: relative;
}

.coverage-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--pmgr-red, #C8102E);
  border-radius: 50%;
}

/* 区域联系变体（深色背景） */
.region-contact {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 28px 26px;
}

.region-contact h4 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pmgr-red, #C8102E);
  display: inline-block;
}

.region-hub {
  font-size: 12px;
  font-weight: 700;
  color: var(--pmgr-red, #C8102E);
  margin: 12px 0 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.region-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.region-lines li {
  font-size: 14px;
  line-height: 1.9;
  color: #d6d6d8;
}

.region-lines a {
  color: #ff6b7f;
  text-decoration: none;
  font-weight: 600;
}

.region-lines a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   CTA 横条（红色渐变底）
   ══════════════════════════════════════════════════════════════ */

.cta-band {
  background: linear-gradient(135deg, var(--pmgr-red, #C8102E) 0%, #8a0a1f 100%);
  color: #ffffff;
  padding: 60px 40px;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

.cta-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff !important;
}

.cta-text p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 640px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-red {
  display: inline-block;
  background: #ffffff;
  color: var(--pmgr-red, #C8102E);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 26px;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid #ffffff;
  transition: background 0.2s, color 0.2s;
}

.btn-cta-red:hover {
  background: transparent;
  color: #ffffff;
}

.btn-cta-ghost {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 26px;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: background 0.2s, color 0.2s;
}

.btn-cta-ghost:hover {
  background: #ffffff;
  color: var(--pmgr-red, #C8102E);
}

/* ══════════════════════════════════════════════════════════════
   Downloads 页：顶部 Tabs
   ══════════════════════════════════════════════════════════════ */

.downloads-tabs-wrap {
  background: #ffffff;
  border-bottom: 1px solid #e5e6ea;
  padding: 0;
  position: sticky;
  top: var(--pmgr-nav-height, 84px);
  z-index: 20;
}

.downloads-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.dl-tab {
  display: inline-block;
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #5a5a60;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  letter-spacing: 0.3px;
}

.dl-tab:hover,
.dl-tab:focus-visible {
  color: var(--pmgr-red, #C8102E);
  border-bottom-color: var(--pmgr-red, #C8102E);
  background: #fafafb;
}

/* 锚点跳转平滑 */
html { scroll-behavior: smooth; }

.page-section[id] {
  scroll-margin-top: 150px;
}

/* ── 文件下载表格（CSS Grid 实现）── */
.dl-table {
  width: 100%;
  display: block;
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-radius: 8px;
  overflow: hidden;
}

.dl-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) 1fr 0.9fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid #eef0f3;
  transition: background 0.15s;
}

.dl-row:first-child { border-top: 0; }

.dl-row:hover:not(.dl-row-head) { background: #fafafc; }

.dl-row-head {
  background: #f4f6f9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7a7a80;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 0;
  border-bottom: 1px solid #e5e6ea;
}

.dl-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1d;
  line-height: 1.4;
}

.dl-product { font-size: 13px; color: #5a5a60; }

.dl-meta {
  font-size: 12px;
  color: #7a7a80;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.dl-action { justify-self: end; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--pmgr-red, #C8102E);
  border: 1px solid var(--pmgr-red, #C8102E);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.dl-btn::before { content: "⬇"; font-size: 12px; }

.dl-btn:hover {
  background: #8a0a1f;
  border-color: #8a0a1f;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   Contact 页：3 列联系卡片
   ══════════════════════════════════════════════════════════════ */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.contact-card:hover {
  border-color: var(--pmgr-red, #C8102E);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.contact-card-feature {
  background: #fff;
  border-top: 4px solid var(--pmgr-red, #C8102E);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.06);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.08);
  color: var(--pmgr-red, #C8102E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1d;
  margin: 0 0 10px;
}

.contact-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #5a5a60;
  margin: 0 0 16px;
}

.contact-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eef0f3;
  padding-top: 14px;
}

.contact-lines li {
  font-size: 14px;
  color: #1a1a1d;
  padding: 4px 0;
  line-height: 1.5;
}

.contact-lines a {
  color: var(--pmgr-red, #C8102E);
  text-decoration: none;
  font-weight: 600;
}

.contact-lines a:hover {
  color: #8a0a1f;
  text-decoration: underline;
}

/* ── 公司信息 + 地图占位 ── */
.company-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.company-info-card {
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-radius: 8px;
  padding: 32px;
}

.company-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1d;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--pmgr-red, #C8102E);
  display: inline-block;
}

.company-dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.company-dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: baseline;
}

.company-dl dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7a7a80;
  margin: 0;
}

.company-dl dd {
  font-size: 14px;
  line-height: 1.65;
  color: #222226;
  margin: 0;
}

.company-dl dd a {
  color: var(--pmgr-red, #C8102E);
  text-decoration: none;
  font-weight: 600;
}

.company-dl dd a:hover { text-decoration: underline; }

.company-map { display: flex; }

.map-placeholder {
  width: 100%;
  min-height: 360px;
  background: linear-gradient(135deg, #2a2a2e 0%, #1a1a1d 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  padding: 32px;
  text-align: center;
}

.map-pin {
  font-size: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(200, 16, 46, 0.5));
}

.map-placeholder strong { font-size: 18px; font-weight: 700; }
.map-placeholder span { font-size: 13px; color: #c8c8ca; }

.map-link {
  margin-top: 14px;
  display: inline-block;
  padding: 10px 20px;
  background: var(--pmgr-red, #C8102E);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.map-link:hover { background: #8a0a1f; }

/* ── 联系表单（2 栏：表单 + 侧栏）── */
.form-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-radius: 8px;
  padding: 36px;
  display: grid;
  gap: 20px;
}

.form-row { display: grid; gap: 20px; }
.form-row-2col { grid-template-columns: 1fr 1fr; }
.form-group { display: grid; gap: 6px; }

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #5a5a60;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-req { color: var(--pmgr-red, #C8102E); margin-left: 2px; }

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  color: #1a1a1d;
  background: #fafafb;
  border: 1px solid #d9dbe0;
  border-radius: 4px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--pmgr-red, #C8102E);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5a5a60 50%),
    linear-gradient(135deg, #5a5a60 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.contact-form .form-submit {
  padding: 13px 32px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--pmgr-red, #C8102E);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.contact-form .form-submit:hover {
  background: #8a0a1f;
  transform: translateY(-1px);
}

.form-note { font-size: 12px; color: #7a7a80; }

.form-aside {
  background: #f4f6f9;
  border-radius: 8px;
  padding: 28px 26px;
  border-left: 3px solid var(--pmgr-red, #C8102E);
}

.form-aside h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1d;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e6ea;
}

/* ══════════════════════════════════════════════════════════════
   响应式 — 平板 ≤1023px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  body.pmgr-page-service,
  body.pmgr-page-downloads,
  body.pmgr-page-contact {
    padding-top: 64px;
  }

  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .company-info-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .page-hero { padding: 72px 28px 56px; }
  .page-title { font-size: 36px !important; }
  .page-lead { font-size: 16px !important; line-height: 1.6; }

  .page-section { padding: 64px 28px; }
  .section-inner { padding: 0 28px; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: 26px; }

  .cta-band { padding: 56px 28px; }
  .cta-text h2 { font-size: 24px !important; }

  .downloads-tabs-wrap { top: 64px; }
}

/* ══════════════════════════════════════════════════════════════
   响应式 — 手机 ≤639px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {
  .page-hero { padding: 60px 20px 50px; }
  .page-title { font-size: 28px !important; }
  .page-lead { font-size: 14px !important; line-height: 1.65; }

  .page-section { padding: 48px 20px; }
  .section-inner { padding: 0; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 14px; line-height: 1.6; }

  .srv-grid,
  .process-steps,
  .coverage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-band { padding: 40px 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-text h2 { font-size: 20px !important; }
  .cta-actions { width: 100%; }
  .btn-cta-red, .btn-cta-ghost {
    flex: 1 1 auto;
    text-align: center;
    padding: 14px 20px;
    min-height: 48px;
  }

  .downloads-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
  }
  .dl-tab { white-space: nowrap; min-height: 48px; }

  /* 下载表格：双行堆叠 */
  .dl-row, .dl-row-head {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name action" "product meta";
    gap: 4px 12px;
    padding: 14px 16px;
  }
  .dl-row-head { display: none; }
  .dl-name { grid-area: name; font-size: 14px; }
  .dl-product { grid-area: product; font-size: 12px; }
  .dl-meta { grid-area: meta; font-size: 11px; justify-self: end; }
  .dl-action { grid-area: action; }

  .form-row-2col { grid-template-columns: 1fr; gap: 16px; }
  .contact-form { padding: 24px 20px; }
  .form-aside { padding: 22px 18px; }
  .company-info-card { padding: 24px 22px; }
  .company-dl > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { padding: 24px 20px; }
  .map-placeholder { min-height: 280px; padding: 24px; }
}
