/* ============================================================
   Abitzen 形象網站 — 靜態樣式（無建置流程，直接由 public/ 提供）
   藍 → 綠科技漸層（信任科技 × 成長）
   ============================================================ */

:root {
    --bg:        #ffffff;
    --ink:       #20323d;   /* 深藍綠灰（主文字） */
    --muted:     #5e7280;
    --soft:      #f6f7ec;   /* 暖陽淺底 */
    --line:      #edefe1;
    --blue:      #2e9fe0;   /* 科技藍 */
    --green:     #4cc578;   /* 成長綠 */
    --sun:       #f4b13c;   /* 暖陽金 */
    --sun-2:     #ffd36b;   /* 淺金 */
    --accent:    #1f9fb8;   /* 青（裝飾） */
    --accent-d:  #16859d;   /* 深青（文字/連結） */
    --radius:    16px;
    --maxw:      1140px;
    --shadow:    0 18px 44px rgba(40, 90, 120, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    /* 拉丁字體優先（英文標點正常顯示），中日文字自動 fallback 到 Noto Sans */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
                 "Noto Sans TC", "Noto Sans JP", "PingFang TC", "Hiragino Sans", "Microsoft JhengHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.brand-mark-img { width: 30px; height: 30px; display: block; }
.brand-name { font-size: 19px; letter-spacing: 0.2px; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch .lang {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}
.lang-switch .lang:hover { color: var(--ink); background: var(--soft); }
.lang-switch .lang.is-active { color: var(--accent-d); background: rgba(31, 159, 184, 0.12); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    box-shadow: 0 10px 26px rgba(46, 159, 224, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46, 159, 224, 0.36); }
.btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(40, 90, 120, 0.07);
}
.btn-ghost:hover { background: var(--soft); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- Hero（陽光背景圖 + 漸層淡化） ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #f5f6f1;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: var(--ink);
    text-align: center;
    padding: 84px 0 130px;
}
.hero-glow { display: none; }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-logo {
    width: min(290px, 66vw);
    height: auto;
    display: block;
    margin: 0 auto 18px;
}
.badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--accent-d);
    background: rgba(31, 159, 184, 0.10);
    border: 1px solid rgba(31, 159, 184, 0.20);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(32px, 5.6vw, 56px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.hero-title .accent {
    background: linear-gradient(100deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    margin: 24px auto 0;
    max-width: 620px;
    font-size: clamp(16px, 2.2vw, 18px);
    color: var(--muted);
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; scroll-margin-top: 80px; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; }
.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-d);
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent-d); }
.section-title {
    font-size: clamp(26px, 4vw, 37px);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.3px;
    max-width: 720px;
}
.section-lead {
    margin-top: 18px;
    max-width: 660px;
    font-size: 17px;
    color: var(--muted);
}

/* ---------- Icons ---------- */
.icon-box {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(46, 159, 224, 0.12), rgba(76, 197, 120, 0.16));
    color: var(--accent-d);
    margin-bottom: 18px;
}
.icon-box svg { width: 26px; height: 26px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* About — 大數字編排（無卡片框） */
.about-row {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
}
.about-item { padding-top: 20px; border-top: 2px solid var(--line); }
.about-no {
    display: block;
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.about-item h3 { font-size: 19px; margin-bottom: 8px; }
.about-item p { color: var(--muted); font-size: 15px; }

/* Service cards */
.grid-cards { margin-top: 48px; }
.service-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(46, 159, 224, 0.30);
}
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-card .icon-box {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    box-shadow: 0 8px 18px rgba(46, 159, 224, 0.25);
}

/* ---------- Compare ---------- */
.compare {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.compare-col {
    border-radius: var(--radius);
    padding: 34px 30px;
    border: 1px solid var(--line);
    background: var(--bg);
}
.compare-packaged { background: var(--bg); box-shadow: 0 10px 26px rgba(40, 90, 120, 0.06); }
.compare-custom {
    position: relative;
    border: 1.5px solid rgba(46, 159, 224, 0.32);
    box-shadow: 0 20px 46px rgba(46, 159, 224, 0.12);
}
.compare-tag {
    position: absolute;
    top: -12px; right: 24px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    padding: 5px 14px;
    border-radius: 999px;
}
.compare-col h3 { font-size: 20px; margin-bottom: 20px; }
.compare-col ul { list-style: none; display: grid; gap: 14px; }
.compare-col li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15.5px; color: var(--ink);
}
.compare-packaged li { color: var(--muted); }
.mark {
    flex: none;
    width: 22px; height: 22px;
    border-radius: 999px;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700;
    margin-top: 2px;
}
.mark-x { background: #eceef0; color: #94a0a8; }
.mark-check { background: rgba(46, 159, 224, 0.14); color: var(--accent-d); }

/* ---------- Process ---------- */
.steps { margin-top: 48px; display: grid; gap: 8px; }
.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; }
.step-no {
    flex: none;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-width: 56px;
}
.step-body h3 { font-size: 19px; margin-bottom: 4px; }
.step-body p { color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact {
    background: linear-gradient(135deg, var(--blue), var(--green));
    text-align: center;
}
.contact .eyebrow-light { color: rgba(255, 255, 255, 0.82); }
.contact-inner { max-width: 680px; }
.contact-title { margin: 0 auto; color: #fff; }
.contact-sub { margin: 18px auto 34px; color: rgba(255, 255, 255, 0.92); font-size: 17px; max-width: 540px; }
.contact .btn-primary { background: #fff; color: var(--accent-d); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12); }
.contact .btn-primary:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.contact-email { margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.contact-email a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }

/* ---------- 實績 Track Record — 淺色展示區 ---------- */
.track-show {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #e9f6f0 0%, #ecf4f8 60%, #eef6f1 100%);
    color: var(--ink);
}
.track-glow {
    position: absolute;
    top: -180px; right: -140px;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(76, 197, 120, 0.16) 0%, rgba(46, 159, 224, 0.10) 44%, transparent 72%);
    pointer-events: none;
    filter: blur(12px);
}
.track-show .container { position: relative; z-index: 1; }
.track-show .eyebrow { color: var(--accent-d); }
.track-show .section-title { color: var(--ink); }
.track-show .section-lead { color: var(--muted); }

/* 網路節點圖 */
.track-net { position: relative; height: 800px; margin-top: 40px; }
.track-net-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.track-net-svg line {
    stroke: #62c0ac;
    stroke-width: 1.4;
    opacity: 0.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.tnet-node {
    position: absolute;
    z-index: 1;
    width: 196px;
    transform: translate(-50%, -22px);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 8px;
}
.tnet-ico {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    box-shadow: 0 6px 16px rgba(46, 159, 224, 0.32);
}
.tnet-ico svg { width: 23px; height: 23px; }
.tnet-label {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 11px 15px;
    box-shadow: 0 8px 22px rgba(40, 90, 120, 0.08);
}
.tnet-label h3 { font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.tnet-label p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* 平板／手機：改為直式清單 */
@media (max-width: 1024px) {
    .track-net { height: auto; display: flex; flex-direction: column; gap: 14px; }
    .track-net-svg { display: none; }
    .tnet-node {
        position: static; transform: none; width: 100%;
        flex-direction: row; align-items: center; text-align: left; gap: 14px;
    }
    .tnet-label { flex: 1; }
}

.track-hl {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.thl {
    text-align: center;
    padding: 24px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(40, 90, 120, 0.05);
}
.thl-ico {
    width: 42px; height: 42px; margin: 0 auto 12px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 159, 224, 0.14), rgba(76, 197, 120, 0.18));
    color: var(--accent-d);
}
.thl-ico svg { width: 22px; height: 22px; }
.thl h4 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.thl p { font-size: 13.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); color: var(--muted); padding: 46px 0; border-top: 1px solid var(--line); }
.footer-inner { text-align: center; display: grid; gap: 10px; justify-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.footer-tagline { font-size: 15px; }
.footer-rights { font-size: 13px; color: #8fa0a8; }

/* ---------- LINE 浮動按鈕 ---------- */
.line-fab {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #06c755;
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 16px 9px 13px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.38);
    transition: transform 0.15s ease;
    animation: linePulse 2.2s ease-out infinite;
}
.line-fab:hover { transform: translateY(-3px) scale(1.05); }
.line-fab svg { width: 20px; height: 20px; flex: none; animation: lineIcon 2.2s ease-in-out infinite; }
@keyframes linePulse {
    0%   { box-shadow: 0 8px 20px rgba(6, 199, 85, 0.38), 0 0 0 0 rgba(6, 199, 85, 0.40); }
    70%  { box-shadow: 0 8px 20px rgba(6, 199, 85, 0.38), 0 0 0 13px rgba(6, 199, 85, 0); }
    100% { box-shadow: 0 8px 20px rgba(6, 199, 85, 0.38), 0 0 0 13px rgba(6, 199, 85, 0); }
}
@keyframes lineIcon {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
    .line-fab, .line-fab svg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    .about-row { grid-template-columns: 1fr; gap: 26px; }
    .track-hl { grid-template-columns: 1fr; }
    .compare { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .hero { padding: 56px 0 84px; }
}
@media (max-width: 460px) {
    .container { padding: 0 18px; }
    .brand-name { font-size: 18px; }
    .lang-switch .lang { padding: 6px 7px; }
    .step { gap: 14px; }
    .step-no { font-size: 24px; min-width: 42px; }
    .line-fab { right: 16px; bottom: 86px; padding: 11px; gap: 0; }
    .line-fab span { display: none; }
}
