/* ============================================
   台灣風格加強設計 - Taiwan Style Enhancement
   載入順序：最後，覆蓋所有預設樣式
   ============================================ */

/* === Extended Color Variables === */
:root {
    --accent: #E85B2D;
    --accent-light: #ff7043;
    --accent-pale: #fff3ef;
    --line-green: #06C755;
    --gold-light: #f0d060;
    --section-curve: #f8faff;
}

/* === Typography Enhancement (中文最佳閱讀) === */
body {
    line-height: 1.85;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.02em;
}

.section-title {
    letter-spacing: 0.03em;
    position: relative;
}

.section-desc {
    line-height: 1.9;
}

/* === Section Wave Dividers === */
.section-wave-top,
.section-wave-bottom {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}
.section-wave-top {
    margin-bottom: -2px;
}
.section-wave-bottom {
    margin-top: -2px;
}
.section-wave-top svg,
.section-wave-bottom svg {
    display: block;
    width: 100%;
    height: 60px;
}
@media (max-width: 768px) {
    .section-wave-top svg,
    .section-wave-bottom svg {
        height: 36px;
    }
}

/* === Enhanced Section Backgrounds === */
.services-overview {
    background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
}

.tech-stack {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.process-section {
    background: linear-gradient(180deg, #edf2ff 0%, #f0f4ff 50%, #edf2ff 100%);
}

.blog-preview {
    background: linear-gradient(180deg, #f8faff 0%, #f0f4ff 100%);
}

.testimonials {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f0f4ff 100%);
}

.why-us {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

/* === Enhanced Service Cards === */
.service-card {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45,91,227,0.06);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover {
    border-color: rgba(45,91,227,0.18);
    box-shadow: 0 20px 60px rgba(26,39,68,0.16);
    transform: translateY(-8px);
}
.service-card::before {
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 50%, var(--gold) 100%);
}

/* === Enhanced Testimonial Cards === */
.testimonial-card {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px 32px;
    overflow: visible;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -18px;
    left: 24px;
    font-size: 4rem;
    line-height: 1;
    color: var(--blue);
    opacity: 0.15;
    font-family: Georgia, serif;
    pointer-events: none;
}
.testimonial-card:hover {
    border-color: rgba(45,91,227,0.2);
    box-shadow: 0 16px 48px rgba(45,91,227,0.12);
    transform: translateY(-6px);
}
.testimonial-stars {
    font-size: 1.05rem;
    letter-spacing: 2px;
}

/* === Hero Enhancement === */
.hero-bg-img {
    background: url('../images/hero-banner.jpg') center center / cover no-repeat;
    opacity: 0.32;
}

/* Hero CTA warm accent */
.hero-cta-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: 0 6px 28px rgba(232,91,45,0.4);
}
.hero-cta-primary:hover {
    box-shadow: 0 12px 36px rgba(232,91,45,0.55);
    transform: translateY(-3px);
}

/* Hero stat enhancement */
.hero-stats {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Enhanced hero card */
.hero-card-main {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

/* === CTA Section Enhancement === */
.cta-section {
    background: url('../images/cta-bg.jpg') center / cover no-repeat;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    background: linear-gradient(135deg, rgba(13,21,48,0.85) 0%, rgba(26,39,68,0.78) 100%);
    background-size: 100% 100%;
}
.cta-inner h2 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.cta-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: 0 6px 28px rgba(232,91,45,0.4);
    font-size: 1.05rem;
    padding: 18px 40px;
}
.cta-actions .btn-primary:hover {
    box-shadow: 0 12px 36px rgba(232,91,45,0.55);
}

/* === Page Hero Enhancement (inner pages) === */
.page-hero {
    background: url('../images/hero-banner.jpg') center / cover no-repeat;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    background: linear-gradient(135deg, rgba(13,21,48,0.9) 0%, rgba(26,39,68,0.82) 100%);
    background-size: 100% 100%;
}

/* === Process Steps Enhancement === */
.process-step {
    border: 1.5px solid var(--border);
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.process-step:hover {
    border-color: rgba(45,91,227,0.15);
    box-shadow: 0 16px 48px rgba(45,91,227,0.12);
    transform: translateY(-8px);
}

/* === Why-Us Cards Enhancement === */
.why-card {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(45,91,227,0.08);
    transition: all 0.35s ease;
}
.why-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 32px rgba(45,91,227,0.15);
    transform: scale(1.08);
}
.why-feature {
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.3s ease;
}
.why-feature:hover {
    background: var(--blue-pale);
}

/* === Blog Cards Enhancement === */
.blog-card {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.blog-card:hover {
    border-color: rgba(45,91,227,0.15);
    box-shadow: 0 20px 60px rgba(26,39,68,0.15);
    transform: translateY(-8px);
}

/* === Tech Category Enhancement === */
.tech-category {
    transition: all 0.35s ease;
    border: 1.5px solid var(--border);
}
.tech-category:hover {
    border-color: rgba(45,91,227,0.2);
    box-shadow: 0 12px 40px rgba(45,91,227,0.1);
    transform: translateY(-4px);
}

/* ============================================
   技術範圍區塊 — 豐富化重構 v2
   4 色卡片 + 2×2 grid + 3col badges
   ============================================ */

/* --- 區塊整體背景 --- */
.tech-stack {
    background: linear-gradient(180deg, #f0f3ff 0%, #e6ebff 40%, #edf0ff 100%) !important;
    border-top: none !important;
    position: relative;
    overflow: hidden;
}
.tech-stack::before {
    content: '';
    position: absolute;
    top: -100px; right: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(45,91,227,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.tech-stack::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(45,91,227,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* --- 統計數字列 --- */
.tech-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 22px 16px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(45,91,227,0.06);
    position: relative;
    overflow: hidden;
}
.tech-stats::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a2744, #2d5be3, #4f8cff);
}
.tech-stat-item {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
}
.tech-stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    display: inline;
    font-variant-numeric: tabular-nums;
}
.tech-stat-suffix {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--blue);
    line-height: 1;
}
.tech-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}
.tech-stat-divider {
    width: 1px;
    height: 44px;
    background: var(--border);
    flex-shrink: 0;
}

/* --- Grid 3 欄（桌面） --- */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 卡片共用 --- */
.tech-category {
    transition: all 0.35s ease;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.tech-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tech-category:hover::before {
    transform: scaleX(1);
}
.tech-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* --- 卡片 Header --- */
.tech-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.tech-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s ease;
}
.tech-cat-icon .cat-icon {
    width: 22px;
    height: 22px;
    margin-right: 0;
    opacity: 1;
    transition: filter 0.35s ease;
}
.tech-cat-header h4 {
    flex: 1;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1.05rem;
    font-weight: 800;
}
.tech-cat-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 50px;
    white-space: nowrap;
}

/* --- Badges grid 2欄 (避免長詞如「企業系統整合」破版) --- */
.tech-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.tech-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: default;
    white-space: nowrap;
    justify-content: center;
    min-width: 0;
}
.tech-badges span i {
    font-size: 0.76rem;
    transition: all 0.3s ease;
}

/* --- Badge entry animation --- */
.tech-badges span {
    opacity: 0;
    transform: translateY(10px);
    animation: badgeFadeIn 0.35s ease forwards;
}
.tech-badges span:nth-child(1) { animation-delay: 0.05s; }
.tech-badges span:nth-child(2) { animation-delay: 0.08s; }
.tech-badges span:nth-child(3) { animation-delay: 0.11s; }
.tech-badges span:nth-child(4) { animation-delay: 0.14s; }
.tech-badges span:nth-child(5) { animation-delay: 0.17s; }
.tech-badges span:nth-child(6) { animation-delay: 0.2s; }
@keyframes badgeFadeIn {
    to { opacity: 1; transform: translateY(0); }
}


/* ============================
   Per-card color themes
   ============================ */

/* — 藍色：網站與應用程式 — */
.tc-blue {
    background: linear-gradient(160deg, #eef4ff 0%, #dbe8ff 100%);
    border-color: rgba(45,91,227,0.15);
}
.tc-blue::before {
    background: linear-gradient(90deg, #2d5be3, #4f8cff);
}
.tc-blue .tech-cat-icon {
    background: linear-gradient(135deg, #2d5be3, #4f8cff);
    box-shadow: 0 3px 12px rgba(45,91,227,0.25);
}
.tc-blue .tech-cat-icon .cat-icon { filter: brightness(0) invert(1); }
.tc-blue .tech-cat-count {
    background: rgba(45,91,227,0.12);
    color: #2d5be3;
}
.tc-blue .tech-cat-header { border-bottom-color: rgba(45,91,227,0.12); }
.tc-blue .tech-badges span {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(45,91,227,0.12);
    color: #1e3a5f;
}
.tc-blue .tech-badges span i { color: #4f8cff; }
.tc-blue .tech-badges span:hover {
    background: #2d5be3;
    border-color: #2d5be3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(45,91,227,0.25);
}
.tc-blue .tech-badges span:hover i { color: #fff; }
.tc-blue:hover {
    border-color: rgba(45,91,227,0.3);
    box-shadow: 0 12px 40px rgba(45,91,227,0.12);
}

/* — 三張卡片統一藍色主題（與 .tc-blue 一致） — */
.tc-orange,
.tc-green {
    background: linear-gradient(160deg, #eef4ff 0%, #dbe8ff 100%);
    border-color: rgba(45,91,227,0.15);
}
.tc-orange::before,
.tc-green::before {
    background: linear-gradient(90deg, #2d5be3, #4f8cff);
}
.tc-orange .tech-cat-icon,
.tc-green .tech-cat-icon {
    background: linear-gradient(135deg, #2d5be3, #4f8cff);
    box-shadow: 0 3px 12px rgba(45,91,227,0.25);
}
.tc-orange .tech-cat-icon .cat-icon,
.tc-green .tech-cat-icon .cat-icon { filter: brightness(0) invert(1); }
.tc-orange .tech-cat-count,
.tc-green .tech-cat-count {
    background: rgba(45,91,227,0.12);
    color: #2d5be3;
}
.tc-orange .tech-cat-header,
.tc-green .tech-cat-header { border-bottom-color: rgba(45,91,227,0.12); }
.tc-orange .tech-badges span,
.tc-green .tech-badges span {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(45,91,227,0.12);
    color: #1e3a5f;
}
.tc-orange .tech-badges span i,
.tc-green .tech-badges span i { color: #4f8cff; }
.tc-orange .tech-badges span:hover,
.tc-green .tech-badges span:hover {
    background: #2d5be3;
    border-color: #2d5be3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(45,91,227,0.25);
}
.tc-orange .tech-badges span:hover i,
.tc-green .tech-badges span:hover i { color: #fff; }
.tc-orange:hover,
.tc-green:hover {
    border-color: rgba(45,91,227,0.3);
    box-shadow: 0 12px 40px rgba(45,91,227,0.12);
}

/* — 紫色：雲端與維運 — */
.tc-purple {
    background: linear-gradient(160deg, #f3eeff 0%, #e4d9ff 100%);
    border-color: rgba(124,58,237,0.15);
}
.tc-purple::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}
.tc-purple .tech-cat-icon {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    box-shadow: 0 3px 12px rgba(124,58,237,0.25);
}
.tc-purple .tech-cat-icon .cat-icon { filter: brightness(0) invert(1); }
.tc-purple .tech-cat-count {
    background: rgba(124,58,237,0.12);
    color: #6d28d9;
}
.tc-purple .tech-cat-header { border-bottom-color: rgba(124,58,237,0.12); }
.tc-purple .tech-badges span {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(124,58,237,0.12);
    color: #3b1a6d;
}
.tc-purple .tech-badges span i { color: #a78bfa; }
.tc-purple .tech-badges span:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(124,58,237,0.25);
}
.tc-purple .tech-badges span:hover i { color: #fff; }
.tc-purple:hover {
    border-color: rgba(124,58,237,0.3);
    box-shadow: 0 12px 40px rgba(124,58,237,0.1);
}

/* --- 統計數字列 per-color dots --- */
.tech-stat-num.counted {
    animation: statPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes statPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- 底部 CTA --- */
.tech-bottom-cta {
    text-align: center;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(45,91,227,0.1);
}
.tech-bottom-cta p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 18px;
}
.tech-bottom-cta .btn-primary {
    background: linear-gradient(135deg, #06C755 0%, #00b348 100%);
    box-shadow: 0 6px 24px rgba(6,199,85,0.35);
}
.tech-bottom-cta .btn-primary:hover {
    box-shadow: 0 10px 32px rgba(6,199,85,0.5);
    transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tech-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .tech-badges span {
        font-size: 0.82rem;
        padding: 7px 10px;
    }
    .tech-stats {
        flex-wrap: wrap;
        gap: 0;
        padding: 14px 8px;
    }
    .tech-stat-item {
        flex: 1 1 45%;
        padding: 10px 8px;
    }
    .tech-stat-divider {
        display: none;
    }
    .tech-stat-num {
        font-size: 1.8rem;
    }
    .tech-stat-suffix {
        font-size: 1.2rem;
    }
    .tech-bottom-cta {
        margin-top: 24px;
        padding-top: 20px;
    }
}
@media (max-width: 480px) {
    .tech-badges {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-cat-header h4 {
        font-size: 0.95rem;
    }
    .tech-stat-item {
        flex: 1 1 50%;
    }
}

/* === Enhanced Buttons === */
.btn-outline {
    border-width: 2px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.btn-outline:hover {
    box-shadow: 0 8px 24px rgba(45,91,227,0.25);
}

/* === Enhanced Footer === */
.footer {
    position: relative;
    background: linear-gradient(180deg, #0a1225 0%, #060c1a 100%);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--accent), var(--gold), var(--blue));
}
.footer-social a {
    border-radius: 10px;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(45,91,227,0.4);
}

/* === Floating LINE Customer Service Button === */
.line-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
}
.line-float-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--line-green);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(6,199,85,0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}
.line-float-btn a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(6,199,85,0.5);
}
/* Pulse ring animation */
.line-float-btn a::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--line-green);
    animation: linePulse 2s ease-in-out infinite;
}
@keyframes linePulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}
/* Tooltip label */
.line-float-label {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.line-float-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}
.line-float-btn:hover .line-float-label {
    opacity: 1;
}

/* LINE icon SVG (simple chat bubble) */
.line-icon {
    width: 28px;
    height: 28px;
}

/* Adjust scroll-top position when LINE button present */
.scroll-top {
    bottom: 96px;
    right: 24px;
}

/* === Contact Method Enhancement === */
.contact-method {
    border: 1.5px solid var(--border);
    border-radius: 14px;
    transition: all 0.35s ease;
}
.contact-method:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 32px rgba(45,91,227,0.1);
    transform: translateX(6px);
}

/* === Form Enhancement === */
.contact-form-panel {
    border: 1.5px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(45,91,227,0.06);
}
.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 12px;
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(45,91,227,0.08);
}

/* === Price Card Enhancement === */
.price-card {
    border-radius: 20px;
    transition: all 0.35s ease;
}
.price-card:hover {
    box-shadow: 0 20px 60px rgba(45,91,227,0.15);
    transform: translateY(-8px);
}
.price-card.popular {
    border-color: var(--blue);
    box-shadow: 0 12px 40px rgba(45,91,227,0.1);
}

/* === FAQ Enhancement === */
.faq-item {
    border: 1.5px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(45,91,227,0.15);
}
.faq-q {
    padding: 22px 28px;
}

/* === Blog Post Enhancement === */
.post-content {
    border: 1.5px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(45,91,227,0.06);
}
.sidebar-widget {
    border: 1.5px solid var(--border);
    border-radius: 16px;
}

/* === Section Tag Enhancement === */
.section-tag {
    background: linear-gradient(135deg, var(--blue-pale) 0%, #dbeafe 100%);
    border: 1px solid rgba(45,91,227,0.15);
    font-weight: 700;
    letter-spacing: 1px;
}

/* === Gradient Accent Line for Sections === */
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--accent));
    margin: 20px auto 0;
    border-radius: 3px;
}
.why-us-left .section-header::after {
    margin-left: 0;
}

/* === Navbar Enhancement === */
.navbar.scrolled {
    background: rgba(8,12,28,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

/* === Service Detail Enhancement (services page) === */
.service-section {
    border-bottom: 2px solid var(--border);
}
.service-section:last-child {
    border-bottom: none;
}

/* === Blog Filter Enhancement === */
.filter-btn {
    border-radius: 10px;
    transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
    box-shadow: 0 4px 16px rgba(45,91,227,0.25);
}

/* === Image lazy load fade-in === */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}
/* Loaded by default for non-JS */
img[loading="lazy"] {
    opacity: 1;
}

/* === Scroll Progress Bar (top) === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--accent), var(--gold));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ============================================
   字體大小 & 間距校準 — 參考台灣接案公司網站風格
   (Welly, 電子豹, 歐斯瑞, GoSky 等)
   ============================================ */

/* --- Section 不同色塊之間用細邊框取代 wave，更自然 --- */
.tech-stack {
    border-top: 1px solid var(--border);
}
.blog-preview {
    border-top: 1px solid var(--border);
}
.why-us {
    border-top: 1px solid var(--border);
}

/* --- GPT 圖示尺寸 --- */
.cat-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    opacity: 0.85;
}

.why-card-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

/* --- 全站基礎字級放大 --- */
body {
    font-size: 16.5px;
}

/* --- Section 間距從 100px 縮減 --- */
.section {
    padding: 72px 0;
}

/* --- Section Header 下方間距縮減 --- */
.section-header {
    margin-bottom: 40px;
}

/* --- Section 描述放大 --- */
.section-desc {
    font-size: 1.1rem;
}

/* --- Logo 放大 --- */
.logo-img {
    width: 60px;
    height: 60px;
}
.logo-cn {
    font-size: 1.3rem;
    letter-spacing: 3px;
}
.logo-en {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
}
.footer-logo {
    width: 60px;
    height: 60px;
}

/* --- 導覽列字體放大 --- */
.nav-link {
    font-size: 1rem;
    padding: 8px 18px;
}
.nav-btn {
    font-size: 1rem;
    padding: 11px 24px;
}

/* --- Hero 區域微調 --- */
.hero {
    padding: 100px 24px 64px;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.hero-actions {
    margin-bottom: 40px;
}
.hero-badge {
    font-size: 0.95rem;
}
.stat-label {
    font-size: 0.88rem;
}

/* --- 服務卡片字體放大 --- */
.service-card h3 {
    font-size: 1.25rem;
}
.service-card p {
    font-size: 1rem;
    line-height: 1.75;
}
.service-tags li {
    font-size: 0.85rem;
}
.service-link {
    font-size: 0.95rem;
}

/* --- 技術棧字體放大 --- */
.tech-category h4 {
    font-size: 1.08rem;
}
.tech-badges span {
    font-size: 0.9rem;
    padding: 7px 16px;
}

/* --- 流程步驟字體放大 --- */
.process-step h3 {
    font-size: 1.12rem;
}
.process-step p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Blog 卡片字體放大 --- */
.blog-card h3 {
    font-size: 1.12rem;
}
.blog-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}
.blog-meta {
    font-size: 0.88rem;
}
.blog-cat {
    font-size: 0.82rem;
}

/* --- Why-Us 區域調整 --- */
.why-us-inner {
    gap: 48px;
}
.why-feature strong {
    font-size: 1.02rem;
}
.why-feature p {
    font-size: 0.95rem;
}
.why-card {
    font-size: 0.95rem;
}

/* --- 客戶見證字體放大 --- */
.testimonial-card > p {
    font-size: 1rem;
    line-height: 1.8;
}
.testimonial-author strong {
    font-size: 0.95rem;
}
.testimonial-author span {
    font-size: 0.85rem;
}

/* --- CTA 區域間距縮減 --- */
.cta-section {
    padding: 80px 0;
}
.cta-inner p {
    font-size: 1.15rem;
    margin-bottom: 32px;
}

/* --- Footer 字體放大 & 間距縮減 --- */
.footer {
    padding: 60px 0 0;
}
.footer-grid {
    margin-bottom: 48px;
}
.footer-brand p {
    font-size: 0.95rem;
}
.footer-links a {
    font-size: 0.95rem;
}
.footer-links h4 {
    font-size: 1.02rem;
}
.footer-contact h4 {
    font-size: 1.02rem;
}
.contact-info p {
    font-size: 0.92rem;
}
.footer-bottom p,
.footer-bottom-links a {
    font-size: 0.88rem;
}

/* --- Page Hero 間距微調 --- */
.page-hero {
    padding: 140px 0 64px;
}
.page-hero p {
    font-size: 1.15rem;
}
.breadcrumb {
    font-size: 0.92rem;
}

/* --- Services Page 字體放大 --- */
.service-detail h2 {
    font-size: 1.85rem;
}
.service-detail p {
    font-size: 1.02rem;
}
.service-feature-list li {
    font-size: 0.98rem;
}
.sv-item {
    font-size: 0.9rem;
}

/* --- Blog Page 字體放大 --- */
.blog-search input {
    font-size: 0.98rem;
}
.filter-btn {
    font-size: 0.92rem;
}

/* --- Section Tag 放大 --- */
.section-tag {
    font-size: 0.92rem;
    padding: 5px 18px;
}

/* --- Buttons 放大 --- */
.btn-primary,
.btn-secondary,
.btn-ghost {
    font-size: 1.02rem;
    padding: 15px 34px;
}
.btn-outline {
    font-size: 1.02rem;
    padding: 14px 32px;
}
.btn-lg {
    padding: 18px 42px;
    font-size: 1.1rem;
}

/* --- 聯絡頁面字體放大 --- */
.contact-method {
    font-size: 0.98rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    font-size: 1rem;
}

/* === Enhanced Mobile Responsive === */
@media (max-width: 768px) {
    .section {
        padding: 52px 0;
    }
    .section-header {
        margin-bottom: 28px;
    }
    .logo-img {
        width: 48px;
        height: 48px;
    }
    .logo-cn {
        font-size: 1.1rem;
    }
    .logo-en {
        font-size: 0.6rem;
    }
    .nav-link {
        font-size: 0.95rem;
    }
    .line-float-btn a {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .scroll-top {
        bottom: 88px;
        width: 40px;
        height: 40px;
    }
    .section-header::after {
        width: 48px;
        margin-top: 16px;
    }
    .cta-section {
        padding: 56px 0;
    }
    .why-us-inner {
        gap: 32px;
    }
    .page-hero {
        padding: 120px 0 48px;
    }
    .footer {
        padding: 40px 0 0;
    }
    .testimonial-card {
        padding: 28px 24px 24px;
    }
    .testimonial-card::before {
        top: -14px;
        left: 18px;
        font-size: 3rem;
    }
    .hero {
        padding: 80px 16px 48px;
    }
    .hero-actions {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    .line-float-btn a {
        width: 46px;
        height: 46px;
    }
    .line-float-label {
        display: none;
    }
}

/* ============================================
   台灣企業網站風格強化 v2
   參考：welly.tw、GoSky、Orca、91APP 等
   ============================================ */

/* === Section Title 衝擊感強化（台灣科技/接案慣例） === */
.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }
}

/* === Section Header 間距微調 === */
.section-header {
    margin-bottom: 48px;
}
.section-header::after {
    width: 56px;
    height: 4px;
    border-radius: 4px;
    margin-top: 24px;
}

/* === CTA 按鈕高對比 — 台灣市場習慣強調色行動按鈕 === */
.cta-section .btn-primary,
.cta-actions .btn-primary {
    background: linear-gradient(135deg, #e85b2d 0%, #ff7043 100%);
    box-shadow: 0 6px 28px rgba(232, 91, 45, 0.45);
    letter-spacing: 0.5px;
}
.cta-section .btn-primary:hover,
.cta-actions .btn-primary:hover {
    box-shadow: 0 12px 40px rgba(232, 91, 45, 0.6);
    transform: translateY(-3px);
}

/* === 見證區：加入帶框數字統計（信任感強化） === */
.testimonials .section-header {
    margin-bottom: 16px;
}
.testimonials-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 24px 0;
}
.trust-stat {
    text-align: center;
}
.trust-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
}
.trust-stat span {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

/* === Footer 社群圖示 LINE 特別標色 === */
.footer-social a[aria-label="LINE 官方帳號"] {
    background: rgba(6, 199, 85, 0.15);
    color: var(--line-green);
    border: 1px solid rgba(6, 199, 85, 0.3);
}
.footer-social a[aria-label="LINE 官方帳號"]:hover {
    background: var(--line-green);
    color: #fff;
    box-shadow: 0 4px 16px rgba(6, 199, 85, 0.4);
}

/* === Footer 法律資訊列強化 === */
.footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}
@media (min-width: 769px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.3px;
}

/* === 行動版技術範圍卡片單欄 === */
@media (max-width: 600px) {
    .tech-categories {
        grid-template-columns: 1fr;
    }
    .tech-category {
        padding: 20px;
    }
    .tech-badges span {
        font-size: 0.86rem;
        padding: 6px 12px;
    }
}

/* === 行動版 CTA 按鈕全寬 === */
@media (max-width: 480px) {
    .cta-actions .btn-primary,
    .cta-actions .btn-ghost {
        width: 100%;
        justify-content: center;
        font-size: 1.05rem;
    }
}

/* === 服務頁 Tab 按鈕 hover 強化 === */
.tab-btn:hover {
    border-color: rgba(45, 91, 227, 0.4);
    background: var(--blue-pale);
    color: var(--blue);
}
.tab-btn.active {
    box-shadow: 0 4px 16px rgba(45, 91, 227, 0.3);
}

/* === 聯絡頁面「免費諮詢」高對比標題列 === */
.contact-page .page-hero {
    position: relative;
}
.contact-highlight {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-style: normal;
}

/* === 滑動進場動畫補強（配合 AOS） === */
[data-aos="fade-up"] {
    will-change: transform, opacity;
}
