/* PPD Lite share / download page — brand colors from --lite-* (← frontend_theme) */
body.page-share-body.fe-lite-share {
  background: var(--lite-bg, #eef1f6);
  margin: 0;
  color: var(--lite-text, #1a1d21);
  font-family: var(--fe-font, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
}

.lite-share-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.lite-share-page__title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lite-muted, #64748b);
}

.lite-share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.lite-card {
  background: var(--lite-card, #fff);
  border-radius: 20px;
  box-shadow: var(--lite-shadow, 0 8px 24px rgba(0, 0, 0, 0.06));
  padding: 1.35rem 1.4rem 1.5rem;
  position: relative;
  min-width: 0;
}

.lite-card--main {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.lite-file-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.35rem 0.5rem 0.25rem;
  margin-bottom: 0.35rem;
}

.lite-file-ico {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lite-primary, #4a6fa5) 12%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--lite-primary, #4a6fa5);
}

.lite-file-ico--hero {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 22px;
  font-size: 2.65rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--lite-primary, #4a6fa5) 22%, transparent);
}

.lite-file-name {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  max-width: 100%;
}

.lite-file-meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  padding: 0;
  color: var(--lite-muted, #64748b);
  font-size: 0.9rem;
}

.lite-file-meta-dot {
  opacity: 0.65;
}

.lite-file-desc {
  margin: 0 0 0.55rem;
  max-width: 36rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--lite-muted, #64748b);
  white-space: pre-wrap;
  word-break: break-word;
}

.lite-file-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--lite-muted, #64748b);
}

.lite-file-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.lite-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--lite-muted, #64748b);
  font-size: 0.88rem;
}

.lite-file-meta strong {
  color: #374151;
  font-weight: 600;
}

.lite-progress {
  margin: 0.35rem 0 1.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--lite-bg-alt, #e8ecf3);
}

.lite-progress__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #4b5563;
  margin-bottom: 0.55rem;
}

.lite-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.lite-progress__bar > span {
  display: block;
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lite-primary, #4a6fa5), var(--lite-primary-mid, #1e2f4a));
}

.lite-progress__idle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lite-muted, #64748b);
}

.lite-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 22rem;
  margin: 1.15rem auto 0;
}

.lite-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  background: var(--lite-primary, #4a6fa5);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--lite-primary, #4a6fa5) 28%, transparent);
}

.lite-dl-btn:hover {
  background: var(--lite-primary-dark, #152238);
  color: #fff !important;
}

.lite-dl-btn--vip {
  background: linear-gradient(145deg, var(--lite-primary, #4a6fa5), var(--lite-primary-mid, #1e2f4a));
}

a.lite-fast-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  min-height: 2.1rem;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--lite-primary, #4a6fa5) 70%, transparent) !important;
  border-radius: 0.55rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lite-primary, #4a6fa5) 18%, transparent),
    0 4px 14px color-mix(in srgb, var(--lite-primary, #4a6fa5) 16%, transparent) !important;
  color: var(--lite-primary, #4a6fa5) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  width: auto;
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

a.lite-fast-link i {
  font-size: 1rem;
  line-height: 1;
}

a.lite-fast-link:hover {
  border-color: var(--lite-primary, #4a6fa5) !important;
  color: var(--lite-primary, #4a6fa5) !important;
  background: color-mix(in srgb, var(--lite-primary, #4a6fa5) 12%, transparent) !important;
  text-decoration: none !important;
  opacity: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lite-primary, #4a6fa5) 28%, transparent),
    0 6px 18px color-mix(in srgb, var(--lite-primary, #4a6fa5) 22%, transparent) !important;
}

.lite-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.lite-secondary-row--pair {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.05rem;
}

.lite-secondary-row--pair .lite-transfer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.lite-transfer a,
.lite-transfer button {
  font-size: 0.85rem;
}

.lite-secondary-row--pair .lite-transfer .fe-share-xfer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--lite-primary, #4a6fa5) 70%, transparent);
  color: var(--lite-primary, #4a6fa5);
  background: transparent;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lite-primary, #4a6fa5) 18%, transparent),
    0 4px 14px color-mix(in srgb, var(--lite-primary, #4a6fa5) 16%, transparent);
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lite-secondary-row--pair .lite-transfer .fe-share-xfer-cta:hover {
  border-color: var(--lite-primary, #4a6fa5);
  color: var(--lite-primary, #4a6fa5);
  background: color-mix(in srgb, var(--lite-primary, #4a6fa5) 12%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lite-primary, #4a6fa5) 28%, transparent),
    0 6px 18px color-mix(in srgb, var(--lite-primary, #4a6fa5) 22%, transparent);
}

@media (max-width: 360px) {
  .lite-secondary-row--pair {
    flex-wrap: wrap;
    gap: 0.55rem;
  }
}

.lite-dl-rules {
  margin: 1.35rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--lite-muted, #64748b) 22%, transparent);
  list-style: decimal;
  list-style-position: inside;
  color: var(--lite-muted, #64748b);
  font-size: 0.78rem;
  line-height: 1.7;
}

.lite-dl-rules li {
  margin: 0.15rem 0;
  padding-left: 0.1rem;
}

.lite-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  min-height: 100%;
}

.lite-card--vip-info {
  padding-top: 1.2rem;
  flex: 0 0 auto;
}

.lite-vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5e6a8, var(--lite-vip-gold, #c9a227));
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.lite-card--vip-info h2 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.lite-card--vip-info p {
  margin: 0;
  color: var(--lite-muted, #64748b);
  font-size: 0.9rem;
  line-height: 1.55;
}

.lite-card--upgrade {
  border: 1px solid color-mix(in srgb, var(--lite-primary, #4a6fa5) 28%, transparent);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lite-card--vip-done {
  flex: 0 0 auto;
}

.lite-upgrade-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lite-primary, #4a6fa5) 12%, #fff);
  color: var(--lite-primary-dark, #152238);
  font-size: 0.75rem;
  font-weight: 700;
}

.lite-perk-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.lite-perk-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: #374151;
}

.lite-perk-list i {
  color: var(--lite-vip-gold, #c9a227);
  font-size: 1.1rem;
}

.lite-upgrade-speed {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lite-text, #1a1d21);
}

.lite-upgrade-speed span {
  color: var(--lite-primary, #4a6fa5);
}

.lite-card--upgrade .lite-dl-btn {
  margin-top: 0;
  max-width: none;
}

.lite-card--vip-done {
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

/* PC client promo — fills remaining right-column height */
.lite-card--client {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--lite-primary, #4a6fa5) 22%, transparent);
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--lite-primary, #4a6fa5) 8%, var(--lite-card, #fff)) 0%,
      var(--lite-card, #fff) 48%
    );
}

.lite-client-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-bottom: 0.7rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lite-primary, #4a6fa5) 12%, #fff);
  color: var(--lite-primary-dark, #152238);
  font-size: 0.75rem;
  font-weight: 700;
}

.lite-client-promo-tag i {
  font-size: 0.95rem;
}

.lite-client-promo-title {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.lite-client-promo-desc {
  margin: 0 0 0.85rem;
  color: var(--lite-muted, #64748b);
  font-size: 0.88rem;
  line-height: 1.55;
}

.lite-client-promo-perks {
  margin-bottom: 0.75rem;
}

.lite-client-promo-ver {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lite-primary, #4a6fa5);
}

.lite-client-promo-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.lite-dl-btn--client {
  box-shadow: 0 8px 20px color-mix(in srgb, var(--lite-primary, #4a6fa5) 22%, transparent);
}

a.lite-client-promo-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lite-primary, #4a6fa5);
  text-decoration: none;
}

a.lite-client-promo-more:hover {
  text-decoration: underline;
  color: var(--lite-primary-dark, #152238);
}

/* Guest: compact PC promo — short height, align with left column */
.lite-card--client-compact {
  flex: 0 0 auto;
  padding: 0.95rem 1.05rem 1rem;
  gap: 0.65rem;
}

.lite-client-compact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.lite-client-promo-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--lite-primary, #4a6fa5) 14%, #fff);
  color: var(--lite-primary, #4a6fa5);
  font-size: 1.25rem;
}

.lite-client-compact-body {
  flex: 1;
  min-width: 0;
}

.lite-card--client-compact .lite-client-promo-title {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.lite-card--client-compact .lite-client-promo-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.lite-card--client-compact .lite-client-promo-more {
  justify-content: flex-start;
  padding: 0;
  font-size: 0.86rem;
  gap: 0.15rem;
}

.lite-compare-wrap {
  margin-top: 0.85rem;
}

.lite-compare-panel {
  position: relative;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: max-height;
}

/* Default: fully collapsed — mockup shows rules only; expand reveals full PPD table */
.lite-compare-wrap.is-preview .lite-compare-panel {
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

.lite-compare-wrap.is-preview .lite-compare-panel::after {
  display: none;
}

.lite-compare-more {
  display: none;
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 2;
  margin: 0.65rem auto 0;
  border: 1px solid color-mix(in srgb, var(--lite-primary, #4a6fa5) 35%, transparent);
  background: var(--lite-card, #fff);
  color: var(--lite-primary, #4a6fa5);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.lite-compare-more:hover {
  background: color-mix(in srgb, var(--lite-primary, #4a6fa5) 10%, var(--lite-card, #fff));
}

.lite-compare-wrap.is-preview .lite-compare-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: fit-content;
}

.lite-compare-wrap.is-expanding .lite-compare-panel {
  pointer-events: auto;
}

.lite-compare-wrap.is-expanded .lite-compare-panel {
  max-height: none;
  overflow: visible;
  transition: none;
  pointer-events: auto;
}

.lite-compare-wrap.is-expanded .lite-compare-panel::after,
.lite-compare-wrap.is-expanded .lite-compare-more {
  display: none;
}

.lite-share-disclaimer {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--lite-muted, #64748b);
  line-height: 1.55;
}

.lite-card--main > .fe-ppd-hint.fe-ppd-hint-vip {
  margin-bottom: 1rem;
}

.lite-compare-wrap .fe-ppd-compare {
  margin: 0;
}

.lite-share-simple {
  max-width: 520px;
  margin: 1.5rem auto 2rem;
}

.lite-share-simple .lite-file-head {
  justify-content: center;
  text-align: center;
}

@media (max-width: 860px) {
  .lite-share-grid {
    grid-template-columns: 1fr;
  }

  .lite-card--main,
  .lite-side {
    height: auto;
    min-height: 0;
  }

  .lite-card--upgrade,
  .lite-card--vip-done,
  .lite-card--client {
    flex: 0 0 auto;
  }
}
