/* =============================================
   基礎設定與變數 (Variables & Resets)
============================================= */
:root {
    --navy: #0A192F;
    --navy-light: rgba(10, 25, 47, 0.9);
    --gold: #E2B13C;
    --gold-hover: #c99a2e;
    --bg-slate-50: #f8fafc;
    --bg-slate-100: #f1f5f9;
    --border-slate-200: #e2e8f0;
    --text-slate-900: #0f172a;
    --text-slate-600: #475569;
    --text-slate-500: #64748b;
    --text-slate-400: #94a3b8;
    --blue-50: #eff6ff;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --emerald-50: #ecfdf5;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-slate-600);
    line-height: 1.5;
    background-color: var(--bg-slate-50);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* =============================================
   排版工具 (Typography & Utilities)
============================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-gold {
    color: var(--gold);
}

.text-navy {
    color: var(--navy);
}

.text-slate {
    color: var(--text-slate-600);
}

.text-blue {
    color: var(--blue-700);
}

.text-blue-bold {
    color: var(--blue-700);
    font-weight: 600;
}

.text-emerald {
    color: var(--emerald-700);
}

.bg-white {
    background-color: var(--white);
}

.bg-slate-light {
    background-color: var(--bg-slate-50);
}

.bg-blue-light {
    background-color: var(--blue-50);
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 2.5rem;
}

.border-t {
    border-top: 1px solid var(--border-slate-200);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-xl {
    border-radius: 0.75rem;
}

/* 區塊標題 */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-desc {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* 按鈕 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(226, 177, 60, 0);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(226, 177, 60, 0.45);
}

.btn-primary:active {
    transform: translateY(0) scale(1);
}

/* 小按鈕（Navbar 用） */
.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--white);
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--gold);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =============================================
   Icon 樣式
============================================= */
.icon-gold {
    color: var(--gold);
    width: 1.5rem;
    height: 1.5rem;
}

.icon-navy {
    color: var(--navy);
    width: 1rem;
    height: 1rem;
}

.icon-blue {
    color: var(--blue-600);
    width: 1.25rem;
    height: 1.25rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

/* =============================================
   Hero 區塊
============================================= */
.hero-section {
    background-color: var(--navy);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.pattern-bg {
    background-image: linear-gradient(to right, rgba(226, 177, 60, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 177, 60, 0.1) 1px, transparent 1px);
    background-size: 4rem 4rem;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--navy) 100%);
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    border-radius: 9999px;
    background-color: rgba(226, 177, 60, 0.1);
    color: var(--gold);
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(226, 177, 60, 0.2);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.25rem;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.hero-desc {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.75;
}

/* Hero Pillars */
.hero-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 48rem;
    margin: 2.5rem auto 0;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pillar-card h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* =============================================
   三大核心業務區 (Services)
============================================= */
.services-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-slate-200);
    border-radius: 1rem;
    background-color: var(--white);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 40px -12px rgba(10, 25, 47, 0.15);
    transform: translateY(-5px);
}

.service-content {
    padding: 2rem;
    flex: 1;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 1rem;
    color: var(--text-slate-600);
    line-height: 1.75;
}

/* 特效藥卡片金色副標題強調樣式 */
.service-tagline {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--gold);
    line-height: 1.4;
}

.service-list {
    margin-top: 2rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-slate-900);
}

.icon-bg {
    flex: none;
    padding: 0.25rem;
    background-color: rgba(10, 25, 47, 0.05);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-footer {
    background-color: var(--navy);
    padding: 1rem;
    text-align: center;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* =============================================
   保證區塊 (Guarantee)
============================================= */
.guarantee-section {
    padding: 4rem 0;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.guarantee-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-slate-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.guarantee-card:hover {
    box-shadow: 0 16px 32px -8px rgba(10, 25, 47, 0.12);
    transform: translateY(-4px);
}

.guarantee-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(226, 177, 60, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.guarantee-icon i {
    width: 2rem;
    height: 2rem;
}

.guarantee-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.guarantee-card p {
    font-size: 0.95rem;
    color: var(--text-slate-600);
}

/* =============================================
   ROI 效益對比 (RoiSection)
============================================= */
.roi-section {
    padding: 4rem 0;
}

.roi-table-container {
    border: 1px solid var(--border-slate-200);
    border-radius: 0.75rem;
}

.hidden-lg {
    display: none;
}

.roi-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background-color 0.2s;
}

.roi-row:hover {
    background-color: var(--bg-slate-50);
}

.flex-center-left {
    display: flex;
    align-items: center;
}

.icon-box {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.row-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-slate-900);
}

.col-stacked {
    display: flex;
    flex-direction: column;
}

.mobile-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--text-slate-500);
}

.badge-emerald {
    display: inline-flex;
    align-items: center;
    background-color: var(--emerald-50);
    color: var(--emerald-700);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid rgba(5, 150, 105, 0.2);
    width: fit-content;
}

/* =============================================
   聯絡我們 (Contact)
============================================= */
.contact-section {
    padding: 4rem 0;
    background-color: var(--bg-slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contact-info {
    max-width: 32rem;
}

.contact-desc {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.75;
}

.contact-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 0;
    box-shadow: inset 0 0 0 1.5px var(--border-slate-200);
    font-size: 0.875rem;
    outline: none;
    background-color: var(--bg-slate-50);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus {
    box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px rgba(10, 25, 47, 0.08);
    background-color: var(--white);
}

.btn-submit {
    width: 100%;
    background-color: var(--navy);
    color: var(--white);
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(10, 25, 47, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    background-color: #0d2444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 25, 47, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

/* =============================================
   FAQ Accordion
============================================= */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-slate-200);
    border-radius: 0.875rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(226, 177, 60, 0.4);
    box-shadow: 0 4px 16px rgba(10, 25, 47, 0.07);
}

.faq-item.is-open {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(226, 177, 60, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
}

.faq-q-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}

.faq-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-slate-400);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem 0 3.5rem;
}

.faq-answer p {
    color: var(--text-slate-600);
    line-height: 1.75;
    font-size: 0.9375rem;
    padding-bottom: 1.25rem;
    border-top: 1px solid var(--border-slate-200);
    padding-top: 1rem;
}

.faq-item.is-open .faq-answer {
    max-height: 300px;
}

/* =============================================
   頁尾 (Footer)
============================================= */
.footer-section {
    background-color: var(--navy);
    padding: 3rem 0;
    border-top: 1px solid rgba(226, 177, 60, 0.2);
}

.footer-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-cta p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.footer-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-slate-400);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-slate-400);
}

.footer-links a:hover {
    color: var(--white);
}

/* =============================================
   動畫相關 classes (Animations)
============================================= */
.fade-in,
.slide-up,
[class*="slide-up-delay-"] {
    opacity: 0;
    will-change: transform, opacity;
}

.slide-up,
[class*="slide-up-delay-"] {
    transform: translateY(20px);
}

.is-visible {
    animation: slideUpFade 0.6s ease forwards;
}

.fade-in.is-visible {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up-delay-1.is-visible {
    animation-delay: 0.1s;
}

.slide-up-delay-2.is-visible {
    animation-delay: 0.2s;
}

.slide-up-delay-3.is-visible {
    animation-delay: 0.3s;
}

.slide-up-delay-4.is-visible {
    animation-delay: 0.4s;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* =============================================
   響應式設計 (Responsive - media queries)
============================================= */
@media (min-width: 640px) {
    .hidden-sm {
        display: block;
    }

    .hero-title {
        font-size: 4.5rem;
        line-height: 1.05;
    }

    .hero-pillars {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .contact-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .full-width {
        grid-column: span 2;
    }

    .footer-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .guarantee-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-2x2 {
        grid-template-columns: 1fr 1fr;
    }

    .hidden-lg {
        display: flex;
    }

    .roi-row {
        flex-direction: row;
        align-items: center;
    }

    .w-1-4 {
        width: 25%;
    }

    .mb-4-sm {
        margin-bottom: 0;
    }

    .mb-2-sm {
        margin-bottom: 0;
    }

    .mobile-label {
        display: none;
    }
}

/* =============================================
   行動裝置優化 (Mobile Optimization)
============================================ */
@media (max-width: 639px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-section {
        padding: 4rem 0 5rem;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
        margin-bottom: 1.5rem !important;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-desc {
        font-size: 1rem;
        margin-top: 0.75rem;
    }

    .services-section,
    .guarantee-section,
    .roi-section,
    .contact-section {
        padding: 2.5rem 0;
    }

    .mb-16 {
        margin-bottom: 2.5rem;
    }

    .contact-grid {
        gap: 2.5rem;
    }

    .footer-section {
        padding: 2.5rem 0;
    }
    
    .guarantee-grid, .grid-2x2 {
        gap: 1.5rem;
    }

    .hero-desc {
        font-size: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .btn-outline {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* =============================================
   Navbar 導覽列
============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.875rem 0;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(10, 25, 47, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, var(--gold), #f0c040);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.logo-sub {
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-left: 0.25rem;
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 999px;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* 手機漢堡按鈕 */
.navbar-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.navbar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.navbar-toggle .icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

/* 手機展開選單 */
.navbar-mobile {
    display: none;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
    background-color: rgba(10, 25, 47, 0.98);
}

.navbar-mobile.is-open {
    display: flex;
}

.nav-link-mobile {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.625rem 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
}

.nav-link-mobile:last-child {
    border-bottom: none;
}

.nav-link-mobile:hover {
    color: var(--gold);
}

.nav-link-mobile-cta {
    color: var(--gold);
    font-weight: 700;
}

/* =============================================
   Hero Stats 信任指標列
============================================= */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    white-space: nowrap;
}

.hero-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(255,255,255,0.15);
}

/* Hero section 要往下推（因為 Navbar 是 fixed） */
.hero-section {
    padding-top: 8rem;
}

/* Navbar 桌機版顯示 */
@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }

    .navbar-toggle {
        display: none;
    }

    .hero-stats {
        flex-direction: row;
        margin-top: 3.5rem;
    }
}

/* 手機版 hero-stats 垂直排列 */
@media (max-width: 639px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 1rem;
    }

    .hero-stat-divider {
        width: 3rem;
        height: 1px;
    }

    .hero-section {
        padding-top: 6rem;
    }
}

/* =============================================
   成功案例卡片 (Use Cases)
============================================= */
.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.usecase-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-slate-200);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.usecase-card:hover {
    box-shadow: 0 20px 40px -12px rgba(10, 25, 47, 0.15);
    transform: translateY(-5px);
}

.usecase-icon-wrap {
    background-color: var(--bg-slate-50);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-slate-200);
    min-height: 220px;
}

.usecase-icon-img {
    width: 100%;
    max-width: 260px;
    height: 200px;
    object-fit: contain;
}

.usecase-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.usecase-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(226, 177, 60, 0.1);
    color: var(--gold-hover);
    border: 1px solid rgba(226, 177, 60, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    margin-bottom: 0.875rem;
    width: fit-content;
    text-transform: uppercase;
}

.usecase-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 0.875rem;
}

.usecase-desc {
    font-size: 0.9rem;
    color: var(--text-slate-600);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.usecase-result {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background-color: var(--emerald-50);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--emerald-700);
    line-height: 1.5;
}

/* =============================================
   痛點卡片 — 左側金色 Accent Border
============================================= */
.pain-card {
    border-left: 4px solid var(--gold) !important;
    padding-left: calc(1.5rem - 4px);
}

.pain-card:hover {
    border-left-color: var(--gold-hover) !important;
}

/* =============================================
   Demo 卡片插圖區
============================================= */
.demo-card-img-wrap {
    background-color: var(--bg-slate-50);
    border-bottom: 1px solid var(--border-slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 200px;
    overflow: hidden;
}

.demo-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.25rem;
    transition: transform 0.4s ease;
}

.service-card:hover .demo-card-img {
    transform: scale(1.03);
}

/* =============================================
   三步驟流程 — 含橫向箭頭
============================================= */
.process-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .process-steps-grid {
        /* 步驟、箭頭、步驟、箭頭、步驟 = 3 步驟 + 2 箭頭 */
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 1rem;
    }
}

.process-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.process-arrow svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
}

@media (min-width: 768px) {
    .process-arrow {
        display: flex;
    }
}