* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    padding: 0;
    margin: 0;
}

/*div {*/
/*    overflow: hidden;*/
/*}*/

h2 {
    text-align: center;
}

a {
    color: #ff0000;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a:hover {
    color: #ff7300;
}

input {
    border: 0;
    outline: none;
    /* cursor:pointer; */
    background-color: #00000000;
    border-bottom: solid 1px;
}

textarea {
    width: 90%;
    resize: none;
    /*overflow: hidden;*/
    border: 0;
    outline: none;
    /* cursor:pointer; */
    background-color: #00000000;
    border-bottom: solid 1px;
}

/* 滚动条的宽度 */
textarea::-webkit-scrollbar {
    width: 5px;
}

/* 滚动条的滑块 */
textarea::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* 滚动条的轨道 */
textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* 滚动条滑块在点击拖动时 */
textarea::-webkit-scrollbar-thumb:active {
    background: #555;
}

input[type=range] {
    /* -webkit-appearance: none; */
    /* appearance: none; */
    /* accent-color: var(--slider-color); */
    height: 0.5px;
    /* background: var(--neutral-200);
    /* border-radius: 5px; */
    /* background-image: linear-gradient(var(--slider-color), var(--slider-color));
    background-size: 0% 100%;
    background-repeat: no-repeat;  */
}

input[type=number] {
    margin-bottom: 2px;
}



.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 左侧列宽度自适应，右侧列占据剩余空间 */
    grid-gap: 5px;
    /* 可选：添加列之间的间距 */
}

.kp {
    margin: 15px;
    padding: 15px;
    /* border: solid 1px #000; */
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.text {
    text-align: center;
}

.text2 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
}

.text3 {
    display: flex;
    font-size: 11px;
    justify-content: center;
    align-items: center;
    /* text-align: center; */
}

.item {
    padding: 7px;
    margin: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.itme_text {
    text-align: center;
    margin-top: 8px;
    width: 90%;
    height: 0px;
    overflow-y: auto;
    font-size: 12px;
    transition: 1s;
    /* display: grid; */
}

.item_c {
    display: flex;
    justify-content: center;
}

.itme_text::-webkit-scrollbar {
    display: none;
    /* 隐藏滚动条 */
}

.and {
    display: flex;
    justify-content: center;
}

.an {
    width: 50px;
    padding: 5px;
    margin-top: 20px;
    margin-bottom: 5px;
    text-align: center;
    border-radius: 15px;
    background-color: #a9a9a9;
    color: #fff;
    font-size: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.an:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.c {
    display: flex;
    justify-content: center;
    font-size: 12px;
}

iframe {
    width: 100%;
    height: 200px;
    overflow: hidden;
}



/* 夜间模式样式 */
body.night-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.night-mode .kp {
    background-color: #2d2d2d;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.night-mode input,
.night-mode textarea {
    /* background-color: #2d2d2d; */
    color: #fff;
    border-color: #666;
}

.night-toggle {
    background: #FFB6C1; /* 浅粉色 */
    transition: all 0.3s ease;
    outline: none; /* 移除点击轮廓 */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

/* 夜间模式按钮颜色 */
.night-mode .night-toggle {
    background: #C0A9B0; /* 灰粉色 */
}

/* 强制所有颜色变化都有过渡 */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 输入框过渡 */
/* input,
textarea {
    transition: background-color 0.3s ease, border-color 0.3s ease;
} */

.night-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.night-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.night-toggle:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* 添加点击反馈 */
}

.night-toggle i {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

/* 在style.css中添加 */
.night-toggle i {
    position: absolute;
    color: white;
    font-size: 1.2rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-sun {
    opacity: 0;
    transform: rotate(-90deg);
}

.icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* 夜间模式图标状态 */
.night-mode .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.night-mode .icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}