/* ============================================
   FarBar AI System — 智慧 EyEBooM 看板輪播
   eyeboom-showcase.css
   立體 coverflow / 產業分類標籤 / 卡片與箭頭樣式
   ============================================ */

.eyeboom-showcase {
    --cf-card-w: clamp(186px, 21vw, 276px);
    --cf-card-h: calc(var(--cf-card-w) * 1.7778);

    max-width: var(--features-max-width);
    margin: calc(64px * var(--scale)) auto 0;
    padding: 0 var(--container-padding) var(--spacing-3xl);
    text-align: center;
    overflow-x: clip;
}

/* 小標 */
.showcase-eyebrow {
    font-size: var(--font-md);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: calc(22px * var(--scale));
}

/* ============================================
   產業分類標籤
   ============================================ */
.showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(32px * var(--scale));
    margin-bottom: calc(48px * var(--scale));
}

.showcase-tab {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: var(--font-lg);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-dark, #1a1a2e); /* 改為深色文字 */
    background: rgba(0, 0, 0, 0.04); /* 改為深色透明底 */
    border: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); /* 改為深色邊框 */
    
    width: calc(163px * var(--scale));
    height: calc(50px * var(--scale));
    padding: calc(16px * var(--scale)) calc(20px * var(--scale));
    border-radius: 999px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;

    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-tab:hover {
    color: var(--primary-teal, #1fc8ab);
    box-shadow: inset 0 0 0 2px rgba(31, 200, 171, 0.55);
}

.showcase-tab.active {
    color: #fff;
    background-color: transparent;
    background-image: var(--primary-gradient, linear-gradient(90deg, #1fc8ab, #5e8dfe));
    background-clip: border-box;
    box-shadow: 0 8px 22px rgba(31, 200, 171, 0.28);
}

/* ============================================
   Coverflow ?台
   ============================================ */
.coverflow {
    position: relative;
    height: var(--cf-card-h);
    margin: 0 auto;
    perspective: 1800px;
}

.cf-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cf-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--cf-card-w);
    height: var(--cf-card-h);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
}

.cf-card:not(.is-active) {
    filter: brightness(0.85);
}

.cf-card.is-active {
    cursor: default;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(31, 200, 171, 0.6);
    border-color: transparent;
    filter: brightness(1);
}

.cf-card img,
.cf-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 底部字幕 */
.cf-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: calc(48px * var(--scale)) calc(20px * var(--scale)) calc(18px * var(--scale));
    background: linear-gradient(to top, rgba(4, 16, 19, 0.94) 12%, rgba(4, 16, 19, 0.55) 55%, rgba(4, 16, 19, 0));
    text-align: left;
    pointer-events: none;
}

.cf-caption .cap-cat {
    display: block;
    font-size: var(--font-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--primary-teal, #1fc8ab);
    margin-bottom: calc(4px * var(--scale));
}

.cf-caption .cap-title {
    display: block;
    font-size: var(--font-md);
    font-weight: 500;
    line-height: 1.35;
    color: #fff;
    text-wrap: pretty;
}

/* 影片標籤 */
.cf-badge {
    position: absolute;
    top: calc(14px * var(--scale));
    right: calc(14px * var(--scale));
    width: calc(36px * var(--scale));
    height: calc(36px * var(--scale));
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cf-badge::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: calc(7px * var(--scale)) 0 calc(7px * var(--scale)) calc(11px * var(--scale));
    border-color: transparent transparent transparent #fff;
    margin-left: calc(2px * var(--scale));
}

/* ============================================
   佔???待??板實??   ============================================ */
.cf-ph {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(14px * var(--scale));
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 11px, rgba(255, 255, 255, 0.06) 11px 22px),
        linear-gradient(165deg, #0d2228 0%, #0a181d 100%);
}

.cf-ph .ph-frame {
    width: calc(58px * var(--scale));
    height: calc(46px * var(--scale));
    border: 2px solid rgba(31, 200, 171, 0.55);
    border-radius: calc(8px * var(--scale));
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-ph .ph-frame::after {
    content: "";
    width: calc(16px * var(--scale));
    height: calc(16px * var(--scale));
    border-radius: 50%;
    border: 2px solid rgba(94, 141, 254, 0.7);
}

.cf-ph .ph-label {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: var(--font-xs);
    letter-spacing: 0.16em;
    color: rgba(31, 200, 171, 0.85);
}

.cf-ph .ph-sub {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: var(--font-sm);
    color: #8aa0a6;
    padding: 0 calc(20px * var(--scale));
    text-align: center;
    line-height: 1.4;
}

/* ============================================
   導航箭頭（?三風??置中?形???   ============================================ */
.cf-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(20px * var(--scale));
    margin-top: calc(40px * var(--scale));
}

.cf-arrow {
    width: calc(54px * var(--scale));
    height: calc(54px * var(--scale));
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.cf-arrow:hover {
    border-color: var(--primary-teal, #1fc8ab);
    background: rgba(31, 200, 171, 0.08);
    color: var(--primary-teal, #1fc8ab);
    transform: translateY(-2px);
}

.cf-arrow:active {
    transform: translateY(0);
}

.cf-arrow svg {
    width: calc(20px * var(--scale));
    height: calc(20px * var(--scale));
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* 圓點指示 */
.cf-dots {
    display: flex;
    justify-content: center;
    gap: calc(9px * var(--scale));
    margin: 0 calc(8px * var(--scale));
}

.cf-dot {
    width: calc(8px * var(--scale));
    height: calc(8px * var(--scale));
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.25s ease, width 0.25s ease;
}

.cf-dot.active {
    width: calc(24px * var(--scale));
    border-radius: 999px;
    background: var(--primary-gradient, linear-gradient(90deg, #1fc8ab, #5e8dfe));
}

/* ============================================
   RWD
   ============================================ */
@media (max-width: 1200px) {
    .cf-nav {
        gap: 16px;
        margin-top: 24px;
    }
    .cf-arrow {
        width: 44px;
        height: 44px;
    }
    .cf-arrow svg {
        width: 16px;
        height: 16px;
    }
    .cf-dots {
        gap: 8px;
        margin: 0 4px;
    }
    .cf-dot {
        width: 6px;
        height: 6px;
    }
    .cf-dot.active {
        width: 20px;
    }
    .showcase-tabs {
        gap: 12px;
    }
    .showcase-tab {
        width: 108px;
        height: 40px;
        padding: 0;
        white-space: nowrap;
        border-radius: 999px;
    }
}

@media (max-width: 960px) {
    .showcase-tabs {
        gap: 12px;
    }
    .showcase-tab {
        padding: 0;
        width: 100px;
        height: 40px;
        white-space: nowrap;
        border-radius: 999px;
    }
}

@media (max-width: 768px) {
    .showcase-tabs {
        padding: 0 var(--spacing-sm);
        gap: 12px;
    }
    .showcase-tab {
        width: 100px;
        height: 40px;
        padding: 0;
        border-radius: 999px;
    }
    .eyeboom-showcase {
        --cf-card-w: clamp(150px, 42vw, 210px);
    }
}

@media (max-width: 600px) {
    .showcase-tabs {
        gap: 8px;
    }
    .showcase-tab {
        width: auto;
        min-width: 80px;
        flex: 0 1 calc(33.33% - 8px);
        height: 38px;
        padding: 8px 12px;
        border-radius: 999px;
    }
    
    .eyeboom-showcase {
        --scale: 0.85;
    }
}

