/* 特色功能頁「AI 相機系列」分頁（#ai-camera，tab data-target="aicamera"）。
   功能小分頁沿用 eyeboom-showcase.css 的 .showcase-tab 外觀；抽獎遊戲／互動遊戲分頁也沿用這裡的
   .aicam-section／.aicam-tagline／.aicam-lead／.aicam-cta 版型（見 games-showcase.css）。 */

.aicam-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(40px * var(--scale)) 20px calc(80px * var(--scale));
    text-align: center;
    color: #1a1a2e;
}

.aicam-tagline {
    font-size: calc(28px * var(--scale));
    font-weight: 500;
    margin-bottom: calc(20px * var(--scale));
}

.aicam-lead {
    max-width: 860px;
    margin: 0 auto calc(48px * var(--scale));
    color: #1a1a2e;
    line-height: 1.8;
}

.aicam-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(24px * var(--scale));
    margin-bottom: calc(40px * var(--scale));
}

/* 功能小分頁：遊戲名稱長短不一，寬度依文字 */
.aicam-tab.showcase-tab {
    width: auto;
    flex: 0 0 auto;
    padding-left: calc(28px * var(--scale));
    padding-right: calc(28px * var(--scale));
}

/* 每款遊戲一個面板（.aicam-panel，由 ai-camera.js 依小分頁切換 hidden） */
.aicam-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1a1a2e;
    border-radius: 20px;
    padding: clamp(24px, 4vw, 56px);
    text-align: left;
}

.aicam-panel[hidden] { display: none; }

.aicam-panel-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: #1a1a2e;
}

.aicam-panel-lead {
    margin-top: 10px;
    line-height: 1.8;
    color: #44465e;
}

.aicam-panel > .aicam-panel-title,
.aicam-panel > .aicam-panel-lead { text-align: center; }

/* 面板裡的四步驟流程（每步一張直式動圖） */
.aicam-steps {
    list-style: none;
    margin: clamp(24px, 3vw, 36px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: left;
}

.aicam-steps img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #000;
    box-shadow: 0 6px 18px rgba(26, 26, 46, 0.12);
}

.aicam-step-no { margin-top: 14px; color: var(--primary-teal, #1fc8ab); font-size: 13px; font-weight: 700; letter-spacing: 0.15em; }
.aicam-step-title { margin-top: 4px; font-size: 17px; font-weight: 700; color: #1a1a2e; }
.aicam-step-desc { margin-top: 6px; font-size: 14px; line-height: 1.7; color: #44465e; }

.aicam-subtitle {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    text-align: center;
    margin: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 36px);
}

/* 客製化（所有功能共用） */
.aicam-custom {
    margin-top: clamp(40px, 5vw, 64px);
}

.aicam-custom .aicam-subtitle { margin-top: 0; margin-bottom: 10px; }
.aicam-custom-lead { color: var(--text-muted, #63657e); margin-bottom: 28px; }

.aicam-custom-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}

.aicam-custom-list li {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    line-height: 1.7;
    color: #44465e;
}

.aicam-custom-list b { display: block; color: #1a1a2e; font-size: 17px; margin-bottom: 2px; }

.aicam-cta {
    font-family: inherit;
    font-size: var(--font-lg);
    font-weight: 700;
    color: #fff;
    background: var(--primary-gradient, linear-gradient(90deg, #1fc8ab, #5e8dfe));
    border: 0;
    border-radius: 999px;
    padding: 14px 36px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aicam-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 200, 171, 0.3); }
.aicam-cta:focus-visible { outline: 3px solid #1fc8ab; outline-offset: 3px; }

@media (max-width: 900px) {
    .aicam-steps { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}

@media (max-width: 640px) {
    .aicam-custom-list { grid-template-columns: 1fr; }
}

/* AI 相機系列分頁按鈕（.aicamera-icon）的圖示配色 */
.aicamera-icon {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

/* 整排功能分頁（#features-tabs，不只 AI 相機系列）在 700px 以上排成一排三顆。
   欄寬上限沿用 .feature-tab 的固定寬度；容器不夠寬時三欄等比縮小，不讓第三顆掉到下一行。
   700px 以下沿用 farbarAiFeatures-responsive.css 的 flex 自動換行。 */
@media (min-width: 700px) {
    .features-tabs-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, max(240px, calc(360px * var(--scale)))));
        justify-content: center;
    }
    .features-tabs-container > .feature-tab {
        width: auto;
        min-width: 0;
    }
}
