:root {
  --bg: #f3f3f4;
  --panel: #ffffff;
  --text: #111113;
  --muted: #6a6a70;
  --line: #ebebef;
  --line-strong: #d8d8df;
  --primary: #0071e3;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  width: min(1260px, 93vw);
  margin: 32px auto 44px;
}

.hero {
  padding: 4px 0 0;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.home-title-link {
  color: inherit;
  text-decoration: none;
}

.home-title-link:hover {
  color: #2a2a2d;
}

h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1.1;
  font-weight: 800;
}

.sub-title,
p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.member-btn,
.search-bar button {
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.member-btn {
  border: 1px solid #111113;
  background: #111113;
  color: #fff;
}

.member-btn:hover {
  background: #2a2a2d;
  border-color: #2a2a2d;
}

.search-bar {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-bar input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .15);
}

.search-bar button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.search-bar button:hover {
  background: #111113;
  border-color: #111113;
  color: #fff;
}

.toolbar {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.toolbar-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  padding: 7px 14px;
  color: #67676d;
  cursor: pointer;
  font-size: 14px;
}

.pill.is-active {
  color: #1d1d1f;
  background: #fff;
  border-color: var(--line);
}


.store-sections {
  margin-top: 18px;
  display: grid;
  gap: 24px;
}

.store-section {
  display: grid;
  gap: 14px;
}

.store-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.store-section-head h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 800;
}

.section-grid,
.plugin-grid.section-grid {
  margin-top: 0;
}

.store-section-divider {
  height: 1px;
  margin: 2px 0 4px;
  background: linear-gradient(to right, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}

.author-section {
  padding-top: 2px;
}
.plugin-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.plugin-grid.single {
  grid-template-columns: minmax(260px, 320px);
}

.plugin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.plugin-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .05);
}

.cover {
  position: relative;
  flex: 0 0 168px;
  height: 168px;
  min-height: 0;
  overflow: hidden;
  background: #eef0f3;
  border-bottom: 1px solid var(--line);
}

.cover-bg,
.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-bg {
  background: linear-gradient(180deg, #f7f8fa 0%, #e9edf2 100%);
}

.cover-image {
  display: block;
  object-fit: cover;
}

.cover-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.34) 46%, rgba(255,255,255,.72) 100%);
}

.cover.has-image .cover-mask {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.04) 48%, rgba(0,0,0,.55) 100%);
}

.cover-title {
  position: absolute;
  inset: auto 14px 12px;
  z-index: 2;
  margin: 0;
  max-height: 54px;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 750;
  color: #151518;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: clip;
  text-shadow: none;
}

.cover.has-image .cover-title {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-height: 0;
}

.card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
}

.plugin-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #111113;
  font-weight: 700;
  font-size: 14px;
}

.plugin-icon.has-image {
  color: transparent;
  background: none;
  padding: 0;
  border: 1px solid var(--line);
}

.plugin-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plugin-version {
  margin: 0;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  align-self: center;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 500;
  color: #60606a;
  background: #f3f3f5;
}

.badge.internal,
.badge.third,
.badge.free {
  color: #60606a;
  background: #f3f3f5;
}

.plugin-desc {
  margin: 10px 0;
  color: #4a4a50;
  line-height: 1.42;
  font-size: 12px;
  height: 54px;
  padding-right: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #d8dce3 transparent;
}

.plugin-desc::-webkit-scrollbar {
  width: 4px;
}

.plugin-desc::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d8dce3;
}

.plugin-desc::-webkit-scrollbar-track {
  background: transparent;
}

.meta {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: start;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.meta-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.meta-icon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c9c9d1;
}

.meta-line span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-line {
  min-height: 20px;
}

.website-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #303039;
  font-size: 12px;
  text-decoration: none;
}

.website-chip:hover {
  background: #111113;
  border-color: #111113;
  color: #fff;
}

.rating-row {
  margin-top: auto;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

.stars {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.star {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 16px;
  height: 16px;
  color: #d8d8de;
  font-size: 16px;
}

.star.active,
.star:hover {
  color: #2563eb;
}

.share-btn {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 10px;
  color: #4a4a50;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.share-btn:hover {
  background: #111113;
  border-color: #111113;
  color: #fff;
}

.actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 76px;
  align-content: start;
}


.file-actions.multi {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: 92px;
  overflow: auto;
}

.action-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  min-width: 0;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
}

.action-btn:hover,
.btn:hover {
  background: #111113;
  border-color: #111113;
  color: #fff;
}

.action-btn:disabled,
.btn:disabled {
  cursor: default;
  opacity: .62;
}

.action-btn:disabled:hover,
.btn:disabled:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.primary-btn {
  background: #111113;
  border-color: #111113;
  color: #fff;
}

.primary-btn:hover {
  background: #2a2a2d;
  border-color: #2a2a2d;
}

.ghost-btn,
.btn.secondary,
.btn.tertiary {
  background: #fff;
  color: var(--text);
}

.file-action-name,
.btn-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-action-name {
  opacity: .75;
  font-size: 11px;
}

.empty {
  grid-column: 1 / -1;
  margin-top: 0;
  text-align: center;
  background: #fff;
  border: 1px dashed #dcdce2;
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 19, .42);
  backdrop-filter: blur(4px);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .16);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2,
.notice-body h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.3;
}

.modal-head p,
.modal-hint,
.modal-msg,
.modal-plan p,
.modal-plan span {
  color: var(--muted);
  font-size: 13px;
}

.modal-plans {
  display: grid;
  gap: 10px;
  padding: 16px 20px 10px;
}

.modal-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.modal-plan strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.modal-plan-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 170px;
}

.modal-price {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.modal-original-price {
  margin-top: -5px;
  color: #7a8796;
  font-size: 12px;
}

.modal-original-price s {
  color: #8c98a6;
}

.modal-plan-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.other-payments {
  position: relative;
  font-size: 12px;
  color: var(--muted);
}

.other-payments summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.other-payments summary::-webkit-details-marker {
  display: none;
}

.other-payment-list {
  position: absolute;
  right: 0;
  top: 24px;
  z-index: 3;
  min-width: 100px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 35, 55, .12);
}

.modal-msg {
  min-height: 18px;
  padding: 0 20px 16px;
  color: #9a2b2b;
}

.inline-login {
  margin-left: 8px;
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #111113;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.payment-modal-panel {
  width: min(660px, 100%);
}

.notice-modal-panel {
  width: min(420px, 100%);
}

.notice-body {
  padding: 22px;
}

.notice-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px 20px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.qr-box {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.qr-pattern {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 2px;
  width: 170px;
  height: 170px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.qr-pattern.has-image {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px;
}

.qr-pattern img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-pattern i,
.qr-pattern b {
  display: block;
  border-radius: 1px;
}

.qr-pattern i {
  background: var(--text);
}

.qr-pattern b {
  background: #fff;
}

.wechat {
  background: #258642;
  border-color: #258642;
  color: #fff;
}

.wechat:hover {
  background: #1f7438;
  border-color: #1f7438;
}

@media (max-width: 1080px) {
  .plugin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page {
    width: min(96vw, 640px);
    margin-top: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .plugin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-layout,
  .modal-plan {
    grid-template-columns: 1fr;
  }

  .modal-plan-side {
    min-width: 0;
    justify-items: stretch;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(96vw, 420px);
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .plugin-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 14px;
  }
}

.author-card .author-badge {
  max-width: 96px;
}
.author-card .author-actions {
  grid-template-columns: 1fr;
  min-height: 44px;
}
.author-page {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}
.author-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.author-hero-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
}
.author-hero-body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}
.author-hero-body p {
  margin: 6px 0 10px;
  font-size: 14px;
}
.author-kicker {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.back-link:hover {
  background: #111113;
  border-color: #111113;
  color: #fff;
}
.author-plugin-grid {
  margin-top: 0;
}
@media (max-width: 760px) {
  .author-hero-body {
    grid-template-columns: auto 1fr;
  }
  .back-link {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
