/* 邀请有礼 — 主页配色，分卡片排版 */

.iv-page {
  padding-bottom: 3rem;
}

main.ag-shell.iv-page {
  width: min(800px, 100% - 40px);
}

.iv-hero {
  margin-bottom: 1.5rem;
  text-align: center;
}

.iv-eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  background: var(--accent-fill-12);
  border: 1px solid var(--accent-border-28);
  border-radius: 999px;
}

.iv-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.iv-hero p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 统一导航风格为主页 */
.ag-top {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.ag-nav a,
.ag-login {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  box-shadow: none;
}

.ag-nav a:hover,
.ag-nav a.is-active,
.ag-login:hover {
  color: #061426;
  background: #ffffff;
  border-color: #ffffff;
}

.iv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 480px) {
  .iv-stats {
    grid-template-columns: 1fr;
  }
}

.iv-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.iv-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.iv-stat-icon--blue {
  background: var(--accent-fill-15);
  border: 1px solid var(--accent-border-28);
}

.iv-stat-icon--gold {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.iv-stat-body {
  min-width: 0;
}

.iv-stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.iv-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.iv-card {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.iv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.65;
  pointer-events: none;
}

.iv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.iv-card-head-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.iv-card-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border-radius: 10px;
  background: var(--accent-fill-12);
  border: 1px solid var(--accent-border-28);
}

.iv-card-icon--lock {
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.35);
}

.iv-card-icon--trophy {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

.iv-card-icon--safe {
  background: var(--accent-fill-15);
  border-color: var(--accent-border-28);
}

.iv-card-icon--rule {
  background: var(--violet-fill-10);
  border-color: rgba(59, 130, 246, 0.35);
}

.iv-card h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.iv-card-sub {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.iv-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-bright);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.iv-link-btn:hover {
  border-color: var(--accent-border-35);
  background: var(--accent-fill-08);
}

.iv-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.iv-code {
  flex: 1;
  min-width: 10rem;
  padding: 0.65rem 1rem;
  font-family: ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f87171;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px dashed rgba(248, 113, 113, 0.35);
  border-radius: var(--radius-sm);
}

.iv-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.iv-code-actions .btn {
  white-space: nowrap;
}

.iv-card-foot {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.iv-card-foot .iv-highlight {
  color: var(--accent-bright);
  font-weight: 600;
}

.iv-pending-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.iv-pending-val {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--warning);
}

.iv-pending-val span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.iv-redeem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
}

.iv-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-elevated);
}

.iv-input::placeholder {
  color: #64748b;
}

.iv-input:focus {
  outline: none;
  border-color: var(--accent-border-35);
  box-shadow: 0 0 0 3px var(--accent-fill-12);
}

.iv-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.iv-note span[aria-hidden] {
  color: var(--accent-bright);
  flex-shrink: 0;
}

.iv-rules {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iv-rules li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.iv-rules li:last-child {
  margin-bottom: 0;
}

.iv-rules li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #f87171;
  font-size: 0.65rem;
  top: 0.35rem;
}

.iv-footnote {
  margin-top: 1.25rem;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--accent-fill-08);
}

.iv-footnote strong {
  color: var(--accent-bright);
}
