/* ========== 以下为原内嵌 style 全部内容（已提取） ========== */
.simulator-container {
    width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom:110px;
}
.simulator-row {
    display: flex;
    gap: 20px;
    width: 100%;
}
.simulator-card {
    background: linear-gradient(135deg, #f0e8d8, #e8e0c8);
    border: 1px solid rgba(168, 136, 96, 0.35);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(168, 136, 96, 0.15), 0 0 15px rgba(230, 154, 136, 0.08) inset;
    position: relative;
    overflow: hidden;
}
.simulator-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e69a88, #f0d99c, #e87a6f);
    border-radius: 10px 10px 0 0;
}
.simulator-card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(240, 217, 156, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.simulator-card > * {
    position: relative;
    z-index: 1;
}
.attribute-panel {
    flex: 1;
    min-width: 280px;
}
.level-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 16px;
    /* margin-left: 60px; */
}
.level-input {
    width: 60px;
    height: 36px;
    border: 1px solid rgba(168, 136, 96, 0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.8);
    color: #504028;
    text-align: center;
    font-size: 16px;
    margin-left:92px;
}
.available-points {
    color: #e87a6f;
    font-weight: 600;
}
.attr-row .available-points {
    font-size: 16px;
    margin-left:140px;
}
.attr-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    /* margin-left: 60px; */
}
.attr-label {
    width: 50px;
    font-size: 15px;
    color: #504028;
    margin-right: 17px;
}
.attr-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #e69a88, #f0d99c);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(230, 154, 136, 0.2);
}
.attr-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(230, 154, 136, 0.3);
}
.attr-btn:active {
    transform: scale(0.95);
}
.attr-input {
    flex: 1;
    max-width: 100px;
    height: 34px;
    border: 1px solid rgba(168, 136, 96, 0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.8);
    color: #504028;
    text-align: center;
    font-size: 15px;
}
.equipment-panel {
    flex: 1.8;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.equipment-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    place-items: center;
}
.slot {
    width: 100px;
    height: 100px;
    background: #fff;
    border: 1px solid rgba(168, 136, 96, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(168, 136, 96, 0.08);
    aspect-ratio: 1/1;
    cursor: pointer;
    position: relative;
}
.slot img {
    height: 40%;
    object-fit: cover;
    border-radius: 8px;
}
.slot img.character-img{
    height:100%;
}
.slot:hover {
    border-color: #e69a88;
    box-shadow: 0 0 12px rgba(230, 154, 136, 0.2);
    transform: translateY(-2px);
}
.character-slot {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.character-slot:hover {
    border: none;
    box-shadow: none;
    transform: none;
}
.character-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.gem-panel {
    flex: 1;
    min-width: 280px;
}
.gem-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
    font-size: 14px;
    color: #504028;
}
.gem-label {
    flex: 1;
    white-space: nowrap;
}
.gem-select-btn {
    width: 230px;
    height: 40px;
    border: 1px solid rgba(168, 136, 96, 0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.8);
    color: #504028;
    padding: 0 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.gem-select-btn:hover {
    border-color: #e69a88;
    box-shadow: 0 0 8px rgba(230, 154, 136, 0.15);
}
.gem-select-btn::after {
    content: "▼";
    font-size: 10px;
    color: #504028;
}
.selected-gem {
    font-weight: 600;
    color: #e87a6f;
}
.stats-panel {
    flex: 1.8;
    min-width: 380px;
}
.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.stats-section {
    margin-bottom: 20px;
}
.stats-title {
    font-size: 18px;
    color: #e87a6f;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px 15px;
    font-size: 14px;
    color: #504028;
}
.stat-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.stat-name {
    min-width: 40px;
    margin-right: 8px;
    color: #504028;
}
.stat-value {
    color: #504028;
    font-weight: normal;
    min-width: 45px;
    text-align: right;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    width: 90%;
    max-width: 800px;
    background: #f5f0e6;
    border-radius: 12px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #a88860;
    position: relative;
    margin:100px auto 0;
}
.modal-title {
    font-size: 20px;
    color: #d48a29;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #a88860;
}
.search-box {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #a88860;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    background: #fff;
    color: #504028;
}
.category-group {
    margin-bottom: 20px;
}
.category-title {
    font-size: 16px;
    color: #504028;
    margin-bottom: 8px;
    font-weight: bold;
}
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.category-btn {
    padding: 6px 15px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.head-main {
    background: #98fb98;
    color: #fff;
    border-color: #66cdaa;
}
.head-attr {
    background: #b0e0e6;
    color: #fff;
    border-color: #87cefa;
}
.head-resist {
    background: #f4a460;
    color: #fff;
    border-color: #cd853f;
}
.head-other {
    background: #fffacd;
    color: #504028;
    border-color: #f0e68c;
}
.gem-level {
    background: #9370db;
    color: #fff;
    border-color: #800080;
}
.gem-type {
    background: #20b2aa;
    color: #fff;
    border-color: #008b8b;
}
.category-btn.active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.list-container {
    margin-top: 15px;
}
.list-item {
    background: #fff;
    border: 1px solid #a88860;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}
.item-name {
    font-size: 16px;
    color: #504028;
    font-weight: bold;
    margin-bottom: 8px;
}
.item-stats {
    font-size: 14px;
    line-height: 1.5;
}
.stat-green {
    color: #008000;
}
.stat-yellow {
    color: #d48a29;
}
.stat-purple {
    color: #9370db;
}
.item-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.select-btn {
    padding: 6px 15px;
    background: #4169e1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #e87a6f;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-top {
    margin-top: 75px;
}

/* ========== 新增样式（装备删除按钮、名称标签、宝石禁用等） ========== */
.delete-equip {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #c0392b;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 22px;
    cursor: pointer;
    border: 2px solid #fef7e8;
    display: none;
    z-index: 10;
}
.slot.has-equip .delete-equip {
    display: flex;
    align-items: center;
    justify-content: center;
}
.equip-name-tag {
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    font-size: 10px;
    background: rgba(0,0,0,0.7);
    color: #ffd966;
    text-align: center;
    border-radius: 12px;
    padding: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transition: 0.3s;
    display:none;
}
.equip-name-tag.active{
    bottom: 0px;
    display:block;
}
.gem-select-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.max-limit-hint {
    font-size: 11px;
    color: #b87c4f;
    margin-left: 8px;
}
#resetAttrBtn {
    background: #c49a6c;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}


       /* 原有样式完整保留（用户提供的内嵌样式，此处省略，实际应包含所有原样式） */
        /* 由于篇幅，这里假设原有样式已存在，实际使用时请将原有样式完整复制 */
        /* 下面是新增样式，不删除原有 */
        .delete-equip {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 24px;
            height: 24px;
            background: #d64532;
            color: white;
            border-radius: 50%;
            font-size: 16px;
            font-weight: bold;
            text-align: center;
            line-height:20px;
            cursor: pointer;
            border: 2px solid #fef7e8;
            display: none;
            z-index: 10;
        }
        .slot.has-equip .delete-equip { display: flex; align-items: center; justify-content: center; }
        .equip-name-tag {
            position: absolute;
            bottom: -22px;
            left: 0;
            right: 0;
            font-size: 10px;
            background:#e69a88;
            color: #fff;
            text-align: center;
            border-radius: 0px;
            padding: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            pointer-events: none;
        }
        .gem-select-btn.disabled { opacity: 0.5; pointer-events: none; }
        .max-limit-hint { font-size: 11px; color: #b87c4f; margin-left: 8px; }
        #resetAttrBtn { background: #c49a6c; border: none; border-radius: 20px; color: white; cursor: pointer; margin-left: 10px; padding: 2px 10px; }
        .attr-btn-min, .attr-btn-max { background: #a5b8c9; font-size: 12px; width: 46px; border-radius: 5px; margin-left: 5px; }


        /* 弹窗基础 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

/* 弹窗内容 */
.modal-content {
    width: 90%;
    max-width: 820px;
    background: #f5f0e6;
    border-radius: 16px;
    padding: 24px;
    max-height: 86vh;
    overflow-y: auto;
    border: 1px solid #c7a986;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

/* 滚动条美化 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #c7a986;
    border-radius: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f0e8d8;
}

/* 关闭按钮 */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #e87a6f;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(232, 122, 111, 0.3);
}
.close-modal:hover {
    background: #d46a5f;
    transform: rotate(90deg);
}

/* 弹窗标题 */
.modal-title {
    font-size: 22px;
    color: #e87a6f;
    font-weight: bold;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #c7a986;
    letter-spacing: 0.5px;
}

/* 搜索框 */
.search-box {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #c7a986;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    background: #fff;
    color: #504028;
    box-sizing: border-box;
    transition: border 0.2s;
}
.search-box:focus {
    outline: none;
    border-color: #e87a6f;
    box-shadow: 0 0 0 3px rgba(232, 122, 111, 0.1);
}

/* 分类组 */
.category-group {
    margin-bottom: 24px;
}
.category-title {
    font-size: 16px;
    color: #584830;
    margin-bottom: 10px;
    font-weight: bold;
}
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

/* 按钮基础样式 */
.category-btn {
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}
.category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.category-btn.active {
    transform: scale(0.96);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
    opacity: 0.9;
}

/* 分类按钮颜色（沿用你原有风格，更柔和） */
.ornament-main {
    background: #98fb98;
    color: #2a5e2a;
    border-color: #66cdaa;
}
.head-attr {
    background: #b0e0e6;
    color: #1f6b92;
    border-color: #87cefa;
}
.head-resist {
    background: #f4a460;
    color: #7a4418;
    border-color: #cd853f;
}
.head-other {
    background: #fffacd;
    color: #7a6523;
    border-color: #f0e68c;
}

/* 物品列表 */
.list-container {
    margin-top: 20px;
}
.list-item {
    background: #fff;
    border: 1px solid #c7a986;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.list-item:hover {
    border-color: #e87a6f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.item-name {
    font-size: 17px;
    color: #504028;
    font-weight: bold;
    margin-bottom: 8px;
}
.item-stats {
    font-size: 14px;
    line-height: 1.5;
    color: #6b573c;
}

/* 装备按钮 */
.item-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}
.select-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #e69a88, #f0d99c);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    transition: all 0.3s ease;
}
.select-btn:hover {
    background: linear-gradient(135deg, #e87a6f, #f0b888);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(65, 105, 225, 0.25);
}

/* 文字颜色 */
.stat-green { color: #008000; }
.stat-yellow { color: #d48a29; }
.stat-purple { color: #9370db; }

.item-name{
    color:#e87a6f;
}

/* 通用按钮重置 - 灵动柔和版 */
.category-btn {
  padding: 6px 15px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* 选中状态 - 微放大+高亮+通透感 */
.category-btn.active {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  font-weight: bold;
  color: #fff !important;
}
/* 悬停 - 轻微提亮 */
.category-btn:hover:not(.active) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* 1. 饰品子类别：项链/戒指/手环等 - 暖杏柔棕渐变 */
.ornament-main {
  background: linear-gradient(135deg, #f9eac8, #f3d7b7);
  color: #9d6b40;
}
.ornament-main.active {
  background: linear-gradient(135deg, #e9b078, #d48a29);
}

/* 2. 基础属性：攻击/防御/生命等 - 浅青雾蓝渐变 */
.head-attr {
  background: linear-gradient(135deg, #e0f8f8, #c6f0f4);
  color: #3a8696;
}
.head-attr.active {
  background: linear-gradient(135deg, #64c5e1, #30a2b7);
}

/* 3. 异常抗性：毒/昏睡/石化等 - 柔粉雾紫渐变 */
.head-resist {
  background: linear-gradient(135deg, #f8e4f0, #f1d1e0);
  color: #b86b9e;
}
.head-resist.active {
  background: linear-gradient(135deg, #e486b0, #c45a91);
}

/* 4. 其他属性：魅力/耐力/智力等 - 奶绿柠黄渐变 */
.head-other {
  background: linear-gradient(135deg, #f0f7d9, #e3f0b5);
  color: #84a945;
}
.head-other.active {
  background: linear-gradient(135deg, #b8d96d, #84a945);
}
.list-item{
    overflow: hidden;
}
.list-item-left{
    float:left;
    display: flex;
    width:80px;
    height:80px;
    margin-top:10px;
    margin-right:20px;
    justify-content: center;  /* 水平居中 */
    align-items: center;      /* 垂直居中 */
}


.list-item-right{
    float:left;
    width:620px;
}
.delete-equip{
    font-size:10px;
}
.delete-equip.active{
    display:block;
}
.equip-img{
    position:absolute;
    left:0px;
    top:0px;
    width:98px;
    height:98px;
    background: #ede5d2;
    text-align:center;
    line-height:98px;
    border-radius:8px;
    color:#e87a6f;
    font-size:16px;
}
.equip-img.active{
    display:none;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}
.calculator-header h1 {
    color: #e87a6f;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(230, 154, 136, 0.6);
    margin-bottom: 10px;
}
.calculator-header .calculator-desc {
    color: #7a6953;
    font-size: 16px;
}
.select-gem-btn{
    padding: 8px 18px;
    background: linear-gradient(135deg, #e69a88, #f0d99c);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    transition: all 0.3s ease;
}
.select-gem-btn:hover{
    background: linear-gradient(135deg, #e87a6f, #f0b888);
}