/* 鹿线图 · 旅游官网视觉（Thymeleaf SSR） */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=ZCOOL+QingKe+HuangYou&display=swap');

:root {
  /* 默认品牌色（非 hover，保持饱和度） */
  --t-primary: #3c9cff;
  --t-primary-dark: #1a7ae8;
  --t-primary-darker: #1565c7;
  --t-primary-light: #e8f4ff;
  --t-primary-muted: rgba(60, 156, 255, 0.14);
  --t-accent: #ff8a3d;
  --t-accent-dark: #e86f1f;
  /* 文字颜色层级：ink > body > secondary > muted > subtle */
  --t-ink: #1a2332;
  --t-body: #3d4a5c;
  --t-secondary: #5c6b80;
  --t-muted: #8494a7;
  --t-subtle: #a8b4c4;
  --t-link: #1a7ae8;
  /* 仅 hover：粉天蓝，避免与正文链接同色过重 */
  --t-link-hover: #b8e5ff;
  --t-hover-bg: #f0f8ff;
  --t-hover-bg-strong: #fafdff;
  --t-hover-border: rgba(120, 190, 255, 0.42);
  --t-btn-brand-hover-bg: linear-gradient(135deg, #5eb8ff, #8ec8ff);
  --t-on-primary: #ffffff;
  --t-footer-text: rgba(255, 255, 255, 0.88);
  --t-footer-muted: rgba(255, 255, 255, 0.58);
  --t-border: #e8eef4;
  --t-surface: #f6f9fc;
  --t-card: #ffffff;
  --t-radius: 14px;
  --t-radius-lg: 22px;
  --t-shadow: 0 2px 16px rgba(26, 122, 232, 0.06);
  --t-shadow-hover: 0 12px 36px rgba(26, 122, 232, 0.14);
  --t-sticky-h: 4.25rem;
  --t-header-h: 3.75rem;
  --brand-logo-size: 2.5rem;
  --brand-glyphs-size: 1.45rem;
  --t-font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --t-brand-font: 'ZCOOL QingKe HuangYou', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --brand-accent-gradient: linear-gradient(
    120deg,
    var(--t-primary-darker) 0%,
    var(--t-primary) 38%,
    #5eb8ff 68%,
    var(--t-primary-dark) 100%
  );
  /* 版心与间距 */
  --t-content: 75rem;
  --t-read: 40rem;
  --t-sidebar-w: 17.5rem;
  --t-gutter: 1.75rem;
  --t-space-1: 0.5rem;
  --t-space-2: 0.75rem;
  --t-space-3: 1rem;
  --t-space-4: 1.5rem;
  --t-space-5: 2rem;
  --t-space-6: 2.75rem;
  --t-img-radius: 12px;
  --t-img-radius-lg: var(--t-radius-lg);
  --t-img-ratio-card: 3 / 2;
  --t-img-ratio-spot: 4 / 3;
  --t-img-ratio-phone: 9 / 19.5;
}

/* —— 基础 —— */
body.lego-site {
  font-family: var(--t-font);
  font-size: 15px;
  color: var(--t-body);
  background: var(--t-surface);
  padding-bottom: calc(var(--t-sticky-h) + var(--t-space-4));
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lego-site .t-page {
  padding-top: var(--t-space-4);
  padding-bottom: var(--t-space-6);
}

body.lego-site a:not(.btn):not(.lego-btn-brand):not(.lego-btn-outline-brand):not(.t-recommend-card):not(.t-card-hero):not(.t-card-compact):not(.t-spot-card) {
  color: var(--t-link);
  text-decoration: none;
  transition: color 0.2s;
}

body.lego-site a:not(.btn):not(.lego-btn-brand):not(.lego-btn-outline-brand):not(.t-recommend-card):not(.t-card-hero):not(.t-card-compact):not(.t-spot-card):hover {
  color: var(--t-link-hover);
}

/* 覆盖 style.css 默认深蓝 hover（#2163e8） */
body.lego-site .navbar-light .navbar-nav .nav-link:hover,
body.lego-site .navbar-light .navbar-nav .nav-link:focus,
body.lego-site .dropdown-item:hover,
body.lego-site .dropdown-item:focus,
body.lego-site .nav-link:hover,
body.lego-site .nav-link:focus {
  color: var(--t-link-hover) !important;
}

body.lego-site .dropdown-item:hover,
body.lego-site .dropdown-item:focus {
  background-color: var(--t-hover-bg) !important;
}

body.lego-site main {
  overflow-x: hidden;
}

.t-container,
body.lego-site .lego-header .container,
body.lego-site .lego-footer-compact .container,
body.lego-site main.t-container {
  width: 100%;
  max-width: var(--t-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 1.5rem);
  padding-right: clamp(1rem, 3.5vw, 1.5rem);
}

body.lego-site .container.t-container {
  max-width: var(--t-content);
}

/* —— 顶栏 —— */
.lego-header {
  margin-bottom: var(--t-space-4);
}

.lego-header header {
  margin: 0;
}

.lego-header-shell {
  position: relative;
  z-index: 1100;
}

.lego-header-shell::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--t-primary), #5eb8ff 45%, var(--t-accent) 100%);
  z-index: 2;
  pointer-events: none;
}

.lego-header .navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(232, 238, 244, 0.95);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  position: relative;
  z-index: 1100;
}

.lego-header-bar {
  display: flex;
  flex-wrap: wrap;
  min-height: var(--t-header-h) !important;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: max(var(--t-gutter, 1rem), env(safe-area-inset-left, 0px));
  padding-right: max(var(--t-gutter, 1rem), env(safe-area-inset-right, 0px));
  gap: 0.5rem 0.75rem;
}

.lego-header .navbar > .lego-header-bar {
  align-items: center;
}

body.lego-site .lego-header header.navbar-sticky {
  min-height: 0;
}

body.lego-site .lego-header header.navbar-sticky-on {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.08) !important;
}

body.lego-site .lego-header header.navbar-sticky-on .navbar-brand,
body.lego-site .lego-header header.navbar-sticky-on {
  --brand-logo-size: 2.25rem;
}

body.lego-site .lego-header .navbar-brand,
body.lego-site .lego-header .lego-header-brand {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-right: 0;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  align-self: center;
  text-decoration: none;
}

/* —— 全站统一：圆角 Logo 盒 + 商标横排 —— */
.brand-lockup {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand-lockup--footer {
  gap: 0.5rem;
}

.brand-logo-wrap {
  flex: 0 0 var(--brand-logo-size);
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, var(--t-primary-light) 100%);
  border: 1px solid rgba(60, 156, 255, 0.18);
  box-shadow: 0 2px 10px rgba(26, 122, 232, 0.1);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand-logo-wrap--lg {
  --brand-logo-size: 4.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(26, 122, 232, 0.12);
}

.brand-logo-wrap--lg .brand-logo-img {
  border-radius: 11px;
}

/* 与改版前一致：固定高度 + width:auto，避免 calc 导致图片不可见 */
.brand-logo-wrap .brand-logo-img,
.brand-logo-wrap .navbar-brand-item {
  display: block !important;
  width: auto !important;
  height: 2.125rem !important;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 8px;
}

.brand-logo-wrap--lg .brand-logo-img,
.brand-logo-wrap--lg .navbar-brand-item {
  height: 3.75rem !important;
}

a.brand-lockup:hover .brand-logo-wrap,
a.lego-header-brand:hover .brand-logo-wrap {
  box-shadow: 0 4px 14px rgba(26, 122, 232, 0.16);
  transform: translateY(-1px);
}

/* —— 商标名「鹿线图」 —— */
.brand-title {
  position: relative;
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  align-self: center;
  line-height: 1;
  white-space: nowrap;
}

.brand-glyphs {
  display: inline-flex;
  align-items: center;
  gap: 0.02em;
  font-family: var(--t-brand-font);
  font-weight: 400;
  font-size: var(--brand-glyphs-size);
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35rem);
  animation: brand-char-in 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  animation-delay: calc(0.08s * var(--i, 0));
}

.brand-char--accent,
.brand-char--tu {
  background: var(--brand-accent-gradient);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand-char--accent {
  animation:
    brand-char-in 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) forwards,
    brand-shimmer 5s ease-in-out infinite;
  animation-delay: calc(0.08s * var(--i, 0)), calc(0.08s * var(--i, 0) + 0.7s);
}

.brand-char--tu {
  animation:
    brand-char-tu-in 0.62s cubic-bezier(0.34, 1.25, 0.64, 1) forwards,
    brand-shimmer 5s ease-in-out infinite;
  animation-delay: calc(0.08s * var(--i, 0)), calc(0.08s * var(--i, 0) + 0.7s);
}

.lego-header-brand:hover .brand-char--accent {
  animation-duration: 0.55s, 2.2s;
}

.lego-header-brand:hover .brand-char {
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}

.lego-header-brand:hover .brand-char--tu {
  filter: brightness(1.08);
  transition: filter 0.25s ease;
}

.brand-title::after {
  content: '';
  position: absolute;
  left: 0.1em;
  right: 0.15em;
  bottom: -0.12em;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--t-primary), var(--t-accent), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  animation: brand-underline-in 0.7s ease forwards 0.55s;
}

.lego-header .brand-title {
  margin-left: 0;
}

/* 页脚：字号略小，字色与头部共用 --brand-accent-gradient */
.brand-lockup--footer .brand-glyphs,
.lego-footer-compact .brand-glyphs {
  font-size: 1.35rem;
}

.brand-lockup--footer .brand-title::after,
.lego-footer-compact .brand-title::after {
  background: linear-gradient(90deg, transparent, var(--t-primary), var(--t-accent), transparent);
  opacity: 0.85;
}

@keyframes brand-char-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes brand-char-tu-in {
  0% {
    opacity: 0;
    transform: translateY(0.35rem) scale(0.9);
  }
  65% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes brand-underline-in {
  to {
    opacity: 0.75;
    transform: scaleX(1);
  }
}

/* 覆盖 style.css 大 line-height */
body.lego-site .lego-header header .navbar-nav .nav-link,
body.lego-site .lego-header .navbar .navbar-nav .nav-link {
  line-height: 1.45 !important;
  padding: 0.5rem 0.85rem !important;
  text-transform: none;
}

body.lego-site .lego-header header.navbar-sticky-on .navbar-nav .nav-link {
  line-height: 1.45 !important;
}

.lego-header .nav-link {
  color: var(--t-body) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.lego-header .nav-link:hover,
.lego-header .nav-link:focus-visible {
  color: var(--t-link-hover) !important;
  background: var(--t-hover-bg-strong);
}

.lego-header .nav-link.dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

.lego-header-dropdown {
  border: 1px solid var(--t-border);
  box-shadow: var(--t-shadow-hover);
  border-radius: var(--t-radius);
  padding: 0.4rem;
  z-index: 1110;
}

.lego-header-dropdown--scroll {
  max-height: 18rem;
  overflow-y: auto;
}

.lego-header .dropdown-item {
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.lego-header .dropdown-item:hover,
.lego-header .dropdown-item:focus {
  background: var(--t-hover-bg);
  color: var(--t-link-hover);
}

/* 移动端：App 快捷入口 + 菜单按钮 */
.lego-header-tools {
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.lego-header-app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--t-primary-dark) !important;
  background: var(--t-primary-light);
  border: 1px solid rgba(60, 156, 255, 0.22);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.lego-header-app-chip:hover {
  background: var(--t-hover-bg-strong);
  color: var(--t-link-hover) !important;
  transform: translateY(-1px);
}

.lego-header-app-chip .bi {
  font-size: 0.95rem;
}

.lego-navbar-toggler {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--t-border);
  border-radius: 12px;
  background: var(--t-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lego-navbar-toggler:hover {
  border-color: rgba(60, 156, 255, 0.35);
  background: #fff;
}

.lego-navbar-toggler:focus {
  box-shadow: none;
}

.lego-navbar-toggler:focus-visible {
  outline: 2px solid var(--t-primary);
  outline-offset: 2px;
}

.lego-navbar-toggler-icon {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--t-ink);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.lego-navbar-toggler-icon::before,
.lego-navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--t-ink);
  border-radius: 2px;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}

.lego-navbar-toggler-icon::before {
  top: -6px;
}

.lego-navbar-toggler-icon::after {
  top: 6px;
}

.lego-navbar-toggler[aria-expanded='true'] .lego-navbar-toggler-icon {
  background: transparent;
}

.lego-navbar-toggler[aria-expanded='true'] .lego-navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.lego-navbar-toggler[aria-expanded='true'] .lego-navbar-toggler-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 顶栏 CTA */
.lego-header-cta--bar {
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.lego-header-cta--drawer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--t-border);
}

.lego-header-cta--drawer .btn {
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
}

@media (max-width: 991.98px) {
  :root {
    --t-header-h: 3.35rem;
    --brand-logo-size: 2.15rem;
    --brand-glyphs-size: 1.28rem;
  }

  .lego-header {
    margin-bottom: var(--t-space-3);
  }

  .lego-header-bar {
    flex-wrap: nowrap;
    align-items: center;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  body.lego-site .lego-header .lego-header-brand {
    gap: 0.45rem;
    max-width: calc(100% - 7.5rem);
  }

  .brand-logo-wrap {
    border-radius: 10px;
  }

  .brand-logo-wrap .brand-logo-img,
  .brand-logo-wrap .navbar-brand-item {
    height: 1.9rem !important;
    border-radius: 7px;
  }

  .lego-header .brand-glyphs {
    letter-spacing: 0.04em;
  }

  .lego-header-tools {
    align-self: center;
  }

  .lego-header .navbar-collapse {
    margin-top: 0.65rem;
    padding: 0.65rem 0.5rem 0.85rem;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow);
  }

  .lego-header-nav {
    width: 100%;
    gap: 0.15rem;
  }

  .lego-header-nav .nav-item {
    width: 100%;
  }

  .lego-header-nav .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9375rem;
    background: #fff;
    border: 1px solid transparent;
  }

  .lego-header-nav .nav-link:hover {
    color: var(--t-link-hover) !important;
    background: var(--t-hover-bg-strong) !important;
    border-color: rgba(142, 200, 255, 0.35);
  }

  .lego-header .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    transform: none !important;
    margin: 0.35rem 0 0.15rem !important;
    box-shadow: none;
    border: 1px dashed var(--t-border);
    max-height: 14rem;
    overflow-y: auto;
  }

  .lego-header .dropdown-item {
    padding: 0.5rem 0.75rem;
  }
}

@media (min-width: 992px) {
  .lego-header-bar {
    flex-wrap: nowrap;
    align-items: center;
  }

  body.lego-site .lego-header .lego-header-brand {
    flex-shrink: 0;
  }

  .lego-header .navbar-collapse {
    flex-grow: 1;
    align-self: center;
    justify-content: center;
  }

  .lego-header-cta--bar {
    margin-left: auto;
    align-self: center;
  }

  .lego-header-nav {
    align-items: center;
  }

  .lego-header-nav .nav-link {
    margin: 0 0.1rem;
  }
}

.lego-btn-brand {
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-dark)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(60, 156, 255, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lego-btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(60, 156, 255, 0.32);
  color: #fff !important;
  background: var(--t-btn-brand-hover-bg) !important;
}

.lego-btn-outline-brand {
  border: 1.5px solid var(--t-primary) !important;
  color: var(--t-primary-dark) !important;
  background: #fff !important;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lego-btn-outline-brand:hover {
  background: var(--t-hover-bg-strong) !important;
  color: var(--t-link-hover) !important;
  border-color: var(--t-hover-border) !important;
}

.lego-nav-cta {
  border-radius: 999px;
  padding: 0.48rem 1.1rem !important;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* —— Hero —— */
.lego-hero-wrap {
  padding: var(--t-space-3) 0 var(--t-space-4);
  margin-top: 0;
}

.lego-hero {
  position: relative;
  border-radius: var(--t-radius-lg);
  overflow: hidden;
  min-height: clamp(220px, 32vw, 300px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--t-primary-darker) url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1600&q=80') center/cover no-repeat;
}

.lego-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, transparent 40%),
    linear-gradient(105deg, rgba(26, 122, 232, 0.82) 0%, rgba(21, 101, 199, 0.55) 45%, rgba(15, 23, 42, 0.35) 100%);
}

.lego-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  max-width: 34rem;
}

.lego-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lego-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.lego-hero .lead {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.lego-hero-actions .btn {
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
}

.lego-btn-ghost-light {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.lego-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: #fff !important;
}

/* —— 区块标题 —— */
.t-section {
  margin-bottom: var(--t-space-5);
}

.t-main-layout {
  --bs-gutter-x: var(--t-gutter);
  --bs-gutter-y: var(--t-gutter);
}

.t-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  gap: 1rem;
}

.t-section-head > div {
  border-left: 3px solid var(--t-primary);
  padding-left: 0.85rem;
}

.t-section-head h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--t-ink);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.t-section-head p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--t-muted);
}

.t-section-head .t-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--t-link);
  font-weight: 600;
  background: var(--t-primary-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

/* —— 精选大卡 —— */
.t-featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--t-space-3);
  margin-bottom: var(--t-space-2);
  align-items: stretch;
}

@media (min-width: 992px) {
  .t-featured-grid {
    min-height: 340px;
  }

  .t-card-hero {
    min-height: 100%;
    height: 100%;
  }

  .t-featured-side {
    min-height: 100%;
  }
}

@media (max-width: 991px) {
  .t-featured-grid {
    grid-template-columns: 1fr;
  }

  .t-card-hero {
    min-height: 280px;
  }
}

.t-card-hero {
  position: relative;
  border-radius: var(--t-radius-lg);
  overflow: hidden;
  min-height: 300px;
  display: block;
  box-shadow: var(--t-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.t-card-hero:hover {
  transform: translateY(-4px);
  box-shadow: var(--t-shadow-hover);
}

.t-card-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.t-card-hero:hover .t-card-hero-bg {
  transform: scale(1.05);
}

.t-card-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 55%);
}

.t-card-hero-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem;
  z-index: 1;
  color: #fff;
}

.t-card-hero-body .t-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8dcff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.t-card-hero-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.35;
  color: #fff;
}

.t-card-hero-body .meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.t-featured-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.t-card-compact {
  display: flex;
  gap: 1rem;
  background: var(--t-card);
  border-radius: var(--t-radius);
  padding: 0.85rem;
  border: 1px solid var(--t-border);
  box-shadow: var(--t-shadow);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  flex: 1;
  align-items: center;
}

.t-card-compact:hover {
  border-color: rgba(60, 156, 255, 0.35);
  box-shadow: var(--t-shadow-hover);
  transform: translateX(3px);
}

.t-card-compact img {
  width: 5.5rem;
  aspect-ratio: 1 / 1;
  height: auto;
  min-width: 5.5rem;
  object-fit: cover;
  object-position: center;
  border-radius: var(--t-img-radius);
  flex-shrink: 0;
}

.t-card-compact h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t-ink);
  margin: 0 0 0.35rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-card-compact .meta {
  font-size: 0.8rem;
  color: var(--t-muted);
}

/* —— 景点/主题网格 —— */
.t-spot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--t-space-3);
}

@media (min-width: 576px) {
  .t-spot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .t-spot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.t-spot-card {
  background: var(--t-card);
  border-radius: var(--t-radius);
  overflow: hidden;
  border: 1px solid var(--t-border);
  box-shadow: var(--t-shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: block;
}

.t-spot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--t-shadow-hover);
  border-color: rgba(60, 156, 255, 0.3);
}

.t-spot-card .thumb {
  aspect-ratio: var(--t-img-ratio-spot);
  overflow: hidden;
  background: var(--t-primary-light);
  border-radius: var(--t-img-radius) var(--t-img-radius) 0 0;
}

.t-spot-card .thumb img,
.t-spot-card .thumb .t-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transition: transform 0.45s ease;
}

.t-spot-card:hover .thumb img {
  transform: scale(1.08);
}

.t-spot-card .body {
  padding: 0.85rem 1rem 1rem;
}

.t-spot-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t-ink);
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.t-spot-card p {
  font-size: 0.8rem;
  color: var(--t-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-section-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--t-border) 20%, var(--t-border) 80%, transparent);
  margin: 0 auto var(--t-space-5);
  opacity: 0.9;
}

.t-topic-block {
  margin-bottom: 0;
  padding-bottom: var(--t-space-5);
}

.t-topic-block + .t-topic-block {
  padding-top: var(--t-space-5);
  border-top: 1px solid var(--t-border);
}

.t-topic-block .topic-desc {
  color: var(--t-muted);
  font-size: 0.95rem;
  margin: -0.5rem 0 1rem;
}

/* —— 侧栏 —— */
.t-sidebar {
  position: sticky;
  top: calc(var(--t-header-h) + var(--t-space-4));
}

.t-sidebar-card {
  background: var(--t-card);
  border-radius: var(--t-radius);
  padding: var(--t-space-4) var(--t-space-3);
  border: 1px solid var(--t-border);
  box-shadow: var(--t-shadow);
  margin-bottom: 1.25rem;
}

.t-sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-ink);
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--t-primary-light);
}

.t-province-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--t-surface);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.t-province-chip:hover {
  background: var(--t-primary-light);
}

.t-province-chip .links a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  color: var(--t-link);
  background: var(--t-primary-muted);
  transition: background 0.2s, color 0.2s;
}

.t-province-chip .links a:hover {
  background: var(--t-hover-bg-strong);
  color: var(--t-link-hover) !important;
  border: 1px solid var(--t-hover-border);
}

.t-rank-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--t-border);
}

.t-rank-item:last-child {
  border-bottom: none;
}

.t-rank-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--t-primary), var(--t-primary-dark));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-rank-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
}

.t-rank-item h4 a {
  color: var(--t-ink);
}

.t-rank-item h4 a:hover {
  color: var(--t-link-hover);
}

/* —— 列表页频道头（浅色层次 + 插画，避免大面积纯蓝） —— */
.travel-channel-head {
  position: relative;
  border-radius: var(--t-radius-lg);
  margin-bottom: var(--t-space-4);
  border: 1px solid var(--t-border);
  box-shadow: var(--t-shadow);
  overflow: hidden;
  background: var(--t-card);
}

.travel-channel-head__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(60, 156, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(255, 143, 82, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, #faf8f5 0%, #f3f8fd 48%, #fff9f5 100%);
  pointer-events: none;
}

.travel-channel-head__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 1px 1px, rgba(60, 156, 255, 0.15) 1px, transparent 0);
  background-size: 22px 22px;
}

.travel-channel-head__inner {
  position: relative;
  padding: 0.9rem 1.25rem 0.95rem;
  padding-right: clamp(5.25rem, 16vw, 6.75rem);
}

.travel-channel-head__text {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  text-align: left;
}

.travel-channel-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--t-primary), #5eb0ff);
  margin-bottom: 0.45rem;
}

.travel-channel-head--location .travel-channel-head__badge {
  background: linear-gradient(135deg, #e8783a, var(--t-accent, #ff8f52));
}

.travel-channel-head h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: var(--t-ink);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.travel-channel-head__sub {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  color: var(--t-muted);
  line-height: 1.45;
}

.travel-channel-head__crumb .breadcrumb,
.travel-channel-head .breadcrumb {
  justify-content: flex-start;
  margin: 0;
  font-size: 0.8125rem;
}

.travel-channel-head .breadcrumb-item a {
  color: var(--t-link);
}

.travel-channel-head .breadcrumb-item.active {
  color: var(--t-muted);
}

.travel-channel-head .breadcrumb-item + .breadcrumb-item::before {
  color: var(--t-secondary);
}

.travel-channel-head__illus {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: clamp(4.25rem, 12vw, 5.5rem);
  height: clamp(3.25rem, 9vw, 4.25rem);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.88;
  pointer-events: none;
}

.travel-channel-head__illus--article {
  background-image: url('/img/icons/channel/icon-head-article.svg');
}

.travel-channel-head__illus--location {
  background-image: url('/img/icons/channel/icon-head-location.svg');
}

@media (max-width: 575px) {
  .travel-channel-head__inner {
    padding-right: 4.75rem;
  }

  .travel-channel-head__illus {
    right: 0.5rem;
    width: 3.5rem;
    height: 3rem;
  }
}

/* 城市 Tab */
.t-city-tabs .nav-link {
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 500;
  color: var(--t-body);
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.t-city-tabs .nav-link.active {
  background: var(--t-primary) !important;
  color: #fff !important;
}

.t-city-tabs .nav-link:not(.active):hover {
  background: var(--t-hover-bg);
  color: var(--t-link-hover);
}

/* 攻略列表卡片 */
.lego-site .col-lg-9 > .row.gy-4 .card {
  border: none;
  border-radius: var(--t-radius);
  overflow: hidden;
  box-shadow: var(--t-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.lego-site .col-lg-9 > .row.gy-4 .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--t-shadow-hover);
}

.lego-site .col-lg-9 > .row.gy-4 .card-img {
  border-radius: 0;
  object-fit: cover;
  width: 100%;
  height: 13.5rem !important;
  max-height: 13.5rem;
  aspect-ratio: 16 / 10;
}

.lego-site .col-lg-9 > .row.gy-4 > [class*='col-'] {
  display: flex;
}

.lego-site .col-lg-9 > .row.gy-4 .card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lego-site .col-lg-9 > .row.gy-4 .card-body {
  flex: 1;
}

.lego-site .col-lg-9 > .row.gy-4 .card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.lego-site .col-lg-9 > .row.gy-4 .card-title a {
  color: var(--t-ink) !important;
  font-size: 1.05rem;
}

.lego-site .col-lg-9 > .row.gy-4 .card-text {
  color: var(--t-secondary);
  font-size: 0.875rem;
}

/* —— 详情阅读 —— */
.travel-article-wrap {
  background: var(--t-card);
  border-radius: var(--t-radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.15rem, 3vw, 2.25rem);
  border: 1px solid var(--t-border);
  box-shadow: var(--t-shadow);
}

@media (max-width: 767px) {
  .travel-article-wrap {
    border-radius: var(--t-radius);
  }
}

.t-detail-layout {
  --bs-gutter-x: var(--t-gutter);
}

@media (min-width: 992px) {
  .t-detail-layout > .col-lg-9 {
    flex: 0 0 auto;
    width: calc(100% - var(--t-sidebar-w) - var(--t-gutter));
    max-width: calc(100% - var(--t-sidebar-w) - var(--t-gutter));
  }

  .t-detail-layout > .col-lg-3 {
    flex: 0 0 auto;
    width: var(--t-sidebar-w);
    max-width: var(--t-sidebar-w);
  }
}

.travel-article-wrap h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--t-ink);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.travel-article-wrap .t-article-badge {
  display: inline-block;
  background: var(--t-primary-light);
  color: var(--t-link);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.travel-article-wrap .t-article-badge:hover {
  background: var(--t-hover-bg-strong);
  color: var(--t-link-hover);
  border: 1px solid var(--t-hover-border);
}

.travel-article-wrap .article-body,
.travel-article-wrap article {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--t-body);
  max-width: 100%;
}

.travel-article-wrap .article-body > p,
.travel-article-wrap .article-body > ul,
.travel-article-wrap .article-body > ol,
.travel-article-wrap .article-body > blockquote,
.travel-article-wrap article > p,
.travel-article-wrap article > ul,
.travel-article-wrap article > ol,
.travel-article-wrap article > blockquote {
  max-width: var(--t-read);
}

.travel-article-wrap .article-body img,
.travel-article-wrap article img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 36rem);
  width: auto;
  height: auto;
  border-radius: var(--t-radius);
  margin: var(--t-space-3) auto;
}

.t-author-mini {
  display: flex;
  align-items: center;
  gap: var(--t-space-3);
  padding-bottom: 0;
}

.t-author-mini .avatar-img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

.t-author-mini h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t-ink);
}


/* —— 转化组件 —— */
.lego-growth-card {
  background: linear-gradient(135deg, var(--t-primary-light), #fff);
  border: 1px solid rgba(60, 156, 255, 0.22);
  border-radius: var(--t-radius);
  padding: 1.35rem 1.5rem 1.35rem 1.65rem;
  margin: 1.75rem 0;
  position: relative;
  overflow: hidden;
}

.lego-growth-card::before {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 156, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lego-growth-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--t-radius) 0 0 var(--t-radius);
  background: linear-gradient(180deg, var(--t-primary), var(--t-primary-dark));
}

.lego-growth-card h5 {
  font-weight: 700;
  color: var(--t-ink);
  margin-bottom: 0.35rem;
}

.lego-growth-card .text-muted {
  color: var(--t-secondary) !important;
}

.lego-sticky-growth {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--t-border);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
  padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0));
  backdrop-filter: blur(12px);
}

.lego-sticky-growth .container {
  max-width: 28rem;
  display: flex;
  gap: 0.65rem;
}

/* —— 页脚 —— */
.lego-footer-compact {
  background: var(--t-ink);
  color: var(--t-footer-muted);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.lego-footer-compact a {
  color: var(--t-footer-text);
}

.lego-footer-compact a:hover {
  color: var(--t-link-hover);
}

.lego-footer-compact .brand-lockup {
  margin: 0;
}

.lego-footer-compact .brand-title {
  margin: 0;
}

.lego-footer-compact .fw-semibold,
.lego-footer-compact h5 {
  color: var(--t-on-primary);
}

.lego-footer-compact .text-muted {
  color: var(--t-footer-muted) !important;
}

.lego-footer-compact .btn-link {
  color: var(--t-footer-text) !important;
}

.lego-footer-compact .btn-link:hover {
  color: var(--t-link-hover) !important;
}

.lego-footer-compact .qr-thumb {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #fff;
}

/* —— 覆盖旧模板 —— */
body.lego-site .shadow {
  box-shadow: var(--t-shadow) !important;
}

body.lego-site section {
  padding-top: var(--t-space-3) !important;
  padding-bottom: var(--t-space-3) !important;
}

body.lego-site section.t-section--tight {
  padding-top: var(--t-space-2) !important;
  padding-bottom: var(--t-space-2) !important;
}

body.lego-site .bg-info-soft,
body.lego-site .bg-primary-soft {
  background: var(--t-primary-light) !important;
}

body.lego-site .badge.bg-warning {
  background: var(--t-primary) !important;
  color: #fff !important;
}

/* 分页 */
body.lego-site .pagination .page-link {
  border-radius: 8px;
  color: var(--t-link);
  border-color: var(--t-border);
  margin: 0 0.15rem;
}

body.lego-site .pagination .page-item.active .page-link {
  background: var(--t-primary);
  border-color: var(--t-primary);
}

body.lego-site .pagination .page-link:hover {
  background: var(--t-hover-bg);
  color: var(--t-link-hover);
}

/* 弹窗 */
#legoWechatModal .nav-pills .nav-link.active {
  background: var(--t-primary) !important;
}

#legoWechatModal .tab-content.lego-modal-pane {
  background: var(--t-primary-light);
}

.lego-modal-pane {
  background: var(--t-primary-light);
}

/* 版权提示 */
body.lego-site .common-hint-word {
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--t-surface);
  border-radius: 10px;
  border-left: 3px solid var(--t-primary);
  margin-top: 1.5rem;
}

/* 猜你喜欢 */
.t-recommend-section {
  margin-top: var(--t-space-5);
  padding-top: var(--t-space-4) !important;
  border-top: 1px solid var(--t-border);
}

.t-recommend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--t-space-3);
}

@media (min-width: 768px) {
  .t-recommend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--t-space-3) var(--t-gutter);
  }
}

body.lego-site a.t-recommend-card {
  display: flex;
  gap: var(--t-space-3);
  padding: var(--t-space-3);
  border-radius: var(--t-radius);
  border: 1px solid var(--t-border);
  background: var(--t-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  color: inherit;
  min-height: 5.75rem;
  align-items: center;
}

body.lego-site a.t-recommend-card:hover {
  border-color: rgba(60, 156, 255, 0.35);
  box-shadow: var(--t-shadow);
  transform: translateY(-2px);
  color: inherit;
}

body.lego-site .t-recommend-card .t-recommend-thumb {
  flex-shrink: 0;
}

.t-recommend-card .t-recommend-body h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--t-ink);
  margin: 0 0 0.35rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-recommend-card .t-recommend-body .meta {
  font-size: 0.8125rem;
  color: var(--t-muted);
}

.lego-sticky-growth .btn {
  flex: 1;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
}

body.lego-site .title {
  -webkit-line-clamp: 2;
}

body.lego-site .modeswitch {
  display: none;
}

body.lego-site .card-grid .container.shadow {
  box-shadow: none !important;
  background: transparent !important;
  padding-top: 0 !important;
}

/* 目录子项 */
.t-outline-sub {
  padding-left: 2.25rem;
  border-bottom: none;
}

.t-rank-num--sub {
  width: 2rem;
  height: 1.5rem;
  font-size: 0.65rem;
  background: var(--t-surface);
  color: var(--t-primary-dark);
  border: 1px solid var(--t-border);
}

/* 攻略正文标题 */
.travel-article-wrap .article-body h1,
.travel-article-wrap .article-body h2,
.travel-article-wrap .article-body h3,
.travel-article-wrap .article-body h4,
.travel-article-wrap article h1,
.travel-article-wrap article h2,
.travel-article-wrap article h3,
.travel-article-wrap article h4 {
  color: var(--t-ink);
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.travel-article-wrap .article-body h2,
.travel-article-wrap article h2 {
  font-size: 1.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--t-primary-light);
}

.travel-article-wrap .article-body p,
.travel-article-wrap article p {
  margin-bottom: 1rem;
}

.travel-article-wrap .article-body table,
.travel-article-wrap article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.travel-article-wrap .article-body th,
.travel-article-wrap article th {
  background: var(--t-primary);
  color: #fff;
  padding: 0.65rem;
}

.travel-article-wrap .article-body tr:nth-child(even) td,
.travel-article-wrap article tr:nth-child(even) td {
  background: var(--t-surface);
}

.travel-article-wrap .article-body td,
.travel-article-wrap article td {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--t-border);
}

/* 列表行式卡片 */
.lego-site .col-lg-9 > .card.mb-2 {
  border: none;
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  padding: 1rem;
  margin-bottom: 1rem !important;
}

.lego-site .col-lg-9 > .card.mb-2 hr {
  display: none;
}

.lego-site .col-lg-9 > .card.mb-2 {
  padding: var(--t-space-3) !important;
}

.lego-site .col-lg-9 > .card.mb-2 .row {
  align-items: center;
  --bs-gutter-x: var(--t-space-4);
}

.lego-site .col-lg-9 > .card.mb-2 img {
  border-radius: 12px;
  object-fit: cover;
  height: 8.5rem;
  width: 100%;
}

.lego-site .col-lg-9 > .card.mb-2 h5,
.lego-site .col-lg-9 > .card.mb-2 h5 a {
  font-size: 1.0625rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
  color: var(--t-ink) !important;
}

.lego-site .col-lg-9 > .card.mb-2 h5 a:hover {
  color: var(--t-link) !important;
}

.lego-site .col-lg-9 > .card.mb-2 .intro {
  font-size: 0.875rem;
  color: var(--t-muted);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 景点详情头图 */
.t-location-hero .t-spot-card .thumb {
  aspect-ratio: 3 / 4;
  max-height: 22rem;
}

.t-location-hero .t-spot-card .thumb img {
  width: 100%;
  height: 100%;
}

/* 侧栏推荐 */
.lego-site .col-lg-3 .card.mb-3 {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.lego-site .col-lg-3 h4.mt-4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-ink);
  border-bottom: 2px solid var(--t-primary-light);
  padding-bottom: 0.5rem;
}

/* —— 文字颜色层级（覆盖 Bootstrap 旧模板）—— */
body.lego-site h1,
body.lego-site h2,
body.lego-site h3,
body.lego-site h4,
body.lego-site h5,
body.lego-site h6,
body.lego-site .h1,
body.lego-site .h2,
body.lego-site .h3,
body.lego-site .h4,
body.lego-site .h5,
body.lego-site .h6 {
  color: var(--t-ink);
}

body.lego-site .text-dark {
  color: var(--t-ink) !important;
}

body.lego-site .text-muted {
  color: var(--t-muted) !important;
}

body.lego-site .text-secondary {
  color: var(--t-secondary) !important;
}

body.lego-site .text-reset {
  color: var(--t-ink) !important;
}

body.lego-site .text-body {
  color: var(--t-body) !important;
}

/* 列表/卡片标题链接 */
body.lego-site .card-title a,
body.lego-site a.title,
body.lego-site h5 a.btn-link,
body.lego-site h6 a.btn-link,
body.lego-site .title.btn-link {
  color: var(--t-ink) !important;
  font-weight: 600;
}

body.lego-site .card-title a:hover,
body.lego-site a.title:hover,
body.lego-site h5 a.btn-link:hover,
body.lego-site h6 a.btn-link:hover,
body.lego-site .title.btn-link:hover {
  color: var(--t-link) !important;
}

body.lego-site a.btn-link {
  color: var(--t-link) !important;
}

body.lego-site a.btn-link:hover {
  color: var(--t-link-hover) !important;
}

/* 摘要、元信息 */
body.lego-site .intro,
body.lego-site .card-text.intro,
body.lego-site p.intro {
  color: var(--t-secondary) !important;
}

body.lego-site .nav-divider,
body.lego-site .nav-divider .nav-link,
body.lego-site .nav-divider .nav-item {
  color: var(--t-muted) !important;
  font-size: 0.8125rem;
}

body.lego-site .nav-divider a.btn-link {
  color: var(--t-muted) !important;
}

body.lego-site .nav-divider a.btn-link:hover {
  color: var(--t-link) !important;
}

/* 城市 Tab 标签 */
.t-city-tabs .nav-link.disabled {
  color: var(--t-subtle) !important;
  font-weight: 600;
}

/* 省份 chip 名称 */
.t-province-chip > span:first-child {
  color: var(--t-ink);
}

/* 区块小标题（景点详情等） */
body.lego-site .t-topic-block h2,
body.lego-site .t-topic-block .h5 {
  color: var(--t-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

body.lego-site .t-topic-block > div {
  color: var(--t-body);
  line-height: 1.75;
}

.t-location-hero .text-muted {
  color: var(--t-secondary) !important;
}

.t-location-hero .intro {
  color: var(--t-body);
  line-height: 1.75;
}

.t-location-hero h1 {
  color: var(--t-ink);
}

/* 弹窗 */
#legoWechatModal .modal-title {
  color: var(--t-ink);
}

#legoWechatModal .text-muted {
  color: var(--t-secondary) !important;
}

#legoWechatModal .nav-pills .nav-link:not(.active) {
  color: var(--t-secondary);
}

#legoWechatModal .nav-pills .nav-link:not(.active):hover {
  color: var(--t-link);
  background: var(--t-primary-muted);
}

/* 侧栏排名序号外的正文链接 */
.t-rank-item h4 a {
  color: var(--t-body);
}

.t-rank-item h4 a:hover {
  color: var(--t-link);
}

/* 正文阅读区段落 */
.travel-article-wrap .article-body {
  color: var(--t-body);
}

.travel-article-wrap .article-body strong,
.travel-article-wrap .article-body b {
  color: var(--t-ink);
  font-weight: 600;
}

.travel-article-wrap .article-body a {
  color: var(--t-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.travel-article-wrap .article-body a:hover {
  color: var(--t-link-hover);
}

/* —— 文章详情：页头与 Markdown 正文 —— */
.t-article-hero {
  margin-bottom: var(--t-space-4);
  padding-bottom: var(--t-space-3);
  border-bottom: 1px solid var(--t-border);
}

.t-article-badge--static {
  cursor: default;
  pointer-events: none;
}

.t-article-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--t-border);
}

.t-article-author-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.t-article-author-avatar {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--t-border);
  background: var(--t-surface);
}

.t-article-author-avatar .t-avatar-img,
.t-article-author-avatar .t-avatar-placeholder {
  display: block;
}

.t-article-author-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.t-article-author-label {
  font-size: 0.75rem;
  color: var(--t-muted);
  line-height: 1.2;
}

.t-article-author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--t-ink);
  line-height: 1.3;
}

.t-article-author-date {
  font-size: 0.8125rem;
  color: var(--t-muted);
  white-space: nowrap;
}

.t-article-copyright {
  margin-top: var(--t-space-4);
  padding: 0.85rem 1rem;
  border-radius: var(--t-radius);
  background: var(--t-surface);
  font-size: 0.8125rem;
  color: var(--t-muted);
  line-height: 1.55;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.t-article-copyright .bi {
  color: var(--t-primary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.t-markdown-body ul,
.t-markdown-body ol,
.t-article-md ul,
.t-article-md ol {
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

.t-markdown-body li,
.t-article-md li {
  margin-bottom: 0.35rem;
}

.t-markdown-body blockquote,
.t-article-md blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--t-primary);
  background: var(--t-primary-light);
  border-radius: 0 var(--t-radius) var(--t-radius) 0;
}

.t-markdown-body pre,
.t-article-md pre {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--t-radius);
  background: #1e293b;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 0.875rem;
}

.t-markdown-body code,
.t-article-md code {
  font-size: 0.9em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: var(--t-surface);
  color: var(--t-primary-dark);
}

.t-markdown-body pre code,
.t-article-md pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.t-markdown-body hr,
.t-article-md hr {
  border: none;
  border-top: 1px solid var(--t-border);
  margin: 1.75rem 0;
}

.t-outline-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* t-recommend-thumb 见通用占位区块 */

body.lego-article-embed {
  background: var(--t-card);
}

body.lego-article-embed .t-page--embed {
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
  padding-top: max(0.5rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: 100%;
}

body.lego-article-embed .t-section--embed {
  padding-top: 0;
  padding-bottom: 0;
}

body.lego-article-embed .travel-article-wrap {
  border: none;
  box-shadow: none;
  padding: 0.75rem 0 1rem;
  border-radius: 0;
}

body.lego-article-embed .t-article-hero {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

body.lego-article-embed .travel-article-wrap h1 {
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
}

body.lego-article-embed .t-markdown-body,
body.lego-article-embed .t-article-md {
  font-size: 1rem;
  line-height: 1.8;
}

body.lego-article-embed .t-markdown-body img,
body.lego-article-embed .t-article-md img {
  border-radius: 10px;
}

/* 版权条：略深于 muted，保证可读 */
body.lego-site .common-hint-word {
  color: var(--t-secondary);
}

/* 分页默认态 */
body.lego-site .pagination .page-item:not(.active) .page-link {
  color: var(--t-secondary);
}

/* 侧栏推荐 badge 在 primary 底上 */
body.lego-site .badge.bg-warning.text-dark {
  color: var(--t-on-primary) !important;
}

/* 面包屑（白底页面） */
body.lego-site .breadcrumb .breadcrumb-item a {
  color: var(--t-secondary);
}

body.lego-site .breadcrumb .breadcrumb-item a:hover {
  color: var(--t-link);
}

body.lego-site .breadcrumb .breadcrumb-item.active {
  color: var(--t-muted);
}

/* 次要按钮 */
body.lego-site .btn-outline-secondary {
  color: var(--t-secondary);
  border-color: var(--t-border);
}

body.lego-site .btn-outline-secondary:hover {
  color: var(--t-ink);
  background: var(--t-surface);
  border-color: var(--t-muted);
}

/* —— 资深 UI 打磨：交互、焦点、品牌一致性 —— */
body.lego-site :focus {
  outline: none;
}

body.lego-site :focus-visible {
  outline: 2px solid var(--t-primary);
  outline-offset: 2px;
}

.t-card-hero:focus-visible,
.t-card-compact:focus-visible,
.t-spot-card:focus-visible,
a.t-recommend-card:focus-visible {
  outline-offset: 4px;
}

/* 可点击卡片不显示默认链接色 */
body.lego-site a.t-card-hero,
body.lego-site a.t-card-compact,
body.lego-site a.t-spot-card {
  color: inherit;
}

body.lego-site a.t-card-compact:hover h4 {
  color: var(--t-link);
}

body.lego-site a.t-spot-card:hover h4 {
  color: var(--t-link);
}


/* 侧栏模块标题 */
.t-sidebar-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.t-sidebar-card h3::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t-primary);
  flex-shrink: 0;
}

/* 景点卡图片加载占位 */
.t-spot-card .thumb {
  position: relative;
}

.t-spot-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.04), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.t-spot-card:hover .thumb::after {
  opacity: 1;
}

/* 频道页头 h1 字重见 .travel-channel-head h1 */

/* 弹窗壳层 */
#legoWechatModal .lego-modal-shell {
  border-radius: 20px;
  overflow: hidden;
}

#legoWechatModal .lego-qr-img {
  width: 11rem;
  height: 11rem;
  object-fit: contain;
}

/* 返回顶部：按钮尺寸固定，仅放大图标；bottom 用 !important 压过 style.css */
body.lego-site .back-top {
  --back-top-size: 2.75rem;
  --back-top-icon-size: 1.625rem;
  position: fixed !important;
  right: max(1.15rem, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(var(--t-sticky-h) + 2.75rem + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1040;
  width: var(--back-top-size);
  height: var(--back-top-size);
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--t-primary) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 6px 24px rgba(26, 35, 50, 0.12),
    0 0 0 1px rgba(60, 156, 255, 0.14);
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition:
    opacity 0.3s ease,
    transform 0.32s cubic-bezier(0.34, 1.25, 0.64, 1),
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

body.lego-site .back-top.back-top-show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.lego-site .back-top:hover {
  background: var(--t-hover-bg-strong) !important;
  color: var(--t-link-hover) !important;
  box-shadow:
    0 8px 24px rgba(60, 156, 255, 0.14),
    0 0 0 1px var(--t-hover-border);
  transform: translateY(-3px) scale(1.02);
}

body.lego-site .back-top:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 4px 16px rgba(60, 156, 255, 0.28);
}

body.lego-site .back-top:focus {
  outline: none;
}

body.lego-site .back-top:focus-visible {
  outline: 2px solid var(--t-primary);
  outline-offset: 3px;
}

body.lego-site .back-top .back-top-icon {
  width: var(--back-top-icon-size);
  height: var(--back-top-icon-size);
  display: block;
  flex-shrink: 0;
  pointer-events: none;
  transition: transform 0.22s ease;
}

body.lego-site .back-top:hover .back-top-icon {
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  body.lego-site .back-top {
    --back-top-size: 2.875rem;
    --back-top-icon-size: 1.75rem;
    right: max(1.5rem, env(safe-area-inset-right, 0px)) !important;
    /* 桌面无底部吸底栏，整体上移 */
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* 页脚对齐版心 */
.lego-footer-compact .container {
  max-width: var(--t-content);
}

/* 首页主内容区轻背景，与 Hero 区分 */
.t-home-body {
  padding-top: var(--t-space-2);
}

/* —— 关于我们页 · 紧凑页头 —— */
body.lego-site .t-about-page.t-page {
  padding-top: var(--t-space-3);
}

.t-about-masthead {
  padding: 0 0 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--t-border);
}

.t-about-masthead .breadcrumb {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.t-about-masthead .breadcrumb-item a {
  color: var(--t-muted);
}

.t-about-masthead .breadcrumb-item a:hover {
  color: var(--t-primary);
}

.t-about-masthead .breadcrumb-item.active {
  color: var(--t-secondary);
}

.t-about-masthead .breadcrumb-item + .breadcrumb-item::before {
  color: var(--t-subtle);
}

.t-about-masthead h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--t-ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0.35rem 0 0;
}

.t-about-page .t-about-body {
  padding-top: 0;
}

.t-about-intro {
  margin-bottom: var(--t-space-4);
}

.t-about-intro-head {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.t-about-intro-head .brand-logo-wrap {
  flex-shrink: 0;
}

.t-about-intro-text {
  flex: 1;
  min-width: 0;
}

.t-about-intro .t-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--t-link);
  font-weight: 600;
  background: var(--t-primary-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

@media (max-width: 575px) {
  .t-about-intro-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .t-about-intro-text .t-tag {
    margin-left: auto;
    margin-right: auto;
  }
}

.t-about-intro p {
  color: var(--t-body);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.t-about-intro p strong {
  color: var(--t-ink);
  font-weight: 600;
}

.t-about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--t-space-3);
  margin-bottom: var(--t-space-4);
}

.t-about-feature-card {
  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--t-shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}


.t-about-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--t-primary-muted);
  color: var(--t-primary);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.t-about-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t-ink);
  margin: 0 0 0.4rem;
}

.t-about-feature-card p {
  font-size: 0.9rem;
  color: var(--t-secondary);
  line-height: 1.6;
  margin: 0;
}

.t-about-action-row {
  margin-bottom: var(--t-space-4);
}

.t-about-action-row > [class*='col'] {
  display: flex;
  flex-direction: column;
}

.t-about-action-row .lego-growth-card,
.t-about-qr-card {
  flex: 1;
  height: 100%;
}

.t-about-qr-card {
  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--t-shadow);
}

.t-about-qr-card--solo {
  margin-bottom: var(--t-space-4);
}

.t-about-qr-img {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
  border: 1px solid var(--t-border);
  background: #fff;
  padding: 0.35rem;
}

.t-about-qr-card .t-about-qr-img[data-bs-toggle] {
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.t-about-qr-card .t-about-qr-img[data-bs-toggle]:hover {
  box-shadow: var(--t-shadow);
  transform: scale(1.02);
}

.t-about-contact-card {
  background: linear-gradient(180deg, var(--t-surface) 0%, var(--t-card) 100%);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-lg);
  padding: 1.5rem 1.35rem;
}

.t-about-contact-card .text-primary {
  color: var(--t-primary) !important;
}

.t-about-contact-list {
  padding-left: 1.15rem;
  color: var(--t-body);
  line-height: 1.75;
}

.t-about-contact-list li + li {
  margin-top: 0.35rem;
}

.t-about-contact-list a {
  color: var(--t-link);
  font-weight: 500;
  text-decoration: none;
}

.t-about-contact-list a:hover {
  color: var(--t-link-hover);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .t-about-features {
    grid-template-columns: 1fr;
  }
}

/* —— 频道列表大图网格 —— */
.t-channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--t-space-3);
}

@media (min-width: 768px) {
  .t-channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--t-space-3) var(--t-gutter);
  }
}

body.lego-site a.t-channel-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--t-radius);
  border: 1px solid var(--t-border);
  background: var(--t-card);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 100%;
}

body.lego-site a.t-channel-card:hover {
  border-color: rgba(60, 156, 255, 0.35);
  box-shadow: var(--t-shadow);
  transform: translateY(-3px);
  color: inherit;
}

.t-channel-card-thumb {
  position: relative;
  aspect-ratio: var(--t-img-ratio-card);
  background: var(--t-surface);
  overflow: hidden;
  border-radius: var(--t-img-radius) var(--t-img-radius) 0 0;
}

.t-channel-card-thumb .t-cover-img,
.t-channel-card-thumb .t-img-placeholder {
  position: absolute;
  inset: 0;
}

/* —— 通用图片：圆角 + 比例填满容器 —— */
.is-hidden {
  display: none !important;
}

.t-cover-img,
.t-channel-card-cover,
body.lego-site .t-channel-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transition: transform 0.35s ease;
}

body.lego-site .travel-article-wrap .article-body img,
body.lego-site .travel-article-wrap article img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--t-img-radius);
}

.t-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.t-img-placeholder--article {
  background: linear-gradient(145deg, #eef6ff 0%, #f8fafc 55%, #fff6ef 100%);
}

.t-img-placeholder--location {
  background: linear-gradient(145deg, #fff5ee 0%, #f3f8fd 55%, #eef6ff 100%);
}

.t-img-placeholder .t-ifont {
  width: 4.5rem;
  height: 4.5rem;
  opacity: 0.92;
}

.t-channel-card-placeholder-label,
.t-img-placeholder-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  z-index: 2;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t-muted);
  pointer-events: none;
}

.t-compact-thumb {
  position: relative;
  width: 5.5rem;
  aspect-ratio: 1 / 1;
  height: auto;
  min-width: 5.5rem;
  flex-shrink: 0;
  border-radius: var(--t-img-radius);
  overflow: hidden;
  background: var(--t-surface);
}

.t-compact-thumb .t-cover-img,
.t-compact-thumb .t-img-placeholder {
  border-radius: var(--t-img-radius);
}

.t-compact-thumb .t-img-placeholder .t-ifont {
  width: 2.75rem;
  height: 2.75rem;
}

.t-card-hero-bg--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef6ff 0%, #f8fafc 50%, #fff6ef 100%);
}

.t-card-hero-bg--placeholder .t-ifont {
  width: 5rem;
  height: 5rem;
  opacity: 0.45;
}

.t-spot-card .thumb {
  position: relative;
}

.t-spot-card .thumb .t-cover-img,
.t-spot-card .thumb .t-img-placeholder {
  position: absolute;
  inset: 0;
}

.t-spot-card .thumb .t-img-placeholder .t-ifont {
  width: 3.25rem;
  height: 3.25rem;
}

.t-location-cover-thumb {
  position: relative;
  aspect-ratio: var(--t-img-ratio-card);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--t-img-radius-lg);
}

.t-location-cover-thumb .t-cover-img,
.t-location-cover-thumb .t-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.t-recommend-thumb {
  position: relative;
  width: 5.25rem;
  aspect-ratio: var(--t-img-ratio-card);
  height: auto;
  min-width: 5.25rem;
  flex-shrink: 0;
  border-radius: var(--t-img-radius);
  overflow: hidden;
  background: var(--t-surface);
}

.t-recommend-thumb .t-cover-img,
.t-recommend-thumb .t-img-placeholder {
  border-radius: var(--t-img-radius);
}

.t-recommend-thumb .t-img-placeholder .t-ifont {
  width: 2.5rem;
  height: 2.5rem;
}

.t-avatar-img,
.t-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.t-sidebar-avatar-wrap {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  position: relative;
}

.t-sidebar-avatar-wrap {
  width: 2.75rem;
  height: 2.75rem;
}

.t-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef6ff, #f8fafc);
  position: absolute;
  inset: 0;
}

.t-avatar-placeholder .t-ifont-avatar {
  width: 70%;
  height: 70%;
}

body.lego-site a.t-channel-card:hover .t-cover-img,
body.lego-site a.t-channel-card:hover .t-channel-card-cover {
  transform: scale(1.04);
}

.t-channel-card-tags {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.t-channel-card-tags .t-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.t-channel-card-body {
  padding: var(--t-space-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.t-channel-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  color: var(--t-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.lego-site a.t-channel-card:hover h3 {
  color: var(--t-link-hover);
}

.t-channel-card-intro {
  font-size: 0.875rem;
  color: var(--t-muted);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-channel-card-meta {
  font-size: 0.8125rem;
  color: var(--t-secondary);
  margin: 0;
  margin-top: auto;
}

.lego-channel-growth {
  grid-column: 1 / -1;
  border-radius: var(--t-radius);
  border: 1px dashed rgba(60, 156, 255, 0.35);
  background: linear-gradient(90deg, var(--t-primary-light), #fff 55%);
  padding: 0.85rem 1rem;
}

.lego-channel-growth-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.lego-channel-growth-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.lego-channel-growth-text strong {
  font-size: 0.95rem;
  color: var(--t-ink);
}

.lego-channel-growth-text span {
  font-size: 0.8125rem;
  color: var(--t-muted);
}

.lego-channel-growth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.t-channel-pagination {
  margin-top: var(--t-space-4);
  padding-top: var(--t-space-3);
  border-top: 1px solid var(--t-border);
}

.t-channel-empty {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--t-space-4);
  background: var(--t-card);
  border: 1px dashed var(--t-border);
  border-radius: var(--t-radius-lg);
  color: var(--t-muted);
}

.t-channel-empty .bi {
  font-size: 2.5rem;
  color: var(--t-primary);
  opacity: 0.65;
  display: block;
  margin-bottom: var(--t-space-3);
}

.t-channel-empty p {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--t-ink);
  margin: 0 0 0.5rem;
}

.t-channel-empty span {
  font-size: 0.9rem;
}

.t-channel-empty a {
  font-weight: 500;
}

.lego-growth-mid-wrap[hidden] {
  display: none !important;
}

.lego-growth-mid-wrap.is-visible {
  display: block;
}

.lego-growth-end-wrap {
  margin-top: 1.75rem;
}

.lego-growth-end-wrap .lego-growth-card {
  margin-bottom: 0;
}

.lego-growth-article-bottom {
  margin-top: 0;
}

.lego-growth-card--article-bottom {
  margin-top: var(--t-space-3);
  margin-bottom: 0;
}

.lego-growth-card--article-bottom .d-flex {
  justify-content: space-between;
}

.lego-growth-card-qr {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--t-border);
  background: #fff;
  padding: 0.2rem;
  margin-left: auto;
}

/* —— App 下载专页 —— */
/* 扇形展开由 .t-app-fan--open + transition 驱动（见 app.html 脚本） */

@keyframes t-app-glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

@keyframes t-app-blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

body.lego-site.t-app-page {
  /* 截图原生 1080×2400（9:20）；contain 避免 cover 二次缩放发糊 */
  --t-app-phone-w: clamp(9.5rem, 28vw, 13rem);
  --t-app-phone-h: calc(var(--t-app-phone-w) * 20 / 9);
  --t-app-phone-fan-left: -14deg;
  --t-app-phone-fan-right: 14deg;
  --t-app-ink: #152238;
  --t-app-body: #3d4f66;
  --t-app-muted: #6b7d94;
  --t-app-sky: #e3f2ff;
  --t-app-sand: #fff6eb;
  --t-app-coral: #ff8f52;
  --t-app-mint: #3dd6c6;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(60, 156, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(255, 143, 82, 0.08), transparent 50%),
    linear-gradient(180deg, #f0f6fc 0%, var(--t-surface) 35%, #f8fafc 100%);
  color: var(--t-app-body);
}

body.lego-site.t-app-page .lego-header {
  margin-bottom: var(--t-space-2);
}

.t-app-landing {
  padding-bottom: var(--t-space-6);
}

/* 滚动入场 */
.t-app-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.t-app-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* 能力卡：独立淡入（不继承 .t-app-reveal 的 translate 动效） */
body.lego-site.t-app-page .t-app-feature-fade {
  opacity: 0;
  transform: none;
  transition-property: opacity, box-shadow, border-color;
  transition-duration: 0.5s, 0.25s, 0.25s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease, ease;
}

body.lego-site.t-app-page .t-app-feature-fade.is-inview {
  opacity: 1;
  transform: none;
}

body.lego-site.t-app-page .t-app-feature-fade[data-reveal-delay="1"] { transition-delay: 0.05s, 0s, 0s; }
body.lego-site.t-app-page .t-app-feature-fade[data-reveal-delay="2"] { transition-delay: 0.1s, 0s, 0s; }
body.lego-site.t-app-page .t-app-feature-fade[data-reveal-delay="3"] { transition-delay: 0.15s, 0s, 0s; }
body.lego-site.t-app-page .t-app-feature-fade[data-reveal-delay="4"] { transition-delay: 0.2s, 0s, 0s; }
body.lego-site.t-app-page .t-app-feature-fade[data-reveal-delay="5"] { transition-delay: 0.25s, 0s, 0s; }
body.lego-site.t-app-page .t-app-feature-fade[data-reveal-delay="6"] { transition-delay: 0.3s, 0s, 0s; }

.t-app-hero-wrap {
  padding-top: var(--t-space-3);
  padding-bottom: var(--t-space-5);
}

.t-app-hero-panel {
  position: relative;
  border-radius: var(--t-radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, var(--t-app-sky) 42%, #f5f9ff 100%);
  border: 1px solid rgba(60, 156, 255, 0.12);
  box-shadow:
    0 4px 24px rgba(26, 122, 232, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.t-app-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  animation: t-app-blob-drift 14s ease-in-out infinite;
}

.t-app-hero-blob--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: 10%;
  background: rgba(60, 156, 255, 0.22);
}

.t-app-hero-blob--2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: 5%;
  background: rgba(255, 143, 82, 0.18);
  animation-delay: -5s;
}

.t-app-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--t-space-5);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 992px) {
  .t-app-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--t-space-6);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  }
}

.t-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0d5bb5;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(60, 156, 255, 0.22);
  box-shadow: 0 2px 8px rgba(60, 156, 255, 0.1);
  margin-bottom: var(--t-space-3);
}

.t-app-badge .bi {
  font-size: 0.95rem;
  color: var(--t-primary);
}

.t-app-title {
  font-size: clamp(2rem, 5.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--t-app-ink);
  margin: 0 0 var(--t-space-3);
}

.t-app-title-accent {
  background: linear-gradient(120deg, var(--t-primary-dark) 0%, #4da8ff 55%, var(--t-app-coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.t-app-lead {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
  color: var(--t-app-body);
  max-width: 30rem;
  margin: 0 0 var(--t-space-3);
  line-height: 1.75;
}

.t-app-hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--t-space-4);
}

.t-app-hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--t-app-body);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.t-app-hero-points .bi {
  color: var(--t-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.t-app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--t-space-3);
}

.t-app-hero-actions .btn {
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.t-app-btn-primary {
  box-shadow: 0 6px 20px rgba(60, 156, 255, 0.4);
}

.t-app-btn-ghost {
  background: #fff !important;
  border: 1.5px solid rgba(60, 156, 255, 0.35) !important;
  color: var(--t-primary-dark) !important;
}

.t-app-btn-ghost:hover {
  background: var(--t-hover-bg) !important;
  border-color: var(--t-hover-border) !important;
  color: var(--t-link-hover) !important;
  transform: translateY(-1px);
}

.t-app-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--t-app-muted);
  margin: 0;
}

.t-app-hint .bi {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* App 双图：统一尺寸 + 扇形槽位 */
body.lego-site.t-app-page .t-app-phone-fan {
  position: relative;
  width: min(100%, calc(var(--t-app-phone-w) * 1.72));
  height: var(--t-app-phone-h);
  margin: 0 auto;
}

body.lego-site.t-app-page .t-app-phones {
  position: relative;
  max-width: 26rem;
  width: 100%;
  margin: 0 auto;
  min-height: calc(var(--t-app-phone-h) + 1.5rem);
  padding-bottom: 0.5rem;
}

body.lego-site.t-app-page .t-app-phones .t-app-phone-fan {
  z-index: 1;
}

body.lego-site.t-app-page .t-app-phone-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(60, 156, 255, 0.35) 0%, transparent 70%);
  animation: t-app-glow-pulse 5s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

body.lego-site.t-app-page .t-app-phone-slot {
  position: absolute;
  bottom: 0;
  width: var(--t-app-phone-w);
  height: var(--t-app-phone-h);
  transform-origin: 50% 100%;
  overflow: hidden;
  border-radius: clamp(16px, 3vw, 22px);
  box-shadow: 0 20px 44px rgba(21, 101, 199, 0.22);
  background: linear-gradient(165deg, #f0f6fc 0%, #e3effa 100%);
}

body.lego-site.t-app-page .t-app-phone-slot--left {
  left: 0;
  z-index: 1;
}

body.lego-site.t-app-page .t-app-phone-slot--right {
  right: 0;
  z-index: 2;
}

/* 扇形：收拢态 → .t-app-fan--open 时展开（无持续摇摆） */
body.lego-site.t-app-page .t-app-phone-slot--left,
body.lego-site.t-app-page .t-app-phone-slot--right {
  opacity: 0;
  transform: rotate(0deg) scale(0.88) translate3d(0, 22px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body.lego-site.t-app-page .t-app-phone-fan.t-app-fan--open .t-app-phone-slot--left {
  opacity: 1;
  transform: rotate(-14deg) scale(1) translate3d(0, 0, 0);
  transition-delay: 0.08s, 0.08s;
}

body.lego-site.t-app-page .t-app-phone-fan.t-app-fan--open .t-app-phone-slot--right {
  opacity: 1;
  transform: rotate(14deg) scale(1) translate3d(0, 0, 0);
  transition-delay: 0.2s, 0.2s;
}

body.lego-site.t-app-page .t-app-phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: inherit;
  object-fit: contain;
  object-position: center top;
  transform-origin: center top;
  image-rendering: high-quality;
  transform: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

/* 模块 / Hero 截图：悬停放大（槽位 overflow 裁切；不用 translateZ 避免合成层发糊） */
body.lego-site.t-app-page .t-app-showcase-visual .t-app-phone-shot:hover,
body.lego-site.t-app-page .t-app-hero-visual .t-app-phone-shot:hover,
body.lego-site.t-app-page .t-app-phone-slot:hover > .t-app-phone-shot {
  transform: scale(1.2);
}

body.lego-site.t-app-page .t-app-phones .t-app-phone-slot {
  box-shadow: 0 24px 48px rgba(21, 101, 199, 0.2);
  background: #0a1628;
}

body.lego-site.t-app-page .t-app-hero-visual:hover .t-app-phone-slot--left,
body.lego-site.t-app-page .t-app-showcase:hover .t-app-phone-slot--left {
  transform: rotate(var(--t-app-phone-fan-left)) translate3d(0, -5px, 0);
}

body.lego-site.t-app-page .t-app-hero-visual:hover .t-app-phone-slot--right,
body.lego-site.t-app-page .t-app-showcase:hover .t-app-phone-slot--right {
  transform: rotate(var(--t-app-phone-fan-right)) translate3d(0, -5px, 0);
}

body.lego-site.t-app-page .t-app-hero-visual:hover .t-app-phone-slot,
body.lego-site.t-app-page .t-app-showcase:hover .t-app-phone-slot {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.t-app-section {
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.t-app-section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto var(--t-space-5);
}

.t-app-section-head .t-tag {
  margin-bottom: 0.75rem;
}

.t-app-section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t-app-ink);
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.t-app-section-head p {
  font-size: 1rem;
  color: var(--t-app-muted);
  margin: 0;
  line-height: 1.65;
}

.t-app-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--t-space-3);
}

@media (min-width: 576px) {
  .t-app-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .t-app-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.t-app-feature-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(232, 238, 244, 0.9);
  border-radius: calc(var(--t-radius) + 2px);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 2px 12px rgba(26, 50, 80, 0.04);
  height: 100%;
  transform: none;
  transition-property: opacity, box-shadow, border-color;
  transition-duration: 0.25s, 0.25s, 0.25s;
  transition-timing-function: ease, ease, ease;
}

body.lego-site.t-app-page .t-app-features .t-app-feature-card:hover {
  transform: none !important;
  box-shadow: 0 14px 40px rgba(26, 122, 232, 0.14);
  border-color: rgba(60, 156, 255, 0.32);
}

.t-app-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.t-app-feature-icon--sky {
  background: linear-gradient(135deg, #e8f4ff, #cce5ff);
  color: #1a7ae8;
}

.t-app-feature-icon--mint {
  background: linear-gradient(135deg, #e0faf7, #b8f0e8);
  color: #0d9488;
}

.t-app-feature-icon--coral {
  background: linear-gradient(135deg, #fff0e6, #ffd4b8);
  color: #e86f1f;
}

.t-app-feature-icon--violet {
  background: linear-gradient(135deg, #f0ebff, #ddd6fe);
  color: #6d28d9;
}

.t-app-feature-icon--amber {
  background: linear-gradient(135deg, #fff8e6, #ffe9a8);
  color: #b45309;
}

.t-app-feature-icon--blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.t-app-feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--t-app-ink);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.t-app-feature-card p {
  font-size: 0.875rem;
  color: var(--t-app-muted);
  margin: 0;
  line-height: 1.65;
}

.t-app-showcase {
  border-radius: var(--t-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: linear-gradient(160deg, #ffffff 0%, var(--t-app-sky) 100%);
  border: 1px solid rgba(60, 156, 255, 0.1);
  box-shadow: 0 8px 32px rgba(26, 122, 232, 0.06);
}

.t-app-showcase--warm {
  background: linear-gradient(160deg, #ffffff 0%, var(--t-app-sand) 100%);
  border-color: rgba(255, 143, 82, 0.12);
  box-shadow: 0 8px 32px rgba(255, 143, 82, 0.06);
}

.t-tag--warm {
  background: rgba(255, 143, 82, 0.12);
  color: #c2410c;
}

.t-app-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--t-space-5);
  align-items: center;
}

@media (min-width: 992px) {
  .t-app-showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--t-space-6);
  }

  .t-app-showcase-grid--reverse .t-app-showcase-copy {
    order: 2;
  }

  .t-app-showcase-grid--reverse .t-app-showcase-visual {
    order: 1;
  }
}

.t-app-showcase-copy .t-tag {
  margin-bottom: 0.5rem;
}

.t-app-showcase-copy h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t-app-ink);
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.t-app-showcase-desc {
  font-size: 1rem;
  color: var(--t-app-body);
  line-height: 1.65;
  margin: 0 0 var(--t-space-3);
  max-width: 28rem;
}

.t-app-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.t-app-checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--t-app-body);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.t-app-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--t-primary), var(--t-app-coral));
  box-shadow: 0 0 0 3px rgba(60, 156, 255, 0.15);
  transform: translateY(-50%);
}

.t-app-showcase--warm .t-app-checklist li::before {
  background: linear-gradient(135deg, var(--t-app-coral), #ffb380);
  box-shadow: 0 0 0 3px rgba(255, 143, 82, 0.15);
}

body.lego-site.t-app-page .t-app-showcase-visual {
  position: relative;
  min-height: calc(var(--t-app-phone-h) + 1rem);
  max-width: min(100%, calc(var(--t-app-phone-w) * 1.85));
  width: 100%;
  margin: 0 auto;
}

body.lego-site.t-app-page .t-app-showcase-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 75%;
  height: 75%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 156, 255, 0.2) 0%, transparent 68%);
  animation: t-app-glow-pulse 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

body.lego-site.t-app-page .t-app-showcase-glow--warm {
  background: radial-gradient(circle, rgba(255, 143, 82, 0.22) 0%, transparent 68%);
}

body.lego-site.t-app-page .t-app-showcase-visual .t-app-phone-fan {
  z-index: 1;
}

body.lego-site.t-app-page .t-app-showcase-visual .t-app-phone-slot {
  box-shadow: 0 18px 36px rgba(26, 122, 232, 0.18);
}

body.lego-site.t-app-page .t-app-showcase--warm .t-app-showcase-visual .t-app-phone-slot {
  box-shadow: 0 18px 36px rgba(255, 143, 82, 0.16);
}


body.lego-site.t-app-page .t-app-section--stats {
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

body.lego-site.t-app-page .t-app-stats-band {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--t-radius-lg);
  border: 1px solid rgba(60, 156, 255, 0.12);
  background: linear-gradient(118deg, #0f3d7a 0%, var(--t-primary-dark) 42%, #3c9cff 100%);
  box-shadow: 0 8px 32px rgba(26, 122, 232, 0.12);
}

body.lego-site.t-app-page .t-app-stats-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--t-space-4);
  line-height: 1.4;
}

body.lego-site.t-app-page .t-app-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--t-space-3) var(--t-space-2);
  align-items: stretch;
}

body.lego-site.t-app-page .t-app-stat {
  position: relative;
  text-align: center;
  padding: clamp(0.75rem, 2vw, 1.1rem) clamp(0.5rem, 1.5vw, 0.85rem);
  min-width: 0;
  border-radius: calc(var(--t-radius) + 2px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

body.lego-site.t-app-page .t-app-stat:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

body.lego-site.t-app-page .t-app-stat strong {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  color: #fff;
  letter-spacing: -0.03em;
}

body.lego-site.t-app-page .t-app-stat span {
  display: block;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

@media (min-width: 768px) {
  body.lego-site.t-app-page .t-app-stat + .t-app-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
  }

  body.lego-site.t-app-page .t-app-stat {
    background: transparent;
    border-color: transparent;
  }

  body.lego-site.t-app-page .t-app-stat:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 575.98px) {
  body.lego-site.t-app-page .t-app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--t-space-2);
  }

  body.lego-site.t-app-page .t-app-stat:nth-child(odd)::before,
  body.lego-site.t-app-page .t-app-stat:nth-child(1)::before {
    display: none;
  }
}

.t-app-section--cta {
  padding-bottom: var(--t-space-5);
}

.t-app-cta {
  position: relative;
  border-radius: var(--t-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(60, 156, 255, 0.15);
  box-shadow: 0 12px 48px rgba(26, 122, 232, 0.12);
}

.t-app-cta-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: rgba(60, 156, 255, 0.12);
  filter: blur(40px);
  animation: t-app-blob-drift 12s ease-in-out infinite;
}

.t-app-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--t-space-4);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  align-items: center;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 50%, #fff9f5 100%);
}

@media (min-width: 768px) {
  .t-app-cta-inner {
    grid-template-columns: 1fr auto auto;
    gap: var(--t-space-4) var(--t-space-5);
  }
}

.t-app-cta-text h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t-app-ink);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.t-app-cta-text p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--t-app-muted);
  line-height: 1.6;
  max-width: 22rem;
}

.t-app-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.t-app-cta-actions .btn {
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.t-app-btn-ghost-dark {
  background: #fff !important;
  border: 1.5px solid var(--t-border) !important;
  color: var(--t-app-ink) !important;
}

.t-app-btn-ghost-dark:hover {
  border-color: var(--t-hover-border) !important;
  color: var(--t-link-hover) !important;
  background: var(--t-hover-bg) !important;
}

.t-app-cta-qr {
  text-align: center;
}

.t-app-cta-qr img {
  display: block;
  width: 5.75rem;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--t-img-radius);
  border: 2px solid rgba(60, 156, 255, 0.2);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  box-shadow: 0 4px 16px rgba(26, 122, 232, 0.1);
}

.t-app-cta-qr img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(26, 122, 232, 0.2);
}

.t-app-cta-qr span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t-app-muted);
  margin-top: 0.45rem;
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .brand-char,
  .brand-char--accent,
  .brand-char--tu {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: currentColor;
  }

  .brand-char--accent,
  .brand-char--tu {
    color: var(--t-primary) !important;
    -webkit-text-fill-color: var(--t-primary) !important;
  }

  .brand-title::after {
    opacity: 0.5;
    transform: scaleX(1);
    animation: none;
  }

  .lego-navbar-toggler-icon,
  .lego-navbar-toggler-icon::before,
  .lego-navbar-toggler-icon::after {
    transition: none !important;
  }

  body.lego-site .back-top {
    transition: opacity 0.15s ease;
  }

  body.lego-site .back-top,
  body.lego-site .back-top:hover,
  body.lego-site .back-top .back-top-icon {
    transform: none !important;
  }

  .t-card-hero,
  .t-card-compact,
  .t-spot-card,
  a.t-recommend-card,
  .lego-btn-brand,
  .t-app-feature-card,
  .t-app-phone-slot,
  .t-app-reveal {
    transition: none !important;
    animation: none !important;
  }

  .t-app-reveal,
  body.lego-site.t-app-page .t-app-feature-fade {
    opacity: 1;
    transform: none;
  }

  .t-app-hero-blob,
  .t-app-phone-glow,
  .t-app-showcase-glow,
  .t-app-cta-blob {
    animation: none !important;
  }

  .t-card-hero:hover .t-card-hero-bg,
  .t-spot-card:hover .thumb img {
    transform: none !important;
  }

  body.lego-site.t-app-page .t-app-features .t-app-feature-card,
  body.lego-site.t-app-page .t-app-features .t-app-feature-card:hover,
  body.lego-site.t-app-page .t-app-features .t-app-feature-icon,
  body.lego-site.t-app-page .t-app-features .t-app-feature-icon .t-ifont {
    transform: none !important;
    animation: none !important;
  }

  body.lego-site.t-app-page .t-app-phone-slot--left {
    transform: rotate(var(--t-app-phone-fan-left)) !important;
    opacity: 1 !important;
  }

  body.lego-site.t-app-page .t-app-phone-slot--right {
    transform: rotate(var(--t-app-phone-fan-right)) !important;
    opacity: 1 !important;
  }

  body.lego-site.t-app-page .t-app-phone-fan.t-app-fan--open .t-app-phone-slot--left,
  body.lego-site.t-app-page .t-app-phone-fan.t-app-fan--open .t-app-phone-slot--right {
    opacity: 1 !important;
    transition: none !important;
  }

  body.lego-site.t-app-page .t-app-phone-fan.t-app-fan--open .t-app-phone-slot--left {
    transform: rotate(-14deg) scale(1) translate3d(0, 0, 0) !important;
  }

  body.lego-site.t-app-page .t-app-phone-fan.t-app-fan--open .t-app-phone-slot--right {
    transform: rotate(14deg) scale(1) translate3d(0, 0, 0) !important;
  }
}

/* App 模块截图悬浮放大（兜底，避免被减少动效等规则覆盖） */
body.lego-site.t-app-page .t-app-showcase-visual .t-app-phone-fan.t-app-fan--open .t-app-phone-shot:hover,
body.lego-site.t-app-page .t-app-hero-visual .t-app-phone-fan.t-app-fan--open .t-app-phone-shot:hover {
  transform: scale(1.2) !important;
}

/* App 能力区：禁止任何旋转/缩放动效（覆盖历史规则与误绑选择器） */
body.lego-site.t-app-page .t-app-features .t-app-feature-card,
body.lego-site.t-app-page .t-app-features .t-app-feature-card.t-app-feature-fade,
body.lego-site.t-app-page .t-app-features .t-app-feature-card.t-app-feature-fade.is-inview,
body.lego-site.t-app-page .t-app-features .t-app-feature-card:hover,
body.lego-site.t-app-page .t-app-features .t-app-feature-icon,
body.lego-site.t-app-page .t-app-features .t-app-feature-icon .t-ifont,
body.lego-site.t-app-page .t-app-features .t-app-feature-card:hover .t-app-feature-icon,
body.lego-site.t-app-page .t-app-features .t-app-feature-card:hover .t-app-feature-icon .t-ifont {
  transform: none !important;
  animation: none !important;
}
