/* ============================================================
   知微风水复刻站 · 二期模块补充样式（一）
   公共页类 / 吕祖签 luzu-* / 农历日期选择器 dp-*
   设计令牌与 style.css 完全一致（暗色墨绿 + 金）
   ============================================================ */

/* ============ 公共页面骨架 ============ */
.page-wrap { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 60px; }
.page-head { text-align: center; margin-bottom: 36px; }
.page-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-latin); letter-spacing: 0.3em;
  font-size: 12px; color: var(--gold); text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(201, 168, 76, 0.06);
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--font-display); font-size: 34px; color: var(--text-hi);
  font-weight: 600; letter-spacing: 0.12em;
}
.section-title-wrap {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 16px;
}
.section-title-wrap::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.35), transparent);
}
.field-input, .field-select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28); color: var(--text-hi);
  border: 1px solid var(--line); outline: none; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus, .field-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
textarea.field-input { min-height: 90px; resize: vertical; line-height: 1.6; }
.empty-tip { color: var(--text-faint); font-size: 14px; text-align: center; padding: 24px 0; }
.btn-xs {
  padding: 4px 10px; font-size: 12px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.btn-xs:hover { color: var(--gold-light); border-color: var(--gold-dim); }

/* ============ 吕祖签 luzu ============ */
.luzu-page { max-width: 860px; margin: 0 auto; }
.luzu-card {
  background: var(--grad-panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 32px; position: relative;
  overflow: hidden;
}
.luzu-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(201, 168, 76, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.luzu-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; position: relative;
}
.luzu-card-head h3 { font-family: var(--font-display); font-size: 20px; color: var(--gold-light); letter-spacing: 0.1em; }
.luzu-hint { font-size: 13px; color: var(--text-dim); }
.luzu-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; position: relative; }
.luzu-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.luzu-form .field:first-child { flex: 2; }
.luzu-actions { display: flex; gap: 10px; }
.luzu-stage {
  position: relative; margin: 26px 0 8px; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.luzu-stage .shaking { animation: luzuShake 0.9s ease-in-out infinite; }
@keyframes luzuShake {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-5deg) translateY(-4px); }
  50% { transform: rotate(5deg) translateY(2px); }
  75% { transform: rotate(-3deg) translateY(-2px); }
}
.luzu-stage .luzu-no { display: none; }
.luzu-stage .luzu-no.show { display: block; }
.luzu-result { margin-top: 18px; position: relative; }
.luzu-level {
  display: inline-block; padding: 3px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--grad-gold);
  color: #1a1406; letter-spacing: 0.1em; margin-bottom: 12px;
}
.luzu-poem {
  font-family: var(--font-display); font-size: 15px; line-height: 2;
  color: var(--gold-light); white-space: pre-line; margin: 8px 0 16px;
}
.luzu-break { font-size: 13px; line-height: 2; color: var(--text); white-space: pre-line; }
.luzu-block {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line-soft);
}
.luzu-block h4 {
  font-size: 13px; color: var(--gold); letter-spacing: 0.08em;
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.luzu-bd-key { color: var(--jade); font-weight: 600; margin-right: 6px; }
.luzu-bd-val { color: var(--text); }
.luzu-bd-item { margin: 4px 0; font-size: 13px; }
.luzu-kw { display: flex; flex-wrap: wrap; gap: 8px; }
.luzu-kw .chip {
  padding: 4px 12px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--gold-dim); color: var(--gold-light);
  background: rgba(201, 168, 76, 0.08);
}
.luzu-ask { margin-top: 18px; }
.luzu-ask .ai-block {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.luzu-history { margin-top: 22px; }
.luzu-his-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.luzu-his-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line-soft);
}
.luzu-his-time { font-size: 12px; color: var(--text-faint); }
.luzu-his-ask { flex: 1; font-size: 13px; color: var(--text-dim); }

/* ============ 农历日期选择器 dp ============ */
.datepicker {
  position: fixed; z-index: 1200; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; max-width: 92vw;
  background: var(--ink-panel); border: 1px solid var(--gold-dim);
  border-radius: var(--radius); box-shadow: var(--shadow), var(--glow-gold);
  padding: 16px; color: var(--text-hi);
}
.datepicker::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, 0.55);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dp-title { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.08em; color: var(--gold-light); }
.dp-nav {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.dp-nav:hover { color: var(--gold-light); border-color: var(--gold-dim); }
.dp-weekrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.dp-week { text-align: center; font-size: 11px; color: var(--text-faint); padding: 4px 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-cell {
  position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  font-size: 13px; color: var(--text);
}
.dp-cell:hover { border-color: var(--gold-dim); background: rgba(201, 168, 76, 0.08); }
.dp-cell.today { color: var(--gold-light); font-weight: 700; }
.dp-cell.sel {
  background: var(--grad-gold); color: #1a1406; font-weight: 700;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
}
.dp-cell.dp-empty { pointer-events: none; visibility: hidden; }
.dp-cell .dp-lunar {
  font-size: 8px; color: var(--text-faint); line-height: 1;
  margin-top: 2px;
}
.dp-cell.sel .dp-lunar { color: rgba(26, 20, 6, 0.75); }
.dp-cell.dp-lunar-day .dp-lunar { color: var(--jade); }
.dp-tip { margin-top: 10px; font-size: 11px; color: var(--text-faint); line-height: 1.6; }
.dp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
