.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h1 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

.login-btn:active {
    transform: translateY(1px);
}

.error {
    color: #dc3545;
    background-color: #ffe0e3;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .login-container {
        margin: 40px 20px;
        padding: 25px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .form-group input {
        padding: 10px 12px;
    }

    .login-btn {
        padding: 10px;
    }
}

/* 导航样式 */
nav {
    background: white;
    padding: 8px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
    margin: 20px 0;
    display: flex;
    align-items: center;
}

/* 首页图标链接样式 */
nav .home-link {
    padding: 6px;
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    min-width: 36px;
    line-height: 1;
}

nav .home-link:hover {
    background-color: var(--bg-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

nav .home-link svg {
    display: block;
    width: 24px;
    height: 24px;
}

nav a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-right: 8px;
    line-height: 1;
}

nav a:hover {
    background-color: var(--bg-blue);
    color: var(--primary-blue);
}

nav a.active {
    background-color: var(--primary-blue);
    color: white;
}

nav a:last-child {
    float: right;
    margin-right: 0;
    background-color: #f44336;
    color: white;
    margin-left: auto;
}

.add-btn {
    padding: 8px 16px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.add-form {
    margin-bottom: 25px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.add-form .form-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.add-form label {
    white-space: nowrap;
    margin-bottom: 0;
}

.add-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0;
}

.add-form .add-btn {
    padding: 8px 20px;
    white-space: nowrap;
    margin: 0;
}

.list {
    margin-top: 0;
}

.disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

.active {
    background-color: var(--primary-blue);
    color: white !important;
}

.btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

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

.message {
    margin: 0 0 15px 0;
    padding: 10px;
    border-radius: 4px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

table a {
    color: var(--primary-blue);
    text-decoration: none;
    margin-right: 10px;
}

table a:hover {
    text-decoration: underline;
}

.table-container {
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
    overflow: hidden;
    margin-bottom: 0;
}

.debug-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.debug-info pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    table-layout: fixed;
}

th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
    word-break: break-word;
}

tr:hover {
    background-color: var(--bg-blue);
}

@media (max-width: 768px) {
    td, th {
        padding: 8px;
    }
}

/* 搜索表单样式 */
.search-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
    margin-bottom: 20px;
}

.search-form .form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.search-form select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: white;
    min-width: 120px;
    transition: all 0.3s ease;
}

.search-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.search-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.search-form .btn {
    padding: 8px 20px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form .btn:hover {
    background-color: #1976d2;
}

.delete-btn {
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

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

.batch-actions {
    margin-top: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

input[type="checkbox"] {
    width: auto;
    margin: 0;
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

table th:first-child,
table td:first-child {
    width: 40px;
    text-align: center;
    vertical-align: middle;
    padding: 0 0 0 20px;
}

table th:nth-child(2),
table td:nth-child(2) {
    width: 15%;
}

table th:nth-child(3),
table td:nth-child(3) {
    width: 15%;
}

table th:nth-child(4),
table td:nth-child(4) {
    width: 30%;
    text-align: center;
}

table th:nth-child(5),
table td:nth-child(5) {
    width: 30%;
    text-align: center;
}

table th:last-child,
table td:last-child {
    width: 10%;
    text-align: center;
}

/* 分类管理表格样式 */
.category-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;  /* 确保固定布局 */
    margin-bottom: 0;  /* 移除表格底部边距 */
}

.category-table th,
.category-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

/* 分类表格列宽设置 */
.categories-table th:nth-child(1),
.categories-table td:nth-child(1) {
    width: 10%;  /* ID列 */
}

.categories-table th:nth-child(2),
.categories-table td:nth-child(2) {
    width: 40%;  /* 名称列 */
}

.categories-table th:nth-child(3),
.categories-table td:nth-child(3) {
    width: 25%;  /* 电话数量列 */
}

.categories-table th:nth-child(4),
.categories-table td:nth-child(4) {
    width: 25%;  /* 操作列 */
}

.add-form {
    background: white;
    padding: 25 25 0 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
}

.add-form h2 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 15px;  /* 减少标题底部边距 */
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--bg-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.page-link.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .pagination-links {
        justify-content: center;
    }
    
    .page-link {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* 分页控制样式 */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.page-size-selector select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-size-selector select:hover {
    border-color: var(--primary-blue);
}

.page-size-selector select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.1);
}

/* 调整移动端样式 */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-size-selector {
        justify-content: center;
    }
}

/* 添加省略号样式 */
.page-dots {
    padding: 6px 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 调整移动端省略号样式 */
@media (max-width: 768px) {
    .page-dots {
        padding: 5px 6px;
        font-size: 13px;
    }
}

/* 操作按钮容器 */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.actions-left,
.actions-right {
    display: flex;
    gap: 10px;
}

/* 危险按钮样式 */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* 修改按钮悬停效果 */
.add-btn:hover,
.btn-primary:hover {
    background-color: var(--dark-blue);
}

/* 修改主要按钮颜色 */
.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

/* 模态框样式 */
.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.show {
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.close {
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 二级标题样式 */
.add-form h2,
.list h2 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-weight: 500;
}

/* 只给添加表单的标题添加装饰 */
.add-form h2 {
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-blue);
    position: relative;
}

/* 只给添加表单的标题添加底部装饰线 */
.add-form h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* 导入帮助说明样式 */
.help-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.help-content h3 {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.help-section {
    margin-bottom: 25px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 操作步骤列表样式 */
.help-section ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
    margin: 0;
}

.help-section ol li {
    counter-increment: step-counter;
    margin-bottom: 12px;
    padding-left: 35px;
    position: relative;
    line-height: 1.5;
    color: var(--text-secondary);
}

.help-section ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

/* 注意事项列表样式 */
.help-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.help-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.help-section ul li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}

/* 格式示例表格样式 */
.format-example {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.format-example:last-child {
    margin-bottom: 0;
}

.format-example p {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.format-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}

.format-table th,
.format-table td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.format-table th {
    background: #f5f5f5;
    font-weight: 500;
    color: var(--text-primary);
}

.format-table td {
    color: var(--text-secondary);
}

/* 下载按钮样式 */
.help-actions {
    margin-top: 25px;
    text-align: center;
}

.help-actions .btn {
    padding: 10px 25px;
    font-size: 15px;
}

/* 文件上传表单样式 */
input[type="file"] {
    padding: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
}

.add-form .form-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.add-form label {
    white-space: nowrap;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

/* 密码设置页面样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

.form-help {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 调整表单容器样式 */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.add-form {
    background: white;
    padding: 25 25 0 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
}

.add-form h2 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--bg-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.page-link.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .pagination-links {
        justify-content: center;
    }
    
    .page-link {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* 分页控制样式 */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.page-size-selector select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-size-selector select:hover {
    border-color: var(--primary-blue);
}

.page-size-selector select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.1);
}

/* 调整移动端样式 */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-size-selector {
        justify-content: center;
    }
}

/* 添加省略号样式 */
.page-dots {
    padding: 6px 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 调整移动端省略号样式 */
@media (max-width: 768px) {
    .page-dots {
        padding: 5px 6px;
        font-size: 13px;
    }
}

/* 操作按钮容器 */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.actions-left,
.actions-right {
    display: flex;
    gap: 10px;
}

/* 危险按钮样式 */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* 链接按钮样式 */
.btn-link {
    background: none;
    border: none;
    color: var(--primary-blue);
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
    font-size: inherit;
}

.btn-link:hover {
    text-decoration: underline;
    background: none;
}

/* 调整表头复选框容器的样式 */
table th:first-child {
    padding: 15px 0 15px 20px;
}

/* 调整数据行复选框容器的样式 */
table td:first-child {
    padding: 12px 0 12px 20px;
} 