body {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: flex-start;
    min-height: 100vh;       /* 确保body有足够高度 */
    margin: 0;
    background: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login {
    background-color: white;
    width: 400px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: translateZ(0);
    transition: transform 0.3s, box-shadow 0.3s;
}

.login:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

h2 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 92%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #333;
    outline: none;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

button:disabled  {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.additional-links {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

.additional-links a {
    color: #43cea2;
    text-decoration: none;
    transition: color 0.2s;
}

.additional-links a:hover {
    color: #185a9d;
    text-decoration: underline;
}


/* 分页容器 */
.pagination-container {
    text-align: center;
}

/* 分页列表 */
.pagination {
    list-style: none;
    display: inline-flex;
    padding: 0;
}

/* 页码样式 */
.pagination li {
    margin: 0 5px;
}

.pagination li button {
    border: none;
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.pagination li button:hover {
    background-color: #4CAF50;
    color: #fff;
    transform: translateY(-2px);
}

.pagination li button.active {
    background-color: #4CAF50;
    color: #fff;
}


/* 表格容器 */
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* 表格样式 */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.styled-table button {
    border: none;
    background-color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.styled-table td {
  max-width: 150px;       /* 限制最大宽度 */
  white-space: nowrap;    /* 不换行 */
  overflow: hidden;       /* 超出隐藏 */
  text-overflow: ellipsis;/* 超出部分显示省略号 */
}

/* 表头 */
.styled-table thead tr {
    background-color: #333;
    color: #ffffff;
    text-align: left;
}

/* 表头单元格 */
.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

/* 表格行：斑马条纹 */
.styled-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 表格行：悬停效果 */
.styled-table tbody tr:hover {
    background-color: #d1e7dd;
    transition: background-color 0.3s;
}

/* 单元格边框 */
.styled-table th,
.styled-table td {
    border-bottom: 1px solid #dddddd;
}


.custom-select {
    position: relative;
}

/* 外层容器 */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 140px; /* 可以按需调整 */
}

/* 美化 select */
.select-wrapper select {
    appearance: none; /* 去掉系统箭头 */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 40px 12px 16px; /* 预留箭头空间 */
    border: none;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.select-wrapper select:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.select-wrapper select:focus {
    outline: none;
    border: #43cea2;
}

/* 自定义下拉箭头 */
.select-wrapper::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #555;
}

.so_header{
    display: flex;           /* 横向排布 */
    align-items: center;     /* 垂直居中 */
    gap: 5px;               /* 每个子元素之间的间距 */
    padding-bottom: 10px;
    background: #f9f9f9;     /* 可选：背景色 */
    border-radius: 8px;      /* 可选：圆角 */
}

.so_header .so_suo{
    padding: 12px;
    background: linear-gradient(to right, #43cea2, #185a9d);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #333;
}

.so_header input {
    width: 180px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    background: #fff;
    box-shadow: #333;
    transition: all 0.3s ease;
}

/* 聚焦时的渐变边框 */
.so_header input:focus {
    border-image: #333;
    box-shadow: #333;
}

/* 添加 placeholder 效果 */
.so_header input::placeholder {
    color: #888;
    transition: color 0.3s ease;
}

.so_header input:focus::placeholder {
    color: #333;
}

.datetime-picker {
    position: relative;
    width: 260px;
}

.date-input {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
}

.calendar-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 12px;
    width: 100%;
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 1000;

    /* 默认收起 */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.calendar-container.show {
    max-height: 420px;
    opacity: 1;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-header h2 {
    font-size: 15px;
    margin: 0;
    color: #333;
}

.calendar-header button {
    background: #007bff;
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-header button:hover {
    background: #0056c7;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day-name {
    text-align: center;
    font-weight: bold;
    color: #666;
    font-size: 13px;
}

.day {
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.day:hover {
    background: #eef6ff;
}

.day.today {
    background: #007bff;
    color: #fff;
    font-weight: bold;
}

.day.selected {
    background: #28a745;
    color: #fff;
    font-weight: bold;
}

.empty {
    visibility: hidden;
}

/* 时间选择器 */
.time-selectors {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 6px;
}

.time-selectors select {
    flex: 1;
    padding: 5px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

/* 清空按钮 */
.actions {
    margin-top: 10px;
    text-align: right;
}

.clear-btn {
    width: 100px;
    background: #dc3545;
    border: none;
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.clear-btn:hover {
    background: #a71d2a;
}


/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

/* 弹出框 */
.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 20px 24px;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translate(-50%, -45%);}
    to   {opacity: 1; transform: translate(-50%, -50%);}
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.popup-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}
.close-btn {
    cursor: pointer;
    font-size: 20px;
    border: none;
    background: none;
    color: #666;
}
.close-btn:hover {
    color: #000;
}

.popup-body {
    margin-bottom: 20px;
}

/* 横向排列 label + input */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.form-group label {
    
    display: inline-block;
    flex: 0 0 auto; /* 固定宽度 */
    font-size: 14px;
    color: #444;
    min-width: 80px;
    max-width: 150px;
    white-space: nowrap; /* 防止换行 */
}
.form-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
}

.popup-footer {
    text-align: right;
}
.save-btn {
    padding: 8px 16px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.save-btn:hover {
    background: #357abd;
}

/* 遮罩层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* 半透明黑背景 */
    display: flex;
    justify-content: center;  /* 水平居中 */
    align-items: center;      /* 垂直居中 */
    z-index: 9999;            /* 保证在最上层 */
    display: none;            /* 默认隐藏 */
}

/* 转圈动画 */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;       
    border-top: 6px solid #43cea2;   
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gs_blan{
    color: red;
}

.gs_blan::after {
    content: "(已停用)";  /* 要显示的文字 */
    color: red;          /* 文字颜色 */
    margin-left: 8px;    /* 与前面内容的间距 */
    font-size: 14px;     /* 字体大小 */
}

  /* 内容层 */
  .modal {
    width: 600px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.25s ease;
  }

  /* 标题栏 */
  .modal-header {
    flex-shrink: 0;
    padding: 12px 16px;
    background: #333;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-close {
    cursor: pointer;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: color .2s;
  }
  .modal-close:hover {
    color: #ffd700;
  }

  /* 内容区 */
  .modal-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
  }

