/* ===================== 龙族言灵表 ===================== */

.longyan-view {
    --ly-accent: #6ec8c0;
    --ly-accent-soft: rgba(110, 200, 192, 0.16);
    --ly-deep: rgba(8, 16, 22, 0.92);
    --ly-panel: rgba(12, 22, 30, 0.88);
    --ly-line: rgba(120, 180, 170, 0.22);
    --ly-text: #e8f4f2;
    --ly-muted: rgba(190, 220, 215, 0.68);
}

.longyan-scroll {
    height: 100%;
    overflow: auto;
    padding: 28px 20px 48px;
}

.longyan-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.longyan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.longyan-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ly-accent);
    opacity: 0.9;
}

.longyan-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    color: var(--ly-text);
    letter-spacing: 0.04em;
}

.longyan-sub {
    margin: 8px 0 0;
    color: var(--ly-muted);
    font-size: 14px;
    line-height: 1.5;
}

.longyan-meta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid var(--ly-line);
    border-radius: 999px;
    background: var(--ly-accent-soft);
    color: #c8ebe6;
    font-size: 12px;
}

.longyan-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.longyan-search {
    flex: 1 1 280px;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--ly-line);
    background: var(--ly-panel);
    color: var(--ly-text);
    font: inherit;
}

.longyan-search:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--ly-accent) 70%, white 10%);
    box-shadow: 0 0 0 3px var(--ly-accent-soft);
}

.longyan-count {
    color: var(--ly-muted);
    font-size: 13px;
    white-space: nowrap;
}

.longyan-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
    gap: 16px;
    min-height: min(68vh, 720px);
}

.longyan-panel {
    border: 1px solid var(--ly-line);
    border-radius: 16px;
    background:
        radial-gradient(80% 60% at 0% 0%, var(--ly-accent-soft), transparent 55%),
        var(--ly-deep);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.longyan-panel-head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(120, 180, 170, 0.14);
}

.longyan-panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #dff7f2;
}

.longyan-list {
    overflow: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.longyan-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.longyan-item:hover {
    background: rgba(110, 200, 192, 0.08);
    border-color: rgba(110, 200, 192, 0.18);
}

.longyan-item.is-active {
    background: rgba(110, 200, 192, 0.14);
    border-color: rgba(110, 200, 192, 0.36);
    box-shadow: inset 3px 0 0 var(--ly-accent);
}

.longyan-item-index {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ly-accent);
    opacity: 0.85;
    margin-top: 2px;
}

.longyan-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.longyan-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #f2fffc;
}

.longyan-item-preview {
    font-size: 12px;
    color: var(--ly-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.longyan-empty,
.longyan-detail-empty {
    margin: 0;
    padding: 28px 18px;
    color: var(--ly-muted);
    text-align: center;
    font-size: 14px;
}

.longyan-detail {
    overflow: auto;
    padding: 18px;
    min-height: 0;
}

.longyan-detail-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.longyan-detail-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--ly-accent);
}

.longyan-detail-title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    color: #f4fffc;
}

.longyan-detail-short {
    margin: 0;
    color: var(--ly-muted);
    font-size: 13px;
}

.longyan-detail-label {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: rgba(180, 230, 220, 0.78);
}

.longyan-detail-effect {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(110, 200, 192, 0.22);
    background: rgba(6, 14, 18, 0.55);
    color: #e9f7f4;
    font-size: 15px;
    line-height: 1.75;
}

@media (max-width: 860px) {
    .longyan-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .longyan-panel {
        max-height: none;
    }

    .longyan-list {
        max-height: 42vh;
    }
}
