@charset "utf-8";

* {
  box-sizing: border-box;
}

*, body {
  margin: 0;
  padding: 0;
  color: #222;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

:root {
  --text-title-main: #f9fdff;
  --text-title-panel: #f4fbff;
  --text-body-strong: rgba(239, 247, 255, 0.96);
  --text-body: rgba(229, 239, 255, 0.9);
  --text-muted: rgba(214, 231, 248, 0.84);
  --text-glow: 0 0 0.12rem rgba(111, 218, 255, 0.14);
  --page-head-height: 1.3rem;
  --page-content-gap-top: 0.12rem;
}

@font-face {
  font-family: electronicFont;
  src: url(../font/DS-DIGIT.TTF);
}

body {
  background: #000d4a url(../images/bg.jpg) center top;
  background-size: cover;
  color: #dfeeff;
  font-size: 14px;
  overflow: hidden;
}

li {
  list-style-type: none;
}

img {
  border: none;
  max-width: 100%;
}

a {
  color: #399bff;
  text-decoration: none;
}

a.active,
a:focus {
  outline: none !important;
  text-decoration: none;
}

ol,
ul,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

a:hover {
  color: #06c;
  text-decoration: none !important;
}

.clearfix:after,
.clearfix:before {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.pulll_left {
  float: left;
}

.pulll_right {
  float: right;
}

::-webkit-scrollbar {
  position: absolute;
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #5bc0de;
}

::-webkit-scrollbar-track {
  background-color: rgba(221, 221, 221, 0.35);
}

.canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 99%;
}

.allnav {
  height: calc(100% - 30px);
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000000;
  width: 100%;
  height: 100%;
  background: #1a1a1c;
  font-size: 18px;
  text-align: center;
}

.loadbox {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 150px;
  margin-top: -100px;
  margin-left: -75px;
  color: #aaa;
}

.loadbox img {
  display: block;
  width: 40px;
  margin: 10px auto;
}

.head {
  position: relative;
  z-index: 100;
  height: 1.05rem;
  background: url(../images/head_bg.png) no-repeat center center;
  background-size: 100% 100%;
}

.head h1 {
  color: var(--text-title-main);
  text-align: center;
  font-size: clamp(30px, 0.46rem, 50px);
  line-height: 0.8rem;
  letter-spacing: 0.015rem;
  font-weight: 800;
  text-shadow: var(--text-glow);
}

.nav-tabs-wrap {
  position: absolute;
  top: 0.76rem;
  left: 50%;
  z-index: 999;
  transform: translateX(-50%);
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0.36rem;
  margin-top: 0.08rem;
}

.nav-tabs .tab-btn {
  padding: 0.075rem 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.3rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-body);
  cursor: pointer;
  font-size: clamp(15px, 0.2rem, 20px);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.nav-tabs .tab-btn:hover {
  background: rgba(0, 204, 255, 0.2);
  border-color: rgba(0, 204, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.nav-tabs .tab-btn.active {
  background: rgba(0, 204, 255, 0.5);
  border-color: #00ccff;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.page-container {
  display: none;
}

.page-container.active {
  display: block;
}

.page-container.active .boxall,
.page-container.active .bar,
.page-container.active .map {
  animation: panelEnter 0.58s cubic-bezier(0.2, 0.72, 0.2, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

.weather {
  position: absolute;
  top: 0;
  right: 0.3rem;
  line-height: 0.75rem;
}

.weather img {
  display: inline-block;
  width: 0.37rem;
  vertical-align: middle;
}

.weather span {
  padding-right: 0.1rem;
  color: var(--text-body);
  font-size: clamp(14px, 0.2rem, 20px);
  font-weight: 700;
}

.mainbox {
  position: absolute;
  top: var(--page-head-height);
  right: 0;
  bottom: 0;
  left: 0;
  padding: var(--page-content-gap-top) 0.12rem 0;
}

.mainbox > ul > li {
  float: left;
  width: 30%;
  height: 100%;
  padding: 0 0.1rem;
}

.mainbox > ul > li:nth-child(2) {
  width: 40%;
  padding: 0;
}

.mainbox > ul {
  height: 100%;
}

.boxall {
  position: relative;
  z-index: 10;
  margin-bottom: 0.11rem;
  padding: 0 0.14rem 0.08rem 0.14rem;
  border: 1px solid rgba(25, 186, 139, 0.17);
  background: rgba(255, 255, 255, 0.04) url("../images/line(1).png");
  background-size: 100% auto;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.mainbox > ul > li > .boxall:last-child,
.mainbox > ul > li > .map:last-child {
  margin-bottom: 0;
}

.boxall:before,
.boxall:after {
  position: absolute;
  top: 0;
  width: 0.1rem;
  height: 0.1rem;
  border-top: 2px solid #02a6b5;
  content: "";
}

.boxall:before,
.boxfoot:before {
  left: 0;
  border-left: 2px solid #02a6b5;
}

.boxall:after,
.boxfoot:after {
  right: 0;
  border-right: 2px solid #02a6b5;
}

.boxall:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 220, 255, 0.32);
  box-shadow: 0 0 0.24rem rgba(50, 203, 255, 0.08);
}

.alltitle {
  color: var(--text-title-panel);
  text-align: center;
  font-size: clamp(20px, 0.25rem, 28px);
  line-height: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
  text-shadow: var(--text-glow);
}

.boxall.has-source .allnav {
  height: calc(100% - 82px);
}

.source-chip {
  padding: 0 0.12rem 0.1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: clamp(12px, 0.135rem, 15px);
  line-height: 1.55;
  font-weight: 600;
}

.boxfoot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.boxfoot:before,
.boxfoot:after {
  position: absolute;
  bottom: 0;
  width: 0.1rem;
  height: 0.1rem;
  border-bottom: 2px solid #02a6b5;
  content: "";
}

.bar {
  margin-bottom: 0;
  padding: 0.1rem 0.12rem;
  background: rgba(101, 132, 226, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0.24rem rgba(50, 203, 255, 0.08);
}

.barbox {
  position: relative;
  border: 1px solid rgba(25, 186, 139, 0.17);
}

.barbox li,
.barbox2 li {
  position: relative;
  z-index: 100;
  width: 50%;
  text-align: center;
}

.barbox:before,
.barbox:after {
  position: absolute;
  width: 0.3rem;
  height: 0.1rem;
  content: "";
}

.barbox:before {
  top: 0;
  left: 0;
  border-top: 2px solid #02a6b5;
  border-left: 2px solid #02a6b5;
}

.barbox:after {
  right: 0;
  bottom: 0;
  border-right: 2px solid #02a6b5;
  border-bottom: 2px solid #02a6b5;
}

.barbox li:first-child:before {
  position: absolute;
  top: 25%;
  right: 0;
  width: 1px;
  height: 50%;
  background: rgba(255, 255, 255, 0.2);
  content: "";
}

.barbox li {
  padding: 0.05rem 0;
  color: #ffeb7b;
  font-family: electronicFont;
  font-size: 0.7rem;
  font-weight: bold;
}

.barbox2 li {
  padding-top: 0.1rem;
  color: var(--text-body-strong);
  font-size: clamp(14px, 0.205rem, 18px);
  line-height: 1.38;
  font-weight: 700;
}

#page2 > ul > li:nth-child(2) .bar,
#page3 > ul > li:nth-child(2) .bar {
  padding-top: 0.1rem;
  padding-bottom: 0.08rem;
}

#page2 > ul > li:nth-child(2) .barbox2 li,
#page3 > ul > li:nth-child(2) .barbox2 li {
  padding-top: 0.04rem;
  line-height: 1.28;
}

.mainbox > ul > li > .bar + .boxall,
.mainbox > ul > li > .bar + .map {
  margin-top: 0.25rem;
}

#page2 > ul > li:nth-child(2) > .bar + .boxall,
#page3 > ul > li:nth-child(2) > .bar + .map {
  margin-top: 0.06rem;
}

#page2 > ul > li:nth-child(2) > .bar + .boxall {
  margin-top: 0 !important;
}

#page3 > ul > li:nth-child(2) > .bar + .page3-center-map {
  margin-top: 0 !important;
}

.center-middle-box {
  margin-top: 0;
}

#page2 .center-middle-box .alltitle,
#page3 .page3-center-map .alltitle {
  line-height: 0.6rem;
}

#page1 .boxall {
  height: calc(100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.12rem) !important;
}

#page2 > ul > li:first-child .boxall:nth-child(1) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.295) !important;
}

#page2 > ul > li:first-child .boxall:nth-child(2) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.295) !important;
  padding-bottom: 0.08rem;
}

#page2 > ul > li:first-child .boxall:nth-child(2) .allnav {
  height: calc(100% - 0.46rem);
}

#page2 > ul > li:first-child .boxall:nth-child(3) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.41) !important;
}

#page2 > ul > li:nth-child(2) .bar {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top)) * 0.13);
}

#page2 > ul > li:nth-child(2) .center-middle-box {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top)) * 0.87) !important;
  padding-bottom: 0;
}

#page2 > ul > li:nth-child(2) .center-middle-box .allnav {
  height: calc(100% - 0.42rem);
}

#page2 > ul > li:nth-child(3) .boxall:nth-child(1) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.315) !important;
}

#page2 > ul > li:nth-child(3) .boxall:nth-child(2) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.305) !important;
}

#page2 > ul > li:nth-child(3) .boxall:nth-child(3) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.38) !important;
}

#page3 > ul > li:first-child .boxall:nth-child(1) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.11rem) * 0.47) !important;
}

#page3 > ul > li:first-child .boxall:nth-child(2) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.11rem) * 0.53) !important;
}

#page3 > ul > li:nth-child(2) .bar {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top)) * 0.13);
}

#page3 > ul > li:nth-child(2) .page3-center-map {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top)) * 0.87) !important;
  padding-bottom: 0;
}

#page3 > ul > li:nth-child(2) .page3-center-map .allnav {
  height: calc(100% - 0.42rem);
}

#page3 > ul > li:nth-child(3) .boxall:nth-child(1) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.27) !important;
}

#page3 > ul > li:nth-child(3) .boxall:nth-child(2) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.365) !important;
}

#page3 > ul > li:nth-child(3) .boxall:nth-child(3) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.365) !important;
}

#page4 .page4-left-top {
  display: flex;
  gap: 0.11rem;
  margin-bottom: 0.11rem;
}

#page4 .boxall {
  padding: 0 0.14rem 0.14rem 0.14rem;
}

#page4 .allnav {
  height: calc(100% - 0.52rem);
}

#page4 .page4-half-box {
  flex: 1 1 0;
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.315) !important;
  margin-bottom: 0;
}

#page4 .page4-tall-box {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.685) !important;
  margin-bottom: 0;
}

#page4 .page4-right-column > .boxall:nth-child(1) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.315) !important;
}

#page4 .page4-right-column > .boxall:nth-child(2) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.315) !important;
}

#page4 .page4-right-column > .boxall:nth-child(3) {
  height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.37) !important;
}

#page4 #echart_p4_2 {
  padding: 0 !important;
}

#page4 #echart_p4_2 .plan-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  padding: 0;
  border-radius: 0.14rem;
}

.center-map-title {
  position: absolute;
  top: 0.08rem;
  left: 50%;
  z-index: 12;
  width: calc(100% - 0.56rem);
  transform: translateX(-50%);
  color: #e8f7ff;
  text-align: center;
  text-shadow: 0 0 10px rgba(49, 209, 255, 0.35);
}

.map4 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.district-map-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 0.18rem rgba(65, 201, 255, 0.16));
}

.district-map-panel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.24rem 0.16rem 0.16rem;
}

.district-map-panel .district-map-image {
  display: block;
  margin: 0 auto;
}

.district-map-total {
  position: absolute;
  top: 0.14rem;
  left: 0.16rem;
  z-index: 2;
  min-width: 1.45rem;
  padding: 0.12rem 0.16rem;
  border: 1px solid rgba(106, 219, 255, 0.34);
  border-radius: 0.12rem;
  background: linear-gradient(180deg, rgba(6, 35, 84, 0.92), rgba(5, 19, 47, 0.86));
  box-shadow: 0 0 0.18rem rgba(45, 173, 255, 0.12);
}

.district-map-total-label {
  color: rgba(222, 243, 255, 0.72);
  font-size: 12px;
  line-height: 1.3;
}

.district-map-total-value {
  margin-top: 0.04rem;
  color: #fff3a6;
  font-size: clamp(24px, 0.34rem, 34px);
  font-weight: 700;
  line-height: 1;
}

.district-map-legend {
  position: absolute;
  right: 0.16rem;
  bottom: 0.12rem;
  left: 0.16rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.1rem;
}

.district-map-legend-item {
  padding: 0.1rem 0.12rem;
  border: 1px solid rgba(130, 214, 255, 0.24);
  border-radius: 0.12rem;
  background: rgba(7, 24, 58, 0.82);
  backdrop-filter: blur(4px);
  text-align: center;
}

.district-map-legend-label {
  color: rgba(225, 242, 255, 0.76);
  font-size: 12px;
  line-height: 1.3;
}

.district-map-legend-value {
  margin-top: 0.03rem;
  font-size: clamp(18px, 0.24rem, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.district-map-legend-item.is-national .district-map-legend-value {
  color: #ffe36d;
}

.district-map-legend-item.is-municipal .district-map-legend-value {
  color: #53d8ff;
}

.district-map-legend-item.is-district .district-map-legend-value {
  color: #6df0b8;
}

.map-source {
  position: absolute;
  top: 0.48rem;
  left: 50%;
  z-index: 12;
  width: calc(100% - 0.56rem);
  transform: translateX(-50%);
  color: rgba(215, 239, 255, 0.62);
  text-align: center;
  font-size: clamp(11px, 0.12rem, 14px);
  line-height: 1.5;
}

#page4.mainbox > ul > li {
  width: 50%;
}

#page4.mainbox > ul > li:nth-child(2) {
  width: 50%;
  padding: 0 0.1rem;
}

.map {
  position: relative;
  z-index: 9;
  height: 7.2rem;
  border: 1px solid rgba(25, 186, 139, 0.12);
  background: rgba(255, 255, 255, 0.03) url("../images/line(1).png");
  background-size: 100% auto;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.map:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 220, 255, 0.28);
  box-shadow: 0 0 0.26rem rgba(50, 203, 255, 0.08);
}

.map4 {
  display: block;
  position: absolute;
  top: 0.74rem;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 6.36rem;
  padding: 0 0.12rem 0.08rem;
}

.heritage-map {
  display: block;
  width: 100%;
  height: 100%;
}

.heritage-map-label {
  fill: rgba(226, 243, 255, 0.82);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.heritage-map-sub {
  fill: rgba(180, 222, 255, 0.68);
  font-size: 12px;
}

.heritage-map-hint {
  fill: rgba(255, 227, 123, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.heritage-map-axis {
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 2;
  stroke-dasharray: 10 10;
}

.heritage-map-grid {
  stroke: rgba(101, 201, 255, 0.09);
  stroke-width: 1;
}

.heritage-map-dot-national {
  fill: rgba(255, 227, 109, 0.95);
}

.heritage-map-dot-municipal {
  fill: rgba(83, 216, 255, 0.86);
}

.heritage-map-dot-district {
  fill: rgba(109, 240, 184, 0.8);
}

.siheyuan-diagram {
  width: 100%;
  height: 100%;
}

.plan-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0.08rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.08rem;
}

.structure-interactive {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  height: 100%;
  justify-content: flex-start;
}

.structure-figure {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 830 / 766;
  border-radius: 0.08rem;
  overflow: hidden;
}

.structure-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.structure-hotspot {
  position: absolute;
  border: 1px solid transparent;
  border-radius: 0.1rem;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.structure-hotspot:hover,
.structure-hotspot.active {
  border-color: rgba(0, 204, 255, 0.95);
  background: rgba(0, 160, 255, 0.14);
  box-shadow: 0 0 0.16rem rgba(0, 204, 255, 0.24);
  transform: scale(1.03);
}

.structure-info {
  flex: 0 0 auto;
  min-height: 1.18rem;
  padding: 0.14rem 0.16rem;
  border: 1px solid rgba(78, 214, 255, 0.24);
  border-radius: 0.1rem;
  background: linear-gradient(180deg, rgba(13, 58, 134, 0.28), rgba(9, 30, 82, 0.2));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.structure-info.is-updating {
  transform: translateY(-1px);
  border-color: rgba(97, 225, 255, 0.44);
  box-shadow: 0 0 0.2rem rgba(50, 203, 255, 0.12);
}

.structure-info-title {
  color: var(--text-title-panel);
  font-size: clamp(16px, 0.19rem, 21px);
  font-weight: 800;
  line-height: 1.35;
}

.structure-info-desc {
  margin-top: 0.08rem;
  color: var(--text-body);
  font-size: clamp(12px, 0.135rem, 15px);
  line-height: 1.62;
  font-weight: 600;
}

.compound-flow {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.1rem;
  background:
    radial-gradient(circle at top, rgba(244, 209, 113, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(19, 55, 132, 0.3), rgba(8, 24, 68, 0.18));
  overflow: hidden;
}

.compound-flow:before {
  position: absolute;
  inset: 0.08rem;
  border: 1px solid rgba(244, 211, 134, 0.16);
  border-radius: 0.1rem;
  content: "";
  pointer-events: none;
}

.compound-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compound-flow-path {
  fill: none;
  stroke: rgba(242, 214, 128, 0.92);
  stroke-width: 0.62;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 0.16rem rgba(255, 214, 115, 0.16));
}

.compound-branch-path {
  fill: none;
  stroke: rgba(111, 221, 255, 0.75);
  stroke-width: 0.36;
  stroke-dasharray: 1.4 1;
  stroke-linecap: round;
}

.compound-flow-node {
  position: absolute;
  min-width: 1.88rem;
  max-width: 2.2rem;
  padding: 0.11rem 0.16rem;
  border: 1px solid rgba(255, 224, 154, 0.34);
  border-radius: 0.12rem;
  background: linear-gradient(180deg, rgba(64, 108, 212, 0.34), rgba(20, 42, 112, 0.24));
  box-shadow: 0 0 0.18rem rgba(47, 194, 255, 0.08);
  transform: translate(-50%, -50%);
}

.compound-flow-node.is-mini {
  min-width: 1.7rem;
  padding: 0.1rem 0.14rem;
  border-color: rgba(104, 221, 255, 0.34);
  background: linear-gradient(180deg, rgba(30, 105, 176, 0.3), rgba(15, 40, 98, 0.2));
}

.compound-flow-node-title {
  color: #f4fbff;
  text-align: center;
  font-size: clamp(13px, 0.16rem, 18px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.01rem;
}

.compound-flow-node-caption {
  margin-top: 0.03rem;
  color: rgba(222, 239, 255, 0.68);
  text-align: center;
  font-size: clamp(10px, 0.11rem, 13px);
  line-height: 1.45;
}

.compound-flow-dot {
  position: absolute;
  top: -0.08rem;
  left: 50%;
  min-width: 0.22rem;
  height: 0.22rem;
  padding: 0 0.04rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe8a0, #f4bf58);
  color: #714800;
  text-align: center;
  font-size: clamp(10px, 0.1rem, 12px);
  font-weight: 700;
  line-height: 0.22rem;
  transform: translateX(-50%);
}

.flow-branch-panel {
  position: absolute;
  padding: 0.11rem 0.12rem 0.12rem;
  border: 1px solid rgba(109, 224, 255, 0.22);
  border-radius: 0.12rem;
  background: rgba(10, 38, 97, 0.24);
  backdrop-filter: blur(3px);
}

.flow-branch-panel.is-gate {
  box-shadow: inset 0 0 0.16rem rgba(255, 206, 110, 0.06);
}

.flow-branch-panel.is-screen {
  box-shadow: inset 0 0 0.16rem rgba(96, 226, 255, 0.06);
}

.flow-branch-title {
  color: #fff4c5;
  font-size: clamp(13px, 0.15rem, 17px);
  font-weight: 700;
  line-height: 1.3;
}

.flow-branch-subtitle {
  margin-top: 0.03rem;
  color: rgba(220, 237, 255, 0.64);
  font-size: clamp(10px, 0.105rem, 12px);
  line-height: 1.4;
}

.flow-branch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.06rem;
  margin-top: 0.08rem;
}

.flow-branch-chip {
  padding: 0.04rem 0.08rem;
  border: 1px solid rgba(255, 231, 155, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 250, 255, 0.84);
  font-size: clamp(10px, 0.11rem, 13px);
  line-height: 1.2;
  white-space: nowrap;
}

.flow-footer-note {
  position: absolute;
  right: 4%;
  bottom: 1%;
  left: 4%;
  padding: 0.04rem 0.12rem;
  border-top: 1px solid rgba(255, 221, 146, 0.18);
  color: rgba(225, 239, 255, 0.68);
  text-align: center;
  font-size: clamp(10px, 0.11rem, 13px);
  line-height: 1.3;
}

.flow-footer-note strong {
  color: #ffe7a0;
}

.yard-wall {
  fill: rgba(10, 64, 142, 0.18);
  stroke: #30d7ff;
  stroke-width: 3;
}

.house-main {
  fill: rgba(34, 176, 255, 0.25);
  stroke: #5de6ff;
  stroke-width: 2;
}

.house-side {
  fill: rgba(28, 128, 220, 0.28);
  stroke: #63c8ff;
  stroke-width: 2;
}

.yard-center {
  fill: rgba(48, 210, 145, 0.15);
  stroke: #3ee0b5;
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.house-gate {
  fill: rgba(255, 190, 94, 0.24);
  stroke: #ffd173;
  stroke-width: 2;
}

.axis-line {
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.route-line {
  fill: none;
  stroke: #ffc562;
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
}

.route-node {
  fill: #ffc562;
}

.svg-label {
  fill: #e8f7ff;
  font-size: 19px;
  font-weight: 700;
}

.svg-label-small {
  fill: #cdeeff;
  font-size: 14px;
  font-weight: 600;
}

.word-cloud-wrap {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  gap: 0.08rem 0.1rem;
  width: 100%;
  height: 100%;
  padding: 0.12rem 0.08rem 0.12rem 0.02rem;
  overflow: hidden;
  border-radius: 0.1rem;
  background:
    radial-gradient(circle at center, rgba(163, 31, 31, 0.12), transparent 40%),
    radial-gradient(circle at 20% 20%, rgba(255, 210, 110, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(67, 18, 28, 0.16), rgba(24, 35, 84, 0.14));
}

.word-cloud-wrap span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.34rem;
  padding: 0.04rem 0.09rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  transform-origin: center;
  font-weight: 800;
  user-select: none;
  animation: wordFloat 4.6s ease-in-out infinite;
  animation-delay: var(--word-delay, 0s);
}

.word-cloud-wrap span:after {
  display: block;
  margin-left: 0.05rem;
  color: rgba(245, 233, 195, 0.64);
  text-align: center;
  font-size: 0.1rem;
  font-weight: 700;
  line-height: 1;
  content: attr(data-count) "次";
}

.word-bless-gold {
  color: #ffd97d;
}

.word-bless-coral {
  color: #ff9f7d;
}

.word-bless-jade {
  color: #80e0ba;
}

.word-bless-cyan {
  color: #7bd8ff;
}

.insight-text,
.insight-text p {
  color: var(--text-body-strong);
  font-weight: 700;
}

.insight-text-fengshui {
  font-size: clamp(14px, 0.18rem, 18px) !important;
  line-height: 2 !important;
}

.insight-text-fengshui p {
  font-size: inherit;
  line-height: inherit;
}

.curve-timeline {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.curve-timeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.curve-timeline-path {
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 0.22rem rgba(76, 223, 178, 0.18));
}

.curve-timeline-point {
  fill: #fbfff2;
  stroke: #80df8f;
  stroke-width: 0.6;
}

.curve-timeline-node {
  position: absolute;
  transform: translate(-50%, -50%);
}

.curve-timeline-node.is-top {
  transform: translate(-50%, -118%);
}

.curve-timeline-node.is-bottom {
  transform: translate(-50%, 14%);
}

.curve-timeline-year {
  color: #92e051;
  text-align: center;
  font-size: clamp(18px, 0.26rem, 30px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01rem;
  text-shadow: 0 0 0.12rem rgba(115, 214, 122, 0.16);
}

.curve-timeline-card {
  margin-top: 0.06rem;
  padding: 0.06rem 0.07rem 0.07rem;
  border-left: 1px dashed rgba(255, 255, 255, 0.22);
  color: rgba(231, 242, 255, 0.8);
}

.curve-timeline-title {
  color: var(--text-title-panel);
  font-size: clamp(12px, 0.145rem, 16px);
  font-weight: 800;
  line-height: 1.3;
}

.curve-timeline-desc {
  display: -webkit-box;
  margin-top: 0.03rem;
  overflow: hidden;
  color: var(--text-body);
  font-size: clamp(11px, 0.12rem, 14px);
  line-height: 1.42;
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.curve-timeline--compact .curve-timeline-year {
  font-size: clamp(13px, 0.19rem, 20px);
}

.curve-timeline--compact .curve-timeline-card {
  margin-top: 0.04rem;
  padding: 0.05rem 0.04rem 0.05rem 0.05rem;
}

.curve-timeline--compact .curve-timeline-title {
  font-size: clamp(10px, 0.105rem, 12px);
}

.curve-timeline--compact .curve-timeline-desc {
  font-size: clamp(9px, 0.095rem, 11px);
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.12rem;
  height: 100%;
  align-content: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.zone-card {
  min-height: 1.3rem;
  padding: 0.14rem 0.14rem 0.16rem;
  border: 1px solid rgba(78, 214, 255, 0.24);
  border-radius: 0.12rem;
  background: linear-gradient(180deg, rgba(18, 64, 152, 0.3), rgba(9, 31, 84, 0.18));
  box-shadow: inset 0 0 0.14rem rgba(61, 210, 255, 0.06);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.zone-card:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 225, 255, 0.34);
  box-shadow: inset 0 0 0.14rem rgba(61, 210, 255, 0.08), 0 0 0.18rem rgba(50, 203, 255, 0.08);
}

.timeline-medium.has-source .allnav {
  height: calc(100% - 66px);
}

.timeline-tall.has-source .allnav {
  height: calc(100% - 64px);
}

.zone-name {
  color: var(--text-title-panel);
  font-size: clamp(15px, 0.18rem, 19px);
  font-weight: 800;
  line-height: 1.4;
}

.zone-meta {
  margin-top: 0.08rem;
  color: var(--text-body);
  font-size: clamp(12px, 0.135rem, 15px);
  line-height: 1.52;
  font-weight: 600;
}

.zone-bar {
  height: 0.12rem;
  margin-top: 0.12rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.zone-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26cffd, #73f0b5);
  transform-origin: left center;
  animation: fillGrow 0.95s cubic-bezier(0.2, 0.72, 0.2, 1) both;
  animation-delay: calc(var(--bar-delay, 0) * 1ms);
}

@keyframes panelEnter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fillGrow {
  0% {
    transform: scaleX(0.2);
    opacity: 0.35;
  }

  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes wordFloat {
  0%, 100% {
    opacity: 0.86;
    transform: translate(-50%, -50%) rotate(var(--word-rotate, 0deg)) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--word-rotate, 0deg)) translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-container.active .boxall,
  .page-container.active .bar,
  .page-container.active .map,
  .word-cloud-wrap span,
  .zone-bar span {
    animation: none !important;
  }

  .boxall,
  .bar,
  .map,
  .structure-hotspot,
  .structure-info,
  .curve-timeline-card,
  .compound-flow-node,
  .flow-branch-panel,
  .zone-card,
  .nav-tabs .tab-btn {
    transition: none !important;
  }
}

@media screen and (max-width: 1366px) {
  .head {
    height: 1.16rem;
  }

  .head h1 {
    font-size: clamp(22px, 0.34rem, 34px);
    line-height: 0.72rem;
  }

  .nav-tabs-wrap {
    top: 0.68rem;
  }

  .nav-tabs {
    gap: 0.22rem;
  }

  .nav-tabs .tab-btn {
    font-size: 14px;
  }
}

@media screen and (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .canvas {
    height: 100%;
  }

  .head {
    height: 1.52rem;
    background-size: cover;
  }

  .head h1 {
    padding-top: 0.04rem;
    font-size: clamp(20px, 0.28rem, 28px);
    line-height: 0.56rem;
  }

  .nav-tabs-wrap {
    top: 0.6rem;
    width: 96%;
  }

  .nav-tabs {
    flex-wrap: wrap;
    gap: 0.08rem;
  }

  .nav-tabs .tab-btn {
    padding: 0.06rem 0.13rem;
    font-size: 14px;
  }

  .source-chip {
    padding: 0 0.08rem 0.08rem;
    font-size: 11px;
  }

  .weather {
    top: 0.98rem;
    right: 0.16rem;
    line-height: 0.42rem;
  }

  .weather span {
    font-size: 13px;
  }

  .mainbox {
    padding: 0.1rem;
  }

  .mainbox > ul > li,
  .mainbox > ul > li:nth-child(2),
  #page4.mainbox > ul > li,
  #page4.mainbox > ul > li:nth-child(2) {
    width: 100%;
    padding: 0;
  }

  #page4 .page4-left-top {
    display: block;
    margin-bottom: 0;
  }

  #page4 .page4-half-box {
    margin-bottom: 0.12rem;
  }

  #page4 .page4-tall-box {
    height: calc((100vh - var(--page-head-height) - var(--page-content-gap-top) - 0.22rem) * 0.52) !important;
  }

  .boxall {
    margin-bottom: 0.12rem;
  }

  .boxall.has-source .allnav {
    height: calc(100% - 82px);
  }

  .map {
    height: 5.45rem;
  }

  .map4 {
    top: 1rem;
    height: 4.28rem;
    padding: 0 0.1rem 0.1rem;
  }

  .center-map-title,
  .map-source {
    width: calc(100% - 0.3rem);
  }

  .compound-flow-node {
    min-width: 1.58rem;
    max-width: 1.8rem;
    padding: 0.08rem 0.1rem;
  }

  .compound-flow-node-caption,
  .flow-footer-note,
  .flow-branch-subtitle {
    font-size: 10px;
  }

  .flow-branch-panel {
    padding: 0.08rem 0.08rem 0.1rem;
  }

  .flow-branch-chip {
    font-size: 10px;
    padding: 0.03rem 0.06rem;
  }

  .structure-info {
    min-height: 1.16rem;
    padding: 0.14rem 0.16rem;
  }

  .curve-timeline-year {
    font-size: 14px;
  }

  .curve-timeline-title {
    font-size: 10px;
  }

  .curve-timeline-desc {
    font-size: 9px;
  }

  #page3 > ul > li:nth-child(3) .boxall:nth-child(1) {
    height: 3.85rem !important;
  }

  #page3 > ul > li:nth-child(3) .boxall:nth-child(2),
  #page3 > ul > li:nth-child(3) .boxall:nth-child(3),
  #page3 .timeline-tall {
    height: 6.15rem !important;
  }

  .insight-text-fengshui {
    font-size: 16px !important;
    line-height: 2.05 !important;
    padding: 0.16rem 0.14rem 0.1rem !important;
  }

  .zone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.08rem;
  }

  .zone-card {
    min-height: 0.96rem;
    padding: 0.1rem 0.1rem 0.12rem;
  }

  #page3 .timeline-medium {
    height: 5.4rem !important;
  }

  #page2 .timeline-tall {
    height: 5rem !important;
  }
}
