/* ===== 卡易信风格镜像模板（kyx） ===== */

.kyx-shell {
  --kyx-blue: #3b82f6;
  --kyx-blue-deep: #2f6bff;
  --kyx-red: #e1251b;
  --kyx-orange: #ff5000;
  background: #f7f7f7;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  color: #333;
  --primary: 217 91% 60%;
  --ring: 217 91% 60%;
  --radius: 0.375rem;
  overflow-x: hidden;
}

.kyx-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 768px) {
  .kyx-container {
    padding: 0 20px;
  }
}

.kyx-topbar {
  height: 35px;
  background: #333;
  color: #a9a9a9;
}
.kyx-topbar a {
  transition: color 0.15s ease;
}

.kyx-head {
  background: #fff;
  border-bottom: 1px solid #ededed;
}
.kyx-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
  line-height: 1;
}
@media (min-width: 768px) {
  .kyx-logo {
    font-size: 34px;
    letter-spacing: -1px;
  }
}
.kyx-nav a {
  position: relative;
  padding: 6px 14px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  transition: color 0.15s ease;
}
.kyx-nav a:hover {
  color: var(--kyx-red);
}
.kyx-nav a.active {
  color: var(--kyx-red);
}
.kyx-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -12px;
  height: 2px;
  background: var(--kyx-red);
}
.kyx-search {
  display: none;
  height: 38px;
  width: 300px;
  align-items: center;
  border: 1px solid #ddd;
}
@media (min-width: 768px) {
  .kyx-search {
    display: flex;
  }
}
.kyx-search input {
  height: 100%;
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  color: #333;
}
.kyx-search input::placeholder {
  color: #bbb;
}
.kyx-search button {
  height: 100%;
  width: 46px;
  background: var(--kyx-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 蓝色面包屑 */
.kyx-bread {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border-radius: 6px 6px 0 0;
  background: var(--kyx-blue);
  padding: 0 14px;
  color: #fff;
}
.kyx-bread button,
.kyx-bread span {
  white-space: nowrap;
}
.kyx-shell .kyx-hero h1,
.kyx-shell .kyx-hero p {
  color: #fff;
}

/* 首页 */
.kyx-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 78% 18%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(112deg, #2b64f5 0%, #3b7dff 52%, #4b94ff 100%);
  color: #fff;
}
.kyx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 80% at 70% 40%, #000 20%, transparent 78%);
}
.kyx-hero-art {
  position: relative;
  height: 300px;
  width: 460px;
}
.kyx-hero-ring {
  position: absolute;
  right: 40px;
  top: 60px;
  height: 210px;
  width: 210px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 60px rgba(120, 220, 255, 0.25) inset;
}
.kyx-hero-ring--sm {
  right: 90px;
  top: 110px;
  height: 120px;
  width: 120px;
  border-color: rgba(140, 255, 220, 0.35);
}
.kyx-hero-chip {
  position: absolute;
  right: 120px;
  top: 0;
  display: flex;
  height: 96px;
  width: 96px;
  transform: rotate(12deg);
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #63e6ff, #3b82f6);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.kyx-hero-chip--alt {
  right: 30px;
  top: 200px;
  height: 64px;
  width: 64px;
  transform: rotate(-14deg);
  background: linear-gradient(145deg, #c7f0ff, #7cc4ff);
  font-size: 22px;
  color: #2b64f5;
}
.kyx-band {
  background: #eaf3fd;
}
.kyx-cat-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 78, 140, 0.04);
}
.kyx-brand-logo {
  display: flex;
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f7fb;
  font-size: 16px;
  font-weight: 700;
  color: #3b82f6;
}
@media (min-width: 768px) {
  .kyx-brand-logo {
    height: 56px;
    width: 56px;
    font-size: 18px;
  }
}
.kyx-brand-logo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* 列表页 */
.kyx-sidebar {
  align-self: start;
  border-radius: 6px;
  background: #fff;
  padding-bottom: 8px;
  overflow: hidden;
}
.kyx-side-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: #555;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.kyx-side-item:hover {
  background: #f5f9ff;
  color: var(--kyx-blue);
}
.kyx-side-item.is-active {
  background: #e8f1ff;
  border-left-color: var(--kyx-blue);
  color: var(--kyx-blue);
  font-weight: 600;
}
.kyx-side-icon {
  display: flex;
  height: 22px;
  width: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #fff3e8;
  color: #ff8a3d;
  font-size: 12px;
  font-weight: 700;
}
.kyx-sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 10px 6px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.kyx-sub-card:hover,
.kyx-sub-card.is-active {
  border-color: var(--kyx-blue);
  background: #f7fbff;
}
.kyx-product-card {
  display: flex;
  gap: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kyx-product-card:hover {
  border-color: #d7e6ff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.08);
}
.kyx-product-thumb {
  display: flex;
  height: 74px;
  width: 74px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f7fb;
  font-weight: 700;
  color: var(--kyx-blue);
}
@media (min-width: 768px) {
  .kyx-product-thumb {
    height: 86px;
    width: 86px;
  }
}
.kyx-product-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.kyx-footer {
  background: #2b2b2b;
  color: #fff;
}

/* 镜像模板下对既有 PC 组件的通用换肤 */
.kyx-shell main > :not(.kyx-home):not(.kyx-list-page) {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 12px 20px;
}
@media (min-width: 768px) {
  .kyx-shell main > :not(.kyx-home):not(.kyx-list-page) {
    padding: 16px 20px 24px;
  }
}
.kyx-shell .pc-panel {
  border: 1px solid #ededed;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
.kyx-shell .pc-eyebrow {
  color: #999;
  letter-spacing: 0.16em;
}
.kyx-shell .pc-rule {
  color: #333;
}
.kyx-shell .pc-container {
  max-width: 1360px;
  padding: 0 20px;
}
.kyx-shell .pc-aurora {
  background: linear-gradient(112deg, #2b64f5 0%, #3b7dff 52%, #4b94ff 100%);
}
.kyx-shell h1,
.kyx-shell h2,
.kyx-shell h3 {
  color: #333;
}
.kyx-shell .text-primary {
  color: var(--kyx-blue) !important;
}
.kyx-shell .bg-primary {
  background-color: var(--kyx-blue) !important;
}
.kyx-shell .text-primary-foreground {
  color: #fff !important;
}
.kyx-shell .border-primary\/25,
.kyx-shell .border-primary\/40 {
  border-color: #cfe0fb !important;
}

/* 手机端压缩 */
@media (max-width: 767px) {
  .kyx-head {
    border-bottom: 1px solid #f2f2f2;
  }
  .kyx-bread {
    min-height: 40px;
    font-size: 12px;
  }
  .kyx-hero {
    min-height: 200px;
  }
  .kyx-cat-card {
    border-radius: 8px;
  }
  .kyx-product-card {
    gap: 10px;
  }
  .kyx-footer .kyx-container {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
