/* 问灵 · 独立流程页样式（与旧版杂志感一致） */
:root {
    --wl-bg: #0a0908;
    --wl-bg-warm: #12100e;
    --wl-card: rgba(28, 25, 23, 0.88);
    --wl-card-hover: rgba(38, 34, 31, 0.92);
    --wl-border: rgba(180, 160, 120, 0.18);
    --wl-border-strong: rgba(212, 165, 116, 0.28);
    --wl-gold: #d4a574;
    --wl-gold-soft: #b8956a;
    --wl-red: #991b1b;
    --wl-jade: #6ee7b7;
    --wl-text: #e7e5e4;
    --wl-text-warm: #f5f0ea;
    --wl-muted: #a8a29e;
    --wl-subtle: #78716c;
    --wl-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
    --wl-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --wl-radius: 14px;
    --wl-radius-lg: 18px;
    --wl-safe-top: env(safe-area-inset-top, 0px);
    --wl-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

body.wl-body {
    margin: 0;
    min-height: 100dvh;
    background: var(--wl-bg);
    color: var(--wl-text);
    font-family: var(--wl-sans);
    font-size: 15px;
    line-height: 1.6;
}

body.wl-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(153, 27, 27, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(52, 211, 153, 0.04) 0%, transparent 40%);
    z-index: 0;
}

.wl-page {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: calc(12px + var(--wl-safe-top)) 16px calc(24px + var(--wl-safe-bottom));
}

.wl-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wl-back {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(212, 165, 116, 0.32);
    background: rgba(28, 24, 21, 0.88);
    color: var(--wl-text-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.wl-back:active { transform: scale(0.96); }
.wl-back svg { width: 24px; height: 24px; }

.wl-topbar-title {
    font-family: var(--wl-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--wl-text-warm);
    margin: 0;
}

.wl-topbar-sub {
    font-size: 12px;
    color: var(--wl-subtle);
    margin: 2px 0 0;
}

.wl-card {
    background: var(--wl-card);
    border: 1px solid var(--wl-border);
    border-radius: var(--wl-radius);
    padding: 18px;
    margin-bottom: 14px;
}

.wl-card-lg {
    border-radius: var(--wl-radius-lg);
    padding: 22px;
}

.wl-label {
    display: block;
    font-size: 12px;
    color: var(--wl-subtle);
    margin-bottom: 6px;
}

.wl-input,
.wl-select,
.wl-textarea {
    width: 100%;
    background: rgba(15, 13, 11, 0.75);
    border: 1px solid rgba(68, 64, 60, 0.55);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--wl-text-warm);
    font-size: 15px;
    font-family: var(--wl-sans);
    outline: none;
    transition: border-color 0.2s;
}

.wl-input:focus,
.wl-select:focus,
.wl-textarea:focus {
    border-color: var(--wl-border-strong);
}

.wl-textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

.wl-field { margin-bottom: 14px; }

.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.wl-btn:active { transform: scale(0.98); opacity: 0.92; }

.wl-btn-primary {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.85) 0%, rgba(146, 64, 14, 0.9) 100%);
    color: #fff7ed;
    box-shadow: 0 4px 20px rgba(120, 53, 15, 0.25);
}

.wl-btn-ghost {
    background: transparent;
    border: 1px solid var(--wl-border);
    color: var(--wl-muted);
}

.wl-btn-sm {
    width: auto;
    padding: 10px 16px;
    font-size: 13px;
}

.wl-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wl-chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--wl-border);
    background: rgba(20, 18, 16, 0.5);
    color: var(--wl-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.wl-chip.active {
    border-color: var(--wl-border-strong);
    color: var(--wl-gold);
    background: rgba(180, 83, 9, 0.12);
}

.wl-required-mark {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
    vertical-align: middle;
}

.wl-suggest {
    margin-top: 10px;
}

.wl-suggest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.wl-suggest-label {
    font-size: 12px;
    color: var(--wl-subtle);
}

.wl-suggest-refresh {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--wl-border);
    background: transparent;
    color: var(--wl-gold-soft);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.wl-suggest-refresh::before {
    content: '↻';
    font-size: 13px;
}

.wl-suggest-refresh:hover {
    border-color: var(--wl-border-strong);
    color: var(--wl-gold);
    background: rgba(180, 83, 9, 0.1);
}

.wl-suggest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wl-suggest-chip {
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--wl-border);
    background: rgba(20, 18, 16, 0.5);
    color: var(--wl-muted);
    font-size: 12.5px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.wl-suggest-chip:hover {
    border-color: var(--wl-border-strong);
    color: var(--wl-gold);
    background: rgba(180, 83, 9, 0.1);
}

.wl-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: 0.02em;
    border: 1px solid var(--wl-border);
    color: var(--wl-subtle);
    background: rgba(15, 13, 11, 0.5);
}

.wl-tag-gold { color: var(--wl-gold-soft); border-color: rgba(212, 165, 116, 0.25); }
.wl-tag-jade { color: #86efac; border-color: rgba(52, 211, 153, 0.2); }

.wl-note {
    font-size: 12px;
    color: var(--wl-subtle);
    line-height: 1.55;
    margin: 12px 0 0;
}

.wl-compliance {
    font-size: 11px;
    color: var(--wl-subtle);
    line-height: 1.55;
    padding: 14px 0 0;
    border-top: 1px solid rgba(68, 64, 60, 0.35);
    margin-top: 20px;
}

.wl-result-headline {
    font-family: var(--wl-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--wl-gold);
    line-height: 1.45;
    margin: 0 0 16px;
}

.wl-result-section { margin-bottom: 18px; }

.wl-result-section h3 {
    font-family: var(--wl-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--wl-text-warm);
    margin: 0 0 6px;
}

.wl-result-section p {
    margin: 0;
    font-size: 14px;
    color: var(--wl-muted);
    line-height: 1.65;
}

.wl-evidence {
    border: 1px solid var(--wl-border);
    border-radius: 12px;
    overflow: hidden;
}

.wl-evidence summary {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--wl-subtle);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wl-evidence summary::-webkit-details-marker { display: none; }

.wl-evidence pre {
    margin: 0;
    padding: 12px 14px;
    background: rgba(10, 9, 8, 0.6);
    font-size: 11px;
    line-height: 1.5;
    color: #78716c;
    overflow-x: auto;
    border-top: 1px solid rgba(68, 64, 60, 0.35);
}

.wl-evidence-body {
    padding: 0 14px 14px;
    border-top: 1px solid rgba(68, 64, 60, 0.35);
}

.wl-evidence-body > p {
    margin: 0;
    padding: 14px 0;
    color: var(--wl-muted);
    font-size: 13px;
    line-height: 1.7;
}

.wl-raw-evidence {
    border-top: 1px solid rgba(68, 64, 60, 0.35);
}

.wl-raw-evidence summary {
    padding: 11px 0 0;
    color: var(--wl-subtle);
    font-size: 11px;
}

.wl-raw-evidence pre {
    margin-top: 10px;
    border: 1px solid rgba(68, 64, 60, 0.35);
    border-radius: 9px;
    max-height: 360px;
}

.wl-warning {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(153, 27, 27, 0.12);
    border: 1px solid rgba(153, 27, 27, 0.25);
    color: #fca5a5;
    font-size: 12px;
    margin-bottom: 10px;
}

.wl-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.wl-actions-row .wl-btn { flex: 1; }

.wl-mock-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(120, 113, 108, 0.25);
    color: var(--wl-subtle);
    margin-left: 8px;
    vertical-align: middle;
}

.wl-option-card {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: var(--wl-radius);
    border: 1px solid var(--wl-border);
    background: var(--wl-card);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.wl-option-card:active {
    background: var(--wl-card-hover);
    border-color: var(--wl-border-strong);
}

.wl-option-card h4 {
    font-family: var(--wl-serif);
    font-size: 17px;
    margin: 0 0 4px;
    color: var(--wl-text-warm);
}

.wl-option-card p {
    margin: 0;
    font-size: 13px;
    color: var(--wl-subtle);
    line-height: 1.55;
}

.wl-rec-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--wl-subtle);
}

.wl-rec-title {
    margin: 0 0 16px;
    font-family: var(--wl-serif);
    font-size: 20px;
    color: var(--wl-gold);
}

.wl-rec-block {
    margin: 0 0 14px;
}

.wl-rec-block:last-child {
    margin-bottom: 0;
}

.wl-rec-label {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--wl-subtle);
}

.wl-rec-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--wl-muted);
}

.wl-rec-list {
    margin: 0;
    padding-left: 1.15em;
    font-size: 14px;
    line-height: 1.65;
    color: var(--wl-muted);
}

.wl-rec-list li + li {
    margin-top: 4px;
}

.wl-divider {
    height: 1px;
    background: rgba(68, 64, 60, 0.35);
    margin: 18px 0;
}

.wl-radio-row {
    display: flex;
    gap: 10px;
}

.wl-radio-row label {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--wl-border);
    cursor: pointer;
    font-size: 14px;
    color: var(--wl-muted);
}

.wl-radio-row input { display: none; }
.wl-radio-row input:checked + span { color: var(--wl-gold); }
.wl-radio-row label:has(input:checked) {
    border-color: var(--wl-border-strong);
    background: rgba(180, 83, 9, 0.1);
}

.wl-coordinate-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wl-tool-glyph {
    font-family: "Noto Serif SC", serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--wl-gold);
}

/* ── 起卦行动路径 ── */
.wl-intro-card {
    background:
        radial-gradient(circle at 90% 0%, rgba(212, 165, 116, 0.08), transparent 42%),
        var(--wl-card);
}

.wl-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 2px 12px;
}

.wl-section-heading .wl-section-title { margin: 0; }

.wl-eyebrow {
    margin: 0 0 3px;
    color: var(--wl-gold-soft);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wl-step-hint {
    flex-shrink: 0;
    color: var(--wl-subtle);
    font-size: 11px;
}

.wl-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: 10px;
    overflow-x: auto;
    margin: 0 -16px 14px;
    padding: 0 16px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.wl-method-grid::-webkit-scrollbar { display: none; }

.wl-method-card {
    position: relative;
    min-height: 176px;
    padding: 16px;
    border: 1px solid var(--wl-border);
    border-radius: var(--wl-radius);
    background: var(--wl-card);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    scroll-snap-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.wl-method-card:active { transform: scale(0.985); }
.wl-method-card input { position: absolute; opacity: 0; pointer-events: none; }

.wl-method-card.is-active {
    border-color: rgba(212, 165, 116, 0.55);
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 165, 116, 0.12), transparent 48%),
        var(--wl-card-hover);
    box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.06);
}

.wl-method-index {
    display: block;
    color: var(--wl-gold);
    font: 500 11px/1 var(--wl-sans);
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.wl-method-card strong {
    color: var(--wl-text-warm);
    font: 600 18px/1.3 var(--wl-serif);
}

.wl-method-card small {
    color: var(--wl-subtle);
    font-size: 12px;
    line-height: 1.55;
    margin-top: 7px;
}

.wl-method-action {
    margin-top: auto;
    padding-top: 14px;
    color: var(--wl-gold-soft);
    font-size: 12px;
}

/* 固定 2 列网格，不使用横向滚动（塔罗牌阵、八字阅读方向等） */
.wl-method-grid.wl-grid-fixed-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
}

/* 卡片数量为单数时，最后一张卡片横跨两列，避免留白 */
.wl-method-grid.wl-grid-fixed-2col .wl-method-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.wl-info-card {
    padding: 18px 16px;
    border: 1px solid var(--wl-border);
    border-radius: var(--wl-radius);
    background: var(--wl-card);
    margin: 4px 0 16px;
}

.wl-info-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font: 600 16px/1.3 var(--wl-serif);
    color: var(--wl-text-warm);
    margin: 0 0 16px;
}

.wl-info-title::before {
    content: '';
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--wl-gold);
    flex-shrink: 0;
}

.wl-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.wl-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wl-info-item::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--wl-gold);
    flex-shrink: 0;
}

.wl-info-item-body {
    min-width: 0;
}

.wl-info-item-body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--wl-text-warm);
    margin-bottom: 5px;
}

.wl-info-item-body p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--wl-subtle);
}

@media (max-width: 380px) {
    .wl-info-grid { grid-template-columns: 1fr; }
}

.wl-flow-panel {
    margin-top: 4px;
    border-color: var(--wl-border-strong);
}

.wl-flow-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.wl-flow-head h3 {
    margin: 0;
    color: var(--wl-text-warm);
    font: 600 17px/1.4 var(--wl-serif);
}

.wl-flow-head p {
    margin: 4px 0 0;
    color: var(--wl-subtle);
    font-size: 12px;
    line-height: 1.55;
}

.wl-flow-head > span {
    flex-shrink: 0;
    color: var(--wl-gold-soft);
    font-size: 12px;
}

.wl-coin-lines {
    display: flex;
    flex-direction: column-reverse;
    gap: 7px;
    min-height: 232px;
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(10, 9, 8, 0.45);
    border: 1px solid rgba(68, 64, 60, 0.35);
}

.wl-coin-line {
    display: grid;
    grid-template-columns: 40px 1fr 56px;
    align-items: center;
    min-height: 29px;
    color: #57534e;
    font-size: 11px;
}

.wl-coin-line strong {
    justify-self: center;
    color: #57534e;
    font: 600 15px/1 var(--wl-serif);
    letter-spacing: 0.08em;
}

.wl-coin-line small { justify-self: end; font-size: 11px; }

.wl-coin-line.is-complete,
.wl-coin-line.is-complete strong { color: var(--wl-gold); }

.wl-text-button {
    display: block;
    margin: 12px auto 0;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--wl-subtle);
    font-size: 12px;
    cursor: pointer;
}

.wl-sticky-action {
    position: sticky;
    bottom: calc(10px + var(--wl-safe-bottom));
    z-index: 5;
    margin-top: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.52);
}

/* ── 奇门时间与排盘口径 ── */
.wl-time-mode label { padding: 10px 8px; }
.wl-time-mode span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wl-time-mode strong {
    color: inherit;
    font-size: 13px;
    font-weight: 500;
}
.wl-time-mode small {
    color: var(--wl-subtle);
    font-size: 10px;
}

.wl-settings-card { padding-top: 8px; padding-bottom: 8px; }

.wl-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 74px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(68, 64, 60, 0.35);
}

.wl-setting-row:last-child { border-bottom: 0; }

.wl-setting-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wl-setting-copy strong {
    color: var(--wl-text-warm);
    font: 600 14px/1.4 var(--wl-serif);
}

.wl-setting-copy small {
    margin-top: 2px;
    color: var(--wl-subtle);
    font-size: 10px;
    line-height: 1.4;
}

.wl-static-choice {
    flex-shrink: 0;
    padding: 7px 11px;
    border-radius: 9px;
    border: 1px solid var(--wl-border-strong);
    color: var(--wl-gold);
    font-size: 12px;
    background: rgba(180, 83, 9, 0.1);
}

.wl-segmented {
    display: flex;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--wl-border);
    background: rgba(10, 9, 8, 0.55);
}

.wl-segmented label { cursor: pointer; }
.wl-segmented input { display: none; }
.wl-segmented span {
    display: block;
    min-width: 52px;
    padding: 7px 8px;
    border-radius: 7px;
    color: var(--wl-subtle);
    font-size: 11px;
    text-align: center;
}
.wl-segmented input:checked + span {
    background: rgba(212, 165, 116, 0.18);
    color: var(--wl-gold);
}

.wl-profile-card {
    background:
        radial-gradient(circle at 90% 10%, rgba(110, 231, 183, 0.07), transparent 42%),
        var(--wl-card);
}

.wl-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wl-profile-head p {
    margin: 0;
    color: var(--wl-subtle);
    font-size: 11px;
}

.wl-profile-head a {
    color: var(--wl-gold-soft);
    font-size: 12px;
    text-decoration: none;
}

.wl-profile-name {
    margin: 10px 0 0;
    color: var(--wl-text-warm);
    font: 600 19px/1.4 var(--wl-serif);
}

.wl-profile-meta {
    margin: 5px 0 0;
    color: var(--wl-muted);
    font-size: 12px;
}

.wl-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 14px;
}

.wl-focus-grid label {
    position: relative;
    min-height: 76px;
    padding: 14px;
    border-radius: 13px;
    border: 1px solid var(--wl-border);
    background: var(--wl-card);
    cursor: pointer;
}

.wl-focus-grid label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wl-focus-grid input { position: absolute; opacity: 0; pointer-events: none; }

.wl-focus-grid label.is-active,
.wl-focus-grid label:has(input:checked) {
    border-color: var(--wl-border-strong);
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 165, 116, 0.1), transparent 55%),
        var(--wl-card-hover);
}

.wl-focus-grid span {
    display: flex;
    flex-direction: column;
    color: var(--wl-text-warm);
    font: 600 14px/1.4 var(--wl-serif);
}

.wl-focus-grid small {
    margin-top: 4px;
    color: var(--wl-subtle);
    font: 400 10px/1.4 var(--wl-sans);
}

.wl-preview-date {
    margin: 0 0 6px;
    color: var(--wl-gold-soft);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.wl-preview-copy {
    margin: 0;
    color: var(--wl-text-warm);
    font-size: 14px;
    line-height: 1.65;
}

.wl-radio-row input:disabled + span {
    opacity: 0.38;
    cursor: not-allowed;
}

@media (max-width: 360px) {
    .wl-setting-row { align-items: flex-start; flex-direction: column; }
    .wl-segmented { width: 100%; }
    .wl-segmented label { flex: 1; }
}

/* ── 问灵首页（嵌入 index.html）── */
.wl-home { padding: 8px 16px 24px; }

.wl-home-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wl-home-title {
    font-family: var(--wl-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--wl-text-warm);
    margin: 0 0 6px;
    letter-spacing: 0.04em;
}

.wl-home-sub {
    font-size: 14px;
    color: var(--wl-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 260px;
}

.wl-history-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--wl-border);
    background: rgba(20, 18, 16, 0.55);
    color: var(--wl-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.wl-history-btn svg { width: 18px; height: 18px; }

.wl-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--wl-radius-lg);
    border: 1px solid var(--wl-border-strong);
    background: linear-gradient(145deg, rgba(38, 30, 24, 0.95) 0%, rgba(20, 16, 14, 0.92) 100%);
    padding: 22px 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.wl-feature-compact {
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.wl-feature-compact .wl-feature-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.wl-feature-text {
    flex: 1;
    min-width: 0;
}

.wl-feature-compact .wl-feature-title {
    font-size: 16px;
    margin: 0 0 3px;
    white-space: nowrap;
}

.wl-feature-compact .wl-feature-desc {
    font-size: 12.5px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wl-feature-compact .wl-feature-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.wl-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 85% 15%, rgba(212, 165, 116, 0.12) 0%, transparent 50%);
}

.wl-feature-inner { position: relative; z-index: 1; }

.wl-feature-title {
    font-family: var(--wl-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--wl-gold);
    margin: 0 0 8px;
}

.wl-feature-desc {
    font-size: 14px;
    color: var(--wl-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

.wl-feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25) 0%, rgba(180, 83, 9, 0.35) 100%);
    color: #fff7ed;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.wl-section-title {
    font-family: var(--wl-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--wl-text-warm);
    margin: 0 0 12px;
}

.wl-section-title-sm {
    font-family: var(--wl-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--wl-subtle);
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}

.wl-tool-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

/* ── 双列命理工具网格 ── */
.wl-tool-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.wl-tool-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-height: 128px;
    padding: 14px;
    border-radius: var(--wl-radius);
    border: 1px solid var(--wl-border);
    background: var(--wl-card);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.wl-tool-tile:active {
    transform: scale(0.98);
    border-color: var(--wl-border-strong);
    background: var(--wl-card-hover);
}

.wl-tool-tile .wl-tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 2px;
}

.wl-tool-tile .wl-tool-icon svg { width: 18px; height: 18px; }

.wl-tool-tile-name {
    font-family: var(--wl-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--wl-text-warm);
    line-height: 1.3;
}

.wl-tool-tile-desc {
    font-size: 12.5px;
    color: var(--wl-subtle);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wl-tool-tile-meta { margin-top: auto; padding-top: 2px; }

.wl-tool-tile-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    min-height: 0;
    gap: 12px;
    padding: 14px 16px;
}

.wl-tool-tile-wide .wl-tool-icon { margin-bottom: 0; flex-shrink: 0; }

.wl-tool-tile-wide-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wl-tool-tile-wide .wl-tool-tile-name { font-size: 17px; }
.wl-tool-tile-wide .wl-tool-tile-desc { -webkit-line-clamp: 1; }

.wl-tool-tile-wide-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.wl-tool-tile-date {
    font-size: 11px;
    color: var(--wl-subtle);
    white-space: nowrap;
}

@media (max-width: 340px) {
    .wl-tool-grid-2col { grid-template-columns: 1fr; }
    .wl-tool-tile-wide { grid-column: 1; }
}

.wl-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: var(--wl-radius);
    border: 1px solid var(--wl-border);
    background: var(--wl-card);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    color: inherit;
}

.wl-tool-card:active {
    transform: scale(0.99);
    border-color: var(--wl-border-strong);
}

.wl-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--wl-border);
    background: rgba(15, 13, 11, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--wl-gold-soft);
}

.wl-tool-icon svg { width: 22px; height: 22px; }

/* ── 问灵结果后的双解读师选择 ── */
.wl-mentor-body {
    background:
        radial-gradient(circle at 50% -10%, rgba(180, 83, 9, 0.14), transparent 34%),
        var(--wl-bg);
}

.wl-mentor-page {
    max-width: 900px;
}

.wl-mentor-intro {
    margin: 10px 0 20px;
}

.wl-mentor-kicker {
    margin: 0 0 8px;
    color: var(--wl-gold);
    font-size: 12px;
    letter-spacing: 0.16em;
}

.wl-mentor-intro h2 {
    margin: 0 0 8px;
    color: var(--wl-text);
    font-family: var(--wl-serif);
    font-size: clamp(26px, 5vw, 38px);
}

.wl-mentor-intro > p:not(.wl-mentor-kicker) {
    margin: 0;
    color: var(--wl-muted);
    font-size: 14px;
    line-height: 1.7;
}

.wl-mentor-basis {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--wl-border);
    border-radius: 14px;
    background: rgba(28, 25, 23, 0.75);
    color: #d6d3d1;
    font-family: var(--wl-serif);
    line-height: 1.55;
}

.wl-mentor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wl-mentor-card {
    overflow: hidden;
    border: 1px solid var(--wl-border);
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(41, 37, 36, 0.96), rgba(12, 10, 9, 0.98));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.25);
}

.wl-mentor-portrait-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #0c0a09;
}

.wl-mentor-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    filter: saturate(0.9) contrast(1.03);
}

.wl-mentor-portrait-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(transparent, rgba(12, 10, 9, 0.96));
}

.wl-mentor-view {
    position: absolute;
    z-index: 1;
    left: 14px;
    bottom: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(214, 165, 107, 0.45);
    border-radius: 999px;
    background: rgba(12, 10, 9, 0.78);
    color: var(--wl-gold);
    font-size: 11px;
    backdrop-filter: blur(8px);
}

.wl-mentor-content {
    padding: 18px;
}

.wl-mentor-school,
.wl-mentor-title,
.wl-mentor-style {
    margin: 0;
}

.wl-mentor-school {
    color: var(--wl-gold);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.wl-mentor-name {
    margin: 6px 0 3px;
    color: var(--wl-text);
    font-family: var(--wl-serif);
    font-size: 25px;
}

.wl-mentor-title,
.wl-mentor-style {
    color: var(--wl-muted);
    font-size: 12px;
    line-height: 1.6;
}

.wl-mentor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.wl-mentor-tags span {
    padding: 5px 8px;
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    color: #d6d3d1;
    font-size: 11px;
}

.wl-mentor-sample {
    min-height: 72px;
    margin: 14px 0 16px;
    padding: 12px 0 0 12px;
    border-left: 2px solid rgba(214, 165, 107, 0.45);
    color: #c7c2bd;
    font-family: var(--wl-serif);
    font-size: 13px;
    line-height: 1.7;
}

.wl-mentor-choose {
    width: 100%;
}

.wl-mentor-loading,
.wl-mentor-error {
    grid-column: 1 / -1;
    padding: 30px 20px;
    border: 1px solid var(--wl-border);
    border-radius: 18px;
    color: var(--wl-muted);
    text-align: center;
}

@media (max-width: 620px) {
    .wl-mentor-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .wl-mentor-card {
        border-radius: 18px;
    }

    .wl-mentor-content {
        padding: 13px;
    }

    .wl-mentor-name {
        font-size: 21px;
    }

    .wl-mentor-title {
        min-height: 38px;
    }

    .wl-mentor-style {
        min-height: 57px;
    }

    .wl-mentor-sample {
        min-height: 120px;
        font-size: 12px;
    }

    .wl-mentor-choose {
        min-height: 48px;
        padding-inline: 8px;
        font-size: 13px;
    }
}

.wl-tool-body { flex: 1; min-width: 0; }

.wl-tool-name {
    font-family: var(--wl-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--wl-text-warm);
    margin: 0 0 4px;
}

.wl-tool-desc {
    font-size: 13px;
    color: var(--wl-subtle);
    line-height: 1.45;
    margin: 0 0 8px;
}

.wl-tool-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wl-tool-arrow {
    color: var(--wl-subtle);
    flex-shrink: 0;
    opacity: 0.6;
}

.wl-recent-empty {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--wl-radius);
    border: 1px dashed rgba(68, 64, 60, 0.45);
    color: var(--wl-subtle);
    font-size: 13px;
}

.wl-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--wl-border);
    background: rgba(20, 18, 16, 0.45);
    margin-bottom: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    color: inherit;
}

.wl-recent-item strong {
    display: block;
    font-size: 14px;
    color: var(--wl-text-warm);
    font-weight: 500;
}

.wl-recent-item span {
    font-size: 12px;
    color: var(--wl-subtle);
}

.wl-reserved {
    margin-top: 8px;
    padding: 16px;
    border-radius: var(--wl-radius);
    border: 1px dashed rgba(68, 64, 60, 0.35);
    text-align: center;
}

.wl-reserved p {
    margin: 0;
    font-size: 12px;
    color: var(--wl-subtle);
    line-height: 1.5;
}

.wl-breathe {
    animation: wlBreathe 4s ease-in-out infinite;
}

@keyframes wlBreathe {
    0%, 100% { box-shadow: 0 0 0 rgba(212, 165, 116, 0); }
    50% { box-shadow: 0 0 24px rgba(212, 165, 116, 0.08); }
}
