.banner{
    background: linear-gradient(135deg, #003366 0%, #004a99 100%);
    background-blend-mode: multiply;
    background-repeat: no-repeat;
    background-position: 50% 70% !important;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

.banner p{
    color: #f1e9e9;
}

.banner h1{
    color: #fff;
    font-weight: 600;
    margin-top: 20px;
}

.banner-content {
    position: absolute;
}

.banner-content p {
    text-align: center;
    color: #fff;
}

.w3-content {
    padding-bottom: 0 !important;
}

a {
    width: 100%;
    display: contents;

}

h2 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    text-align: left;
}
:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --accent: #3b82f6;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

/* =========================================
    佈局組件
    ========================================= */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.section-padding {
    /*padding: 80px 0;*/
    padding-bottom: 2rem;
}

/* =========================================
    Hero 區塊
    ========================================= */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    /*padding: 140px 0;*/
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
}

.hero-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 6px 20px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 900;
}

.hero h1 span {
    color: #60a5fa;
    display: block;
    font-size: 0.55em;
    margin-top: 10px;
    letter-spacing: 2px;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 800px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* =========================================
    內容通用標題
    ========================================= */
.section-title {
    font-size: 1.875rem;
    font-weight: 900;
    /* margin-bottom: 48px;*/
    position: relative;
    padding-bottom: 20px;
    color: var(--bg-dark);
}

/*.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 5px;
    background: var(--primary);
    border-radius: 2px;
}*/

/* =========================================
    方案背景 
    ========================================= */
.intro-flex {
    display: flex;
    flex-direction: column;
    gap: 24px; /* 使用 gap 控制段落間距 */
    /* max-width: 950px;*/
    max-width: max-content;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* =========================================
    系統架構區塊
    ========================================= */
.arch-card {
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.08);
    margin-bottom: 80px;
}

.arch-animation-side {
    background: var(--bg-dark);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px; /* 層級之間的垂直間距 */
    position: relative;
    min-height: 500px;
}

.data-stream {
    position: absolute;
    top: 0; bottom: 0; left: 50%; width: 2px;
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(-50%);
}

.data-particle {
    position: absolute;
    left: 50%; width: 4px; height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    transform: translateX(-50%);
    animation: flowDown 3.5s infinite linear;
    filter: drop-shadow(0 0 10px var(--accent));
}

@keyframes flowDown {
    0% { top: -60px; opacity: 0; }
    40% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scanner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px var(--accent);
    animation: scanMove 8s infinite ease-in-out;
    z-index: 5;
}

@keyframes scanMove {
    0%, 100% { top: 0; }
    50% { top: 100%; }
}

.arch-layer {
    position: relative;
    z-index: 10;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--white);
    padding: 20px 32px;
    border-radius: 16px;
    text-align: center;
    width: 260px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.arch-layer:hover {
    transform: translateY(-5px);
    background: rgba(37, 99, 235, 0.25);
    border-color: #60a5fa;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.arch-layer span {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
}

.arch-layer b {
    font-size: 1rem;
    letter-spacing: 1px;
}

.arch-info-side {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px; /* 步驟之間的垂直間距 */
    justify-content: center;
}

.arch-step {
    display: flex;
    gap: 24px; /* 數字與文字間的間距 */
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 900;
}

.step-content h4 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.step-content h4:hover {
    transform: translateY(-5px);
    transition: all 0.5s ease;
    color: #1d67e7;
}

/* =========================================
    技術規格表格
    ========================================= */
.specs-table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* =========================================
    表格標題列 
    ========================================= */
.specs-header {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--bg-dark);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
}

.header-label, .header-value {
    padding: 16px 32px;
    font-size: 1rem;
    text-transform: uppercase;
}

.header-label {
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
    內容橫列
    ========================================= */
.specs-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.specs-row:last-child { border-bottom: none; }

.specs-label {
    padding: 24px 32px;
    background: #f8fafc;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
}

.specs-value {
    padding: 24px 32px;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.specs-row:hover {
    background-color: #f1f5f9;
}

/* =========================================
    標準化流程 UI (使用 CSS Gap)
    ========================================= */
.process-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px; /* 使用 CSS gap 控制卡片間距 */
}

.process-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

.process-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.process-no {
    font-size: 3rem;
    font-weight: 900;
    color: #f1f5f9;
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
    z-index: 1;
    transition: var(--transition);
}

.process-card:hover .process-no {
    color: #e2e8f0;
}

.process-card-content {
    position: relative;
    z-index: 2;
}

.process-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--bg-dark);
    margin-top: 10px;
}

.process-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
    核心技術優勢
    ========================================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px; /* 使用 CSS gap 控制間距 */
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 30px 40px -10px rgba(0,0,0,0.06);
}

.icon-box {
    width: 48px; 
    height: 48px;
    background: #eff6ff;
    border-radius: 14px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 24px; 
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bg-dark);
}

/* =========================================
    實績深度解析列表
    ========================================= */
.case-list {
    display: grid;
    gap: 40px; /* 使用 CSS gap 控制實績卡片垂直間距 */
}

.case-item {
    background: white;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.case-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 30px 40px -10px rgba(0, 0, 0, 0.06);
}

.case-img-side {
    width: 320px;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f1f5f9;
}

/* =========================================
    實績深度解析-照片區
    ========================================= */
.case-image-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #f1f5f9;
    aspect-ratio: 4 / 3;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-icon-stack {
    font-size: 4rem;
    margin-bottom: 20px;
}

.case-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 徽章間距也使用 gap */
    justify-content: center;
}

.case-badge-group span {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.case-body {
    padding: 48px;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-body h3 {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: var(--bg-dark);
}


/* =========================================
    手機和平板
    ========================================= */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .section-padding { padding: 60px 0; }
    .hero { padding: 100px 0; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { margin-left: auto; margin-right: auto; font-size: 1rem; }
    
    
    /* 系統架構 RWD 修正點 */
    .arch-card { 
        grid-template-columns: 1fr; 
        border-radius: 24px;
    }
    .arch-animation-side { 
        min-height: 400px; 
        padding: 40px 20px; /* 縮小內距 */
        gap: 24px; /* 縮小層級間距 */
    }
    .arch-layer { 
        width: 100%; 
        max-width: 260px; /* 確保在小螢幕不會太寬也不會爆出去 */
        padding: 16px 20px; 
    }
    .arch-info-side { 
        padding: 40px 24px; 
        gap: 32px; 
    }
    .specs-header {
        display: none; /* 手機版隱藏標題列，節省空間 */
    }
    .specs-label {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 24px;
        background: #f8fafc;
        color: var(--primary-dark);
    }
    .specs-value {
        padding: 20px 24px;
    }

            .specs-row {
                display: flow;
            }
            .case-item { flex-direction: column; }
            .case-img-side { width: 100%; border-right: none; border-bottom: 1px solid #f1f5f9; }
            .case-body { padding: 32px 24px; }
            .case-body h3 {font-size: 1.2rem;}

        }