/* 引入新的字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
    background-color: #f0f0f0;
    margin: 20px;
    position: relative; /* 设置 body 为相对定位，用于定位复制成功告示 */
}

h1 {
    text-align: center;
    color: #333;
}

ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

li {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

a {
    color: #007BFF;
    text-decoration: none;
}

button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

button:hover {
    background-color: #0056b3;
}

.comment {
    font-size: 14px;
    color: #777;
    margin-left: 10px;
    display: flex; /* 使用Flex布局 */
    justify-content: center; /* 将注释内容水平居中 */
}

/* 告示栏样式 */
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px; /* 增大边框圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.6; /* 调整行间距 */
    background-color: #fff; /* 添加浅色背景 */
}

#popup p {
    margin: 0;
}

#popup button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
}

/* 倒计时进度条样式 */
#countdownContainer {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    height: 20px;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

#countdownBar {
    width: 100%;
    height: 100%;
    background-color: #007BFF;
    border-radius: 4px;
    transition: width 0.1s linear; /* 添加过渡效果 */
}

#countdownText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
}

/* 复制成功告示样式 */
#copySuccess {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
}
