/*
  ACG front theme adapted for this Django storefront from lizhipay/acg-faka.
  Source project: https://github.com/lizhipay/acg-faka
  License: MIT, see static/store/acg-faka-LICENSE.txt
*/

:root {
  --acg-primary: #7a8cff;
  --acg-secondary: #b88cff;
  --acg-danger: #ff6b88;
  --acg-success: #3aa76d;
  --acg-text: #111827;
  --acg-muted: #6b7280;
  --acg-border: #e5e7eb;
  --acg-card: rgba(255, 255, 255, .82);
  --acg-shadow: 0 10px 30px rgba(82, 63, 105, .12);
}

body.theme-acg {
  margin-top: 72px;
  color: var(--acg-text);
  font: 14px/1.5 Arial, "Microsoft YaHei", sans-serif;
  background: #f7f6ff;
}

.theme-acg .background {
  position: fixed;
  inset: 0;
  z-index: -10;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .74)),
    url("acg-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
}

.theme-acg .acg-container {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.theme-acg .acg-navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--acg-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-acg .acg-navbar .acg-container {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-acg .acg-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--acg-text);
}

.theme-acg .acg-brand .logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  overflow: hidden;
  border-radius: 7px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
  box-shadow: 0 8px 18px rgba(122, 140, 255, .22);
}

.theme-acg .acg-brand .logo-image {
  background: #fff;
}

.theme-acg .acg-brand .logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-acg .acg-brand .info {
  min-width: 0;
  color: rgba(19, 150, 85, .74);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-acg .acg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.theme-acg .acg-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #707070;
  font-size: 15px;
  font-weight: 700;
}

.theme-acg .acg-nav a:hover {
  color: #479afb;
  background: rgba(122, 140, 255, .1);
}

.theme-acg .acg-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: none;
}

.theme-acg .header .header-box .query a,
.theme-acg .header .header-box .query button,
.theme-acg .acg-actions a,
.theme-acg .acg-actions button,
.theme-acg .buy button,
.theme-acg .btn a,
.theme-acg .btn button {
  width: auto;
  min-width: 74px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  line-height: 34px;
  background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
  box-shadow: 0 8px 18px rgba(122, 140, 255, .25);
  cursor: pointer;
}

.theme-acg .acg-actions button {
  background: linear-gradient(90deg, #ffb84d, var(--acg-danger));
}

.theme-acg .messages {
  margin-top: 18px;
}

.theme-acg .messages .layui-row,
.theme-acg .layui-row {
  width: min(1120px, calc(100% - 24px));
}

.theme-acg .message,
.theme-acg .acg-panel,
.theme-acg .main .main-box {
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  box-shadow: var(--acg-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-acg .message {
  color: #374151;
  padding: 16px;
}

.theme-acg .acg-page {
  padding: 14px 0 26px;
}

.theme-acg .acg-notice-wrap {
  margin-top: 18px;
}

.theme-acg .acg-panel + .acg-panel,
.theme-acg .acg-group + .acg-group {
  margin-top: 16px;
}

.theme-acg .acg-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(149, 157, 165, .18);
}

.theme-acg .acg-panel-head h2,
.theme-acg .panel-title {
  margin: 0;
  color: var(--acg-text);
  font-size: 17px;
  font-weight: 800;
}

.theme-acg .acg-panel-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(122, 140, 255, .12);
}

.theme-acg .acg-request-link {
  margin-left: auto;
  color: #5b6ce6;
  font-weight: 800;
}

.theme-acg .acg-panel-body {
  padding: 16px;
}

.theme-acg .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 4px;
}

.theme-acg .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #707070;
  background: rgba(255, 248, 248, .43);
  box-shadow: rgba(0, 0, 0, .16) 0 1px 4px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.theme-acg .chip.is-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

.theme-acg .chip-icon {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(90deg, #ffb84d, var(--acg-danger));
}

.theme-acg .section-title {
  margin: 18px 0 12px;
  color: var(--acg-text);
  font-size: 17px;
  font-weight: 800;
}

.theme-acg .acg-goods-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-acg .acg-card {
  min-width: 0;
  min-height: 132px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: rgba(100, 100, 111, .2) 0 7px 29px 0;
  transition: transform .25s ease, box-shadow .25s ease;
}

.theme-acg .acg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.theme-acg .acg-thumb {
  width: 178px;
  min-width: 178px;
  height: auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(122, 140, 255, .16), rgba(184, 140, 255, .14));
}

.theme-acg .acg-thumb img,
.theme-acg .acg-thumb .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}

.theme-acg .placeholder {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

.theme-acg .acg-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px;
}

.theme-acg .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.theme-acg .badge-soft {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.35;
}

.theme-acg .badge-soft-primary {
  color: #5b6ce6;
  border: 1px solid rgba(122, 140, 255, .25);
  background: rgba(122, 140, 255, .12);
}

.theme-acg .badge-soft-success {
  color: var(--acg-success);
  border: 1px solid rgba(80, 200, 120, .25);
  background: rgba(80, 200, 120, .12);
}

.theme-acg .badge-soft-muted {
  color: rgba(31, 41, 55, .78);
  border: 1px solid rgba(31, 41, 55, .16);
  background: rgba(31, 41, 55, .08);
}

.theme-acg .goods-title {
  min-height: 2.7em;
  margin: 0 0 8px;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-acg .meta {
  min-height: 0;
  margin: 0 0 10px;
  color: var(--acg-muted);
  font-size: 13px;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.theme-acg .stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.theme-acg .price,
.theme-acg .goods-price,
.theme-acg .price .price-sign,
.theme-acg .price .price-num {
  color: var(--acg-danger);
  font-weight: 900;
}

.theme-acg .soldout {
  filter: grayscale(1) contrast(.92) brightness(.98);
}

.theme-acg .soldout-ribbon {
  position: absolute;
  top: 13px;
  left: -36px;
  transform: rotate(-45deg);
  padding: 4px 46px;
  color: #fff;
  background: linear-gradient(90deg, #ff8080, var(--acg-danger));
  box-shadow: 0 6px 16px rgba(255, 107, 136, .35);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.theme-acg .main .main-box {
  padding-top: 12px;
}

.theme-acg .main .title,
.theme-acg .main .cate,
.theme-acg .main .goods,
.theme-acg .goods-msg,
.theme-acg .layui-card-body,
.theme-acg .intro,
.theme-acg .notice-text {
  color: #1f2937;
}

.theme-acg .main .goods .goods-box,
.theme-acg .pay-type,
.theme-acg .price-preview,
.theme-acg .recharge-summary div,
.theme-acg .recharge-status-card {
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: rgba(100, 100, 111, .14) 0 7px 24px 0;
}

.theme-acg .input input,
.theme-acg .input select,
.theme-acg .input textarea,
.theme-acg .install-field input,
.theme-acg .recharge-field input,
.theme-acg .recharge-field select,
.theme-acg .recharge-field textarea,
.theme-acg .order-info {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.theme-acg .input input:focus,
.theme-acg .input textarea:focus,
.theme-acg .recharge-field input:focus,
.theme-acg .recharge-field textarea:focus {
  border-color: var(--acg-primary);
  box-shadow: 0 0 0 4px rgba(122, 140, 255, .15);
  outline: none;
}

.theme-acg .rich-notice a,
.theme-acg .footer a {
  color: #5b6ce6;
}

.theme-acg .footer {
  color: rgba(55, 65, 81, .72);
}

.theme-acg .support-launcher,
.theme-acg .query-m,
.theme-acg .activity-launcher {
  background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
  box-shadow: 0 8px 18px rgba(122, 140, 255, .25);
}

.theme-acg .support-panel,
.theme-acg .activity-dialog {
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 55px rgba(82, 63, 105, .22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-acg .support-head,
.theme-acg .activity-dialog-head {
  color: #1f2937;
  background: rgba(255, 255, 255, .72);
}

.theme-acg .support-topic-switch label.active,
.theme-acg .support-form button,
.theme-acg .support-upload-button {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

@media (max-width: 900px) {
  body.theme-acg {
    margin-top: 120px;
  }

  .theme-acg .acg-navbar .acg-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .theme-acg .acg-brand {
    flex: 1 1 auto;
  }

  .theme-acg .acg-nav {
    order: 3;
    width: 100%;
  }

  .theme-acg .acg-card {
    min-height: 120px;
  }

  .theme-acg .acg-thumb {
    width: 138px;
    min-width: 138px;
  }
}

@media (max-width: 768px) {
  .theme-acg .acg-container,
  .theme-acg .messages .layui-row,
  .theme-acg .layui-row {
    width: min(100% - 16px, 1120px);
  }

  .theme-acg .acg-actions a,
  .theme-acg .acg-actions button {
    min-width: 62px;
    padding: 0 10px;
  }

  .theme-acg .support-panel {
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 520px) {
  body.theme-acg {
    margin-top: 112px;
  }

  .theme-acg .acg-navbar {
    padding: 8px 0;
  }

  .theme-acg .acg-nav a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .theme-acg .acg-actions {
    gap: 5px;
  }

  .theme-acg .acg-actions a,
  .theme-acg .acg-actions button {
    min-height: 30px;
    line-height: 30px;
    font-size: 12px;
  }

  .theme-acg .acg-panel-head,
  .theme-acg .acg-panel-body {
    padding: 12px;
  }

  .theme-acg .acg-request-link {
    display: none;
  }

  .theme-acg .chip {
    padding: 6px 10px;
    font-size: 13px;
  }

  .theme-acg .acg-card {
    min-height: 104px;
  }

  .theme-acg .acg-thumb {
    width: 94px;
    min-width: 94px;
  }

  .theme-acg .goods-title {
    min-height: auto;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}
