/* 酷乐授权中心 — 布局与样式对齐 license-auth /aut/（子比主题） */

/* /aut/ 不需要首页幻灯片、页面封面与搜索框 */
body.kuleu-aut-route .header-slider,
body.kuleu-aut-route .header-slider-container,
body.kuleu-aut-route .page-cover,
body.kuleu-aut-route .page-header,
body.kuleu-aut-route .imgbox.full-imgbox,
body.kuleu-aut-route .main-search-btn,
body.kuleu-aut-route .nav-search-btn,
body.kuleu-aut-route .navbar-search,
body.kuleu-aut-route .main-search,
body.kuleu-aut-route .search-close-box {
  display: none !important;
}

.license-auth-aut-page .fluid-widget {
  min-height: 1px;
}

.license-auth-aut-center {
  display: flex;
  align-items: flex-start;
}

.license-auth-aut-nav {
  overflow: hidden;
  padding: 12px;
}

.license-auth-aut-user-card {
  margin-bottom: 8px;
  text-align: center;
}

.license-auth-aut-user-card .card-content {
  margin-top: 0 !important;
}

.license-auth-aut-user-card .user-content {
  padding: 2px 0 6px;
}

.license-auth-aut-user-card .user-avatar {
  display: flex;
  justify-content: center;
}

.license-auth-aut-user-card .avatar-lg,
.license-auth-aut-user-card .avatar-img {
  display: inline-block;
  width: 58px;
  height: 58px;
}

.license-auth-aut-user-card .avatar-img > img:not(.avatar-badge),
.license-auth-aut-user-card .avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.license-auth-aut-user-card .user-info {
  margin-top: 8px;
}

.license-auth-aut-user-card .user-name {
  font-size: 14px;
  line-height: 1.35;
}

.license-auth-aut-stats {
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.license-auth-aut-stats .badg {
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.45;
}

.license-auth-aut-menu {
  display: block;
  margin: 0;
  padding: 0;
}

.license-auth-aut-menu li {
  display: block;
  margin: 0;
}

.license-auth-aut-menu li + li {
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.license-auth-aut-menu li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 7px;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
}

.license-auth-aut-menu li.active > a {
  background: rgba(0, 111, 255, 0.08);
  color: var(--focus-color, #006fff);
  font-weight: 700;
}

.license-auth-aut-menu li > a > img {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 0;
  object-fit: cover;
}

@media (min-width: 801px) {
  .license-auth-aut-center > .col-sm-3 {
    flex: 0 0 220px;
    width: 220px;
  }

  .license-auth-aut-center > .col-sm-9 {
    flex: 1 1 calc(100% - 220px);
    width: calc(100% - 220px);
    max-width: calc(100% - 220px);
  }
}

@media (max-width: 800px) {
  .license-auth-aut-center {
    display: block;
  }

  .license-auth-aut-center > .col-sm-3,
  .license-auth-aut-center > .col-sm-9 {
    width: 100%;
  }

  .license-auth-aut-user-card {
    display: none;
  }

  .license-auth-aut-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }

  .license-auth-aut-menu li {
    flex: 0 0 auto;
    border-top: 0 !important;
  }

  .license-auth-aut-menu li > a {
    display: block;
    min-width: 64px;
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }

  .license-auth-aut-menu li > a > img {
    width: 32px;
    height: 32px;
    margin: 0 auto 5px;
  }
}

/* 帮助中心 */
.license-auth-help-box {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.04);
  min-height: 330px;
  padding: 28px 32px 32px;
}

.dark-theme .license-auth-help-box {
  background: var(--main-bg-color, #2a2b2f);
  border-color: rgba(255, 255, 255, 0.08);
}

.license-auth-help-box .license-auth-section-title {
  margin-bottom: 20px;
}

.license-auth-help-box .license-auth-section-title span {
  display: block;
  margin-bottom: 4px;
  color: #8a94a6;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.license-auth-help-box .license-auth-section-title h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.dark-theme .license-auth-help-box .license-auth-section-title h3 {
  color: var(--this-color, #eee);
}

.license-auth-help-box .license-auth-section-title p {
  margin: 0;
  color: #687386;
  font-size: 15px;
  line-height: 1.7;
}

.license-auth-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.license-auth-help-grid article {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  padding: 22px 18px 18px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #f8fafd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dark-theme .license-auth-help-grid article {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.license-auth-help-grid article:hover {
  border-color: rgba(88, 101, 242, 0.28);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.license-auth-help-grid article > span {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(88, 101, 242, 0.12);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.license-auth-help-grid b {
  display: block;
  position: relative;
  margin-bottom: 12px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.dark-theme .license-auth-help-grid b {
  color: var(--this-color, #eee);
}

.license-auth-help-grid p {
  position: relative;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .license-auth-help-box {
    padding: 22px;
  }

  .license-auth-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .license-auth-help-box {
    min-height: auto;
    padding: 18px;
  }

  .license-auth-help-box .license-auth-section-title h3 {
    font-size: 24px;
  }

  .license-auth-help-grid {
    grid-template-columns: 1fr;
  }

  .license-auth-help-grid article {
    min-height: 0;
  }
}

/* 代理中心色块卡片 */
.license-auth-agent-center .relative-h {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  color: #fff;
}

.license-auth-agent-center .absolute {
  position: absolute;
  pointer-events: none;
}

.license-auth-agent-center .abs-right {
  position: absolute;
  right: 12px;
}

/* 表单与结果 */
.kuleu-aut-form .form-control {
  width: 100%;
  max-width: 100%;
}

.kuleu-aut-result {
  padding: 14px 16px;
  border-radius: var(--main-radius, 8px);
  line-height: 1.7;
  font-size: 14px;
}

.kuleu-aut-result.is-ok {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.kuleu-aut-lookup {
  display: grid;
  gap: 12px;
}

.kuleu-aut-lookup-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kuleu-aut-lookup-label {
  font-size: 13px;
  color: #687386;
  font-weight: 500;
}

.kuleu-aut-lookup-value {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  word-break: break-all;
}

.dark-theme .kuleu-aut-lookup-label {
  color: #9ca3af;
}

.dark-theme .kuleu-aut-lookup-value {
  color: #eee;
}

.kuleu-aut-result.is-error {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.dark-theme .kuleu-aut-result.is-ok {
  color: #6ee7b7;
}

.dark-theme .kuleu-aut-result.is-error {
  color: #fca5a5;
}

.kuleu-aut-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.kuleu-aut-page table.table-aut,
.kuleu-aut-page .license-auth-agent-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.kuleu-aut-page table.table-aut th,
.kuleu-aut-page table.table-aut td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 13px;
  vertical-align: middle;
}

.kuleu-aut-page .title-h-left {
  margin-bottom: 12px;
}

/* 产品购买卡片（对齐参考样式） */
.kuleu-aut-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kuleu-aut-shop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kuleu-aut-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.dark-theme .kuleu-aut-shop-card {
  background: var(--main-bg-color, #2a2b2f);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 与首页 .posts-item.card .item-thumbnail 同比例（--posts-card-scale，站点默认 70%） */
.kuleu-aut-shop-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: var(--posts-card-scale, 70%);
  overflow: hidden;
  background: #f3f5f9;
}

.kuleu-aut-shop-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.kuleu-aut-shop-cover-empty {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(135deg, #eef2f7, #f8fafc);
}

.kuleu-aut-shop-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px;
  flex: 1;
}

.kuleu-aut-shop-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kuleu-aut-shop-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  /* 固定两行高度，长标题省略，保证卡片图文区齐平 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35em * 2);
  max-height: calc(1.35em * 2);
  word-break: break-word;
}

.kuleu-aut-shop-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.kuleu-aut-shop-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.dark-theme .kuleu-aut-shop-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

.kuleu-aut-shop-desc {
  margin: 0;
  color: #7b8794;
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.7em * 2);
  max-height: calc(1.7em * 2);
}

.kuleu-aut-shop-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
  min-height: 24px;
  max-height: 24px;
}

.kuleu-aut-shop-tags span {
  padding: 2px 8px;
  border-radius: 6px;
  background: #f5f7fb;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.5;
}

.dark-theme .kuleu-aut-shop-tags span {
  background: rgba(255, 255, 255, 0.06);
}

.kuleu-aut-shop-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.kuleu-aut-shop-price {
  color: #ff4d6a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.kuleu-aut-shop-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ff7a1a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.kuleu-aut-shop-buy:hover {
  background: #f06a0a;
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .kuleu-aut-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kuleu-aut-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .kuleu-aut-shop-grid {
    grid-template-columns: 1fr;
  }
}
