/* 大王荣耀攻略页 — 沿用首页 token，卡片可扫可读 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    margin-left: 8px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--ink);
    background: var(--accent-soft);
}

.nav-link.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

.glory-hero {
    padding: 28px 0 8px;
    text-align: center;
}

.glory-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.glory-sub {
    color: var(--muted);
    font-size: 0.9375rem;
}

.glory-main {
    flex: 1;
    padding: 12px 0 56px;
}

.glory-toolbar {
    position: sticky;
    top: calc(var(--nav-h) + var(--safe-top));
    z-index: 40;
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.glory-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    min-height: 44px;
    margin-bottom: 10px;
}

.glory-search-icon {
    color: var(--muted);
    font-size: 1.1rem;
}

.glory-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    min-width: 0;
    height: 42px;
}

.glory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.glory-chips-el {
    margin-top: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.glory-chips-el .glory-chip {
    flex-shrink: 0;
}

.glory-chip {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.glory-chip:hover,
.glory-chip.is-on {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.glory-glossary {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 14px 4px;
    margin-bottom: 14px;
}

.glory-glossary summary {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 0;
    color: var(--ink-soft);
    list-style: none;
}

.glory-glossary summary::-webkit-details-marker {
    display: none;
}

.glory-glossary-body {
    display: grid;
    gap: 8px;
    padding-bottom: 12px;
}

.glory-gloss-item {
    font-size: 0.8125rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.glory-gloss-item strong {
    color: var(--ink);
    margin-right: 6px;
}

.glory-count {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.glory-stage {
    margin-bottom: 28px;
}

.glory-stage-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.glory-stage-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
}

.glory-stage-head p {
    font-size: 0.75rem;
    color: var(--muted);
}

.glory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.glory-card {
    background: var(--panel-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.glory-card.is-open {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.glory-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.glory-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--mark-bg);
    border: 1px solid var(--line);
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.glory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.glory-avatar-fallback {
    font-weight: 700;
    color: var(--accent);
}

.glory-card-meta {
    min-width: 0;
    flex: 1;
}

.glory-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.glory-card-title h3 {
    font-size: 0.975rem;
    font-weight: 700;
}

.glory-alias {
    font-size: 0.75rem;
    color: var(--muted);
}

.glory-preview {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glory-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.glory-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--mark-bg);
    color: var(--ink-soft);
}

.glory-badge.el {
    background: var(--accent-soft);
    color: var(--accent);
}

.glory-badge.hard {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.glory-badge.easy {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.glory-badge.shop {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.glory-badge.lineup {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

html[data-theme="dark"] .glory-badge.lineup {
    color: #7dd3fc;
}

.glory-lineup {
    margin: 12px 0 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.glory-lineup-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.glory-lineup-head h4 {
    font-size: 0.875rem;
    font-weight: 700;
}

.glory-src {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 999px;
}

.glory-plan + .glory-plan {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.glory-plan.is-fallback .glory-plan-label {
    color: #d97706;
}

.glory-plan-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}

.glory-members {
    display: grid;
    gap: 8px;
}

.glory-member {
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--mark-bg);
}

.glory-member-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.glory-member-top strong {
    font-size: 0.875rem;
}

.glory-member-meta {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
}

.glory-badge.role-support {
    background: var(--accent-soft);
    color: var(--accent);
}

.glory-badge.role-dps {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.glory-badge.role-drain {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

html[data-theme="dark"] .glory-badge.role-dps {
    color: #86efac;
}

html[data-theme="dark"] .glory-badge.role-drain {
    color: #fcd34d;
}

html[data-theme="dark"] .glory-badge.hard {
    color: #fca5a5;
}

html[data-theme="dark"] .glory-badge.easy {
    color: #86efac;
}

html[data-theme="dark"] .glory-badge.shop {
    color: #fcd34d;
}

.glory-chevron {
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.glory-card.is-open .glory-chevron {
    transform: rotate(180deg);
}

.glory-card-body {
    display: none;
    padding: 0 14px 16px;
    border-top: 1px solid var(--line);
}

.glory-card.is-open .glory-card-body {
    display: block;
}

.glory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    margin-bottom: 10px;
}

.glory-tab {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.glory-tab.is-on {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.glory-note,
.glory-tip,
.glory-review {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.glory-note strong,
.glory-tip strong,
.glory-review strong {
    color: var(--ink);
}

.glory-steps {
    margin: 0;
    padding-left: 1.2em;
    display: grid;
    gap: 8px;
}

.glory-steps li,
.glory-method-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--ink);
}

.glory-method-text {
    white-space: pre-wrap;
}

.mark-skill {
    color: #b45309;
    font-weight: 600;
}

.mark-pet {
    color: var(--accent);
    font-weight: 600;
}

html[data-theme="dark"] .mark-skill {
    color: #fbbf24;
}

.glory-evo-shop {
    font-size: 0.8125rem;
    color: var(--muted);
    padding: 8px 0;
}

.glory-credit {
    margin-top: 28px;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
}

.glory-empty {
    text-align: center;
    color: var(--muted);
    padding: 36px 12px;
}

@media (min-width: 720px) {
    .glory-grid {
        grid-template-columns: 1fr 1fr;
    }

    .glory-card[data-wide="1"] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .nav-links {
        margin-left: 0;
        flex: 0;
    }

    .nav-link {
        padding: 6px 8px;
    }

    .brand {
        max-width: 38%;
    }
}
