:root {
  --ly-primary: #2F6BFF;
  --ly-primary-dark: #1E4FCC;
  --ly-bg: #F5F7FB;
  --ly-card: #FFFFFF;
  --ly-text: #1F2937;
  --ly-muted: #6B7280;
  --ly-border: #E5E7EB;
  --ly-radius: 14px;
  --ly-shadow: 0 8px 24px rgba(47, 107, 255, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--ly-text);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* 默认氛围背景；站点后台背景图/渐变会覆盖 html 背景 */
.ly-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(47, 107, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 92% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(180deg, #EAF0FF 0%, #F5F7FB 38%, #F3F5FA 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.ly-wrap {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}
.ly-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ly-border);
}
.ly-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px 0;
}
.ly-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ly-primary);
  white-space: nowrap;
}
.ly-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.ly-nav {
  display: flex;
  gap: 16px;
  color: var(--ly-muted);
  font-size: 14px;
}
.ly-nav a:hover, .ly-nav a.active { color: var(--ly-primary); font-weight: 600; }
.ly-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: #F3F6FF;
  border: 1px solid #D9E4FF;
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}
.ly-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 16px;
  min-width: 0;
}
.ly-search button {
  border: 0;
  background: var(--ly-primary);
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}
.ly-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.ly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: .2s ease;
}
.ly-btn-primary {
  background: var(--ly-primary);
  color: #fff;
}
.ly-btn-primary:hover { background: var(--ly-primary-dark); }
.ly-btn-ghost {
  background: #EEF3FF;
  color: var(--ly-primary);
}
.ly-section { margin: 18px 0; }
.ly-card {
  background: var(--ly-card);
  border-radius: var(--ly-radius);
  box-shadow: var(--ly-shadow);
  border: 1px solid rgba(229,231,235,.7);
}
.ly-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ly-section-title h2 {
  margin: 0;
  font-size: 20px;
}
.ly-section-title p {
  margin: 4px 0 0;
  color: var(--ly-muted);
  font-size: 13px;
}

.ly-cats {
  padding: 16px 14px 10px;
}
.ly-cat-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px 6px;
}
.ly-cat-item {
  border: 0;
  background: transparent;
  color: var(--ly-text);
  border-radius: 12px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: .18s ease;
}
.ly-cat-item:hover {
  background: #F3F6FF;
}
.ly-cat-item.active {
  background: #EEF3FF;
}
.ly-cat-item.active .ly-cat-name {
  color: var(--ly-primary);
  font-weight: 700;
}
.ly-cat-item.active .ly-cat-ico {
  box-shadow: 0 0 0 2px var(--ly-primary);
}
.ly-cat-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: #F3F6FF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ly-cat-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ly-cat-ico-all {
  background: linear-gradient(135deg, var(--ly-primary), #6AA3FF);
  color: #fff;
  font-size: 18px;
}
.ly-cat-name {
  font-size: 12px;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ly-cat-chip {
  flex: 0 0 auto;
  border: 1px solid var(--ly-border);
  background: #fff;
  color: var(--ly-text);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.ly-cat-chip.active {
  background: var(--ly-primary);
  border-color: var(--ly-primary);
  color: #fff;
}
.ly-cat-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--ly-border);
}
.ly-cat-sub .ly-cat-chip {
  font-weight: 500;
  background: #F8FAFF;
}

.ly-banner-section {
  margin-top: 14px;
}
.ly-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--ly-radius);
  width: 100%;
  background: linear-gradient(135deg, #2F6BFF, #6AA3FF);
}
.ly-banner-track {
  display: flex;
  transition: transform .35s ease;
}
.ly-banner-item {
  min-width: 100%;
  height: 200px;
  background: #EEF3FF;
}
.ly-banner-item a, .ly-banner-item span {
  display: block;
  width: 100%;
  height: 100%;
}
.ly-banner-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.ly-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.ly-banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.ly-banner-dots button.active { background: #fff; }

.ly-hot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.ly-goods-card {
  background: #fff;
  border: 1px solid var(--ly-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.ly-goods-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ly-shadow);
}
.ly-goods-card .cover {
  position: relative;
  aspect-ratio: 1;
  background: #F3F6FF;
  overflow: hidden;
}
.ly-goods-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ly-goods-card .body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ly-goods-card .name {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #1F2937;
}
.ly-goods-card .desc {
  margin-top: 4px;
  color: #94A3B8;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ly-goods-card .stockline {
  margin-top: 5px;
  color: #94A3B8;
  font-size: 11px;
}
.ly-goods-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  gap: 6px;
}
.ly-price {
  color: #E11D48;
  font-weight: 800;
  font-size: 15px;
}
.ly-price small { font-size: 11px; font-weight: 600; }
.ly-price em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  margin-left: 2px;
}
.ly-cart-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ly-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 13px;
}
.ly-sales { color: var(--ly-muted); font-size: 12px; }

.ly-announce {
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.ly-announce .badge {
  flex: 0 0 auto;
  background: #EEF3FF;
  color: var(--ly-primary);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  z-index: 1;
}
.ly-announce-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ly-announce-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: ly-marquee-rtl 28s linear infinite;
}
.ly-announce:hover .ly-announce-track {
  animation-play-state: paused;
}
.ly-announce-item {
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
}
@keyframes ly-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ly-goods-panel {
  padding: 14px;
}
.ly-class-box {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}
.ly-class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ly-text);
}
.ly-class-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ly-class-crumb a {
  color: var(--ly-muted);
  font-weight: 600;
}
.ly-class-crumb a:hover { color: var(--ly-primary); }
.ly-class-crumb-sep { color: #CBD5E1; font-weight: 500; }
#lyCrumbName {
  color: var(--ly-text);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ly-class-toggle {
  border: 0;
  background: transparent;
  color: var(--ly-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  white-space: nowrap;
}
.ly-class-box.is-collapsed .ly-class-grid,
.ly-class-box.is-collapsed .ly-class-sub {
  display: none !important;
}
.ly-class-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ly-class-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  transition: .15s ease;
}
.ly-class-tag img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}
.ly-class-tag .ly-class-fallback {
  width: 16px;
  height: 16px;
  font-size: 13px;
  color: var(--ly-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.ly-class-tag:hover {
  border-color: #BFDBFE;
  background: #F8FBFF;
}
.ly-class-tag.active {
  border-color: var(--ly-primary);
  color: var(--ly-primary);
  background: #EEF4FF;
  font-weight: 700;
}
.ly-class-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ly-class-sub .ly-class-tag {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #F8FAFF;
}
.ly-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ly-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.ly-sorts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ly-sorts button, .ly-views button {
  border: 1px solid var(--ly-border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--ly-muted);
  font-size: 13px;
}
.ly-sorts button.active, .ly-views button.active {
  background: var(--ly-primary);
  border-color: var(--ly-primary);
  color: #fff;
}
.ly-views { display: flex; gap: 6px; }

.ly-goods-list.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* 自动铺满：按宽度自适应列数，最后一行也会横向撑满 */
.ly-goods-list.grid > .ly-goods-card {
  flex: 1 1 calc((100% - 40px) / 5);
  min-width: 170px;
  max-width: 100%;
  box-sizing: border-box;
}
.ly-goods-list.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ly-goods-list.list .ly-goods-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: stretch;
}
.ly-goods-list.list .ly-goods-card .cover {
  aspect-ratio: auto;
  width: 140px;
  min-height: 100px;
  height: 100%;
}
.ly-goods-list.list .ly-goods-card .name { height: auto; -webkit-line-clamp: 2; }
.ly-goods-list.list .ly-goods-card .meta { margin-top: 8px; }

.ly-empty, .ly-loading {
  text-align: center;
  color: var(--ly-muted);
  padding: 40px 16px;
}
.ly-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ly-pager button {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--ly-border);
  background: #fff;
  cursor: pointer;
}
.ly-pager button.active {
  background: var(--ly-primary);
  color: #fff;
  border-color: var(--ly-primary);
}
.ly-pager button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ly-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 12px;
}
.ly-service {
  padding: 18px 14px;
  text-align: center;
}
.ly-service i {
  color: var(--ly-primary);
  font-size: 22px;
  margin-bottom: 8px;
}
.ly-service h4 { margin: 0 0 6px; font-size: 15px; }
.ly-service p { margin: 0; color: var(--ly-muted); font-size: 12px; }

.ly-footer {
  text-align: center;
  color: var(--ly-muted);
  font-size: 12px;
  padding: 18px 0 90px;
}

.ly-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--ly-border);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.ly-tabbar a {
  flex: 1;
  text-align: center;
  color: var(--ly-muted);
  font-size: 11px;
  padding: 4px 0;
}
.ly-tabbar a i { display: block; font-size: 18px; margin-bottom: 2px; }
.ly-tabbar a.active { color: var(--ly-primary); font-weight: 700; }

.ly-page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 8px;
}
.ly-page-head a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ly-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ly-buy-card, .ly-query-card {
  padding: 18px;
  margin: 12px 0 24px;
}
.ly-buy-page {
  padding: 16px 0 100px;
  width: min(980px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}
.ly-buy-main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  overflow: visible;
}
.ly-buy-gallery {
  position: relative;
  padding: 12px;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  z-index: 2;
  overflow: visible;
}
.ly-buy-mainimg {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #F3F6FF;
  cursor: crosshair;
}
.ly-buy-mainimg.is-zooming {
  overflow: hidden;
}
.ly-buy-mainimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
}
.ly-zoom-lens {
  position: absolute;
  width: 42%;
  height: 42%;
  border: 1px solid rgba(47, 107, 255, .55);
  background: rgba(47, 107, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  pointer-events: none;
  z-index: 3;
  display: none;
}
.ly-zoom-lens.is-on { display: block; }
.ly-zoom-result {
  position: absolute;
  left: calc(100% + 14px);
  top: 12px;
  width: min(420px, 42vw);
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--ly-border, #E2E8F0);
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 0 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  z-index: 20;
  display: none;
  pointer-events: none;
}
.ly-zoom-result.is-on { display: block; }
.ly-buy-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.ly-buy-nav.prev { left: 10px; }
.ly-buy-nav.next { right: 10px; }
.ly-buy-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.ly-buy-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #F8FAFF;
  cursor: pointer;
}
.ly-buy-thumb.active { border-color: var(--ly-primary); }
.ly-buy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ly-buy-share {
  width: 100%;
  margin-top: auto;
  height: 40px;
  border: 1px solid var(--ly-border);
  border-radius: 10px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-weight: 600;
}
.ly-buy-info {
  padding: 16px;
}
.ly-buy-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  color: #0F172A;
}
.ly-buy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: #94A3B8;
  font-size: 12px;
}
.ly-buy-pricebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px dashed #E2E8F0;
  border-bottom: 1px dashed #E2E8F0;
}
.ly-buy-price {
  color: #F97316;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.ly-buy-price small { font-size: 14px; margin-right: 2px; }
.ly-buy-price em {
  font-style: normal;
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
  margin-left: 4px;
}
.ly-buy-login-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF7ED;
  color: #9A3412;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ly-buy-login-tip a {
  color: #fff;
  background: #F97316;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  white-space: nowrap;
}
.ly-pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ly-pay-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #E5E7EB;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  text-align: left;
  color: #334155;
  font-size: 13px;
  min-width: 0;
  width: auto;
}
.ly-pay-item i { width: 18px; text-align: center; }
.ly-pay-item.active {
  border-color: var(--ly-primary);
  background: #EEF4FF;
  color: var(--ly-primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--ly-primary);
}
.ly-buy-footerbar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}
.ly-buy-total {
  color: #64748B;
  font-size: 14px;
}
.ly-buy-total strong {
  color: #F97316;
  font-size: 22px;
}
.ly-buy-footerbar .ly-btn {
  min-width: 140px;
  height: 44px;
  border-radius: 10px;
}
.ly-buy-detail {
  margin-top: 16px;
  padding: 0 0 18px;
  overflow: hidden;
}
.ly-buy-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #F1F5F9;
  padding: 0 8px;
}
.ly-buy-tabs button {
  border: 0;
  background: transparent;
  padding: 14px 16px;
  cursor: pointer;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}
.ly-buy-tabs button.active {
  color: var(--ly-primary);
}
.ly-buy-tabs button.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--ly-primary);
  border-radius: 2px;
}
.ly-buy-tabpane {
  padding: 16px 18px 0;
}
.ly-buy-desc {
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
  overflow: auto;
}
.ly-buy-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.ly-buy-alert {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 12px 14px;
  color: #92400E;
  font-size: 13px;
  line-height: 1.7;
}
.ly-form-row { margin-top: 14px; }
.ly-form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.ly-form-row input, .ly-form-row select, .ly-form-row textarea {
  width: 100%;
  border: 1px solid var(--ly-border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}
.ly-form-row input:focus, .ly-form-row select:focus, .ly-form-row textarea:focus {
  border-color: var(--ly-primary);
  box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
.ly-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ly-border);
  border-radius: 10px;
  overflow: hidden;
}
.ly-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #F8FAFF;
  cursor: pointer;
}
.ly-qty input {
  width: 64px;
  border: 0;
  text-align: center;
  padding: 8px 0;
}

@media (max-width: 1024px) {
  .ly-cat-grid { grid-template-columns: repeat(6, 1fr); }
  .ly-hot-grid { grid-template-columns: repeat(3, 1fr); }
  .ly-goods-list.grid > .ly-goods-card {
    flex-basis: calc((100% - 30px) / 4);
    min-width: 150px;
  }
  .ly-services { grid-template-columns: repeat(2, 1fr); }
  .ly-buy-main { grid-template-columns: 260px minmax(0, 1fr); }
  .ly-buy-page { width: min(900px, calc(100% - 24px)); }
}
@media (max-width: 768px) {
  .ly-nav, .ly-header-actions .ly-hide-m { display: none; }
  .ly-header-inner { gap: 10px; }
  .ly-brand span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .ly-cat-grid { grid-template-columns: repeat(5, 1fr); }
  .ly-cat-ico { width: 42px; height: 42px; border-radius: 12px; }
  .ly-hot-grid { grid-template-columns: repeat(2, 1fr); }
  .ly-goods-list.grid > .ly-goods-card {
    flex-basis: calc((100% - 10px) / 2);
    min-width: calc((100% - 10px) / 2);
  }
  .ly-goods-list.list .ly-goods-card { grid-template-columns: 76px 1fr; }
  .ly-goods-list.list .ly-goods-card .meta { align-items: flex-start; }
  .ly-banner-item { height: 140px; }
  .ly-tabbar { display: flex; }
  .ly-buy-page { width: calc(100% - 20px); }
  .ly-buy-main { grid-template-columns: 1fr; }
  .ly-buy-price { font-size: 22px; }
  .ly-buy-footerbar { flex-wrap: wrap; }
  .ly-buy-footerbar .ly-btn { flex: 1; min-width: 120px; }
  .ly-buy-mainimg { cursor: default; }
  .ly-zoom-lens,
  .ly-zoom-result { display: none !important; }
}
