/* Main storefront. Cover lettering remains live text over generated artwork. */
body.xiaojing-store {--xj-sale-price:#ee3d44;--xj-price-unit:#be3039;}
:root[data-theme="dark"] body.xiaojing-store {--xj-sale-price:#ff9c9f;--xj-price-unit:#ff9c9f;}
body.xj-home.xiaojing-theme {
  --home-gradient:linear-gradient(105deg,#38b9ee 0%,#2482ea 38%,#1749da 100%);
  --home-border:rgba(255,255,255,.84);
  --home-surface:rgba(252,254,255,.83);
  --home-topbar:rgba(251,253,255,.84);
  --home-card:rgba(255,255,255,.74);
  --home-announcement:linear-gradient(108deg,rgba(238,249,255,.74),rgba(225,235,253,.67) 69%,rgba(222,241,255,.8));
  --home-shelf:linear-gradient(180deg,rgba(255,255,255,.67),rgba(234,244,255,.44));
  --home-header:linear-gradient(100deg,rgba(250,253,255,.74),rgba(204,233,253,.6) 95%);
  --home-surface-shadow:0 10px 34px rgba(57,105,172,.08);
}
:root[data-theme="dark"] body.xj-home.xiaojing-theme {
  --home-border:#364a69;
  --home-surface:#17263b;
  --home-topbar:rgba(22,34,54,.92);
  --home-card:rgba(22,37,59,.9);
  --home-announcement:linear-gradient(108deg,#203856,#213456 75%,#2b4665);
  --home-shelf:linear-gradient(180deg,#1b2a43,#16253a);
  --home-header:linear-gradient(105deg,#213451,#29496d);
  --home-surface-shadow:0 12px 30px rgba(0,0,0,.14);
}
.xj-home .shop-nav__item.xj-shop-current,
:root[data-theme="dark"] .xj-home .shop-nav__item.xj-shop-current {
  background:linear-gradient(110deg,var(--xj-selected-bg),var(--xj-soft));
  color:var(--xj-selected-text);
  box-shadow:none;
}
body.xj-home.xiaojing-store .uc-topbar,
:root[data-theme="dark"] body.xj-home.xiaojing-store .uc-topbar {
  background:var(--home-topbar);
  backdrop-filter:blur(14px);
}
.xj-home .shop-search__box {max-width:446px;}
.xj-home .shop-brand img {width:42px;height:42px;}
.xj-home main.container {max-width:1348px;}
.xj-home .panel.xj-announcement,.xj-home .panel.xj-products {
  border:1px solid var(--home-border);
  border-radius:24px;
  box-shadow:var(--home-surface-shadow);
  backdrop-filter:blur(8px);
}
.xj-home .panel.xj-announcement {
  position:relative;
  isolation:isolate;
  margin-bottom:24px;
  padding:16px 28px 21px;
  background:var(--home-announcement);
}
.xj-home .xj-announcement::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 0 auto;
  width:50%;
  background:url('/assets/subscription/storefront/xiaojing-reference-20261111/whale.webp') right center/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 44%);
}
:root[data-theme="dark"] .xj-home .xj-announcement::before {opacity:.65;}
.xj-home.xj-subshop .xj-announcement::before {content:none;}
.xj-home.xj-subshop .xj-announcement .panel-body {width:100%;background:var(--home-surface);overflow-wrap:anywhere;}
body.xj-home.xiaojing-store .xj-announcement .panel-header {
  background:none;
  border:0;
  padding:0 0 10px;
  min-height:0;
}
.xj-home .xj-announcement .panel-title,.xj-home .xj-products .panel-title {
  color:var(--xj-ink);
  font-size:24px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
}
.xj-home .xj-announcement .panel-header .icon,.xj-home .xj-products .panel-header .icon {
  background:none;
  color:var(--xj-blue);
  font-size:25px;
  width:32px;
  height:32px;
  flex:none;
}
.xj-home .xj-announcement .panel-body {
  width:78%;
  padding:11px 18px;
  border-radius:13px;
  background:linear-gradient(90deg,var(--home-surface) 73%,transparent);
}
.xj-home .xj-announcement .moyue-store-notice {
  color:var(--xj-ink);
  font-size:14px;
  line-height:1.52;
}
.xj-home .xj-announcement .moyue-store-notice p {position:relative;padding-left:20px;margin-bottom:4px;}
.xj-home .xj-announcement .moyue-store-notice p:last-child {margin-bottom:0;}
.xj-home .xj-announcement .moyue-store-notice p::before {
  content:"";
  position:absolute;
  width:7px;
  height:7px;
  top:.52em;
  left:2px;
  border-radius:50%;
  background:#3289eb;
}
.xj-home .panel.xj-products {background:var(--home-shelf);scroll-margin-top:82px;}
body.xj-home.xiaojing-store .xj-products .panel-header {position:relative;isolation:isolate;overflow:hidden;padding:15px 26px;background:var(--home-header);border-bottom:0;}
.xj-home .xj-products .panel-header::after {content:"";position:absolute;z-index:-1;right:-4%;bottom:-120%;width:45%;height:200%;border-radius:65% 0 0 0;background:linear-gradient(120deg,transparent,rgba(63,159,232,.29));}
.xj-home .xj-products-intro {margin:0 0 0 10px;color:var(--xj-muted);font-size:13px;}
.xj-home .xj-products .panel-body {padding:12px 26px 22px;}
.xj-home .xj-category-nav .chip {min-height:40px;padding-inline:18px;font-size:14px;font-weight:700;}
.xj-home .xj-category-nav .chip.is-primary,
:root[data-theme="dark"] .xj-home .xj-category-nav .chip.is-primary {
  background:var(--home-gradient);
  border-color:transparent;
  color:#fff;
  box-shadow:0 4px 8px rgba(37,91,195,.17);
}
.xj-home .xj-category-nav .chip.is-primary:focus-visible {outline-color:#fff;}
.xj-home .item-list {gap:18px;}
.xj-home .item-list .acg-card {
  border:1px solid var(--home-border);
  border-radius:17px;
  background:var(--home-card);
  box-shadow:0 6px 18px rgba(42,91,157,.08);
}
:root[data-theme="dark"] .xj-home .item-list .acg-card {background:var(--home-card);}
body.xiaojing-store .xj-cover-art {
  position:relative;
  isolation:isolate;
  container-type:inline-size;
  width:100%;
  aspect-ratio:2.2 / 1;
  overflow:hidden;
  background:var(--cover-color,#154bc4) var(--cover-image) center/cover no-repeat;
}
.xj-cover-go {--cover-color:#187f92;--cover-image:url('/assets/subscription/storefront/xiaojing-glass-20261111/go.webp');}
.xj-cover-plus {--cover-color:#3866bd;--cover-image:url('/assets/subscription/storefront/xiaojing-glass-20261111/plus.webp');}
.xj-cover-pro-5x {--cover-color:#7455ad;--cover-image:url('/assets/subscription/storefront/xiaojing-glass-20261111/pro-5x.webp');}
.xj-cover-pro-20x {--cover-color:#6c50a9;--cover-image:url('/assets/subscription/storefront/xiaojing-glass-20261111/pro-20x.webp');}
.xj-cover-pro-50x { --cover-color:#473079;--cover-image:url('/assets/subscription/storefront/xiaojing-expansion-20261111/pro-50x.webp'); }
.xj-cover-codex-250 { --cover-color:#237496;--cover-image:url('/assets/subscription/storefront/xiaojing-expansion-20261111/codex-250.webp'); }
.xj-cover-codex-500 { --cover-color:#3f5eaa;--cover-image:url('/assets/subscription/storefront/xiaojing-expansion-20261111/codex-500.webp'); }
.xj-cover-art::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(21,32,69,.18),transparent 62%);}
.xj-home .item-list .acg-thumb.xj-cover-art {aspect-ratio:2.2 / 1;background-color:var(--cover-color);}
.xj-cover-text {display:grid;align-content:center;justify-items:start;gap:1.15cqw;height:100%;padding:0 7.2%;color:#fff;text-shadow:0 1px 3px rgba(11,18,58,.24);}
.xj-cover-brand {display:flex;align-items:center;gap:.9cqw;font-size:4.6cqw;font-weight:700;line-height:1;}
.xj-cover-brand img {display:block;width:6.2cqw;height:6.2cqw;filter:brightness(0) invert(1);}
.xj-cover-tier {background:#eef5ff;color:#243a66;border-radius:999px;padding:.4cqw 1.65cqw;font-size:3.35cqw;font-weight:700;line-height:1.1;text-shadow:none;}
.xj-cover-text strong {font-size:12.1cqw;letter-spacing:-.045em;font-weight:900;line-height:1.06;white-space:nowrap;}
.xj-cover-pro-5x strong,.xj-cover-pro-20x strong,.xj-cover-pro-50x strong {font-size:10.8cqw;}
.xj-cover-pro-50x::before {background:linear-gradient(100deg,rgba(36,16,83,.58),rgba(60,36,117,.24) 60%,rgba(48,27,96,.06));}
.xj-cover-terminal {font-size:6.2cqw;line-height:1;}
.xj-category-terminal {font-size:18px;color:inherit;}
.xj-cover-note {font-size:4.1cqw;line-height:1.16;font-weight:600;}
.xj-home .item-list .acg-card .acg-body {padding:11px 15px 13px;background:transparent;}
.xj-home .item-list .goods-title {font-size:14px;line-height:1.42;min-height:2.84em;}
.xj-home .item-list .acg-card .price {color:var(--xj-sale-price);font-variant-numeric:tabular-nums;}
.xj-home .item-list .price .unit {color:var(--xj-price-unit);}
.xj-home .item-list .stat-bottom {font-size:12px;gap:4px;}
.xj-home .item-list .stat-bottom > span {display:inline-flex;align-items:center;gap:4px;}
.xj-home .item-list .stat-bottom .material-icons-outlined {font-size:15px;}
.xj-home .item-list .stat-bottom .xj-sale-icon {color:var(--xj-price-unit);}
.xj-home .item-list .soldout .acg-thumb {filter:none;opacity:.95;}
.xj-home .item-list .soldout .price {color:var(--xj-sale-price);}
.xj-home .item-list .soldout-ribbon {background:#bd343d;}
.xj-buy-action {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  margin-top:12px;
  border-radius:11px;
  color:#fff;
  background:var(--home-gradient);
  font-size:14px;
  font-weight:750;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24);
  text-shadow:0 1px 2px rgba(17,54,123,.4);
}
.item-card-cell[href]:hover .xj-buy-action {filter:brightness(1.07);}
.xj-buy-action .material-icons-outlined {font-size:19px;}
.soldout .xj-buy-action {background:var(--xj-soft);color:var(--xj-muted);text-shadow:none;box-shadow:none;}
@media(max-width:767px) {
  .xj-home .panel.xj-announcement,.xj-home .panel.xj-products {border-radius:17px;}
  .xj-home .panel.xj-announcement {padding:12px 12px 14px;margin-bottom:15px;}
  .xj-home .xj-announcement::before {width:52%;height:96px;background-position:right 53%;mask-image:linear-gradient(90deg,transparent,#000 45%);}
  .xj-home .xj-announcement .panel-title,.xj-home .xj-products .panel-title {font-size:19px;}
  .xj-home .xj-announcement .panel-body {width:100%;padding:9px 10px;background:var(--home-surface);}
  .xj-home .xj-announcement .moyue-store-notice {font-size:12px;}
  .xj-home .xj-announcement .moyue-store-notice p {padding-left:13px;}
  .xj-home .xj-announcement .moyue-store-notice p::before {width:5px;height:5px;}
  body.xj-home.xiaojing-store .xj-products .panel-header {padding:10px 12px;gap:5px;flex-wrap:wrap;}
  .xj-home .xj-products-intro {font-size:11px;margin-left:4px;}
  .xj-home .xj-products .panel-body {padding:10px;}
  .xj-home .xj-category-nav .chip {min-height:36px;padding-inline:12px;font-size:13px;}
  .xj-home .item-list {gap:9px;}
  .xj-home .item-list .acg-card {border-radius:12px;}
  .xj-home .item-list .acg-card .acg-body {padding:8px 8px 9px;}
  .xj-home .item-list .goods-title {font-size:12px;}
  .xj-home .item-list .stat-bottom {font-size:10px;}
  .xj-buy-action {margin-top:8px;font-size:12px;min-height:37px;}
}
