/* EBK 推广大使 Landing + 看板共用样式 */

.aff-landing {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.aff-landing-hero {
  margin: 12px 0 28px;
  padding: 28px 22px 26px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #1d7ce8 0%, #6366f1 48%, #8b5cf6 100%);
  box-shadow: 0 12px 40px rgba(29, 124, 232, 0.25);
}

.aff-landing-hero .kicker {
  font-size: 13px;
  opacity: 0.92;
  letter-spacing: 0.04em;
}

.aff-landing-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
}

.aff-landing-hero .lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.95;
  max-width: 36em;
}

.aff-landing-hero .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.aff-landing-hero .hero-tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.aff-landing-hero .hero-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aff-landing-hero .hero-cta a,
.aff-landing-hero .hero-cta button {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
}

.aff-landing-hero .btn-hero-primary {
  background: #fff;
  color: #1d4ed8;
}

.aff-landing-hero .btn-hero-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.aff-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.aff-benefit-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid #eef2f7;
}

.aff-benefit-card .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1d7ce8;
  line-height: 1.1;
}

.aff-benefit-card h3 {
  margin: 8px 0 6px;
  font-size: 0.95rem;
}

.aff-benefit-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}

.aff-section-title {
  font-size: 1.1rem;
  margin: 0 0 12px;
  font-weight: 700;
}

.aff-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.aff-step-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border-left: 4px solid #1d7ce8;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.aff-step-card .step-n {
  font-size: 12px;
  color: #1d7ce8;
  font-weight: 700;
}

.aff-step-card h4 {
  margin: 6px 0 6px;
  font-size: 0.92rem;
}

.aff-step-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}

.aff-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.aff-note-card {
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  min-height: 140px;
}

.aff-note-card:nth-child(1) {
  background: linear-gradient(145deg, #0ea5e9, #2563eb);
}

.aff-note-card:nth-child(2) {
  background: linear-gradient(145deg, #8b5cf6, #6366f1);
}

.aff-note-card:nth-child(3) {
  background: linear-gradient(145deg, #14b8a6, #059669);
}

.aff-note-card .kind {
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 0.06em;
}

.aff-note-card h4 {
  margin: 8px 0 10px;
  font-size: 1rem;
  line-height: 1.35;
}

.aff-note-card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.95;
}

.aff-register-panel {
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.aff-register-panel h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.aff-register-panel .sub {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #64748b;
}

.aff-demo-hint {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 0.82rem;
  color: #166534;
  line-height: 1.55;
}

.aff-demo-hint code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 5px;
  border-radius: 4px;
}

.aff-faq-mini {
  margin-bottom: 24px;
}

.aff-faq-mini details {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
}

.aff-faq-mini summary {
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.aff-faq-mini p {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.85rem;
}

.aff-step-form {
  display: none;
}

.aff-step-form.is-active {
  display: block;
}

.aff-link-box {
  word-break: break-all;
  background: #eef6ff;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.aff-footer-links {
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}

.aff-footer-links a {
  color: #1d7ce8;
  margin: 0 8px;
}

.aff-dash-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

.aff-dash-hero {
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, #1d7ce8 0%, #7c3aed 100%);
}

.aff-dash-hero h1 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.aff-dash-hero p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.92;
}

.aff-dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #eef2f7;
}

.aff-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
}

.aff-tabs button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.aff-tabs button.is-active {
  background: #1d7ce8;
  color: #fff;
  border-color: #1d7ce8;
}

.aff-panel {
  display: none;
}

.aff-panel.is-active {
  display: block;
}

.aff-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

@media (min-width: 560px) {
  .aff-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.aff-stat {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
}

.aff-stat strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 0.25rem;
  color: #0f172a;
}

.aff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.aff-table th,
.aff-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.45rem 0.25rem;
  text-align: left;
}

.aff-copy-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  margin: 0.65rem 0;
  background: #fafafa;
}

.aff-copy-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.aff-copy-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  color: #334155;
}

.aff-faq {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
}

.aff-faq dt {
  font-weight: 600;
  margin-top: 0.65rem;
}

.aff-profile-view {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.aff-profile-view dt {
  font-weight: 600;
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 0.65rem;
}

.aff-profile-view dt:first-child {
  margin-top: 0;
}

.aff-profile-view dd {
  margin: 0.2rem 0 0;
  color: #0f172a;
  word-break: break-all;
}

.aff-profile-form input[disabled] {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.aff-profile-field {
  margin: 0.85rem 0 0;
}

.aff-profile-field:first-child {
  margin-top: 0.25rem;
}

.aff-profile-field label {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.aff-profile-hint {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.aff-profile-field .input-icon-wrap {
  margin: 0;
}

.aff-profile-field input {
  width: 100%;
  box-sizing: border-box;
}

.aff-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.aff-profile-actions .btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
}

.aff-faq dd {
  margin: 0.25rem 0 0;
}

.aff-preview-banner {
  text-align: center;
  padding: 8px 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* 推广页页尾 AdSense（同 luck 主页横幅位） */
.aff-ad-slot {
  margin: 28px auto 8px;
  max-width: 920px;
  text-align: center;
  overflow: visible;
}

.aff-ad-card {
  display: inline-block;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
}

.aff-ad-card .adsbygoogle {
  display: block;
  max-width: 100%;
  min-height: 90px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .aff-ad-card .adsbygoogle {
    width: 100% !important;
    height: auto !important;
    min-height: 80px;
  }
}

.aff-notice-banner {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #bfdbfe;
  font-size: 0.9rem;
  line-height: 1.55;
}

.aff-notice-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #1e3a8a;
}

.aff-notice-banner p {
  margin: 0 0 8px;
  color: #334155;
}

.aff-notice-banner a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.aff-notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aff-notice-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.aff-notice-item h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.aff-notice-item p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}

.aff-notice-item a {
  font-size: 0.85rem;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}
