/* 应用商店 /store/ */

.apps-cards > [class*='col'] {
  display: flex;
  margin-bottom: 30px;
}

.apps-cards .app-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #fff;
  background: #fff;
  position: relative;
  z-index: 0;
  border-radius: 12px;
  padding: 24px 26px 26px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.apps-cards .app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.75;
}

.apps-cards .app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(19, 15, 53, 0.3);
}

.apps-cards .app-card img {
  width: 168px;
  height: 123px;
  display: block;
  margin: 4px auto 14px;
}

.apps-cards .app-card h3 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 10px;
}

.apps-cards .app-card p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.apps-cards .app-card .link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.apps-cards .app-card .link i {
  margin-left: 4px;
  font-size: 16px;
  vertical-align: -1px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.apps-cards .app-card:hover .link i {
  transform: translateX(5px);
}

.apps-cards .app-card.g-mes::before {
  background: radial-gradient(circle at top left, rgba(100, 0, 255, 0.4), transparent 30%), linear-gradient(135deg, #000428, #004e92);
}

.apps-cards .app-card.g-wms::before {
  background: radial-gradient(circle at top left, rgba(80, 0, 100, 0.6), transparent 30%), linear-gradient(135deg, #2a0845, #2b2bb2, #2b8edb);
}

.apps-cards .app-card.g-psi::before {
  background: radial-gradient(circle at top right, rgba(0, 200, 255, 0.4), transparent 25%), linear-gradient(135deg, #00c6ff, #0072ff);
}

.apps-cards .app-card.g-crm::before {
  background: radial-gradient(circle at top left, rgba(255, 0, 128, 0.5), transparent 30%), linear-gradient(135deg, #4a00e0, #ff6a00);
}

.apps-cards .app-card.g-hrm::before {
  background: radial-gradient(circle at top left, rgba(0, 128, 128, 0.5), transparent 30%), linear-gradient(135deg, #134e5e, #71b280);
}

.apps-cards .app-card.g-srm::before {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 30%), linear-gradient(135deg, #141e30, #243b55);
}

.apps-cards .app-card.g-oa::before {
  background: radial-gradient(circle at top left, rgba(128, 0, 128, 0.4), transparent 30%), linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
}

.store-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: normal;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 12px;
  color: #fff;
}

.store-badge.free {
  background: #00e676;
}

.store-badge.paid {
  background: linear-gradient(79deg, #1366ec 0%, #8e13ec 60%, #ec138a 100%);
}

.store-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(19, 15, 53, 0.12);
  border-color: #cfd7f5;
}

.store-card-top {
  position: relative;
  height: 156px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex: none;
}

.store-card-top.has-img {
  padding: 0;
}

.store-card-top .store-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.store-card-top h3 {
  font-size: 30px;
  color: #fff;
  text-transform: uppercase;
}

.store-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.store-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1c2033;
  margin: 0 0 7px;
}

.store-card-body > p {
  font-size: 13px;
  line-height: 1.75;
  color: #5b6178;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.store-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f1f6;
}

.store-card-foot .store-more {
  font-size: 14px;
  font-weight: 500;
  color: #1366ec;
}

.store-card-foot .store-more i {
  margin-left: 4px;
  font-size: 15px;
  display: inline-block;
  vertical-align: -1px;
  transition: transform 0.22s ease;
}

/*
 * 卡片配色，与本文件开头 apps-cards 的卡片取色一致。
 * 渐变定义一份，列表卡片与详情页 Banner 共用。
 */
.g-mes {
  --store-grad: radial-gradient(circle at top left, rgba(100, 0, 255, 0.4), transparent 30%), linear-gradient(135deg, #000428, #004e92);
}

.g-wms {
  --store-grad: radial-gradient(circle at top left, rgba(80, 0, 100, 0.6), transparent 30%), linear-gradient(135deg, #2a0845, #2b2bb2, #2b8edb);
}

.g-psi {
  --store-grad: radial-gradient(circle at top right, rgba(0, 200, 255, 0.4), transparent 25%), linear-gradient(135deg, #00c6ff, #0072ff);
}

.g-crm {
  --store-grad: radial-gradient(circle at top left, rgba(255, 0, 128, 0.5), transparent 30%), linear-gradient(135deg, #4a00e0, #ff6a00);
}

.g-hrm {
  --store-grad: radial-gradient(circle at top left, rgba(0, 128, 128, 0.5), transparent 30%), linear-gradient(135deg, #134e5e, #71b280);
}

.g-srm {
  --store-grad: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 30%), linear-gradient(135deg, #141e30, #243b55);
}

.g-oa {
  --store-grad: radial-gradient(circle at top left, rgba(128, 0, 128, 0.4), transparent 30%), linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
}

.g-tms {
  --store-grad: radial-gradient(circle at top left, rgba(0, 180, 120, 0.4), transparent 30%), linear-gradient(135deg, #0f3443, #34e89e);
}

.g-default {
  --store-grad: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 30%), linear-gradient(135deg, #667eea, #764ba2);
}

.store-card-top {
  background: var(--store-grad);
}

/* 详情页 Banner 用商品自己的卡片色，blend-mode 复位以与卡片观感一致 */
.banner.store-banner {
  background: var(--store-grad);
  background-blend-mode: normal;
}

/* 详情页 */

.store-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.store-meta li {
  font-size: 12px;
  color: #dfe6ee;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 11px;
  border-radius: 12px;
}

.store-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

/* 网格项最小宽度归零，避免截图条撑破列宽 */
.store-main,
.store-side {
  min-width: 0;
}

.store-main h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-left: 11px;
  border-left: 4px solid #8e13ec;
}

.store-main .store-block {
  margin-bottom: 40px;
}

.store-content {
  font-size: 14px;
  line-height: 1.9;
  color: #40465c;
}

.store-content h1,
.store-content h2,
.store-content h3,
.store-content h4,
.store-content h5,
.store-content h6 {
  margin-top: 1.275em;
  margin-bottom: 0.85em;
  font-weight: 700;
  color: #1c2033;
}

.store-content h1 {
  font-size: 1.8em;
  border-bottom: 1px solid #e6ecf1;
  padding-bottom: 0.5em;
}

.store-content h2 {
  font-size: 1.7em;
}

.store-content h3 {
  font-size: 1.45em;
}

.store-content h4 {
  font-size: 1.25em;
}

.store-content h5 {
  font-size: 1.05em;
}

.store-content h6 {
  font-size: 0.9em;
  color: #777;
}

.store-content p {
  margin-top: 0;
  margin-bottom: 0.85em;
}

.store-content a {
  color: #4183c4;
  text-decoration: none;
}

.store-content a:hover {
  text-decoration: underline;
}

.store-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.5em 0;
}

/* 系统截图，大图+缩略图导航 */
.store-gallery-main {
  position: relative;
  text-align: center;
}

.store-gallery-frame {
  border: 1px solid #e2e6f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(30, 40, 80, 0.1);
}

.store-gallery-frame-bar {
  height: 34px;
  background: #f5f6fa;
  border-bottom: 1px solid #e8ecf4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
}

.store-gallery-frame-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e0e4ec;
}

.store-gallery-main img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: contain;
  margin: 0 auto;
  transition: opacity 0.15s ease;
}

.store-gallery-main img.switching {
  opacity: 0;
}

.store-gallery-caption {
  font-size: 14px;
  color: #8a90a6;
  margin: 14px 0 0;
  text-align: center;
}

.store-gallery-caption:empty {
  display: none;
}

.store-gallery-arrow {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #9ba0b0;
  user-select: none;
  z-index: 1;
}

.store-gallery-arrow:hover {
  background: #fff;
  color: #2890c8;
}

.store-gallery-arrow.prev {
  left: 12px;
}

.store-gallery-arrow.next {
  right: 12px;
}

.store-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.store-gallery-thumb {
  height: 64px;
  width: auto;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.55;
  flex: 0 0 auto;
  transition:
    opacity 0.15s,
    border-color 0.15s;
}

.store-gallery-thumb:hover {
  opacity: 0.85;
}

.store-gallery-thumb.active {
  opacity: 1;
  border-color: #c4c9d4;
}

/* 为何使用，白底描边卡片，高度随内容，同一行拉到等高 */
.row.store-problems {
  margin: 0 -10px;
}

.row.store-problems > [class*='col-'] {
  display: flex;
  padding: 0 10px;
}

.store-problems .slick-card {
  flex: 1;
  height: auto;
  padding: 22px;
  border-radius: 12px;
  text-align: left;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow: 0 1px 2px rgba(19, 15, 53, 0.04);
}

.store-problems .slick-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 10px;
}

.store-problems .slick-card p {
  font-size: 14px;
  line-height: 1.85;
  color: #5b6178;
  margin: 0;
}

/* 如何安装 */
ol.store-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  counter-reset: store-step;
}

ol.store-steps > li {
  position: relative;
  padding: 0 0 14px 34px;
  font-size: 14px;
  color: #40465c;
}

ol.store-steps > li::before {
  counter-increment: store-step;
  content: counter(store-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #1366ec;
  background: #eef2fb;
}

.img-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 100%;
  text-align: center;
  z-index: 1041;
  transform: translateY(50%);
}

.img-preview > img {
  max-width: 98%;
  max-height: 98%;
  display: inline-block;
  transform: translateY(-50%);
  cursor: zoom-out;
  opacity: 0;
}

.store-content ul {
  margin: 0;
  padding-left: 20px;
}

.store-content li {
  margin-bottom: 8px;
}

.store-content li strong {
  color: #1c2033;
}

.store-warn {
  background: #fff8ef;
  border: 1px solid #f3dcb8;
  border-radius: 10px;
  padding: 18px 20px;
}

.store-warn h4 {
  font-size: 15px;
  font-weight: 700;
  color: #8a5a12;
  margin: 0 0 12px;
}

.store-warn p {
  font-size: 14px;
  line-height: 1.9;
  color: #5c4a24;
  margin: 0 0 10px;
}

.store-warn p:last-child {
  margin-bottom: 0;
}

.store-warn.no {
  background: #f4f7fb;
  border-color: #dfe6f0;
}

.store-warn.no h4 {
  color: #2b4a6b;
}

.store-warn.no p {
  color: #40566d;
}

table.store-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.store-spec td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f1f6;
  color: #40465c;
}

table.store-spec td:first-child {
  width: 122px;
  color: #8a90a6;
}

.store-side {
  position: sticky;
  top: 90px;
}

.store-side-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 22px;
  border-color: #dfe6fb;
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 60%);
}

.store-side-card + .store-side-card {
  margin-top: 16px;
}

.store-side-card.cta {
  padding-top: 40px;
  padding-bottom: 30px;
}

.store-side .store-badge {
  margin-bottom: 12px;
}

.store-side p {
  font-size: 13px;
  line-height: 1.85;
  color: #5b6178;
  margin: 0 0 16px;
}

.store-side .btn {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.store-side .btn:last-child {
  margin-bottom: 0;
}

.store-side .store-side-tip {
  color: #8a90a6;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.store-side .store-side-title {
  font-size: 16px;
  font-weight: 700;
  color: #1c2033;
  margin: 0 0 4px;
}

.store-side .store-vendor {
  font-size: 14.5px;
  font-weight: 600;
  color: #1c2033;
  margin: 0;
}

.store-side .store-vendor-desc {
  font-size: 12.5px;
  color: #5b6178;
  line-height: 1.8;
  margin: 8px 0 0;
}

.store-side table.store-spec td {
  padding: 8px 0;
  font-size: 13px;
}

.store-side table.store-spec td:first-child {
  width: 74px;
}

@media (max-width: 991px) {
  .store-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .store-side {
    position: static;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .store-meta {
    justify-content: center;
  }

  .store-gallery-main img {
    height: 280px;
  }
  .store-gallery-thumb {
    height: 48px;
  }
}
