/* 模拟加点器：沿用怪物介绍页的暗夜 + 金 + 冰蓝配色，独立前缀避免与首页样式冲突 */

.sim-wrap {
    width: 1200px;
    margin: 0 auto;
    padding: 70px 0 0;
}

.sim-heading {
    width: 540px;
    height: 54px;
    margin: 0 auto;
    text-align: center;
    line-height: 54px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.3em;
    padding-left: 10px;
    color: #F6E3AE;
    background: linear-gradient(180deg, #17274F 0%, #0A1229 100%);
    border: 1px solid rgba(232, 196, 122, 0.34);
    border-radius: 3px;
    text-shadow: 0 0 16px rgba(232, 196, 122, 0.35);
    box-shadow: 0 0 22px rgba(63, 123, 255, 0.18), 0 0 0 1px rgba(4, 9, 22, 0.9) inset;
    position: relative;
    z-index: 2;
}

.sim-sub {
    text-align: center;
    color: #8DA0BC;
    font-size: 14px;
    line-height: 2;
    margin: 22px 0 26px;
}

.sim-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: start;
}

.sim-panel {
    padding: 26px 28px 28px;
    background:
        linear-gradient(180deg, rgba(232, 196, 122, 0.055), rgba(0, 0, 0, 0) 160px),
        radial-gradient(ellipse 70% 55% at 82% -10%, rgba(63, 123, 255, 0.16), rgba(0, 0, 0, 0) 72%),
        linear-gradient(180deg, rgba(15, 26, 56, 0.92), rgba(5, 11, 28, 0.94));
    border: 1px solid rgba(124, 168, 235, 0.14);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(232, 196, 122, 0.10) inset, 0 26px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- 等级 / 职业 ---------- */
.sim-settings {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.sim-field {
    flex: 1;
    min-width: 0;
}

.sim-field > label {
    display: block;
    font-size: 14px;
    color: #E8C47A;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sim-level-box {
    display: flex;
    align-items: stretch;
    height: 46px;
    background: rgba(6, 13, 30, 0.88);
    border: 1px solid rgba(124, 168, 235, 0.2);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sim-level-box:focus-within {
    border-color: #E8C47A;
    box-shadow: 0 0 18px rgba(232, 196, 122, 0.22);
}

.sim-level-box button {
    width: 42px;
    font-size: 20px;
    color: #C7D6EA;
    background: rgba(124, 168, 235, 0.08);
    border: 0;
    cursor: pointer;
    transition: all 0.25s;
}

.sim-level-box button:hover {
    color: #0A1024;
    background: linear-gradient(180deg, #F6E3AE, #C79A4B);
}

.sim-level-box input {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #F6E3AE;
    background: transparent;
    border: 0;
    outline: none;
}

.sim-select-box {
    position: relative;
    height: 46px;
}

.sim-select-box::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -3px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #8DA0BC;
    pointer-events: none;
}

.sim-select-box select {
    width: 100%;
    height: 46px;
    padding: 0 34px 0 14px;
    font-size: 16px;
    color: #E6EFF9;
    background: rgba(6, 13, 30, 0.88);
    border: 1px solid rgba(124, 168, 235, 0.2);
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sim-select-box select:focus {
    border-color: #E8C47A;
    box-shadow: 0 0 18px rgba(232, 196, 122, 0.22);
}

.sim-select-box select option {
    background: #0A1229;
    color: #E6EFF9;
}

.sim-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #69799A;
    min-height: 16px;
}

/* ---------- 点数统计 ---------- */
.sim-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 0 16px;
    margin-bottom: 6px;
    border-top: 1px solid rgba(124, 168, 235, 0.12);
    border-bottom: 1px solid rgba(124, 168, 235, 0.12);
}

.sim-point-item {
    text-align: center;
}

.sim-point-item span {
    display: block;
    font-size: 13px;
    color: #8DA0BC;
    margin-bottom: 6px;
}

.sim-point-item b {
    font-size: 24px;
    color: #E6EFF9;
    letter-spacing: 1px;
}

.sim-point-left b {
    color: #E8C47A;
    text-shadow: 0 0 14px rgba(232, 196, 122, 0.4);
}

.sim-point-left b.is-zero {
    color: #8DA0BC;
    text-shadow: none;
}

/* ---------- 属性行 ---------- */
.sim-stats {
    display: flex;
    flex-direction: column;
}

.sim-stat {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(124, 168, 235, 0.12);
}

.sim-stat:last-child {
    border-bottom: 0;
}

.sim-stat-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.sim-stat-name {
    font-size: 17px;
    font-weight: bold;
    color: #F6E3AE;
    letter-spacing: 2px;
    min-width: 46px;
}

.sim-stat-total {
    font-size: 14px;
    color: #C7D6EA;
}

.sim-stat-total.is-capped {
    color: #E88A7A;
}

.sim-stat-gain {
    margin-left: auto;
    font-size: 12px;
    color: #69799A;
}

.sim-stat-body {
    display: flex;
    gap: 8px;
    align-items: stretch;
    height: 38px;
}

.sim-stat-body button {
    width: 46px;
    font-size: 18px;
    color: #C7D6EA;
    background: rgba(124, 168, 235, 0.08);
    border: 1px solid rgba(124, 168, 235, 0.22);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s;
}

.sim-stat-body button:hover:not(:disabled) {
    color: #0A1024;
    background: linear-gradient(180deg, #F6E3AE, #C79A4B);
    border-color: #F6E3AE;
}

.sim-stat-body button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sim-stat-body input {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    color: #E8C47A;
    background: rgba(6, 13, 30, 0.88);
    border: 1px solid rgba(124, 168, 235, 0.18);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sim-stat-body input:focus {
    border-color: #E8C47A;
    box-shadow: 0 0 16px rgba(232, 196, 122, 0.2);
}

.sim-stat-margin {
    margin-top: 7px;
    font-size: 12px;
    color: #8CC6FF;
    min-height: 16px;
}

.sim-stat-margin.is-warn {
    color: #E88A7A;
}

/* ---------- 操作区 ---------- */
.sim-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(124, 168, 235, 0.12);
}

.sim-actions-label {
    font-size: 13px;
    color: #8DA0BC;
    margin-right: 2px;
}

.sim-actions-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sim-actions-btns button {
    height: 30px;
    padding: 0 12px;
    font-size: 13px;
    color: #C7D6EA;
    background: rgba(124, 168, 235, 0.08);
    border: 1px solid rgba(124, 168, 235, 0.22);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s;
}

.sim-actions-btns button:hover {
    color: #F6E3AE;
    border-color: rgba(232, 196, 122, 0.45);
}

.sim-reset {
    margin-left: auto;
    height: 34px;
    padding: 0 20px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #E8C47A;
    background: linear-gradient(180deg, rgba(232, 196, 122, 0.14), rgba(232, 196, 122, 0.02));
    border: 1px solid rgba(232, 196, 122, 0.34);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.sim-reset:hover {
    color: #0A1024;
    background: linear-gradient(180deg, #F6E3AE, #C79A4B);
    border-color: #F6E3AE;
}

/* ---------- 结果面板 ---------- */
.sim-result-title {
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #E8C47A;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(232, 196, 122, 0.22);
}

.sim-result-title-gap {
    margin-top: 26px;
}

.sim-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sim-card {
    padding: 14px 16px;
    border-radius: 4px;
    border: 1px solid rgba(124, 168, 235, 0.16);
    background: rgba(9, 17, 38, 0.62);
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sim-card:hover {
    border-color: rgba(232, 196, 122, 0.28);
    box-shadow: 0 0 24px rgba(63, 123, 255, 0.10) inset;
}

.sim-card-name {
    font-size: 13px;
    letter-spacing: 3px;
    color: #8DA0BC;
    margin-bottom: 6px;
}

.sim-card-value {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(140, 198, 255, 0.35);
}

.sim-card-detail {
    margin-top: 6px;
    font-size: 12px;
    color: #69799A;
}

.sim-card-vital .sim-card-value { color: #FF8F8F; }
.sim-card-stamina .sim-card-value { color: #8FE3A0; }
.sim-card-epower .sim-card-value { color: #8CC6FF; }
.sim-card-mana .sim-card-value { color: #C9A6FF; }

/* ---------- 总览表 ---------- */
.sim-summary {
    border: 1px solid rgba(124, 168, 235, 0.14);
    border-radius: 4px;
    overflow: hidden;
}

.sim-summary-row {
    display: grid;
    grid-template-columns: 0.7fr 0.7fr 0.7fr 1.9fr;
    gap: 6px;
    padding: 9px 12px;
    font-size: 13px;
    color: #C7D6EA;
    border-bottom: 1px solid rgba(124, 168, 235, 0.08);
}

.sim-summary-row:last-child {
    border-bottom: 0;
}

.sim-summary-row:nth-child(even) {
    background: rgba(124, 168, 235, 0.05);
}

.sim-summary-head {
    color: #8DA0BC;
    background: rgba(232, 196, 122, 0.06);
    font-size: 12px;
    letter-spacing: 1px;
}

.sim-summary-head span:last-child {
    text-align: right;
}

.sim-summary-row span:last-child {
    color: #8CC6FF;
    text-align: right;
}

/* ---------- 说明 ---------- */
.sim-note {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px dashed rgba(124, 168, 235, 0.18);
    border-radius: 4px;
    background: rgba(6, 13, 30, 0.5);
}

.sim-note p {
    font-size: 12px;
    line-height: 1.9;
    color: #69799A;
    margin-bottom: 4px;
}

.sim-note p:last-child {
    margin-bottom: 0;
}

.sim-note code {
    color: #8CC6FF;
    font-family: Consolas, "Courier New", monospace;
}

/* ---------- 参考数据 ---------- */
.sim-ref {
    margin-top: 24px;
}

.sim-ref-title {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #E8C47A;
    margin-bottom: 14px;
}

.sim-ref-title-gap {
    margin-top: 24px;
}

.sim-ref-scroll {
    overflow-x: auto;
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    white-space: nowrap;
}

.sim-table th,
.sim-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(124, 168, 235, 0.10);
}

.sim-table th {
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1px;
    color: #8DA0BC;
    background: rgba(232, 196, 122, 0.06);
    border-bottom-color: rgba(232, 196, 122, 0.22);
}

.sim-table tbody tr:nth-child(even) {
    background: rgba(124, 168, 235, 0.05);
}

.sim-table tbody tr:hover {
    background: rgba(232, 196, 122, 0.07);
}

.sim-td-name {
    color: #F6E3AE;
    font-weight: bold;
    letter-spacing: 1px;
}

.sim-td-vital { color: #FF8F8F; }
.sim-td-stamina { color: #8FE3A0; }
.sim-td-epower { color: #8CC6FF; }
.sim-td-mana { color: #C9A6FF; }

.sim-td-point {
    color: #E8C47A;
    font-weight: bold;
}

.sim-td-note {
    color: #69799A;
    font-size: 12px;
}

@media (max-width: 1240px) {
    .sim-wrap {
        width: 94%;
    }
    .sim-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sim-wrap {
        padding-top: 34px;
    }
    .sim-heading {
        width: 100%;
        font-size: 22px;
        letter-spacing: 0.22em;
    }
    .sim-sub {
        font-size: 12px;
        line-height: 1.9;
        margin: 14px 0 18px;
    }
    .sim-panel {
        padding: 18px 14px 20px;
    }
    .sim-settings {
        flex-direction: column;
        gap: 14px;
    }
    .sim-point-item b {
        font-size: 20px;
    }
    .sim-stat-name {
        font-size: 16px;
    }
    .sim-cards {
        gap: 10px;
    }
    .sim-card-value {
        font-size: 24px;
    }
    .sim-summary-row {
        grid-template-columns: 0.8fr 0.8fr 0.8fr;
        font-size: 12px;
    }
    .sim-summary-row span:last-child {
        display: none;
    }
    .sim-reset {
        margin-left: 0;
        width: 100%;
    }
}
