/* 1.2.4: semantic commerce accents only. No DOM, price or checkout changes. */
body.xhc-cosmos {
  --xhc-money: #ae401b;
  --xhc-money-bg: #fff0e7;
  --xhc-money-border: #f1c5af;
  --xhc-download: #087969;
  --xhc-download-bg: #e8f7f1;
  --xhc-download-border: #afdcca;
  --xhc-vip-bg: #f2ecff;
  --xhc-vip-ink: #6945a4;
  --xhc-vip-border: #dcd0f6;
  --xhc-buy-gradient: linear-gradient(115deg, #c93946, #c65032);
  --xhc-download-gradient: linear-gradient(115deg, #087969, #086e78);
}
body.xhc-cosmos.dark-theme {
  --xhc-money: #ffbe91;
  --xhc-money-bg: #382a2b;
  --xhc-money-border: #705044;
  --xhc-download: #8ae6c9;
  --xhc-download-bg: #152f31;
  --xhc-download-border: #306357;
  --xhc-vip-bg: #302443;
  --xhc-vip-ink: #dac1ff;
  --xhc-vip-border: #594274;
  --xhc-buy-gradient: linear-gradient(115deg, #c73e54, #c45036);
  --xhc-download-gradient: linear-gradient(115deg, #087c6d, #086e81);
}

/* Prices are warm, while navigation keeps its cool observatory palette. */
body.xhc-cosmos :is(.pay-box .price-box, .pay-box .price-box .c-red, .xcn-price-main strong, .xhc-plan-price strong, .payvip-modal .product-price) {
  color: var(--xhc-money) !important;
}
body.xhc-cosmos .posts-item a.meta-pay.xhc-price-chip,
body.xhc-cosmos .pay-box .pay-tag {
  color: var(--xhc-money) !important;
  background: var(--xhc-money-bg) !important;
  border-color: var(--xhc-money-border) !important;
}
body.xhc-cosmos .posts-item .meta-pay .xhc-price-value { font-size: 13px; }
body.xhc-cosmos .pay-box > .payvip-icon {
  background: linear-gradient(115deg, #fff0e4, #fff6ec 52%, #f5edff) !important;
  border-bottom-color: var(--xhc-money-border);
}
body.xhc-cosmos.dark-theme .pay-box > .payvip-icon {
  background: linear-gradient(115deg, #39282a, #302c39 52%, #2b2541) !important;
}
body.xhc-cosmos .pay-box > .payvip-icon > .flex0 {
  color: var(--xhc-vip-ink);
  background: var(--xhc-vip-bg);
  border: 1px solid var(--xhc-vip-border);
  border-radius: 100px;
  padding: 9px 13px;
}
body.xhc-cosmos .pay-widget > .relative-h.jb-red {
  background: radial-gradient(ellipse at 95% 0, #f0e4ff, transparent 65%), linear-gradient(125deg, #fff2e7, #fff8f1) !important;
}
body.xhc-cosmos.dark-theme .pay-widget > .relative-h.jb-red {
  background: radial-gradient(ellipse at 95% 0, #362844, transparent 65%), linear-gradient(125deg, #33252b, #25283d) !important;
}
body.xhc-cosmos .pay-widget > .relative-h > .absolute.jb-red { background: var(--xhc-money-bg) !important; opacity: .22; }
body.xhc-cosmos .pay-widget :is(.fa-shopping-bag.fa-3x, .xhc-benefit-symbol) {
  color: var(--xhc-vip-ink);
  background: var(--xhc-vip-bg);
  border-color: var(--xhc-vip-border);
}

/* Buy = coral; actual download = emerald. Existing native anchors stay intact. */
body.xhc-cosmos:is(.dark-theme, :not(.dark-theme)) .pay-box a.cashier-link,
body.xhc-cosmos:is(.dark-theme, :not(.dark-theme)) .pay-widget .box-body .but.jb-red,
body.xhc-cosmos:is(.dark-theme, :not(.dark-theme)) .payvip-modal .initiate-pay {
  color: #fff !important;
  background: var(--xhc-buy-gradient) !important;
  border: 1px solid rgba(236, 130, 110, .35);
  box-shadow: 0 6px 18px rgba(174, 52, 52, .17);
  font-weight: 700;
}
body.xhc-cosmos:is(.dark-theme, :not(.dark-theme)) .paid-down-group > .but.jb-blue,
body.xhc-cosmos:is(.dark-theme, :not(.dark-theme)) .pay-widget .box-body .but.jb-red:has(.fa-download) {
  color: #fff !important;
  background: var(--xhc-download-gradient) !important;
  border: 1px solid rgba(72, 173, 151, .5);
  box-shadow: 0 6px 18px rgba(8, 121, 105, .19);
  font-weight: 700;
}
body.xhc-cosmos .paid-down-group > .but { min-height: 46px; }
body.xhc-cosmos .paid-down-group > .but.jb-yellow,
body.xhc-cosmos .pay-widget .box-body .but.c-yellow {
  color: var(--xhc-gold-ink) !important;
  background: var(--xhc-gold-bg) !important;
  border-color: var(--xhc-gold-border);
}
body.xhc-cosmos .pay-box .vip-price-buts .vip-price[vip-level="2"],
body.xhc-cosmos .xcn-members > div:nth-child(2) {
  color: var(--xhc-vip-ink);
  background: var(--xhc-vip-bg);
  border-color: var(--xhc-vip-border);
}
body.xhc-cosmos .pay-box .xhc-saving,
body.xhc-cosmos .xcn-members .xhc-saving { font-weight: 650; opacity: 1; }

/* A clear download-method tray, with providers retaining their brand icon. */
body.xhc-cosmos .but-download {
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 20px;
  margin-top: 18px;
  border: 1px solid var(--xhc-download-border);
  border-radius: 16px;
  background: var(--xhc-download-bg);
  box-shadow: inset 3px 0 var(--xhc-download);
}
body.xhc-cosmos .but-download::before {
  content: "下载方式";
  display: block;
  width: 100%;
  color: var(--xhc-download);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .4px;
}
body.xhc-cosmos .but-download > a.but {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
body.xhc-cosmos .but-download > a.b-theme {
  color: #fff !important;
  background: var(--xhc-download-gradient) !important;
  border: 1px solid var(--xhc-download-border);
}
body.xhc-cosmos .but-download > a.b-theme.baidu {
  background: linear-gradient(115deg, #2355ca, #1761c9) !important;
  border-color: #4878db;
}
body.xhc-cosmos .but-download > a.but:not(.b-theme) {
  color: var(--xhc-gold-ink) !important;
  background: var(--xhc-gold-bg) !important;
  border: 1px dashed var(--xhc-gold-border);
}

/* Membership tier accents, without overriding disabled/owned state. */
body.xhc-cosmos .xhc-plan-card[data-xhc-card-tier="1"] { border-top: 3px solid #c99a4d; }
body.xhc-cosmos .xhc-plan-card[data-xhc-card-tier="2"] { border-top: 3px solid #a77bdd; }
body.xhc-cosmos .xhc-plan-card[data-xhc-card-tier="2"] .xhc-plan-top > span { color: var(--xhc-vip-ink); }
body.xhc-cosmos .xhc-plan-action:not(:disabled) {
  background: var(--xhc-buy-gradient) !important;
  color: #fff !important;
  border-color: rgba(236, 130, 110, .4);
}
body.xhc-cosmos .xhc-plan-action:disabled { box-shadow: none; }

@media (hover: hover) {
  body.xhc-cosmos :is(.paid-down-group > .but, .pay-widget .box-body .but, .but-download > a.but, .pay-box a.cashier-link):hover {
    filter: brightness(1.07);
    box-shadow: 0 7px 21px rgba(35, 74, 110, .2);
  }
}
@media (max-width: 767px) {
  body.xhc-cosmos .paid-down-group > .but { min-height: 44px; }
  body.xhc-cosmos .pay-box > .payvip-icon > .flex0 { padding: 8px 10px; font-size: 10px; }
  body.xhc-cosmos .but-download { padding: 16px; }
  body.xhc-cosmos .but-download > a.but { padding-inline: 12px; font-size: 12px; }
}
