html {
    /* 保留纵向滚动条,隐藏横向滚动条 */
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    overflow-x: hidden; /* 添加这行以防止水平滚动 */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: rgba(241, 88, 127, 0.1);
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    margin: 0; /* 去掉默认边框 */
}

h1 {
    /* 修改标题样式 */
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    color: #f1587f;
    margin-bottom: 0.1rem;
    position: relative;
    animation: heartbeat 4s ease-in-out infinite;
    -webkit-animation: heartbeat 4s ease-in-out infinite;
}

.page {
    /* 设置页面样式 */
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
}

.info {
    /* 个人信息 */
    padding: 0;
    background-color: rgb(241, 88, 127, 0.01);
    border-bottom: 1px solid rgb(241, 88, 127);
    display: flex;
    align-items: center;
}

#img_profile {
    /* 头像图片 */
    border-radius: 8px;
    align-self: center;
}

#info-text {
    /* 信息文本 */
    margin-left: 20px;
    padding-right: 10px;
    border-right: 1px solid rgba(241, 88, 127, 0.1);
}

#info-text label,
span {
    /* 身高体重标签和单位 */
    padding-right: 0.2rem;
}

#info-text input {
    /* 输入框 */
    width: 80px;
    background: rgb(255 255 255);
    border-radius: 5px;
    border: solid #afadad thin;
    color: #535353;
}

.input-addon {
    /* 输入框单位 */
    color: #d7d7d7;
    font-size: smaller;
    margin-left: -25px;
}

/* 时钟倒计时样式 */
.countdown-box {
    margin: auto;
    text-align: center;
}

.clock img {
    /* 时钟 表盘 + 秒针 */
    height: 80px;
}

.clock #dial {
    /* 表盘 */
    position: absolute;
    z-index: 1;
}

.clock #poiter {
    /* 秒针 */
    position: relative;
    z-index: 2;
    animation: rotate 60s linear infinite;
    -webkit-animation: rotate 60s linear infinite;
    -moz-animation: rotate 60s linear infinite;
    /* 添加动画 */
}

#countdown {
    /* 倒计时文字 */
    color: #757575;
    font-size: 0.6rem;
}

/* 信息卡片 */
.message-box {
    color: rgb(121, 10, 180);
    margin-top: 15px;
    box-shadow: 0 4px 15px 0 rgb(15 35 95 / 15%);
    background: rgb(0 0 0 / 0%);
    border-radius: 15px;
    padding: 0.5rem 1rem;
}

.message-box h4 {
    /* 信息卡片标题 */
    margin-top: 0.5rem;
}

p#message-text {
    /*设置字体为自定义手写体*/
    font-family: 'handWriteFont', 'Courier New', Courier, monospace;
    font-size: 1rem;
    margin-top: -1rem;
    color: rgb(65, 69, 104);
}

@font-face {
    /* 自定义字体 */
    font-family: 'handWriteFont';
    src: url('font/DaijinX.woff2') format('woff2');
    font-display: swap;
}

/* 二级标题样式 */
h2 {
    color: #3b3b3b;
    font-size: 20px;
    font-weight: bold;
    margin-top: 1em;
}

/* 段落样式 */
p {
    color: #757575;
    font-size: 14px;
    line-height: 1.5;
    margin: 1em 0;
}

/* 设置表格样式 */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1em;
    border: none;
    /* 移除表格边框 */
    /* border-radius: 10px; */
}

th,
td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

th {
    /* 单元格标题 */
    background-color: #f1587f;
    color: black;
    font-weight: bold;
}

td {
    /* 单元格内容 */
    background-color: #fcfcfc;
    color: #525e6b;
}

/* 列表样式 */
ul {
    color: #313131;
    font-size: 14px;
    padding-top: 2%;
    padding-bottom: 2%;
    border-radius: 10px; /* 添加圆角,值为10px */
    background-color: rgba(255, 255, 255, 0.1);
    /* 添加rgba背景色,a为透明度0.5 */
}

@keyframes heartbeat {
    /* h1标题动画 心跳效果 */
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    /* 闪烁动画-红色背景 */
    0% {
        background-color: red;
    }

    50% {
        background-color: transparent;
    }

    100% {
        background-color: red;
    }
}

@keyframes blink-guli {
    /* 闪烁动画-黄色背景 */
    0% {
        background-color: yellow;
    }

    50% {
        background-color: transparent;
    }

    100% {
        background-color: yellow;
    }
}

@keyframes rotate {
    /* 旋转动画 */
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes rotate {
    /* 旋转动画 */
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 设备响应断点 */
@media (max-width: 599px) {
    /* 移动设备样式 */
    h1 {
        /* 主标题样式 */
        margin-top: -10px;
        padding: 25px 0;
        background-color: #f1587f;
        font-size: 2em;
        font-weight: bold;
        color: #ffffff;
        animation: none;
    }

    h1::before,
    h1::after {
        display: none; /* 小屏幕下不显示两侧水平线 */
    }

    #slogan-box {
        display: none; /* 小屏幕下不显示标语 */
    }

    .page {
        /* 页面样式 */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* 列表样式 */
    ul {
        padding: 1.2rem 1rem 1.2rem 1.1rem !important;
    }

    li {
        margin-left: 0.7rem;
    }
}

@media (min-width: 600px) {
    /* 平板设备样式 */
    .page {
        width: 85%;
    }

    /* 标题两侧平行线 */
    h1::before {
        content: '';
        position: absolute;
        top: 50%;
        width: 30%;
        left: -50px;
        height: 0.1px;
        background-color: #f1587f;
    }
    h1::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 30%;
        right: -50px;
        height: 0.11px;
        background-color: #f1587f;
    }

    .countdown-box {
        /* 倒计时盒子 */
        transform: scale(1.1);
        margin-left: 20px !important;
    }

    #slogan-box {
        margin-left: auto;
        font-size: 1.1em;
        font-weight: bold;
        color: #626262;
        padding-left: 20px;
        border-left: 1px solid rgba(241, 88, 127, 0.1);
    }

    #slogan-box h5 {
        margin-top: -25px;
        color: #818181;
        font-weight: lighter;
        font-size: 1.2em;
    }
}

@media (min-width: 992px) {
    /* 大屏设备样式 */
    .page {
        max-width: 90%;
    }

    /* 主标题两侧平行线 */
    h1::before {
        content: '';
        top: 50%;
        height: 0.1px;
        background-color: #f1587f;
        margin-left: 75px;
    }

    h1::after {
        content: '';
        top: 50%;
        height: 0.1px;
        background-color: #f1587f;
        margin-right: 75px;
    }

    #img_profile,
    #info-text {
        /* 头像和信息块 */
        transform: scale(1.3);
        transform-origin: center left;
        /* or 0 0 */
        margin-right: 1.5rem;
    }

    .countdown-box {
        /* 倒计时盒子 */
        transform: scale(1.3);
        transform-origin: center left;
        /* or 0 0 */
        margin-left: 2.5rem !important;
    }

    #slogan-box {
        /* 标语 */
        margin-left: auto;
        font-size: 2em;
        font-weight: bold;
        color: #3c3d3d;
        padding-left: 3em;
        border-left: 1px solid rgba(241, 88, 127, 0.1);
    }

    #slogan-box h5 {
        margin-top: -1em;
        color: #818181;
        font-weight: lighter;
        font-size: 1em;
    }
}
