/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

p {
    margin-bottom: 10px;
}

/* 按钮和输入框样式 */
button, input[type="text"] {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    background-color: #5cb85c;
    color: white;
    border-color: #4cae4c;
}

button:hover {
    background-color: #4cae4c;
}

input[type="text"] {
    width: calc(100% - 22px); /* 减去内边距和边框宽度 */
}

/* 下拉选择框样式 */
select {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

/* 展示时间戳和时间的span标签样式 */
#timestamp, #formattedTime, #formattedDateTime, #datetimeResult {
    font-family: 'Courier New', Courier, monospace;
    padding: 5px 10px;
    background-color: #e7e7e7;
    border-radius: 5px;
    display: inline-block;
    margin-left: 5px;
}

/* 动画效果 */
@keyframes copyAnimation {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 复制按钮的动画效果 */
button.copy-btn {
    animation: copyAnimation 2s infinite;
}

/* 响应式设计 */
@media (max-width: 600px) {
    button, input[type="text"] {
        width: 100%;
        margin: 5px 0;
    }
}