:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --paper: #fff;
  --ink: #1c2d28;
  --muted: #576961;
  --soft: #748079;
  --line: #dfe5df;
  --line-dark: #cbd7cf;
  --green: #174e3f;
  --green-2: #286b53;
  --tint: #e9f1eb;
  --radius: 13px;
  font:
    100%/1.56 'DM Sans',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
a {
  color: var(--green);
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: transparent;
  border: 0;
}
button:disabled {
  cursor: default;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #438b72;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button {
  padding: 0;
}
a,
button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1280px, calc(100% - clamp(40px, 8vw, 144px)));
  margin-inline: auto;
}
.visually-hidden,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 20;
  background: white;
  top: 4px;
  left: 4px;
  padding: 0.55rem 1rem;
}
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Travel icons';
  font-size: 1.15em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  speak: never;
}
.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: clamp(2rem, 6vw, 7rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 1.15rem;
  color: var(--green);
  font-weight: 750;
  letter-spacing: 0.035em;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--green);
  outline: 1px solid rgba(23, 78, 63, 0.15);
  outline-offset: 2px;
}
.brand-mark:before {
  content: '';
  position: absolute;
  width: 23px;
  height: 23px;
  border: 1px solid #a6c7b4;
  border-radius: 50%;
}
.needle {
  position: relative;
  width: 8px;
  height: 22px;
  transform: rotate(36deg);
}
.needle:before,
.needle:after {
  content: '';
  position: absolute;
  left: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.needle:before {
  top: 0;
  border-bottom: 13px solid #f3ffea;
}
.needle:after {
  bottom: 0;
  border-top: 10px solid #8fbc9d;
}
.nav {
  align-self: stretch;
  display: flex;
  gap: clamp(1.25rem, 2.8vw, 2.6rem);
}
.nav a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding: 0.25rem 0.04rem 0;
  color: #5e6e65;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 550;
}
.nav a[aria-current='page'] {
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.nav a:hover {
  color: var(--green);
}
.saved-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--green);
  white-space: nowrap;
  font-size: 0.91rem;
  font-weight: 630;
  padding: 0.45rem 0.75rem;
  border: 1px solid #d7e2d8;
  background: #f5f8f3;
  border-radius: 8px;
}
.saved-nav:hover,
.saved-nav[aria-current='page'] {
  background: #e5f0e8;
  border-color: #b7ccbf;
}
.saved-count {
  min-width: 20px;
  padding: 0 0.3rem;
  line-height: 20px;
  border-radius: 5px;
  text-align: center;
  background: #e2ebe2;
  color: #3b5f4e;
  font-size: 0.8rem;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-top: 25px;
  height: clamp(225px, 19.1vw, 280px);
  background: #204b42;
  color: white;
}
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-image {
  object-fit: cover;
  object-position: center 53%;
}
.hero-shade {
  background:
    linear-gradient(
      94deg,
      rgba(11, 41, 33, 0.94) 0%,
      rgba(18, 49, 39, 0.83) 24%,
      rgba(17, 44, 39, 0.39) 53%,
      rgba(15, 33, 27, 0.06) 83%
    ),
    linear-gradient(0deg, rgba(14, 39, 31, 0.24), transparent 48%);
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 20px clamp(25px, 3.7vw, 58px);
  width: 75%;
  max-width: 785px;
}
.issue-date {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 620;
  letter-spacing: 0.13em;
  color: #e8eee1;
  font-variant-numeric: tabular-nums;
}
.issue-date .ico {
  font-size: 1.1rem;
}
.date-rule {
  width: 24px;
  height: 1px;
  background: #adc2af;
}
.hero h1 {
  font-family:
    'Travel Display', 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'SimSun',
    serif;
  font-size: clamp(3.05rem, 4.15vw, 4.4rem);
  letter-spacing: 0.045em;
  line-height: 1.19;
  font-weight: 700;
  margin: 0.32rem 0 0.45rem;
  color: #fffdf1;
}
.hero-sub {
  font-size: clamp(0.98rem, 1.1vw, 1.18rem);
  letter-spacing: 0.035em;
  color: #f0f4e9;
}
.hero-facts {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(0.85rem, 1.25vw, 1.45rem);
  color: #e2e9dd;
  font-size: 0.9rem;
}
.hero-facts span + span {
  border-left: 1px solid rgba(232, 245, 226, 0.37);
  padding-left: 1.1rem;
}
.hero-facts strong {
  color: #fffdf1;
  font-weight: 650;
  font-size: 1.09rem;
  margin-right: 0.14rem;
}
.photo-place {
  position: absolute;
  bottom: 17px;
  right: 19px;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: white;
  background: rgba(16, 39, 30, 0.57);
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  font-size: 0.77rem;
  letter-spacing: 0.035em;
}
.photo-place:hover {
  background: rgba(15, 45, 31, 0.85);
}
.view {
  padding-top: clamp(22px, 2.5vw, 38px);
}
.head-row,
.section-heading {
  display: flex;
  align-items: center;
}
.head-row {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.section-heading {
  gap: 0.65rem;
}
.section-heading h2,
.anchor-section h2 {
  font-size: clamp(1.43rem, 1.85vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.result-count {
  background: #e7eee7;
  color: #365d48;
  padding: 0.14rem 0.52rem;
  border: 1px solid #dce6dc;
  border-radius: 5px;
  white-space: nowrap;
  font-weight: 650;
  font-size: 0.83rem;
  line-height: 1.4;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid var(--line-dark);
  background: white;
  border-radius: 8px;
  padding: 0 0.78rem;
  width: clamp(218px, 19vw, 285px);
  height: 39px;
  color: #5a7165;
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 0.9rem;
}
.search input:focus-visible {
  outline: none;
}
.search:focus-within {
  outline: 2px solid #83a995;
  outline-offset: 1px;
}
.search input::placeholder {
  color: #78847d;
}
.data-panel,
.sheet,
.criteria,
.reading,
.references,
.transfer-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--paper);
}
.data-panel {
  overflow: hidden;
}
.filters {
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.filter-group {
  min-width: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.37rem;
  margin-right: 0.35rem;
  font-size: 0.89rem;
  font-weight: 610;
  color: #4b5e52;
}
.filter-caption .ico {
  font-size: 1.1rem;
}
.select-wrap,
.sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid #dce3dc;
  border-radius: 7px;
  background: #fff;
}
.select-wrap:after,
.sort-wrap:after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-right: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  transform: rotate(45deg);
  right: 12px;
  top: calc(50% - 4px);
  color: #61776b;
  pointer-events: none;
}
.select-wrap select,
.sort-wrap select,
.page-size select {
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  min-height: 34px;
  padding: 4px 30px 4px 11px;
  border-radius: inherit;
  outline-offset: 2px;
  font-size: 0.9rem;
}
.select-wrap:hover,
.sort-wrap:hover {
  border-color: #a8c0ad;
}
.select-wrap.active {
  background: #edf6ee;
  border-color: #b4cbbb;
}
.sort-wrap {
  border-color: transparent;
  background: transparent;
  flex-shrink: 0;
  color: #4e6658;
}
.sort-wrap .ico {
  margin-left: 4px;
}
.sort-wrap select {
  padding-left: 5px;
}
.clear-filters {
  font-size: 0.87rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--green);
  padding: 0.28rem 0.15rem;
}
.routes-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1rem;
}
.routes-table th {
  font-size: 0.86rem;
  color: #53675b;
  text-align: left;
  font-weight: 580;
  line-height: 1.4;
  padding: 11px 10px;
  background: #f0f4ee;
  border-bottom: 1px solid var(--line);
}
.routes-table th:first-child {
  width: 9%;
  padding-left: 20px;
}
.routes-table th:nth-child(2) {
  width: 23%;
}
.routes-table th:nth-child(3) {
  width: 20%;
}
.routes-table th:nth-child(4) {
  width: 16%;
}
.routes-table th:nth-child(5) {
  width: 17%;
}
.routes-table th:nth-child(6) {
  width: 11%;
}
.routes-table th:last-child {
  width: 4%;
  text-align: center;
  padding-left: 0;
  padding-right: 12px;
}
.routes-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #e6eae5;
  line-height: 1.4;
  vertical-align: middle;
}
.routes-table td:first-child {
  padding-left: 20px;
}
.routes-table td:last-child {
  padding-left: 0;
  padding-right: 12px;
  text-align: center;
}
.routes-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.routes-table tbody tr:hover,
.routes-table tbody tr:focus-within {
  background: #f6f9f5;
}
.province {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 5px;
  background: #edf3ec;
  color: #3f6551;
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 650;
  white-space: nowrap;
}
.route-name {
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #203d31;
  font-size: 1rem;
}
.route-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.route-id {
  display: block;
  font-size: 0.75rem;
  font-weight: 560;
  color: #728178;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.route-cell .late {
  color: #99552d;
}
.scene-cell {
  color: #46574d;
  font-size: 0.94rem;
}
.climate {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  border-radius: 5px;
  padding: 0.13rem 0.42rem;
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 550;
}
.climate.warm {
  background: #fff0d7;
  color: #865319;
}
.climate.mild {
  background: #eef2dc;
  color: #536127;
}
.climate.cool {
  background: #e9eff3;
  color: #455f71;
}
.climate-extra {
  display: block;
  color: #627467;
  font-size: 0.77rem;
  line-height: 1.35;
  margin-top: 3px;
}
.price-cell,
.trip-price {
  color: var(--green);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-cell {
  font-size: 1.03rem;
  letter-spacing: -0.027em;
}
.currency {
  font-size: 0.85em;
  margin-right: 1px;
}
.days-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #394d40;
}
.icon-button {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  color: #678071;
  border-radius: 6px;
}
.icon-button .ico {
  font-size: 1.2rem;
}
.icon-button:hover {
  color: var(--green);
  background: var(--tint);
}
.is-saved,
.is-saved .ico {
  color: #176544;
}
.is-saved .ico {
  text-shadow: 0 0 0.5px currentColor;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
}
.pager-info,
.page-size {
  color: var(--muted);
  font-size: 0.82rem;
}
.pager-info {
  font-variant-numeric: tabular-nums;
}
.pager-right,
.page-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pager-right {
  gap: 14px;
}
.page-button {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  height: 31px;
  padding: 0 0.3rem;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.87rem;
}
.page-button.current {
  background: var(--green);
  color: white;
}
.page-button:disabled {
  opacity: 0.37;
}
.page-button:hover:not(.current, :disabled) {
  background: var(--tint);
}
.page-size.select-wrap select {
  font-size: 0.8rem;
  min-height: 29px;
}
.method-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #59695e;
  font-size: 0.81rem;
  margin: 12px 2px;
}
.method-line .ico {
  margin-top: 0.19rem;
}
.footer {
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: #68776d;
}
.footer b {
  margin: 0 0.2rem;
}
.saved-help,
.section-blurb {
  color: var(--muted);
  margin: 0.4rem 0 1rem;
  font-size: 0.94rem;
}
.empty {
  text-align: center;
  padding: 40px 18px;
}
.empty .ico {
  font-size: 2rem;
  color: #71947e;
}
.empty h3 {
  margin: 0.6rem 0 0.25rem;
}
.empty p {
  color: var(--muted);
}
.empty button,
.primary {
  background: var(--green);
  color: white;
  border-radius: 7px;
  padding: 0.45rem 0.9rem;
  margin-top: 0.85rem;
  font-weight: 600;
}
.secondary-view {
  padding-top: 32px;
}
.secondary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
  padding: 0 0 22px;
}
.secondary-head h1 {
  font-family: 'Travel Display', 'Songti SC', 'STSong', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 0.035em;
  margin: 0.15rem 0 0.33rem;
}
.head-meta,
.small-title {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--green);
  letter-spacing: 0.05em;
}
.secondary-head p:last-child:not(:first-child) {
  color: var(--muted);
}
.download {
  border: 1px solid #bbcfc0;
  border-radius: 8px;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: white;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}
.download:hover,
.subnav a:hover,
.file-link:hover {
  background: var(--tint);
}
.subnav {
  display: flex;
  gap: 1.45rem;
  flex-wrap: wrap;
  padding: 14px 0 0;
}
.subnav a {
  border-bottom: 1px solid #9db3a5;
  font-size: 0.9rem;
  color: #476552;
}
.anchor-section {
  scroll-margin-top: 20px;
  margin-top: 32px;
}
.anchor-section > h2,
.anchor-section > h3 {
  margin: 0 0 12px;
}
.anchor-section > h3 {
  margin-top: 25px;
  font-size: 1.2rem;
}
.anchor-section .head-row {
  margin-bottom: 12px;
}
.sheet {
  overflow: hidden;
}
.gw-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.gw-table th,
.gw-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.gw-table tr:last-child td {
  border-bottom: none;
}
.gw-table th {
  background: #edf3ec;
  color: #4e6756;
  font-size: 0.86rem;
}
.gw-table th:first-child {
  width: 20%;
}
.gw-table th:nth-child(2),
.gw-table th:nth-child(3) {
  width: 40%;
}
.gateway-title {
  font-size: 1rem;
  font-weight: 680;
  color: #234736;
}
.gate-routes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.gate-routes a {
  font-size: 0.77rem;
  font-variant-numeric: tabular-nums;
  background: var(--tint);
  border-radius: 4px;
  padding: 2px 5px;
}
.leg {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 4px;
  font-size: 0.94rem;
  color: #3b5043;
  line-height: 1.6;
}
.leg + .leg {
  margin-top: 4px;
}
.leg b {
  padding-top: 0.05rem;
  font-size: 0.8rem;
  color: #627a68;
}
.gw-mobile {
  display: none;
}
.reading,
.criteria,
.references {
  padding: 18px 22px;
}
.reading p + p {
  margin-top: 9px;
}
.reading a,
.references a,
.source-link,
.detail-content .file-link,
.note-row a,
.study a {
  color: #23664c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.criteria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.criteria > div + div {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.criteria p {
  margin-top: 5px;
}
.reading p,
.criteria p,
.ref-note,
.study p {
  color: #47594e;
}
.research-note {
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}
.research-note:last-child {
  border-bottom: 0;
}
.research-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  cursor: pointer;
  font-weight: 630;
  color: #264833;
  list-style: none;
}
.research-note summary::-webkit-details-marker {
  display: none;
}
.research-note summary:after {
  content: '+';
  color: #68836e;
  font-weight: 450;
  font-size: 1.25rem;
}
.research-note[open] summary:after {
  content: '−';
}
.research-note p {
  padding: 0 0 14px;
  color: #45564a;
}
.research-note a,
.transfer-card a {
  color: var(--green);
  text-decoration: underline;
}
.transfer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr));
  gap: 12px;
}
.transfer-card {
  padding: 15px 17px;
}
.transfer-card h4 {
  font-size: 1rem;
  color: #234536;
  margin-bottom: 6px;
}
.transfer-card p {
  color: #495d50;
  font-size: 0.93rem;
}
.transfer-card .transfer-fare {
  padding: 6px 0;
  font-size: 0.89rem;
  color: var(--green);
  font-weight: 650;
}
.small-label {
  color: #6d8172;
  font-weight: 500;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.study {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.study-meta {
  font-size: 0.83rem;
  color: #647969;
  margin-bottom: 4px;
}
.study a {
  font-weight: 650;
}
.study p {
  margin-top: 5px;
  font-size: 0.93rem;
}
.ref-group + .ref-group {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.ref-group strong {
  font-size: 0.93rem;
  margin-right: 6px;
}
.ref-group a {
  display: inline-block;
  font-size: 0.91rem;
  margin: 2px 12px 1px 0;
}
.file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}
.photo-license {
  font-size: 0.81rem;
  color: #6b7a70;
  margin-top: 12px;
}
.photo-license a {
  text-decoration: underline;
}
.detail-content a:hover,
.file-links a:hover,
.study a:hover {
  color: #164b37;
}
.saved-help {
  margin-top: -3px;
}
.secondary-view .head-row .gate-select {
  min-width: 125px;
}
.secondary-view .head-row .gate-select select {
  width: 100%;
}
.toast {
  position: fixed;
  bottom: 21px;
  left: 50%;
  transform: translate(-50%, 15px);
  z-index: 20;
  background: #234f3f;
  border: 1px solid #436d56;
  box-shadow: 0 6px 18px #122e2620;
  color: white;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.16s,
    transform 0.16s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.dialog-open {
  overflow: hidden;
}
dialog {
  color: var(--ink);
  border: 0;
  border-left: 1px solid #c8d6ca;
  padding: 0;
  margin: 0 0 0 auto;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 580px);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: #f8faf6;
  box-shadow: -12px 0 50px #173c2926;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: rgba(16, 35, 26, 0.42);
  backdrop-filter: blur(2px);
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 22px;
  background: #fff;
  flex: none;
}
.detail-actions > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
#detail-kicker {
  color: #53715c;
  font-size: 0.85rem;
  letter-spacing: 0.065em;
  font-weight: 650;
}
.save-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.32rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9f6;
}
.save-detail.is-saved {
  background: #dfecde;
}
.detail-content {
  padding: 24px clamp(17px, 3vw, 30px) 38px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.detail-content h2 {
  line-height: 1.25;
  font-size: clamp(1.8rem, 4.3vw, 2.15rem);
  letter-spacing: -0.025em;
  color: #1f4130;
  margin: 8px 0;
}
.detail-intro {
  color: #4f6558;
  font-size: 1rem;
  line-height: 1.7;
}
.detail-metrics {
  display: grid;
  grid-template-columns: 1.18fr 0.85fr 1fr;
  gap: 8px;
  margin: 16px 0 22px;
}
.detail-metrics > div {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 10px;
}
.detail-metrics small {
  display: block;
  color: #677970;
  font-size: 0.78rem;
}
.detail-metrics strong {
  display: block;
  font-size: 0.99rem;
  margin-top: 2px;
}
.detail-content h3 {
  font-size: 1.15rem;
  color: #244a35;
  margin: 20px 0 10px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.timeline li {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  padding: 12px 15px;
  position: relative;
}
.timeline li + li {
  border-top: 1px solid #edf0ec;
}
.timeline time {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--green);
}
.timeline time small {
  display: block;
  color: #728074;
  font-size: 0.76rem;
  font-weight: 450;
}
.timeline li > span {
  font-size: 0.99rem;
}
.traveler-card,
.ground {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 9px;
}
.traveler-card h4 {
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #264d36;
  margin: 0 0 7px;
}
.detail-leg {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 4px 0;
}
.detail-leg > span {
  font-size: 0.8rem;
  color: #526e5c;
  padding-top: 0.11rem;
}
.detail-leg p {
  font-size: 0.94rem;
  color: #354e3f;
}
.ref-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 5px;
}
.ref-links a,
.detail-content .file-link {
  font-size: 0.85rem;
}
.ground {
  font-size: 0.96rem;
  color: #405747;
}
.note-row {
  font-size: 0.94rem;
  padding: 6px 0;
}
.no-scroll {
  overflow: hidden;
}
.mobile-view-label {
  display: none;
}
@media (min-width: 1550px) {
  .hero {
    margin-top: 30px;
  }
  .routes-table td {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }
  .top-inner {
    gap: 2.5rem;
  }
  .filters {
    align-items: flex-start;
  }
  .filter-caption {
    display: none;
  }
  .routes-table th:first-child {
    width: 8%;
    padding-left: 12px;
  }
  .routes-table td:first-child {
    padding-left: 12px;
  }
  .routes-table th:nth-child(2) {
    width: 22%;
  }
  .routes-table th:nth-child(3) {
    width: 17%;
  }
  .routes-table th:nth-child(4) {
    width: 17%;
  }
  .routes-table th:nth-child(5) {
    width: 19%;
  }
  .routes-table th:nth-child(6) {
    width: 12%;
  }
  .routes-table th:last-child {
    width: 5%;
  }
  .routes-table th,
  .routes-table td {
    padding-left: 7px;
    padding-right: 7px;
  }
  .select-wrap select {
    font-size: 0.88rem;
  }
  .hero-content {
    width: 80%;
  }
}
@media (max-width: 760px) {
  .mobile-view-label {
    display: inline;
  }
  .shell {
    width: calc(100% - 28px);
  }
  .top-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0 10px;
    padding-top: 8px;
  }
  .brand {
    grid-column: 1/3;
    font-size: 1.08rem;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
  }
  .brand-mark:before {
    width: 20px;
    height: 20px;
  }
  .needle {
    transform: rotate(36deg) scale(0.85);
  }
  .saved-nav {
    grid-column: 3;
    grid-row: 1;
    min-height: 34px;
    padding: 0.27rem 0.5rem;
    font-size: 0.86rem;
  }
  .nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: flex-start;
    gap: 1.75rem;
    margin-top: 3px;
  }
  .nav a {
    padding: 6px 1px 8px;
    font-size: 0.91rem;
  }
  .hero {
    margin-top: 15px;
    height: 213px;
    border-radius: 12px;
  }
  .hero-image {
    object-position: 65% 53%;
  }
  .hero-content {
    padding: 17px 20px;
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(2.55rem, 7.8vw, 3.35rem);
    margin: 0.45rem 0;
  }
  .hero-sub {
    font-size: 0.94rem;
    max-width: 36ch;
    line-height: 1.5;
  }
  .issue-date {
    font-size: 0.77rem;
    gap: 0.45rem;
  }
  .hero-facts {
    gap: 0.6rem;
    font-size: 0.79rem;
    margin-top: 1rem;
  }
  .hero-facts span + span {
    padding-left: 0.6rem;
  }
  .hero-facts strong {
    font-size: 0.95rem;
  }
  .photo-place {
    right: 8px;
    bottom: 7px;
    font-size: 0.7rem;
    padding: 0.14rem 0.35rem;
  }
  .view {
    padding-top: 20px;
  }
  .head-row {
    gap: 9px;
    margin-bottom: 10px;
  }
  .section-heading {
    gap: 0.4rem;
  }
  .search {
    width: min(49%, 215px);
    height: 35px;
    padding: 0 0.5rem;
    gap: 0.33rem;
  }
  .search input {
    font-size: 0.83rem;
  }
  .filters {
    padding: 10px;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
  }
  .filter-group {
    flex: 1 1 100%;
    gap: 5px;
  }
  .select-wrap select,
  .sort-wrap select {
    min-height: 34px;
    padding-left: 7px;
    padding-right: 23px;
    font-size: 0.82rem;
  }
  .select-wrap:after,
  .sort-wrap:after {
    right: 9px;
  }
  .sort-wrap {
    margin-left: auto;
  }
  .sort-wrap select {
    min-height: 28px;
  }
  .routes-table,
  .routes-table tbody,
  .routes-table tr,
  .routes-table td {
    display: block;
    width: auto;
  }
  .routes-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .routes-table tr {
    display: grid;
    grid-template-columns: 1fr auto 33px;
    grid-template-areas: 'route route mark' 'scene scene scene' 'weather weather weather' 'price days days';
    align-items: center;
    gap: 5px 8px;
    padding: 13px 13px 14px;
    border-bottom: 1px solid var(--line);
  }
  .routes-table td,
  .routes-table td:first-child,
  .routes-table td:last-child {
    padding: 0;
    border: 0;
  }
  .routes-table .province-cell {
    grid-area: route;
    align-self: start;
    justify-self: start;
  }
  .province {
    font-size: 0.79rem;
    padding: 0.14rem 0.43rem;
  }
  .route-cell {
    grid-area: route;
    margin-left: 3rem;
    display: flex !important;
    align-items: center;
    gap: 5px;
    min-width: 0;
  }
  .route-name {
    font-size: 1rem;
    line-height: 1.4;
  }
  .route-id {
    display: none;
  }
  .scene-cell {
    grid-area: scene;
    font-size: 0.84rem;
    margin-left: 3rem;
  }
  .weather-cell {
    grid-area: weather;
    display: flex !important;
    gap: 7px;
    align-items: center;
    margin: 0.12rem 0 0.12rem 3rem;
  }
  .climate {
    font-size: 0.76rem;
  }
  .climate-extra {
    font-size: 0.77rem;
    margin: 0;
  }
  .price-cell {
    grid-area: price;
    font-size: 1.03rem;
  }
  .days-cell {
    grid-area: days;
    font-size: 0.9rem;
    text-align: right;
  }
  .price-cell:before {
    content: '两人交通';
    font:
      500 0.76rem/1 'PingFang SC',
      sans-serif;
    color: #6d7b70;
    margin-right: 6px;
  }
  .days-cell:before {
    content: '同游';
    color: #6d7b70;
    font-size: 0.76rem;
    margin-right: 4px;
  }
  .bookmark-cell {
    grid-area: mark;
    align-self: start;
  }
  .bookmark-cell .icon-button {
    width: 33px;
    height: 30px;
  }
  .pager {
    padding: 9px 10px;
    flex-wrap: wrap;
    row-gap: 7px;
  }
  .pager-right {
    gap: 5px;
    flex-wrap: wrap;
  }
  .page-button {
    min-width: 26px;
    height: 28px;
  }
  .method-line {
    font-size: 0.79rem;
  }
  .footer {
    margin-top: 23px;
    padding-top: 13px;
    flex-wrap: wrap;
  }
  .secondary-head {
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 15px;
  }
  .secondary-head h1 {
    margin: 0.15rem 0;
    font-size: 2.05rem;
  }
  .secondary-head p:last-child {
    font-size: 0.9rem;
  }
  .secondary-head .download {
    font-size: 0.8rem;
    padding: 0.32rem 0.46rem;
  }
  .subnav {
    gap: 0.7rem;
    padding-top: 10px;
  }
  .subnav a {
    font-size: 0.82rem;
  }
  .anchor-section {
    margin-top: 23px;
  }
  .gw-table,
  .gw-table tbody,
  .gw-table tr,
  .gw-table td {
    display: block;
    width: auto;
  }
  .gw-table thead {
    display: none;
  }
  .gw-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .gw-table tr:last-child {
    border-bottom: 0;
  }
  .gw-table td {
    padding: 0;
    border: 0;
  }
  .gw-table td:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .gate-routes {
    margin: 0;
  }
  .gw-mobile {
    display: block;
    color: var(--green);
    font-weight: 650;
    font-size: 0.85rem;
    margin: 8px 0 2px;
  }
  .leg {
    font-size: 0.9rem;
  }
  .criteria {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .criteria > div + div {
    padding: 11px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .reading,
  .criteria,
  .references {
    padding: 13px 15px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .detail-actions {
    padding: 8px 15px;
  }
  .detail-content {
    padding: 17px 15px 25px;
  }
  .detail-metrics {
    gap: 5px;
  }
  .detail-metrics > div {
    padding: 7px;
  }
  .detail-metrics strong {
    font-size: 0.88rem;
  }
  .timeline li {
    grid-template-columns: 49px 1fr;
    padding: 10px 12px;
    gap: 8px;
  }
  .transfer-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
