/*
 * 桃園智慧產業學院 TIIAI
 * 產業服務頁面專屬樣式
 */

/* ========== Page Banner ========== */
.page-banner {
    margin-top: clamp(64px, 6.25vw, 120px);
    position: relative;
    overflow: hidden;
    height: 305px;
}

.page-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 40, 80, 0.75);
}

.page-banner-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.banner-text {
    max-width: 600px;
}

.banner-slogan {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(12px, 1vw, 18px);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 12px;
}

.page-banner-title {
    color: var(--white);
    font-size: clamp(32px, 3vw, 56px);
    font-weight: 700;
    letter-spacing: 4px;
}

/* ========== Breadcrumb & Share ========== */
.breadcrumb-bar {
    padding: 24px 0;
}

.breadcrumb-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
}

.breadcrumb {
    font-size: clamp(13px, 0.9vw, 16px);
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    margin: 0 4px;
}

.breadcrumb .current {
    color: var(--text);
}

.share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-label {
    font-size: clamp(13px, 0.9vw, 16px);
    color: var(--text-light);
    margin-right: 4px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(24px, 1.7vw, 30px);
    height: clamp(24px, 1.7vw, 30px);
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    transition: var(--transition);
}

.share-fb {
    background: #1877f2;
}

.share-fb:hover {
    background: #1565c0;
}

.share-line {
    background: #06c755;
}

.share-line:hover {
    background: #05a847;
}

.share-copy {
    background: #888;
}

.share-copy:hover {
    background: #666;
}

.share-btn svg {
    width: 55%;
    height: 55%;
}

/* ========== Section Title ========== */
.section-title-center {
    font-size: clamp(24px, 2vw, 38px);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
}

.section-title-center.underline {
    text-decoration: none;
    font-weight: 600;
}

/* ========== Service Section ========== */
.service-section {
    padding: 50px 0 40px;
    background: var(--white);
}

.service-section .container {
    padding: 0 8%;
}

/* 服務卡片 - 類似 training.html 卡片樣式 */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--primary);
    padding: 4px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 74, 137, 0.25);
}

/* 雙數卡片用淺藍色 */
.service-card:nth-child(even) {
    background: #5ba3d9;
}

.service-card:nth-child(even) .service-card-body p {
    color: #5ba3d9;
}

.service-card-header {
    padding: 10px 12px;
    text-align: center;
}

.service-card-header h3 {
    font-size: clamp(18px, 1.5vw, 28px);
    font-weight: 400;
    color: var(--white);
    margin: 0;
}

.service-card-body {
    padding: 20px 12px 24px;
    text-align: center;
    background: var(--white);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.service-card-body p {
    font-size: clamp(16px, 1.3vw, 24px);
    color: var(--primary);
    margin: 8px 0;
    font-weight: 500;
}

/* 活動照片 */
.service-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-photos img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

/* ========== Booking Section ========== */
.booking-section {
    padding: 40px 0;
    background: var(--white);
}

.booking-section .container {
    padding: 0 8%;
}

.booking-desc {
    text-align: center;
    font-size: clamp(14px, 1vw, 18px);
    color: var(--text);
    margin: 20px 0 70px;
}

.booking-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.booking-card-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.booking-connector-line {
    display: none;
}

/* L形連接線：從核心服務右下角 → 向右到專家陪伴上方 */
.booking-card-wrapper.booking-card-secondary::before {
    content: '';
    position: absolute;
    top: -35px;
    left: -70px;
    width: 270px;
    height: 25px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    background: transparent;
}

/* L形連接線：從核心服務底部 → 向下 → 向右到專家陪伴左邊 */
.booking-card-wrapper.booking-card-secondary::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: -300px;
    width: 285px;
    height: 25px;
    border-bottom: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    background: transparent;
}

.booking-card-wrapper.booking-card-primary {
    margin-top: -20px;
}

.booking-card-wrapper.booking-card-secondary {
    margin-top: 40px;
}

.booking-card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--primary);
    padding: 4px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.booking-card-header {
    padding: 10px 12px;
    text-align: center;
}

.booking-card-header h3 {
    font-size: clamp(18px, 1.5vw, 28px);
    font-weight: 400;
    color: var(--white);
    margin: 0;
}

.booking-card-body {
    padding: 24px 36px;
    text-align: center;
    background: var(--white);
    border-radius: 14px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-card-body p {
    font-size: clamp(15px, 1.2vw, 20px);
    color: var(--primary);
    line-height: 1.8;
    margin: 0;
}


/* ========== Process Section ========== */
.process-section {
    padding: 60px 0;
    background: var(--white);
}

.process-section .container {
    padding: 0 8%;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(30px, 4vw, 70px);
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step-circle {
    width: clamp(48px, 4vw, 70px);
    height: clamp(48px, 4vw, 70px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 1.8vw, 32px);
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
}

.step-label {
    font-size: clamp(14px, 1.1vw, 20px);
    font-weight: 500;
    color: var(--text);
}

.process-arrow {
    display: flex;
    align-items: flex-start;
}

.process-arrow svg {
    width: clamp(30px, 3vw, 50px);
    height: auto;
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 40px 0 80px;
    background: var(--white);
}

.cta-section .container {
    display: flex;
    justify-content: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 0;
    width: 100%;
    max-width: 900px;
    background: var(--primary);
    color: var(--white);
    font-size: clamp(18px, 1.5vw, 26px);
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    text-decoration: none;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 74, 137, 0.3);
}

.cta-btn svg {
    width: clamp(20px, 1.5vw, 28px);
    height: clamp(20px, 1.5vw, 28px);
}

/* ========== Tablet (1024px) ========== */
@media (max-width: 1024px) {
    .page-banner {
        margin-top: 80px;
        height: 220px;
    }

    .breadcrumb-bar .container,
    .service-section .container,
    .booking-section .container,
    .process-section .container {
        padding: 0 24px;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-photos {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-cards {
        flex-direction: column;
        gap: 16px;
    }
}

/* ========== Mobile (768px) ========== */
@media (max-width: 768px) {
    .page-banner {
        margin-top: 64px;
        height: 180px;
    }

    .page-banner-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .banner-slogan {
        font-size: 11px;
        display: none;
    }

    .breadcrumb-bar {
        padding: 12px 0;
    }

    .breadcrumb-bar .container {
        padding: 0 16px;
    }

    .share-btn {
        width: 26px;
        height: 26px;
    }

    /* Service Section */
    .service-section {
        padding: 30px 0 24px;
    }

    .service-section .container {
        padding: 0 16px;
    }

    .section-title-center {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        border-radius: 12px;
    }

    .service-card-header {
        padding: 8px 8px;
    }

    .service-card-header h3 {
        font-size: 14px;
    }

    .service-card-body {
        padding: 12px 8px 16px;
        border-radius: 10px;
    }

    .service-card-body p {
        font-size: 12px;
        margin: 4px 0;
    }

    .service-photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .service-photos img {
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }

    /* Booking Section */
    .booking-section {
        padding: 30px 0;
    }

    .booking-section .container {
        padding: 0 16px;
    }

    .booking-desc {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .booking-cards {
        flex-direction: column;
        gap: 16px;
    }

    .booking-card {
        border-radius: 12px;
    }

    .booking-card-header {
        padding: 8px 10px;
    }

    .booking-card-header h3 {
        font-size: 14px;
    }

    .booking-card-body {
        padding: 16px 14px;
        border-radius: 10px;
    }

    .booking-card-body p {
        font-size: 13px;
    }

    /* Process Section */
    .process-section {
        padding: 30px 0;
    }

    .process-section .container {
        padding: 0 16px;
    }

    .process-steps {
        gap: 12px;
    }

    .step-circle {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-width: 2px;
    }

    .step-label {
        font-size: 12px;
    }

    .process-arrow svg {
        width: 24px;
    }

    /* CTA Section */
    .cta-section {
        padding: 24px 0 50px;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 15px;
        gap: 8px;
    }

    .cta-btn svg {
        width: 18px;
        height: 18px;
    }
}
