/* 擎添工業官網樣式 */

/* 基本設定 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* 導航欄 */
.navbar.is-dark {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.brand-text {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('/static/website/images/optimized/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.hero-section .title.is-1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}

.hero-section .subtitle {
    text-shadow: 1px 1px 8px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.6);
}

.hero-section .container {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(62, 144, 240, 0.6);
    border-radius: 4px;
    padding: 3rem;
    box-shadow:
        0 0 30px rgba(62, 144, 240, 0.4),
        inset 0 0 25px rgba(62, 144, 240, 0.1);
    animation: tech-glow 3s ease-in-out infinite;
}

/* 脈動光暈動畫 - 加強版 */
@keyframes tech-glow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(62, 144, 240, 0.4),
            inset 0 0 25px rgba(62, 144, 240, 0.1);
        border-color: rgba(62, 144, 240, 0.6);
    }
    50% {
        box-shadow:
            0 0 60px rgba(62, 144, 240, 0.7),
            inset 0 0 40px rgba(62, 144, 240, 0.15);
        border-color: rgba(93, 169, 249, 0.9);
    }
}

/* Hero 文字樣式 - 依字色外光暈 */
.hero-section .container .title.is-1 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
}

.hero-section .container .title.is-1 .has-text-info {
    color: #5da9f9;
    text-shadow: 0 0 10px rgba(93, 169, 249, 0.7), 0 0 20px rgba(93, 169, 249, 0.5), 0 0 35px rgba(93, 169, 249, 0.3);
}

.hero-section .container .subtitle {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
}

.hero-section .container .subtitle.is-6 {
    color: #7dd3fc;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.6), 0 0 20px rgba(125, 211, 252, 0.4);
}

.hero-section .container .subtitle.is-5 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hero 科技感按鈕 - 強化版 */
.hero-section .button.is-info {
    background: linear-gradient(135deg, rgba(62, 144, 240, 0.5), rgba(93, 169, 249, 0.4));
    border-color: #5da9f9;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(93, 169, 249, 0.5);
    box-shadow: 0 0 15px rgba(62, 144, 240, 0.3), inset 0 0 10px rgba(62, 144, 240, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .button.is-info:hover {
    background: linear-gradient(135deg, rgba(62, 144, 240, 0.8), rgba(93, 169, 249, 0.6));
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(62, 144, 240, 0.6), inset 0 0 15px rgba(62, 144, 240, 0.3);
}

.hero-section .button.is-outlined.is-light {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: #e0e8f0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .button.is-outlined.is-light:hover,
.hero-section .button.is-outlined.is-light:focus,
.hero-section .button.is-outlined.is-light:active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.15);
    outline: none;
}

/* 角落裝飾基底 */
.hero-section .corner {
    position: absolute;
    width: 25px;
    height: 25px;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* 左上角 */
.hero-section .corner-tl {
    top: -2px;
    left: -2px;
    border-top: 3px solid #3e90f0;
    border-left: 3px solid #3e90f0;
}

/* 右上角 */
.hero-section .corner-tr {
    top: -2px;
    right: -2px;
    border-top: 3px solid #3e90f0;
    border-right: 3px solid #3e90f0;
}

/* 左下角 */
.hero-section .corner-bl {
    bottom: -2px;
    left: -2px;
    border-bottom: 3px solid #3e90f0;
    border-left: 3px solid #3e90f0;
}

/* 右下角 */
.hero-section .corner-br {
    bottom: -2px;
    right: -2px;
    border-bottom: 3px solid #3e90f0;
    border-right: 3px solid #3e90f0;
}

/* Hover 目標鎖定效果 */
.hero-section .container:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-section .container:hover .corner-tl {
    top: 20px;
    left: 20px;
    border-color: #ffffff;
    filter: drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

.hero-section .container:hover .corner-tr {
    top: 20px;
    right: 20px;
    border-color: #ffffff;
    filter: drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

.hero-section .container:hover .corner-bl {
    bottom: 20px;
    left: 20px;
    border-color: #ffffff;
    filter: drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

.hero-section .container:hover .corner-br {
    bottom: 20px;
    right: 20px;
    border-color: #ffffff;
    filter: drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

/* 區塊背景 */
.section {
    padding: 5rem 1.5rem;
}

.about-section {
    background-color: #242424;
}

.services-section {
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
                url('/static/website/images/optimized/services-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.agv-section {
    background-color: #242424;
}

.robot-section {
    background-color: #1a1a1a;
}

.process-section {
    background: url('/static/website/images/optimized/process-bg.webp');
    background-size: cover;
    background-position: center;
    padding: 5rem 1.5rem;
}

.tech-section {
    background-color: #1a1a1a;
}

.cases-section {
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
                url('/static/website/images/optimized/cases-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-section {
    background: url('/static/website/images/optimized/contact-bg.webp');
    background-size: cover;
    background-position: center;
}

/* 聯絡我們 - SVG 地圖樣式 */
.contact-map-svg {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.contact-map-svg img {
    width: 100%;
    height: auto;
    display: block;
}

/* 圖片樣式 */
.rounded-image {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 服務卡片 */
.service-card {
    background-color: rgba(36, 36, 36, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(62, 144, 240, 0.2);
}

.service-card:hover {
    background-color: rgba(36, 36, 36, 0.85);
    box-shadow: 0 15px 30px rgba(62, 144, 240, 0.3);
    border-color: rgba(62, 144, 240, 0.5);
}

.service-card .icon i {
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.8),
                 0 0 30px rgba(56, 189, 248, 0.5);
}

.service-card h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.service-card:hover h3 {
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.6),
                 0 0 25px rgba(56, 189, 248, 0.4);
}

.service-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* Z 字形服務流程 */
.process-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.process-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.process-row.reverse {
    flex-direction: row-reverse;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
}

/* 發光圓形 Icon */
.process-icon-glow {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.5);
    box-shadow:
        0 0 20px rgba(56, 189, 248, 0.3),
        0 0 40px rgba(56, 189, 248, 0.2),
        0 0 60px rgba(139, 92, 246, 0.1),
        inset 0 0 20px rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
}

.process-icon-glow:hover {
    box-shadow:
        0 0 30px rgba(56, 189, 248, 0.5),
        0 0 60px rgba(56, 189, 248, 0.3),
        0 0 80px rgba(139, 92, 246, 0.2),
        inset 0 0 30px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.8);
}

.process-icon-glow i {
    font-size: 2rem;
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.process-text {
    margin-top: 0.75rem;
}

.process-text .process-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.process-text .process-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* 連接線 */
.process-connector {
    flex-shrink: 0;
}

.process-connector.horizontal {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #8b5cf6);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.process-connector.vertical {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, #38bdf8, #8b5cf6);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    margin-left: auto;
    margin-right: 16.5%;
}

/* 手機版：垂直排列 */
@media screen and (max-width: 768px) {
    .process-row {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .process-connector.horizontal {
        width: 2px;
        height: 30px;
        background: linear-gradient(180deg, #38bdf8, #8b5cf6);
    }

    .process-connector.vertical {
        margin-left: auto;
        margin-right: auto;
    }

    .process-icon-glow {
        width: 80px;
        height: 80px;
    }

    .process-icon-glow i {
        font-size: 1.5rem;
    }
}

/* 技術卡片 */
.tech-card {
    background-color: #242424;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s;
}

.tech-card:hover {
    box-shadow: 0 10px 25px rgba(62, 144, 240, 0.15);
}

.tech-card h3 {
    color: #fff;
}

.tech-card p {
    color: #b0b0b0;
}

.tech-tags .tag {
    background-color: rgba(62, 144, 240, 0.2);
    color: #5da9f9;
    border: 1px solid #3e90f0;
}

/* 案例卡片 */
.case-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    border-left: 4px solid #3e90f0;
}

.case-label {
    color: #3e90f0;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.case-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.case-card p {
    color: #b0b0b0;
}

/* 新版案例 - 圓形圖片樣式 */
.case-item {
    padding: 1rem;
}

.case-image-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3e90f0;
    box-shadow: 0 0 20px rgba(62, 144, 240, 0.3);
}

.case-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-desc {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* 新版服務流程 - 圓形圖片步驟 */
.process-step {
    text-align: center;
    padding: 0.5rem;
}

.process-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.5rem;
    border: 2px solid #3e90f0;
    box-shadow: 0 0 15px rgba(62, 144, 240, 0.3);
}

.process-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 聯絡資訊 */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: #fff;
}

.contact-item p {
    color: #b0b0b0;
}

.contact-item a {
    color: #5da9f9;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #0d0d0d;
    padding: 3rem 1.5rem;
}

/* 返回 AGVCUI 按鈕 */
.back-to-agvcui {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(62, 144, 240, 0.4);
}

.back-to-agvcui:hover {
    box-shadow: 0 6px 20px rgba(62, 144, 240, 0.6);
}

/* 響應式調整 */
@media screen and (max-width: 768px) {
    .hero-section .title.is-1 {
        font-size: 2rem;
    }

    .columns.is-mobile {
        flex-wrap: wrap;
    }

    .section {
        padding: 3rem 1rem;
    }

    .process-step {
        margin-bottom: 1rem;
    }
}

/* 捲軸樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3e90f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5da9f9;
}

/* 連結樣式 */
a {
    transition: color 0.3s;
}

/* 按鈕樣式增強 */
.button.is-info:not(.is-outlined) {
    background: linear-gradient(135deg, #3e90f0, #5da9f9);
    border: none;
}

.button.is-info:not(.is-outlined):hover {
    background: linear-gradient(135deg, #5da9f9, #3e90f0);
    box-shadow: 0 5px 15px rgba(62, 144, 240, 0.4);
}

.button.is-info.is-outlined {
    background: transparent;
    border-color: #3e90f0;
    color: #3e90f0;
    transition: background 0.3s ease, color 0.3s ease;
}

.button.is-info.is-outlined:hover,
.button.is-info.is-outlined:focus,
.button.is-info.is-outlined:active {
    background: rgba(62, 144, 240, 0.15);
    border-color: #3e90f0;
    color: #5da9f9;
    outline: none;
    box-shadow: none;
}

.button.is-outlined.is-light {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.button.is-outlined.is-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}
