/* 基礎重設與全域設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, "Microsoft JhengHei", "微軟正黑體", sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #dde8f0 0%, #eef4f8 30%, #f7f9fb 65%, #ffffff 100%);
    color: #333;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 通用置中容器 */
.container {
    max-width: 884px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 內頁 header / nav 加寬，與 1100px content-wrapper 對齊 */
body:not(.page-index) .main-header .container {
    max-width: 1100px;
}
body:not(.page-index) .desktop-nav .container {
    max-width: 1100px;
}

/* 頁首 */
.main-header {
    padding: 10px 0;
    background: linear-gradient(180deg, #030e22 0%, #051937 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(14,109,155,0.28);
    min-height: 72px;
    display: flex;
    align-items: center;
}
.main-header .container {
    width: 100%;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left .logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #ffffff;
}
.logo-img {
    height: 40px;
    width: auto;
}
.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}
.header-right {
    text-align: right;
}
.slogan {
    font-size: 0.875rem;
    margin: 0;
}
.subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

/* 桌機版圖片導覽列 */
.desktop-nav {
    display: flex;
    background: rgba(4,15,36,0.92);
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(0,180,255,0.22);
    box-shadow: 0 8px 24px rgba(0,0,0,0.48), 0 1px 0 rgba(14,109,155,0.22);
    position: relative;
}
/* 選單底部彩色銜接光線 */
.desktop-nav::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0,180,255,0.6),
        rgba(255,140,0,0.5),
        transparent
    );
    z-index: 10;
}
.desktop-nav .container {
    display: flex;
    justify-content: flex-start;
    padding: 0;
}
.desktop-nav a {
    display: block;
    position: relative;
    transition: filter 0.18s ease, transform 0.15s ease;
}
/* 橘色指示線（底部） */
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.18s, height 0.18s;
}
.desktop-nav a:hover {
    opacity: 1;
    filter: brightness(1.15) saturate(1.1);
}
.desktop-nav a:hover::after {
    background: rgba(255,140,0,0.55);
    height: 3px;
}

/* 手機版文字導覽列 */
.main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #040f24 0%, #051937 100%);
    z-index: 1000;
    border-top: 1px solid rgba(14,109,155,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}
.main-nav.open { display: block; }
.main-nav ul { list-style-type: none; }
.main-nav ul li a {
    display: block;
    padding: 13px 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.82);
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.18s, color 0.18s, border-left 0.18s;
    letter-spacing: 0.02em;
}
.main-nav ul li a:hover {
    background: rgba(14,109,155,0.32);
    color: #fff;
}
.main-nav ul li:last-child a { border-bottom: none; }

/* 漢堡按鈕 */
.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* 主內容的白色容器 */
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
/* 首頁保留較窄（nav圖片對齊）並維持上方間距 */
body.page-index .content-wrapper { max-width: 884px; margin-top: 20px; }

.main-content .banner {
    line-height: 0;
}

.main-content .intro {
    padding: 20px;
}

.intro-text h2 {
    font-size: 1.5rem;
    color: #0e6d9b;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.intro-text p {
    margin-bottom: 1em;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 2rem;
}

.philosophy-text h3 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.values-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1em;
}
.values-list li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.5em;
}
.values-list li::before {
    content: '✓';
    color: #0e6d9b;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.philosophy-video video {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 認證圖示區塊 */
.certifications {
    padding: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.certifications img {
    margin: 0 auto;
}

/* 頁面主體雙欄格線佈局 */
.page-grid {
    display: grid;
    grid-template-columns: 432fr 452fr;
    gap: 0;
    padding: 0 20px 20px 20px;
}
.grid-right {
    padding-left: 20px;
    border-left: 1px solid #eee;
}

/* 服務項目區塊 */
.services-section {
    padding: 0;
}
.section-title {
    margin-bottom: 1rem;
    line-height: 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.card-img {
    width: 100%;
}
.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin: 0 0 10px 0;
    color: #0e6d9b;
    font-size: 1.1rem;
}
.card-content p {
    margin: 0 0 15px 0;
    flex-grow: 1;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}
.card-button {
    display: inline-block;
    background-color: #0e6d9b;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    align-self: flex-start;
    transition: background-color 0.2s;
    font-size: 0.9rem;
    font-weight: bold;
}
.card-button:hover {
    background-color: #0a4a68;
}

/* 右欄解決方案區塊 */
.solutions-section {
    padding: 0;
}
.solution-content {
    display: flex;
    flex-direction: column; 
}
.solution-content .solution-img-top {
    margin-bottom: 1rem;
}
.solution-content .solution-button-top {
    margin-bottom: 1.5rem;
    align-self: flex-end; 
}
.solution-list {
    padding-top: 1rem;
    border-top: 1px solid #eee; 
}
.solution-list h3 {
    font-size: 1rem;
    color: #333;
    background: url(images/blue.jpg) no-repeat left center;
    padding-left: 15px;
    margin: 1rem 0 0.5rem 0;
}
.solution-list p {
    font-size: 0.9rem;
    color: #555;
    padding-left: 15px;
}
.solution-button-bottom {
    margin-top: 1.5rem;
    align-self: flex-end; 
}
.solution-button-top::before,
.solution-button-bottom::before {
    content: '+';
    margin-right: 5px;
    font-weight: bold;
}

/* ========= 活動專區 & 後續區塊樣式 ========= */
.section-title-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    background: url(images/blue.jpg) no-repeat left center;
    padding-left: 15px;
    margin: 0 20px 10px 20px;
    border-bottom: 2px solid #0e6d9b;
    padding-bottom: 5px;
}
.promo-subtitle {
    padding: 0 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}
.case-study-title {
    padding: 0 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #0e6d9b;
    text-align: center;
}

.promo-section, .success-section, .tutorial-section {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

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

.promo-card {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.promo-header {
    background-color: #0e6d9b;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}
.promo-header h3 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.2;
}
.promo-button {
    background-color: #ff8c00;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.promo-button:hover {
    background-color: #cc7000;
}

.promo-content {
    padding: 15px;
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
}
.promo-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}
.promo-content .app-note {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 1rem;
}
.app-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.app-icons i {
    font-size: 28px;
    color: #0e6d9b;
}

.promo-grid-extra {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}
.extra-product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}
.extra-product-card i {
    font-size: 24px;
    color: #0e6d9b;
    flex-shrink: 0;
}
.extra-product-card span {
    flex-grow: 1;
    line-height: 1.3;
}
.extra-promo-button {
    background-color: #5cb85c;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.extra-promo-button:hover {
    background-color: #449d44;
}

/* ========= 表單頁面樣式 (美化版) ========= */
.form-container {
    padding: 30px 40px 40px 40px;
    max-width: 750px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}
.form-container h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #0e6d9b;
    font-size: 1.8rem;
    font-weight: bold;
}
.form-container p {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    font-size: 1rem;
}
.form-group {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 120px 1fr; /* 左邊標籤寬度，右邊輸入框填滿 */
    align-items: center;
    gap: 20px;
}
.form-group label {
    font-weight: bold;
    color: #333;
    text-align: right;
    font-size: 1rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}
.form-group input:focus {
    border-color: #0e6d9b;
    outline: none;
    box-shadow: 0 0 8px rgba(14, 109, 155, 0.25);
}
.form-submit-button {
    display: block;
    width: 50%;
    padding: 15px;
    background-color: #0e6d9b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    margin: 40px auto 0 auto; /* 上方間距、左右置中、下方無間距 */
}
.form-submit-button:hover {
    background-color: #0a4a68;
    transform: translateY(-2px); /* 輕微上浮效果 */
}

/* 頁尾 */
.main-footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
}

/* =================================== */
/* 媒體查詢 (RWD 核心) @media          */
/* =================================== */
@media (max-width: 900px) {
    .header-right {
        display: none;
    }
    .promo-grid-extra {
        grid-template-columns: repeat(2, 1fr); /* 平板改為兩欄 */
    }
}


@media (max-width: 900px) {
    body {
        padding: 0;
    }
    
    .header-flex {
        justify-content: space-between;
    }
    .company-name {
        display: none;
    }
    .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }
    .content-wrapper {
        margin: 0;
        max-width: 100%;
        box-shadow: none;
    }
    .main-header {
        position: sticky;
        width: 100%;
        top: 0;
        z-index: 1001;
    }
    body {
        padding-top: 0;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-grid {
        grid-template-columns: 1fr;
    }
    .grid-right {
        padding-left: 0;
        border-left: none;
        margin-top: 2rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }
    .section-title-text, .promo-subtitle, .case-study-title {
        margin-left: 20px;
        margin-right: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .section-title-text {
        padding-left: 15px;
    }

    .main-footer {
        padding: 15px;
    }

    /* 手機版表單樣式調整 */
    .form-container {
        margin: 20px 15px;
        padding: 20px;
    }
    .form-group {
        grid-template-columns: 1fr; /* 手機版改為單欄 */
        gap: 10px;
    }
    .form-group label {
        text-align: left; /* 標籤靠左對齊 */
    }
    .form-submit-button {
        width: 100%;
    }
}

/* ========= 服務次導覽列 ========= */
.service-sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 20px;
    background: #f0f4f7;
    border-bottom: 1px solid #ddd;
}
.service-sub-nav a {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #0e6d9b;
    border: 1px solid #0e6d9b;
    transition: all 0.2s;
}
.service-sub-nav a:hover,
.service-sub-nav a.active {
    background-color: #0e6d9b;
    color: #fff;
}

/* ========= 子頁面共用樣式 ========= */
.page-banner { line-height: 0; margin-bottom: 0; }
.page-banner img { width: 100%; }

.subpage-content { padding: 20px; }

/* ── 子頁面 Hero Banner ── */
.subpage-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #0a4a68 0%, #0e6d9b 100%);
}
.subpage-hero.hero-green   { background: linear-gradient(135deg, #1e6040 0%, #2e8b57 100%); }
.subpage-hero.hero-cloud   { background: linear-gradient(135deg, #004f9b 0%, #0078d4 100%); }
.subpage-hero.hero-orange  { background: linear-gradient(135deg, #8c3a00 0%, #c55a11 100%); }
.subpage-hero.hero-purple  { background: linear-gradient(135deg, #3a2870 0%, #5b4d8e 100%); }
.subpage-hero.hero-red     { background: linear-gradient(135deg, #5e1010 0%, #8b2020 100%); }

.subpage-hero-icon {
    font-size: 3rem;
    opacity: 0.9;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}
.subpage-hero-text h2 {
    font-size: 1.4rem;
    margin: 0 0 4px 0;
    color: #fff;
}
.subpage-hero-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.88;
}

/* ── service-info-card 改良版 ── */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}
.service-info-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-info-card:hover {
    box-shadow: 0 5px 16px rgba(14,109,155,0.15);
    transform: translateY(-2px);
}
.service-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px 10px;
    background: var(--sic-color, #0e6d9b);
    color: #fff;
}
.service-info-card-header .sic-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    flex-shrink: 0;
}
.service-info-card-header h3 {
    font-size: 1rem;
    margin: 0;
    color: #fff;
    border: none;
    padding: 0;
}
.service-info-card-body {
    padding: 14px 16px 16px;
}
.service-info-card-body p { color: #555; font-size: 0.88rem; line-height: 1.65; margin-bottom: 8px; }
.service-info-card-body ul.product-tags { margin-top: 4px; }

/* 舊版相容 (無 header 的 card) */
.service-info-card > h3 {
    color: #0e6d9b;
    margin: 0;
    padding: 13px 16px 10px;
    font-size: 1rem;
    border-bottom: 2px solid #0e6d9b;
    background: #f0f6fb;
}
.service-info-card > p,
.service-info-card > ul { padding: 10px 16px; color: #555; font-size: 0.88rem; line-height: 1.65; }
.service-info-card > ul.product-tags { padding: 10px 16px 14px; }
.service-info-card .card-button { margin: 0 16px 16px; }

/* ── Hero 色彩變數套用到 card ── */
.hero-green   + * .service-info-card-header,
.cards-green  .service-info-card-header { --sic-color: #2e8b57; }
.hero-cloud   + * .service-info-card-header,
.cards-cloud  .service-info-card-header { --sic-color: #0078d4; }
.hero-orange  + * .service-info-card-header,
.cards-orange .service-info-card-header { --sic-color: #c55a11; }
.hero-purple  + * .service-info-card-header,
.cards-purple .service-info-card-header { --sic-color: #5b4d8e; }
.hero-red     + * .service-info-card-header,
.cards-red    .service-info-card-header { --sic-color: #8b2020; }

/* 專案頁 */
.project-section {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.project-section-header {
    background: #0e6d9b;
    color: #fff;
    padding: 12px 20px;
}
.project-section-header h2 { margin: 0; font-size: 1.2rem; }
.project-section-header p { margin: 4px 0 0; font-size: 0.85rem; opacity: 0.85; }
.project-section-body { padding: 20px; overflow: hidden; }
.cert-list { list-style: none; padding: 0; margin-bottom: 15px; }
.cert-list li {
    padding: 5px 0 5px 15px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #444;
}
.cert-list li::before { content: '▸'; color: #0e6d9b; position: absolute; left: 0; }
.cert-list li.glay { color: #888; font-style: italic; }
.service-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}
.service-list-grid ul { list-style: none; padding: 0; margin: 0; }
.service-list-grid ul li {
    padding: 4px 0 4px 15px;
    position: relative;
    font-size: 0.88rem;
    color: #555;
}
.service-list-grid ul li::before { content: '•'; color: #0e6d9b; position: absolute; left: 0; }

/* 產品頁 */
.product-section { margin-bottom: 25px; }
.product-section h3 {
    color: #0e6d9b;
    border-left: 4px solid #0e6d9b;
    padding-left: 10px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}
.product-tags li {
    background: #eef2f5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    color: #444;
    border: 1px solid #ddd;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* 網站製作頁 */
.website-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.website-type-card { border: 1px solid #ddd; border-radius: 8px; padding: 15px; background: #f9f9f9; }
.website-type-card h4 { color: #0e6d9b; margin-bottom: 8px; }
.website-type-card p { font-size: 0.88rem; color: #555; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 20px 0;
}
.process-step {
    background: #0e6d9b;
    color: #fff;
    padding: 15px 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
}
.process-step h4 { font-size: 0.9rem; margin-bottom: 6px; }
.process-step ul { list-style: none; padding: 0; }
.process-step ul li { padding: 2px 0; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.portfolio-item { text-align: center; }
.portfolio-item img { width: 100%; border: 1px solid #ddd; }
.portfolio-item p { font-size: 0.8rem; color: #555; margin-top: 5px; }
.portfolio-item a img { transition: opacity 0.2s; }
.portfolio-item a img:hover { opacity: 0.85; }

/* 聯絡我們頁 */
.contact-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
}
.contact-card h3 {
    color: #0e6d9b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0e6d9b;
}
.contact-info-row {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.contact-info-row:last-child { border-bottom: none; }
.contact-label { font-weight: bold; color: #0e6d9b; min-width: 90px; font-size: 0.9rem; padding-top: 1px; }
.contact-value { color: #444; font-size: 0.9rem; line-height: 1.6; }
.contact-value a { color: #0e6d9b; }

@media (max-width: 900px) {
    .service-cards-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .website-types { grid-template-columns: 1fr; }
    .service-list-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }

    /* subpage hero 手機版縮排 */
    .subpage-hero { padding: 16px; gap: 14px; }
    .subpage-hero-icon { font-size: 2.2rem; width: 44px; }
    .subpage-hero-text h2 { font-size: 1.15rem; }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .promo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .promo-button {
        align-self: flex-start;
    }

    .promo-grid-extra {
        grid-template-columns: 1fr; /* 手機版改為一欄 */
    }
}

/* ========= 通用 svc-section（多段配色區塊，仿 Cloud 頁） ========= */
.svc-section {
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.svc-section-header {
    padding: 12px 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.svc-section-subtitle {
    font-size: 0.78rem;
    opacity: 0.85;
    font-weight: normal;
}
.svc-section-body {
    padding: 15px 20px;
    background: #f9f9f9;
}
.svc-section-body p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 10px;
}
.svc-section-body ul.product-tags { margin-top: 6px; }
.svc-section-body ul.cert-list   { margin-bottom: 0; }

/* ── 頁面配色 class（套在 svc-section-header 上） ── */
/* Blue 系：基礎建設 */
.sh-blue1  { background: #0a4a68; }
.sh-blue2  { background: #0e6d9b; }
.sh-blue3  { background: #1976a8; }
.sh-blue4  { background: #2688bd; }
.sh-blue5  { background: #0d7a8a; }
.sh-blue6  { background: #1a6e8b; }

/* Green 系：維護合約 */
.sh-green1 { background: #1e5c38; }
.sh-green2 { background: #256e44; }
.sh-green3 { background: #2e8b57; }
.sh-green4 { background: #3a9e65; }
.sh-green5 { background: #4aab6d; }
.sh-green6 { background: #1a7048; }

/* Orange 系：技術支援 */
.sh-org1   { background: #7a2e00; }
.sh-org2   { background: #a03800; }
.sh-org3   { background: #c04a08; }
.sh-org4   { background: #c55a11; }
.sh-org5   { background: #d4690e; }
.sh-org6   { background: #9a4200; }

/* Purple 系：通訊系統 */
.sh-pur1   { background: #33215a; }
.sh-pur2   { background: #42306e; }
.sh-pur3   { background: #4e3d80; }
.sh-pur4   { background: #5b4d8e; }
.sh-pur5   { background: #6b5ea8; }

/* Red 系：客製化 */
.sh-red1   { background: #5e1010; }
.sh-red2   { background: #741818; }
.sh-red3   { background: #8b2020; }
.sh-red4   { background: #9e2a2a; }
.sh-red5   { background: #a83535; }

@media (max-width: 576px) {
    .svc-section-subtitle { display: none; }
}

/* ========= 手機版 nav active 樣式 ========= */
.main-nav ul li a.active {
    background: rgba(0,120,212,0.18);
    color: #fff;
    border-left: 3px solid #ff8c00;
    padding-left: 17px;
}

/* ========= 桌機版 active 圖示橘色底線 ========= */
.desktop-nav a.active-nav-item {
    border-bottom: none;
    filter: brightness(1.08);
    background: rgba(0,120,212,0.22);
}
.desktop-nav a.active-nav-item::after {
    background: #ff8c00 !important;
    height: 3px !important;
}

/* ========= 專案頁 groups-overview：手機版加順序編號 ========= */
@counter-style group-counter {
    system: numeric;
    symbols: "①" "②" "③" "④" "⑤" "⑥" "⑦" "⑧" "⑨";
}

.groups-overview {
    counter-reset: group-step;
}
.group-col {
    counter-increment: group-step;
    position: relative;
}

@media (max-width: 900px) {
    .group-col h3::before {
        content: counter(group-step) ". ";
        font-size: 1rem;
        font-weight: bold;
        opacity: 0.85;
    }
}

/* ========= 手機版 section 顏色流程視覺區隔 ========= */
@media (max-width: 900px) {
    /* section 標題加左色條，幫助辨別層次 */
    .section-title-text {
        background: none;
        border-left: 4px solid #0e6d9b;
        border-bottom: 1px solid #ddd;
        padding: 8px 12px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        color: #0e6d9b;
    }

    /* project-section header 補強對比 */
    .project-section-header {
        padding: 14px 15px;
    }
    .project-section-header h2 {
        font-size: 1rem;
    }

    /* 手機版 process-steps 加編號 */
    .process-steps {
        counter-reset: step-counter;
    }
    .process-step {
        counter-increment: step-counter;
        position: relative;
    }
    .process-step h4::before {
        content: counter(step-counter) ". ";
    }

    /* 改善 promo-card 在手機的可讀性 */
    .promo-header h3 {
        font-size: 1rem;
    }

    /* 手機版 backup-grid 改為單欄 */
    .backup-grid {
        grid-template-columns: 1fr !important;
    }

    /* 手機版 cloud-items 換行更清楚 */
    .cloud-items {
        flex-direction: column;
    }
    .cloud-item {
        width: 100%;
    }

    /* subpage-content 縮減 padding */
    .subpage-content {
        padding: 15px;
    }

    /* 手機版 products-grid 已單欄，加間距 */
    .products-grid {
        gap: 15px;
    }
    .product-section {
        border: 1px solid #eee;
        border-radius: 6px;
        padding: 12px;
        background: #fafafa;
    }
}

/* =====================================================
   首頁專用樣式 (index.html)
   ===================================================== */

/* ── 桌機版 Nav 圖片 hover 效果 ── */
.desktop-nav a img {
    transition: filter 0.2s ease, transform 0.2s ease;
    display: block;
}
.desktop-nav a:hover img {
    filter: brightness(1.18);
    transform: scaleY(1.04);
}

/* ── Hero 主視覺 ── */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.hero-section .hero-bg {
    width: 100%;
    height: auto;
    display: block;
    min-height: 220px;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,25,55,0.82) 0%, rgba(10,60,100,0.55) 60%, rgba(0,0,0,0.15) 100%);
    display: flex;
    align-items: center;
}
.hero-content {
    padding: 24px 32px;
    max-width: 600px;
    line-height: 1.4;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,140,0,0.92);
    color: #fff;
    font-size: 0.78rem;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}
.hero-content h2 {
    font-size: 1.7rem;
    color: #fff;
    font-weight: bold;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.25;
}
.hero-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 16px;
    line-height: 1.6;
}
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.hero-pill {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.73rem;
    padding: 3px 10px;
    border-radius: 4px;
}
.hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-btn-primary {
    background: #ff8c00;
    color: #fff;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}
.hero-btn-primary:hover { background: #e07800; }
.hero-btn-outline {
    background: transparent;
    color: #fff;
    padding: 9px 22px;
    border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.7);
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.15); }

@media (max-width: 900px) {
    .hero-content { padding: 16px 18px; }
    .hero-content h2 { font-size: 1.15rem; }
    .hero-badge { font-size: 0.7rem; }
    .hero-tagline { font-size: 0.78rem; }
}

/* ── 企業身分識別帶 ── */
.partner-bar {
    background: linear-gradient(90deg, #051937 0%, #0a3d62 50%, #051937 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.partner-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.82rem;
}
.partner-bar-item i { color: #ff8c00; font-size: 1.1rem; }
.partner-bar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.25);
}

/* ── 服務能力卡片 ── */
.capabilities-section {
    padding: 28px 20px;
    background: #fff;
    border-top: 3px solid #0e6d9b;
}
.capabilities-section h2 {
    font-size: 1.25rem;
    color: #0e6d9b;
    margin-bottom: 6px;
    border-left: 4px solid #ff8c00;
    padding-left: 12px;
}
.capabilities-subtitle {
    font-size: 0.88rem;
    color: #777;
    margin-bottom: 20px;
    padding-left: 16px;
}
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.cap-card {
    background: #f4f8fc;
    border: 1px solid #d0e4f0;
    border-radius: 8px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cap-card:hover {
    box-shadow: 0 6px 18px rgba(14,109,155,0.15);
    transform: translateY(-3px);
}
.cap-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.cap-card h3 {
    font-size: 0.88rem;
    font-weight: bold;
    color: #1a3a5c;
    margin: 0;
    line-height: 1.3;
}
.cap-card p {
    font-size: 0.77rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.cap-card .cap-link {
    font-size: 0.75rem;
    color: #0e6d9b;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
}
.cap-card .cap-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
    .capabilities-grid { grid-template-columns: 1fr; }
}

/* ── 公司沿革橫向時間軸 ── */
.history-section {
    padding: 24px 20px;
    background: #eef2f5;
    border-top: 1px solid #ddd;
}
.history-section h2 {
    font-size: 1.1rem;
    color: #0e6d9b;
    margin-bottom: 16px;
    border-left: 4px solid #ff8c00;
    padding-left: 12px;
}
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.timeline-item {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    border-top: 3px solid #0e6d9b;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.4;
}
.timeline-item.highlight {
    border-top-color: #ff8c00;
    background: #fff8f0;
}
.timeline-year {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0e6d9b;
    display: block;
    margin-bottom: 4px;
}
.timeline-item.highlight .timeline-year { color: #ff8c00; }

@media (max-width: 900px) {
    .timeline-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .timeline-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 雲端備份區 ── */
.cloud-cta-section {
    padding: 24px 20px;
    background: linear-gradient(135deg, #051937 0%, #0a3d62 100%);
    color: #fff;
}
.cloud-cta-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cloud-cta-text h2 {
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 6px;
}
.cloud-cta-text p { font-size: 0.85rem; color: rgba(255,255,255,0.82); margin: 0; }
.cloud-cta-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.cloud-cta-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: #fff;
}
.cloud-cta-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}
@media (max-width: 900px) {
    .cloud-cta-btns { margin-left: 0; }
}

/* ── 聯絡 CTA 橫帶 ── */
.contact-cta-section {
    background: #ff8c00;
    padding: 20px;
    text-align: center;
    color: #fff;
}
.contact-cta-section h2 { font-size: 1.2rem; margin: 0 0 8px; }
.contact-cta-section p { font-size: 0.88rem; margin: 0 0 14px; opacity: 0.92; }
.cta-btn-white {
    display: inline-block;
    background: #fff;
    color: #c55a11;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.cta-btn-white:hover { background: #f5f5f5; }

/* ── 深藍 Footer ── */
.main-footer-new {
    background: linear-gradient(180deg, #0a1f3c 0%, #051230 100%);
    color: #cdd8e8;
    padding: 36px 20px 20px;
    font-size: 0.83rem;
    line-height: 1.7;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}
.footer-brand h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 4px;
}
.footer-brand .footer-tagline {
    color: #ff8c00;
    font-size: 0.75rem;
    margin-bottom: 10px;
}
.footer-brand p { color: #aab8cc; }
.footer-col h4 {
    color: #fff;
    font-size: 0.88rem;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a {
    color: #aab8cc;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #ff8c00; }
.footer-contact-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.footer-contact-row i { color: #ff8c00; margin-top: 2px; flex-shrink: 0; }
.footer-contact-row a { color: #aab8cc; text-decoration: none; }
.footer-contact-row a:hover { color: #ff8c00; }
.footer-bottom {
    max-width: 1100px;
    margin: 20px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.77rem;
    color: #778899;
}
.footer-bottom a { color: #778899; text-decoration: none; }
.footer-bottom a:hover { color: #ff8c00; }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .partner-bar { flex-direction: column; gap: 10px; text-align: center; }
    .partner-bar-divider { display: none; }
    .cloud-cta-inner { flex-direction: column; }
}

/* =====================================================
   首頁新增區塊樣式 (2025-v3)
   ===================================================== */

/* ── 共用 section 標題 ── */
.idx-section-label {
    display: inline-block;
    background: #ff8c00;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.idx-section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0a1f3c;
    margin: 0 0 4px;
}
.idx-section-sub {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 20px;
}
.idx-section {
    padding: 30px 20px;
}
.idx-section.bg-white  { background: #fff; }
.idx-section.bg-light  { background: #eef2f5; }
.idx-section.bg-dark   { background: linear-gradient(135deg, #051937 0%, #0a3d62 100%); }
.idx-section.bg-stripe { background: #f4f8fc; }

/* ── 五大服務組 ── */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.team-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.team-card-header {
    padding: 18px 14px 12px;
    color: #fff;
    text-align: center;
}
.team-card-header i { font-size: 2rem; margin-bottom: 8px; display: block; }
.team-card-header h3 { font-size: 0.95rem; margin: 0; }
.team-card-body {
    padding: 12px 14px 16px;
    background: #fff;
    flex: 1;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.55;
}
.team-card-body p { margin: 0 0 8px; }
.team-card-body ul {
    list-style: none; padding: 0; margin: 0;
}
.team-card-body ul li {
    padding: 2px 0 2px 12px;
    position: relative;
}
.team-card-body ul li::before {
    content: '·'; position: absolute; left: 2px;
    color: #0e6d9b; font-weight: bold;
}
.team-card-link {
    display: block;
    text-align: center;
    padding: 8px;
    background: #f0f4f8;
    color: #0e6d9b;
    font-size: 0.75rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}
.team-card-link:hover { background: #0e6d9b; color: #fff; }

@media (max-width: 900px) { .teams-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .teams-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .teams-grid { grid-template-columns: 1fr; } }

/* ── 主力服務 5 類 ── */
.main-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
/* 桌機：第5張卡片橫跨2欄（僅 ≥901px 生效） */
@media (min-width: 901px) {
    .svc-card-wide { grid-column: span 2; }
}
.main-svc-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(14,109,155,0.08);
    border: 1px solid #d8e8f2;
    transition: box-shadow 0.2s, transform 0.2s;
}
a.main-svc-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.main-svc-card:hover {
    box-shadow: 0 6px 18px rgba(14,109,155,0.16);
    transform: translateY(-3px);
}
.main-svc-footer {
    padding: 9px 16px;
    background: #f0f7fc;
    font-size: 0.78rem;
    font-weight: bold;
    color: #0e6d9b;
    border-top: 1px solid #d0e4f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-svc-card:hover .main-svc-footer { background: #0e6d9b; color: #fff; }
.main-svc-header {
    padding: 14px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.main-svc-header i { font-size: 1.4rem; flex-shrink: 0; }
.main-svc-header h3 { font-size: 0.95rem; margin: 0; line-height: 1.3; }
.main-svc-body {
    padding: 12px 16px 14px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 900px) { .main-svc-grid { grid-template-columns: 1fr; } }
/* main-svc-grid 480px — 已由 900px 1fr 涵蓋 */

/* ── 雲端服務區 ── */
.cloud-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cloud-svc-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    overflow: hidden;
}
.cloud-svc-card-header {
    padding: 10px 14px;
    font-weight: bold;
    font-size: 0.88rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cloud-svc-card-body {
    padding: 10px 14px 12px;
    background: rgba(255,255,255,0.05);
}
.cloud-svc-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.cloud-svc-item {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) { .cloud-svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cloud-svc-grid { grid-template-columns: 1fr; } }

/* ── 雲端備份區 ── */
.backup-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.backup-item-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.backup-item-card:hover { transform: translateY(-3px); }
.backup-item-header {
    padding: 10px 12px;
    color: #fff;
    font-weight: bold;
    font-size: 0.82rem;
}
.backup-item-body {
    padding: 10px 12px;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.55;
}
.backup-item-desc {
    font-size: 0.73rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.backup-item-body ul { list-style: none; padding: 0; margin: 0; }
.backup-item-body ul li {
    padding: 2px 0 2px 12px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.backup-item-body ul li:last-child { border-bottom: none; }
.backup-item-body ul li::before {
    content: '▸'; position: absolute; left: 0;
    color: #0e6d9b; font-size: 0.65rem; top: 4px;
}

@media (max-width: 900px) { .backup-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .backup-cards-grid { grid-template-columns: 1fr 1fr; } }

/* ── 認證區 ── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cert-item {
    background: #fff;
    border-radius: 8px;
    padding: 14px 14px 12px;
    box-shadow: 0 2px 8px rgba(14,109,155,0.08);
    border-left: 3px solid #0e6d9b;
}
.cert-item.ms   { border-left-color: #0078d4; }
.cert-item.goog { border-left-color: #34a853; }
.cert-item.pmp  { border-left-color: #c55a11; }
.cert-item.net  { border-left-color: #0d7a8a; }
.cert-item.sec  { border-left-color: #8b2020; }
.cert-item-badge {
    font-size: 0.68rem;
    font-weight: bold;
    color: #fff;
    background: #0e6d9b;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 6px;
}
.cert-item.ms   .cert-item-badge { background: #0078d4; }
.cert-item.goog .cert-item-badge { background: #34a853; }
.cert-item.pmp  .cert-item-badge { background: #c55a11; }
.cert-item.net  .cert-item-badge { background: #0d7a8a; }
.cert-item.sec  .cert-item-badge { background: #8b2020; }
.cert-item h4 { font-size: 0.82rem; color: #1a3a5c; margin: 0 0 4px; line-height: 1.3; }
.cert-item p { font-size: 0.74rem; color: #666; margin: 0; line-height: 1.45; }

@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cert-grid { grid-template-columns: 1fr; } }

/* ── 產業服務經驗 ── */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.industry-card {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(14,109,155,0.08);
    border: 1px solid #d8e8f2;
    transition: box-shadow 0.2s, transform 0.2s;
}
.industry-card:hover {
    box-shadow: 0 6px 18px rgba(14,109,155,0.15);
    transform: translateY(-2px);
}
.industry-card-header {
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}
.industry-card-header i { font-size: 1.2rem; flex-shrink: 0; }
.industry-card-body {
    padding: 10px 16px 14px;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.6;
}
.industry-card-body .ind-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}
.industry-card-body .ind-label {
    font-weight: bold;
    color: #0a4a68;
    min-width: 52px;
    flex-shrink: 0;
}

@media (max-width: 576px) { .industry-grid { grid-template-columns: 1fr; } }

/* =====================================================
   全站科技型子頁樣式 (v3 2025)
   ===================================================== */

/* ── site-top 深藍視覺群組（header + nav + hero 一體化時使用） ── */
.site-top {
    background:
        radial-gradient(circle at 70% 20%, rgba(0,120,212,0.25), transparent 38%),
        radial-gradient(circle at 12% 75%, rgba(14,109,155,0.18), transparent 40%),
        linear-gradient(180deg, #030e22 0%, #051937 45%, #073b63 100%);
    overflow: hidden; /* 防止 pseudo-element 造成水平捲動 */
}
/* 套用 site-top 時 header 背景設為透明，由父層統一處理 */
.site-top .main-header {
    background: transparent;
    border-bottom-color: rgba(255,255,255,0.08);
}
.site-top .desktop-nav {
    background: rgba(4,15,36,0.75);
}
.site-top .page-hero {
    background: transparent;
    margin-left: 0;
    margin-right: 0;
    padding: 48px max(40px, calc(50% - 550px));
    border-radius: 0;
}
.site-top .hero-feature-bar {
    background: rgba(3,14,34,0.9);
    margin-left: 0;
    margin-right: 0;
    padding: 12px max(40px, calc(50% - 550px));
    border-radius: 0;       /* 取消圓角，因已是 site-top 底邊 */
    box-shadow: none;       /* 取消 box-shadow，由 site-top 統一管理 */
}
/* site-top 內 mobile padding 修正（避免被高 specificity 覆蓋） */
@media (max-width: 900px) {
    .site-top .page-hero { padding: 32px 20px; }
}
@media (max-width: 576px) {
    .site-top .page-hero { padding: 24px 16px; }
    .site-top .hero-feature-bar { padding: 10px 16px; }
}

/* ── 子頁科技感 Hero ── */
.page-hero {
    background: linear-gradient(135deg, #030e22 0%, #051937 40%, #0a3d62 100%);
    /* margin breakout：讓 hero 突破 content-wrapper 延伸到全視窗寬 */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 48px max(40px, calc(50vw - 550px));
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 50%, rgba(14,109,155,0.25) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(0,120,212,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero-left { position: relative; z-index: 1; }
.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,140,0,0.18);
    border: 1px solid rgba(255,140,0,0.4);
    color: #ffb347;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}
.page-hero h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.2;
}
.page-hero-desc {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: 18px;
}
.page-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}
.page-hero-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    font-size: 0.73rem;
    padding: 3px 10px;
    border-radius: 4px;
}
.page-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.page-hero-right {
    position: relative;
    z-index: 1;
    text-align: center;
}
.page-hero-icon-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    margin: 0 auto;
}

@media (max-width: 900px) {
    .page-hero { grid-template-columns: 1fr; gap: 20px; padding: 32px 20px; }
    .page-hero-right { display: none; }
    .page-hero h1 { font-size: 1.5rem; }
    .hero-feature-bar { border-radius: 0; }
}
@media (max-width: 480px) {
    .page-hero { padding: 24px 16px; }
    .page-hero h1 { font-size: 1.25rem; }
}

/* ── 服務說明 (痛點/協助/效益) ── */
.service-story {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid #d0e4f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}
.service-story-block {
    padding: 20px 22px;
    background: #fff;
}
.service-story-block + .service-story-block {
    border-left: 1px solid #d0e4f0;
}
.service-story-block h4 {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.service-story-block h4 i { font-size: 0.9rem; }
.service-story-block.pain  h4 { color: #8b2020; }
.service-story-block.help  h4 { color: #0e6d9b; background: #f0f7fc; margin: -20px -22px 10px; padding: 12px 22px; }
.service-story-block.gain  h4 { color: #2e8b57; }
.service-story-block ul { list-style: none; padding: 0; margin: 0; }
.service-story-block ul li {
    padding: 4px 0 4px 16px;
    position: relative;
    font-size: 0.82rem;
    color: #444;
    line-height: 1.5;
    border-bottom: 1px solid #f5f5f5;
}
.service-story-block ul li:last-child { border-bottom: none; }
.service-story-block.pain ul li::before { content: '!'; position: absolute; left: 0; color: #8b2020; font-weight: bold; }
.service-story-block.help ul li::before { content: '✓'; position: absolute; left: 0; color: #0e6d9b; font-weight: bold; }
.service-story-block.gain ul li::before { content: '↑'; position: absolute; left: 0; color: #2e8b57; font-weight: bold; }

@media (max-width: 900px) {
    .service-story { grid-template-columns: 1fr; }
    .service-story-block + .service-story-block { border-left: none; border-top: 1px solid #d0e4f0; }
}

/* ── 流程步驟 ── */
.flow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
    margin-bottom: 28px;
}
.flow-step {
    flex: 1;
    min-width: 100px;
    background: #f4f8fc;
    border: 1px solid #d0e4f0;
    padding: 16px 12px;
    text-align: center;
    position: relative;
}
.flow-step + .flow-step { border-left: none; }
.flow-step::after {
    content: '›';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #0e6d9b;
    z-index: 1;
    background: #f4f8fc;
    width: 20px;
    text-align: center;
}
.flow-step:last-child::after { display: none; }
.flow-step-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0e6d9b;
    color: #fff;
    font-size: 0.78rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.flow-step h4 { font-size: 0.78rem; color: #1a3a5c; margin: 0 0 3px; }
.flow-step p { font-size: 0.7rem; color: #777; margin: 0; line-height: 1.4; }

@media (max-width: 900px) {
    .flow-steps { flex-direction: column; }
    .flow-step { border-left: 1px solid #d0e4f0; border-top: none; }
    .flow-step + .flow-step { border-top: none; }
    .flow-step::after { content: '↓'; right: auto; top: auto; bottom: -12px; left: 50%; transform: translateX(-50%); }
}

/* ── 比較方案卡片 ── */
.plan-compare-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.plan-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(14,109,155,0.1);
    border: 1px solid #d0e4f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(14,109,155,0.18); }
.plan-card.featured { border-color: #0e6d9b; border-width: 2px; }
.plan-card-header {
    padding: 16px 16px 12px;
    color: #fff;
    background: #0e6d9b;
}
.plan-card.featured .plan-card-header { background: #0a4a68; }
.plan-card-header h3 { font-size: 1rem; margin: 0 0 4px; }
.plan-card-header p { font-size: 0.75rem; opacity: 0.88; margin: 0; }
.plan-card-body { padding: 14px 16px; flex: 1; font-size: 0.8rem; color: #555; }
.plan-card-body ul { list-style: none; padding: 0; margin: 0; }
.plan-card-body ul li {
    padding: 4px 0 4px 14px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.plan-card-body ul li:last-child { border-bottom: none; }
.plan-card-body ul li::before { content: '✓'; position: absolute; left: 0; color: #2e8b57; font-size: 0.75rem; }
.plan-card-footer { padding: 12px 16px; }

@media (max-width: 900px) { .plan-compare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .plan-compare-grid { grid-template-columns: 1fr; } }

/* ── 服務導流卡片（連結到子頁）── */
.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.nav-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(14,109,155,0.08);
    border: 1px solid #d0e4f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.nav-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(14,109,155,0.18); }
.nav-card-header {
    padding: 18px 16px 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-card-header i { font-size: 1.6rem; flex-shrink: 0; opacity: 0.9; }
.nav-card-header h3 { font-size: 1rem; margin: 0; line-height: 1.3; color: #fff; }
.nav-card-body {
    padding: 12px 16px 16px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
}
.nav-card-footer {
    padding: 10px 16px;
    background: #f0f7fc;
    font-size: 0.78rem;
    font-weight: bold;
    color: #0e6d9b;
    border-top: 1px solid #d0e4f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-card:hover .nav-card-footer { background: #0e6d9b; color: #fff; }

@media (max-width: 900px) { .nav-cards-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nav-cards-grid { grid-template-columns: 1fr; } }

/* ── 科技感分隔帶 ── */
.tech-divider {
    background: linear-gradient(90deg, #051937, #0e6d9b, #051937);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.tech-divider-title { color: #fff; font-size: 0.95rem; font-weight: bold; }
.tech-divider-sub { color: rgba(255,255,255,0.75); font-size: 0.8rem; flex: 1; }

/* ── 適合對象區 ── */
.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.target-item {
    background: linear-gradient(135deg, #f4f8fc, #eef2f5);
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 3px solid #0e6d9b;
    font-size: 0.82rem;
    color: #444;
    line-height: 1.6;
}
.target-item strong { color: #0a4a68; display: block; margin-bottom: 4px; font-size: 0.88rem; }
@media (max-width: 900px) { .target-grid { grid-template-columns: 1fr; } }

/* ── 跨組情境 ── */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.scenario-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(14,109,155,0.08);
    border: 1px solid #d0e4f0;
}
.scenario-card h4 {
    color: #0a4a68;
    font-size: 0.9rem;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0eaf0;
}
.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.scenario-tag {
    background: #eef2f5;
    border: 1px solid #cde;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.72rem;
    color: #0e6d9b;
    font-weight: bold;
}
@media (max-width: 900px) { .scenario-grid { grid-template-columns: 1fr; } }

/* ── 雙站分工 Banner ── */
.dual-site-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}
.dual-site-col {
    padding: 24px 28px;
}
.dual-site-col.col-a { background: #0a3d62; color: #fff; }
.dual-site-col.col-b { background: #ff8c00; color: #fff; }
.dual-site-col h3 { font-size: 1rem; margin: 0 0 6px; }
.dual-site-col p { font-size: 0.82rem; opacity: 0.9; margin: 0 0 14px; }
.dual-site-col ul { list-style: none; padding: 0; margin: 0 0 14px; font-size: 0.8rem; }
.dual-site-col ul li { padding: 2px 0 2px 12px; position: relative; opacity: 0.9; }
.dual-site-col ul li::before { content: '·'; position: absolute; left: 2px; font-weight: bold; }
@media (max-width: 600px) { .dual-site-banner { grid-template-columns: 1fr; } }

/* ── 通用 section 間距 ── */
.pg-section {
    padding: 32px 28px;
}
.pg-section + .pg-section { border-top: 1px solid #eee; }
.pg-section.bg-dark {
    background: linear-gradient(135deg, #051937 0%, #0a3d62 100%);
    border-top: none;
}
.pg-section.bg-light { background: #f4f8fc; border-top: none; }
.pg-section.bg-orange { background: linear-gradient(135deg, #c55a11, #ff8c00); border-top: none; }
.pg-section h2.pg-title {
    font-size: 1.2rem;
    color: #0a1f3c;
    margin: 0 0 4px;
    border-left: 4px solid #ff8c00;
    padding-left: 12px;
}
.pg-section.bg-dark h2.pg-title { color: #fff; border-left-color: #ff8c00; }
.pg-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 20px;
    padding-left: 16px;
}
.pg-section.bg-dark .pg-subtitle { color: rgba(255,255,255,0.75); }

/* ── Contact 諮詢區 ── */
.consult-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.consult-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    text-decoration: none;
    display: block;
}
.consult-item:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.consult-item i { font-size: 1.4rem; display: block; margin-bottom: 6px; color: #ff8c00; }
.consult-item h4 { font-size: 0.85rem; margin: 0 0 3px; }
.consult-item p { font-size: 0.74rem; margin: 0; opacity: 0.8; }
@media (max-width: 900px) { .consult-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .consult-grid { grid-template-columns: 1fr; } }

/* ── 手機版 pg-section ── */
@media (max-width: 900px) {
    .pg-section { padding: 24px 16px; }
    .page-hero { padding: 24px 16px; }
    .hero-feature-bar { padding: 10px 16px; gap: 14px; border-radius: 0; }
}

/* =====================================================
   RWDV3 視覺強化 v3.1 — 科技感提升
   ===================================================== */

/* ── page-hero 科技網格背景 ── */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14,109,155,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,109,155,0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}
/* 右上角光暈 */
.page-hero::before {
    background:
        radial-gradient(circle at 85% 20%, rgba(0,120,212,0.22) 0%, transparent 55%),
        radial-gradient(circle at 15% 80%, rgba(14,109,155,0.14) 0%, transparent 50%);
}

/* ── 科技型 Hero 右側服務面板 ── */
.hero-tech-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
    max-width: 280px;
    margin: 0 auto;
}
.hero-tech-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 0.82rem;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-tech-card:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,140,0,0.5);
    transform: translateX(-3px);
}
.hero-tech-card > i {
    font-size: 1.25rem;
    color: #ff8c00;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}
.hero-tech-card-text { flex: 1; min-width: 0; }
.hero-tech-card-label {
    font-weight: bold;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-tech-card-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .hero-tech-panel { display: none; }
}

/* ── page-hero 下方特性標籤帶 ── */
.hero-feature-bar {
    background: #030e22;
    border-top: 1px solid rgba(255,255,255,0.08);
    /* margin breakout：與 page-hero 同寬延伸 */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 12px max(40px, calc(50vw - 550px));
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.82);
    font-size: 0.78rem;
}
.hero-feature-item i { color: #ff8c00; font-size: 0.95rem; flex-shrink: 0; }
@media (max-width: 900px) {
    .hero-feature-item { font-size: 0.72rem; }
}

/* ── pg-section.bg-dark 科技紋理 ── */
.pg-section.bg-dark {
    position: relative;
    overflow: hidden;
}
.pg-section.bg-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14,109,155,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,109,155,0.09) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}
.pg-section.bg-dark > * { position: relative; z-index: 1; }

/* ── 強化 flow-step 編號 ── */
.flow-step-num {
    background: linear-gradient(135deg, #0e6d9b 0%, #0078d4 100%);
    box-shadow: 0 2px 8px rgba(0,120,212,0.35);
}
.flow-step {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}
.flow-step:hover {
    background: linear-gradient(180deg, #eaf3fb 0%, #ddeef8 100%);
    z-index: 1;
}
.flow-step h4 {
    font-weight: bold;
    color: #0a3060;
}

/* ── 科技指標帶 (技術統計) ── */
.tech-stat-bar {
    display: flex;
    background: linear-gradient(90deg, #030e22 0%, #051937 50%, #030e22 100%);
    padding: 16px 28px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.tech-stat-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(14,109,155,0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(14,109,155,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.tech-stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 6px 20px;
    position: relative;
    z-index: 1;
}
.tech-stat-item:last-child { border-right: none; }
.tech-stat-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff8c00;
    display: block;
    line-height: 1.2;
}
.tech-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.72);
    margin-top: 3px;
    display: block;
}
@media (max-width: 900px) {
    .tech-stat-bar { padding: 12px 16px; gap: 0; }
    .tech-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 8px 12px; min-width: 50%; }
    .tech-stat-item:last-child { border-bottom: none; }
}

/* ── 改善 pg-title 標題 ── */
.pg-section h2.pg-title {
    font-size: 1.25rem;
    border-left-width: 5px;
    letter-spacing: -0.01em;
}

/* ── nav-card 懸停更強視覺 ── */
.nav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(14,109,155,0.2);
}
.nav-card:hover .nav-card-header {
    filter: brightness(1.12);
}

/* ── plan-card 懸停增強 ── */
.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(14,109,155,0.2);
}
.plan-card.featured {
    box-shadow: 0 4px 18px rgba(14,109,155,0.2);
}
.plan-card.featured:hover {
    box-shadow: 0 12px 32px rgba(14,109,155,0.28);
}

/* ── cap-card 增強 ── */
.cap-card:hover .cap-card-icon {
    transform: scale(1.08);
}
.cap-card-icon {
    transition: transform 0.2s;
}

/* ── service-story 改善 ── */
.service-story-block.help {
    background: #f8fcff;
}

/* ── 商城導流醒目橫幅 ── */
.store-cta-band {
    background: linear-gradient(135deg, #c55a11 0%, #e87a20 100%);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.store-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.04) 10px,
        rgba(255,255,255,0.04) 20px
    );
    pointer-events: none;
}
.store-cta-band-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.85);
    flex-shrink: 0;
    position: relative;
}
.store-cta-band-text {
    flex: 1;
    color: #fff;
    position: relative;
}
.store-cta-band-text h3 {
    font-size: 1.05rem;
    margin: 0 0 4px;
}
.store-cta-band-text p {
    font-size: 0.82rem;
    opacity: 0.9;
    margin: 0;
}
.store-cta-band-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}
.btn-store-primary {
    background: #fff;
    color: #c55a11;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.btn-store-primary:hover { background: #fdf0e6; transform: translateY(-2px); }
.btn-store-outline {
    background: transparent;
    color: #fff;
    padding: 9px 20px;
    border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.7);
    font-weight: bold;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-store-outline:hover { background: rgba(255,255,255,0.15); }
@media (max-width: 900px) {
    .store-cta-band { flex-direction: column; align-items: flex-start; }
    .store-cta-band-btns { width: 100%; }
}

/* ── Contact 表單樣式 ── */
.consult-form-section {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 3px 16px rgba(14,109,155,0.1);
    border: 1px solid #d0e4f0;
}
.consult-form-section h3 {
    font-size: 1.05rem;
    color: #0a1f3c;
    margin: 0 0 6px;
    border-left: 4px solid #ff8c00;
    padding-left: 12px;
}
.consult-form-section p.form-note {
    font-size: 0.82rem;
    color: #666;
    margin: 0 0 20px;
    padding-left: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-field.full { grid-column: span 2; }
.form-field label {
    font-size: 0.82rem;
    font-weight: bold;
    color: #333;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd6e0;
    border-radius: 5px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #fafcfe;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #0e6d9b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,109,155,0.12);
    background: #fff;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 14px;
    flex-wrap: wrap;
}
.form-submit-note {
    font-size: 0.78rem;
    color: #888;
}
.btn-form-submit {
    background: #ff8c00;
    color: #fff;
    padding: 11px 28px;
    border: none;
    border-radius: 5px;
    font-size: 0.92rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
}
.btn-form-submit:hover { background: #e07800; transform: translateY(-2px); }
@media (max-width: 900px) {
    .form-row { grid-template-columns: 1fr; }
    .form-field.full { grid-column: span 1; }
    .consult-form-section { padding: 20px 16px; }
    .form-submit-row { flex-direction: column; align-items: stretch; }
    .btn-form-submit { justify-content: center; }
}

/* =====================================================
   桌機版：文字橫排導覽（≥901px）
   手機版：漢堡選單 + 文字下拉（≤900px）
   ===================================================== */
@media (min-width: 901px) {
    /* 桌機：隱藏圖片導覽列與漢堡按鈕 */
    .desktop-nav {
        display: none !important;
    }
    .hamburger-btn {
        display: none !important;
    }
    /* 桌機：文字導覽橫排顯示 */
    .main-nav,
    .main-nav.open {
        display: block !important;
        position: static !important;
        top: auto !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }
    .main-nav ul {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    .main-nav ul li {
        flex: 0 0 auto;
    }
    .main-nav ul li a {
        border-bottom: 3px solid transparent !important;
        padding: 12px 22px !important;
    }
    /* 桌機 active：橘色底線取代左側色塊 */
    .main-nav ul li a.active {
        background: transparent !important;
        border-left: none !important;
        padding-left: 22px !important;
        border-bottom: 3px solid #ff8c00 !important;
        color: #fff !important;
    }
    .main-nav ul li:last-child a {
        border-bottom: 3px solid transparent !important;
    }
}

/* =====================================================
   卡片系統統一 v3.2 — 消除「簡報色塊」感
   ===================================================== */

/* ── 彩色 header 共用：加光澤漸層覆蓋，軟化純色 ── */
.cloud-svc-card-header,
.backup-item-header,
.main-svc-header,
.nav-card-header {
    position: relative;
    overflow: hidden;
}
.cloud-svc-card-header::after,
.backup-item-header::after,
.main-svc-header::after,
.nav-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0.04) 50%,
        rgba(0,0,0,0.12) 100%
    );
    pointer-events: none;
}

/* ── cloud-svc-card：加 hover 動效 ── */
.cloud-svc-card {
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid rgba(255,255,255,0.16);
}
.cloud-svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
    border-color: rgba(255,140,0,0.38);
}

/* ── backup-item-card：加 box-shadow hover ── */
.backup-item-card {
    border-radius: 10px;
    border: 1px solid #e8f0f8;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.backup-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(14,109,155,0.16);
    border-color: rgba(14,109,155,0.3);
}

/* ── main-svc-card：加圓角到 10px ── */
.main-svc-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(14,109,155,0.09);
}
.main-svc-card:hover {
    box-shadow: 0 8px 24px rgba(14,109,155,0.18);
    transform: translateY(-4px);
}

/* ── nav-card：加左側色條 hover 效果 ── */
.nav-card {
    border-radius: 10px;
    border: 1px solid #d0e4f0;
    border-top: 3px solid #0e6d9b;
}
.nav-card:hover {
    border-top-color: #ff8c00;
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(14,109,155,0.18);
}

/* ── cloud-svc-card-body：稍微提亮 ── */
.cloud-svc-card-body {
    background: rgba(255,255,255,0.07);
    padding: 12px 14px 14px;
}
.cloud-svc-item {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 4px;
    font-size: 0.74rem;
    transition: background 0.15s;
}
.cloud-svc-item:hover {
    background: rgba(255,140,0,0.25);
    border-color: rgba(255,140,0,0.4);
}

/* =====================================================
   全站互動邏輯 v2 — 錨點導覽 & 可點擊卡片系統
   ===================================================== */

/* ── 平滑捲動 & 避免 header 遮住錨點 ── */
html {
    scroll-behavior: smooth;
}
.pg-section[id],
.nav-card[id],
div[id].team-card,
div[id].cloud-svc-card,
a[id].consult-item,
.anchor-section {
    scroll-margin-top: 110px;
}

/* ── a.hero-tech-card 可點版的 hover 效果 ── */
a.hero-tech-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
a.hero-tech-card:hover,
a.hero-tech-card:focus {
    transform: translateY(-3px);
    border-color: rgba(255,140,0,0.8);
    background: rgba(0,120,212,0.28);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    color: #fff;
    text-decoration: none;
}

/* ── .hero-info-tag：不可點的說明標籤 ── */
.hero-info-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    cursor: default;
    user-select: none;
}

/* ── a.page-hero-tag：可點版 hero tag ── */
a.page-hero-tag {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
a.page-hero-tag:hover,
a.page-hero-tag:focus {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.15);
}

/* =====================================================
   Priority 4 — Mobile RWD 修正 (2026-06-10)
   ===================================================== */

/* 防止橫向捲動 */
html, body {
    overflow-x: hidden;
}

@media (max-width: 900px) {
    /* 容器寬度限制 */
    .content-wrapper,
    .site-top,
    .main-footer {
        width: 100%;
        max-width: 100%;
    }

    /* Header 壓縮（覆蓋桌機的 min-height:72px） */
    .logo-img     { height: 34px; max-width: 180px; }
    .main-header  { padding: 8px 12px; min-height: auto; }

    /* Hamburger 下拉選單：對齊壓縮後的 header 高度（≈50px） */
    .main-nav { top: 50px; }

    /* margin breakout 在手機版強制歸零，防橫向捲動 */
    .page-hero,
    .hero-feature-bar {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* scroll-margin-top 調整（sticky header ~50px，留餘量） */
    .pg-section[id],
    .nav-card[id],
    div[id].team-card,
    div[id].cloud-svc-card,
    a[id].consult-item,
    .anchor-section {
        scroll-margin-top: 60px;
    }

    /* ── 首頁 Hero 修正：overlay flex 垂直置中會把 296px 內容推到 -38px ──
       解法：hero-bg 改 absolute 作背景，hero-overlay 改 relative 跟著內容伸展 */
    .hero-section {
        overflow: visible;
        line-height: normal;
    }
    .hero-section .hero-bg {
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        object-fit: cover;
        z-index: 0;
    }
    .hero-overlay {
        position: relative !important;
        inset: auto !important;
        align-items: flex-start !important;
        min-height: 200px;
        z-index: 1;
    }
    .hero-content {
        padding: 20px 16px !important;
        max-width: 100% !important;
    }

    /* Grid 等高取消 ── align-items + grid-auto-rows 雙重保險 */
    .main-svc-grid,
    .nav-cards-grid,
    .cloud-svc-grid,
    .services-grid,
    .service-cards-grid,
    .teams-grid,
    .cloud-product-grid {
        align-items: start !important;
        grid-auto-rows: auto !important;
    }

    /* ★ 關鍵修正：main-svc-grid 強制 1 欄 + align-content: start 防止列高被撐 */
    .main-svc-grid {
        grid-template-columns: 1fr !important;
        grid-auto-columns: 1fr !important;
        align-content: start !important;
    }
    /* inline span 2 已從 HTML 移除，.svc-card-wide 在手機強制 span 1 */
    .main-svc-card,
    .svc-card-wide {
        grid-column: span 1 !important;
        background-color: #fff !important;
    }

    /* 卡片 flex body 不撐高 */
    .nav-card-body,
    .team-card-body { flex: none !important; }

    /* 卡片強制 auto 高度 */
    .main-svc-card,
    .service-card,
    .feature-card,
    .cloud-card,
    .nav-card,
    .main-service-card,
    .service-link-card,
    .home-service-card,
    .cp-card {
        height: auto !important;
        min-height: 0 !important;
    }

    /* a 標籤卡片強制 block（避免 inline 殘留）*/
    a.main-svc-card,
    a.service-card,
    a.nav-card,
    a.feature-card {
        display: block !important;
    }

    /* 空白圖片容器隱藏 */
    .card-image:empty,
    .service-card-image:empty,
    .main-svc-card-image:empty,
    .card-media:empty {
        display: none !important;
    }

    /* card-body 不固定高度 */
    .card-body,
    .service-card-body,
    .main-svc-card-body {
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
    }
}

@media (max-width: 600px) {
    /* Grid 1 欄 — 600px 以下 */
    .service-cards-grid   { grid-template-columns: 1fr; }
    .products-grid        { grid-template-columns: 1fr; }
    .website-types        { grid-template-columns: 1fr; }
    .service-list-grid    { grid-template-columns: 1fr; }
    .services-grid        { grid-template-columns: 1fr; }
    .main-svc-grid        { grid-template-columns: 1fr; }
    .cloud-svc-grid       { grid-template-columns: 1fr; }
    .plan-compare-grid    { grid-template-columns: 1fr; }
    .nav-cards-grid       { grid-template-columns: 1fr; }
    .consult-grid         { grid-template-columns: 1fr; }
    .capabilities-grid    { grid-template-columns: 1fr; }
    .teams-grid           { grid-template-columns: repeat(2, 1fr); }
    .backup-cards-grid    { grid-template-columns: 1fr; }
    .cert-grid            { grid-template-columns: 1fr; }
    .portfolio-grid       { grid-template-columns: 1fr; }
    .process-steps        { grid-template-columns: 1fr; }
}

/* =====================================================
   企業雲端產品與授權服務 — 首頁 M365 SEO 卡片 (P5)
   ===================================================== */
.cloud-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 4px;
}
.cp-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(14,109,155,0.12);
    border: 1px solid #d0e4f0;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.cp-card:hover {
    box-shadow: 0 6px 22px rgba(14,109,155,0.22);
    transform: translateY(-3px);
}
/* ── 標題列：彩色背景 + 明確白色文字 ── */
.cp-card-header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    border-bottom: 2px solid rgba(255,255,255,0.18);
}
.cp-card-header i {
    font-size: 1.4rem;
    flex-shrink: 0;
    color: rgba(255,255,255,0.95) !important;
    opacity: 1;
}
.cp-card-header h3 {
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.35;
    font-weight: bold;
    color: #fff !important;
}
/* ── 內容區：白底，清楚對比 ── */
.cp-card-body {
    padding: 14px 18px 10px;
    font-size: 0.82rem;
    color: #444;
    line-height: 1.65;
    background: #fff;
    flex: 1;
}
.cp-card-body p { margin: 0 0 10px; }
/* ── Tag / Chip 樣式 ── */
.cp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.cp-tags span {
    display: inline-block;
    background: #e8f2fa;
    color: #0063a8;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #b8d6ee;
    letter-spacing: 0.01em;
}
/* ── CTA 按鈕列 ── */
.cp-card-footer {
    padding: 12px 16px;
    background: #f2f8fd;
    border-top: 1px solid #d0e4f0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.cp-btn-inner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: bold;
    text-decoration: none;
    background: #0078d4;
    color: #fff !important;
    transition: background 0.18s;
}
.cp-btn-inner:hover { background: #005a9e; color: #fff !important; }
.cp-btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: bold;
    text-decoration: none;
    background: #e07000;
    color: #fff !important;
    transition: background 0.18s;
}
.cp-btn-shop:hover { background: #b85c00; color: #fff !important; }

@media (max-width: 900px) {
    .cloud-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
    .cp-card-header { padding: 14px 16px; }
    .cp-card-body { padding: 12px 14px 8px; }
    .cp-card-footer { padding: 10px 12px; }
}
@media (max-width: 600px) {
    .cloud-product-grid { grid-template-columns: 1fr; gap: 12px; }
}
