html.ty-home, html.ty-home body { margin: 0; background: #f3f3f3; }
html.ty-home #__nuxt, html.ty-home #nuxt-loading { display: none !important; }
html:not(.ty-home) #ty-home { display: none !important; }

#ty-home {
  color: #222;
  font: 14px/1.5 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f3f3f3;
}
#ty-home a { color: inherit; text-decoration: none; }
#ty-home img { display: block; width: 100%; height: 100%; }
#ty-home .inner { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.topbar { background: #1b1b1b; color: rgba(255,255,255,.82); font-size: 12px; }
.topbar .inner { height: 36px; display: flex; align-items: center; justify-content: space-between; }
.topbar b { font-weight: 500; letter-spacing: .12em; }

.head { background: #fff; border-bottom: 1px solid #eee; }
.head .inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { font-size: 30px; font-weight: 700; letter-spacing: .18em; }
.logo:before { content: ""; display: inline-block; width: 4px; height: 22px; margin-right: 10px; background: #e1251b; vertical-align: -2px; }
.head nav { display: flex; gap: 6px; }
.head nav a { padding: 8px 14px; border-radius: 999px; color: #333; }
.head nav a:hover { background: #fff1f0; color: #e1251b; }

.hero { position: relative; height: 460px; background: #111; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { object-fit: cover; object-position: center; }
.arr {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.88); color: #222; font-size: 28px; line-height: 46px;
  cursor: pointer;
}
.arr.prev { left: 22px; }
.arr.next { right: 22px; }
.arr:hover { background: #fff; color: #e1251b; }
.dots { position: absolute; left: 0; right: 0; bottom: 58px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255,255,255,.7); cursor: pointer;
}
.dots button.is-on { width: 22px; background: #e1251b; }

.dock-wrap { width: min(1200px, calc(100% - 40px)); margin: -42px auto 0; position: relative; z-index: 3; }
.dock {
  background: #fff; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.08);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 18px 10px 16px;
}
.dock a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #333; font-size: 15px; }
.thumb { width: 86px; height: 86px; border-radius: 50%; background: #f6f6f6; overflow: hidden; }
.thumb img { object-fit: cover; }
.dock a:hover { color: #e1251b; }

#ty-home main { width: min(1200px, calc(100% - 40px)); margin: 22px auto 28px; }
.panel, .floor { background: #fff; border-radius: 12px; padding: 18px 18px 20px; }
.floor { margin-top: 16px; }
.floor-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.floor-h h2 { margin: 0; font-size: 22px; font-weight: 650; }
.floor-h h2:before { content: ""; display: inline-block; width: 4px; height: 16px; margin-right: 8px; background: #e1251b; vertical-align: -1px; }
.floor-h a, .floor-h span { color: #888; font-size: 13px; }
.floor-h a:hover { color: #e1251b; }

.feature, .goods { display: grid; gap: 12px; }
.feature { grid-template-columns: repeat(5, 1fr); }
.floor-body { display: grid; grid-template-columns: 232px 1fr; gap: 12px; }
.goods { grid-template-columns: repeat(4, 1fr); }
.poster { position: relative; display: block; min-height: 100%; border-radius: 10px; overflow: hidden; background: #f6f6f6; }
.poster img { position: absolute; inset: 0; object-fit: cover; }
.poster span {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 6px;
  padding: 36px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  color: #fff;
}
.poster b { font-size: 20px; font-weight: 600; }
.poster i {
  align-self: flex-start; font-style: normal; font-size: 12px;
  border: 1px solid rgba(255,255,255,.8); border-radius: 99px; padding: 3px 10px;
}

.pcard { min-width: 0; background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.pcard:hover { border-color: #f3c2bf; box-shadow: 0 8px 18px rgba(0,0,0,.05); }
.pic { display: block; height: 196px; position: relative; background: #fafafa; }
.pic img { position: absolute; inset: 10px; object-fit: contain; }
.pname {
  margin: 10px 12px 0; min-height: 40px; color: #333; font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pprice { margin: 6px 12px 12px; color: #e1251b; font-size: 18px; font-weight: 650; }

.midban { display: block; margin-top: 16px; height: 168px; border-radius: 12px; overflow: hidden; background: #111; }
.midban img { object-fit: cover; object-position: center; }

.foot { background: #1b1b1b; color: rgba(255,255,255,.78); }
.foot .inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.foot b { color: #fff; font-size: 16px; letter-spacing: .12em; }
.foot p { margin: 6px 0 0; font-size: 12px; }
.foot a:hover { color: #fff; }

@media (max-width: 1100px) {
  .feature { grid-template-columns: repeat(3, 1fr); }
  .floor-body, .goods { grid-template-columns: 1fr 1fr; }
  .poster { min-height: 240px; }
  .head nav a { padding: 8px 8px; }
}
