/* 汽车以旧换新「一件事」页 — 基于 1920 设计稿，用 calc/vh/vw 做流体适配 */

:root {
  --c-text: #333;
  --c-muted: #717171;
  --c-blue: #2378ea;
  --c-blue-soft: #85bcf0;
  --c-cyan: #7bd5ff;
  --c-cyan-line: #3ea4dd;
  --c-orange: #f78b2c;
  --c-nav-bg: #eaf7ff;
  --c-nav-bd: #abd6ee;
  --c-rule: #cdcdcd;
  --shadow-card: 0 calc(1vw / 19.2) calc(9vw / 19.2) rgba(168, 168, 168, 0.35);
  --radius: calc(6vw / 19.2);
  --content-w: calc(1192vw / 19.2);
  --gap: calc(24vw / 19.2);
  --fs-title: calc(32vw / 19.2);
  --fs-h2: calc(24vw / 19.2);
  --fs-h3: calc(18vw / 19.2);
  --fs-body: calc(16vw / 19.2);
  --fs-sm: calc(14vw / 19.2);
}

.yjh-page {
  position: relative;
  width: 100%;
  padding: 0;
  background: #fff;
}

/* ---------- 内容区背景：顶部 + 底部（不含 Banner 头） ---------- */
.yjh-content {
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: transparent;
  background-image:
    url("../images/26-qcyjhxbtyjs/content-top-bg.png"),
    url("../images/26-qcyjhxbtyjs/content-bottom-bg.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center bottom;
  background-size: 100% auto, 100% auto;
}

.yjh-wrap {
  position: relative;
  display: flow-root; /* 避免概况负边距外边距折叠导致叠 Banner 失效 */
  width: var(--content-w);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: calc(48vw / 19.2);
}

/* ---------- 标题 Banner：全宽 ---------- */
.yjh-hero {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin: 0;
}

.yjh-hero__img {
  display: block;
  width: 100vw;
  height: auto;
}

/* ---------- 概况：蓝绿渐变页签卡片（上移盖住 Banner 底部） ---------- */
.yjh-overview {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: calc(-52vw / 19.2) auto calc(48vw / 19.2);
  box-sizing: border-box;
  background: url(../images/26-qcyjhxbtyjs/overview-bg.png) left top / 100% 100% no-repeat;
  color: #fff;
  padding: calc(60vw / 19.2) calc(132vw / 19.2) calc(28vw / 19.2) calc(102vw / 19.2);
}

/* 概况：左侧页签左上角横排，与正文分离 */
.yjh-overview__label {
  position: absolute;
  left: calc(32vw / 19.2);
  top: calc(25vw / 19.2);
  margin: 0;
  font-size: calc(20vw / 19.2);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
}

.yjh-overview__desc {
  margin: 0;
  font-size: calc(18vw / 19.2);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ---------- 布局：主内容全宽，侧栏贴附外侧 ---------- */
.yjh-layout {
  position: relative;
}

.yjh-sidenav {
  position: absolute;
  top: 0;
  right: 100%;
  margin-right: calc(20vw / 19.2);
  width: calc(111vw / 19.2);
  border: 1px solid var(--c-nav-bd);
  border-radius: var(--radius);
  background: var(--c-nav-bg);
  box-shadow: 0 calc(2vw / 19.2) calc(10vw / 19.2) rgba(218, 218, 218, 0.45);
  padding: calc(16vw / 19.2) 0;
  z-index: 100;
  box-sizing: border-box;
}

.yjh-sidenav.is-fixed {
  position: fixed;
  right: auto;
  margin-right: 0;
}

.yjh-sidenav.is-bottom {
  position: absolute;
  right: 100%;
  margin-right: calc(20vw / 19.2);
  left: auto;
}

.yjh-sidenav a {
  position: relative;
  display: block;
  /* padding: calc(6vw / 19.2) calc(12vw / 19.2); */
  font-size: var(--fs-sm);
  color: var(--c-text);
  line-height: 1.8;
  text-align: center;
  transition: color 0.2s;
}

.yjh-sidenav a.is-active,
.yjh-sidenav a:hover {
  color: var(--c-blue);
}

.yjh-sidenav a.is-active::before {
  content: "";
  position: absolute;
  left: calc(10vw / 19.2);
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: calc(4vw / 19.2) 0 calc(4vw / 19.2) calc(6vw / 19.2);
  border-color: transparent transparent transparent var(--c-blue);
  transform: translateY(-50%);
}

/* 移动端侧栏开关：桌面隐藏 */
.yjh-sidenav__toggle {
  display: none;
}

.yjh-main {
  width: 100%;
}

/* ---------- 区块标题 ---------- */
.yjh-section {
  margin-bottom: calc(48vw / 19.2);
  scroll-margin-top: calc(100vh * 0.06);
}

.yjh-section__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(22vw / 19.2);
  margin-bottom: calc(28vw / 19.2);
}

.yjh-section__head h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.yjh-section__head::before,
.yjh-section__head::after {
  content: "";
  width: calc(69vw / 19.2);
  height: calc(4vw / 19.2);
  background: var(--c-rule);
}

/* ---------- 卡片通用 ---------- */
.yjh-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.yjh-card__corner-tl,
.yjh-card__corner-br {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.yjh-card__corner-tl {
  left: 0;
  top: 0;
  width: calc(97vw / 19.2);
}

.yjh-card__corner-br {
  right: 0;
  bottom: 0;
  width: calc(120vw / 19.2);
}

.yjh-card__corner-tl--sm {
  width: calc(103vw / 19.2);
}

.yjh-card__corner-br--sm {
  width: calc(128vw / 19.2);
}

/* 卡片角标数字（联办事项 / 申报须知复用） */
.yjh-num {
  position: absolute;
  left: calc(18vw / 19.2);
  top: calc(12vw / 19.2);
  margin: 0;
  font-size: calc(45vw / 19.2);
  color: var(--c-blue-soft);
  line-height: 1;
  z-index: 2;
}

/* ---------- 联办事项 ---------- */
.yjh-matters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(30vw / 19.2) calc(40vw / 19.2);
}

.yjh-matter {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(120vw / 19.2);
  padding: calc(24vw / 19.2) calc(40vw / 19.2);
  box-sizing: border-box;
}

.yjh-matter__title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 400;
  text-align: center;
  z-index: 2;
}

/* ---------- 申报须知 ---------- */
.yjh-notice-list {
  display: flex;
  flex-direction: column;
  gap: calc(40vw / 19.2);
}

.yjh-notice {
  padding: calc(28vw / 19.2) calc(28vw / 19.2) calc(36vw / 19.2);
}

.yjh-notice__title {
  margin: 0 0 calc(8vw / 19.2);
  padding-left: calc(110vw / 19.2);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.yjh-notice__divider {
  height: 1px;
  background: #e5e5e5;
  margin: calc(45vw / 19.2) 0 calc(20vw / 19.2);
}

.yjh-notice__body {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--c-muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.yjh-notice__body li {
  display: flex;
  align-items: flex-start;
  gap: calc(4vw / 19.2);
  margin: 0 0 calc(16vw / 19.2);
}

.yjh-notice__body li:last-child {
  margin-bottom: 0;
}

/* 序号单独一列，正文换行不顶到序号下 */
.yjh-notice__idx {
  flex: 0 0 auto;
  white-space: nowrap;
}

.yjh-notice__txt {
  flex: 1;
  min-width: 0;
}

/* ---------- 申请条件 ---------- */
.yjh-condition__box {
  background-image: linear-gradient(
		#f5fcfe, 
		#f5fcfe), 
	linear-gradient(
		#7bd5ff, 
		#7bd5ff);
  border-radius: var(--radius);
  padding: calc(24vw / 19.2) calc(28vw / 19.2);
  color: var(--c-muted);
  font-size: var(--fs-body);
  line-height: 1.75;
}

.yjh-condition__box p {
  margin: 0 0 calc(12vw / 19.2);
  text-indent: 2em;
}

.yjh-condition__box p:last-child {
  margin-bottom: 0;
}

.yjh-condition__note {
  margin-top: calc(16vw / 19.2) !important;
}

/* ---------- 申请材料：整图 + 底部渐变文字叠层 ---------- */
.yjh-materials-grid {
  display: grid;
  grid-template-columns: repeat(3, calc(272vw / 19.2));
  justify-content: space-between;
  gap: calc(28vw / 19.2) 0;
  margin-bottom: calc(24vw / 19.2);
  padding: 0 calc(75vw / 19.2);
  box-sizing: border-box;
}

.yjh-material {
  position: relative;
  width: calc(272vw / 19.2);
  height: calc(200vw / 19.2);
  border-radius: calc(10vw / 19.2);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.yjh-material__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yjh-material__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: calc(36vw / 19.2) calc(14vw / 19.2) calc(14vw / 19.2);
  box-sizing: border-box;
  font-size: var(--fs-sm);
  color: #fff;
  line-height: 1.45;
  text-align: center;
  background: linear-gradient(180deg, rgba(98, 167, 247, 0) 0%, #62a7f7 100%);
}

.yjh-material__cap--long {
  font-size: calc(12vw / 19.2);
  line-height: 1.35;
  padding-top: calc(44vw / 19.2);
}

.yjh-materials-tip {
  background-image: linear-gradient(
		#f5fcfe, 
		#f5fcfe), 
	linear-gradient(
		#7bd5ff, 
		#7bd5ff);
  border-radius: var(--radius);
  padding: calc(18vw / 19.2) calc(28vw / 19.2);
  color: var(--c-muted);
  font-size: var(--fs-body);
  line-height: 1.75;
}

.yjh-materials-tip p {
  margin: 0;
}

/* ---------- 服务对象 / 办理流程 / 在线 / 咨询 / 结果 ---------- */
.yjh-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(12vw / 19.2);
  padding: calc(35vw / 19.2) calc(40vw / 19.2);
  text-align: center;
}

.yjh-action-card--other {
  padding: calc(35vw / 19.2) calc(40vw / 19.2) calc(15vw / 19.2);
}

.yjh-action-card p {
  margin: 0;
  font-size: var(--fs-body);
  z-index: 2;
}

.yjh-btn {
  display: inline-block;
  height: calc(38vw / 19.2);
  line-height: calc(38vw / 19.2);
  padding: 0 calc(18vw / 19.2);
  background: var(--c-orange);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: var(--fs-body);
  text-align: center;
  z-index: 2;
  transition: opacity 0.2s;
}

.yjh-btn:hover {
  opacity: 0.88;
  color: #fff !important;
}

/* ---------- 政策 + 问答 ---------- */
.yjh-policy-row {
  display: flex;
  gap: calc(28vw / 19.2);
  align-items: stretch;
}

.yjh-policy {
  flex: 1;
  min-width: 0; /* 允许在 flex 布局中收缩，单行溢出才能省略 */
  overflow: hidden;
}

.yjh-policy__head {
  border-bottom: 1px solid #ddd;
  margin-bottom: calc(20vw / 19.2);
}

.yjh-policy__title {
  display: inline-block;
  margin: 0 0 -1px;
  padding-bottom: calc(10vw / 19.2);
  font-size: var(--fs-h2);
  font-weight: 700;
  border-bottom: calc(3vw / 19.2) solid var(--c-cyan-line);
  color: var(--c-text);
  text-decoration: none;
}

.yjh-policy__title:hover {
  color: var(--c-blue);
}

.yjh-policy__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yjh-policy__list li {
  position: relative;
  padding-left: calc(18vw / 19.2);
  margin-bottom: calc(14vw / 19.2);
  font-size: var(--fs-body);
  line-height: 1.55;
  overflow: hidden;
  max-width: 100%;
}

.yjh-policy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(8vw / 19.2);
  width: calc(6vw / 19.2);
  height: calc(6vw / 19.2);
  background: #7ab8e0;
  border-radius: 1px;
}

.yjh-policy__list a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.yjh-policy__list a:hover {
  color: var(--c-blue);
}

.yjh-faq {
  flex: 0 0 calc(420vw / 19.2);
  width: calc(420vw / 19.2);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: flex-start;
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(100vh * 0.06);
}

.yjh-faq img {
  width: 100%;
  display: block;
}

.yjh-faq__overlay {
  position: absolute;
  left: calc(20vw / 19.2);
  top: calc(24vw / 19.2);
  padding: calc(10vw / 19.2) calc(12vw / 19.2);
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  pointer-events: none;
}

.yjh-faq__year {
  margin: 0;
  font-size: var(--fs-h2);
  color: #d9ad5f;
  line-height: 1.3;
}

.yjh-faq__name {
  margin: 0;
  font-size: var(--fs-h2);
  color: #007fc6;
  line-height: 1.35;
}

/* ---------- 响应式：窄屏 ---------- */
@media (max-width: 1200px) {
  :root {
    --fs-title: calc(28vw / 12);
    --fs-h2: calc(22vw / 12);
    --fs-h3: calc(17vw / 12);
    --fs-body: calc(15vw / 12);
    --fs-sm: calc(13vw / 12);
    --content-w: calc(100vw * 0.92);
  }

  .yjh-sidenav {
    width: calc(90vw / 12);
  }

  .yjh-faq {
    flex-basis: calc(360vw / 12);
    width: calc(360vw / 12);
  }
}

@media (max-width: 900px) {
  :root {
    --fs-title: calc(30vw / 9);
    --fs-h2: calc(28vw / 9);
    --fs-h3: calc(22vw / 9);
    --fs-body: calc(17vw / 9);
    --fs-sm: calc(15vw / 9);
    --radius: 6px;
  }

  .yjh-content {
    background-size: 100% auto, 100% auto;
  }

  .yjh-layout {
    display: block;
  }

  .yjh-sidenav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 120;
    width: calc(28vw / 9);
    height: calc(56vw / 9);
    margin: 0;
    padding: 0;
    border: 1px solid var(--c-nav-bd);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background: var(--c-nav-bg);
    box-shadow: 0 2px 8px rgba(218, 218, 218, 0.45);
    cursor: pointer;
    transform: translateY(-50%);
    transition: left 0.25s ease;
  }

  .yjh-sidenav__toggle::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent var(--c-blue);
    transition: transform 0.2s;
  }

  .yjh-sidenav__toggle.is-open {
    left: calc(140vw / 9);
  }

  .yjh-sidenav__toggle.is-open::before {
    transform: rotate(180deg);
  }

  .yjh-sidenav,
  .yjh-sidenav.is-fixed,
  .yjh-sidenav.is-bottom {
    position: fixed !important;
    top: 50% !important;
    left: 0 !important;
    right: auto !important;
    margin: 0 !important;
    width: calc(140vw / 9) !important;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: calc(12vw / 9) 0;
    z-index: 110;
    transform: translate(-100%, -50%);
    transition: transform 0.25s ease;
  }

  .yjh-sidenav.is-open {
    transform: translate(0, -50%);
  }

  .yjh-sidenav a {
    padding: calc(6vw / 9) calc(12vw / 9);
    text-align: left;
  }

  .yjh-sidenav a.is-active::before {
    display: block;
    left: calc(6vw / 9);
  }

  .yjh-overview {
    margin-top: calc(-28vw / 9);
    padding: calc(24vw / 9) calc(24vw / 9) calc(20vw / 9) calc(64vw / 9);
  }

  .yjh-overview__label {
    left: calc(12vw / 9);
    top: calc(10vw / 9);
    font-size: var(--fs-h2);
  }

  .yjh-overview__desc {
    font-size: var(--fs-body);
    line-height: 1.65;
  }

  .yjh-matters {
    grid-template-columns: 1fr;
    gap: calc(16vw / 9);
  }

  .yjh-materials-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;
    gap: calc(16vw / 9);
    padding: 0;
  }

  .yjh-material {
    width: 100%;
    height: auto;
    aspect-ratio: 272 / 200;
  }

  .yjh-material__cap {
    padding: calc(28vw / 9) calc(10vw / 9) calc(10vw / 9);
  }

  .yjh-material__cap--long {
    font-size: calc(15vw / 9);
    padding-top: calc(32vw / 9);
  }

  .yjh-policy-row {
    flex-direction: column;
  }

  .yjh-policy__title {
    font-size: var(--fs-h2);
    padding-bottom: calc(8vw / 9);
    border-bottom-width: calc(3vw / 9);
  }

  .yjh-faq {
    width: 100%;
    flex-basis: auto;
  }

  .yjh-notice__title {
    padding-left: calc(48vw / 9);
  }

  .yjh-card__corner-tl,
  .yjh-card__corner-br,
  .yjh-card__corner-tl--sm,
  .yjh-card__corner-br--sm {
    width: calc(56vw / 9);
  }
}

@media (max-width: 600px) {
  :root {
    --fs-title: calc(28vw / 6);
    --fs-h2: calc(26vw / 6);
    --fs-h3: calc(20vw / 6);
    --fs-body: calc(16vw / 6);
    --fs-sm: calc(14vw / 6);
  }

  .yjh-materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(12vw / 6);
    padding: 0;
  }

  .yjh-material__cap {
    padding: calc(24vw / 6) calc(8vw / 6) calc(8vw / 6);
    font-size: calc(14vw / 6);
  }

  .yjh-material__cap--long {
    font-size: calc(13vw / 6);
    padding-top: calc(28vw / 6);
  }

  .yjh-overview {
    padding: calc(50vw / 6) calc(16vw / 6) calc(16vw / 6) calc(52vw / 6);
  }

  .yjh-overview__label {
    left: calc(10vw / 6);
    top: calc(8vw / 6);
    font-size: var(--fs-h2);
  }

  .yjh-overview__desc {
    font-size: var(--fs-body);
  }

  .yjh-btn {
    height: calc(36vw / 6);
    line-height: calc(36vw / 6);
  }
}
