@font-face {
    font-family: 'Rajdhani';
    src: url("https://tim.hia1321.cn/tim_css/myfont.otf");
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
select,
option {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    font-family: 'Rajdhani';
}


body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

fieldset {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* 使内容水平居中 */
}

legend {
    /*text-align: left;*/
    font-size: 1.5em;
}

.container {
    max-width: 400px;
    margin: auto;
}

.input-group {
    margin-bottom: 15px;
}

label {
    /*display: block;*/
    margin-bottom: 5px;
}

input[type="number"] {
    width: calc(100% - 10px);
    padding: 5px;
    border-radius: 4px;
    outline: none;
    border: 1px solid #ccc;
    text-align: center;
    /* 使内容水平居中 */
}

button {
    padding: 10px 15px;
    background-color: #add8e6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    /* 增加顶部间距 */
    transition: background-color 0.5s ease;
}

button:hover {
    background-color: #ffc0cb;
    transition: background-color 0.5s ease;
}

.error,
.warning {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    z-index: 1000;
    text-align: center;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}