/* ========== 设备更新页面样式 - Tab布局 ========== */

/* 覆盖Banner主题色 - 深绿到浅绿 */
body[data-page="equipment"] {
    --primary-color: #059669;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --banner-gradient: linear-gradient(135deg, #065f46 0%, #047857 50%, #10b981 100%);
    --banner-glow-color: rgba(16, 185, 129, 0.3);
    --banner-btn-primary-bg: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --banner-btn-primary-shadow: rgba(16, 185, 129, 0.4);
    --banner-btn-primary-shadow-hover: rgba(16, 185, 129, 0.5);
}

/* 页面特定Banner背景（带图片） */
.equipment-banner {
    background: 
        linear-gradient(135deg, rgba(6, 95, 70, 0.92) 0%, rgba(4, 120, 87, 0.88) 50%, rgba(16, 185, 129, 0.85) 100%),
        url('/public/images/banner-equipment.jpeg') center/cover no-repeat;
}

.equipment-main {
    padding: 0 0 60px;
    background: #f8fafc;
    min-height: 600px;
}

.equipment-tabs {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tabs-wrapper {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
}

.equipment-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.equipment-tab svg {
    flex-shrink: 0;
}

.equipment-tab:hover {
    background: #f1f5f9;
    color: #059669;
}

.equipment-tab.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.tab-content {
    display: none;
    padding-top: 40px;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-header {
    text-align: center;
    margin-bottom: 32px;
}

.content-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.content-header p {
    font-size: 15px;
    color: #64748b;
}

/* ========== 政策文库 ========== */
.policy-doc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.policy-doc-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s;
}

.policy-doc-item:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
    transform: translateX(4px);
}

.policy-doc-item .doc-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    color: #059669;
    flex-shrink: 0;
}

.policy-doc-item .doc-info {
    flex: 1;
    min-width: 0;
}

.policy-doc-item .doc-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.policy-doc-item .doc-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.policy-doc-item .doc-tag.national {
    background: #fef3c7;
    color: #d97706;
}

.policy-doc-item .doc-tag.province {
    background: #dbeafe;
    color: #2563eb;
}

.policy-doc-item .doc-tag.city {
    background: #e0e7ff;
    color: #4f46e5;
}

.policy-doc-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.5;
}

.policy-doc-item .doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.policy-doc-item .doc-meta span:last-child {
    color: #10b981;
    font-weight: 500;
}
.policy-doc-item .doc-meta span{
    display:flex;
    align-items: center;
}

/* ========== 政策解读 ========== */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.analysis-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.analysis-card:hover {
    border-color: #10b981;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.1);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

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

.analysis-tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.analysis-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.analysis-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 12px;
}

.analysis-content ul {
    list-style: none;
    padding: 0;
}

.analysis-content li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px dashed #e2e8f0;
}

.analysis-content li:last-child {
    border-bottom: none;
}

.analysis-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

.process-steps {
    display: flex;
    gap: 12px;
}

.process-steps .step {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    background: #f8fafc;
    border-radius: 8px;
}

.process-steps .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-steps .step-text {
    font-size: 13px;
    color: #64748b;
}

.analysis-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.analysis-footer .effective {
    font-size: 13px;
    color: #94a3b8;
}

/* ========== 设备产品 ========== */
.product-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #10b981;
    color: #059669;
}

.filter-btn.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-color: transparent;
    color: white;
}

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

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: #10b981;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
    transform: translateY(-4px);
}

.product-card .product-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.product-card .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-body {
    padding: 20px;
}

.product-card .product-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-card .product-tag {
    padding: 4px 10px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.product-card .product-brand {
    font-size: 12px;
    color: #94a3b8;
}

.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-card .product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.product-card .product-specs span {
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 12px;
    color: #64748b;
}

.product-card .product-price {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.product-card .product-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.product-card .btn-compare {
    flex: 1;
    padding: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card .btn-compare:hover {
    border-color: #10b981;
    color: #059669;
}

.product-card .btn-compare.active {
    background: var(--accent-color);
    border-color:var(--accent-color);
    color: white;
}

.product-card .btn-inquire {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card .btn-inquire:hover {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* ========== 设备需求 ========== */
.demand-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demand-card-link {
    text-decoration: none;
    display: block;
}

.demand-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.demand-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.demand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.demand-company {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demand-company .company-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 24px;
}

.demand-company h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.demand-company .company-tag {
    font-size: 12px;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
}

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

.demand-status.collecting {
    background: #ecfdf5;
    color: #059669;
}

.demand-status.closed {
    background: #f1f5f9;
    color: #94a3b8;
}

.demand-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.demand-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.demand-details .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.demand-details .label {
    font-size: 12px;
    color: #94a3b8;
}

.demand-details .value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.demand-details .value.deadline {
    color: #059669;
    font-weight: 600;
}

.demand-details .value.closed-text {
    color: #ef4444;
}

.demand-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.demand-tags span {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 13px;
    color: #64748b;
}

.demand-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.demand-time {
    font-size: 13px;
    color: #94a3b8;
}

.btn-submit-quote {
    padding: 10px 24px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-quote:hover {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-submit-quote:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* ========== 设备更新活动 ========== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}

.activity-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.activity-date {
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.activity-date .month {
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}

.activity-date .day {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.activity-tag.offline {
    background: #fef3c7;
    color: #d97706;
}

.activity-tag.online {
    background: #dbeafe;
    color: #2563eb;
}

.activity-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.activity-info p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.activity-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.activity-action {
    flex-shrink: 0;
}

.btn-signup {
    padding: 12px 28px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-signup:hover {
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
    transform: translateY(-2px);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .demand-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-card {
        flex-wrap: wrap;
    }
    
    .activity-action {
        width: 100%;
        margin-top: 16px;
    }
    
    .btn-signup {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .demand-card{position: relative;overflow: hidden;}
    .demand-status{
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 0;
        padding: 5px 10px;
    }
    .tabs-wrapper {
        padding: 12px 16px;
        scrollbar-width: none;
    }
    
    
    .policy-doc-item {
        align-items: flex-start;
    }
    
    .policy-doc-item .doc-icon {
        width: 48px;
        height: 48px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .demand-details {
        grid-template-columns: 1fr;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .content-header h2 {
        font-size: 22px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .activity-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .content-header h2 {
        font-size: 18px;
    }


    .tabs-wrapper {
        padding: 8px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .equipment-tab::-webkit-scrollbar {
        display: none;
    }

    .product-grid {
        gap: 12px;
    }

    .activity-card {
        padding: 12px;
    }

    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .activity-meta {
        flex-direction: column;
        gap: 6px;
    }

    .activity-actions {
        width: 100%;
    }

    .activity-actions .btn-apply {
        width: 100%;
        text-align: center;
    }

    .filter-section {
        padding: 12px;
    }

    .filter-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .filter-actions button {
        width: 100%;
    }
}

/* 产品对比栏 */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.compare-bar .count {
    color: #10b981;
    font-weight: 600;
}

@media (max-width: 768px) {
    .compare-bar {
        padding: 10px 16px;
        font-size: 14px;
    }
}