/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left .logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.header-left .logo i {
    margin-right: 10px;
    font-size: 24px;
}

.header-right .user-info {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.dropdown-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.dropdown-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1001;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 主容器 */
.container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.nav-menu ul {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    margin: 5px 0;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item a:hover,
.nav-item.active a {
    background-color: #f0f8ff;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    background-color: #f5f5f5;
}

/* 页面样式 */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.page-header h1 {
    color: #333;
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
    font-size: 14px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-info h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

/* 搜索栏 */
.search-bar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-group,
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-group input {
    width: 250px;
}

/* 按钮样式 */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 80px;
    height: 32px;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
}

/* 表格中的按钮组 */
.data-table td .btn {
    margin: 0 2px;
    font-size: 11px;
    padding: 6px 10px;
    min-width: 70px;
    height: 28px;
}

.data-table td .btn i {
    font-size: 10px;
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.data-table .btn-group {
    justify-content: flex-start;
}

.data-table .btn-group .btn {
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* 表格列宽优化 */
.data-table th:nth-child(1), /* ID */
.data-table td:nth-child(1) {
    width: 80px;
    text-align: center;
}

.data-table th:nth-child(2), /* 商家名称 */
.data-table td:nth-child(2) {
    width: 200px;
}

.data-table th:nth-child(3), /* 服务到期时间 */
.data-table td:nth-child(3) {
    width: 160px;
}

.data-table th:nth-child(4), /* 操作 */
.data-table td:nth-child(4) {
    width: auto;
    min-width: 280px;
}

.data-table th,
.data-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    word-wrap: break-word;
    overflow: hidden;
}

.data-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.data-table tbody tr:nth-child(even):hover {
    background-color: #f8f9fa;
}



/* 响应式表格设计 */
@media (max-width: 992px) {
    .data-table .btn-group {
        flex-direction: column;
        gap: 2px;
    }
    
    .data-table td .btn {
        width: 100%;
        min-width: 60px;
    }
    
    .data-table th:nth-child(4), /* 操作 */
    .data-table td:nth-child(4) {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        border-radius: 8px;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }
    
    .data-table td .btn {
        font-size: 10px;
        padding: 4px 8px;
        height: 24px;
        min-width: 50px;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination button:hover {
    background-color: #f8f9fa;
}

.pagination button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 文案详情模态框需要更高的层级 */
#content-modal {
    z-index: 1100;
}

/* 商家信息网格布局 */
.merchant-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.info-item {
    position: relative;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    word-wrap: break-word;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.info-item strong {
    color: #2d3748;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-item strong::before {
    content: '●';
    color: #667eea;
    margin-right: 8px;
    font-size: 12px;
}

.info-item > div:not(.status-badge) {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.info-item img {
    border-radius: 12px;
    border: none;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-item img:hover {
    transform: scale(1.02);
}

.info-item textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.info-item textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.info-item .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-item .status-badge::before {
    content: '●';
    margin-right: 6px;
    font-size: 10px;
}

.info-item .status-active {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.info-item .status-inactive {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.info-item .status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 商家信息模态框特殊样式 */
#merchant-info-modal .modal-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#merchant-info-modal .modal-header {
    background: white;
    border-bottom: 1px solid #eee;
    color: #333;
}

#merchant-info-modal .modal-header h2 {
    color: #333;
    font-weight: 600;
}

#merchant-info-modal .close {
    color: #666;
    opacity: 0.8;
}

#merchant-info-modal .close:hover {
    color: #333;
    opacity: 1;
}

#merchant-info-modal .modal-body {
    padding: 20px;
    max-height: calc(90vh - 120px);
    overflow: auto;
    background: white;
}

.modal {
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group,
    .filter-group {
        justify-content: stretch;
    }
    
    .search-group input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    /* 商家信息模态框移动端优化 */
    .merchant-info-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-height: 75vh;
        padding: 15px;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    .info-item {
        padding: 16px;
    }
    
    .info-item strong {
        font-size: 14px;
    }
    
    .info-item > div:not(.status-badge) {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    #merchant-info-modal .modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 96vh;
    }
    
    #merchant-info-modal .modal-body {
        padding: 0;
        max-height: calc(96vh - 100px);
        overflow: hidden;
    }
    
    #merchant-info-modal .modal-header {
        padding: 15px;
    }
    
    #merchant-info-modal .modal-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .merchant-info-grid {
        gap: 15px;
        padding: 10px;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    .info-item {
        padding: 14px;
    }
    
    .info-item strong {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .info-item > div:not(.status-badge) {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .info-item img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .info-item .status-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    #merchant-info-modal .modal-content {
        width: 100%;
        margin: 0;
        height: 100vh;
        border-radius: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    #merchant-info-modal .modal-body {
        padding: 0;
        max-height: calc(100vh - 80px);
        overflow: hidden;
    }
    
    #merchant-info-modal .modal-header {
        padding: 12px;
    }
    
    #merchant-info-modal .modal-header h2 {
        font-size: 16px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提示消息 */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 商家信息容器 - 新设计 */
.merchant-profile-container {
    padding: 0;
    max-width: 100%;
}

/* 商家头部信息卡片 */
.merchant-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.merchant-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.merchant-header-info {
    flex: 1;
}

.merchant-header-info h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.merchant-header-info p {
    margin: 5px 0;
    font-size: 16px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.merchant-header-info i {
    width: 16px;
    text-align: center;
}

.merchant-status {
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 信息卡片网格 */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 0;
}

/* 商家信息布局 */
.merchant-info-layout {
    display: flex;
    gap: 24px;
    min-height: 500px;
}

.info-section-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 信息卡片样式 */
.info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e9ea;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3,
.card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.card-header i {
    font-size: 18px;
    color: white;
}

.card-body,
.card-content {
    padding: 20px;
}

/* 现代化表单行样式 */
.info-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8ecf0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-row:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row.full-width {
    flex-direction: column;
    gap: 8px;
}

.info-row .info-label,
.info-row .label {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    flex-shrink: 0;
}

.info-row .info-label::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.info-row .value {
    color: #2d3748;
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* 现代化显示容器 */
.info-display-container {
    position: relative;
    width: 100%;
    min-height: 48px;
}

/* 现代化显示元素样式 */
.info-row .info-value {
    display: block;
    width: 100%;
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
    padding: 14px 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid transparent;
    min-height: 48px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    line-height: 1.5;
    word-wrap: break-word;
}

.info-row .text-content {
    display: block;
    width: 100%;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.6;
    min-height: 80px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid transparent;
    white-space: pre-wrap;
    box-sizing: border-box;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-row .password-field {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid transparent;
    min-height: 48px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 现代化输入框样式 */
.info-row .info-input {
    display: none;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

.edit-mode .info-row .info-input {
    display: block;
}

.info-row textarea.info-input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}

.info-row .info-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: #ffffff;
}

/* 简化的编辑模式样式 */
.edit-mode .info-value,
.edit-mode .text-content,
.edit-mode .password-field {
    display: none;
}

/* 输入框获得焦点时的增强样式 */
.info-row .info-input:hover {
    border-color: #cbd5e0;
}

.info-row .info-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* 卡片布局优化 */
.card-body {
    padding: 0;
    background: #fafbfc;
}

.card-body .info-row:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.card-body .info-row:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

/* 店铺详情信息项样式 */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.info-item.full-width {
    width: 100%;
}

.info-item .info-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 统一的文本内容样式 */
.text-content {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 60px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

.text-content:empty::before {
    content: "暂无信息";
    color: #9ca3af;
    font-style: italic;
}

/* 输入框样式 */
.info-input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.info-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 现代化密码字段样式 */
.password-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid transparent;
    min-height: 48px;
    transition: all 0.3s ease;
}

.password-text {
    flex: 1;
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
    letter-spacing: 2px;
}

.toggle-password {
    color: #718096;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.toggle-password:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.reset-password-btn {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.2);
}

.reset-password-btn:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

/* 二维码容器 */
.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #6c757d;
}

.qr-placeholder i {
    font-size: 48px;
    opacity: 0.5;
}

.qr-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

/* 图片预览容器 */
.images-preview-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 120px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.images-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    color: #6c757d;
}

.images-placeholder i {
    font-size: 32px;
    opacity: 0.5;
}

.images-placeholder span {
    font-size: 14px;
    font-weight: 500;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .merchant-info-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-section-left,
    .info-section-right {
        flex: none;
    }
}

/* 密码重置对话框样式 */
.password-reset-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.password-reset-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.password-reset-content h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.password-reset-content .form-group {
    margin-bottom: 16px;
}

.password-reset-content label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
}

.password-reset-content input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.password-reset-content input:focus {
    outline: none;
    border-color: #667eea;
}

.password-reset-content .help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.password-reset-content .button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.password-reset-content button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.password-reset-content .btn-cancel {
    background: #6c757d;
    color: white;
}

.password-reset-content .btn-cancel:hover {
    background: #5a6268;
}

.password-reset-content .btn-confirm {
    background: #28a745;
    color: white;
}

.password-reset-content .btn-confirm:hover {
    background: #218838;
}

/* 新图片预览样式 */
.images-preview-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    min-height: 60px;
}

.images-preview-new .image-item-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.images-preview-new .image-item-wrapper:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.images-preview-new .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border: none;
}

.images-preview-new .image-type-label {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.images-preview-new:empty::before {
    content: "暂无图片";
    color: #9ca3af;
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e9ecef;
}

/* 查看全部按钮样式 */
.view-all-btn {
    width: 100%;
    padding: 10px;
    border: 2px dashed #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-all-btn:hover {
    background: #007bff;
    color: white;
    border-style: solid;
}

/* 二维码显示样式 */
.qr-content {
    text-align: center;
}

.qr-display {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e9ecef;
}

.qr-display img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-display:empty::before {
    content: "暂无二维码";
    color: #9ca3af;
    font-style: italic;
}

/* 模态框操作按钮 */
.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-actions .btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.modal-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 编辑模式样式 */
.info-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.info-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.info-input[type="date"] {
    color: #333;
}

textarea.info-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* 编辑模式时隐藏显示元素 */
.edit-mode .info-value,
.edit-mode .text-content,
.edit-mode .password-field {
    display: none !important;
}

.edit-mode .info-input {
    display: block !important;
}

/* 密码字段特殊处理 */
.edit-mode .password-field {
    display: none !important;
}

.edit-mode #merchant-password-input {
    display: block !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .info-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .merchant-header-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .merchant-header-info h3 {
        font-size: 24px;
    }
    
    .merchant-status {
        text-align: center;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-row .label {
        min-width: auto;
        font-weight: 600;
    }
    
    .images-preview-new {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
}

/* 保留原有样式以兼容其他部分 */
.merchant-info-container {
    display: flex;
    gap: 30px;
    height: 100%;
}

.merchant-info-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.merchant-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 商家基础信息样式 */
.merchant-basic-info {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

/* 特殊字段样式 */
.info-value.long-text {
    max-height: 100px;
    overflow-y: auto;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.info-value.password {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

/* 商家图片样式 */
.merchant-images {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.merchant-images h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 16px;
}

.images-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.image-item-wrapper {
    position: relative;
    display: inline-block;
}

.preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.preview-image:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.image-type-label {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    pointer-events: none;
}

/* 二维码容器样式 */
.qr-code-container {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.qr-code-container h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 16px;
}

.qr-code-container img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

/* 图片画廊样式 */
.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.gallery-item-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border: none;
    display: block;
}

.gallery-image:hover {
    border-color: #999;
}

.gallery-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 10px 8px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-image-type {
    font-size: 12px;
    font-weight: 500;
}

.gallery-image-index {
    font-size: 11px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .merchant-info-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .merchant-info-left,
    .merchant-info-right {
        flex: none;
    }
    
    .images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-image {
        height: 150px;
    }
}

/* 文案详情图片展示样式 */
.content-detail-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.content-detail-container::-webkit-scrollbar {
    width: 6px;
}

.content-detail-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.content-detail-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.content-detail-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 图片预览容器 */
.image-preview-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #fafafa;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.image-preview-container:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

/* 文案详情中的图片样式 */
.content-image-preview {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 10px auto;
    border: 1px solid #ddd;
}

.content-image-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

/* 图片URL显示 */
.image-url-display {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.image-url-display small {
    color: #6c757d;
    font-size: 12px;
}

/* 详情图片网格布局 */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

/* 无图片占位符 */
.no-image-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    font-style: italic;
}

.no-image-placeholder::before {
    content: "📷";
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* 响应式设计 - 文案详情 */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .content-image-preview {
        max-height: 200px;
    }
    
    .image-preview-container {
        padding: 10px;
    }
    
    .content-detail-container {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .content-image-preview {
        max-height: 150px;
    }
    
    .image-url-display {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* 浮动提示样式 */
.floating-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

.floating-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.floating-alert-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-alert-content i {
    font-size: 16px;
    flex-shrink: 0;
}

.floating-alert-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.floating-alert-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.floating-alert-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.floating-alert-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* 多个提示的堆叠效果 */
.floating-alert:nth-child(n+2) {
    top: calc(20px + (60px * var(--alert-index, 0)));
}

/* 移动端优化 */
@media (max-width: 768px) {
    .floating-alert {
        top: 10px;
        padding: 10px 16px;
        font-size: 13px;
        max-width: 95vw;
        border-radius: 20px;
    }
    
    .floating-alert-content i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .floating-alert {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 18px;
    }
    
    .floating-alert-content {
        gap: 6px;
    }
    
    .floating-alert-content i {
        font-size: 13px;
    }
}