:root {
  --tb-orange: #ff5000;
  --tb-red: #ff0036;
  --tb-bg: #f5f5f5;
  --tb-text: #1f1f1f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.tb-home {
  min-width: 1190px;
  margin: 0;
  color: var(--tb-text);
  background: var(--tb-bg);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.tb-home a { color: inherit; text-decoration: none; }
.tb-home button, .tb-home input { font: inherit; }

.tb-layout {
  width: calc(100% - 160px);
  max-width: 1616px;
  min-width: 1126px;
  margin: 0 auto;
}

.tb-topbar {
  height: 35px;
  color: #666;
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 35px; }
.topbar-left, .topbar-right { display: flex; align-items: center; height: 100%; gap: 24px; }
.topbar-right { gap: 22px; }
.topbar-inner a:hover, .plain-link:hover { color: var(--tb-orange); }
.orange-link { color: var(--tb-orange) !important; }
.plain-link { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.topbar-inner span { margin-left: 3px; color: #aaa; }
.cart-ico { color: var(--tb-orange); font-style: normal; }
.topbar-right b { margin-left: 2px; color: var(--tb-orange); font-weight: 600; }
.top-sep { width: 1px; height: 12px; background: #ddd; }

.search-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 148px;
  padding: 76px 0 12px;
  background: #fff;
}

.tb-home::before {
  position: absolute;
  z-index: -1;
  top: 35px;
  left: 0;
  width: 100%;
  height: 188px;
  content: "";
  background: #fff;
}

.taobao-logo { display: flex; flex: 0 0 256px; flex-direction: column; justify-content: center; height: 70px; padding-left: 18px; color: var(--tb-orange) !important; line-height: 1; }
.logo-cn { font: 900 38px/1 "Microsoft YaHei", sans-serif; letter-spacing: -3px; }
.logo-en { margin: 4px 0 0 3px; font: italic 700 12px/1 Arial, sans-serif; letter-spacing: 1px; }

.search-area { width: min(760px, calc(100% - 570px)); margin: 0 auto; }
.home-search { display: flex; align-items: center; height: 44px; overflow: hidden; border: 2px solid var(--tb-orange); border-radius: 12px; background: #fff; }
.search-kind { flex: 0 0 75px; height: 40px; border: 0; background: transparent; color: #333; cursor: pointer; }
.search-kind::after { float: right; width: 1px; height: 18px; margin-top: 2px; content: ""; background: #eee; }
.search-kind span { color: #aaa; }
.home-search input { min-width: 0; flex: 1; height: 40px; padding: 0 12px; border: 0; outline: 0; color: #222; }
.home-search input::placeholder { color: #aaa; }
.camera-btn { width: 42px; height: 40px; border: 0; color: #888; background: transparent; font-size: 19px; cursor: pointer; }
.search-submit { width: 76px; height: 36px; margin-right: 2px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(90deg, #ff8a00, #ff5000); font-size: 16px; font-weight: 700; cursor: pointer; }
.hot-words { height: 26px; padding: 7px 8px 0; overflow: hidden; white-space: nowrap; color: #666; font-size: 12px; }
.hot-words a { margin-right: 13px; }
.hot-words a:first-child, .hot-words a:hover { color: var(--tb-orange); }
.qr-entry { display: flex; flex: 0 0 126px; align-items: center; justify-content: center; gap: 9px; height: 44px; margin: 0 18px 0 22px; border: 1px solid #eee; border-radius: 10px; color: #555; background: #fff; cursor: pointer; }
.qr-mini { color: var(--tb-orange); font-size: 22px; }

.season-banner { position: absolute; top: 0; left: 256px; right: 256px; display: flex; align-items: center; justify-content: center; gap: 14px; height: 62px; overflow: hidden; color: #5d2f1e !important; background: linear-gradient(90deg, transparent, #fff3e8 18%, #ffe1c9 50%, #fff3e8 82%, transparent); font-size: 18px; }
.season-banner b { color: #8f3b22; font-size: 25px; }
.season-banner span { font-weight: 700; }
.season-banner em { padding: 6px 15px; border-radius: 8px; color: #fff; background: #7b3b27; font-style: normal; font-size: 14px; }

.channel-nav { display: flex; align-items: center; justify-content: space-between; height: 42px; overflow: hidden; color: #252525; background: #fff; font-weight: 700; }
.channel-nav a { position: relative; padding: 0 11px; white-space: nowrap; line-height: 42px; }
.channel-nav a:hover { color: var(--tb-orange); }
.channel-nav .tmall, .channel-nav .live { color: var(--tb-red); }
.channel-nav .market { color: #22a700; }

.home-main { padding-top: 8px; }
.hero-grid { display: grid; grid-template-columns: 256px minmax(520px, 1fr) 256px; gap: 16px; height: 332px; }
.category-card, .spotlight, .user-card { overflow: hidden; border-radius: 12px; background: #fff; }
.category-card { position: relative; overflow: visible; z-index: 30; padding: 10px 12px 8px; }
.category-card h2 { height: 26px; margin: 0; color: #222; font-size: 16px; line-height: 26px; }
.category-card ul { margin: 2px 0 0; padding: 0; list-style: none; }
.category-card li { display: flex; align-items: center; height: 27px; color: #555; font-size: 13px; outline: 0; }
.category-card li i { width: 24px; color: #999; font-style: normal; text-align: center; }
.category-card li .category-links { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.category-card li a { margin-right: 6px; }
.category-card li a:hover { color: var(--tb-orange); }
.category-card li b { color: #c5c5c5; font-weight: 400; }
.category-arrow { color: #bbb; font-size: 16px; }
.category-item:hover { color: var(--tb-orange); background: #fff7f1; }
.category-panel { position: absolute; z-index: 40; top: 0; left: calc(100% - 1px); display: none; width: 650px; min-height: 312px; max-height: 520px; overflow-y: auto; padding: 18px 22px; border: 1px solid #ffb58a; border-radius: 0 12px 12px 0; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.13); color: #333; }
.category-item:hover .category-panel, .category-item:focus-within .category-panel { display: block; }
.category-panel::before { position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; content: ''; }
.category-panel h3 { height: auto; margin: 0 0 10px; color: #222; font-size: 18px; line-height: 1.4; }
.category-panel-row { display: grid; grid-template-columns: 96px 1fr; padding: 8px 0; border-bottom: 1px dashed #eee; }
.category-panel-title { color: #333; font-weight: 700; }
.category-panel-title span { float: right; margin-right: 14px; color: #aaa; }
.category-panel-links { display: flex; flex-wrap: wrap; gap: 5px 0; }
.category-panel-links a { margin-right: 15px !important; color: #666; white-space: nowrap; }
.category-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; padding-top: 13px; }
.category-brands strong { color: #222; }
.category-brands a { margin: 0 !important; color: var(--tb-orange); }

.spotlight { display: grid; grid-template-rows: 160px 172px; padding: 0; background: transparent; }
.spotlight-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.spotlight-stage { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(120deg, #ff6845, #ffb15f); }
.spotlight-stage > img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-copy { position: absolute; top: 24px; left: 24px; max-width: 50%; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.15); }
.spotlight-copy > span { display: inline-block; margin-bottom: 5px; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.2); font-size: 12px; }
.spotlight-copy strong { display: block; font-size: 23px; line-height: 1.2; }
.spotlight-copy p { margin: 4px 0 10px; font-size: 13px; }
.spotlight-copy a { display: inline-block; padding: 5px 12px; border-radius: 18px; color: var(--tb-orange); background: #fff; font-size: 12px; font-weight: 700; text-shadow: none; }
.spot-arrow { position: absolute; top: 57px; width: 26px; height: 42px; border: 0; opacity: 0; color: #fff; background: rgba(0,0,0,.25); font-size: 28px; cursor: pointer; transition: opacity .2s; }
.spotlight-stage:hover .spot-arrow { opacity: 1; }
.spot-arrow.prev { left: 0; border-radius: 0 8px 8px 0; }
.spot-arrow.next { right: 0; border-radius: 8px 0 0 8px; }
.spot-dots { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 6px; }
.spot-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 7px; background: rgba(255,255,255,.65); cursor: pointer; transition: width .2s; }
.spot-dots button.active { width: 18px; background: #fff; }
.subsidy-panel { min-width: 0; overflow: hidden; padding: 13px 15px; border-radius: 12px; background: #fff; }
.subsidy-panel h3 { margin: 0 0 8px; font-size: 16px; }
.subsidy-panel h3 span { margin-left: 5px; padding: 1px 5px; border-radius: 4px; color: #fff; background: #a40000; font-size: 10px; }
.subsidy-items { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.subsidy-item { min-width: 0; text-align: center; }
.subsidy-item img { width: 64px; height: 64px; object-fit: contain; }
.subsidy-item b { display: block; overflow: hidden; color: #fff; background: var(--tb-orange); white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.spot-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 8px; }
.spot-shortcut { position: relative; display: grid; overflow: hidden; grid-template-rows: 23px 1fr 22px; min-width: 0; padding: 10px 9px 7px; border-radius: 12px; background: #fff; }
.spot-shortcut h4 { overflow: hidden; margin: 0; white-space: nowrap; font-size: 14px; }
.spot-shortcut h4 span { margin-left: 3px; padding: 1px 4px; border-radius: 3px; color: var(--shortcut-color); background: var(--shortcut-soft); font-size: 9px; }
.spot-shortcut img { width: 100%; height: 91px; object-fit: contain; }
.spot-shortcut b { color: var(--tb-orange); font-size: 15px; }
.spot-shortcut b::before { content: "¥"; font-size: 10px; }

.user-card { padding: 16px 14px 10px; }
.user-profile { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 25px 22px; align-items: center; }
.avatar { grid-row: 1 / 3; display: grid; width: 48px; height: 48px; border-radius: 50%; place-items: center; color: #fff; background: linear-gradient(145deg, #ffb07c, #ff5000); font-size: 23px; font-weight: 800; }
.user-profile p { margin: 0 0 0 10px; font-size: 15px; font-weight: 700; }
.user-profile span { margin-left: 10px; color: #999; font-size: 12px; }
.login-actions { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 7px; margin: 14px 0 15px; }
.login-actions button { height: 34px; border: 0; border-radius: 8px; color: var(--tb-orange); background: #fff1e8; font-weight: 700; cursor: pointer; }
.login-actions .primary { color: #fff; background: linear-gradient(90deg, #ff8a00, #ff5000); }
.user-tools { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 0; border-top: 1px solid #f3f3f3; }
.user-tools a { display: flex; flex-direction: column; align-items: center; color: #666; font-size: 11px; }
.user-tools i { margin-bottom: 5px; color: #555; font-style: normal; font-size: 21px; line-height: 26px; }
.user-tools a:hover, .user-tools a:hover i { color: var(--tb-orange); }
.member-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; margin-top: 8px; padding: 10px; border-radius: 9px; color: #5c3a18 !important; background: linear-gradient(100deg, #fff0d4, #f6ddb5); font-size: 11px; }
.member-banner b { color: #111; font-size: 15px; font-style: italic; }
.member-banner em { font-style: normal; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.feature-card { min-width: 0; height: 184px; overflow: hidden; padding: 15px; border-radius: 12px; background: #fff; }
.feature-head { display: flex; align-items: center; height: 30px; }
.feature-head h3 { margin: 0; font-size: 19px; }
.feature-head .feature-tag { margin-left: 8px; padding: 2px 6px; border-radius: 4px; color: var(--feature-color); background: var(--feature-soft); font-size: 11px; }
.feature-head a { margin-left: auto; color: #999; font-size: 12px; }
.feature-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.feature-item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 9px; align-items: center; min-width: 0; height: 116px; padding: 8px; border-radius: 9px; background: #f7f7f7; }
.feature-item img { width: 76px; height: 92px; border-radius: 7px; object-fit: cover; background: #eee; }
.feature-item strong { display: -webkit-box; overflow: hidden; font-size: 12px; font-weight: 500; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.feature-item .benefit { display: block; margin-top: 7px; color: var(--feature-color); font-size: 11px; font-style: normal; }
.feature-item .feature-price { display: block; margin-top: 3px; color: var(--tb-orange); font-size: 17px; font-weight: 700; }
.feature-item .feature-price::before { content: "¥"; font-size: 11px; }

.feed-section { margin-top: 12px; padding: 0; background: transparent; }
.feed-tabs { display: flex; align-items: center; height: 42px; padding: 0 18px; gap: 34px; }
.feed-tabs button { position: relative; height: 36px; padding: 0 4px; border: 0; color: #555; background: transparent; font-size: 16px; cursor: pointer; }
.feed-tabs button.active { color: #111; font-weight: 700; }
.feed-tabs button.active::after { position: absolute; right: 6px; bottom: 0; left: 6px; height: 3px; border-radius: 3px; content: ""; background: var(--tb-orange); }
.feed-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 0 0 20px; }
.feed-card { min-width: 0; padding: 0 0 16px; border-radius: 12px; transition: background .15s, box-shadow .15s; }
.feed-card:hover { position: relative; z-index: 2; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.10); }
.feed-image { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 12px; background: #f5f5f5; }
.feed-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.feed-card:hover img { transform: scale(1.03); }
.feed-title { display: -webkit-box; min-height: 42px; margin: 9px 2px 0; overflow: hidden; color: #222; font-size: 14px; line-height: 21px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.feed-title .tag { display: inline-block; height: 18px; margin: 1px 5px 0 0; padding: 0 4px; border-radius: 3px; color: var(--tb-orange); background: #fff0e8; font-size: 10px; line-height: 18px; vertical-align: top; }
.feed-meta { display: flex; align-items: flex-end; height: 35px; padding: 5px 2px 0; }
.feed-price { color: var(--tb-orange); font-size: 22px; font-weight: 700; line-height: 28px; }
.feed-price::before { margin-right: 1px; content: "¥"; font-size: 13px; }
.feed-sales { margin: 0 0 4px 8px; color: #999; font-size: 11px; }
.feed-shop { overflow: hidden; padding: 0 2px; color: #999; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.feed-empty { grid-column: 1 / -1; padding: 80px 0; color: #999; text-align: center; }
.feed-more { display: block; min-width: 180px; height: 42px; margin: 6px auto 28px; border: 1px solid #ffb18d; border-radius: 22px; color: var(--tb-orange); background: #fff; cursor: pointer; }
.feed-more:hover { color: #fff; background: var(--tb-orange); }
.feed-more:disabled { border-color: transparent; color: #999; background: transparent; cursor: default; }

.home-footer { padding: 34px 18px 40px; color: #999; font-size: 12px; }
.footer-help { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; padding: 25px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.footer-help span { text-align: center; }
.footer-help b { display: block; margin-bottom: 5px; color: #555; font-size: 14px; }
.home-footer p { text-align: center; }

.float-tools { position: fixed; z-index: 20; right: 12px; bottom: 70px; display: flex; width: 54px; overflow: hidden; flex-direction: column; border: 1px solid #eee; border-radius: 12px; background: #fff; box-shadow: 0 3px 18px rgba(0,0,0,.08); }
.float-tools a { display: flex; height: 55px; flex-direction: column; align-items: center; justify-content: center; border-bottom: 1px solid #f2f2f2; color: #555; font-size: 15px; }
.float-tools a:last-child { border: 0; }
.float-tools span { margin-top: 1px; font-size: 10px; }
.float-tools a:hover { color: var(--tb-orange); background: #fff8f4; }

@media (max-width: 1280px) {
  .tb-layout { width: 1190px; min-width: 1190px; }
  .search-area { width: 650px; }
  .feature-card { padding: 12px; }
  .feature-item { grid-template-columns: 66px minmax(0, 1fr); gap: 7px; }
  .feature-item img { width: 66px; height: 86px; }
}
