/* 其他信息页面样式 */

.other-layout {
    display: flex;
    min-height: calc(100vh - 12.5rem);
}

.other-sidebar {
    width: 10rem;
    min-width: 10rem;
    max-width: 10rem;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 0.0625rem solid var(--glass-border);
    position: sticky;
    top: 3.75rem;
    height: calc(100vh - 5rem);
    overflow-y: auto;
}

.other-sidebar-header {
    display: none;
}

.other-nav {
    padding: 0.8rem;
}

.other-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.other-menu-link {
    width: 100%;
    display: block;
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: 0.625rem;
    border: 0.0625rem solid transparent;
    text-decoration: none;
    color: var(--text-secondary);
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.other-menu-link:hover {
    color: var(--text-primary);
    border-color: var(--glass-border);
    background: rgba(99, 102, 241, 0.12);
}

.other-menu-link.active {
    color: var(--text-primary);
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-glow);
}

.other-content {
    flex: 1;
    padding: 1rem 2rem;
    min-width: 0;
}

.other-detail-panel {
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    background: var(--bg-card);
    min-height: 32.5rem;
    min-width: 0;
}

.other-detail {
    display: none;
    padding: 1rem 1.2rem;
}

.other-detail.active {
    display: block;
}

.other-detail h3 {
    margin: 0 0 0.8rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.other-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.98rem;
}

.install-guide {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.install-step {
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.install-step-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.08rem;
}

.install-step ul.other-text {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.install-step ul.other-text li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.install-step ul.other-text li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

.install-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.2rem;
}

.install-figure {
    margin: 0;
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    overflow: hidden;
    background: rgba(15, 15, 35, 0.6);
}

.install-image {
    display: block;
    width: 100%;
    height: auto;
}

.install-caption {
    margin: 0;
    padding: 0.55rem 0.7rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.troop-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.magic-toolbar-sticky {
    position: sticky;
    top: 4.5rem;
    z-index: 20;
    padding: 0.4rem 0 0.55rem;
    background: rgba(14, 14, 40, 0.96);
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
}

.troop-toolbar-left {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.troop-toolbar-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.troop-race-select {
    padding: 0.45rem 0.7rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid var(--glass-border);
    background: rgba(30, 30, 70, 0.92);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.troop-race-select option {
    background: #1a1a3e;
    color: #ffffff;
}

.magic-inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    margin-left: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    white-space: nowrap;
    user-select: none;
}

.magic-inline-toggle input {
    margin: 0;
    accent-color: #84cc16;
}

.troop-scroll-btn {
    padding: 0.48rem 0.85rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.35));
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.troop-scroll-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.25);
}

.troop-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    min-width: 0;
}

.troop-page-title {
    margin: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.troop-skill-panel {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
    margin-left: 0;
    padding: 0.7rem 0.95rem;
    border-radius: 0.875rem;
    border: 0.125rem dashed rgba(56, 189, 248, 0.65);
    background: rgba(35, 35, 85, 0.35);
}

.troop-skill-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.55rem;
}

.troop-skill-panel-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.troop-skill-current {
    color: var(--text-secondary);
    font-size: 0.88rem;
    white-space: nowrap;
}

.troop-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.troop-skill-tag {
    padding: 0.38rem 0.72rem;
    border-radius: 62.4375rem;
    border: 0.0625rem solid rgba(139, 92, 246, 0.55);
    background: rgba(99, 102, 241, 0.16);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: var(--transition);
}

.troop-skill-tag:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.28);
    transform: translateY(-0.0625rem);
}

/* 原始技能样式 */
.troop-skill-original {
    border: 0.0625rem solid rgba(139, 92, 246, 0.55);
    background: rgba(99, 102, 241, 0.16);
}

.troop-skill-original:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.28);
}

/* 潜能特技样式（可点击） */
.troop-skill-potential {
    border: 0.0625rem solid rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}

.troop-skill-potential:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.28);
    color: #fcd34d;
}

.troop-skill-potential.troop-skill-bloodrage-1 {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.troop-skill-potential.troop-skill-bloodrage-1:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.troop-skill-potential.troop-skill-bloodrage-2 {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.troop-skill-potential.troop-skill-bloodrage-2:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.32);
    color: #fde68a;
}

.troop-skill-potential.troop-skill-bloodrage-3 {
    border-color: rgba(96, 165, 250, 0.62);
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.troop-skill-potential.troop-skill-bloodrage-3:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.3);
    color: #dbeafe;
}

/* 属性加成样式（不可点击） */
.troop-skill-bonus {
    border: 0.0625rem solid rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    cursor: default;
}

.troop-skill-bonus:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.28);
    color: #86efac;
    transform: none;
}

.troop-skill-bonus.troop-skill-bloodrage-1 {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

.troop-skill-bonus.troop-skill-bloodrage-1:hover {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(239, 68, 68, 0.22);
    color: #fecaca;
}

.troop-skill-bonus.troop-skill-bloodrage-2 {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

.troop-skill-bonus.troop-skill-bloodrage-2:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(245, 158, 11, 0.26);
    color: #fde68a;
}

.troop-skill-bonus.troop-skill-bloodrage-3 {
    border-color: rgba(96, 165, 250, 0.62);
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.troop-skill-bonus.troop-skill-bloodrage-3:hover {
    border-color: rgba(96, 165, 250, 0.62);
    background: rgba(59, 130, 246, 0.24);
    color: #dbeafe;
}

.troop-skill-empty {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.troop-list-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.troop-table-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 35rem;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.troop-table-wrapper::-webkit-scrollbar {
    height: 0.75rem;
    width: 0.625rem;
}

.troop-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.6);
    border-radius: 0.625rem;
}

.troop-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.troop-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

.troop-table th,
.troop-table td {
    border-bottom: 0.0625rem solid var(--glass-border);
    border-right: 0.0625rem solid var(--glass-border);
    padding: 0.45rem 0.55rem;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
    white-space: nowrap;
    background: rgba(10, 10, 30, 0.55);
}

.troop-table th {
    position: sticky;
    top: 0;
    background: rgba(35, 35, 75, 0.95);
    color: var(--text-primary);
    z-index: 2;
}

.troop-table .is-sticky-col {
    position: sticky;
    z-index: 3;
}

.troop-table th.is-sticky-col {
    z-index: 5;
    background: rgba(35, 35, 75, 0.98);
}

.troop-table td.is-sticky-col {
    background: rgba(20, 20, 50, 0.98);
}

.troop-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.troop-table tbody tr:hover td {
    background: rgba(40, 40, 90, 0.82);
}

.troop-table tbody tr.is-selected td {
    background: rgba(75, 85, 180, 0.35);
}

.troop-table tbody tr.is-selected td.is-sticky-col {
    background: rgba(75, 85, 180, 0.48);
}

.troop-table .is-sticky-col-1 {
    left: 0;
    min-width: 2.5rem;
    max-width: 2.5rem;
    width: 2.5rem;
}

.troop-table .is-sticky-col-2 {
    left: 2.5rem;
    min-width: 3.875rem;
    max-width: 3.875rem;
    width: 3.875rem;
}

.troop-table .is-sticky-col-3 {
    left: 6.375rem;
    min-width: 12rem;
    max-width: 12rem;
    width: 12rem;
}

.special-skill-table {
    width: 100%;
    min-width: 61.25rem;
    table-layout: fixed;
}

.special-skill-table .is-sticky-col-1 {
    min-width: 8rem;
    max-width: 8rem;
    width: 8rem;
}

.special-skill-table .special-skill-col-1 {
    width: 8rem;
}

.special-skill-table .special-skill-col-2 {
    width: 60%;
}

.special-skill-table .special-skill-col-3 {
    width: 40%;
}

.special-skill-table td.special-skill-col-2,
.special-skill-table td.special-skill-col-3 {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.troop-table-meta {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(139, 92, 246, 0.5);
    background: rgba(99, 102, 241, 0.2);
}

.troop-scroll-tip {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.troop-skill-popover[hidden] {
    display: none;
}

.troop-skill-popover {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    pointer-events: none;
}

.troop-skill-popover-card {
    width: min(35rem, calc(100vw - 1.5rem));
    max-height: min(68vh, 32.5rem);
    overflow: auto;
    margin: 0;
    border: 0.0625rem solid rgba(148, 163, 184, 0.38);
    background:
        linear-gradient(160deg, rgba(32, 41, 63, 0.97) 0%, rgba(24, 32, 52, 0.98) 52%, rgba(17, 22, 39, 0.99) 100%);
    box-shadow:
        0 1.125rem 2.625rem rgba(2, 6, 23, 0.5),
        0 0 0 0.0625rem rgba(255, 255, 255, 0.03) inset;
    padding: 1.25rem 1.45rem;
    backdrop-filter: blur(0.0938rem);
    pointer-events: auto;
}

.troop-skill-popover-title {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1.08rem;
}

.troop-skill-popover-subtitle {
    margin: 0.6rem 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.troop-skill-popover-content {
    margin-top: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 0.96rem;
    white-space: pre-wrap;
}

@media (max-width: 80rem) {
    .troop-header-row {
        flex-wrap: wrap;
    }

    .troop-page-title {
        white-space: nowrap;
    }

    .troop-toolbar {
        flex-wrap: wrap;
    }

    .troop-toolbar-left {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }


    .troop-skill-panel {
        flex-basis: 100%;
        margin-left: 0;
        max-width: 100%;
    }
}

.magic-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.magic-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    scroll-margin-top: 9.375rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.magic-table:hover {
    box-shadow: 0 0 0 0.0938rem rgba(129, 140, 248, 0.35);
}

.magic-table.is-selected {
    box-shadow: 0 0 0 0.125rem rgba(99, 102, 241, 0.8);
}

.magic-table th,
.magic-table td {
    border: 0.0625rem solid var(--glass-border);
    padding: 0.38rem 0.5rem;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(20, 20, 52, 0.82);
}

.magic-table th:nth-child(1),
.magic-table td:nth-child(1) {
    width: 9%;
    min-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.magic-table th:nth-child(2),
.magic-table td:nth-child(2) {
    width: 15%;
    min-width: 6.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.magic-table th:nth-child(3),
.magic-table td:nth-child(3) {
    width: 11%;
    min-width: 5rem;
}

.magic-table th:nth-child(4),
.magic-table td:nth-child(4) {
    width: calc(65% / 7);
    min-width: 3.125rem;
}

.magic-table th:nth-child(5),
.magic-table td:nth-child(5) {
    width: calc(65% / 7);
    min-width: 3.125rem;
}

.magic-table th:nth-child(6),
.magic-table td:nth-child(6) {
    width: calc(65% / 7);
    min-width: 3.125rem;
}

.magic-table th:nth-child(7),
.magic-table td:nth-child(7) {
    width: calc(65% / 7);
    min-width: 3.125rem;
}

.magic-table th:nth-child(8),
.magic-table td:nth-child(8) {
    width: calc(65% / 7);
    min-width: 3.125rem;
}

.magic-table th:nth-child(9),
.magic-table td:nth-child(9) {
    width: calc(65% / 7);
    min-width: 3.125rem;
}

.magic-table th:nth-child(10),
.magic-table td:nth-child(10) {
    width: calc(65% / 7);
    min-width: 3.125rem;
}

.magic-table td.magic-console-value {
    letter-spacing: 0;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
}

.magic-table td.magic-effect-value {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.45;
}

.magic-table .magic-row-title th {
    background: rgba(132, 204, 22, 0.62);
    color: #f4ffe3;
    font-weight: 700;
}

.magic-table .magic-row-body td {
    background: rgba(174, 220, 181, 0.18);
}

.magic-table .magic-divider-col {
    border-right: 0.125rem solid rgba(255, 255, 255, 0.28);
}

.mana-power-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mana-power-intro {
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-left: 0.25rem solid var(--primary-color);
    border-radius: 0.5rem;
}

.mana-power-formulas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1rem;
}

.formula-card {
    padding: 1.2rem;
    background: rgba(20, 20, 52, 0.6);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.formula-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0.25rem 0.75rem rgba(99, 102, 241, 0.2);
}

.formula-title {
    margin: 0 0 0.8rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.formula-content {
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
    overflow-x: auto;
}

.formula-code {
    color: #84cc16;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    white-space: nowrap;
}

.formula-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.formula-features li {
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.formula-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.mana-power-comparison,
.mana-power-scenarios,
.mana-power-summary {
    padding: 1.2rem;
    background: rgba(20, 20, 52, 0.4);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.75rem;
}

.comparison-title,
.scenarios-title,
.summary-title {
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.comparison-table-wrapper {
    overflow-x: visible;
    border-radius: 0.5rem;
}

.comparison-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    border: 0.0625rem solid var(--glass-border);
    padding: 0.45rem 0.3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.comparison-table th {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.comparison-col-count {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-col-original {
    background: rgba(59, 130, 246, 0.08);
}

.comparison-col-revised {
    background: rgba(132, 204, 22, 0.1);
}

.comparison-head-original {
    background: rgba(59, 130, 246, 0.28) !important;
    color: #dbeafe !important;
}

.comparison-head-revised {
    background: rgba(132, 204, 22, 0.28) !important;
    color: #ecfccb !important;
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

.scenario-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.scenario-item {
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 0.1875rem solid #84cc16;
    border-radius: 0.375rem;
}

.scenario-title {
    margin: 0 0 0.4rem;
    color: #84cc16;
    font-size: 1rem;
    font-weight: 600;
}

.scenario-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.summary-list li {
    padding: 0.6rem 0.8rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-list li strong {
    color: var(--primary-color);
}

.external-links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.external-link-item {
    width: 100%;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.external-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border-color: var(--primary-color);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 1rem rgba(99, 102, 241, 0.3);
}

.external-link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.external-link-title {
    flex: 1;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.external-link-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.external-link:hover .external-link-arrow {
    transform: translateX(0.25rem);
}

/* FAQ折叠样式 */
.faq-item {
    display: flex;
    flex-direction: column;
}

.faq-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-toggle:hover {
    color: var(--primary-color);
}

.faq-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-content {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.6rem;
    animation: faqSlideDown 0.3s ease;
}

.faq-item.active .faq-content {
    display: flex;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-0.625rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 宝屋列表样式 */
.treasure-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.treasure-item {
    position: relative;
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: rgba(99, 102, 241, 0.15);
    border: 0.0625rem solid rgba(139, 92, 246, 0.4);
    border-radius: 0.375rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.treasure-item:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(99, 102, 241, 0.3);
}

.install-step ul.other-text.treasure-list {
    flex-direction: row;
    flex-wrap: wrap;
}

.install-step ul.other-text.treasure-list li {
    display: inline-flex;
    align-items: center;
    padding-left: 0;
}

.install-step ul.other-text.treasure-list li::before {
    content: '';
}

@media (max-width: 56.25rem) {
    .other-layout {
        flex-direction: column;
    }

    .other-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 0.0625rem solid var(--glass-border);
    }

    .other-content {
        padding: 1rem;
    }

    .install-image-grid {
        grid-template-columns: 1fr;
    }

    .troop-table {
        min-width: 61.25rem;
    }

    .mana-power-formulas {
        grid-template-columns: 1fr;
    }
}
