/* 项目详情页面样式 */

/* ===== 详情页Banner文字左对齐覆盖 ===== */
.page-banner .banner-content {
    text-align: left;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: #f8fafc;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

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

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin: 0 10px;
    color: #9ca3af;
    font-size: 18px;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #f97316;
}

.breadcrumb-item a svg {
    width: 16px;
    height: 16px;
}

.breadcrumb-item.active {
    color: #1f2937;
    font-weight: 500;
}

.detail-container {
    background: #f8fafc;
    padding: 40px 0 80px;
}

.detail-layout {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧主内容 */
.detail-main {
    background: transparent;
}

/* 项目头部 */
.detail-header {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

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

.status-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 文字按钮样式 */
.text-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s;
    position: relative;
}

.text-btn:hover {
    color: #f97316;
}

.text-btn.active {
    color: #f97316;
    font-weight: 500;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
}

/* 项目阶段徽章颜色 - 使用 !important 确保优先级 */
.status-badge.badge-prepare,
.badge-prepare {
    background: #dbeafe !important;
    color: #1e40af !important;
    border: none !important;
}

.status-badge.badge-construction,
.badge-construction {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: none !important;
}

.status-badge.badge-design,
.badge-design {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    border: none !important;
}

.status-badge.badge-equipment,
.badge-equipment {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: none !important;
}

.status-badge.badge-hot,
.badge-hot {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: none !important;
}

.status-time {
    color: #94a3b8;
    font-size: 14px;
}

.detail-title {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
}

.meta-tag svg {
    flex-shrink: 0;
}

/* 详情卡片 */
.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 24px;
}

/* 信息网格 */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
}

.info-item {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 calc(33.333% - 14px);
    min-width: 200px;
}

.info-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 80px;
}

.info-value {
    color: #1e293b;
    font-size: 14px;
    flex: 1;
}

.info-item label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.info-item span {
    color: #1e293b;
    font-size: 14px;
}

/* 内容文本 */
.content-text {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    overflow-x: auto;
    word-wrap: break-word;
}

.content-text p {
    margin: 0 0 15px 0;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* 富文本中的表格样式 */
.content-text table {
    width: auto !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.content-text table td,
.content-text table th {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    white-space: normal;
    word-break: break-word;
}

.content-text table th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* 富文本中的图片样式 */
.content-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
}

/* 富文本中的其他元素 */
.content-text ul,
.content-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.content-text li {
    margin: 5px 0;
}

.content-text blockquote {
    margin: 15px 0;
    padding: 10px 15px;
    background: #f9fafb;
    border-left: 4px solid #f97316;
    color: #64748b;
}

.content-text pre {
    margin: 15px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    overflow-x: auto;
}

.content-text code {
    background: #f9fafb;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* 时间轴 */
.timeline {
    margin-top: 30px;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
    background: #f97316;
    box-shadow: 0 0 0 2px #f97316, 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.timeline-item.active .timeline-content h4 {
    color: #f97316;
}

.timeline-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 联系方式卡片 */
.contact-card {
    border: 2px solid #f97316;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(147, 197, 253, 0.05) 100%);
}

.contact-info-locked {
    text-align: center;
    padding: 40px 20px;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.contact-info-locked p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 20px;
}

.btn-unlock {
    padding: 12px 35px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.unlock-tip {
    font-size: 13px;
    color: #94a3b8;
}

.unlock-tip a {
    color: #f97316;
    font-weight: 500;
}

/* 联系信息网格 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-item-detail {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-item-detail.full-width {
    grid-column: 1 / -1;
}

.contact-item-detail label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.contact-item-detail span {
    color: #1e293b;
    font-size: 14px;
}

.contact-item-detail .highlight {
    color: #f97316;
    font-weight: 600;
    font-size: 16px;
}

.btn-copy {
    margin-left: 10px;
    padding: 4px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #e2e8f0;
    border-color: #f97316;
    color: #f97316;
}

/* 相关项目 */
.related-projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #f97316;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.related-item h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.related-item h4 a {
    color: #1e293b;
}

.related-item h4 a:hover {
    color: #f97316;
}

.related-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}

/* 右侧边栏 */
.detail-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

/* 快捷操作 */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: #f97316;
    color: #f97316;
    background: #f8fafc;
}

.btn-collect.active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #d97706;
}

.btn-collect.active svg {
    fill: #f59e0b;
}

/* 会员权益提示 */
.membership-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.membership-promo .sidebar-title {
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
}

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

.benefits-list li {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.btn-member-upgrade {
    display: block;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-member-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* 热门项目 */
.hot-projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hot-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hot-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

.hot-item:nth-child(1) .hot-rank {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.hot-item:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #fff;
}

.hot-item:nth-child(3) .hot-rank {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: #fff;
}

.hot-content {
    flex: 1;
    padding-right: 10px;
}

.hot-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.hot-content h4 a {
    color: #1e293b;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-content h4 a:hover {
    color: #f97316;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.hot-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 4px;
    white-space: nowrap;
}

/* 响应式 */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        position: static;
    }
    
    .info-grid {
        gap: 12px 15px;
    }
    
    .info-item {
        flex: 0 0 calc(50% - 8px);
        min-width: 180px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-header {
        padding: 25px 20px;
    }
    
    .detail-status {
        flex-wrap: wrap;
    }
    
    .status-left {
        flex-wrap: wrap;
    }
    
    .status-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .detail-card {
        padding: 20px;
    }
    
    .info-item {
        flex: 0 0 100%;
        min-width: auto;
    }
    
    .timeline {
        padding-left: 25px;
    }
}

/* ============= 新增样式 ============= */

/* 项目标签网格 */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.tag-item {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.tag-item label {
    flex-shrink: 0;
    width: 100px;
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.tag-item span {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
}

/* PDF文件列表 */
.pdf-files-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdf-file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.pdf-file-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pdf-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    margin-right: 15px;
}

.pdf-icon i {
    font-size: 24px;
}

.pdf-info {
    flex: 1;
}

.pdf-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
}

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

.btn-view-pdf,
.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view-pdf {
    background: #dbeafe;
    color: #1e40af;
}

.btn-view-pdf:hover {
    background: #bfdbfe;
}

.btn-download-pdf {
    background: #d1fae5;
    color: #065f46;
}

.btn-download-pdf:hover {
    background: #a7f3d0;
}

/* 徽章样式更新 */
.badge-category {
    background: #dbeafe;
    color: #1e40af;
    border: none;
}

/* 侧边栏卡片标题图标 */
.card-title i,
.sidebar-title i {
    margin-right: 8px;
    color: #f97316;
}

/* 权重星星 */
.weight-stars {
    color: #fbbf24;
}

.weight-stars i {
    font-size: 14px;
}

/* 快速操作按钮 */
.action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #f97316;
    color: #f97316;
}

.action-btn.active {
    background: #fff7ed;
    border-color: #f97316;
    color: #f97316;
}

.action-btn.active i {
    color: #fbbf24;
}

/* 项目信息列表 */
.project-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.info-row span {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
}

/* 会员广告卡片 */
.sidebar-ad .ad-content {
    text-align: center;
}

.ad-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
}

.ad-content p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
}

.ad-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.ad-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #4b5563;
}

.ad-features li i {
    color: #10b981;
}

.btn-upgrade {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-upgrade:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* 相关项目优化 */
.related-meta i {
    font-size: 12px;
    margin-right: 3px;
    color: #94a3b8;
}

/* 权限锁定卡片 */
.permission-locked-card {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px dashed #e5e7eb;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.permission-locked-content {
    text-align: center;
    max-width: 500px;
    padding: 40px 20px;
}

.lock-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.lock-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.lock-description {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 30px;
}

.lock-description strong {
    color: #f97316;
    font-weight: 600;
}

.lock-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 35px;
}

.btn-primary-action,
.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary-action {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary-action:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary-action {
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary-action:hover {
    background: #f9fafb;
    border-color: #f97316;
    color: #f97316;
}

.lock-features {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.features-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #4b5563;
}

.features-list li i {
    color: #10b981;
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tags-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-item label {
        width: 80px;
    }
    
    .pdf-file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdf-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .pdf-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-view-pdf,
    .btn-download-pdf {
        width: 100%;
        justify-content: center;
    }
    
    .lock-actions {
        flex-direction: column;
    }
    
    .btn-primary-action,
    .btn-secondary-action {
        width: 100%;
        justify-content: center;
    }
    
    .lock-icon-large {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .lock-title {
        font-size: 18px;
    }
}

