/* 全局样式 */
* {
    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;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.5;
}

.login-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 50px;
    width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-header {
    margin-bottom: 30px;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.login-header p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #999;
    z-index: 1;
}

.form-group input {
    width: 100%;
    padding: 14px 12px 14px 40px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.login-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        width: 90%;
        padding: 40px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-icon {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .login-icon {
        font-size: 36px;
    }
    
    .form-group input {
        padding: 12px 12px 12px 40px;
    }
    
    .login-button {
        padding: 12px;
    }
}

/* 应用容器样式 */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 左侧菜单样式 */
.sidebar {
    width: 240px;
    background-color: #001529;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #002140;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s;
}

.menu-item a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active a {
    color: white;
    background-color: #1890ff;
}

.menu-icon {
    margin-right: 12px;
    font-size: 16px;
}

.menu-text {
    font-size: 14px;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s;
}

.menu-item.has-submenu.active .submenu-arrow,
.menu-item.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background-color: #001529;
    padding-left: 20px;
}

.menu-item.has-submenu.active .submenu,
.menu-item.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    padding: 6px 0;
}

.submenu li a {
    padding: 8px 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.submenu li a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.logout {
    margin-top: auto;
    margin-bottom: 20px;
}

/* 右侧内容区域样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-iframe {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.content-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-header {
    background-color: white;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.main-header h1 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
}

.user-name {
    font-size: 14px;
    color: #333;
}

.user-avatar {
    font-size: 18px;
}

.logout-btn {
    padding: 6px 16px;
    background-color: transparent;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: #ff4d4f;
    border-color: #ff4d4f;
}

.logout-btn::before {
    content: "🚪";
    font-size: 14px;
}

.dashboard-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: #f0f2f5;
}

/* 仪表盘卡片样式 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 图表区域样式 */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.chart-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 200px;
    }
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.card-value {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.5;
}

/* 仪表盘表格样式 */
.dashboard-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.dashboard-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.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: 500;
    color: #333;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

/* 状态标签样式 */
.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status.pending {
    background-color: #fff2e8;
    color: #fa8c16;
}

.status.processing {
    background-color: #e6f7ff;
    color: #1890ff;
}

.status.scheduled {
    background-color: #f6ffed;
    color: #52c41a;
}

.status.active {
    background-color: #f6ffed;
    color: #52c41a;
}

.status.inactive {
    background-color: #fff2e8;
    color: #fa8c16;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.tag.hot {
    background-color: #fff2e8;
    color: #ff4d4f;
}

.tag.discount {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* 内容区域样式 */
.content-section {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: #f0f2f5;
}

/* 搜索和筛选区域样式 */
.search-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    width: 300px;
}

.search-button {
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    background-color: #40a9ff;
}

.filter-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.add-button {
    background-color: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-button:hover {
    background-color: #73d13d;
}

/* 商家列表样式 */
.merchant-list {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    margin-bottom: 20px;
}

/* 操作按钮样式 */
.action-button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.3s;
}

.action-button.view {
    background-color: #1890ff;
    color: white;
}

.action-button.view:hover {
    background-color: #40a9ff;
}

.action-button.edit {
    background-color: #faad14;
    color: white;
}

.action-button.edit:hover {
    background-color: #ffc53d;
}

.action-button.delete {
    background-color: #f5222d;
    color: white;
}

.action-button.delete:hover {
    background-color: #ff4d4f;
}

.action-button.admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-button.admin:hover {
    background: linear-gradient(135deg, #7b8ff0 0%, #8a5db3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 管理员模态框样式 */
.admin-section {
    padding: 10px 0;
}

.admin-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.admin-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.admin-list::-webkit-scrollbar {
    width: 6px;
}

.admin-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.admin-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.admin-row {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.admin-row:hover {
    background: #f0f2ff;
    border-color: #667eea;
}

.admin-row.admin-row-new {
    background: #fff9e6;
    border-color: #faad14;
}

.admin-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 16px;
}

.admin-item label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.admin-item span {
    font-size: 14px;
    color: #333;
}

.admin-item input[type="text"],
.admin-item input[type="password"],
.admin-item select {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

.admin-item input:focus,
.admin-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-category {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
}

.admin-username-display {
    font-weight: 600;
    color: #333;
}

.admin-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 16px;
}

.admin-input-group label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.admin-action-btn,
.admin-save-btn,
.admin-delete-btn,
.admin-confirm-btn,
.admin-cancel-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.admin-action-btn {
    background: #1890ff;
    color: white;
}

.admin-action-btn:hover {
    background: #40a9ff;
}

.admin-save-btn {
    background: #52c41a;
    color: white;
}

.admin-save-btn:hover {
    background: #73d13d;
}

.admin-delete-btn {
    background: #f5222d;
    color: white;
}

.admin-delete-btn:hover {
    background: #ff4d4f;
}

.admin-confirm-btn {
    background: #52c41a;
    color: white;
}

.admin-confirm-btn:hover {
    background: #73d13d;
}

.admin-cancel-btn {
    background: #d9d9d9;
    color: #333;
}

.admin-cancel-btn:hover {
    background: #b3b3b3;
}

.add-admin-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-admin-btn:hover {
    background: linear-gradient(135deg, #7b8ff0 0%, #8a5db3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 管理员模态框宽度 */
#adminModal .modal-content {
    max-width: 700px;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.page-button {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-button:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.page-button.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.page-info {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

/* 服务项标签样式 */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.service-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e6f7ff;
    color: #1890ff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.service-edit-btn {
    padding: 2px 8px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.service-edit-btn:hover {
    background-color: #40a9ff;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.close-modal {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 服务复选框样式 */
.service-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.service-checkbox:hover {
    border-color: #1890ff;
    background-color: #f0f9ff;
}

.service-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.service-checkbox span {
    font-size: 14px;
    color: #333;
}

/* 模态框按钮样式 */
.modal-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-button.cancel {
    background-color: #f5f5f5;
    color: #333;
}

.modal-button.cancel:hover {
    background-color: #e8e8e8;
}

.modal-button.confirm {
    background-color: #1890ff;
    color: white;
}

.modal-button.confirm:hover {
    background-color: #40a9ff;
}

/* 宠物相关样式 */
.pet-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.pet-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #f6ffed;
    border-radius: 4px;
    font-size: 12px;
}

.pet-name {
    font-weight: 500;
    color: #333;
    margin-right: 8px;
}

.pet-type {
    color: #666;
    font-size: 11px;
    background-color: #e6f7ff;
    padding: 1px 6px;
    border-radius: 8px;
}

.service-points {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f6ffed;
    color: #52c41a;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.pet-manage-btn {
    padding: 3px 8px;
    background-color: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.pet-manage-btn:hover {
    background-color: #73d13d;
}

/* 宠物管理模态框样式 */
.modal-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-section h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.pet-list-container {
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.pet-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 8px;
}

.pet-list-item:last-child {
    margin-bottom: 0;
}

.pet-info {
    display: flex;
    flex-direction: column;
}

.pet-info-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.pet-info-type {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.pet-actions {
    display: flex;
    gap: 6px;
}

.pet-action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.pet-action-btn.edit {
    background-color: #faad14;
    color: white;
}

.pet-action-btn.edit:hover {
    background-color: #ffc53d;
}

.pet-action-btn.delete {
    background-color: #f5222d;
    color: white;
}

.pet-action-btn.delete:hover {
    background-color: #ff4d4f;
}

/* 表单样式 */
.modal-form .form-group {
    margin-bottom: 12px;
}

.modal-form .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.modal-form .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.modal-form .form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* 单选按钮组样式 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

/* 图片上传区域样式 */
.photo-upload-area {
    margin-top: 8px;
}

.upload-box {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-box:hover {
    border-color: #1890ff;
    background: #f0f5ff;
}

.photo-upload-area.drag-over .upload-box {
    border-color: #1890ff;
    background: #e6f7ff;
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.1);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #999;
}

.upload-box input[type="file"] {
    display: none;
}

/* 图片预览容器 */
.photo-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.photo-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-photo-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .delete-photo-btn {
    opacity: 1;
}

.delete-photo-btn:hover {
    background: #ff4d4f;
}

.form-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.form-buttons .modal-button {
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .login-card {
        width: 90%;
        padding: 30px;
    }
    
    .search-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .filter-box {
        justify-content: space-between;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
    
    .action-button {
        padding: 2px 4px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        padding: 0 16px;
    }
    
    .dashboard-content {
        padding: 16px;
    }
}