/* ========== 设备需求详情页样式 ========== */

/* 覆盖主题色 - 与设备更新平台一致 */
body[data-page="equipment-demand-detail"] {
    --primary-color: #059669;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* 页面主体 */
.eq-demand-detail-main {
    padding: 90px 0 60px;
    background: #f8fafc;
    min-height: 100vh;
}

/* 面包屑 */
.eq-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
}

.eq-detail-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.eq-detail-breadcrumb a:hover {
    color: #059669;
}

.eq-detail-breadcrumb .separator {
    color: #cbd5e1;
}

.eq-detail-breadcrumb .current {
    color: #1e293b;
    font-weight: 500;
}

/* 布局 */
.eq-detail-layout {
    display: flex;
    gap: 24px;
}

.eq-detail-content {
    flex: 1;
    min-width: 0;
}

.eq-detail-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 需求标题区域 */
.eq-demand-title-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.eq-demand-status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.eq-demand-status-badge.collecting {
    background: #ecfdf5;
    color: #059669;
}

.eq-demand-status-badge.closed {
    background: #f1f5f9;
    color: #94a3b8;
}

.eq-demand-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 16px;
}

.eq-demand-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.eq-demand-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.eq-demand-meta .meta-item svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.eq-demand-meta .deadline-highlight {
    color: #059669;
    font-weight: 600;
}

/* 详情卡片 */
.eq-detail-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s;
}

.eq-detail-card:hover {
    border-color: #d1fae5;
}

.eq-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.eq-card-title svg {
    color: #059669;
    flex-shrink: 0;
}

/* 企业信息 */
.eq-company-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.eq-company-info:hover {
    background: #f0fdf4;
}

.eq-company-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    font-size: 28px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.eq-company-detail {
    flex: 1;
    min-width: 0;
}

.eq-company-detail h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.eq-company-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.eq-company-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 4px;
    color: #059669;
    background: #ecfdf5;
}

.eq-company-tag.verified {
    color: #2563eb;
    background: #dbeafe;
}

.eq-company-contact {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}

.eq-company-view {
    font-size: 13px;
    color: #059669;
    font-weight: 500;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.eq-company-info:hover .eq-company-view {
    transform: translateX(4px);
}

/* 信息网格 */
.eq-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.eq-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
}

.eq-info-label {
    font-size: 13px;
    color: #94a3b8;
}

.eq-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.eq-info-value.price {
    color: #059669;
    font-size: 18px;
}

/* 技术参数 */
.eq-spec-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.eq-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.eq-spec-label {
    font-size: 12px;
    color: #64748b;
}

.eq-spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
}

/* 详细描述 */
.eq-detail-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

.eq-detail-desc h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 20px 0 10px;
}

.eq-detail-desc h4:first-child {
    margin-top: 0;
}

.eq-detail-desc p {
    margin-bottom: 10px;
}

.eq-detail-desc strong {
    color: #1e293b;
}

/* 已报价列表 */
.eq-quoted-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eq-quoted-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    transition: background 0.2s;
}

.eq-quoted-item:hover {
    background: #f0fdf4;
}

.eq-quoted-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.eq-quoted-info {
    flex: 1;
    min-width: 0;
}

.eq-quoted-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.eq-quoted-time {
    font-size: 12px;
    color: #94a3b8;
}

.eq-quoted-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.eq-quoted-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.eq-quoted-status.approved {
    background: #ecfdf5;
    color: #059669;
}

.eq-quoted-status.rejected {
    background: #f1f5f9;
    color: #94a3b8;
}

/* 侧边栏 */
.eq-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.eq-sidebar-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.eq-sidebar-primary {
    text-align: center;
    border-color: #d1fae5;
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.eq-sidebar-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 16px;
    color: white;
}

.eq-sidebar-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* 概览列表 */
.eq-overview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eq-overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.eq-overview-item:last-child {
    border-bottom: none;
}

.eq-overview-label {
    font-size: 14px;
    color: #64748b;
}

.eq-overview-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.eq-overview-value.status-collecting {
    color: #059669;
}

.eq-overview-value.status-closed {
    color: #94a3b8;
}

/* 相似需求 */
.eq-similar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eq-similar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.eq-similar-item:hover {
    background: #f0fdf4;
    transform: translateX(4px);
}

.eq-similar-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.eq-similar-meta {
    font-size: 13px;
    color: #059669;
}

/* 温馨提示 */
.eq-sidebar-tips {
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
    border-color: #fde68a;
}

.eq-sidebar-tips ul {
    list-style: none;
    padding: 0;
}

.eq-sidebar-tips li {
    padding: 8px 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}

.eq-sidebar-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* 全宽按钮 */
.full-width {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.5);
}

/* 表单样式增强 */
.modal .form-group {
    margin-bottom: 16px;
}

.modal .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.modal .form-group .required {
    color: #ef4444;
}

.modal .form-group input,
.modal .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .eq-detail-layout {
        flex-direction: column;
    }

    .eq-detail-sidebar {
        width: 100%;
    }

    .eq-spec-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .eq-demand-page-title {
        font-size: 20px;
    }

    .eq-demand-meta {
        flex-direction: column;
        gap: 8px;
    }

    .eq-info-grid {
        grid-template-columns: 1fr;
    }

    .eq-company-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .eq-company-view {
        margin-top: 8px;
    }

    .eq-company-contact {
        flex-direction: column;
        gap: 4px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}
