* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* 头部栏 */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.header-bar h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

/* 卡片容器 */
.card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 25px 20px;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
th, td {
    padding: 14px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;  /* 强制除内容列外不换行 */
}
th {
    background: #fafbfc;
    font-weight: 700;
    color: #333;
    font-size: 15px;
}
tr:last-child td { border-bottom: none; }
tr:hover { background: #f5f6f8; }

/* 斑马纹背景 - 偶数行 */
tr:nth-child(even) {
    background: #f9fafb;
}

/* 内容列 - 允许截断，保留单行 */
.content-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;  /* 保持单行 */
    color: #444;
    font-size: 15px;
}

/* 按钮 */
.btn-primary {
    background: #4CAF50;
    color: white;
    padding: 8px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { background: #45a049; }

/* 小按钮通用 */
.btn-small {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin: 0 3px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    display: inline-block;
}
.btn-small:hover { opacity: 0.85; }
.btn-small:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger { background: #dc3545; }
.btn-info { background: #17a2b8; }
.btn-edit { background: #007bff; }
.btn-send { background: #4CAF50; }
.btn-stop { background: #fd7e14; }  /* 停用按钮橙色 */

/* 状态徽章 */
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge.active { background: #e8f5e9; color: #2e7d32; }
.badge.inactive { background: #fce4ec; color: #c62828; }

/* 表单样式 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: #333; }
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* 移动端适配 */
@media (max-width: 768px) {
    table { font-size: 13px; }
    th, td { padding: 10px 6px; }
    .content-cell { max-width: 100px; }
    .header-bar h1 { font-size: 18px; }
    .btn-primary { padding: 6px 14px; font-size: 13px; }
}