/* 本域直播 · 企业主页 / 课程 / 个人中心共用样式（v1.6） */

.store-hero {
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 58%, #f6f9ff 100%);
  border-bottom: 1px solid #e6eefb;
}

.store-hero-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 38px 0 34px;
  flex-wrap: wrap;
}

.store-logo {
  width: 86px;
  height: 86px;
  flex: none;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e2e8f2;
  box-shadow: 0 12px 30px rgba(22, 93, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-logo span {
  color: #165dff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}

.store-identity {
  flex: 1;
  min-width: 220px;
}

.store-identity h1 {
  margin: 6px 0 6px;
  font-size: 28px;
  line-height: 1.3;
  color: #14213d;
}

.store-identity p {
  margin: 0;
  color: #5b6b80;
  font-size: 14px;
  line-height: 1.75;
  max-width: 720px;
  white-space: pre-wrap;
}

.store-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-main {
  background: #f5f8ff;
  padding-bottom: 72px;
  min-height: 50vh;
}

.store-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}

.store-section-head h2 {
  margin: 0;
  font-size: 22px;
  color: #14213d;
}

.store-section-head p {
  margin: 5px 0 0;
  color: #7c8aa5;
  font-size: 13px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.store-card {
  background: #fff;
  border: 1px solid #e4ebf7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(22, 93, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 93, 255, 0.1);
}

.store-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dfe9ff, #f2f7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #165dff;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
}

.store-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #165dff;
}

.store-badge--live {
  background: #e5484d;
}

.store-badge--free {
  background: #1f8a5b;
}

.store-badge--owned {
  left: auto;
  right: 10px;
  background: rgba(20, 33, 61, 0.72);
}

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

.store-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #14213d;
}

.store-card-meta {
  margin: 0;
  color: #7c8aa5;
  font-size: 13px;
  line-height: 1.6;
}

.store-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.price-current {
  color: #e5484d;
  font-weight: 800;
  font-size: 20px;
}

.price-original {
  color: #9aa8bf;
  text-decoration: line-through;
  font-size: 13px;
}

.price-free {
  color: #1f8a5b;
  font-weight: 800;
  font-size: 18px;
}

.store-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.store-empty,
.store-loading {
  padding: 44px 16px;
  text-align: center;
  color: #7c8aa5;
  font-size: 14px;
  background: #fff;
  border: 1px dashed #d8e2f3;
  border-radius: 16px;
}

.store-error {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff2f2;
  border: 1px solid #ffd2d2;
  color: #9a2a21;
}

.store-panel {
  background: #fff;
  border: 1px solid #e4ebf7;
  border-radius: 18px;
  padding: 22px;
}

.store-course-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 22px;
  margin-top: 26px;
  align-items: start;
}

.store-player {
  background: #0b1220;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb0cc;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.store-player video,
.store-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  object-fit: contain;
}

.store-player video {
  background: #000;
}

.store-lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid #eef2f9;
  cursor: pointer;
  text-align: left;
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font: inherit;
  color: #26344d;
}

.store-lesson:last-child {
  border-bottom: 0;
}

.store-lesson:hover,
.store-lesson.is-active {
  color: #165dff;
}

.store-lesson.is-locked {
  cursor: default;
  color: #9aa8bf;
}

.store-lesson-index {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: #eef4ff;
  color: #165dff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-lesson-body {
  flex: 1;
  min-width: 0;
}

.store-lesson-title {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-lesson-meta {
  display: block;
  color: #9aa8bf;
  font-size: 12px;
  margin-top: 2px;
}

.store-progress {
  height: 7px;
  background: #e9eefb;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 0;
}

.store-progress > span {
  display: block;
  height: 100%;
  background: #165dff;
  border-radius: 999px;
}

.store-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 18px;
  flex-wrap: wrap;
}

.store-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #dfe7f5;
  background: #fff;
  color: #5b6b80;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.store-tab.is-active {
  background: #165dff;
  border-color: #165dff;
  color: #fff;
}

.store-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-order {
  background: #fff;
  border: 1px solid #e4ebf7;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-order-main {
  flex: 1;
  min-width: 200px;
}

.store-order-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: #14213d;
}

.store-order-meta {
  margin: 0;
  color: #7c8aa5;
  font-size: 12.5px;
  line-height: 1.6;
}

.store-order-amount {
  font-weight: 800;
  color: #e5484d;
  font-size: 17px;
}

.store-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef4ff;
  color: #165dff;
}

.store-status--paid {
  background: #e9f8ef;
  color: #1f8a5b;
}

.store-status--pending {
  background: #fff4e5;
  color: #b26a00;
}

.store-note {
  color: #7c8aa5;
  font-size: 13px;
  line-height: 1.75;
  margin: 12px 0 0;
}

.store-login-tip {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e4ebf7;
  color: #5b6b80;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-message {
  margin-top: 10px;
  font-size: 13px;
  color: #9a2a21;
}

.store-message.is-ok {
  color: #1f8a5b;
}

@media (max-width: 860px) {
  .store-course-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .store-hero-inner {
    gap: 16px;
    padding: 26px 0 22px;
  }

  .store-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .store-identity h1 {
    font-size: 22px;
  }

  .store-section-head {
    margin-top: 24px;
  }

  .store-panel {
    padding: 16px;
  }
}
