/* styles.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

form {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label, 
input, 
select {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input[type="button"] {
    width: auto;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

input[type="button"]:hover {
    background-color: #45a049;
}

#total-price {
    font-weight: bold;
}

#error-message {
    text-align: center;
    margin-top: 20px;
    color: red; /* 更改错误消息文本颜色为红色 */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* 添加一些上边距 */
}

table th, 
table td {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
}

/* 添加轮播样式 */
/* 修改后的CSS */
/* 样式错误消息 */
#error-message {
    color: red;
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
}

/* 样式最近认领用户文本 */
#recent_purchase {
    text-align: center;
    font-size: 24px;
    color: #4CAF50; /* 更改文本颜色为绿色 */
    margin-bottom: 20px;
}

/* 样式轮播容器 */
#carousel {
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 样式滚动内容容器 */
#scrolling-content {
    max-height: auto; /* 设置最大高度，根据需要调整 */
    overflow: hidden;
}

/* 样式表格 */
#scrolling-content table {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    table-layout: fixed; /* 使用固定表格布局 */
    border-collapse: collapse; /* 合并边框 */
}

/* 样式表头 */
#scrolling-content table th, 
#scrolling-content table td {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#scrolling-content table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* 样式表体部分 */
#scrolling-content table tbody {
    display: block;
    overflow-y: scroll;
    max-height: calc(100% - 40px);
}

#scrolling-content table tbody tr:first-child {
    background-color: #f2f2f2;
}

/* 添加滚动动画 */
@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

#scrolling-content table tbody {
    animation: scroll 20s linear infinite;
}