:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --danger-color: #ea4335;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #202124;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background-color: var(--card-color);
    color: var(--text-color);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 48px;
}

#logo {
    font-size: 1.25rem;
    font-weight: 500;
}

.container {
    width: 100%;
    min-height: calc(100vh - 48px);
    margin: 0;
    padding: 1rem;
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 1rem;
}

.form-section, .list-section {
    background: var(--card-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
}

.form-section {
    width: 500px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    background: var(--card-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.list-section {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
}

.table-content {
    flex: 1;
    overflow: auto;
    position: relative;
}

.form-group {
    margin-bottom: 0.8rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: #5f6368;
}

input[type="text"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.submit-btn:hover {
    color: #2d8d47;
    background-color: rgba(52,168,83,0.1);
}

.nav-button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-button:hover {
    background-color: rgba(26,115,232,0.1);
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    table-layout: fixed;
}

th, td {
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    text-align: center;
}

th {
    background-color: var(--background-color);
    font-weight: 500;
    color: #5f6368;
    text-align: center;
}

tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.list-actions {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

h2 {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .form-section, .list-section {
        padding: 1rem;
    }
}

/* 复选框样式优化 */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 只读输入框样式 */
input[readonly] {
    background-color: var(--background-color);
    cursor: not-allowed;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.data-area {
    display: flex;
    gap: 1.5rem;
    margin-right: 1rem;
    padding-right: 1rem;
    border-right: 1px solid var(--border-color);
}

.data-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.data-item label {
    margin: 0;
    color: #666;
}

.data-item span {
    font-weight: 500;
    color: var(--primary-color);
}

.settings-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.settings-link:hover {
    background-color: rgba(26,115,232,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 24px;
    width: auto;
    display: block;
}

#systemTitle {
    font-size: 1.1rem;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.settings-title {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-modal {
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.close-modal:hover {
    color: #333;
}

/* 设置表单样式 */
.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.settings-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.settings-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Logo上传区域样式 */
.logo-upload-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo-preview-container {
    width: 200px;
    height: 80px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

.logo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    width: fit-content;
}

.upload-btn:hover {
    background-color: #1557b0;
}

.upload-tip {
    color: #666;
    font-size: 0.85rem;
}

/* 设置按钮样式 */
.settings-submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 20px;
}

.settings-submit-btn:hover {
    background-color: #1557b0;
}

/* 优化表格列宽 */
table th:nth-child(1) { width: 40px; } /* 复选框列 */
table th:nth-child(2) { width: 80px; } /* ID列 */
table th:nth-child(3) { width: 120px; } /* 需求名称列 */
table th:nth-child(4) { width: 120px; } /* 源地址列 */
table th:nth-child(5) { width: 120px; } /* 目的地址列 */
table th:nth-child(6) { width: 80px; }  /* 协议列 */
table th:nth-child(7) { width: 80px; }  /* 端口列 */
table th:nth-child(8) { width: 60px; }  /* 动列 */
table th:nth-child(9) { width: 100px; } /* 申请人列 */
table th:nth-child(10) { width: 100px; } /* 创建者列 */
table th:nth-child(11) { width: 80px; } /* 操作列 */

/* 表头文字居中 */
th {
    background-color: var(--background-color);
    font-weight: 500;
    color: #5f6368;
    text-align: center;
}

/* 复选框列居中 */
td:first-child, th:first-child {
    text-align: center;
}

/* 添加表格操作按钮样式 */
.table-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.table-action-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.table-action-btn:hover {
    background-color: rgba(26,115,232,0.1);
}

.delete-btn {
    color: var(--danger-color);
}

.delete-btn:hover {
    background-color: rgba(234,67,53,0.1);
}

/* 调整表格列宽 */
table th:nth-child(1) { width: 40px; }  /* 复选框列 */
table th:nth-child(2) { width: 80px; }  /* ID列 */
table th:nth-child(3) { width: 120px; } /* 需求名称列 */
table th:nth-child(4) { width: 120px; } /* 源地址列 */
table th:nth-child(5) { width: 120px; } /* 目的地址列 */
table th:nth-child(6) { width: 80px; }  /* 协议列 */
table th:nth-child(7) { width: 80px; }  /* 端口列 */
table th:nth-child(8) { width: 60px; }  /* 动作列 */
table th:nth-child(9) { width: 100px; } /* 申请人列 */
table th:nth-child(10) { width: 100px; } /* 创建者列 */
table th:nth-child(11) { width: 80px; } /* 操作列 */

/* 添加 placeholder 样式 */
input::placeholder {
    color: #999;
    font-size: 0.85rem;
}

/* 非必填输入框样式 */
input:not([required]) {
    background-color: #fafafa;
}

/* 调整 datetime-local 的 placeholder */
input[type="datetime-local"]:not([required]) {
    background-color: #fafafa;
}

/* 添加导出次数样式 */
.export-count {
    display: inline-block;
    font-size: 0.8rem;
    color: #666;
    padding: 0.2rem 0.4rem;
    min-width: 1.5rem;
    text-align: center;
}

/* 调整操作列的布局 */
.table-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

/* 添加拓扑相关样式 */
.topology-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.topology-input-group select {
    flex: 1;
}

.add-topology-btn {
    padding: 0.4rem 0.8rem;
    background-color: transparent;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.add-topology-btn:hover {
    background-color: rgba(102, 102, 102, 0.1);
    color: #333;
}

/* 添加表单容器样式 */
#policyForm {
    position: relative;
    padding-bottom: 3rem; /* 为按钮留出空间 */
    padding-right: 0.5rem;
}

/* 修改提交按钮样式和位置 */
.submit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.submit-btn:hover {
    color: #2d8d47;
    background-color: rgba(52,168,83,0.1);
}

/* 修改新建按钮样式为图片 */
.add-btn-img {
    width: 20px; /* 调整图片大小 */
    height: 20px;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.add-btn-img:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 调整输入组的间距 */
.topology-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.topology-input-group select {
    flex: 1;
}

/* 添加新的弹窗样式 */
.modal-small {
    max-width: 400px !important;
    padding: 1.5rem !important;
}

.compact-form .settings-form-group {
    margin-bottom: 1.5rem;
}

.compact-form .settings-input {
    padding: 0.6rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 100%;
    transition: all 0.2s;
}

.compact-form .settings-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}

.compact-form .settings-form-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.compact-form .settings-submit-btn {
    background-color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* 添加错误输入框样式 */
.input-error {
    background-color: rgba(234, 67, 53, 0.1) !important;
    border-color: var(--danger-color) !important;
}

.input-error:focus {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.1) !important;
}

/* 添加用户相关样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#currentUser {
    font-size: 0.9rem;
    color: var(--text-color);
}

.logout-link {
    color: var(--danger-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.logout-link:hover {
    background-color: rgba(234,67,53,0.1);
}

.user-manage-content {
    padding: 1rem 0;
}

.add-user-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
}

#userTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#userTable th,
#userTable td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.user-action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.user-delete-btn {
    background-color: var(--danger-color);
    color: white;
}

/* 优化新增用户弹窗样式 */
#addUserModal .modal-content {
    max-width: 400px;
    padding: 1.5rem;
}

#addUserModal .settings-form-group {
    margin-bottom: 1.5rem;
}

#addUserModal .settings-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
}

#addUserModal .settings-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.1);
}

#addUserModal select.settings-input {
    height: 42px;
    cursor: pointer;
}

#addUserModal .settings-form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

#addUserModal .settings-submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 80px;
}

#addUserModal .settings-submit-btn:hover {
    background-color: #1557b0;
}

#addUserModal .modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

#addUserModal .settings-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

#addUserModal label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

/* 优化关闭按钮样式 */
.close-modal {
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #666;
}

/* 添加修改密码按样式 */
.change-pwd-btn {
    background-color: var(--primary-color);
    color: white;
    margin-right: 8px;
}

.change-pwd-btn:hover {
    background-color: #1557b0;
}

/* 调整操作列按钮布局 */
.user-action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.user-delete-btn {
    background-color: var(--danger-color);
    color: white;
}

.user-delete-btn:hover {
    background-color: #d33426;
}

/* 优化登录窗样式 */
#loginModal .modal-content {
    max-width: 400px;
    padding: 1.5rem;
}

#loginModal .settings-form-group {
    margin-bottom: 1.5rem;
}

#loginModal .settings-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
}

#loginModal .settings-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.1);
}

#loginModal .settings-form-actions {
    margin-top: 2rem;
    text-align: center;
}

#loginModal .settings-submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 80px;
}

#loginModal .settings-submit-btn:hover {
    background-color: #1557b0;
}

.export-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.export-btn:hover {
    background-color: rgba(52, 168, 83, 0.1); /* 浅绿色背景 */
    color: var(--secondary-color);
}

/* 修改分页控制器样式，使其显示在右下角 */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 改为靠右对齐 */
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #666;
    gap: 1rem; /* 增加组件之间的间距 */
}

/* 每页显示部分 */
.page-size-wrapper {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.page-size-select {
    margin: 0 4px;
    height: 28px;
    padding: 0 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-color);
    background-color: #fff;
    cursor: pointer;
    min-width: 70px;
}

/* 分页导航部分 */
.page-nav {
    display: flex;
    align-items: center;
    gap: 4px; /* 调整按钮之间的间距 */
}

.page-btn {
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-current {
    margin: 0 8px;
    white-space: nowrap;
}

/* 总条数显示 */
#totalItems {
    margin: 0 4px;
}

/* 调整表格容器布局 */
.table-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.table-content {
    flex: 1;
    overflow: auto;
}

/* 固定表头样式 */
#policyTable {
    width: 100%;
    border-collapse: collapse;
}

#policyTable thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--background-color); /* 使用变量保持一致性 */
}

#policyTable th {
    padding: 0.75rem 0.5rem;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color); /* 确保背景色一致 */
    white-space: nowrap;
}

/* 确保表头样式在滚动时保持不变 */
#policyTable th:first-child {
    border-top-left-radius: 4px;
}

#policyTable th:last-child {
    border-top-right-radius: 4px;
}

/* 优化表格内容样式 */
#policyTable td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    white-space: nowrap;
}

/* 添加表格行悬停效果 */
#policyTable tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 调整表格列宽 */
#policyTable {
    table-layout: fixed; /* 使用固定列宽布局 */
    width: 100%;
}

/* 设置各列的宽度 */
#policyTable th:nth-child(1) { width: 40px; }  /* 复选框列 */
#policyTable th:nth-child(2) { width: 80px; }  /* ID列 */
#policyTable th:nth-child(3) { width: 120px; } /* 需求名称列 */
#policyTable th:nth-child(4) { width: 140px; } /* 源地址列 */
#policyTable th:nth-child(5) { width: 140px; } /* 目的地址列 */
#policyTable th:nth-child(6) { width: 80px; }  /* 协议列 */
#policyTable th:nth-child(7) { width: 80px; }  /* 端口列 */
#policyTable th:nth-child(8) { width: 80px; }  /* 动作列 */
#policyTable th:nth-child(9) { width: 100px; } /* 申请人列 */
#policyTable th:nth-child(10) { width: 100px; } /* 创建者列 */
#policyTable th:nth-child(11) { width: 160px; } /* 创建时间列 */
#policyTable th:nth-child(12) { width: 80px; } /* 操作列 */

/* 调整单元格内容显示 */
#policyTable td {
    padding: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 特定列的对齐方式 */
#policyTable th:first-child,
#policyTable td:first-child { /* 复选框列居中 */
    text-align: center;
}

#policyTable td:nth-child(3) { /* 需求名称列左对齐 */
    text-align: left;
}

#policyTable td:nth-child(4),
#policyTable td:nth-child(5) { /* IP地址列左对齐 */
    text-align: left;
}

/* 表格内容的字体大小和行高 */
#policyTable td {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 修改表格单元格对齐方式，确保所有内容居中显示 */
#policyTable th,
#policyTable td {
    padding: 8px;
    text-align: center !important; /* 强制所有单元格居中对齐 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 表头样式也保持居中 */
#policyTable th {
    padding: 0.75rem 0.5rem;
    font-weight: 500;
    text-align: center !important;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
    white-space: nowrap;
}

/* 设置各列的宽度 */
#policyTable {
    table-layout: fixed;
    width: 100%;
}

#policyTable th:nth-child(1) { width: 40px; }   /* 复选框列 */
#policyTable th:nth-child(2) { width: 80px; }   /* ID列 */
#policyTable th:nth-child(3) { width: 120px; }  /* 需求名称列 */
#policyTable th:nth-child(4) { width: 140px; }  /* 源地址列 */
#policyTable th:nth-child(5) { width: 140px; }  /* 目的地址列 */
#policyTable th:nth-child(6) { width: 80px; }   /* 协议列 */
#policyTable th:nth-child(7) { width: 80px; }   /* 端口列 */
#policyTable th:nth-child(8) { width: 80px; }   /* 动作列 */
#policyTable th:nth-child(9) { width: 100px; }  /* 申请人列 */
#policyTable th:nth-child(10) { width: 100px; } /* 创建者列 */
#policyTable th:nth-child(11) { width: 100px; } /* 创建时间列 */
#policyTable th:nth-child(12) { width: 80px; }  /* 操作列 */

/* 表格内容的字体大小和行高 */
#policyTable td {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 表格行悬停效果 */
#policyTable tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 完成按钮样式 */
.complete-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    background-color: #f0f0f0;
    color: #666;
    transition: all 0.2s;
    margin-left: 8px;
}

.complete-btn:hover {
    background-color: #e0e0e0;
}

.complete-btn.completed {
    background-color: var(--secondary-color);
    color: white;
}

.complete-btn.completed:hover {
    background-color: #2d8d47;
}

/* 调整表格操作列的宽度 */
#policyTable th:nth-child(12) { 
    width: 160px; 
}

/* 调整表格操作列的布局 */
.table-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}