body {
    width: 90%;
    font-family: Arial, sans-serif;
    margin: 20px auto;
    background-color: #f4f4f4;
}
/* 顶部导航条（与首页一致） */
.navbar {
    width: 100%;
    background: #66b32e;
    padding: 14px 40px;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

/* 居中卡片 */
.center-card {
    width: 420px;
    margin: 60px auto;
    background: white;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


/* 表单控件统一美化 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
    width: 94%;
    padding: 10px 12px;
    margin: 10px 0 18px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

/* 主按钮 */
.btn-main {
    width: 100%;
    padding: 12px;
    background: #66b32e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-main:hover {
    background: #569a25;
}

/* 次要按钮 */
.btn-sentcode {
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    background: #eaeaea;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.btn-sentcode:hover {
    background: #dcdcdc;
}

/* 链接 */
a {
    color: #66b32e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.spinner {
    border: 3px solid #eee;
    border-top: 3px solid #66b32e;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 6px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* dashboard */
#task-panel {

    background: white;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

table{
    width: 100%;
}
/* 基本重置 */
#task-panel table {
    /* display: none; */
    /* width: 95%; */
    /* 表格宽度为100% */
    border-collapse: collapse;
    /* 边框合并 */
    /* margin: 1px 10px; */
    font-size: 14px;
    font-weight: normal;
    /* visibility: hidden; */
}

.status-pending {
    color: rgba(0, 81, 255, 0.815);
}

.status-failure {
    color: red;
}

.status-success {
    color: rgb(0, 150, 45);
}

.status {
    font-weight: bold;
}
/* 表格头部和单元格样式 */
#task-panel th {
    font-weight: normal;
}

#task-panel th,
#task-panel td {
    padding: 2px 5px;
    /* 内边距 */
    border: 1px solid #af3a3a;
    /* 边框 */
    text-align: left;
    /* 文本左对齐 */
    word-break: break-word;
    /* 允许在单词内换行 */
    word-wrap: break-word;
    /* 旧的写法，与 word-break: break-word; 相同 */
    overflow-wrap: break-word;
    /* 允许在单词内换行 */
    /* color: rgb(99, 99, 99); */
}

/* 设置每列的宽度 */
#task-panel th:nth-child(1),
#task-panel td:nth-child(1) {
    width: 10%;
}

#task-panel th:nth-child(2),
td:nth-child(2) {
    width: 10%;
}

#task-panel th:nth-child(3),
td:nth-child(3) {
    width: 40%;
}

#task-panel th:nth-child(4),
td:nth-child(4) {
    width: 20%;
}

#task-panel th:nth-child(5),
td:nth-child(5) {
    width: 10%;
}
#task-panel th:nth-child(6),
td:nth-child(5) {
    width: 10%;
}
#task-panel td:hover {
    background-color: #dedede;
}

/* #task-panel td:nth-child(4) {
    cursor: pointer;
} */
#task-panel td:nth-child(4) {
    cursor: pointer;
}


.task-download,.task-delete {
    margin: 0;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}
.task-download{
    color: white;
    background-color: #54d5df;
    margin-bottom: 5px;
}
.task-download:hover {
    background-color: #36898f;
}
.task-delete {
    color: white;
    background-color: #df5460;
}
.task-delete:hover{
    background-color: #96373f;
}
.task-download a {
    color: #ffffff;
    text-decoration: none;
}

/* 统计项点击样式 */
.stat-item {
    display: inline-block;
    margin: 0 15px;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    min-width: 120px;
    cursor: pointer;
    /* 添加鼠标指针 */
    transition: all 0.3s ease;
    /* 添加过渡效果 */
    user-select: none;
    /* 防止文本被选中 */
}

.stat-item:hover {
    transform: translateY(-2px);
    /* 悬停时轻微上移 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 添加阴影效果 */
}

.stat-item.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 激活状态有更强的阴影 */
}

.stat-total {
    background-color: #e3f2fd;
    color: #5693d1;
    border-left: 4px solid #5693d1;
}

.stat-total.active {
    background-color: #5693d1;
    color: white;
}

.stat-success {
    background-color: #e8f5e9;
    color: #58ad5c;
    border-left: 4px solid #58ad5c;
}

.stat-success.active {
    background-color: #58ad5c;
    color: white;
}

.stat-pending {
    background-color: #fff3e0;
    color: #fca752;
    border-left: 4px solid #fca752;
}

.stat-pending.active {
    background-color: #fca752;
    color: white;
}

.stat-failure {
    background-color: #ffebee;
    color: #c75e5e;
    border-left: 4px solid #c75e5e;
}

.stat-failure.active {
    background-color: #c75e5e;
    color: white;
}

/* 统计容器样式 */
#stats-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px;
}

@media (max-width: 768px) {
    #stats-content {
        flex-direction: column;
        align-items: center;
    }
}

/* 过滤控制按钮 */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 表格行隐藏动画 */
.task-row {
    transition: all 0.3s ease;
}