/* instakill.css — 秒杀技巧库页面样式 */

.instakill-container {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
}

/* ---- Hero ---- */
.ik-hero {
  text-align: center;
  padding: 30px 20px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 16px;
}

.ik-hero-title {
  font-size: 30px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 8px;
}

.ik-hero-sub {
  font-size: 15px;
  font-weight: 600;
  color: #d97706;
  margin-bottom: 6px;
}

.ik-hero-sub2 {
  font-size: 13px;
  color: var(--muted, #6b7280);
  line-height: 1.6;
}

/* ---- 锚点导航 ---- */
.ik-nav {
  position: sticky;
  top: 56px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ik-nav-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #374151);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color, #e5e7eb);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.ik-nav-chip:hover {
  border-color: #d97706;
  color: #d97706;
}

/* ---- 分类区块 ---- */
.ik-cat {
  margin-bottom: 28px;
  scroll-margin-top: 120px;
}

.ik-cat-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.05));
  border-left: 4px solid #f59e0b;
}

.ik-cat-icon {
  font-size: 24px;
  line-height: 1.2;
}

.ik-cat-name {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text, #111827);
}

.ik-cat-intro {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted, #6b7280);
}

/* ---- 规则卡片 ---- */
.ik-rules {
  display: grid;
  gap: 14px;
}

.ik-rule {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  padding: 18px 20px;
}

.ik-rule-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text, #111827);
  margin-bottom: 12px;
}

.ik-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 9px;
}

.ik-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #9ca3af);
  padding: 3px 0;
  flex-shrink: 0;
  width: 56px;
}

.ik-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text, #374151);
}

/* 题眼信号 chip */
.ik-signal {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

/* 秒杀动作高亮条 */
.ik-rule-action {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 4px 0 10px;
}

.ik-action-tag {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ik-action-text {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
  color: #92400e;
}

/* 真题示例 */
.ik-example {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted, #6b7280);
  background: var(--bg-muted, #f8fafc);
  border-left: 3px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
}

/* 卡片底部 */
.ik-rule-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ik-sources {
  font-size: 11px;
  color: var(--muted, #9ca3af);
  line-height: 1.6;
}

.ik-drill {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ik-drill:hover {
  background: rgba(124, 58, 237, 0.2);
}

/* ---- 响应式 ---- */
@media (max-width: 600px) {
  .ik-hero-title { font-size: 24px; }
  .ik-nav { top: 48px; }
  .ik-cat-head { padding: 12px 14px; }
  .ik-cat-name { font-size: 17px; }
  .ik-rule { padding: 14px 14px; }
  .ik-label { width: 50px; }
  .ik-ref-table { font-size: 13px; }
  .ik-ref-table th, .ik-ref-table td { padding: 7px 8px; }
  .ik-ref-table td:first-child { min-width: 100px; }
}

/* ---- 参考手册（原秒杀2合并）---- */
.ik-nav-sep {
  color: var(--muted, #9ca3af);
  font-size: 13px;
  padding: 0 2px;
}

.ik-nav-ref {
  border-color: rgba(124, 58, 237, 0.3) !important;
  color: #7c3aed !important;
}

.ik-nav-ref:hover {
  border-color: #7c3aed !important;
  color: #6d28d9 !important;
}

.ik-ref-divider {
  text-align: center;
  color: var(--muted, #9ca3af);
  font-size: 13px;
  font-weight: 600;
  margin: 32px 0 20px;
  letter-spacing: 1px;
}

.ik-ref-section {
  margin-bottom: 36px;
  scroll-margin-top: 120px;
}

.ik-ref-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text, #111827);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #7c3aed;
}

.ik-ref-num {
  color: #7c3aed;
  margin-right: 4px;
}

.ik-ref-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #7c3aed;
  margin: 18px 0 8px;
}

.ik-ref-note {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text, #374151);
}

.ik-ref-note b {
  color: #dc2626;
}

.ik-ref-steps {
  padding-left: 22px;
  margin: 8px 0;
}

.ik-ref-steps li {
  margin: 8px 0;
  line-height: 1.7;
  font-size: 14px;
  color: var(--text, #374151);
}

.ik-ref-steps b {
  color: #dc2626;
}

.ik-ref-tips {
  padding-left: 22px;
  margin: 8px 0;
}

.ik-ref-tips li {
  margin: 6px 0;
  line-height: 1.7;
  font-size: 14px;
  color: var(--text, #374151);
}

.ik-ref-tips b {
  color: #16a34a;
}

.ik-ref-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  margin: 10px 0;
  display: block;
  overflow-x: auto;
}

.ik-ref-table thead,
.ik-ref-table tbody {
  display: table;
  width: 100%;
}

.ik-ref-table th {
  background: rgba(124, 58, 237, 0.06);
  text-align: left;
  padding: 9px 12px;
  border-bottom: 2px solid rgba(124, 58, 237, 0.2);
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #111827);
  white-space: nowrap;
}

.ik-ref-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  vertical-align: top;
  line-height: 1.65;
  color: var(--text, #374151);
}

.ik-ref-table tr:last-child td {
  border-bottom: none;
}

.ik-ref-table td:first-child {
  color: var(--muted, #6b7280);
  min-width: 180px;
}

.ik-ref-table strong {
  color: #16a34a;
}
