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

body {
    font-family: 'Source Han Sans CN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: #f0f2f5;
    color: #333;
}

/* 登录页样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

/* 科技背景动画 */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.1) 0%, transparent 50%);
    animation: pulseBackground 4s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes pulseBackground {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(56, 189, 248, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

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

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

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

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1), 0 0 20px rgba(56, 189, 248, 0.15);
    transform: translateY(-1px);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

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

/* 后台布局 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: #001529;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    background: #002140;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #003a6c;
}

.sidebar-menu {
    padding: 16px 0;
}

.menu-item {
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item.active {
    background: #1890ff;
    color: white;
}

.sidebar-badge {
    margin-left: auto;
    background: #ff4d4f;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
}

.menu-icon {
    font-size: 18px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG图标样式 */
.menu-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* 子菜单箭头 */
.submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.menu-item.has-submenu:hover .submenu-arrow,
.menu-item.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

/* 子菜单容器 */
.submenu {
    display: none;
    background: rgba(255, 255, 255, 0.05);
}

.menu-item.has-submenu:hover .submenu,
.menu-item.has-submenu.active .submenu {
    display: block;
}

/* 子菜单项 */
.submenu-item {
    padding: 10px 24px 10px 56px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    font-size: 14px;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.submenu-item.active {
    background: rgba(24, 144, 255, 0.3);
    color: white;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 240px;
}

/* 头部 */
.header {
    background: 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.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.logout-btn {
    padding: 8px 16px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #ff7875;
}

/* 内容区域 */
.content {
    padding: 24px;
    padding-top: 88px;
    margin-top: -64px;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card.blue {
    border-left: 4px solid #1890ff;
}

.stat-card.green {
    border-left: 4px solid #52c41a;
}

.stat-card.orange {
    border-left: 4px solid #fa8c16;
}

.stat-card.red {
    border-left: 4px solid #ff4d4f;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 按钮 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

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

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

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

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

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

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

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

.btn-default {
    background: white;
    color: #333;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    border-color: #1890ff;
    color: #1890ff;
}

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

/* 表格 */
.table-container {
    overflow-x: auto;
    clear: both;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.agreement-table {
    table-layout: auto;
}

.agreement-table th,
.agreement-table td {
    min-width: 80px;
}

.agreement-table th:nth-child(1),
.agreement-table td:nth-child(1) { min-width: 60px; }
.agreement-table th:nth-child(7),
.agreement-table td:nth-child(7) { min-width: 140px; }

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

tr:hover {
    background: #fafafa;
}

.table-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 10;
}

.table-actions .btn {
    position: relative;
    z-index: 11;
}

/* 确保表格中直接放置的按钮也能正常点击 */
td .btn {
    position: relative;
    z-index: 11;
}



/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #1890ff;
}

.search-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    min-width: 160px;
}

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

/* 标签页 */
.tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-item:hover {
    color: #1890ff;
}

.tab-item.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #1890ff;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-placeholder p {
    margin: 0;
    color: #666;
}

.form-item-full {
    grid-column: 1 / -1;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    border-color: #1890ff;
    color: #1890ff;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: modalFadeIn 0.3s ease forwards;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-overlay .modal .modal-header {
    padding: 20px 60px 20px 24px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    position: relative;
}

.modal-overlay .modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-overlay .modal .modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999999;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-sizing: border-box;
}

.modal-overlay .modal .modal-close:hover {
    color: #666666;
    background: #f5f5f5;
}

.modal-overlay .modal .modal-body {
    padding: 24px;
    padding-right: 32px;
    flex: 1;
    overflow-y: auto;
}

.modal-overlay .modal .modal-body p {
    margin: 0;
    font-size: 15px;
    color: #333333;
    line-height: 1.6;
}

.modal-overlay .modal .modal-footer {
    padding: 20px 24px;
    padding-right: 32px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    background: #fafafa;
    min-height: 72px;
    box-sizing: border-box;
}

/* 页面内置模态框（直接挂载在页面上的模态框） */
.page-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.page-modal.show {
    display: flex;
}

.page-modal .modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: slideUp 0.3s ease;
}

/* 标签内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 页面内置模态框的子元素样式（用于 .page-modal .modal-content 内部） */
.page-modal .modal-content .modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-modal .modal-content .modal-title {
    font-size: 16px;
    font-weight: 600;
}

.page-modal .modal-content .modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.page-modal .modal-content .modal-body {
    padding: 24px;
}

.page-modal .modal-content .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.status-tag.success {
    background: #f6ffed;
    color: #52c41a;
}

.status-tag.warning {
    background: #fffbe6;
    color: #faad14;
}

.status-tag.error {
    background: #fff2f0;
    color: #ff4d4f;
}

.status-tag.default {
    background: #fafafa;
    color: #666;
}

/* 面包屑 */
.breadcrumb {
    margin-bottom: 24px;
    color: #666;
    font-size: 14px;
}

.breadcrumb-item {
    display: inline-block;
}

.breadcrumb-item.active {
    color: #333;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 8px;
}

/* 表单布局 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-item-full {
    grid-column: 1 / -1;
}

/* 响应式 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* 商家详情页面 V2 - 全新布局 */
.merchant-detail-v2 {
    max-height: 70vh;
    overflow-y: auto;
    padding: 4px;
}

.merchant-detail-v2::-webkit-scrollbar {
    width: 8px;
}

.merchant-detail-v2::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.merchant-detail-v2::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.merchant-detail-v2::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* 顶部店铺信息 */
.merchant-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4fe 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.shop-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shop-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4096ff, #1890ff);
    color: #fff;
    font-size: 32px;
    font-weight: 600;
}

.shop-info-main {
    flex: 1;
    min-width: 0;
}

.shop-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.shop-name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.shop-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
}

.contact-label {
    color: #999;
    margin-right: 4px;
}

.shop-address {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.shop-intro {
    font-size: 13px;
    color: #666;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    line-height: 1.6;
    margin-top: 8px;
}

/* 统计卡片行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card-item {
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #f5f9ff;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #1890ff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-card-value.money {
    font-size: 18px;
    color: #52c41a;
}

.stat-card-label {
    font-size: 13px;
    color: #666;
}

/* 信息卡片 */
.info-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e6f4ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: #1890ff;
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.info-cell {
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 6px;
}

.info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

/* 资质文件网格 */
.qual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.qual-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    background: #fff;
}

.qual-card:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
    transform: translateY(-2px);
}

.qual-card-title {
    padding: 8px 12px;
    font-size: 13px;
    color: #555;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    text-align: center;
}

.qual-card-image {
    padding: 0;
    background: #fafafa;
}

.qual-card-image a {
    display: block;
    text-decoration: none;
}

.qual-card-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.qual-card-image:hover img {
    transform: scale(1.05);
}

.empty-tip {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 30px 20px;
    background: #fafafa;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* 状态标签 */
.status-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

.status-tag.success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-tag.warning {
    background: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.status-tag.error {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

.status-tag.default {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
}

/* 璋冩暣妯℃€佹澶у皬浠ラ€傚簲鍟嗗璇︽儏 */
.modal-overlay .modal:has(.merchant-detail-v2),
.modal-overlay .modal:has(.merchant-detail) {
    max-width: 680px;
}

/* 权限配置样式 */
.perm-section {
    margin-top: 16px;
}

.perm-group {
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.perm-group-header {
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    cursor: pointer;
}

.perm-group-header input[type="checkbox"] {
    margin-right: 8px;
}

.perm-group-items {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.perm-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all 0.2s;
}

.perm-item:hover {
    border-color: #1890ff;
    background: #e6f7ff;
}

.perm-item input[type="checkbox"] {
    margin-right: 8px;
}