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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    color: #1890ff;
}

.login-box h2 {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
    color: #666;
}

/* 头部 */
.header {
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-content h1 {
    font-size: 20px;
    color: #1890ff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-section, .admin-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.filter-section h3, .admin-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 主内容区 */
.main-content {
    flex: 1;
    min-width: 0;
}

.stats {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* 表格 */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
}

.data-table tbody tr:hover {
    background-color: #fafafa;
}

.business-desc {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 表单 */
.form-group {
    margin-bottom: 15px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-top: 8px;
}

textarea {
    resize: vertical;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

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

.btn-success {
    background-color: #52c41a;
    color: white;
}

.btn-success:hover {
    background-color: #73d13d;
}

.btn-info {
    background-color: #13c2c2;
    color: white;
}

.btn-info:hover {
    background-color: #36cfc9;
}

.btn-warning {
    background-color: #faad14;
    color: white;
}

.btn-warning:hover {
    background-color: #ffc53d;
}

.btn-danger {
    background-color: #ff4d4f;
    color: white;
}

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

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.btn-edit, .btn-delete {
    padding: 4px 8px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 5px;
}

.btn-edit {
    background-color: #1890ff;
    color: white;
}

.btn-delete {
    background-color: #ff4d4f;
    color: white;
}

/* 分页 */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.pagination a.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: white;
}

/* 编辑表单 */
.edit-form {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
}

.form-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

/* 两列布局 */
.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 上传页面 */
.upload-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.upload-box {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.upload-box h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.info-box {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.info-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #0050b3;
}

.info-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.info-box li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #0050b3;
}

/* 消息提示 */
.success-message {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-messages {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.error-messages h3 {
    color: #ff4d4f;
    font-size: 14px;
    margin-bottom: 10px;
}

.error-messages ul {
    margin-left: 20px;
    color: #ff4d4f;
    font-size: 13px;
}

.error-messages li {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
        font-size: 12px;
    }
    
    .business-desc {
        max-width: 150px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .login-box {
        padding: 20px;
        margin: 20px;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px;
        font-size: 11px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}