/* ===================== 物品锻造 ===================== */
.forging-view {
    font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.forging-portal {
    border: 1px solid rgba(120, 200, 255, 0.35);
    background:
        linear-gradient(135deg, rgba(40, 100, 180, 0.18), rgba(20, 50, 100, 0.12)),
        rgba(255, 255, 255, 0.04);
}

.forging-portal:hover {
    border-color: rgba(140, 220, 255, 0.62);
    box-shadow: 0 0 28px rgba(80, 160, 255, 0.22);
}

.forging-portal .library-portal-glow {
    background: radial-gradient(circle, rgba(80, 160, 255, 0.2), transparent 60%);
}

.forging-portal .library-portal-icon {
    background: rgba(40, 100, 180, 0.28);
    color: #a8d8ff;
    box-shadow: 0 0 16px rgba(80, 160, 255, 0.28);
}

.forging-portal .library-portal-title {
    color: #cce8ff;
}

body.forging-mode #particle-bg {
    background:
        radial-gradient(ellipse at 22% 16%, rgba(50, 110, 200, 0.28), transparent 48%),
        radial-gradient(ellipse at 78% 84%, rgba(30, 70, 140, 0.22), transparent 42%),
        #000;
}

.forging-view:not(.active) {
    display: none !important;
}

.forging-view.active {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: transparent;
    overflow: hidden;
}

.forging-scroll {
    height: 100%;
    padding: 24px 20px 48px;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 190, 255, 0.4) transparent;
}

.forging-scroll::-webkit-scrollbar {
    width: 8px;
}

.forging-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 190, 255, 0.35);
}

.forging-shell {
    max-width: 1440px;
    margin: 0 auto;
}

.forging-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.forging-header-main {
    flex: 1;
    min-width: 0;
}

.forging-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(150, 210, 255, 0.72);
}

.forging-title {
    margin: 0 0 8px;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f4faff;
    text-shadow: 0 0 32px rgba(120, 190, 255, 0.22);
}

.forging-sub {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(200, 225, 255, 0.76);
    max-width: 680px;
    line-height: 1.65;
}

.forging-header-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.forging-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 130, 0.22);
    background: rgba(255, 190, 100, 0.08);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 228, 180, 0.92);
}

.forging-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .forging-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.forging-stat {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(120, 190, 255, 0.18);
    background: rgba(8, 18, 36, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.forging-stat-total {
    border-color: rgba(120, 200, 255, 0.32);
    background: linear-gradient(135deg, rgba(40, 90, 160, 0.28), rgba(12, 24, 48, 0.55));
}

.forging-stat-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(170, 210, 245, 0.72);
}

.forging-stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #eef8ff;
    line-height: 1.2;
}

.forging-stat-quality--legendary { color: #e8d4ff; }
.forging-stat-quality--epic { color: #ffd8b8; }
.forging-stat-quality--supreme { color: #fff0c8; }

.forging-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 18px;
    align-items: start;
}

@media (max-width: 1100px) {
    .forging-layout {
        grid-template-columns: 1fr;
    }
}

.forging-panel {
    border: 1px solid rgba(120, 190, 255, 0.22);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(14, 28, 52, 0.82), rgba(8, 16, 32, 0.78));
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.32);
    padding: 16px;
}

.forging-panel-workbench {
    position: sticky;
    top: 12px;
}

@media (max-width: 1100px) {
    .forging-panel-workbench {
        position: static;
    }
}

.forging-panel-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}

.forging-panel-head-text {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.forging-panel-meta {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(160, 200, 240, 0.68);
    font-variant-numeric: tabular-nums;
}

.forging-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forging-toolbar .wiki-custom-select {
    flex: 0 0 auto;
    min-width: 118px;
}

.forging-panel-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #e8f4ff;
}

.forging-search,
.forging-filter,
.forging-field {
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
}

.forging-search {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    color: #eef6ff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.forging-search:focus,
.forging-filter:focus,
.forging-field:focus {
    outline: none;
    border-color: rgba(140, 210, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(80, 160, 255, 0.14);
}

.forging-filter {
    min-width: 118px;
    cursor: pointer;
}

.forging-panel-catalog {
    min-height: min(78vh, 820px);
}

.forging-catalog-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 14px;
    min-height: min(70vh, 740px);
}

@media (max-width: 1100px) {
    .forging-catalog-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.forging-sidebar-label {
    margin: 0 0 8px;
    padding-left: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(150, 195, 240, 0.58);
}

.forging-catalog-sidebar,
.forging-detail-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.forging-detail-wrap {
    min-width: 0;
}

.forging-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    max-height: min(70vh, 740px);
    overflow-y: auto;
    padding: 2px 6px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 190, 255, 0.35) transparent;
}

.forging-catalog-list::-webkit-scrollbar {
    width: 6px;
}

.forging-catalog-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 190, 255, 0.3);
}

.forging-catalog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(100, 170, 240, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.forging-catalog-item:hover {
    border-color: rgba(120, 190, 255, 0.32);
    background: rgba(255, 255, 255, 0.045);
}

.forging-catalog-item.active {
    border-color: rgba(120, 200, 255, 0.5);
    background: linear-gradient(90deg, rgba(50, 110, 180, 0.28), rgba(30, 70, 130, 0.14));
    box-shadow: inset 3px 0 0 rgba(120, 200, 255, 0.75);
}

.forging-catalog-item--excluded {
    opacity: 0.72;
}

.forging-catalog-thumb {
    width: 44px;
    height: 44px;
    border-radius: 0;
    object-fit: contain;
    flex-shrink: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.38));
}

.forging-catalog-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #a8d4ff;
}

.forging-catalog-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forging-catalog-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f3f8ff;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forging-catalog-item-meta {
    font-size: 0.74rem;
    font-weight: 400;
    color: rgba(170, 210, 245, 0.72);
}

.forging-catalog-badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(80, 180, 120, 0.25);
    color: #a8f0c8;
}

.forging-material-detail {
    flex: 1;
    max-height: min(70vh, 740px);
    overflow-y: auto;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(120, 190, 255, 0.14);
    background: rgba(0, 0, 0, 0.22);
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 190, 255, 0.35) transparent;
}

.forging-workbench-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}

.forging-workbench-sub {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: rgba(170, 205, 240, 0.68);
    line-height: 1.5;
}

.forging-workbench-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.forging-block {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(120, 190, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
}

.forging-block-preview {
    background:
        linear-gradient(180deg, rgba(20, 40, 70, 0.28), rgba(0, 0, 0, 0.18));
}

.forging-block-settle {
    border-color: rgba(120, 200, 255, 0.2);
    background: linear-gradient(180deg, rgba(30, 70, 120, 0.16), rgba(0, 0, 0, 0.2));
}

.forging-block-result {
    background: rgba(0, 0, 0, 0.12);
}

.forging-block-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(120, 190, 255, 0.1);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(190, 225, 255, 0.88);
}

.forging-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 24px 16px;
    text-align: center;
}

.forging-empty-state--compact {
    min-height: 120px;
    padding: 18px 12px;
}

.forging-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px dashed rgba(120, 190, 255, 0.28);
    background: rgba(255, 255, 255, 0.03);
    font-size: 1rem;
    color: rgba(150, 200, 255, 0.55);
}

.forging-empty-sub {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(160, 195, 230, 0.62);
}

.forging-empty-sub strong {
    color: #b8dcff;
    font-weight: 600;
}

.forging-catalog-empty {
    padding: 24px 12px;
    text-align: center;
}
.forging-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(120, 190, 255, 0.15);
}

.forging-detail-forbidden {
    margin: -6px 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 120, 80, 0.12);
    border: 1px solid rgba(255, 140, 90, 0.28);
    color: rgba(255, 200, 170, 0.95);
    font-size: 0.84rem;
    line-height: 1.45;
}

.forging-catalog-item--excluded .forging-catalog-item-meta {
    color: rgba(255, 170, 130, 0.85);
}

.forging-detail-title {
    margin: 6px 0 0;
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #f5faff;
}

.forging-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.forging-tag {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(80, 150, 230, 0.18);
    color: #b8dcff;
}

.forging-detail-grid {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 700px) {
    .forging-detail-grid {
        grid-template-columns: 1fr;
    }
}

.forging-detail-section {
    margin-bottom: 14px;
}

.forging-detail-label {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(180, 220, 255, 0.82);
    text-transform: uppercase;
}

.forging-material-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forging-material-figure {
    margin: 0;
}

.forging-material-image {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    background: transparent;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.38));
    transition: opacity 0.25s ease;
}

.forging-material-image.wiki-alpha-processing {
    opacity: 0.88;
}

.forging-material-figure figcaption {
    margin-top: 4px;
    font-size: 0.68rem;
    color: rgba(160, 200, 240, 0.55);
    text-align: center;
}

.forging-detail-dl {
    margin: 0 0 10px;
    display: grid;
    gap: 6px;
}

.forging-detail-dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(215, 235, 255, 0.92);
}

.forging-detail-dl dt {
    margin: 0;
    color: rgba(175, 210, 245, 0.8);
    font-weight: 500;
}

.forging-detail-dl dd {
    margin: 0;
    text-align: right;
    color: #e8f4ff;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.forging-qty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.forging-qty-table th,
.forging-qty-table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(120, 190, 255, 0.12);
    text-align: left;
}

.forging-qty-table th {
    color: rgba(170, 210, 255, 0.7);
    font-weight: normal;
}

.forging-qty-table td {
    color: #e0f0ff;
}

.forging-qty-current {
    background: rgba(50, 110, 180, 0.18);
}

.forging-qty-current td {
    color: #fff;
    font-weight: 600;
}

.forging-effect-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forging-effect-block {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(120, 190, 255, 0.16);
    background: rgba(0, 0, 0, 0.22);
}

.forging-effect-block.forging-effect-active {
    border-color: rgba(120, 200, 255, 0.42);
    background: rgba(40, 90, 160, 0.18);
}

.forging-effect-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 500;
    vertical-align: middle;
    background: rgba(80, 160, 255, 0.25);
    color: #b8e0ff;
}

.forging-effect-name {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e8f4ff;
}

.forging-effect-desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(200, 225, 250, 0.92);
}

.forging-detail-content {
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(120, 190, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(225, 238, 255, 0.94);
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
    font-size: 0.84rem;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow-y: auto;
}

.forging-currency-note {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 200, 120, 0.08);
    border: 1px solid rgba(255, 200, 120, 0.18);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 228, 180, 0.92);
    text-align: center;
}

.forging-cost-list div {
    font-variant-numeric: tabular-nums;
}

.forging-empty {
    margin: 0;
    color: rgba(180, 210, 240, 0.62);
    font-size: 0.86rem;
    line-height: 1.55;
}

.forging-btn-add-lg {
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.forging-material-kind {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(80, 150, 230, 0.2);
    color: #a8d4ff;
}

.forging-btn-add {
    padding: 8px 12px;
    border: 1px solid rgba(100, 180, 255, 0.42);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(45, 105, 185, 0.42), rgba(30, 75, 150, 0.35));
    color: #e8f4ff;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}

.forging-btn-add:hover:not(:disabled) {
    background: rgba(60, 130, 220, 0.45);
}

.forging-btn-add:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    background: rgba(60, 70, 90, 0.35);
    border-color: rgba(120, 140, 170, 0.25);
    color: rgba(180, 195, 215, 0.7);
}

.forging-cart-limit {
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(220, 140, 60, 0.22);
    color: #ffd4a0;
}

.forging-daily-warn {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(220, 160, 80, 0.35);
    background: rgba(120, 70, 20, 0.22);
    color: #ffe4c0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.forging-daily-warn.hidden {
    display: none;
}

.forging-cart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 0;
    scrollbar-width: thin;
}

.forging-cart-row {
    position: relative;
    border: 1px solid rgba(100, 170, 240, 0.2);
    border-radius: 10px;
    padding: 10px 32px 10px 12px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.15s, background 0.15s;
}

.forging-cart-row:hover {
    border-color: rgba(120, 190, 255, 0.32);
    background: rgba(255, 255, 255, 0.05);
}

.forging-cart-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 0.88rem;
    color: #eef6ff;
}

.forging-cart-qty {
    color: #9fd0ff;
    font-size: 0.82rem;
}

.forging-cart-cost {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(180, 220, 255, 0.8);
}

.forging-cart-fx {
    margin: 4px 0 0;
    font-size: 0.74rem;
    color: rgba(160, 200, 240, 0.65);
    line-height: 1.35;
}

.forging-cart-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 6px;
    background: rgba(200, 60, 60, 0.25);
    color: #ffb0b0;
    cursor: pointer;
    line-height: 1;
    font-size: 1rem;
}

.forging-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.forging-form-grid .forging-field-full {
    grid-column: 1 / -1;
}

.forging-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(190, 220, 255, 0.82);
}

.forging-field {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    color: #eef6ff;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.forging-field-lg {
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 14px;
}

.forging-field-locked {
    border-color: rgba(120, 200, 255, 0.32);
    background: rgba(40, 90, 160, 0.22);
    color: #d8eeff;
    cursor: not-allowed;
    opacity: 0.92;
}

.forging-preview {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(120, 190, 255, 0.14);
}

.forging-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.forging-preview-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(190, 225, 255, 0.82);
}

.forging-preview-quality {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 200, 80, 0.2);
    color: #ffe4a8;
    font-size: 0.8rem;
    font-weight: 600;
}

.forging-preview-quality--legendary {
    background: linear-gradient(135deg, rgba(180, 120, 255, 0.35), rgba(120, 80, 200, 0.28));
    color: #ecd4ff;
    box-shadow: 0 0 16px rgba(160, 100, 255, 0.25);
}

.forging-preview-quality--epic {
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.35), rgba(200, 80, 30, 0.28));
    color: #ffd8b0;
    box-shadow: 0 0 16px rgba(255, 120, 40, 0.22);
}

.forging-preview-quality--supreme {
    background: linear-gradient(135deg, rgba(255, 220, 120, 0.42), rgba(255, 160, 80, 0.32));
    color: #fff4d0;
    box-shadow: 0 0 20px rgba(255, 200, 100, 0.35);
    animation: forging-supreme-glow 2.4s ease-in-out infinite;
}

.forging-preview-hint {
    margin: 0 0 8px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(255, 210, 150, 0.88);
}

.forging-preview-hint.hidden {
    display: none;
}

.forging-result-quality {
    margin: 0 0 12px;
    padding: 16px 18px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
}

.forging-result-quality-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.forging-result-quality-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.forging-result-quality-note {
    display: block;
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.forging-result-quality--legendary {
    border-color: rgba(180, 130, 255, 0.45);
    background: linear-gradient(135deg, rgba(100, 60, 180, 0.35), rgba(60, 30, 120, 0.28));
    color: #f0e0ff;
    box-shadow: 0 0 28px rgba(150, 90, 255, 0.28);
}

.forging-result-quality--epic {
    border-color: rgba(255, 150, 70, 0.45);
    background: linear-gradient(135deg, rgba(180, 70, 20, 0.34), rgba(120, 40, 10, 0.28));
    color: #ffe8cc;
    box-shadow: 0 0 28px rgba(255, 120, 40, 0.24);
}

.forging-result-quality--supreme {
    border-color: rgba(255, 220, 140, 0.55);
    background: linear-gradient(135deg, rgba(200, 150, 40, 0.38), rgba(255, 200, 80, 0.22));
    color: #fff8e8;
    box-shadow: 0 0 32px rgba(255, 210, 100, 0.35);
    animation: forging-supreme-glow 2.4s ease-in-out infinite;
}

.forging-result-text--highlight {
    border-color: rgba(255, 220, 160, 0.22);
}

@keyframes forging-supreme-glow {
    0%, 100% { box-shadow: 0 0 24px rgba(255, 210, 100, 0.28); }
    50% { box-shadow: 0 0 36px rgba(255, 230, 150, 0.45); }
}

.forging-preview-effects {
    font-size: 0.8rem;
    color: rgba(200, 225, 250, 0.88);
    line-height: 1.55;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
}

.forging-preview-effects p {
    margin: 0 0 4px;
}

.forging-cost {
    margin-bottom: 14px;
}

.forging-cost-list {
    margin: 0;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(120, 190, 255, 0.12);
}

.forging-cost-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.84rem;
    color: rgba(200, 225, 255, 0.85);
}

.forging-cost-list dt {
    margin: 0;
    font-weight: normal;
    color: rgba(170, 205, 240, 0.75);
}

.forging-cost-list dd {
    margin: 0;
    text-align: right;
}

.forging-cost-total {
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid rgba(120, 190, 255, 0.22);
    font-weight: 700;
    font-size: 0.92rem;
    color: #f0f8ff !important;
}

.forging-cost-total dd {
    color: #fff4d8 !important;
}

.forging-cost-rate dd {
    color: #a8e0c0 !important;
}

.forging-cost-extra {
    color: #ffd9a0 !important;
}

.forging-cost-extra dd {
    color: #ffe8c0 !important;
    font-size: 0.88rem;
}

.forging-forge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 0;
}

.forging-forge-row .forging-field-group {
    flex: 1;
    min-width: 120px;
}

.forging-btn-forge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 12px 22px;
    border: 1px solid rgba(140, 220, 255, 0.55);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(60, 140, 230, 0.65), rgba(35, 90, 180, 0.55));
    color: #f8fcff;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(50, 120, 220, 0.28);
    transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}

.forging-btn-forge:hover {
    background: linear-gradient(135deg, rgba(80, 160, 245, 0.72), rgba(45, 110, 200, 0.6));
    box-shadow: 0 6px 28px rgba(60, 140, 240, 0.35);
    transform: translateY(-1px);
}

.forging-btn-forge:active {
    transform: translateY(0);
}

.forging-result {
    min-height: 80px;
}

.forging-result-placeholder {
    margin: 0;
    padding: 20px 12px;
    text-align: center;
    color: rgba(160, 195, 230, 0.55);
}

.forging-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.forging-result-ok {
    color: #9fe8b0;
    font-size: 0.9rem;
}

.forging-result-fail {
    margin: 0;
    color: #ffb0a8;
    font-size: 0.88rem;
}

.forging-btn-copy {
    padding: 4px 10px;
    border: 1px solid rgba(120, 190, 255, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #cce8ff;
    font-size: 0.78rem;
    cursor: pointer;
}

.forging-result-text {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(120, 190, 255, 0.15);
    color: #e8f4ff;
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
    font-size: 0.84rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 280px;
    overflow-y: auto;
}

.forging-rate-wrap.hidden {
    display: none;
}
