/* 找价格页面样式 */

.price-page {
    min-height: 100vh;
    background: var(--bg-color);
    padding-top: var(--header-height);
    position: relative;
    z-index: 1;
}

/* 确保头部样式不被影响 */
.header {
    z-index: 10000 !important;
}

/* 确保城市选择弹窗在找价格页面正确显示 */
.city-drawer {
    z-index: 10001 !important;
}

/* 保护头部搜索框样式不被页面搜索框影响 */
.header .search-box input {
    width: 100% !important;
    height: 40px !important;
    padding: 0 48px 0 16px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-large) !important;
    background-color: var(--bg-gray) !important;
    font-size: 14px !important;
    outline: none !important;
}

.header .search-box input:focus {
    background-color: var(--bg-white) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.1) !important;
}

.header .search-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: var(--radius-medium) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 14px !important;
    transition: background-color 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 英雄区域 */
.price-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.price-hero::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.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.price-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 300px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.price-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 500px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* 搜索和筛选区域 */
.price-search-section {
    background: var(--bg-white);
    padding: 50px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
}

.price-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 16px;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
    opacity: 0.6;
}

.search-section {
    flex-shrink: 0;
    min-width: 300px;
}

.price-search-section .search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0 0 0 16px;
    transition: all 0.2s ease;
    min-width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden; /* keep button flush with right edge */
}

.price-search-section .search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(245, 140, 69, 0.12);
}

.price-search-section .search-input-wrapper .icon-search {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-right: 10px;
}

.price-search-section .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    margin-right: 0;
    font-size: 0.9rem;
    outline: none;
    color: var(--text-primary);
}

.price-search-section .search-input::placeholder {
    color: var(--text-placeholder);
    font-size: 0.9rem;
}

.price-search-section .search-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 0 16px 16px 0 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-left: 0 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
}

.price-search-section .search-btn:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 2px 8px rgba(245, 140, 69, 0.25) !important;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(245, 140, 69, 0.05);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(245, 140, 69, 0.2);
}

.location-selector {
    display: flex;
    align-items: center;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-regular);
    font-size: 0.9rem;
    white-space: nowrap;
}

.location-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(245, 140, 69, 0.05);
}

.location-btn .icon-location {
    color: var(--primary-color);
}

.location-btn .icon-arrow-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.location-btn:hover .icon-arrow-down {
    transform: rotate(180deg);
}

/* 内容区域 */
.price-content {
    background: var(--bg-gray);
    padding: 60px 0;
    min-height: 60vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}


/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, var(--error-color), #ff6b6b);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    height: auto;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.product-price .currency {
    font-size: 0.9rem;
    margin-right: 2px;
}


.product-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.product-btn {
    flex: 1;
    max-width: 120px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.product-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 140, 69, 0.4);
}

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

.product-btn.secondary:hover {
    background: var(--border-light);
    color: var(--text-regular);
}

/* 加载更多 */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 20px 0;
}

.load-more-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 140, 69, 0.3);
    min-width: 140px;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 140, 69, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    margin-bottom: 30px;
}

.empty-icon img {
    max-width: 200px;
    height: auto;
    opacity: 0.6;
}

.empty-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.empty-desc {
    font-size: 1rem;
    color: var(--text-placeholder);
    max-width: 400px;
    margin: 0 auto;
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .price-hero {
        padding: 50px 0 40px;
        min-height: 300px;
    }
    
    .hero-row {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        min-height: auto;
    }
    
    .price-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 16px;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        order: 1;
    }
    
    .filter-divider {
        display: none;
    }
    
    .search-section {
        order: 2;
        width: 100%;
    }
    
    .price-search-section .search-input-wrapper {
        min-width: 100%;
    }
    
    .filter-tabs {
        justify-content: center;
        gap: 6px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .location-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .content-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .content-title {
        font-size: 1.25rem;
        margin: 0;
    }
    
    .btn-publish-price {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .product-card {
        margin: 0;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 12px;
        min-height: 110px;
        display: flex;
        flex-direction: column;
    }
    
    .product-title {
        font-size: 0.85rem;
        margin-bottom: 6px;
        height: 2.6em;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .product-price .currency {
        font-size: 0.75rem;
    }
    
    .product-actions {
        margin-top: auto;
    }
    
    .product-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        max-width: 100px;
    }
    
    .load-more-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .price-search-section .search-input-wrapper {
        max-width: 100%;
    }
    
    .product-info {
        height: auto;
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .price-hero {
        padding: 40px 0 30px;
        min-height: 280px;
    }
    
    .price-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        margin: 0;
    }
    
    .product-image {
        height: 130px;
    }
    
    .product-info {
        padding: 10px;
        min-height: 100px;
        display: flex;
        flex-direction: column;
    }
    
    .product-title {
        font-size: 0.8rem;
        margin-bottom: 5px;
        height: 2.6em;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .product-price .currency {
        font-size: 0.7rem;
    }
    
    .product-actions {
        margin-top: auto;
    }
    
    .product-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        max-width: 90px;
    }
    
    .load-more-btn {
        padding: 9px 20px;
        font-size: 0.8rem;
        min-width: 90px;
    }
}

/* 发布找价格按钮 */
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-publish-price {
    padding: 10px 20px;
    background: #ff6e30;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 统一“开通商家服务”提示弹窗样式为全站样式 */
/* 加强选择器与 !important，避免被后续 merchant.css 复写 */
.price-page .permission-modal,
body .permission-modal {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}
.price-page .permission-modal.show,
body .permission-modal.show {
    display: flex !important;
}
.price-page .permission-modal .modal-content,
body .permission-modal .modal-content {
    width: min(520px, 90vw) !important;
    max-width: 520px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}
.price-page .permission-modal .modal-body,
body .permission-modal .modal-body {
    padding: 32px 28px !important;
}

/* 开通找价格弹窗样式（复用开通招聘弹窗） */
.enable-recruit-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 9000;
    padding-top: calc(var(--header-height, 80px) + 120px);
    padding-bottom: 20px;
    overflow: auto;
}

.enable-recruit-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.enable-recruit-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    width: min(680px, 92vw);
    max-height: calc(100vh - var(--header-height, 80px) - 140px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.enable-recruit-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor:pointer;
    line-height: 1;
    padding: 4px 8px;
}

.enable-recruit-body {
    padding: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.enable-recruit-tip {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.enable-recruit-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.enable-recruit-plan {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.enable-recruit-plan:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.enable-recruit-plan.selected {
    border-color: var(--primary-color);
    background: rgba(255, 109, 49, .06);
}

.enable-recruit-plan .plan-title {
    font-weight: 600;
}

.enable-recruit-plan .plan-price {
    color: var(--primary-color);
}

.enable-recruit-body .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

@media (max-width: 768px) {
    .enable-recruit-modal {
        padding-top: calc(var(--header-height, 80px) + 100px);
    }

    .enable-recruit-content {
        width: 94vw;
        max-height: calc(100vh - var(--header-height, 80px) - 120px);
    }

    .enable-recruit-plans {
        grid-template-columns: 1fr;
    }
}

/* 发布找价格弹窗样式（复用招聘弹窗样式） */
.publish-price-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 9000;
    padding-top: calc(var(--header-height, 80px) + 120px);
    padding-bottom: 20px;
    overflow: auto;
}

.publish-price-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.publish-price-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    width: min(900px, 94vw);
    max-height: calc(100vh - var(--header-height, 80px) - 140px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.publish-price-header h3 {
    margin: 0;
    font-size: 18px;
}

.publish-price-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.publish-price-close:hover {
    background: #f0f0f0;
    color: #333;
}

.publish-price-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tab切换 */
.publish-price-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.publish-price-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.publish-price-tab:hover {
    color: #ff6e30;
}

.publish-price-tab.active {
    color: #ff6e30;
    border-bottom-color: #ff6e30;
    font-weight: 600;
}

.publish-price-tab-content {
    display: none;
}

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

/* 表单样式 */
.publish-price-body .form-group {
    margin-bottom: 16px;
}

.publish-price-body .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 14px;
}

.publish-price-body .form-group .required {
    color: #ff4757;
    margin-right: 4px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input.error {
    border-color: #ff4757;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-symbol {
    color: #666;
    font-weight: 600;
}

.form-select-btn {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-select-btn:hover {
    border-color: var(--primary-color);
}

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

.category-option {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 图片上传 */
.image-upload-area {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.image-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.image-upload-btn {
    width: 120px;
    height: 120px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-btn:hover {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--primary-color);
}

.images-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.image-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

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

/* 富文本编辑器 */
.rich-editor-wrapper {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

#priceRichEditor {
    min-height: 300px;
    font-size: 14px;
    line-height: 1.6;
}

/* Quill编辑器样式调整 */
.rich-editor-wrapper .ql-container {
    font-family: inherit;
    font-size: 14px;
}

.rich-editor-wrapper .ql-editor {
    min-height: 300px;
    padding: 12px;
}

.rich-editor-wrapper .ql-editor.ql-blank::before {
    color: #999;
    font-style: normal;
}

.rich-editor-wrapper .ql-toolbar {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background: #fafafa;
}

.rich-editor-wrapper .ql-container {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.rich-editor-wrapper .ql-editor img {
    max-width: 100%;
    height: auto;
}

.field-error {
    display: none;
    margin-top: 4px;
    font-size: 12px;
    color: #ff4757;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .publish-price-modal {
        padding-top: calc(var(--header-height, 80px) + 100px);
    }
    
    .publish-price-content {
        width: 94vw;
        max-height: calc(100vh - var(--header-height, 80px) - 120px);
    }
}
