/* ==========================================
   产品管线页面 - Pipeline Page
   ========================================== */

/* Hero Section - 顶部大图 */
.pipeline-hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../images/20001.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pipeline-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.pipeline-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 60px;
    width: 100%;
    text-align: center;
}

.pipeline-hero-title {
    color: #ffffff;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
}

/* 内容区域 */
.pipeline-content {
    background-color: #DFD7DF;
    position: relative;
    min-height: 100vh;
}

.pipeline-bg-wrapper {
    position: relative;
    width: 100%;
    padding: 80px 0;
}

/* 左侧装饰图片 */
.pipeline-decor-left {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.pipeline-decor-left img {
    display: block;
    height: auto;
    width: auto;
}

/* 右侧装饰图片 */
.pipeline-decor-right {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.pipeline-decor-right img {
    display: block;
    height: auto;
    width: auto;
}


/* 内容容器 */
.pipeline-scroll-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
}

/* 分类容器 */
.pipeline-category {
    width: 1360px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 60px;
    position: relative;
    z-index: 2;
    margin: 0 auto 60px auto;
}

/* 最后一个分类容器不需要底部间距 */
.pipeline-category:last-child {
    margin-bottom: 0;
}

/* 分类标题区域 */
.category-header {
    margin-bottom: 30px;
}

.category-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* 产品卡片 */
.product-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.product-card:last-child {
    margin-bottom: 0;
}

/* 产品标签 */
.product-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.product-tag {
    padding: 6px 14px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: default;
}


/* 产品信息 */
.pipeline-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
}

.product-label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    padding-top: 2px;
}

.product-value {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-description {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

/* 适应症 */
.product-indications {
    border-left: 1px solid #e0e0e0;
    padding-left: 30px;
}

.indications-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.indication-item {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 16px;
    padding: 24px 32px;
}

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

.indication-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.indication-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1a1a1a;
    transition: transform 0.3s ease;
}

.indication-toggle:hover {
    color: #3d7f5e;
}

/* 进度条容器 */
.indication-progress {
    margin-top: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* 进度条轨道 */
.progress-track {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* 进度段 */
.progress-segment {
    flex: 1;
    height: 14px;
    background-color: #dbeae6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 已完成的段 */
.progress-segment.completed {
    background-color: #3d7f5e;
}

/* 当前活动的段 - 轨道本身 */
.progress-segment.active {
    background-color: #3d7f5e; /* 也是绿色，表示进行中 */
    position: relative; /* 为绝对定位的 Label 提供参照 */
    overflow: visible; /* 允许 Label 超出轨道范围 */
    /* 移除之前改变尺寸的代码 */
    border-radius: 4px;
    display: block;
    margin: 0;
    min-width: auto;
    height: 14px; /* 保持和其他段一致的高度 */
    box-shadow: none;
}

/* 商业化阶段 - 特殊颜色 */
.progress-segment.active.commercial {
    background-color: #2d6a4f; /* 深绿色表示商业化 */
}

/* 阶段标签 - 悬浮胶囊 */
.phase-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #3d7f5e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 0 0 4px #ffffff; /* 白边 */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

/* 商业化阶段标签 - 特殊颜色 */
.progress-segment.commercial .phase-label {
    background-color: #2d6a4f;
}

/* 可折叠的详细信息 */
.indication-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.indication-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* 折叠按钮箭头旋转 */
.indication-toggle.active svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.indication-toggle svg {
    transition: transform 0.3s ease;
}

/* 临床试验信息按钮 */
.clinical-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #b8d54a;
    color: #1a1a1a;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.clinical-info-btn:hover {
    background-color: #a8c84e;
    transform: translateX(4px);
}

.clinical-info-btn svg {
    transition: transform 0.3s ease;
}

.clinical-info-btn:hover svg {
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .pipeline-category {
        width: 90%;
        max-width: 1360px;
        padding: 50px;
        margin-bottom: 50px;
    }
    
    .pipeline-category:last-child {
        margin-bottom: 0;
    }

    .product-card {
        padding: 35px;
        margin-bottom: 25px;
    }

    .product-card:last-child {
        margin-bottom: 0;
    }

    .pipeline-decor-left,
    .pipeline-decor-right {
        display: none;
    }
}

@media (max-width: 1200px) {
    .pipeline-bg-wrapper {
        padding: 60px 20px;
    }

    .pipeline-scroll-container {
        padding: 40px 20px;
    }
}

@media (max-width: 968px) {
    .pipeline-hero {
        height: 400px;
    }

    .pipeline-hero-title {
        font-size: 42px;
    }

    .pipeline-category {
        width: 100%;
        padding: 40px 30px;
        margin-bottom: 40px;
    }
    
    .pipeline-category:last-child {
        margin-bottom: 0;
    }

    .category-title {
        font-size: 32px;
    }

    .product-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .product-card:last-child {
        margin-bottom: 0;
    }

    .product-tags {
        gap: 8px;
        margin-bottom: 25px;
    }

    .product-tag {
        padding: 5px 12px;
        font-size: 12px;
    }

    .pipeline-product {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-indications {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-left: 0;
        padding-top: 40px;
    }

    .indication-item {
        padding: 20px;
    }

    .progress-segment {
        height: 12px;
    }

    .progress-segment.active {
        height: 12px;
        min-width: auto;
    }

    .phase-label {
        font-size: 13px;
        padding: 4px 12px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .pipeline-hero {
        height: 400px;
    }

    .pipeline-hero-content {
        padding: 0 20px;
    }

    .pipeline-hero-title {
        font-size: 36px;
    }

    .pipeline-scroll-container {
        padding: 30px 15px;
    }

    .pipeline-category {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .pipeline-category:last-child {
        margin-bottom: 0;
    }

    .category-title {
        font-size: 28px;
    }

    .product-card {
        padding: 25px 15px;
        margin-bottom: 15px;
    }

    .product-card:last-child {
        margin-bottom: 0;
    }

    .product-tags {
        gap: 6px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .product-tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    .product-row {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }

    .product-label {
        font-size: 13px;
    }

    .product-value {
        font-size: 15px;
    }

    .product-name {
        font-size: 20px;
    }

    .indications-title {
        font-size: 18px;
    }

    .indication-name {
        font-size: 16px;
    }

    .indication-progress {
        padding: 0;
    }

    .progress-track {
        gap: 4px;
    }

    .progress-segment {
        height: 10px;
    }

    .progress-segment.active {
        height: 10px;
        min-width: auto;
    }

    .phase-label {
        font-size: 12px;
        padding: 2px 10px;
        height: 24px;
        box-shadow: 0 0 0 3px #ffffff;
    }

    .indication-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .clinical-info-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .pipeline-hero {
        height: 350px;
    }

    .pipeline-hero-title {
        font-size: 28px;
    }

    .pipeline-scroll-container {
        padding: 20px 10px;
    }

    .pipeline-category {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .pipeline-category:last-child {
        margin-bottom: 0;
    }

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

    .product-card {
        padding: 20px 12px;
        margin-bottom: 12px;
    }

    .product-card:last-child {
        margin-bottom: 0;
    }

    .product-tags {
        gap: 5px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }

    .product-tag {
        padding: 3px 8px;
        font-size: 10px;
    }

    .product-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-label {
        font-size: 12px;
        color: #666;
    }

    .indication-progress {
        padding: 0;
    }

    .progress-track {
        gap: 3px;
        flex-wrap: nowrap;
    }

    .progress-segment {
        height: 8px;
        flex: 1;
    }

    .progress-segment.active {
        flex: 1;
        height: 8px;
        min-width: auto;
    }

    .phase-label {
        font-size: 11px;
    }

    .indication-details {
        margin-top: 15px;
        padding-top: 15px;
    }

    .indication-description {
        font-size: 12px;
        line-height: 1.6;
    }

    .clinical-info-btn {
        font-size: 12px;
        padding: 8px 14px;
        width: 100%;
        justify-content: center;
    }
}
