/* 卡密兑换 — 主页配色，分栏高价感排版 */

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

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

.rd-hero {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.rd-eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  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;
}

.rd-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

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

.rd-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 1.35rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 840px) {
  .rd-workspace {
    grid-template-columns: 1fr;
  }
}

.rd-form-card {
  position: relative;
  padding: 1.5rem 1.6rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.rd-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
  pointer-events: none;
}

.rd-form-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.rd-form-head-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border-radius: 12px;
  background: var(--accent-fill-15);
  border: 1px solid var(--accent-border-28);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.rd-form-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.rd-form-head span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
}

.rd-input-wrap {
  position: relative;
  margin-bottom: 1.15rem;
}

.rd-input-wrap .rd-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.45;
  pointer-events: none;
}

.rd-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--bg-elevated);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rd-input::placeholder {
  color: #64748b;
  letter-spacing: 0.04em;
}

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

.rd-form-card .btn-primary {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

.rd-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

@media (max-width: 840px) {
  .rd-aside {
    position: static;
  }
}

.rd-tips {
  padding: 1.25rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-bright);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.rd-tips h3 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.rd-tips ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rdt;
}

.rd-tips li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.rd-tips li:last-child {
  margin-bottom: 0;
}

.rd-tips li::before {
  counter-increment: rdt;
  content: counter(rdt);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
  color: #030712;
  background: var(--accent);
  border-radius: 6px;
}

.rd-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.rd-actions a,
.rd-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.rd-actions a:hover,
.rd-actions button:hover {
  border-color: var(--accent-border-35);
  color: var(--accent-bright);
  background: var(--accent-fill-08);
}

.rd-footnote {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

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