/* ================================================================
   AeroCore 组件包：企业官网首页介绍（gdcx-home）
   本文件只在页面实际使用了该组件时加载
   类名统一 gdcx- 前缀，不污染主题样式
   ================================================================ */
/* ================================================================
   广东车协信息科技有限公司 — 首页样式
   全部类名以 gdcx- 开头，避免与 AeroCore / WordPress 主题样式冲突
   ================================================================ */
.gdcx {
  --gdcx-primary: #1668dc;
  --gdcx-primary-dark: #0b4fa8;
  --gdcx-accent: #ff7a29;
  --gdcx-ink: #0d1b2a;
  --gdcx-text: #3d4d60;
  --gdcx-muted: #7b8a9c;
  --gdcx-bg: #f4f7fb;
  --gdcx-card: #ffffff;
  --gdcx-line: #e4eaf2;
  --gdcx-radius: 16px;
  --gdcx-shadow: 0 6px 24px rgba(16, 42, 78, .07);
  --gdcx-shadow-hi: 0 14px 40px rgba(16, 42, 78, .13);
  --gdcx-max: 1200px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--gdcx-text);
  background: var(--gdcx-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.gdcx *, .gdcx *::before, .gdcx *::after { box-sizing: border-box; }
.gdcx h1, .gdcx h2, .gdcx h3, .gdcx h4 { color: var(--gdcx-ink); margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: .5px; }
.gdcx p { margin: 0; }
.gdcx a { color: inherit; text-decoration: none; }
.gdcx img { max-width: 100%; display: block; }

/* —— 通用容器 —— */
.gdcx-wrap { max-width: var(--gdcx-max); margin: 0 auto; padding: 0 24px; }
.gdcx-section { padding: 84px 0; }
.gdcx-section--alt { background: #eef3fa; }
.gdcx-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; font-weight: 700;
  color: var(--gdcx-primary); background: rgba(22,104,220,.09);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
.gdcx-sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.gdcx-sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.gdcx-sec-head p { font-size: 16px; color: var(--gdcx-muted); }

/* —— Hero —— */
.gdcx-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 460px at 88% -10%, rgba(255,122,41,.34), transparent 60%),
    linear-gradient(135deg, #08243f 0%, #0d3b6b 48%, #14548f 100%);
  padding: 96px 0 120px;
}
.gdcx-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.gdcx-hero .gdcx-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.gdcx-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.25; margin-bottom: 20px; }
.gdcx-hero h1 em { font-style: normal; color: #ffb27a; }
.gdcx-hero .gdcx-lead { font-size: 17px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 32px; }
.gdcx-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.gdcx-btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 10px; transition: .25s; border: 1px solid transparent;
}
.gdcx-btn--primary { background: var(--gdcx-accent); color: #fff; box-shadow: 0 8px 22px rgba(255,122,41,.32); }
.gdcx-btn--primary:hover { background: #ff8f4d; transform: translateY(-2px); }
.gdcx-btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.gdcx-btn--ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* Hero 右侧资质卡 */
.gdcx-card-float {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px); border-radius: var(--gdcx-radius); padding: 26px 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.gdcx-card-float h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.gdcx-card-float .gdcx-sub { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.gdcx-kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px dashed rgba(255,255,255,.16); font-size: 14px; }
.gdcx-kv:first-of-type { border-top: 0; }
.gdcx-kv dt { color: rgba(255,255,255,.6); margin: 0; }
.gdcx-kv dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }

/* —— 数据条 —— */
.gdcx-stats { background: #fff; border-bottom: 1px solid var(--gdcx-line); }
.gdcx-stats .gdcx-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.gdcx-stat { padding: 40px 12px; text-align: center; position: relative; }
.gdcx-stat + .gdcx-stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 44px; background: var(--gdcx-line);
}
.gdcx-stat b { display: block; font-size: 34px; color: var(--gdcx-primary); line-height: 1.2; }
.gdcx-stat b i { font-style: normal; font-size: 16px; margin-left: 3px; }
.gdcx-stat span { font-size: 14px; color: var(--gdcx-muted); }

/* —— 关于我们 —— */
.gdcx-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.gdcx-about-grid h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.gdcx-about-grid > div > p + p { margin-top: 14px; }
.gdcx-checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.gdcx-checklist li { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; }
.gdcx-checklist svg { flex: 0 0 18px; margin-top: 4px; color: var(--gdcx-primary); }
.gdcx-visual {
  border-radius: var(--gdcx-radius); padding: 34px; color: #fff; min-height: 340px;
  background: linear-gradient(140deg, #0d3b6b, #1668dc 60%, #3f8de8);
  box-shadow: var(--gdcx-shadow-hi); display: flex; flex-direction: column; justify-content: space-between;
}
.gdcx-visual h4 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.gdcx-visual p { color: rgba(255,255,255,.8); font-size: 14px; }
.gdcx-visual ul { list-style: none; margin: 22px 0 0; padding: 0; }
.gdcx-visual li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 15px; }
.gdcx-visual li b { margin-left: auto; font-size: 20px; color: #ffb27a; }

/* —— 业务板块 —— */
.gdcx-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gdcx-pillar { background: var(--gdcx-card); border: 1px solid var(--gdcx-line); border-radius: var(--gdcx-radius); padding: 34px; box-shadow: var(--gdcx-shadow); transition: .28s; }
.gdcx-pillar:hover { transform: translateY(-5px); box-shadow: var(--gdcx-shadow-hi); border-color: rgba(22,104,220,.35); }
.gdcx-pillar-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(22,104,220,.1); color: var(--gdcx-primary); margin-bottom: 18px; }
.gdcx-pillar:nth-child(2) .gdcx-pillar-icon { background: rgba(255,122,41,.12); color: var(--gdcx-accent); }
.gdcx-pillar h3 { font-size: 21px; margin-bottom: 10px; }
.gdcx-pillar > p { font-size: 15px; color: var(--gdcx-muted); }
.gdcx-pillar ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.gdcx-pillar ul li { display: flex; gap: 9px; font-size: 14.5px; }
.gdcx-pillar ul li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--gdcx-primary); }
.gdcx-pillar:nth-child(2) ul li::before { background: var(--gdcx-accent); }

/* —— 服务矩阵 —— */
.gdcx-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gdcx-item { background: var(--gdcx-card); border: 1px solid var(--gdcx-line); border-radius: 14px; padding: 28px 24px; box-shadow: var(--gdcx-shadow); transition: .26s; }
.gdcx-item:hover { border-color: rgba(22,104,220,.4); transform: translateY(-4px); box-shadow: var(--gdcx-shadow-hi); }
.gdcx-item .gdcx-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(22,104,220,.09); color: var(--gdcx-primary); margin-bottom: 16px; }
.gdcx-item h4 { font-size: 17px; margin-bottom: 8px; }
.gdcx-item p { font-size: 14px; color: var(--gdcx-muted); }

/* —— 服务流程 —— */
.gdcx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.gdcx-step { position: relative; background: var(--gdcx-card); border: 1px solid var(--gdcx-line); border-radius: 14px; padding: 30px 24px; }
.gdcx-step::after {
  content: ""; position: absolute; right: -13px; top: 50%; width: 22px; height: 22px;
  border-top: 2px solid var(--gdcx-primary); border-right: 2px solid var(--gdcx-primary);
  transform: translateY(-50%) rotate(45deg); opacity: .45;
}
.gdcx-step:last-child::after { display: none; }
.gdcx-step b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gdcx-primary); color: #fff; font-size: 17px; margin-bottom: 16px; }
.gdcx-step h4 { font-size: 17px; margin-bottom: 8px; }
.gdcx-step p { font-size: 14px; color: var(--gdcx-muted); }

/* —— 优势 —— */
.gdcx-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gdcx-why-item { background: var(--gdcx-card); border-radius: 14px; padding: 30px; border: 1px solid var(--gdcx-line); }
.gdcx-why-item h4 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.gdcx-why-item h4 span { color: var(--gdcx-accent); font-size: 20px; }
.gdcx-why-item p { font-size: 14.5px; color: var(--gdcx-muted); }

/* —— 联系 CTA —— */
.gdcx-cta { background: linear-gradient(135deg, #0d3b6b, #1668dc 70%, #2f7fd6); color: #fff; padding: 76px 0; }
.gdcx-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.gdcx-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.gdcx-cta p { color: rgba(255,255,255,.82); margin-bottom: 26px; }
.gdcx-contact { display: grid; gap: 14px; }
.gdcx-contact div { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.gdcx-contact div span { color: rgba(255,255,255,.65); min-width: 66px; }

/* —— 响应式 —— */
@media (max-width: 1024px) {
  .gdcx-cards { grid-template-columns: repeat(2, 1fr); }
  .gdcx-steps { grid-template-columns: repeat(2, 1fr); }
  .gdcx-step:nth-child(2)::after { display: none; }
  .gdcx-why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .gdcx-hero .gdcx-wrap, .gdcx-about-grid, .gdcx-pillars, .gdcx-cta-grid { grid-template-columns: 1fr; }
  .gdcx-hero { padding: 64px 0 76px; }
  .gdcx-section { padding: 60px 0; }
  .gdcx-stats .gdcx-wrap { grid-template-columns: 1fr 1fr; }
  .gdcx-stat:nth-child(3)::before { display: none; }
  .gdcx-stat:nth-child(n+3) { border-top: 1px solid var(--gdcx-line); }
}
@media (max-width: 560px) {
  .gdcx-cards, .gdcx-steps, .gdcx-why, .gdcx-checklist { grid-template-columns: 1fr; }
  .gdcx-step::after { display: none; }
}

/* —— 组件包专用补充 —— */
.gdcx-eyebrow--light { background: rgba(255,255,255,.14); color: #ffb27a; }
.gdcx-ico i, .gdcx-pillar-icon i { font-size: 22px; line-height: 1; font-style: normal; }
.gdcx-pillar-icon i { font-size: 26px; }
.gdcx-pillar > .gdcx-pillar-desc { font-size: 15px; color: var(--gdcx-muted); }
.gdcx-hero { position: relative; }
.gdcx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(8,36,63,.88), rgba(20,84,143,.78));
  pointer-events: none;
}
.gdcx-hero .gdcx-wrap { z-index: 2; }
.gdcx-contact a { color: #fff; border-bottom: 1px dashed rgba(255,255,255,.45); }
.gdcx-contact a:hover { border-bottom-color: #fff; }

/* ================================================================
   全宽出血（Full-Bleed）—— 解决组件被主题容器框住、只占中间一条的问题
   原理：margin-left: calc(50% - 50vw) 中 50% 取直接父容器宽度、50vw 取视口一半，
        二者之差正好等于「视口边缘到父容器边缘」的距离，可穿透任意层级的居中容器

   ⚠️ 三个易踩的坑，下面逐条处理：
      坑 1：区块自身没有背景色 → 溢出部分透出主题底色，看起来像没铺开
      坑 2：主题 CSS 优先级更高 → 用 !important 兜底
      坑 3：父级容器 overflow:hidden / contain:paint 会裁掉溢出 → 用 :has() 解除
   ================================================================ */

/* 100vw 含滚动条宽度，会多出十几像素导致横向滚动。
   overflow-x: clip 与 hidden 的区别：clip 不创建滚动容器，不会破坏主题的 sticky 导航 */
body { overflow-x: clip; }

/* ---- 坑 1：给每个区块显式背景色（关键修复）----
   原先只有 .gdcx-hero / .gdcx-stats / .gdcx-cta 自带背景，
   .gdcx-section 靠根元素 .gdcx 的背景撑着，出血后溢出部分没有底色，
   于是「首屏和数据条铺开了，下面几块没铺开」 */
.gdcx-section,
.gdcx-why-item,
.gdcx-item,
.gdcx-step { background: var(--gdcx-bg); }
.gdcx-section--alt { background: #eef3fa; }
.gdcx-stats { background: #fff; }
/* 卡片类元素恢复白底，避免跟随区块底色 */
.gdcx--bleed .gdcx-item,
.gdcx--bleed .gdcx-step,
.gdcx--bleed .gdcx-why-item,
.gdcx--bleed .gdcx-pillar { background: var(--gdcx-card); }

/* ---- 坑 2：出血本体，加 !important 防止被主题规则覆盖 ---- */
.gdcx--bleed {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow: visible !important;
  contain: none !important;
}
.gdcx--bleed > section {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow: visible !important;
  contain: none !important;
  border-radius: 0 !important;
}

/* ---- 坑 3：解除祖先容器对溢出的裁剪 ----
   只命中「包含本组件的」那几层 div，不影响主题其他部分 */
div:has(> .gdcx--bleed),
div:has(> div > .gdcx--bleed),
div:has(> div > div > .gdcx--bleed),
div:has(> div > div > div > .gdcx--bleed) {
  overflow: visible !important;
  contain: none !important;
}

/* 兜底：若浏览器不支持 :has()，或主题用了 grid/flex 使百分比 margin 解析异常，
   改用 left + transform 方案（位移 = 父容器一半 − 自身宽度一半，等价于出血） */
@supports not selector(:has(*)) {
  .gdcx--bleed > section {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* 调试模式：给未铺开的区块描红边，一眼定位问题 */
.gdcx--debug > section { outline: 2px dashed #e5484d !important; outline-offset: -2px; }
.gdcx--debug > section::after {
  content: attr(class);
  position: absolute; top: 4px; left: 8px; z-index: 9;
  font: 11px/1.6 monospace; color: #e5484d; background: #fff;
  padding: 1px 6px; border: 1px solid #e5484d; border-radius: 3px;
}

/* 首屏遮罩：默认只在「透明模式」和「背景图模式」启用，纯渐变模式不需要 */
.gdcx-hero::before { display: none; }
.gdcx-hero--transparent::before,
.gdcx-hero--image::before {
  display: block;
  background: linear-gradient(
    135deg,
    rgba(8, 36, 63, var(--gdcx-hero-overlay, .82)),
    rgba(20, 84, 143, calc(var(--gdcx-hero-overlay, .82) * .55))
  );
}

/* 透明模式：不做自己的背景，直接透出主题 Banner，仅靠遮罩保证文字对比度 */
.gdcx-hero--transparent {
  background: transparent;
  box-shadow: none;
}
.gdcx-hero--transparent::after { opacity: .5; }

/* 首屏内容在全宽下重新居中，两侧留出呼吸感 */
.gdcx--bleed .gdcx-hero .gdcx-wrap {
  padding-left: clamp(24px, 5vw, 80px);
  padding-right: clamp(24px, 5vw, 80px);
}

/* 全宽后各区块之间取消圆角，改为连贯的整幅铺陈（已在出血块统一处理） */

/* ================================================================
   主次对比：板块一（汽车综合服务）为主体，板块二（信息技术服务）弱化
   ================================================================ */

/* 主体板块更宽、更实 */
.gdcx-pillars { grid-template-columns: 1.35fr .65fr; }
.gdcx-pillars .gdcx-pillar:first-child {
  border-color: rgba(22, 104, 220, .35);
  box-shadow: 0 10px 34px rgba(16, 42, 78, .1);
}

/* 配套板块弱化：去阴影、淡背景、缩字号、条目去强调色 */
.gdcx-pillars .gdcx-pillar:last-child {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  padding: 26px 24px;
  opacity: .82;
}
.gdcx-pillars .gdcx-pillar:last-child:hover { transform: none; box-shadow: none; border-color: rgba(22, 104, 220, .3); opacity: 1; }
.gdcx-pillars .gdcx-pillar:last-child h3 { font-size: 17px; color: var(--gdcx-muted); }
.gdcx-pillars .gdcx-pillar:last-child .gdcx-pillar-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(123, 138, 156, .12); color: var(--gdcx-muted); }
.gdcx-pillars .gdcx-pillar:last-child .gdcx-pillar-icon svg { width: 20px; height: 20px; }
.gdcx-pillars .gdcx-pillar:last-child ul li::before { background: var(--gdcx-muted); }
.gdcx-pillars .gdcx-pillar:last-child ul li { font-size: 13.5px; color: var(--gdcx-muted); }

/* 服务矩阵：第一张（机动车年审）作为主推项高亮 */
.gdcx-cards .gdcx-item:first-child {
  border-color: var(--gdcx-accent);
  background: linear-gradient(180deg, rgba(255, 122, 41, .06), var(--gdcx-card) 62%);
  box-shadow: 0 10px 30px rgba(255, 122, 41, .16);
}
.gdcx-cards .gdcx-item:first-child .gdcx-ico { background: rgba(255, 122, 41, .14); color: var(--gdcx-accent); }
.gdcx-cards .gdcx-item:first-child h4::after {
  content: "推荐";
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--gdcx-accent); color: #fff; font-size: 11px; font-weight: 600;
  vertical-align: middle; letter-spacing: .5px;
}

@media (max-width: 860px) {
  .gdcx-pillars { grid-template-columns: 1fr; }
}

/* ================================================================
   联系区：按钮 / 邮箱可整块隐藏（后台留空即可）
   容器为空时不占位，避免出现一块莫名留白
   ================================================================ */
.gdcx-btns:empty,
.gdcx-contact:empty { display: none; }
.gdcx-cta-grid > div:first-child:has(.gdcx-btns:empty) p { margin-bottom: 0; }
