/* 融资 / IPO 情报 · 分享面板与按钮（主题色由 --share-accent 控制） */
.intel-share-btn {
  --share-accent: #fbbf24;
  --share-accent-soft: rgba(245, 158, 11, 0.14);
  --share-accent-border: rgba(245, 158, 11, 0.42);
  --share-accent-glow: rgba(251, 191, 36, 0.22);
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--share-accent-border);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%),
    var(--share-accent-soft);
  color: #fef3c7;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 0 20px var(--share-accent-glow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.intel-share-btn--ipo {
  --share-accent: #67e8f9;
  --share-accent-soft: rgba(34, 211, 238, 0.12);
  --share-accent-border: rgba(34, 211, 238, 0.42);
  --share-accent-glow: rgba(34, 211, 238, 0.18);
  color: #cffafe;
}

.intel-share-btn:hover {
  transform: translateY(-1px);
  border-color: var(--share-accent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 0 28px var(--share-accent-glow);
}

.intel-share-btn:active {
  transform: translateY(0);
}

.intel-share-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.intel-share-btn__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--share-accent);
}

.intel-share-btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.intel-share-btn__label {
  line-height: 1;
}

.financing-reader__share,
.financing-detail__share,
.ipo-reader__share {
  /* 旧类名保留兼容，视觉由 intel-share-btn 接管 */
}

.financing-reader__share,
.financing-detail__share {
  --share-accent: #fbbf24;
  --share-accent-soft: rgba(245, 158, 11, 0.14);
  --share-accent-border: rgba(245, 158, 11, 0.42);
  --share-accent-glow: rgba(251, 191, 36, 0.22);
}

.ipo-reader__share {
  --share-accent: #67e8f9;
  --share-accent-soft: rgba(34, 211, 238, 0.12);
  --share-accent-border: rgba(34, 211, 238, 0.42);
  --share-accent-glow: rgba(34, 211, 238, 0.18);
}

/* 分享面板 */
.intel-article-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.intel-article-share-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.intel-article-share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(8px);
}

.intel-article-share-sheet__panel {
  --share-accent: #fbbf24;
  --share-accent-soft: rgba(245, 158, 11, 0.14);
  --share-accent-border: rgba(245, 158, 11, 0.38);
  position: relative;
  width: min(440px, 100%);
  border-radius: 20px 20px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 50% -20%, var(--share-accent-soft) 0%, transparent 55%),
    linear-gradient(180deg, rgba(22, 28, 45, 0.98) 0%, rgba(10, 14, 24, 0.99) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(18px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.intel-article-share-sheet.is-open .intel-article-share-sheet__panel {
  transform: translateY(0);
}

.intel-article-share-sheet--ipo .intel-article-share-sheet__panel {
  --share-accent: #67e8f9;
  --share-accent-soft: rgba(34, 211, 238, 0.12);
  --share-accent-border: rgba(34, 211, 238, 0.38);
}

.intel-article-share-sheet__handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin: 10px auto 0;
}

.intel-article-share-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
}

.intel-article-share-sheet__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.intel-article-share-sheet__close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.intel-article-share-sheet__close:hover {
  color: #fff;
  border-color: var(--share-accent-border);
  background: var(--share-accent-soft);
}

.intel-article-share-sheet__body {
  padding: 0 18px 18px;
}

.intel-article-share-sheet__og {
  margin-bottom: 14px;
}

.intel-article-share-sheet__og-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.92);
}

.intel-article-share-sheet__og-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--share-accent);
  box-shadow: 0 0 10px var(--share-accent);
}

.intel-article-share-sheet__card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.intel-article-share-sheet__thumb {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.intel-article-share-sheet__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intel-article-share-sheet__monogram {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.intel-article-share-sheet__thumb-logo {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.55);
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.intel-article-share-sheet__card-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intel-article-share-sheet__site {
  font-size: 11px;
  font-weight: 700;
  color: var(--share-accent);
  letter-spacing: 0.02em;
}

.intel-article-share-sheet__card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.42;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.intel-article-share-sheet__card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.intel-article-share-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.intel-article-share-sheet__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.intel-article-share-sheet__chip--accent {
  color: var(--share-accent);
  border-color: var(--share-accent-border);
  background: var(--share-accent-soft);
}

.intel-article-share-sheet__urlbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.45);
  margin-bottom: 14px;
}

.intel-article-share-sheet__url-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--share-accent);
}

.intel-article-share-sheet__url {
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.92);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.intel-article-share-sheet__actions {
  display: grid;
  gap: 10px;
}

.intel-article-share-sheet__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.intel-article-share-sheet__btn--primary {
  color: #0f172a;
  background: linear-gradient(135deg, var(--share-accent) 0%, #fde68a 120%);
  box-shadow: 0 10px 28px var(--share-accent-glow, rgba(251, 191, 36, 0.22));
}

.intel-article-share-sheet--ipo .intel-article-share-sheet__btn--primary {
  background: linear-gradient(135deg, #22d3ee 0%, #67e8f9 120%);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.22);
}

.intel-article-share-sheet__btn--primary:hover {
  transform: translateY(-1px);
}

.intel-article-share-sheet__btn--primary.is-copied {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 120%);
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.25);
}

.intel-article-share-sheet__btn--ghost {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.intel-article-share-sheet__btn--ghost:hover {
  border-color: var(--share-accent-border);
  background: var(--share-accent-soft);
}

.intel-article-share-sheet__btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.intel-article-share-sheet__foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.75);
}

/* Toast */
.intel-article-share-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(16px);
  z-index: 9900;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 380px);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.intel-article-share-toast__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
  font-size: 15px;
  font-weight: 800;
}

.intel-article-share-toast__text {
  min-width: 0;
}

.intel-article-share-toast__title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.intel-article-share-toast__sub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.4;
}

@media (min-width: 720px) {
  .intel-article-share-sheet {
    align-items: center;
    padding: 24px;
  }

  .intel-article-share-sheet__panel {
    border-radius: 20px;
  }

  .intel-article-share-sheet__handle {
    display: none;
  }
}
