input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
} */

/* 导航栏整体 */
.navbar {
    position: fixed;
    top: 0;
    width: 70%;
    margin: 0 15%;
    background-color: #2f3640;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 菜单居中 */
.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* 水平居中菜单 */
    align-items: center;
    padding: 10px 20px;
}

/* 菜单列表 */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 40px; /* 菜单间距放大 */
    margin: 0;
    padding: 0;
}

/* 菜单链接 */
.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px; /* 放大字体 */
    font-weight: bold;
    padding: 8px 12px;
    transition: color 0.3s, transform 0.3s;
}

.nav-menu li a:hover {
    color: #4cd137;
    transform: scale(1.1); /* 悬停略微放大 */
}

/* 为固定导航栏留出顶部间距 */
body {
    padding-top: 60px; /* 根据 navbar 高度调整 */
}

/* ===== 全部 input 和 textarea 基础美化 ===== */
input, textarea {
    border: 2px solid #dcdde1;       /* 边框颜色柔和 */
    border-radius: 6px;               /* 圆角 */
    padding: 6px 10px;                /* 上下 6px，左右 10px 内边距 */
    font-size: 16px;                  /* 字体大小 */
    line-height: 1.4;                 /* 行高 */
    transition: all 0.2s ease;        /* 动画过渡 */
    background-color: #f5f6fa;        /* 默认背景 */
    color: #2f3640;                   /* 字体颜色 */
    box-sizing: border-box;           /* 内边距包含在宽度内 */
    outline: none;                    /* 去掉默认聚焦框 */
    width: 100%;                       /* 自适应容器宽度 */
    height: 38px;                      /* 统一高度 */
    resize: none;                      /* textarea 不可拖动 */
}

/* 悬停高亮 */
input:hover, textarea:hover {
    border-color: #4cd137;
    box-shadow: 0 0 8px rgba(76, 209, 55, 0.3);
    background-color: #ffffff;
}

/* 聚焦效果 */
input:focus, textarea:focus {
    border-color: #4cd137;
    box-shadow: 0 0 10px rgba(76, 209, 55, 0.5);
    background-color: #ffffff;
}

/* readonly 专属样式 */
input[readonly], textarea[readonly] {
    background-color: #e0e6ed;       /* 更浅灰色背景 */
    color: #555;                      /* 字体颜色稍淡 */
    border-color: #b0b8c1;            /* 边框颜色更淡 */
    cursor: default;                  /* 光标提示不可编辑 */
    padding-left: 10px;               /* 左内边距 */
    padding-right: 10px;              /* 右内边距 */
    /* 保持上下内边距原有样式 */
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 6px;               /* 保持圆角 */
    box-sizing: border-box;           /* 内边距包含在宽度内 */
}

/* 可点击复制框 */
.copyable {
    cursor: pointer;                  /* 鼠标提示可点击 */
}

.copyable:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(76, 209, 55, 0.4);
}

.copyable:active {
    transform: translateY(0);
    box-shadow: 0 0 4px rgba(76, 209, 55, 0.6);
}

/* ===== 复选框美化 ===== */
input[type="checkbox"] {
    /* 隐藏原生复选框 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 13px;
    height: 13px;
    border: 2px solid #dcdde1;
    border-radius: 4px;       /* 小一点圆角 */
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f5f6fa;
}

/* 悬停效果 */
input[type="checkbox"]:hover {
    border-color: #4cd137;
    box-shadow: 0 0 4px rgba(76, 209, 55, 0.4);
    background-color: #ffffff;
}

/* 选中状态 */
input[type="checkbox"]:checked {
    background-color: #4cd137;
    border-color: #4cd137;
}

/* 选中状态显示勾 */
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 禁用复选框 */
input[type="checkbox"]:disabled {
    cursor: not-allowed;
    background-color: #e0e6ed;
    border-color: #b0b8c1;
    box-shadow: none;
}

/* ===== 所有按钮美化 ===== */
button[type="button"] {
    background-color: #4cd137;       /* 绿色背景 */
    color: #fff;                      /* 白色文字 */
    border: none;                     /* 去掉默认边框 */
    border-radius: 6px;               /* 圆角 */
    padding: 6px 20px;                /* 内边距 */
    font-size: 16px;                  /* 字体大小 */
    font-weight: bold;
    cursor: pointer;                  /* 鼠标手型 */
    transition: all 0.2s ease;        /* 平滑过渡 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 悬停效果 */
button[type="button"]:hover {
    background-color: #44bd32;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 按下效果 */
button[type="button"]:active {
    background-color: #407a29;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 禁用状态 */
button[type="button"]:disabled {
    background-color: #b0b8c1;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}