/* ============================================================
   TDSI 官网 · 赞助页
   ============================================================ */

/* 头部 */
.sp-hero {
  text-align: center;
  padding: clamp(24px, 4vw, 48px) 0 var(--sp-6);
}

.sp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: var(--sp-4);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sp-hero h1 {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.sp-hero p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 auto;
}

/* 创作者卡片 */
.sp-creator {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  max-width: 720px;
  margin: 0 auto var(--sp-6);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  border: 1px solid rgba(148, 108, 230, 0.28);
  box-shadow: var(--shadow-inset), 0 18px 52px rgba(148, 108, 230, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html.dark-mode .sp-creator {
  box-shadow: var(--shadow-inset), 0 18px 52px rgba(148, 108, 230, 0.18);
}

.sp-creator__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(148, 108, 230, 0.35);
  background: var(--bg-subtle);
}

.sp-creator__body { flex: 1; min-width: 0; }

.sp-creator__name {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-creator__meta {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}

.sp-creator__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
}

/* 方案卡 */
.sp-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
  max-width: 980px;
  margin: 0 auto var(--sp-6);
}

.sp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-inset), var(--shadow-md);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur) ease;
  overflow: hidden;
}

.sp-plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-inset), var(--shadow-xl);
  border-color: rgba(148, 108, 230, 0.38);
}

.sp-plan--feature {
  border-color: rgba(148, 108, 230, 0.4);
  box-shadow: var(--shadow-inset), 0 20px 56px rgba(148, 108, 230, 0.14);
}

.sp-plan--feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #946ce6, #6366f1, #0ea5e9);
}

.sp-plan__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  color: #fff;
  background: linear-gradient(135deg, #946ce6, #6366f1);
}

.sp-plan__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(148, 108, 230, 0.13);
  color: #946ce6;
}
.sp-plan__icon svg { width: 24px; height: 24px; }

.sp-plan__title {
  font-size: 16px;
  font-weight: 900;
}

.sp-plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-heading);
}

.sp-plan__amount {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #946ce6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-plan__unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}

.sp-plan__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
  flex: 1;
}

.sp-plan__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
}

.sp-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.6;
}

.sp-plan__list svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--c-success);
}

/* 二维码区 */
.sp-qr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  max-width: 860px;
  margin: 0 auto var(--sp-6);
}

.sp-qr__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-inset), var(--shadow-md);
  text-align: center;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}

.sp-qr__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-inset), var(--shadow-xl);
}

.sp-qr__title {
  font-size: 15px;
  font-weight: 900;
}

.sp-qr__sub {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.7;
}

.sp-qr__img-wrap {
  position: relative;
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-qr__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform var(--dur) var(--ease-out);
}
.sp-qr__img-wrap:hover img { transform: scale(1.04); }

.sp-qr__img-wrap--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

.sp-qr__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 说明列表 */
.sp-notes {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.sp-notes h2 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-notes h2 svg { width: 18px; height: 18px; color: var(--c-brand); }

.sp-notes ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: note;
}

.sp-notes li {
  counter-increment: note;
  position: relative;
  padding-left: 30px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
}

.sp-notes li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: var(--c-brand);
  background: rgba(14, 165, 233, 0.12);
}

/* 图片放大弹窗 */
.sp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sp-lightbox--open { display: flex; }

.sp-lightbox img {
  max-width: min(560px, 92vw);
  max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  background: #fff;
}

.sp-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background var(--dur) ease, transform var(--dur) ease;
}
.sp-lightbox__close:hover { background: rgba(239, 68, 68, 0.85); transform: rotate(90deg); }
.sp-lightbox__close svg { width: 22px; height: 22px; }

/* 底部呼吁 */
.sp-cta {
  max-width: 760px;
  margin: var(--sp-6) auto 0;
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-inset), var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sp-cta h2 {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 900;
  margin-bottom: var(--sp-3);
}

.sp-cta p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 auto var(--sp-5);
}

.sp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

@media (max-width: 640px) {
  .sp-creator { flex-direction: column; text-align: center; padding: var(--sp-4); }
  .sp-creator__name { justify-content: center; }
  .sp-plan { padding: var(--sp-4); }
  .sp-qr__card { padding: var(--sp-4); }
  .sp-notes { padding: var(--sp-4); }
  .sp-cta { padding: var(--sp-5) var(--sp-4); }
  .sp-cta__actions .btn { width: 100%; }
}
