/* SoD 专精 BiS 页：样式对齐主站 specialization.vue（只读参考，不改主站） */
.specs-page {
    --gold: #ffc045;
    --gold2: #ffd76a;
    --text: #f4e7d0;
    --muted: #b79d7d;
    --line: rgba(255, 192, 69, 0.22);

    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 56px);
    margin: 0 !important;
    padding: 78px 2vw 48px;
    color: var(--text);
    background:
        radial-gradient(ellipse 80% 45% at 50% -8%, rgba(72, 42, 120, 0.18), transparent 58%),
        radial-gradient(ellipse 45% 30% at 90% 75%, rgba(170, 36, 9, 0.1), transparent 55%),
        linear-gradient(180deg, #0a0614 0%, #08060c 40%, #0d0808 100%);
    box-sizing: border-box;
}

.specs-shell {
    width: min(1600px, 100%);
    margin: 0 auto;
}

.specs-section-title,
.specs-page .index-title {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffe6ad !important;
    text-shadow: none !important;
    filter: none !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.specs-section-title::before,
.specs-page .index-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(to bottom, #ffd76a, #c7490f);
    box-shadow: 0 0 8px rgba(255, 192, 69, 0.45);
}

.specs-section-desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--muted);
}

.specs-page .content-maincenter {
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.specs-page .content-maincenter-left {
    width: calc(100% - 360px);
    min-width: 0;
}

.specs-page .content-maincenter-right {
    width: 340px;
    flex-shrink: 0;
}

.specs-panel,
.specs-page .content-maincenter-talent,
.specs-page .content-maincenter-item,
.specs-page .content-maincenter-character,
.specs-page .content-maincenter-right-item,
.specs-bottom-panel {
    position: relative;
    background: linear-gradient(160deg, rgba(74, 47, 28, 0.32), rgba(0, 0, 0, 0.42)) !important;
    border: 1px solid rgba(224, 184, 74, 0.32);
    border-radius: 10px !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 224, 160, 0.08);
    overflow: hidden;
}

.specs-panel::before,
.specs-page .content-maincenter-talent::before,
.specs-page .content-maincenter-item::before,
.specs-page .content-maincenter-character::before,
.specs-page .content-maincenter-right-item::before,
.specs-bottom-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 192, 69, 0.65),
        rgba(255, 224, 160, 0.85),
        rgba(255, 192, 69, 0.65),
        transparent
    );
    pointer-events: none;
}

.content-maincenter-specheader {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 18px 18px 16px;
    margin-bottom: 14px;
    position: relative;
}

.specs-header-info {
    flex: 1;
    min-width: 0;
    margin-left: 18px;
    padding-right: 150px;
}

.content-maincenter-specheader > img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border: 2px solid #ffc045;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(255, 192, 69, 0.25);
}

.content-maincenter-specheader h3 {
    margin: 0 0 8px;
    color: #fff2cf;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.5px;
}

.specs-update {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(224, 184, 74, 0.25);
    background: rgba(0, 0, 0, 0.28);
    color: var(--muted) !important;
    font-size: 12px !important;
    font-weight: 500;
    vertical-align: middle;
}

.content-maincenter-specheader p {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(201, 184, 150, 0.92);
}

.specs-header-meta {
    color: rgba(255, 224, 160, 0.78) !important;
}

.specs-header-meta em {
    margin: 0 8px;
    font-style: normal;
    color: rgba(255, 192, 69, 0.45);
}

.content-maincenter-specfilter {
    margin: 0 0 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.specs-native-select {
    width: 180px;
    height: 34px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(224, 184, 74, 0.28);
    border-radius: 6px;
    color: #ffe6ad;
    outline: none;
}

.specs-role-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 14px;
    width: fit-content;
    border: 1px solid rgba(224, 184, 74, 0.28);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.specs-role-tab {
    display: inline-block;
    padding: 8px 16px;
    color: rgba(255, 224, 170, 0.72) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
}

.specs-role-tab.active {
    color: #ffc045 !important;
    background: rgba(255, 192, 69, 0.12);
    box-shadow: inset 0 -2px 0 #ffc045;
}

.content-maincenter-character {
    margin-top: 0;
    margin-bottom: 14px;
    width: 100%;
    padding: 12px 14px !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}

.content-maincenter-character > div,
.content-maincenter-character > span {
    margin-left: 0 !important;
    color: #fff2cf;
}

.content-maincenter-character > span:first-child {
    margin-right: 6px;
    font-weight: 700;
    color: #ffe6ad;
}

.content-maincenter-character > div {
    background: linear-gradient(140deg, #fff1bd, #ffc045 55%, #e8a02f);
    overflow: visible;
    border-radius: 6px;
    cursor: default;
    color: #2a1604;
    box-shadow: 0 0 10px rgba(255, 192, 69, 0.25);
    position: relative;
    margin-right: 22px !important;
}

.content-maincenter-character > div span.character {
    float: none;
    display: inline-block;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
}

.content-maincenter-character > div.b {
    background: linear-gradient(140deg, #e9c8ff, #b45cf0 55%, #7a2fc0);
    color: #1f0a30;
}

.content-maincenter-character > div > em {
    position: absolute;
    right: -18px;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    top: -2px;
    color: rgba(255, 192, 69, 0.75);
}

.content-maincenter-talent,
.content-maincenter-item {
    margin-top: 0;
    margin-bottom: 14px;
    width: 100%;
    padding: 16px 18px 18px !important;
    box-sizing: border-box;
}

.content-maincenter-talent .content-maincenter-talent-spec {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
    align-items: center;
    position: relative;
    gap: 10px;
}

.specs-talent-head {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.specs-talent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.specs-talent-actions button,
.specs-talent-actions .specs-btn-link {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 192, 69, 0.35) !important;
    background: rgba(42, 28, 27, 0.92) !important;
    color: #ffc045 !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
}

.specs-talent-actions .btn-to-specs,
.specs-talent-actions a.btn-to-specs {
    color: #2a1604 !important;
    border-color: rgba(255, 192, 69, 0.7) !important;
    background: linear-gradient(140deg, #fff1bd, #ffc045 55%, #e8a02f) !important;
}

.content-maincenter-talent .content-maincenter-talent-spec > img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(255, 192, 69, 0.3);
    flex-shrink: 0;
}

.specs-talent-head > h3 {
    color: #ffe6ad !important;
    font-weight: 700;
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0;
    flex: 1;
    min-width: 0;
}

.specs-talent-body {
    padding: 4px 0 2px;
}

.specs-talent-string {
    font-size: 28px;
    font-weight: 800;
    color: #fff2cf;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.specs-talent-board {
    margin-top: 14px;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(224, 184, 74, 0.22);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.specs-talent-embed-wrap {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    line-height: 0;
}

.specs-talent-embed {
    display: block;
    width: 100%;
    height: 200px;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.specs-talent-runes-col {
    flex: 0 0 245px;
    width: 245px;
    box-sizing: border-box;
    padding: 10px 12px 12px;
    border-radius: 0;
    border: 0;
    border-left: 1px solid rgba(224, 184, 74, 0.18);
    background: rgba(0, 0, 0, 0.22);
    line-height: 1.3;
}

.specs-talent-runes-col h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #ffe6ad;
}

.specs-talent-runes-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.specs-talent-rune-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(224, 184, 74, 0.14);
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

a.specs-talent-rune-item:hover {
    border-color: rgba(255, 192, 69, 0.45);
    background: rgba(40, 28, 18, 0.95);
}

a.specs-talent-rune-item:hover .specs-talent-rune-text strong {
    color: #ffc045;
}

.specs-talent-rune-item img,
.specs-talent-rune-item .specs-rune-fallback {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
}

.specs-talent-rune-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.specs-talent-rune-text em {
    font-style: normal;
    font-size: 11px;
    color: #a89a78;
}

.specs-talent-rune-text strong {
    font-size: 12px;
    font-weight: 600;
    color: #f0e0b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 185px;
}

.specs-runes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    line-height: 1.3;
}

.specs-rune {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(224, 184, 74, 0.18);
    font-size: 12px;
    color: #e8d5a8;
    text-decoration: none !important;
}

a.specs-rune:hover {
    border-color: rgba(255, 192, 69, 0.45);
    color: #ffc045;
}

.specs-rune img,
.specs-rune-fallback {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
}

.specs-rune-fallback {
    display: inline-block;
    background: rgba(255, 192, 69, 0.15);
    border: 1px solid rgba(224, 184, 74, 0.25);
}

.content-maincenter-item > h3 {
    margin-bottom: 4px;
}

.content-maincenter-item > p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.content-maincenter-item-box {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.content-maincenter-item-box > div {
    width: calc(50% - 4px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(224, 184, 74, 0.14);
    border-radius: 8px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

.content-maincenter-item-box > div.specs-gear-slot-empty {
    background: transparent !important;
    border-color: transparent;
    min-height: 58px;
    visibility: hidden;
    pointer-events: none;
}

.content-maincenter-item-box > div.specs-gear-slot-placeholder {
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(224, 184, 74, 0.14);
}

.content-maincenter-item-box .specs-gear-slot-ph,
.content-maincenter-item-box .content-talent-item-nodata {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 10px;
    box-sizing: border-box;
}

.content-maincenter-item-box .specs-gear-slot-ph-r {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.content-maincenter-item-box .content-talent-item-nodata img {
    width: 43px;
    height: 43px;
    background: none;
    border: 2px solid #717171;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.content-maincenter-item-box .content-talent-item-nodata p {
    margin: 0 0 0 10px;
    color: #cddcfe;
    font-size: 14px;
    line-height: 43px;
}

.content-maincenter-item-box .specs-gear-slot-ph-r p {
    margin: 0 10px 0 0;
    text-align: right;
}

.content-maincenter-item-box .specs-gear-slot-name {
    margin: 0 0 2px !important;
    color: #a89f93 !important;
    font-size: 12px !important;
}

.content-maincenter-item-box > div > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 10px;
    min-height: 58px;
    height: auto;
    box-sizing: border-box;
}

.content-maincenter-item-info {
    width: 40%;
    text-align: right;
    color: var(--muted);
    font-size: 12px;
}

.content-maincenter-item-info h5 {
    margin: 0 0 2px;
    color: #ffe6ad;
    font-size: 13px;
}

.content-maincenter-item-info p,
.content-maincenter-item-info p span {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
    line-height: 1.35;
}

.content-maincenter-item-info p span {
    color: rgba(220, 220, 220, 0.72);
    font-size: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.content-maincenter-item-box > div .global-item-plus {
    width: 58%;
    max-width: 300px;
}

.content-maincenter-item-box-itemr .global-item-plus {
    justify-content: right;
    flex-direction: row-reverse;
}

.content-maincenter-item-box .global-item a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.specs-page .content-maincenter-right-item {
    width: 100%;
    padding: 14px !important;
    min-height: auto;
    margin-bottom: 14px !important;
    box-sizing: border-box;
}

.content-maincenter-right-trinkets ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.content-maincenter-right-trinkets ul li {
    margin-top: 8px;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(224, 184, 74, 0.1);
    background: rgba(0, 0, 0, 0.22);
}

.content-maincenter-right-trinkets ul li > span {
    display: inline-block;
    width: 28px;
    color: #d6c9af;
    font-weight: 700;
    font-size: 15px;
    height: 35px;
    line-height: 35px;
    text-align: left;
    flex-shrink: 0;
}

.content-maincenter-right-trinkets ul li .specs-trinkets-item {
    flex: 1;
    min-width: 0;
}

.content-maincenter-right-trinkets ul li .specs-trinkets-item a span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-maincenter-right-trinkets ul li em {
    font-size: 13px;
    height: 35px;
    line-height: 35px;
    color: var(--muted);
    font-style: normal;
    flex-shrink: 0;
    margin-left: 6px;
}

.content-maincenter-right-trinkets ul li .specs-trinkets-top {
    color: #ffc045 !important;
}

.specs-link-dressingroom {
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(224, 184, 74, 0.28);
    text-align: center;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.specs-link-dressingroom:hover {
    border-color: rgba(255, 192, 69, 0.55);
    box-shadow: 0 0 12px rgba(255, 192, 69, 0.25);
}

.specs-link-dressingroom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    text-decoration: none !important;
}

.specs-link-dressingroom img {
    width: 78px;
    max-height: calc(100% - 22px);
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.specs-link-dressingroom p {
    margin: 6px 0 0 !important;
    color: #ffe6ad !important;
    font-size: 12px !important;
}

.specs-bottom-panel {
    margin-top: 16px;
    padding: 16px 18px 18px;
}

.specs-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.specs-enchant-panel,
.specs-consumable-panel {
    margin-top: 16px;
}

.specs-enchant-plain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e8dcc0;
    font-size: 13px;
}

.specs-slot-card {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(224, 184, 74, 0.14);
    border-radius: 8px;
    padding: 10px 12px;
}

.specs-slot-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(224, 184, 74, 0.16);
}

.specs-slot-head strong {
    color: #ffe6ad;
    font-size: 13px;
}

.specs-slot-head span {
    color: var(--muted);
    font-size: 11px;
}

.specs-slot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.specs-slot-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(224, 184, 74, 0.08);
}

.specs-slot-list li:last-child {
    border-bottom: none;
}

.specs-slot-list .global-item {
    flex: 1;
    min-width: 0;
}

.specs-slot-list .global-wowimg-small,
.specs-slot-list .global-wowimg-small img,
.specs-page .content-maincenter-right-trinkets .global-wowimg-small,
.specs-page .content-maincenter-right-trinkets .global-wowimg-small img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
}

.specs-slot-list .global-item a span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.specs-slot-list em,
.specs-slot-meta {
    flex: 0 0 44%;
    max-width: 44%;
    text-align: right;
    font-style: normal;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.specs-slot-level {
    color: #ffe6ad;
    font-weight: 600;
    font-size: 12px;
}

.specs-slot-source {
    color: rgba(220, 220, 220, 0.72);
    font-size: 10px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.specs-empty {
    padding: 24px 8px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.specs-empty a {
    color: var(--gold);
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .specs-page .content-maincenter {
        flex-direction: column;
    }

    .specs-page .content-maincenter-left,
    .specs-page .content-maincenter-right {
        width: 100%;
    }

    .specs-slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .specs-page {
        padding: 72px 12px 36px;
    }

    .specs-header-info {
        padding-right: 0;
    }

    .specs-link-dressingroom {
        display: none;
    }

    .content-maincenter-item-box > div {
        width: 100%;
    }

    .specs-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
