/* home.css */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5; /* 浅灰色背景 */
    height: 100vh;
}

/* 海报轮播样式 */
.poster-slider {
    position: relative;
    margin-bottom: -5%;
}

.poster-slider img {
    width: 100%;
    height: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s, visibility 1s;
    position: absolute;
    top: 0;
    left: 0;
}

.poster-slider img.active {
    visibility: visible;
    opacity: 1;
    position: relative;
}

/* 左右切换按钮样式 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 导航点样式 */
.slider-dots {
    text-align: center;
    position: relative;
    width: 100%;
    bottom: 1%;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active {
    background-color: #717171;
}

.dot:hover {
    background-color: #717171;
}

/* 大按钮容器样式 */
.big-buttons-container {
    display: flex;
    justify-content: space-around; /* 使按钮在容器中均匀分布 */
    align-items: center;
    margin: 20px 0;
}

.big-button {
    flex: 1; /* 让按钮在容器内平均分布空间 */
    display: flex;
    align-items: center; /* 垂直居中对齐图标和文字 */
    justify-content: center; /* 水平居中 */
    margin: 0 10px; /* 添加左右边距避免紧挨 */
    padding: 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px; /* 调整文字大小 */
}

/* 分别为“新手指南”和“接受任务”设置背景颜色 */
.big-button.guide {
    background: linear-gradient(to right, #6A82FB, #FC5C7D);
}

.big-button.tasks {
    background: linear-gradient(to right, #36D1DC, #5B86E5);
}

/* 图标样式调整 */
.big-button i {
    margin-right: 8px; /* 图标与文字之间的间距 */
    font-size: 24px; /* 图标大小 */
}

/* 虚假数据展示样式调整 */
.fake-data-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* 字体和字体颜色的样式更新 */
.data-item {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 图标样式 */
.data-item i {
    font-size: 24px; /* 设置图标大小 */
    margin-bottom: 10px; /* 图标和文字之间的间隔 */
}

@media (max-width: 499px) {
    .data-item {
        width: 40%;
    }
}

@media (min-width: 500px)  {
    .data-item {
        width: 45%;
    }
}

/* 更新后的.data-item样式 */
.data-item:nth-child(1) {
    background: linear-gradient(to right, #6a11cb, #2575fc); /* 紫到蓝 */
}

.data-item:nth-child(2) {
    background: linear-gradient(to right, #fc4a1a, #f7b733); /* 橙红到橙黄 */
}

.data-item:nth-child(3) {
    background: linear-gradient(to right, #36D1DC, #5B86E5); /* 蓝绿到蓝色 */
}

.data-item:nth-child(4) {
    background: linear-gradient(to right, #FF512F, #DD2476); /* 红到粉红 */
}

.data-item span {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: #ffffff; /* 为了确保文字可读性，统一使用白色 */
}

/* 最新完成订单模块样式 */
.recent-orders {
    background: #f5f5f5;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-item {
    background: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item span {
    display: block;
    color: #333;
    font-size: 14px;
}

/* 为用户名、商品金额和商品佣金添加不同的颜色 */
.order-item span:nth-child(1) {
    color: #ffa751; /* 用户名使用主题色 */
}

.order-item span:nth-child(2),
.order-item span:nth-child(3) {
    color: #007bff; /* 金额和佣金使用不同的颜色以区分 */
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
    width: 2px; /* 设置滚动条的宽度为5px */
}

/* 滚动条滑轨样式 */
::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #e0e0e0, #f5f5f5); /* 灰色渐变背景 */
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2); /* 内部阴影为滑轨增加立体感 */
    border-radius: 10px; /* 圆角效果 */
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6A82FB, #FC5C7D); /* 绿色渐变效果 */
    border-radius: 10px; /* 滑块的圆角 */
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5); /* 滑块的内部阴影 */
}

/* 适应不同屏幕尺寸 */
@media (max-width: 768px) {
    .order-item {
        align-items: flex-start;
    }

    .order-item span {
        margin-bottom: 5px;
    }
}


