@charset "utf-8";
/* ===========================================================
   地区页独享样式（public/css/page-district.css）
   区域头 / 行政服务中心卡 / 生命周期五段轴 / 服务与材料 / 邻区切换
   =========================================================== */

.dh {
  padding: 26px 0 46px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
}
.dh-g {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0;
  gap: 0;
  align-items: start;
}
.dh .eb {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-d);
  display: block;
  margin-bottom: 12px;
}
.dh h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
}
.dh .lead {
  font-size: 15px;
  line-height: 1.95;
  color: var(--mut);
  margin-top: 16px;
  max-width: 700px;
}
.dh-chips { display: flex; flex-wrap: wrap; margin-top: 18px; }
.dh-chips span {
  font-size: 12.5px;
  color: var(--ink2);
  border: 1px solid var(--line3);
  background: #fff;
  padding: 5px 11px;
  margin: 0 8px 8px 0;
}
.dh-chips span b { color: var(--navy-d); }

/* 行政服务中心卡 */
.gov {
  border: 1px solid var(--line3);
  background: #fff;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.gov::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 2px;
  background: var(--teal);
  animation: gvx 7.6s linear infinite;
}
@keyframes gvx {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
.gov-h {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line2);
  background: var(--panel);
}
.gov-h b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--teal-d);
  display: block;
}
.gov-h h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin-top: 4px;
}
.gov-body { padding: 6px 18px 16px; }
.gov-row {
  display: flex;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.8;
}
.gov-row:last-child { border-bottom: 0; }
.gov-row dt {
  flex: 0 0 76px;
  color: var(--mut);
  font-size: 12.5px;
}
.gov-row dd { margin: 0; flex: 1 1 auto; color: var(--ink2); min-width: 0; }
.gov-row dd strong { color: var(--navy-d); font-family: var(--mono); font-size: 14px; }
.gov-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--mut);
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line2);
}

/* 生命周期五段轴 */
.axis { border-top: 1px solid var(--line3); }
.ax {
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-gap: 0;
  gap: 0;
  border-bottom: 1px solid var(--line3);
  padding: 22px 0;
}
.ax-l {
  position: relative;
  padding-left: 0;
}
.ax-l .axn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--teal-d);
}
.ax-l .axd {
  position: absolute;
  left: 0;
  top: 34px;
  bottom: -22px;
  width: 1px;
  background: var(--line3);
}
.ax:last-child .ax-l .axd { display: none; }
.ax-c h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.ax-c .ax-en {
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mut);
  display: block;
  margin-top: 3px;
}
.ax-c p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--mut);
  margin-top: 10px;
  max-width: 760px;
}
.ax-svc {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ax-svc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--ink2);
  border: 1px solid var(--line3);
  background: #fff;
  margin: 0 8px 8px 0;
}
.ax-svc a i { font-style: normal; color: var(--teal-d); margin-left: 6px; font-size: 11px; }

.ax-blk {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.ax-blk div { padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.ax-blk div:last-child { border-bottom: 0; }
.ax-blk b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy-d);
  display: block;
  margin-bottom: 4px;
}
.ax-blk p,
.ax-blk li {
  font-size: 13px;
  line-height: 1.85;
  color: var(--mut);
}
.ax-blk li { padding-left: 12px; position: relative; }
.ax-blk li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--teal);
}

/* 邻区切换 */
.dgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0;
  gap: 0;
  border-top: 1px solid var(--line3);
  border-left: 1px solid var(--line3);
}
.dgrid a {
  border-right: 1px solid var(--line3);
  border-bottom: 1px solid var(--line3);
  padding: 13px 14px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dgrid a em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mut);
}
.dgrid a.on { background: var(--panel); color: var(--navy-d); font-weight: 600; }
.dgrid a i { font-style: normal; color: var(--teal-d); font-size: 12px; }

/* 区情提示 */
.dtips {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0;
  gap: 0;
  border-top: 1px solid var(--line3);
}
.dtip {
  padding: 16px 0;
  border-bottom: 1px solid var(--line2);
  display: grid;
  grid-template-columns: 90px 1fr;
  grid-gap: 0;
  gap: 0;
}
.dtip b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy-d);
}
.dtip p { font-size: 13.5px; line-height: 1.9; color: var(--mut); }

@media (min-width: 600px) {
  .dgrid a { width: auto; }
  .dgrid { grid-template-columns: repeat(3, 1fr); }
  .ax-blk { grid-template-columns: repeat(3, 1fr); }
  .ax-blk div { border-bottom: 0; border-right: 1px solid var(--line2); }
  .ax-blk div:last-child { border-right: 0; }
}
@media (min-width: 768px) {
  .dh-g { grid-template-columns: 1fr 340px; grid-gap: 0; gap: 40px; }
  .gov { margin-top: 0; }
  .dgrid { grid-template-columns: repeat(4, 1fr); }
  .dtips { grid-template-columns: repeat(2, 1fr); grid-gap: 0; gap: 0 40px; }
}
@media (min-width: 1024px) {
  .dgrid { grid-template-columns: repeat(6, 1fr); }
}

@media (hover: hover) and (pointer: fine) {
  .ax-svc a:hover { border-color: var(--navy); color: var(--navy-d); }
  .dgrid a:hover { background: var(--panel); color: var(--navy-d); }
}
@media (hover: none) {
  .ax-svc a:active { background: var(--panel2); }
}


/* ===========================================================
   上海栏目：按区选择（16 区细线卡栅格）
   每卡：区名 / 英文码 / 区情 / 受理点
   =========================================================== */
.dhub {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line3);
  border-left: 1px solid var(--line3);
}
.dhub-i {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  background: #FFFFFF;
  border-right: 1px solid var(--line3);
  border-bottom: 1px solid var(--line3);
  min-height: 196px;
}
.dhub-i em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--teal-d);
}
.dhub-i b {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: -.005em;
}
.dhub-i p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--mut);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.dhub-a {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--navy-d);
  display: block;
}
.dhub-i i {
  position: absolute;
  right: 20px;
  top: 20px;
  font-style: normal;
  font-size: 12px;
  color: var(--line3);
  transition: transform .22s ease, color .22s ease;
}
@media (min-width: 600px) {
  .dhub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .dhub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .dhub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* 最后一张（自贸区临港新片区）通栏，补齐末行 */
.dhub-i:last-child {
  grid-column: 1 / -1;
  min-height: 0;
}
.dhub-i:last-child p { max-width: 92ch; }
@media (min-width: 900px) {
  .dhub-i:last-child {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 300px;
    grid-template-rows: auto auto;
    column-gap: 28px;
    align-content: center;
    align-items: center;
    min-height: 112px;
  }
  .dhub-i:last-child b { white-space: nowrap; font-size: 18px; }
  .dhub-i:last-child p { font-size: 13px; align-self: center; }
  .dhub-i:last-child em { grid-column: 1; grid-row: 1; }
  .dhub-i:last-child b { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .dhub-i:last-child p { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .dhub-i:last-child .dhub-a {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .dhub-i:last-child i { top: 22px; }
}
@media (hover: hover) and (pointer: fine) {
  .dhub-i:hover { background: var(--panel); }
  .dhub-i:hover b { color: var(--teal-d); }
  .dhub-i:hover i { color: var(--teal-d); transform: translate(2px, -2px); }
}

/* ===========================================================
   材料口径提示条（地区页 / 栏目页通用）
   =========================================================== */
.mats-band {
  margin: 26px 0 6px;
  background: var(--panel);
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
}
.mats-band .wrap {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: start;
  column-gap: 24px;
  padding: 18px 0 18px;
}
.mats-band-t {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-d);
  padding-top: 3px;
  line-height: 1.7;
  white-space: nowrap;
}
.mats-tip {
  margin-top: 16px;
  padding: 13px 18px;
  background: var(--panel);
  border-left: 3px solid var(--teal);
  font-size: 13px;
  line-height: 1.95;
  color: var(--mut);
}
.mats-band .mats-tip {
  margin: 0;
  padding: 0 0 0 20px;
  background: none;
  border-left: 3px solid var(--teal);
  font-size: 14px;
  line-height: 2;
  color: var(--ink2);
}
.mats-tip b { color: var(--navy-d); font-weight: 600; }
@media (max-width: 640px) {
  .mats-band .wrap { grid-template-columns: 1fr; row-gap: 8px; }
  .mats-band-t { padding-top: 0; }
}

/* === 栏目页动效（共用） === */
@keyframes secUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ebDash {
  0%, 100% { transform: scaleX(.35); opacity: .45; }
  50%      { transform: scaleX(1);   opacity: 1; }
}
@keyframes whoDot {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* 打开页面：板块依次入场 */
main > section { animation: secUp .78s cubic-bezier(.22, .61, .36, 1) both; }
main > section:nth-of-type(1) { animation-delay: .04s; }
main > section:nth-of-type(2) { animation-delay: .12s; }
main > section:nth-of-type(3) { animation-delay: .20s; }
main > section:nth-of-type(4) { animation-delay: .28s; }
main > section:nth-of-type(5) { animation-delay: .36s; }
main > section:nth-of-type(6) { animation-delay: .44s; }
main > section:nth-of-type(n+7) { animation-delay: .50s; }

/* 循环：栏目小标后的短横线呼吸 + 圆点脉冲 */
.sec .sh-l .eb {
  position: relative;
  display: inline-block;
  padding-bottom: 9px;
}
.sec .sh-l .eb::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--teal);
  transform-origin: left center;
  animation: ebDash 3.6s ease-in-out infinite;
}

/* 常见问题答案：查看完整解答 */
.fa-more {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(47, 179, 164, .38);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--teal-d);
  transition: border-color .25s ease, color .25s ease;
}
.fa-more:hover { color: var(--navy); border-color: var(--navy); }

/* 循环：执行方小标签前的小圆点 */
.who::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: 1px;
  animation: whoDot 2.8s ease-in-out infinite;
}

@keyframes sqPulse {
  0%, 100% { border-color: var(--line3); }
  50%      { border-color: rgba(47, 179, 164, .45); }
}
@keyframes numDash {
  0%, 100% { transform: scaleX(.45); opacity: .5; }
  50%      { transform: scaleX(1);   opacity: 1; }
}

/* 循环：常见问题右侧 ＋/－ 方框呼吸 */
.faq summary::after { animation: sqPulse 3.2s ease-in-out infinite; }
.faq details[open] summary::after { animation: none; }

/* 循环：办理流程编号下方的短横线呼吸 */
.flow-n::after {
  transform-origin: left center;
  animation: numDash 3.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  main > section { animation: none; }
  .sec .sh-l .eb::after,
  .who::before,
  .faq summary::after,
  .flow-n::after { animation: none; }
}
