.tg-guide {
  --tg-ink: #262a2d;
  --tg-ink-soft: #5b6266;
  --tg-ink-faint: #8b9195;
  --tg-paper: #f6f5f3;
  --tg-card: #ffffff;
  --tg-line: #e4e3df;
  --tg-gold: #c08f2c;
  --tg-gold-soft: #f9f0d8;
  --tg-maple: #b8412a;
  --tg-maple-soft: #fbe2db;
  --tg-jade: #3f6b52;
  --tg-jade-soft: #e3efe6;
  --tg-slate-soft: #ebeef0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--tg-ink);
  background: var(--tg-paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
}

.tg-guide *,
.tg-guide *::before,
.tg-guide *::after {
  box-sizing: border-box;
}

.guide-view-card.tg-generated {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guide-view-card.tg-generated .guide-view-head {
  position: absolute;
  z-index: 20;
  top: 20px;
  right: 20px;
  max-width: calc(100% - 40px);
  padding: 0;
  border: 0;
}

.guide-view-card.tg-generated .guide-view-head > div:first-child {
  display: none;
}

.guide-view-card.tg-generated .guide-actions .btn {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 6px 20px rgba(20, 31, 25, 0.16);
}

.guide-view-card.tg-generated .guide-article {
  padding: 0;
  color: var(--tg-ink);
  font-size: 15px;
  line-height: 1.75;
}

.tg-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 30px 52px;
  color: #f5f6f4;
  background:
    radial-gradient(1100px 390px at 12% -12%, rgba(192, 143, 44, 0.34), transparent 60%),
    radial-gradient(900px 360px at 88% 5%, rgba(184, 65, 42, 0.36), transparent 62%),
    linear-gradient(160deg, #20272c 0%, #31403c 46%, #47544c 100%);
}

.tg-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 38px;
  background: var(--tg-paper);
  content: "";
  clip-path: ellipse(60% 100% at 50% 100%);
}

.tg-hero-inner,
.tg-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.tg-hero-inner {
  position: relative;
  z-index: 1;
}

.tg-kicker,
.tg-chip,
.tg-toc-item {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.tg-kicker {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.14);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.tg-hero h1 {
  max-width: 760px;
  margin: 18px 0 10px;
  color: #f5f6f4;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.tg-hero-sub {
  max-width: 760px;
  margin: 0;
  color: rgba(245,246,244,0.88);
  font-size: 17px;
  line-height: 1.75;
}

.tg-chips,
.tg-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tg-chips {
  margin-top: 24px;
}

.tg-chip {
  padding: 6px 13px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f5f6f4;
  background: rgba(255,255,255,0.12);
  font-size: 12.5px;
}

.tg-toc {
  margin-top: 20px;
}

.tg-toc-item {
  padding: 5px 11px;
  color: #4f5a54;
  background: rgba(255,255,255,0.9);
  font-size: 11.5px;
}

.tg-wrap {
  padding: 0 28px 54px;
}

.tg-section {
  margin-top: 50px;
}

.tg-section-head,
.tg-subhead,
.tg-spot-head,
.tg-day-head,
.tg-food-head,
.tg-gallery-head {
  display: flex;
  align-items: flex-start;
}

.tg-section-head {
  gap: 13px;
  align-items: baseline;
  margin-bottom: 7px;
}

.tg-section-num {
  flex: none;
  padding: 3px 9px;
  border-radius: 8px;
  color: #8a5a14;
  background: var(--tg-gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tg-section h2 {
  margin: 0;
  color: var(--tg-ink);
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.tg-section-desc {
  margin: 0 0 20px;
  color: var(--tg-ink-faint);
  font-size: 13.5px;
}

.tg-grid {
  display: grid;
  gap: 16px;
}

.tg-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tg-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-card,
.tg-spot,
.tg-day {
  border: 1px solid var(--tg-line);
  border-radius: 16px;
  background: var(--tg-card);
  box-shadow: 0 1px 2px rgba(38,42,45,0.04), 0 8px 24px -14px rgba(38,42,45,0.2);
}

.tg-card {
  padding: 18px 20px;
}

.tg-card h3,
.tg-spot h3,
.tg-day h3,
.tg-gallery h3 {
  margin: 0 0 7px;
  color: var(--tg-ink);
  font-size: 17px;
  line-height: 1.45;
}

.tg-card p,
.tg-spot p {
  margin: 7px 0 0;
  color: var(--tg-ink-soft);
  font-size: 13.5px;
  line-height: 1.72;
}

.tg-stat-label,
.tg-mini-label {
  display: block;
  color: var(--tg-ink-faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tg-stat-value {
  margin-top: 3px;
  color: var(--tg-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.tg-stat-note {
  margin-top: 3px;
  color: var(--tg-ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.tg-lead-card {
  margin-top: 16px;
  padding: 18px 22px;
  border-left: 4px solid var(--tg-jade);
  background: var(--tg-jade-soft);
}

.tg-city-block {
  margin-top: 18px;
}

.tg-subhead {
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 10px;
}

.tg-subhead h3 {
  margin: 0;
  color: var(--tg-maple);
  font-size: 17px;
}

.tg-subhead > span {
  color: var(--tg-ink-faint);
  font-size: 11.5px;
  text-align: right;
}

.tg-timeline,
.tg-list,
.tg-day-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tg-timeline {
  position: relative;
  padding-left: 20px;
}

.tg-timeline::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 5px;
  width: 2px;
  background: linear-gradient(180deg, var(--tg-gold), var(--tg-maple));
  content: "";
  opacity: 0.35;
}

.tg-timeline li {
  position: relative;
  padding: 0 0 15px 17px;
}

.tg-timeline li::before {
  position: absolute;
  top: 7px;
  left: -20px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--tg-gold);
  border-radius: 50%;
  background: var(--tg-card);
  content: "";
}

.tg-timeline-title {
  display: block;
  color: var(--tg-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.tg-timeline-text {
  display: block;
  margin-top: 2px;
  color: var(--tg-ink-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.tg-spot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 21px;
}

.tg-spot-head,
.tg-food-head,
.tg-day-head {
  justify-content: space-between;
  gap: 12px;
}

.tg-spot-head h3 {
  margin-top: 3px;
  margin-bottom: 0;
}

.tg-badge,
.tg-price {
  flex: none;
  padding: 4px 9px;
  border-radius: 8px;
  color: #8a5a14;
  background: var(--tg-gold-soft);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tg-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tg-kv span {
  padding: 3px 8px;
  border: 1px solid var(--tg-line);
  border-radius: 7px;
  color: var(--tg-ink-soft);
  background: #f7f7f4;
  font-size: 11px;
}

.tg-tip {
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  border-left: 3px solid var(--tg-gold);
  color: #7a4a12;
  background: #fdf6e6;
  font-size: 12px;
  line-height: 1.65;
}

.tg-tip-wide {
  margin-top: 15px;
}

.tg-gallery {
  margin-top: 22px;
}

.tg-gallery-head {
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.tg-gallery h3 {
  margin: 0;
  font-size: 19px;
}

.tg-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.tg-figure {
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  background: var(--tg-card);
}

.tg-guide .tg-figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  margin: 0;
  border-radius: 9px;
  object-fit: cover;
}

.tg-figure-caption {
  padding: 8px 3px 2px;
  color: var(--tg-ink-faint);
  font-size: 10.5px;
  line-height: 1.6;
}

.tg-day {
  margin-bottom: 17px;
  overflow: hidden;
}

.tg-day-head {
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--tg-line);
  background: linear-gradient(90deg, #f0f1ef, #fafafa);
}

.tg-day-head h3 {
  margin: 0;
}

.tg-day-note {
  margin-left: auto;
  color: var(--tg-ink-faint);
  font-size: 11px;
}

.tg-day-tag {
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--tg-gold), var(--tg-maple));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.tg-day-list {
  padding: 13px 20px 16px;
}

.tg-day-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--tg-line);
}

.tg-day-list li:last-child {
  border-bottom: 0;
}

.tg-when {
  color: var(--tg-maple);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tg-what > b {
  display: block;
  color: var(--tg-ink);
  font-size: 13px;
}

.tg-what > span {
  display: block;
  color: var(--tg-ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.tg-what .tg-day-meta {
  margin-top: 2px;
  color: var(--tg-ink-faint);
  font-size: 10.5px;
}

.tg-intensity strong {
  display: block;
  margin-top: 5px;
  color: var(--tg-gold);
  font-size: 19px;
}

.tg-intensity > span:last-child {
  color: var(--tg-ink-faint);
  font-size: 10.5px;
}

.tg-food {
  border-top: 3px solid var(--tg-maple);
}

.tg-food-signature {
  color: var(--tg-maple) !important;
  font-weight: 700;
}

.tg-hotel p {
  margin-top: 4px;
  font-size: 12.5px;
}

.tg-table {
  width: 100% !important;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 14px;
  background: var(--tg-card);
  box-shadow: 0 1px 2px rgba(38,42,45,0.04), 0 8px 24px -14px rgba(38,42,45,0.2);
  font-size: 12.5px;
}

.tg-table th,
.tg-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--tg-line);
  text-align: left;
  vertical-align: top;
}

.tg-table th {
  color: #4e565a;
  background: #edeeec !important;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.tg-table tbody tr:last-child td {
  border-bottom: 0;
}

.tg-caution {
  background: var(--tg-slate-soft);
}

.tg-caution h3 {
  color: #2f393f;
}

.tg-list {
  margin: 9px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.tg-list li {
  margin-bottom: 5px;
  color: var(--tg-ink-soft);
  font-size: 12.5px;
  line-height: 1.68;
}

.tg-plan-b {
  border-top: 3px solid var(--tg-gold);
}

.tg-pack-card {
  margin-top: 16px;
}

.tg-footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--tg-line);
  color: var(--tg-ink-faint);
  font-size: 11px;
  text-align: center;
}

.tg-footer p {
  margin: 3px 0;
}

@media (max-width: 900px) {
  .tg-grid-4,
  .tg-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tg-hero {
    padding: 70px 20px 42px;
  }

  .tg-hero h1 {
    font-size: 34px;
  }

  .tg-wrap {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tg-grid-4,
  .tg-grid-3,
  .tg-grid-2,
  .tg-image-grid {
    grid-template-columns: 1fr;
  }

  .tg-section h2 {
    font-size: 23px;
  }

  .tg-day-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .tg-day-note {
    width: 100%;
    margin-left: 0;
  }

  .guide-view-card.tg-generated .guide-view-head {
    top: 14px;
    right: 14px;
  }
}

@media print {
  .tg-guide {
    background: #fff;
  }

  .tg-hero {
    padding: 28px 20px !important;
    background: #31403c !important;
  }

  .tg-wrap {
    padding: 0 12px 20px !important;
  }

  .tg-card,
  .tg-spot,
  .tg-table,
  .tg-day,
  .tg-figure {
    box-shadow: none !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .tg-section {
    margin-top: 28px;
  }
}
