/* --- 變數定義：Deep Blue Tech & AI Innovation 風格 --- */
:root {
    /* 背景色系 */
    --bg-deep: #0a1628;
    /* 極深藍黑背景 */
    --bg-glass: rgba(15, 30, 50, 0.7);
    /* 玻璃質感背景 (加深) */
    --bg-glass-hover: rgba(20, 40, 70, 0.85);

    /* 品牌與強調色 */
    --brand-blue: #004b87;
    --tech-cyan: #00a0e9;
    /* 科技青 (主色) */
    --ai-purple: #986bd3;
    /* AI 霓虹紫 (輔色 - 呼應 EDGE 文字) */

    /* 光暈與特效 */
    --tech-glow: 0 0 15px rgba(0, 160, 233, 0.5);
    --purple-glow: 0 0 20px rgba(157, 0, 255, 0.4);
    --border-line: 1px solid rgba(0, 160, 233, 0.3);
    --border-gradient: linear-gradient(135deg, rgba(0, 160, 233, 0.5), rgba(157, 0, 255, 0.5));

    /* 文字顏色 */
    --text-white: #ffffff;
    --text-mute: #aabccf;
}

/* --- 全域 Wrapper 設定 --- */
.CA-SZF-AI-page {
    color: var(--text-white);
    line-height: 1.7;
    background-color: var(--bg-deep);
    /* 加入科技網格背景紋理 */
    background-image:
        linear-gradient(rgba(0, 160, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 160, 233, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, #0b1a30 0%, #050a14 80%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-family: 'Roboto', "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    position: relative;
}

.CA-SZF-AI-page h1,
.CA-SZF-AI-page h2,
.CA-SZF-AI-page h3,
.CA-SZF-AI-page h4 {
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-white);
}

.CA-SZF-AI-page a {
    text-decoration: none;
    transition: all 0.4s ease;
}

.CA-SZF-AI-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.CA-SZF-AI-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* =========================================
   1. Hero Section (AI Edge Composition)
   ========================================= */
.CA-SZF-AI-page .hero {
    position: relative;
    /* 背景圖設定 */
    background-image: url('../images/landing_page/CA-SZF/heroBG2.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 80px 0 120px;
    min-height: 850px;
}

/* 頂部暗角遮罩，讓文字更清楚 */
.CA-SZF-AI-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, rgba(5, 10, 20, 0.8), transparent);
    z-index: 0;
}

/* 底部銜接遮罩 */
.CA-SZF-AI-page .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 文字區域 --- */
.hero-text {
    text-align: center;
    max-width: 900px;
    margin-bottom: 10px;
    animation: fadeIn Down 1s ease-out;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--tech-cyan);
    margin-bottom: 15px;
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 160, 233, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 160, 233, 0.2);
    backdrop-filter: blur(5px);
}

.hero-text h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.hero-text h1 span {
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
    color: #cbdcea;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(0, 160, 233, 0.3);
}

/* --- 核心視覺：三元件合成區域 --- */
.hero-composition {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* 通用圖片樣式 */
.comp-img {
    position: absolute;
    transition: transform 0.5s ease;
}

/* 1. 左側 AI 文字 (加大尺寸) */
.img-ai {
    width: 280px;
    left: 16%;
    top: 20%;
    transform: translateY(-50%);
    z-index: 2;
    filter: drop-shadow(0 0 40px rgba(0, 160, 233, 0.3));
    animation: floatAi 6s ease-in-out infinite;
}

/* 2. 中間主板 (核心) */
.img-board {
    width: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    filter: drop-shadow(0 0 60px rgba(0, 160, 255, 0.9));
}

/* 3. 右側 EDGE 文字 (加大尺寸) */
.img-edge {
    width: 400px;
    right: 8%;
    top: 65%;
    transform: translateY(-50%);
    z-index: 4;
    filter: drop-shadow(0 0 40px rgba(157, 0, 255, 0.3));
    animation: floatEdge 6.5s ease-in-out infinite;
}

/* --- 按鈕 --- */
.hero-btn-wrapper {
    margin-top: 0px;
    z-index: 10;
    position: relative;
    transform: translateY(20px);
}

.hero-btn {
    display: inline-block;
    padding: 12px 40px;
    /* 調整按鈕樣式更科技感 */
    clip-path: polygon(7% 0, 100% 0, 100% 70%, 93% 100%, 0 100%, 0 30%);
    background: linear-gradient(90deg, var(--brand-blue), var(--tech-cyan));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
}

.hero-btn:hover {
    background: linear-gradient(90deg, var(--tech-cyan), var(--ai-purple));
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 160, 233, 0.6);
    color: #fff;
}

/* --- 懸浮動畫 --- */
@keyframes floatAi {

    0%,
    100% {
        transform: translateY(-50%) translate(0, 0);
    }

    50% {
        transform: translateY(-50%) translate(-10px, -15px);
    }
}

@keyframes floatBoard {

    0%,
    100% {
        transform: translate(-50%, -50%) translate(0, 0);
    }

    50% {
        transform: translate(-50%, -50%) translate(0, -20px);
    }
}

@keyframes floatEdge {

    0%,
    100% {
        transform: translateY(-50%) translate(0, 0);
    }

    50% {
        transform: translateY(-50%) translate(10px, -12px);
    }
}

/* --- RWD --- */
/*@media (max-width: 1200px) {
    .img-ai {
        width: 250px;
        left: 5%;
    }

    .img-board {
        width: 450px;
    }

    .img-edge {
        width: 320px;
        right: 5%;
    }
}*/

@media (max-width: 992px) {
    .hero-composition {
        height: 400px;
        margin-top: 40px;
    }

    .img-ai {
        width: 260px;
        left: 12%;
    }

    .img-board {
        width: 400px;
    }

    .img-edge {
        width: 310px;
        right: 8%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .CA-SZF-AI-page .hero {
        padding: 40px 0 60px;
        min-height: auto;
    }

    .hero-composition {
        max-width: 500px;
        margin-top: 20px;
    }

    .img-ai {
        width: 50%;
        top: 0%;
        left: -6%;
        animation: floatSimple 4s infinite;
    }

    .img-board {
        width: 80%;
    }

    .img-edge {
        width: 75%;
        top: 55%;
        right: -8%;
        animation: floatSimple 4.5s infinite;
    }

    @keyframes floatSimple {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }
}


/* =========================================
   2. Intro Section
   ========================================= */
.CA-SZF-AI-page .intro {
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.tech-border-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 30px;
    background: rgba(5, 15, 30, 0.4);
    border: 1px solid rgba(0, 160, 233, 0.2);
    /* 斜角邊框設計 */
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

/* 裝飾線條 */
.tech-border-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 100px;
    height: 2px;
    background: var(--tech-cyan);
    box-shadow: 0 0 10px var(--tech-cyan);
}

.tech-border-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 100px;
    height: 2px;
    background: var(--ai-purple);
    box-shadow: 0 0 10px var(--ai-purple);
}

.CA-SZF-AI-page .intro h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #cbdcea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.CA-SZF-AI-page .intro p {
    font-size: 1.15rem;
    color: var(--text-mute);
    max-width: 800px;
    margin: 0 auto;
}


/* =========================================
   3. Features Section (卡片升級)
   ========================================= */
.CA-SZF-AI-page .features {
    padding: 40px 0 80px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
    text-transform: uppercase;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--tech-cyan), var(--ai-purple));
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 4px;
    /* 工業風直角 */
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* 卡片懸停效果：亮邊 + 上浮 */
.feature-card:hover {
    transform: translateY(-10px);
    background: var(--bg-glass-hover);
    border-color: rgba(0, 160, 233, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 160, 233, 0.1);
}

/* 頂部彩色線條 */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tech-cyan), var(--ai-purple));
    transition: 0.4s;
}

.feature-card:hover::before {
    width: 100%;
}

.icon-box {
    font-size: 2rem;
    color: var(--tech-cyan);
    margin-bottom: 25px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

/* 懸停時 Icon 變色 */
.feature-card:hover .icon-box {
    background: var(--tech-cyan);
    color: #ffffff;
    box-shadow: 0 0 20px var(--tech-cyan);
    border-color: var(--tech-cyan);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-mute);
    font-size: 1rem;
    margin-bottom: 0;
}


/* =========================================
   4. Security Section
   ========================================= */
.security-box {
    background: linear-gradient(135deg, rgba(10, 20, 35, 0.95), rgba(5, 10, 20, 0.98));
    border: 1px solid rgba(0, 160, 233, 0.3);
    /* 雙色邊框 */
    border-left: 4px solid var(--tech-cyan);
    border-right: 4px solid var(--ai-purple);
    padding: 60px;
    border-radius: 8px;
    position: relative;
    margin: 0 0 80px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.security-header h3 {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.security-header h3 i {
    color: var(--tech-cyan);
    text-shadow: var(--tech-glow);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.security-item h4 {
    background: linear-gradient(90deg, var(--tech-cyan), var(--ai-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-item p {
    color: var(--text-mute);
}


/* =========================================
   5. Scenarios (Unified Box) with Dynamic Tech Background
   ========================================= */
.scenarios-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    /* 隱藏溢出的動畫背景 */
    background: #050a14;
    z-index: 1;
    /* 建立堆疊環境 */
}

/* --- 動態背景層 1: 3D 透視流動網格 --- */
.scenarios-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -2;
    /* 最底層 */
    background-image:
        linear-gradient(rgba(0, 160, 233, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 160, 233, 0.15) 1px, transparent 1px);
    background-size: 80px 50px;
    /* 3D 透視變形效果 */
    transform-origin: center center;
    transform: perspective(500px) rotateX(60deg) translateY(0);
    animation: planeMove 10s linear infinite;
    mask-image: linear-gradient(to bottom, transparent, black 40%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, black 80%, transparent);
}

/* --- 動態背景層 2: 呼吸光暈 --- */
.scenarios-section::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(0, 150, 255, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite alternate;
    pointer-events: none;
}

/* --- 動畫定義 --- */
@keyframes planeMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(80px);
        /* 移動距離需配合 background-size */
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* --- 內容容器 (統一區塊) --- */
.scenario-unified-box {
    background: rgba(10, 20, 35, 0.7);
    /* 加深背景，讓文字更清楚 */
    border-radius: 8px;
    padding: 50px;
    border: 1px solid rgba(0, 160, 233, 0.3);
    position: relative;
    margin-top: 40px;
    backdrop-filter: blur(8px);
    /* 磨砂玻璃效果 */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* 四個角落的裝飾角標 */
.scenario-unified-box::before,
.scenario-unified-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--tech-cyan);
    transition: 0.3s;
}

.scenario-unified-box::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.scenario-unified-box::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.scenario-unified-box:hover::before,
.scenario-unified-box:hover::after {
    width: 30px;
    height: 30px;
    border-color: var(--text-white);
}

/* 網格列表 */
.scenario-grid-unified {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    padding: 0;
    margin: 0;
}

.scenario-grid-unified li {
    list-style: none;
    position: relative;
    padding-left: 35px;
    color: #dbe4eb;
    font-size: 1.1rem;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.scenario-grid-unified li::before {
    content: '\f054';
    /* Chevron */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--tech-cyan);
}

.scenario-grid-unified li strong {
    color: var(--tech-cyan);
    display: block;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* RWD 調整 */
@media (max-width: 768px) {
    .scenario-grid-unified {
        grid-template-columns: 1fr;
    }

    .scenario-unified-box {
        padding: 30px;
    }
}


/* =========================================
   6. Product Models
   ========================================= */
.specs-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, #0b1a30 0%, #02050a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s;
    text-align: center;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 產品卡片懸停：邊框漸層色 */
.product-card:hover {
    border: 1px solid var(--tech-cyan);
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 160, 233, 0.2);
    background: rgba(20, 40, 60, 0.8);
}

.product-image-box {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.product-card img {
    max-height: 100%;
    width: auto;
    transition: 0.5s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.product-card:hover img {
    transform: scale(1.1);
}

.tag-pill {
    display: inline-block;
    border: 1px solid var(--tech-cyan);
    color: var(--tech-cyan);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.tag-pill.light {
    border-color: var(--text-mute);
    color: var(--text-mute);
}

.product-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn-full-spec {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--tech-cyan);
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-full-spec:hover {
    background: var(--tech-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--tech-cyan);
}

/* RWD */
@media (max-width: 992px) {
    .security-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {

    .product-grid,
    .scenario-grid-unified {
        grid-template-columns: 1fr;
    }

    .security-box::after {
        font-size: 4rem;
    }

    .scenario-unified-box {
        padding: 30px;
    }
}