/* ============================================================
   Fountstream Tech 啟源自動化科技 — 品牌樣式
   科技藍色系：深海軍藍 + 亮科技藍
   ============================================================ */

:root {
    /* 品牌色 */
    --navy: #14253B;          /* 深海軍藍（Logo 主色） */
    --navy-2: #1C2D42;        /* 副海軍藍 */
    --navy-3: #243A56;        /* 更亮一階 */
    --blue: #2563EB;          /* 亮科技藍（Accent） */
    --blue-light: #3B82F6;
    --blue-soft: #EAF1FE;     /* 淺藍底色 */
    --bg-light: #F1F3F5;      /* 淺灰背景（Logo 底色） */
    --white: #FFFFFF;

    /* 文字 */
    --text: #1E293B;
    --text-soft: #475569;
    --text-muted: #64748B;
    --text-on-dark: #E2E8F0;
    --text-faint: #94A3B8;

    /* 其他 */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, .12);
    --radius: 16px;
    --radius-lg: 22px;
    --font: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- 通用 ---------- */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; line-height: 1.35; margin: 10px 0 14px; color: var(--navy); }
.section-sub { color: var(--text-soft); font-size: 1.05rem; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--blue);
    text-transform: uppercase;
    background: var(--blue-soft);
    padding: 6px 14px;
    border-radius: 999px;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid rgba(20, 37, 59, .08);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: 1rem;
    padding: 13px 26px;
    border-radius: 12px;
    transition: all .2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, .45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-soft); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }

/* ---------- Nav ---------- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20, 37, 59, .07);
    transition: box-shadow .25s ease;
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 46px; height: 46px; border-radius: 12px; overflow: hidden;
    background: var(--bg-light); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 900; font-size: 1.12rem; color: var(--navy); line-height: 1.15; }
.brand-name small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-muted); letter-spacing: .06em; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--text-soft); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links .nav-cta {
    background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 10px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.nav-links .nav-cta:hover { background: var(--blue-light); color: #fff; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(150deg, #0D1B2B 0%, var(--navy) 45%, var(--navy-2) 100%);
    color: #fff;
    padding: 178px 0 96px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(700px 420px at 85% 10%, rgba(59,130,246,.22), transparent 60%),
        radial-gradient(560px 380px at 8% 90%, rgba(37,99,235,.16), transparent 60%);
}
.hero-bg::after {
    content: "";
    position: absolute; inset: 0; opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; }
.hero .eyebrow {
    background: rgba(59,130,246,.16); color: #BFDBFE;
    border: 1px solid rgba(59,130,246,.3);
}
.hero h1 {
    font-size: clamp(2.1rem, 5.4vw, 3.4rem);
    font-weight: 900; line-height: 1.28; margin: 22px 0 18px;
    letter-spacing: .01em;
}
.hero h1 .grad {
    background: linear-gradient(90deg, #60A5FA, #38BDF8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--text-on-dark); max-width: 680px; margin: 0 auto; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin: 36px 0 40px; flex-wrap: wrap; }
.hero-trust { display: flex; justify-content: center; gap: 14px 38px; flex-wrap: wrap; color: var(--text-faint); font-size: .92rem; }
.trust-item i { color: var(--blue-light); margin-right: 8px; }

/* ---------- 痛點 ---------- */
.challenge { background: var(--bg-light); }
.pain-card { text-align: center; }
.pain-icon {
    font-size: 1.9rem; color: var(--blue);
    background: var(--blue-soft);
    width: 66px; height: 66px; border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.pain-card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--navy); }
.pain-card p { color: var(--text-soft); font-size: .95rem; }
.challenge-outro { text-align: center; margin-top: 44px; font-size: 1.25rem; color: var(--navy); }
.challenge-outro strong { color: var(--blue); }

/* ---------- 解決方案 ---------- */
.solution-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.solution-card { padding: 36px; display: flex; flex-direction: column; }
.solution-card-accent { background: linear-gradient(160deg, #0E2238, var(--navy-2)); border-color: transparent; }
.solution-card-accent .solution-desc { color: var(--text-on-dark); }
.solution-card-accent .feature-list li { color: var(--text-on-dark); }
.solution-card-head { margin-bottom: 14px; }
.solution-card-head h3 { font-size: 1.35rem; font-weight: 900; margin-top: 12px; }
.solution-card-head h3 i { color: var(--blue); margin-right: 8px; }
.solution-card-accent .solution-card-head h3 { color: #fff; }
.solution-card-accent .solution-card-head h3 i { color: #60A5FA; }
.solution-desc { color: var(--text-soft); margin-bottom: 22px; }
.badge {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
    background: var(--blue-soft); color: var(--blue);
    padding: 4px 12px; border-radius: 999px;
}
.badge-accent { background: rgba(96,165,250,.18); color: #93C5FD; }

.flow { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.flow-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--blue-soft); color: var(--navy);
    border-radius: 12px; padding: 14px 10px; min-width: 92px;
    font-size: .82rem; font-weight: 600; flex: 1;
}
.flow-step i { font-size: 1.25rem; color: var(--blue); }
.flow-arrow { color: #CBD5E1; }
.solution-card-accent .flow-step { background: rgba(255,255,255,.06); color: #E2E8F0; }
.solution-card-accent .flow-step i { color: #60A5FA; }
.solution-card-accent .flow-arrow { color: rgba(255,255,255,.25); }

.feature-list { margin-bottom: 26px; flex: 1; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--text-soft); font-size: .98rem; }
.feature-list li i { color: var(--blue); margin-top: 4px; }
.solution-card-accent .feature-list li i { color: #60A5FA; }

/* ---------- 模組 ---------- */
.modules { background: var(--bg-light); }
.module-card { position: relative; text-align: left; }
.module-badge {
    position: absolute; top: 14px; right: 14px;
    font-size: .72rem; font-weight: 700; color: var(--white);
    background: linear-gradient(135deg, var(--blue), #3B82F6);
    padding: 4px 10px; border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.module-icon {
    width: 62px; height: 62px; border-radius: 16px;
    background: linear-gradient(140deg, var(--navy-3), var(--navy));
    color: #93C5FD; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.module-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; color: var(--navy); }
.module-card p { color: var(--text-soft); font-size: .95rem; margin-bottom: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
    font-size: .78rem; font-weight: 600; color: var(--blue);
    background: var(--blue-soft); padding: 5px 12px; border-radius: 999px;
}

/* ---------- 支付 + 硬件 ---------- */
.integration-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.integration-card h3 { font-size: 1.12rem; margin-bottom: 18px; color: var(--navy); }
.integration-card h3 i { color: var(--blue); margin-right: 8px; }
.pay-logo-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pay-chip {
    font-weight: 800; font-size: .95rem; color: var(--navy);
    border: 2px solid rgba(20,37,59,.12); border-radius: 10px;
    padding: 10px 18px; background: var(--white);
}
.hw-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--text-soft); font-size: .98rem; }
.hw-list li i { color: var(--blue); width: 20px; text-align: center; }

/* ---------- 自動化服務 ---------- */
.automation { background: linear-gradient(160deg, #0E2238, var(--navy)); }
.automation .section-head h2 { color: #fff; }
.automation .section-sub { color: var(--text-on-dark); }
.automation .eyebrow { background: rgba(59,130,246,.18); color: #BFDBFE; }
.auto-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.auto-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.auto-icon { font-size: 1.8rem; color: #60A5FA; margin-bottom: 16px; }
.auto-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.auto-card p { color: var(--text-on-dark); font-size: .94rem; }

/* ---------- 案例 ---------- */
.cases { background: var(--bg-light); }

/* ---------- 關於 ---------- */
.about { background: var(--bg-light); }
.about-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about-logo {
    background: var(--bg-light); border-radius: var(--radius-lg);
    padding: 34px; box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
}
.about-logo img { max-height: 220px; object-fit: contain; }
.about-text h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900; color: var(--navy); margin: 12px 0 16px; }
.about-text p { color: var(--text-soft); margin-bottom: 14px; }
.about-list li { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: var(--text); font-weight: 600; }
.about-list li i { color: var(--blue); width: 22px; text-align: center; }

/* ---------- 聯絡 ---------- */
.contact-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    background: var(--white); border: 1px solid rgba(20,37,59,.08);
    border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md);
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
    display: flex; gap: 16px; align-items: center;
    background: var(--bg-light); border-radius: 14px; padding: 18px 20px;
    transition: all .2s ease;
}
.contact-item:hover { background: var(--blue-soft); transform: translateX(4px); }
.contact-item i { font-size: 1.5rem; color: var(--blue); width: 32px; text-align: center; }
.contact-item strong { color: var(--navy); }
.contact-item span { color: var(--text-soft); font-size: .95rem; line-height: 1.5; }
.contact-cta { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.contact-cta p { font-size: 1.1rem; font-weight: 700; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: #0B1522; color: var(--text-faint); }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 40px 0; gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 44px; height: 44px; object-fit: contain; background: var(--bg-light); border-radius: 10px; padding: 3px; }
.footer-brand p { font-weight: 700; color: #CBD5E1; font-size: .95rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; color: var(--text-faint); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; }
.footer-bar p { font-size: .82rem; text-align: center; color: #64748B; }

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .solution-wrap, .integration-row, .contact-wrap { grid-template-columns: 1fr; }
    .about-wrap { grid-template-columns: 1fr; }
    .about-logo { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 720px) {
    .section { padding: 68px 0; }
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column; align-items: flex-start;
        gap: 0; padding: 0 6%;
        box-shadow: var(--shadow-md);
        max-height: 0; overflow: hidden;
        transition: max-height .3s ease, padding .3s ease;
    }
    .nav-links.open { max-height: 420px; padding: 14px 6% 20px; }
    .nav-links a { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(20,37,59,.06); }
    .nav-links .nav-cta { border: none; text-align: center; margin-top: 10px; }

    .grid-3, .grid-4, .case-row { grid-template-columns: 1fr; }
    .hide-mobile { display: none; }
    .hero { padding: 150px 0 76px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .flow { gap: 6px; }
    .flow-step { min-width: 0; }
    .contact-wrap { padding: 30px 22px; }
}
