/* ==================== 關於我們區塊（SVG Shape 版型） ==================== */
.bento-section {
    background-color: #3fb1e7;
    padding: 120px 0 200px;
    position: relative;
}

/* 底部波浪（藍 → 黑） */
.bento-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.bento-wave-bottom svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* ==================== 主內容容器（左右兩欄） ==================== */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 20px;
}

/* ==================== 左側：SVG Shape 圖片 ==================== */
.pxl-shape-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pxl-shape-item {
    position: relative;
    z-index: 9;
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

/* ==================== 右側：內容區域 ==================== */
.content-container {
    padding: 0 60px 0 0;
}

/* 小標（紅線 + 文字） */
.section-tag-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-line {
    width: 40px;
    height: 2px;
    background: #ff4757;
}

.section-tag-inline .tag-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

/* 大標題 */
.content-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 50px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== 橫向流程步驟 ==================== */
.process-timeline {
    position: relative;
}

/* 橫向連接線 */
.timeline-line {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 圓形節點 */
.step-node {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #3fb1e7;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.step-item:hover .step-node {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

/* 步驟標題 */
.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 步驟說明 */
.step-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ==================== 響應式設計 ==================== */

/* 平板 */
@media (max-width: 1200px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .pxl-shape-wrapper {
        min-height: 500px;
        order: 1; /* 圖片在上 */
    }

    .content-container {
        padding: 0;
        order: 2; /* 文字在下 */
    }

    .content-title {
        font-size: 2.2rem;
    }
}

/* 手機 */
@media (max-width: 768px) {
    .bento-section {
        padding: 80px 0 150px;
    }

    .about-content-wrapper {
        gap: 40px;
    }

    .pxl-shape-wrapper {
        min-height: 400px;
    }

    .content-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline-line {
        display: none;
    }

    .bento-wave-bottom svg {
        height: 60px;
    }
}

/* 小手機 */
@media (max-width: 480px) {
    .bento-section {
        padding: 60px 0 120px;
    }

    .pxl-shape-wrapper {
        min-height: 350px;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .step-node {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-text {
        font-size: 0.85rem;
    }

    .bento-wave-bottom svg {
        height: 50px;
    }
}

/* ==================== 垂直時間軸 ==================== */
.vertical-timeline {
    position: relative;
    max-width: 900px;
    margin: 100px auto 0;
    padding: 0 20px;
}

/* 背景線（淡色固定） */
.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
    z-index: 1;
}

/* 動態生長線（真實 DOM 元素） */
.timeline-line-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    z-index: 2;
}

/* 時間軸項目 */
.timeline-item {
    position: relative;
    margin-bottom: 80px;
}

/* 左右交錯佈局 */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    padding-left: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
    padding-right: 60px;
}

/* 時間軸標記點（圓形） */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #3fb1e7;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* 內容卡片 */
.timeline-content {
    width: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 標題 */
.timeline-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 內文 */
.timeline-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8em;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* ==================== 垂直時間軸響應式 ==================== */

/* 平板 */
@media (max-width: 1024px) {
    .vertical-timeline {
        margin-top: 80px;
    }

    .timeline-content {
        width: 55%;
    }

    .timeline-title {
        font-size: 1.6rem;
    }

    .timeline-text {
        font-size: 0.95rem;
    }
}

/* 手機 */
@media (max-width: 768px) {
    .vertical-timeline {
        margin-top: 60px;
    }

    /* 背景線移到左側 */
    .vertical-timeline::before {
        left: 30px;
    }

    /* 動態線移到左側 */
    .timeline-line-progress {
        left: 30px;
    }

    /* 標記點移到左側 */
    .timeline-marker {
        left: 30px;
    }

    /* 所有內容改成左對齊 */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
        padding: 25px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .timeline-title {
        font-size: 1.4rem;
    }

    .timeline-text {
        font-size: 0.9rem;
    }

    .timeline-item {
        margin-bottom: 60px;
    }
}

/* 小手機 */
@media (max-width: 480px) {
    .vertical-timeline::before {
        left: 20px;
    }

    .timeline-line-progress {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
        width: 16px;
        height: 16px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 20px;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-text {
        font-size: 0.85rem;
    }
}