/* 商家管理页面样式 - 现代化设计 */
.merchant-main {
    margin-top: calc(var(--header-height) + var(--nav-height));
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    background: #f8fafc;
    padding: 24px 0;
}

.merchant-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式宽度设置 */
@media (min-width: 1280px) { 
    .merchant-container { max-width: 1280px; } 
}
@media (min-width: 1440px) { 
    .merchant-container { max-width: 1400px; } 
}
@media (min-width: 1600px) { 
    .merchant-container { max-width: 1500px; } 
}

/* 商家概览卡片 */
.merchant-overview {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.merchant-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.merchant-avatar {
    position: relative;
    flex-shrink: 0;
}

.merchant-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 2px solid #ff6e30;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.status-badge i {
    color: white;
    font-size: 10px;
}

.merchant-details {
    flex: 1;
}

.merchant-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.merchant-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

.expiry-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.expiry-info i {
    color: #9ca3af;
}

.renewal-btn {
    padding: 6px 12px;
    background: #ff6e30;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.renewal-btn:hover {
    background: #e55a2b;
}

/* 快速统计 */
.quick-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    min-width: 80px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* 主要功能区 */
.main-functions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 快速操作区 */
.quick-actions {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #ff6e30;
    font-size: 18px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.action-card:hover {
    border-color: #ff6e30;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-card.primary {
    background: linear-gradient(135deg, #fff7f0, #fff);
    border-color: #ffb784;
}

.action-card.primary:hover {
    border-color: #ff6e30;
    background: linear-gradient(135deg, #fff, #fff7f0);
}

.action-icon {
    width: 48px;
    height: 48px;
    background: #ff6e30;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-card.primary .action-icon {
    background: #ff6e30;
}

.action-icon i {
    color: white;
    font-size: 20px;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.action-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* 详细信息区 */
.detail-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.detail-content {
    min-height: 400px;
}

/* 我的招聘列表样式 */
.my-recruitment-panel {
    width: 100%;
}

.recruitment-list-container {
    width: 100%;
}

.recruitment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recruitment-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.recruitment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #ff6e30;
}

.recruitment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.recruitment-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.recruitment-salary {
    font-size: 16px;
    font-weight: 600;
    color: #ff6e30;
    white-space: nowrap;
}

.recruitment-content {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    max-height: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.recruitment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.recruitment-address {
    font-size: 14px;
    color: #6b7280;
    flex: 1;
}

.recruitment-date {
    font-size: 14px;
    color: #9ca3af;
}

.btn-delete-recruitment {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-delete-recruitment:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #b91c1c;
}

.btn-delete-recruitment i {
    font-size: 14px;
}

.empty-state,
.error-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: #9ca3af;
}

.empty-state p,
.error-state {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* 其他功能 */
.other-functions {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.function-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.function-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.function-item:hover {
    border-color: #ff6e30;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.function-icon {
    width: 40px;
    height: 40px;
    background: #6b7280;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.function-item:hover .function-icon {
    background: #ff6e30;
}

.function-icon i {
    color: white;
    font-size: 16px;
}

.function-content {
    flex: 1;
}

.function-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.function-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.function-arrow {
    color: #9ca3af;
    transition: all 0.2s ease;
}

.function-item:hover .function-arrow {
    color: #ff6e30;
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .merchant-container {
        padding: 0 16px;
    }
    
    .merchant-overview {
        padding: 20px;
    }
    
    .overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .merchant-info {
        width: 100%;
    }
    
    .quick-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .stat-card {
        flex: 1;
        min-width: auto;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions,
    .other-functions,
    .detail-section {
        padding: 20px;
    }
    
    .action-card,
    .function-item {
        padding: 16px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
    }
    
    .action-icon i {
        font-size: 18px;
    }
    
    .function-icon {
        width: 36px;
        height: 36px;
    }
    
    .function-icon i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .merchant-main {
        padding: 16px 0;
    }
    
    .merchant-overview {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .merchant-avatar img {
        width: 56px;
        height: 56px;
    }
    
    .merchant-name {
        font-size: 20px;
    }
    
    .merchant-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .quick-stats {
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .quick-actions,
    .other-functions,
    .detail-section {
        padding: 16px;
    }
    
    .action-card,
    .function-item {
        padding: 12px;
        gap: 12px;
    }
    
    .action-content h3,
    .function-content h3 {
        font-size: 15px;
    }
    
    .action-content p,
    .function-content p {
        font-size: 13px;
    }
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.info-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-large);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 140, 69, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.info-icon i {
    color: white;
    font-size: 20px;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.info-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.info-arrow {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.info-card:hover .info-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* 弹窗样式 */
.login-modal,
.permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.login-modal.show,
.permission-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-large);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-modal.show .modal-content,
.permission-modal.show .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-gray);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--border-color);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-body p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-lg) 0;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-medium);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .merchant-main {
        margin-top: var(--header-height);
        padding: var(--spacing-lg) 0;
    }
    
    .merchant-info-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .merchant-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .merchant-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .function-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .merchant-section {
        padding: var(--spacing-lg);
    }
    
    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .merchant-stats {
        grid-template-columns: 1fr;
    }
    
    .merchant-expiry {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* 商家入驻引导弹窗专业UI设计 */
.permission-modal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 520px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.permission-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.permission-modal .modal-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 24px 28px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.permission-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.permission-modal .modal-icon {
    font-size: 32px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.permission-modal .modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.permission-modal .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.permission-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.permission-modal .modal-body {
    padding: 32px 28px;
    background: white;
}

.merchant-benefits h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 20px 0;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #4a5568;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li:hover {
    color: #ff6b35;
    padding-left: 8px;
}

.benefits-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.permission-modal .modal-footer {
    padding: 20px 28px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.permission-modal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.permission-modal .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.permission-modal .btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.permission-modal .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.permission-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .permission-modal .modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .permission-modal .modal-header {
        padding: 20px;
    }
    
    .permission-modal .modal-body {
        padding: 24px 20px;
    }
    
    .permission-modal .modal-footer {
        padding: 16px 20px 20px;
        flex-direction: column;
    }
    
    .permission-modal .btn {
        width: 100%;
    }
}

/* 找价格管理列表样式 */
.price-manage-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-manage-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.price-manage-toolbar .btn-primary,
.price-manage-toolbar .btn-secondary {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-manage-toolbar .btn-primary {
    background: #ff6e30;
    color: #fff;
}

.price-manage-toolbar .btn-primary:hover {
    background: #e55a20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 110, 48, 0.3);
}

.price-manage-toolbar .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.price-manage-toolbar .btn-secondary:hover {
    background: #e5e7eb;
}

.price-manage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.price-card:hover {
    border-color: #ff6e30;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.price-thumb {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.price-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-body h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.price-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #fce7f3;
    color: #db2777;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.price-amount {
    font-size: 18px;
    font-weight: 600;
    color: #ff6e30;
}

.price-date {
    font-size: 13px;
    color: #6b7280;
}

.price-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.price-actions .btn,
.price-actions .btn-danger {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 88px;
    max-width: 120px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.price-actions .btn {
    background: #f3f4f6;
    color: #1f2937;
}

.price-actions .btn:hover {
    background: #e5e7eb;
}

.price-actions .btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.price-actions .btn-danger:hover {
    background: #fecaca;
    color: #b91c1c;
}

.price-empty,
.price-error {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.price-empty i,
.price-error i {
    display: block;
    font-size: 56px;
    margin-bottom: 4px;
    opacity: 0.3;
}

.price-load-more {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.price-load-more button {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

.price-load-more button:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* 本地直通管理列表样式 - 与找价格管理保持一致 */
.local-manage-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.local-manage-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.local-manage-toolbar .btn-primary,
.local-manage-toolbar .btn-secondary {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.local-manage-toolbar .btn-primary {
    background: #ff6e30;
    color: #fff;
}

.local-manage-toolbar .btn-primary:hover {
    background: #e55a20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 110, 48, 0.3);
}

.local-manage-toolbar .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.local-manage-toolbar .btn-secondary:hover {
    background: #e5e7eb;
}

.local-manage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.local-site-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.local-site-item:hover {
    border-color: #ff6e30;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.local-site-time {
    font-size: 13px;
    color: #6b7280;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.local-site-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.local-site-img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    object-fit: cover;
}

.local-site-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.local-site-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
}

.local-site-tag {
    font-size: 13px;
    color: #6b7280;
}

.local-site-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.local-site-actions .btn,
.local-site-actions .btn-danger {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.local-site-actions .btn {
    background: #f3f4f6;
    color: #1f2937;
}

.local-site-actions .btn:hover {
    background: #e5e7eb;
}

.local-site-actions .btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.local-site-actions .btn-danger:hover {
    background: #fecaca;
    color: #b91c1c;
}

.local-empty,
.local-error {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.local-empty i,
.local-error i {
    display: block;
    font-size: 56px;
    margin-bottom: 4px;
    opacity: 0.3;
    color: #9ca3af;
}

.local-empty p,
.local-error p {
    margin: 0;
}

.local-load-more {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.local-load-more button {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

.local-load-more button:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .local-site-content {
        flex-direction: column;
    }
    
    .local-site-img {
        width: 100%;
        height: 200px;
    }
    
    .local-manage-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }
    
    .local-manage-toolbar .btn-primary,
    .local-manage-toolbar .btn-secondary {
        width: auto;
    }
    
    .local-site-actions {
        flex-direction: column;
    }
    
    .local-site-actions .btn,
    .local-site-actions .btn-danger {
        width: 100%;
    }
}

.price-load-more button:hover {
    border-color: #ff6e30;
    color: #ff6e30;
}

/* 添加工地弹窗 */
.add-site-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    overflow: auto;
    padding-top: 60px;
    padding-bottom: 40px;
}

.add-site-modal.show {
    display: flex;
}

.add-site-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
}

.add-site-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10001;
}

.add-site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.add-site-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.add-site-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-site-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.add-site-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.add-site-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.add-site-footer .btn-outline {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-site-footer .btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.add-site-footer .btn-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #ff6e30;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 110, 48, 0.2);
}

.add-site-footer .btn-primary:hover {
    background: #e55a20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 110, 48, 0.3);
}

.add-site-footer .btn-primary:active {
    transform: translateY(0);
}

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

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

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6e30;
    box-shadow: 0 0 0 3px rgba(255, 110, 48, 0.1);
}

.form-group input[readonly] {
    background: #f9fafb;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-item {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-item:hover {
    border-color: #ff6e30;
    color: #ff6e30;
}

.category-item.active {
    background: #ff6e30;
    border-color: #ff6e30;
    color: #fff;
}

.btn-location {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-location:hover {
    background: #f3f4f6;
    border-color: #ff6e30;
    color: #ff6e30;
}

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.image-upload-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.image-upload-item.upload-btn {
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.image-upload-item.upload-btn:hover {
    border-color: #ff6e30;
    background: #fff5f2;
    color: #ff6e30;
}

.image-upload-item.upload-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.image-upload-item.upload-btn span {
    font-size: 12px;
}

.image-upload-item.image-item {
    border: 1px solid #e5e7eb;
}

.image-upload-item.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-actions {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-upload-item.image-item:hover .image-actions {
    opacity: 1;
}

.image-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.image-actions button:hover {
    background: #fff;
    transform: scale(1.1);
}

.image-actions .image-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* 地图选择器弹窗 */
.map-picker-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 10009;
}

.map-picker-modal.show {
    display: flex;
}

.map-picker-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
}

.map-picker-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10010;
}

.map-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.map-picker-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.map-picker-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-picker-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.map-picker-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.map-container {
    width: 100%;
    flex: 1;
    min-height: 400px;
    max-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.map-search-box {
    display: flex;
    gap: 8px;
}

.map-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.map-search-input:focus {
    outline: none;
    border-color: #ff6e30;
    box-shadow: 0 0 0 3px rgba(255, 110, 48, 0.1);
}

.map-search-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #ff6e30;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-search-btn:hover {
    background: #e55a20;
}

.map-selected-info {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.selected-address {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.map-picker-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.map-picker-footer .btn-outline {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-picker-footer .btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.map-picker-footer .btn-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #ff6e30;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 110, 48, 0.2);
}

.map-picker-footer .btn-primary:hover {
    background: #e55a20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 110, 48, 0.3);
}

/* 找价格开通弹窗 */
.merchant-price-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    overflow: auto;
    padding-top: 120px;
    padding-bottom: 40px;
}

.merchant-price-modal.show {
    display: flex;
}

.merchant-price-overlay {
    position: fixed;
    inset: 0;
}

.merchant-price-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: min(680px, 90vw);
    max-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.merchant-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.merchant-price-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.merchant-price-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.merchant-price-email input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.merchant-price-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.merchant-price-plan {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.merchant-price-plan:hover {
    border-color: #ff6e30;
    box-shadow: 0 8px 18px rgba(255, 110, 48, 0.1);
}

.merchant-price-plan.selected {
    border-color: #ff6e30;
    background: rgba(255, 110, 48, 0.08);
}

.merchant-price-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.merchant-price-actions button {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.merchant-price-actions .btn-outline {
    background: #f3f4f6;
    color: #374151;
}

.merchant-price-actions .btn-outline:hover {
    background: #e5e7eb;
}

.merchant-price-actions .btn-primary {
    background: #ff6e30;
    color: #fff;
}

.merchant-price-actions .btn-primary:hover {
    background: #e55a20;
}

@media (max-width: 768px) {
    .price-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .price-thumb {
        width: 100%;
        height: 200px;
    }
    .merchant-price-modal {
        padding-top: 100px;
    }
    .merchant-price-content {
        width: 92vw;
    }
}
