/* 分享与推广 — 医疗科技风格 */

.share-panel .btn.primary,
.share-actions .btn.primary,
.share-preview-foot .btn.primary,
.gs-reward-actions .btn.primary {
  background: var(--primary);
  color: #fff;
}

.share-panel .btn.primary:hover,
.share-actions .btn.primary:hover,
.share-preview-foot .btn.primary:hover,
.gs-reward-actions .btn.primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.share-panel .btn.secondary,
.share-actions .btn.secondary,
.share-preview-foot .btn.secondary,
.gs-reward-actions .btn.secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.share-panel .btn.secondary:hover,
.share-actions .btn.secondary:hover,
.share-preview-foot .btn.secondary:hover,
.gs-reward-actions .btn.secondary:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.gs-reward-actions .gs-reward-close {
  width: auto;
}

.dc-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.dc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.dc-dot.is-done {
  background: var(--primary);
}

.dc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--sub-text);
}

.dc-inline-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.share-panel {
  display: grid;
  gap: 14px;
}

.share-invite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.share-invite-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.82rem;
  color: var(--sub-text);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--sub-text);
  line-height: 1.55;
}

.share-preview-overlay.mc-hidden {
  display: none !important;
}

.share-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(10, 16, 24, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.share-preview-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.share-preview-panel {
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.share-preview-panel h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.share-preview-panel .share-hint {
  margin-bottom: 14px;
}

.share-preview-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--panel-tint-border);
  background: var(--bg);
  margin-bottom: 14px;
}

.share-preview-img-wrap img,
.share-preview-img-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.share-preview-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.share-toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 2200;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(28, 42, 58, 0.92);
  color: #fff;
  font-size: 0.84rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gs-reward-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.gs-reward-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* 对外落地页 */
.landing-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #e8f1f9 0%, #f5f9fc 42%, #eef3f7 100%);
  color: var(--text);
}

.landing-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.landing-logged-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(107, 154, 196, 0.2);
  box-shadow: 0 6px 20px rgba(28, 42, 58, 0.05);
}

.landing-logged-text {
  font-size: 0.88rem;
  color: var(--sub-text);
}

.landing-logged-bar .btn.primary {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.landing-logged-bar .btn.primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.landing-hero {
  text-align: center;
  margin-bottom: 40px;
}

.landing-hero .eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-muted);
  font-weight: 600;
}

.landing-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.landing-hero p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sub-text);
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.landing-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(107, 154, 196, 0.16);
  box-shadow: 0 8px 28px rgba(28, 42, 58, 0.05);
}

.landing-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--primary-muted);
}

.landing-card p,
.landing-card li {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--sub-text);
}

.landing-card ul {
  margin: 0;
  padding-left: 1.1em;
}

.landing-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.landing-steps li {
  counter-increment: step;
  padding-left: 36px;
  position: relative;
}

.landing-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--sub-text);
  margin-top: 24px;
}

.help-guide-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--sub-text);
  font-size: 0.88rem;
  line-height: 1.65;
}

.help-guide-list li + li {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .landing-wrap {
    padding-top: 32px;
  }
}
