﻿/* Hero Banner*/
/*.swiper-slide .hgTitle1::after {
    content: "";
    width: 100%;
    height: 30px;
    position: absolute;
    left: 0;
    bottom: 20px;
    z-index: -1;
    background-color: #173077;
}
.swiper-slide .hgTitle2::after {
    content: "";
    width: 100%;
    height: 30px;
    position: absolute;
    left: 0;
    bottom: 20px;
    z-index: -1;
    background-color: #DA3B2B;
}*/
.hgTitle1 {
    color: #166ab3
}
.hgTitle2 {
    color: #fc802b
}
/*核心技術與產品線*/
/* Company Profile Page Styles */

.core-product-section .section-title {
    position: relative;
    margin-bottom: 40px;
}

    .core-product-section .section-title h3 {
        font-weight: 700;
       /* color: #232e45;*/
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }

    .core-product-section .section-title .divider {
        width: 60px;
        height: 3px;
        background: linear-gradient(to right, #232e45, #d90a2c);
        border-radius: 2px;
    }

/* Intro Section */
.core-product-section .intro-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Vision & Mission */
.core-product-section .vision-card,
.core-product-section .mission-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

    .core-product-section .vision-card:hover,
    .core-product-section .mission-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    }

.core-product-section .vision-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(217, 10, 44, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .core-product-section .vision-icon-box i {
        font-size: 28px;
        color: #d90a2c;
    }

.core-product-section .mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .core-product-section .mission-list li {
        position: relative;
        padding-left: 20px;
        margin-bottom: 12px;
        color: #5e6d77;
    }

        .core-product-section .mission-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 10px;
            width: 6px;
            height: 6px;
            background: #d90a2c;
            border-radius: 50%;
        }

/* Core Tech Cards */
.core-product-section .tech-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

    .core-product-section .tech-card:hover {
        border-color: #232e45;
        box-shadow: 0 10px 25px rgba(35, 46, 69, 0.1);
    }

.core-product-section .tech-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.core-product-section .tech-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #232e45;
}

.core-product-section .tech-card p {
    font-size: 14px;
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

/* Applications */
.core-product-section .app-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s;
}

    .core-product-section .app-item:hover {
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

.core-product-section .app-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .core-product-section .app-icon i {
        font-size: 20px;
        color: #d90a2c;
    }

.core-product-section .app-text {
    font-weight: 500;
    color: #333;
}




/* 應用方案 Sections */
.zigzag-section {
    padding: 100px 0;
    background: #ededed;
}

    .zigzag-section:nth-child(even) {
        background: #f9fafb;
    }

.zigzag-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.zigzag-img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.zigzag-img-wrapper:hover .zigzag-img {
    transform: scale(1.05);
}

.zigzag-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

.zigzag-content p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Split Banner */
.split-banner-section {
    display: flex;
    flex-wrap: wrap;
}

.split-banner-item {
    flex: 1;
    min-width: 50%;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* ========================================
   首頁統一標題與內容樣式系統
   ======================================== */

/* === 桌面版基礎樣式 === */

/* 區塊主標題 - 統一為 1.75rem (28px) */
.about-company-culture01 .section-title h3,
.about-company-culture01 .section-title .alt-font,
.core-product-section .section-title h3,
.bg-gradient-quartz-white h3.fw-600,
.news-section h3.fw-600,
.zigzag-content h2 {
    font-size: 2.25rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

/* Split Banner 標題較大 */
.split-content h3 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* 區塊描述文字 - 統一為 1rem (16px)，與標題明顯區分 */
.about-company-culture01 .service-content p.text,
.about-company-culture01 .service-content .text,
.core-product-section > .container > .row > .col-lg-8 > p,
.zigzag-content p,
.bg-gradient-quartz-white > .container > .row > .col-lg-7 > p,
.split-content p {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    /*color: #555;*/
}

/* 核心技術卡片標題 */
.core-product-section .tech-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 核心技術卡片描述 - 不小於 1rem */
.core-product-section .tech-card p {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
    color: #666;
}

/* 最新消息標題 */
.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

/* 最新消息日期 */
.news-meta {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.5rem;
    display: block;
}

/* ========================================
   Tablet (768px - 991px)
   ======================================== */
@media (max-width: 991px) {
    /* 統一區塊標題 - 1.5rem (24px) */
    .about-company-culture01 .section-title h3,
    .about-company-culture01 .section-title .alt-font,
    .core-product-section .section-title h3,
    .bg-gradient-quartz-white h3.fw-600,
    .news-section h3.fw-600,
    .zigzag-content h2 {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }

    .split-content h3 {
        font-size: 2rem;
    }

    /* 描述文字維持 1rem */
    .about-company-culture01 .service-content p.text,
    .about-company-culture01 .service-content .text,
    .core-product-section > .container > .row > .col-lg-8 > p,
    .zigzag-content p,
    .bg-gradient-quartz-white > .container > .row > .col-lg-7 > p {
        font-size: 1.4rem !important;
    }

    /* 核心技術卡片 */
    .core-product-section .tech-card h5 {
        font-size: 1.0625rem;
    }

    .core-product-section .tech-card p {
        font-size: 1rem;
    }

    /* 應用方案區塊 */
    .zigzag-section {
        padding: 60px 0;
    }

    /* 最新消息區塊 */
    .news-section {
        padding: 60px 0;
    }

    .news-title {
        font-size: 1.0625rem;
    }
}

/* ========================================
   Mobile (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
    /* 統一區塊標題 - 1.25rem (20px) */
    .about-company-culture01 .section-title h3,
    .about-company-culture01 .section-title .alt-font,
    .core-product-section .section-title h3,
    .bg-gradient-quartz-white h3.fw-600,
    .news-section h3.fw-600,
    .zigzag-content h2 {
        font-size: 2.5rem !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
        line-height: 1.4 !important;
    }

    .split-content h3 {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        margin-bottom: 10px !important;
    }

    /* 描述文字 - 最小 1rem */
    .about-company-culture01 .service-content p.text,
    .about-company-culture01 .service-content .text,
    .core-product-section > .container > .row > .col-lg-8 > p,
    .zigzag-content p,
    .bg-gradient-quartz-white > .container > .row > .col-lg-7 > p {
        font-size: 1.2rem !important;
        line-height: 1.7 !important;
        margin-bottom: 15px !important;
    }

    .split-content p {
        font-size: 1.2rem !important;
        line-height: 1.6 !important;
        color: rgba(255,255,255,0.9) !important;
    }

    /* Hero Banner 文字調整 */
    .fs-50 {
        font-size: 32px !important;
    }

    .fs-32 {
        font-size: 24px !important;
    }

    .fs-190 {
        font-size: 100px !important;
    }

    /* 人機介面 IC 設計公司區塊 */
    .about-company-culture01 {
        padding: 40px 0;
    }

    .about-company-culture01 .service-content {
        padding: 20px 0;
    }

    .about-company-culture01 [style*="padding-left:40px"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 經驗年數數字 - 修復數字重疊問題 */
    .experience .number.fs-160 {
        font-size: 80px !important;
        line-height: 1 !important;
    }

    /* 核心技術與產品線區塊 */
    .core-product-section {
        padding: 40px 0;
    }

    .core-product-section .section-title {
        margin-bottom: 25px;
    }

    .core-product-section .tech-card {
        padding: 20px 15px;
    }

    .core-product-section .tech-card h5 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .core-product-section .tech-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .core-product-section .tech-icon {
        font-size: 26px;
    }

    /* 應用方案區塊 */
    .zigzag-section {
        padding: 40px 0;
    }

    /* 開發工具區塊 */
    .bg-gradient-quartz-white {
        padding-top: 40px;
    }

    /* Split Banner 區塊 */
    .split-banner-item {
        min-width: 100%;
        height: 350px;
    }

    .split-content {
        padding: 1.5rem;
        max-width: 90%;
    }

    /* Product Slogan 區塊 */
    .fs-40 {
        font-size: 24px !important;
        line-height: 1.4em !important;
    }

    /* 最新消息區塊 */
    .news-section {
        padding: 40px 0;
    }

    .news-img-wrapper {
        height: 180px;
        margin-bottom: 1rem;
    }

    .news-title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
    }

    .news-content {
        padding: 0 5px;
    }

    .news-meta {
        font-size: 0.875rem;
    }

    /* 通用間距調整 */
    .mb-60px {
        margin-bottom: 30px !important;
    }

    .mb-25px {
        margin-bottom: 15px !important;
    }

    /* 按鈕調整 */
    .btn-extra-large {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    /* Hero CTA 按鈕：避免文字被右側圓形 icon 擠掉 */
    .swiper .btn.with-rounded.btn-extra-large {
        display: inline-flex;
        align-items: center;
        min-width: 140px;
        padding: 12px 56px 12px 20px !important;
        white-space: nowrap;
    }

    .swiper .btn.with-rounded.btn-extra-large > span {
        width: 34px;
        height: 34px;
        right: 8px;
    }
}

/* ========================================
   Small Mobile (max-width: 575px)
   ======================================== */
@media (max-width: 575px) {
    /* 統一區塊標題 - 1.125rem (18px) 最小值 */
    .about-company-culture01 .section-title h3,
    .about-company-culture01 .section-title .alt-font,
    .core-product-section .section-title h3,
    .bg-gradient-quartz-white h3.fw-600,
    .news-section h3.fw-600,
    .zigzag-content h2 {
        font-size: 2.5rem !important;
    }
    .zigzag-content h2 {
    text-align:center;
    }
    .split-content h3 {
        font-size: 2rem !important;
    }

    /* 描述文字維持 1rem - 不再縮小 */
    .about-company-culture01 .service-content p.text,
    .about-company-culture01 .service-content .text,
    .core-product-section > .container > .row > .col-lg-8 > p,
    .zigzag-content p,
    .bg-gradient-quartz-white > .container > .row > .col-lg-7 > p,
    .split-content p {
        font-size: 1.4rem !important;
    }

    /* Hero Banner 進一步縮小 */
    .fs-50 {
        font-size: 26px !important;
    }

    .fs-32 {
        font-size: 20px !important;
    }

    .fs-20 {
        font-size: 14px !important;
    }

    .fs-18 {
        font-size: 15px !important;
    }

    /* 經驗年數數字 - 修復數字重疊問題 */
    .experience .number.fs-160 {
        font-size: 60px !important;
        line-height: 1 !important;
    }

    /* 核心技術卡片 - 維持 1rem */
    .core-product-section .tech-card {
        padding: 15px 12px;
    }

    .core-product-section .tech-card h5 {
        font-size: 1.2rem;
    }

    .core-product-section .tech-card p {
        font-size: 1.2rem;
    }

    /* Split Banner */
    .split-banner-item {
        height: 300px;
    }

    /* Slogan */
    .fs-40 {
        font-size: 20px !important;
    }

    /* 最新消息 */
    .news-img-wrapper {
        height: 160px;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-meta {
        font-size: 0.875rem;
    }

    /* 小手機再微調，確保「瞭解更多」完整顯示 */
    .swiper .btn.with-rounded.btn-extra-large {
        min-width: 132px;
        padding: 11px 52px 11px 18px !important;
        font-size: 1rem !important;
    }

    .swiper .btn.with-rounded.btn-extra-large > span {
        width: 32px;
        height: 32px;
    }
}

    .split-banner-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .split-banner-item:hover img {
        transform: scale(1.1);
    }

.split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 60, 0.6);
    z-index: 1;
    transition: background 0.3s;
}

.split-banner-item:hover .split-overlay {
    background: rgba(0, 20, 60, 0.4);
}

.split-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 80%;
}

/* News Section */
.news-section {
    padding: 100px 0;
}

.news-card-v3 {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

    .news-card-v3:hover {
        transform: translateY(-10px);
        color: #00874A;
    }

.news-img-wrapper {
    height: 240px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

    .news-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }