.calclogo {
    text-align: center;
    /* margin: 0 auto; */
    margin: 30px 0 0;
    /* width: 200px; */
    /* position: relative; */
    position: absolute;
    top: 534px;
}

.calctips {
    position: absolute;
    top: 210px;
    color: #9E9E9E;
    font-size: 12px;
    cursor: pointer;
    margin-left: 1%;
}

.calclogo img {
    width: 120px;
    opacity: 0.4;
}

/* 新增计算器样式 */
.calculator {
    background: #000;
    /* display: none; */
    opacity: 0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* background: #f0f0f0; */
    border-radius: 20px;
    padding: 25px 25px 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
}

.display {
    background: #ecf0f1;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 30px;
    min-height: 168px;
}

.selected-components {
    color: #2c3e50e6;
    font-size: 12px;
    margin-bottom: 8px;
}

.result {
    color: #9C27B0;
    font-size: 1.3em;
    font-weight: bold;
    text-align: right;
    padding: 5px 0 0;
    margin-right: 2%;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.component-btn {
    /* background: #3498db; */
    /* color: white; */
    border-radius: 8px;
    padding: 12px 5px;
    color: #2c3e50;
    line-height: 134%;
    font-size: 12px;
    transition: all 0.2s;
}

.num-btn {
    background: #607D8B;
    color: white;
    border-radius: 8px;
    padding: 12px;

}

.clear-btn {
    background: #700682;
    grid-column: span 2;
    width: 235px;
    height: 60px;
    width: 55%;
    color: white;
    margin: 20px 0 10px 45%;
    font-family: 微软雅黑, "Nunito Sans", sans-serif;
}

.calculate-btn {
    background: #2ecc71;
}

button:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

/* 按钮网格布局 */
.buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 通用按钮样式 */
button {
    padding: 12px;
    border: none;
    border-radius: 10px;
    /* font-size: 1.2em; */
    cursor: pointer;
    transition: all 0.2s ease;
    background: #efefef;
}

/* 运算符特殊样式 */
button.operator {
    background: #ff9500;
    color: white;
}

/* 悬停及点击效果 */
button:hover {
    transform: scale(0.95);
}

button:active {
    transform: scale(0.9);
}

body {
    font-family: 微软雅黑, "Nunito Sans", sans-serif;
}

/* 添加按钮激活状态 */
.component-btn.active {
    background: #e88b00;
    background-color: #94614e;
    color: #fff;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.cpu-btn.active {
    background: #009688;
    color: #fff;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

button.more-btn.cpu-btn {
    background: #009688;
}

/* 优化数据显示布局 */
.selected-components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 6px;
    font-size: 13px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.num-btn {
    font-size: 13px;
    min-width: 90px;
    white-space: nowrap;
    font-family: 微软雅黑, "Nunito Sans", sans-serif;
}

/* 新增下拉菜单样式 */
.dropdown-container {
    position: relative;
    display: inline-block;
}

tt {
    color: #b46c00;
    font-family: unset;
    letter-spacing: 2px;
    font-weight: 500;
    padding-right: 1px;
    /* font-family: math; */
}

.hot-btn {
    height: 56px;
    color: #b46c00;
    background: linear-gradient(90deg, #FBEEF7 0%, #E9E7FB 51%, #DCEBFA 100%);
    background: linear-gradient(90deg, #FBEEF7 0%, #E9E7FB 51%, #cbd1d6 100%);
    background: linear-gradient(90deg, #ffffff 0%, #e3e3e3 51%, #ffffff 100%);
}

.dropdown-menu {
    position: absolute;
    top: 0%;
    right: 50px;
    top: 36.5%;
    right: calc(46% - 101px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 202px;
    z-index: 100;
    overflow: auto;
    display: none;
    padding: 10px 0;
    /* 增加下拉菜单高度 */
    max-height: 260px;
    overflow-y: auto;
    border: 6px solid #ffffff;
    border-right: 1px solid #fff;
}

div#gpu-dropdown {
    /* max-height: 160px; */
    /* top: -118%; */
    /* right: 50px; */
    /* max-height: 255px; */
}

.dropdown-item {
    margin: 0 8px;
    padding: 5px 0;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
    color: #37474F;
    border-bottom: 1px dashed #ccc;
}

.dropdown-item:hover {
    background: #F5F5F5;
}

.more-btn {
    position: relative;
    background: #700682;
    background-color: #94614e;
    color: white;
    height: 56px;
    font-family: 微软雅黑, "Nunito Sans", sans-serif;
}



.ctitle {
    font-size: 3em;
    font-weight: 600;
    letter-spacing: 5px;
    text-align: center;
    position: absolute;
    width: 377px;
    /* margin: 39px auto 0; */
    /* left: auto; */
    color: #680279;
    height: 130px;
    z-index: 999;
    background: #ecf0f1;
    padding: 35px 0px 0;
}


/* 新增搜索框样式 */
.search-box {
    padding: 0 8px 10px;
    border-bottom: 1px solid #eee;
}

.search-box input {
    width: 90%;
    padding: 5px 7px;
    border: 1px solid #9c27b061;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    color: #700682;
}

.search-box input:focus {
    border-color: #2196F3;
}



::-webkit-scrollbar {
    width: 5px;
    height: 6px;
    border-radius: 4px;
    background-color: #be06df;
}

::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: #f5b560ee;
    /* #87acbf */
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(237, 237, 237);
}

::-webkit-scrollbar-track-piece {
    background-color: #232526aa;
}

#upd {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.2px;
    color: #384e64;
    line-height: 255%;
    font-family: 微软雅黑, "Nunito Sans", sans-serif;
}

.selected-components span {
    width: 250px;
}

ssub {
    color: #999;
    font-size: 10px;
    margin-left: 1px;
}

sb {
    font-size: 11px;
    margin-left: 0px;
    color: #efefef;
}

.calctips a {
    color: #999;
    /* font-size: 12px; */
    /* outline: #faebd700; */
    text-decoration: none;
}


@media (max-width: 600px) {

    .selected-components {
        font-size: 12px;
        gap: 8px 2px;
    }

    .rightspan {
        width: 70px !important;
    }

    ssub {
        font-size: 8px;
        margin-left: 0;
    }

    .hot-btn {
        height: 50px;
    }

    .calculator {
        box-shadow: 0 10px 20px rgb(0 0 0 / 20%);
        background: #2c3e505e;
        margin: 1rem auto !important;
        /* box-shadow: unset; */
    }

    .selected-components span {
        width: 200px;
        height: 17px;
    }

    .ctitle {
        font-size: 2.5em;
    }

    .component-btn {
        font-size: 11px !important;
        /* padding: 12px 8px !important; */
    }

    .clear-btn {
        width: 50%;
        margin: 20px 0 20px 50%;
        font-size: 12px;
    }

    body {
        background: #28394a;
    }

    .calctips {
        /* display: none; */
    }

    .num-btn {
        min-width: 80px;
        font-size: 12px;
    }

    .more-btn {
        font-size: 12px;
        height: 54px;
    }

    .button-grid {
        gap: 10px 6px;
    }

    button {
        max-width: 100%;
    }

    .calclogo {
        top: 499px;
    }

    .calctips {
        top: 194px;
        font-size: 12px;
        margin-left: 1%;
    }

    .dropdown-menu {
        max-height: 220px;
        min-width: 188px;
        right: 90px;
        top: 256px;
    }

    div#gpu-dropdown {
        /* max-height: 240px; */
    }

    .dropdown-item {
        font-size: 11px;
    }

    .search-box input {
        font-size: 11px;
    }

    .result {
        font-size: 1.1em !important;
        padding-top: 8px;
    }
}

@media (max-width: 440px) {

    .selected-components span {
        width: 195px;
    }

    .num-btn {
        min-width: 85px;
    }
}

@media (max-width: 415px) {

    .num-btn {
        min-width: 81px;
    }
}


@media (max-width: 400px) {

    .selected-components span {
        width: 185px;
    }

    .num-btn {
        min-width: 78px;
    }
}

@media (max-width: 391px) {

    .num-btn {
        min-width: 76px;
    }
}


@media (max-width: 376px) {

    .num-btn {
        min-width: 72px;
    }

    .selected-components span {
        width: 172px;
    }
}


@media (max-width: 361px) {

    .num-btn {
        min-width: 69px;
    }
}

@media (max-width: 330px) {

    .component-btn,
    .num-btn,
    .more-btn {
        font-size: 9px !important;
    }

    .ctitle {
        font-size: 2em;
    }

    .num-btn {
        min-width: 59px;
    }

    .selected-components span {
        width: 145px;
    }

    .selected-components {
        font-size: 9px;
    }

    .dropdown-item {
        font-size: 10px;
    }

    .dropdown-menu {
        right: 35px;
    }

    .calctips {
        top: 192px !important;
        font-size: 10px;
    }
}