/* --- 變數定義：Deep Blue Tech 風格 --- */
:root {
    /* 核心色系：取自 Hero 背景的深藍與亮青 */
    --bg-deep: #050a14;
    /* 極深藍黑背景 */
    --bg-glass: rgba(10, 25, 45, 0.6);
    /* 玻璃質感背景 */

    /* 品牌與強調色 */
    --brand-blue: #004b87;
    /* Compuware 經典藍 */
    --tech-cyan: #00a0e9;
    /* 科技青 (高亮強調) */
    --tech-glow: 0 0 20px rgba(0, 160, 233, 0.4);
    /* 青色光暈 */

    /* 文字顏色 */
    --text-white: #ffffff;
    --text-mute: #8daabf;
    /* 帶藍調的灰色 */

    /* 邊框與線條 */
    --border-line: 1px solid rgba(0, 160, 233, 0.2);
    --border-hover: 1px solid rgba(0, 160, 233, 0.8);
}

/* --- 局部樣式設定 (取代全域重置) --- */

.CA-SZF {
    color: var(--text-white);
    line-height: 1.7;
    background-color: var(--bg-deep);
    background-image: linear-gradient(to bottom, #050a14, #0b1a30);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-family: 'Roboto', "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

/* --- Hero Section (保留原圖，優化整合) --- */
.hero {
    position: relative;
    /* 關鍵：使用您的原始背景圖 */
    background-image: url('../images/landing_page/CA-SZF/hero-bg.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
}

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

.hero-text {
    max-width: 1000px;
    margin-bottom: 50px;
    z-index: 99;
    animation: fadeIn 0.5s ease-in-out;
}

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

.hero-text h1 span {
    font-size: 2.7rem;
    font-weight: normal;
    /* 改為科技青色，呼應背景線條 */
    color: var(--tech-cyan);
    text-shadow: 0 0 15px rgba(0, 160, 233, 0.6);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: #cbdcea;
    /* 淺藍白文字 */
    font-weight: 300;
}

/* 科技感按鈕 */
.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 4px;
    /* 工業風格方角 */
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tech-cyan);
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid var(--tech-cyan);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 160, 233, 0.2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-btn:hover {
    background: var(--tech-cyan);
    color: #050a14;
    /* 深色文字 */
    box-shadow: 0 0 30px rgba(0, 160, 233, 0.8);
    text-decoration: none;
}

.hero-image {
    width: 100%;
    position: relative;
    /* 讓內部元素可以絕對定位 */
    margin-top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 前景：主機板 */
.hero-image .layer-main {
    position: relative;
    z-index: 1;
    /* 在上層 */
    width: 60%;
    /* 主機板大小 */
    max-width: 500px;
}

/* 背景：監控螢幕 */
.hero-image .layer-bg,
.hero-image .layer-bg-m {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 絕對居中 */
    z-index: 2;
    /* 在下層 */
    width: 100%;
    /* 比主機板寬 */
    max-width: 1100px;
    /* 限制最大寬度 */
    animation: screen-flicker 10s linear infinite;
}

.hero-image .layer-bg-m {
    display: none;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模擬監控螢幕的隨機訊號閃爍/跳動效果 */
@keyframes screen-flicker {
    0% {
        opacity: 1;
    }

    2% {
        opacity: 0.8;
    }

    4% {
        opacity: 1;
    }

    10% {
        opacity: 1;
    }

    12% {
        opacity: 0.8;
    }

    14% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    32% {
        opacity: 0.8;
    }

    34% {
        opacity: 1;
    }

    46% {
        opacity: 1;
    }

    48% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    62% {
        opacity: 0.8;
    }

    64% {
        opacity: 1;
    }

    96% {
        opacity: 1;
    }

    98% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* --- Intro Section --- */
.intro {
    padding: 50px 0;
    text-align: center;
    background: transparent;
}

.intro h2 {
    color: var(--text-white);
    font-size: 2.4rem;
    margin-bottom: 20px;
}

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

/* --- Features Section (深藍玻璃擬態) --- */
.features {
    padding: 50px 0;
    position: relative;
    /* 極淡的藍色光暈背景裝飾 */
    background: radial-gradient(circle at top center, rgba(0, 75, 135, 0.15), transparent 70%);
}

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

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

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--tech-cyan);
    box-shadow: var(--tech-glow);
}

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

.feature-card {
    /* 深藍玻璃質感 */
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: var(--border-line);
    padding: 45px 35px;
    border-radius: 8px;
    /* 稍微方一點 */
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* 懸停效果：邊框變亮，微微上浮 */
.feature-card:hover {
    transform: translateY(-8px);
    border: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 160, 233, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 160, 233, 0.05);
    border: 1px solid rgba(0, 160, 233, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--tech-cyan);
    font-size: 1.6rem;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--tech-cyan);
    color: #050a14;
    box-shadow: var(--tech-glow);
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

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

/* --- Content Section (Layout Updated) --- */
.content-section {
    padding: 50px 0;
}

/* 應用場景網格 (下半部) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    /* 改為頂部對齊，避免高度被撐開 */
}

/* 標題樣式 */
.info-block h3 {
    color: var(--text-white);
    font-size: 1.7rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--tech-cyan);
    padding-left: 20px;
}

/* 列表樣式 */
.info-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    color: #dbe4eb;
    font-size: 1.05rem;
    list-style: none;
}

.info-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--tech-cyan);
}

.info-list li strong {
    color: var(--text-white);
    font-weight: 600;
}

/* --- Always-On Box (Top Banner Style) --- */
.always-on-box {
    background: linear-gradient(135deg, rgba(0, 75, 135, 0.2) 0%, rgba(0, 160, 233, 0.1) 100%);
    border: 1px solid rgba(0, 160, 233, 0.4);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 80px;
    /* 增加與下方內容的距離 */
}

.always-on-box .box-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.always-on-box h3 {
    border: none;
    padding: 0;
    color: var(--tech-cyan);
    margin-bottom: 5px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.always-on-box p {
    color: var(--text-mute);
    font-size: 1.1rem;
    margin-left: 5px;
}

/* 橫向列表設計 (Desktop) */
.always-on-box .horizontal-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.always-on-box .horizontal-list li {
    color: var(--text-mute);
    margin-bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* 分隔線 */
    padding-left: 25px;
}

/* 移除原本的 Check icon，改用左側線條裝飾 */
.always-on-box .horizontal-list li::before {
    display: none;
}

.always-on-box .horizontal-list li strong {
    color: var(--tech-cyan);
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* --- RWD Adjustments --- */
@media (max-width: 992px) {
    .hero {
        padding: 50px 0 20px;
        min-height: 0;
    }

    .hero-image {
        max-width: 100%;
        margin-top: 60px;
    }

    .hero-image .layer-main {
        width: 60%;
        top: -20px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        /* 平板以下變單欄 */
        gap: 50px;
    }

    .always-on-box .horizontal-list {
        grid-template-columns: 1fr;
        /* 平板以下列表變垂直 */
        gap: 25px;
    }

    .always-on-box .horizontal-list li {
        border-left: none;
        padding-left: 35px;
        /* 恢復原本縮排 */
    }

    /* 恢復 Check icon */
    .always-on-box .horizontal-list li::before {
        display: block;
        content: '\f058';
        /* Check-circle */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: 0;
        top: 4px;
        color: var(--tech-cyan);
        font-size: 1.2rem;
    }
}

/* --- Specs Section --- */
.specs-section {
    background: #02050a;
    /* 比 Body 再深一點 */
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.product-card {
    background: var(--bg-glass);
    border: var(--border-line);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(0, 75, 135, 0.2);
}

.product-image {
    background: rgba(255, 255, 255, 0.02);
    /* 極淡白，讓主機板清楚 */
    padding: 40px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    transition: 0.5s;
}

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

.product-info {
    padding: 40px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tag {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--tech-cyan);
    color: var(--tech-cyan);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.spec-highlight {
    color: var(--text-mute);
    margin-bottom: 30px;
}

.btn-product {
    display: inline-block;
    width: 100%;
    padding: 15px 0;
    background: var(--brand-blue);
    color: var(--text-white);
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-product:hover {
    background: var(--tech-cyan);
    color: #050a14;
    box-shadow: var(--tech-glow);
    text-decoration: none;
}

/* RWD */
@media (max-width: 992px) {
    .hero-text {
        margin-bottom: 0;
    }

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

    .content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hero-image .layer-bg {
        display: none;
    }

    .hero-image .layer-bg-m {
        display: block;
        width: 130%;
        /* 手機版讓背景稍微超出邊界，更有張力 */
        top: 32%;
    }

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

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

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

    .product-image {
        height: 260px;
    }

    .container {
        padding: 0 20px;
    }
}



/* --- Recording Visual Elements (錄影意象設計 - 優化版) --- */
:root {
    --rec-red: #ff3b30;
    /* 標準錄影紅 */
}

/* 1. 通用攝影機觀景窗外框 (用於文字區塊) */
.cam-border-wrapper {
    position: relative;
    max-width: 900px;
    /* 限制最大寬度，配合文字 */
    margin: 0 auto;
    /* 置中 */
    padding: 30px;
    /* 留出空間給邊框，不壓文字 */
}

/* 四個角落的瞄準框 */
.viewfinder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.viewfinder::before,
.viewfinder::after,
.viewfinder span::before,
.viewfinder span::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(0, 160, 233, 0.5);
    /* 科技青色，稍微透明 */
    border-style: solid;
    transition: all 0.5s ease;
}

/* 左上 */
.viewfinder::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

/* 右上 */
.viewfinder::after {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

/* 左下 */
.viewfinder span::before {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

/* 右下 */
.viewfinder span::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* 2. REC 錄影中標籤 (調整位置到文字框右上角) */
.rec-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--rec-red);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
    z-index: 5;
    background: var(--bg-deep);
    /* 讓背景遮住原本的線條 */
    padding: 2px 10px;
}

/* 紅點閃爍動畫 */
.rec-dot {
    width: 8px;
    height: 8px;
    background-color: var(--rec-red);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 rgba(255, 59, 48, 0.8);
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 59, 48, 0);
    }
}

/* RWD: 手機版稍微縮小內距 */
@media (max-width: 768px) {
    .cam-border-wrapper {
        padding: 40px 10px;
    }
}


/* =========================================
   新增裝飾元素樣式 (Visual Enhancements) - V2 修訂版
   ========================================= */


/* --- 1. Intro 區域：鏡頭對焦光環 (修正卷軸問題) --- */
.intro {
    position: relative;
    /* [重要修正] 隱藏溢出的裝飾，避免出現卷軸 */
    overflow: hidden;
}

.cam-border-wrapper {
    z-index: 1;
    position: relative;
    /* 確保 z-index 生效 */
}

/* 外圈 */
.lens-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 1px dashed rgba(0, 160, 233, 0.15);
    border-radius: 50%;
    z-index: -1;
    animation: rotateRight 10s linear infinite;
    pointer-events: none;
}

/* 內圈 */
.lens-ring-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border: 1px solid transparent;
    border-top: 1px solid rgba(0, 160, 233, 0.3);
    border-bottom: 1px solid rgba(0, 160, 233, 0.3);
    border-radius: 50%;
    z-index: -1;
    animation: rotateLeft 5s linear infinite;
    pointer-events: none;
}

@keyframes rotateRight {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateLeft {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}


/* --- 2. Features 區域：電路板線條背景 --- */
.features {
    overflow: hidden;
    position: relative;
    /* 確保定位正確 */
}

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        linear-gradient(90deg, transparent 49%, var(--tech-cyan) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, var(--tech-cyan) 50%, transparent 51%);
    background-size: 200px 200px;
    mask-image: radial-gradient(circle at center, transparent 30%, black 100%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 30%, black 100%);
    z-index: 0;
    pointer-events: none;
}

.feature-card {
    z-index: 2;
}


/* --- 3. Always-On Box：工業點陣紋理 (調淡版) --- */
.always-on-box {
    /* [修改] 將 rgba 透明度從預設改為 0.03 (極淡)，確保不影響閱讀 */
    background-image:
        radial-gradient(rgba(0, 160, 233, 0.03) 1px, transparent 1px),
        linear-gradient(135deg, rgba(0, 75, 135, 0.2) 0%, rgba(0, 160, 233, 0.1) 100%);
    background-size: 20px 20px, 100% 100%;
    background-position: 0 0, 0 0;
    overflow: hidden;
    position: relative;
    /* 確保浮水印定位正確 */
}

/* 右下角浮水印 */
.always-on-box::after {
    content: '24/7 SYSTEM';
    position: absolute;
    bottom: -15px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    /* 極淡 */
    pointer-events: none;
    letter-spacing: 5px;
}

/* RWD 調整 */
@media (max-width: 768px) {
    .lens-ring {
        width: 300px;
        height: 300px;
    }

    .lens-ring-inner {
        width: 220px;
        height: 220px;
    }

    .cyber-grid {
        background-size: 40px 40px;
    }

    .always-on-box::after {
        font-size: 2.5rem;
    }
}

/* =========================================
   新增：內容圖片樣式 (Scenario Images)
   ========================================= */

.scenario-img-box {
    width: 100%;
    height: 220px;
    /* 固定高度，讓排版整齊 */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
    /* 與下方標題的距離 */
    border: 1px solid rgba(0, 160, 233, 0.3);
    /* 青色邊框 */
    position: relative;
    background-color: #000;
    /* 圖片載入前的背景色 */
}

/* 圖片本體 */
.scenario-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 確保圖片填滿框框且不變形 */
    opacity: 0.9;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* 裝飾線條 (讓圖片看起來更像監控畫面) */
.scenario-img-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--tech-cyan);
    box-shadow: 0 0 10px var(--tech-cyan);
}

/* 懸停效果：圖片稍微放大、變亮 */
.info-block:hover .scenario-img-box img {
    transform: scale(1.1);
    opacity: 1;
}

/* RWD: 手機版高度自適應 */
@media (max-width: 768px) {
    .scenario-img-box {
        height: 180px;
    }
}