/* 组合账本 · "丹炉夜色" layer. Scoped to html.ly-zuhe; loaded after zuhe.css / detail.css. */
html.ly-zuhe body { font-family: var(--ly-font); color: var(--ly-text); }
/* The original .scene image remains visible behind the ledger. */
html.ly-zuhe .shell { position: relative; z-index: 2; }
html.ly-zuhe .rail { z-index: 30; }
html.ly-zuhe :is(.toast, .lightbox) { position: fixed; z-index: 50; }
html.ly-zuhe .auth-gate { position: fixed; z-index: 40; }

html.ly-zuhe .rail {
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.72), rgba(5, 8, 17, 0.62));
    border-right: 1px solid var(--ly-line);
    -webkit-backdrop-filter: saturate(150%) blur(24px);
    backdrop-filter: saturate(150%) blur(24px);
}
html.ly-zuhe .brand {
    background: radial-gradient(circle at 30% 25%, #fbe3b4, #e2a85c 55%, #9e6a2c);
    color: #2a1806;
    font-family: var(--ly-serif);
    border-radius: 14px;
    box-shadow: 0 10px 30px -8px rgba(233, 160, 80, 0.75);
}
html.ly-zuhe .rail nav a { border-radius: 14px; color: var(--ly-muted); transition: color 0.3s, background 0.3s; }
html.ly-zuhe .rail nav a:hover { color: var(--ly-text); background: rgba(255, 255, 255, 0.04); }
html.ly-zuhe .rail nav a.active { color: var(--ly-gold-2); background: linear-gradient(180deg, rgba(233, 185, 110, 0.14), rgba(233, 185, 110, 0.05)); }
html.ly-zuhe .rail-foot { color: var(--ly-muted); }

html.ly-zuhe :is(.eyebrow, .section-index) { color: var(--ly-gold); letter-spacing: 0.4em; font-weight: 600; }
html.ly-zuhe .hero h1 {
    font-family: var(--ly-serif);
    font-weight: 600;
    letter-spacing: 0.04em;
    background: linear-gradient(100deg, #fff4dc 0%, #f6d7a0 34%, #e2a05a 66%, #f6d7a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lyRise 1.1s var(--ly-ease) both;
}
html.ly-zuhe .subtitle { color: var(--ly-text-2); }
html.ly-zuhe .mode-switch { border-radius: 999px; border-color: var(--ly-line); background: rgba(255, 255, 255, 0.03); }
html.ly-zuhe .mode-switch a { border-radius: 999px; color: var(--ly-muted); }
html.ly-zuhe .mode-switch a.selected { color: #1d1205; background: linear-gradient(135deg, #f8dcaa, #e9b96e 52%, #c98f45); }

html.ly-zuhe .summary article,
html.ly-zuhe :is(.ledger-panel, .rule-card, .auth-gate > div) {
    border-radius: 22px;
    border: 1px solid rgba(196, 214, 238, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006)), rgba(5, 9, 19, 0.55);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    backdrop-filter: saturate(140%) blur(18px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset, 0 24px 50px -30px rgba(0, 0, 0, 0.7);
}
html.ly-zuhe .summary article { transition: transform 0.5s var(--ly-ease), border-color 0.3s; }
html.ly-zuhe .summary article:hover { transform: translateY(-3px); border-color: var(--ly-line-gold); }
html.ly-zuhe .summary strong { font-family: var(--ly-num); letter-spacing: 0.01em; }
html.ly-zuhe .summary .net-card { border-color: var(--ly-line-gold); background: linear-gradient(160deg, rgba(233, 185, 110, 0.16), rgba(233, 185, 110, 0.03)), rgba(5, 9, 19, 0.55); }
html.ly-zuhe .summary .net-card strong { color: var(--ly-gold-2); }
html.ly-zuhe :is(.panel-head h2, .rule-card h2, .auth-gate h2) { font-family: var(--ly-serif); letter-spacing: 0.06em; }
html.ly-zuhe .user-row { border-color: var(--ly-line); transition: background 0.3s; }
html.ly-zuhe .user-row:hover { background: rgba(233, 185, 110, 0.03); }
html.ly-zuhe .column-head { color: var(--ly-muted); letter-spacing: 0.16em; }
html.ly-zuhe :is(input, .composer, .date-tools) { border-radius: 12px; border-color: rgba(196, 214, 238, 0.13); background: rgba(3, 6, 14, 0.5); }
html.ly-zuhe :is(input, .composer):focus { border-color: rgba(233, 185, 110, 0.6); box-shadow: 0 0 0 3px rgba(233, 185, 110, 0.1); outline: none; }
html.ly-zuhe button {
    border-radius: 999px;
    border-color: rgba(196, 214, 238, 0.14);
    background: rgba(255, 255, 255, 0.035);
    letter-spacing: 0.04em;
    transition: transform 0.45s var(--ly-ease), background 0.3s, border-color 0.3s, box-shadow 0.4s var(--ly-ease);
}
html.ly-zuhe button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--ly-line-gold); background: rgba(233, 185, 110, 0.08); }
html.ly-zuhe button.primary { border-color: transparent; color: #1d1205; background: linear-gradient(135deg, #f8dcaa, #e9b96e 52%, #c98f45); box-shadow: 0 12px 30px -12px rgba(233, 160, 80, 0.7); }
html.ly-zuhe button.primary:hover:not(:disabled) { color: #1d1205; background: linear-gradient(135deg, #fde6bd, #efc27c 52%, #d39a50); }
html.ly-zuhe .toast { border-radius: 999px; border: 1px solid var(--ly-line-gold); background: rgba(9, 14, 28, 0.9); color: var(--ly-gold-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
@media (max-width: 620px) {
    html.ly-zuhe .rail { border: 1px solid rgba(196, 214, 238, 0.14); border-radius: 22px; }
}
