/* 學習仿頁補充：桌面置中成手機寬，頂欄貼在這一列上 */
html { background: #cfcfcf; }
body {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 24px rgba(0,0,0,.2);
}
.H-header {
  position: sticky;
  left: auto;
  width: 100%;
  z-index: 5000;
}
.H-header .nav {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 5001;
}
.right, .goTop { display: none !important; }
img { max-width: 100%; }
.page-panel { display: none; background: #fff; min-height: 70vh; }
.page-panel.on { display: block; }
#view-home { display: block; }
#view-home.off { display: none; }

.H-header .nav.open { display: block; }
.H-header .nav li.active > .nav-child-list { display: block; }
.H-header .nav dd.active > p { display: block; }
.H-header .lang.active > dl { display: block; }
.H-header .searchBtn .destination ul.open { display: block; }

.sub-box { padding: 0.40816rem 0.20408rem 0.61224rem; }
.sub-box h1 {
  font-size: 0.36735rem;
  color: #333;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.30612rem;
}
.crumb { font-size: 0.22449rem; color: #999; margin-bottom: 0.20408rem; }
.crumb a { color: #d6041d; }
.page-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.24rem;
  padding: 0.08rem 0.04rem;
  font-size: 0.3rem;
  font-weight: 700;
  color: #d6041d;
  line-height: 1.2;
}
.page-back:before {
  content: "";
  display: inline-block;
  width: 0.16rem;
  height: 0.16rem;
  margin-right: 0.12rem;
  border-left: 0.04rem solid #d6041d;
  border-bottom: 0.04rem solid #d6041d;
  transform: rotate(45deg);
}
.warn {
  background: #fff7e8;
  color: #8a5a00;
  font-size: 0.22449rem;
  line-height: 1.6;
  padding: 0.20408rem;
  margin-bottom: 0.20408rem;
}
.sub-box label { display: block; font-size: 0.2449rem; color: #666; margin: 0.20408rem 0 0.10204rem; }
.sub-box select, .sub-box input[type="text"] {
  width: 100%;
  height: 0.79592rem;
  border: 1px solid #dadada;
  background: #eaeaea;
  text-indent: 0.10204rem;
  font-size: 0.2449rem;
  box-sizing: border-box;
}
.sub-box .btn {
  width: 100%;
  height: 0.79592rem;
  margin-top: 0.30612rem;
  background: #d6041d;
  color: #fff;
  font-size: 0.28571rem;
  border: 0;
}
.list-row {
  padding: 0.30612rem 0;
  border-bottom: 1px solid #d6d6d6;
}
.list-row h3 { font-size: 0.28571rem; color: #333; }
.list-row p, .list-row time { font-size: 0.2449rem; color: #666; margin-top: 0.10204rem; }
.list-row .tag { font-size: 0.20408rem; color: #d6041d; }
.dest-grid { overflow: hidden; border-top: 1px solid #d6d6d6; }
.dest-grid a {
  float: left;
  width: 50%;
  box-sizing: border-box;
  padding: 0.30612rem 0.20408rem;
  border-bottom: 1px solid #d6d6d6;
  border-right: 1px solid #d6d6d6;
  font-size: 0.26531rem;
  color: #333;
}
.help-grid { overflow: hidden; }
.help-grid a {
  float: left;
  width: 50%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.40816rem 0.10204rem;
  font-size: 0.26531rem;
  color: #333;
}
.help-grid a span {
  display: block;
  width: 0.91837rem;
  height: 0.91837rem;
  line-height: 0.91837rem;
  margin: 0 auto 0.15306rem;
  background: #f5f5f5;
  border-radius: 50%;
  color: #d6041d;
  font-size: 0.22449rem;
  font-weight: 700;
}
.useCard ul li a[data-go="chat"] p {
  height: auto;
  min-height: 1.2rem;
  padding-top: 0.22rem;
  padding-bottom: 0.22rem;
}
.useCard ul li a[data-go="chat"] p span {
  font-size: 0.42rem;
  font-weight: 700;
  color: #d6041d;
  line-height: 1.25;
  margin-bottom: 0.1rem;
}
.help-grid a[data-go="chat"] {
  font-size: 0.34rem;
  font-weight: 700;
  color: #d6041d;
}
.article { font-size: 0.26531rem; color: #333; line-height: 1.8; }
.article h1 { text-align: left; margin-bottom: 0.20408rem; }
.rate-box { background: #f5f5f5; text-align: center; padding: 0.40816rem; margin-top: 0.20408rem; }
.rate-box b { display: block; font-size: 0.4898rem; color: #d6041d; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  font-size: 0.2449rem;
  z-index: 9000;
  display: none;
}
.toast.on { display: block; }
.banner-slide { display: none; }
.banner-slide.on { display: block; }
.learn-flag { font-size: 0.20408rem; color: #999; text-align: center; padding: 0.2rem; }

.chat-dock {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 4000;
  pointer-events: none;
}
.chat-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, .45);
  z-index: 1;
  pointer-events: auto;
}
.chat-mask.on { display: block; }
.chat-box {
  display: none;
  position: fixed;
  left: 0.28rem;
  right: 0.28rem;
  top: 1.22rem;
  bottom: 0.22rem;
  height: auto;
  max-height: none;
  background: #f7f8fa;
  border-radius: 0.28rem;
  box-shadow: 0 0.22rem 0.7rem rgba(17, 24, 39, .28);
  z-index: 2;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.6);
  pointer-events: auto;
  min-height: 0;
}
.chat-box.on { display: flex; }
@media (max-width: 860px) {
  .chat-box.on {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
  }
  .chat-ft input[type="text"] {
    font-size: 16px;
  }
  .chat-ft button {
    font-size: 16px;
  }
}
html.chat-open,
html.chat-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.chat-hd {
  background: linear-gradient(180deg, #e11d2e 0%, #c20118 100%);
  color: #fff;
  padding: 0.26rem 0.22rem 0.26rem 0.28rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-agent { display: flex; align-items: center; gap: 0.18rem; min-width: 0; }
.chat-ava {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.26rem;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-who { min-width: 0; }
.chat-who strong {
  display: block;
  font-size: 0.36rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.chat-who span {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.2rem;
  opacity: .92;
}
.chat-hd .chat-ava img,
.chat-row .chat-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.chat-close {
  width: 0.56rem;
  height: 0.56rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.16);
  color: #fff;
  font-size: 0.42rem;
  line-height: 0.5rem;
  cursor: pointer;
}
.chat-bd {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #eef1f5;
  padding: 0.28rem 0.24rem 0.16rem;
  -webkit-overflow-scrolling: touch;
}
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.12rem;
  margin-bottom: 0.22rem;
  max-width: 86%;
}
.chat-row .chat-ava {
  width: 0.52rem;
  height: 0.52rem;
  font-size: 0.2rem;
  background: #fff;
  color: #d6041d;
  border: 1px solid #f0d0d3;
}
.chat-bubble p {
  margin: 0;
  padding: 0.16rem 0.22rem;
  border-radius: 0.22rem 0.22rem 0.22rem 0.06rem;
  font-size: 0.2449rem;
  line-height: 1.55;
  word-break: break-word;
  background: #fff;
  color: #222;
  box-shadow: 0 0.04rem 0.12rem rgba(0,0,0,.04);
}
.chat-bubble time {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.18rem;
  color: #9aa0a6;
}
.chat-row.me {
  margin-left: auto;
  flex-direction: row-reverse;
}
.chat-row.me .chat-ava {
  background: #d6041d;
  color: #fff;
  border-color: #d6041d;
}
.chat-row.me .chat-bubble p {
  background: #d6041d;
  color: #fff;
  border-radius: 0.22rem 0.22rem 0.06rem 0.22rem;
}
.chat-row.me .chat-bubble time { text-align: right; }
.chat-row.sys {
  display: block;
  max-width: 100%;
  text-align: center;
  margin: 0.12rem 0 0.2rem;
}
.chat-row.sys em {
  display: inline-block;
  font-style: normal;
  font-size: 0.2rem;
  color: #8b9198;
  background: rgba(255,255,255,.7);
  padding: 0.06rem 0.16rem;
  border-radius: 999px;
}
.chat-ft {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.16rem 0.16rem calc(0.18rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eceff3;
  flex-shrink: 0;
}
.chat-ft input[type="text"] {
  flex: 1;
  height: 0.78rem;
  border: 0;
  border-radius: 0.39rem;
  padding: 0 0.24rem;
  font-size: 0.26rem;
  background: #f3f5f7;
  color: #222;
}
.chat-attach {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: #f3f5f7;
  color: #d6041d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.42rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.chat-attach input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 0;
  cursor: pointer;
}
.chat-bubble img.chat-media,
.chat-bubble video.chat-media {
  display: block;
  max-width: 4.4rem;
  max-height: 4.4rem;
  border-radius: 0.16rem;
  background: #000;
}
.chat-row.me .chat-bubble img.chat-media,
.chat-row.me .chat-bubble video.chat-media {
  margin-left: auto;
}
.chat-ft button {
  height: 0.78rem;
  min-width: 1.4rem;
  padding: 0 0.22rem;
  border: 0;
  border-radius: 0.39rem;
  background: #d6041d;
  color: #fff;
  font-size: 0.26rem;
  cursor: pointer;
}
