/* 大發進銷存 - 產業落地頁專用通用樣式 (Industry Pages Common CSS) */
:root {
    --df-primary: #0f172a;
    --df-accent: #2563eb;
    --df-accent-glow: rgba(37, 99, 235, 0.2);
    --df-purple: #7c3aed;
    --df-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #7c3aed 100%);
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

#mainNav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 600;
    color: #334155 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
    white-space: nowrap !important;
}

.nav-link:hover {
    color: #2563eb !important;
}

.hero-industry {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5.5rem;
    background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.06) 45%, transparent 70%),
                radial-gradient(circle at 10% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-item a {
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item.active {
    color: #2563EB;
    font-weight: 700;
}

.industry-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pain-solution-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: all 0.25s ease;
}

.pain-solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.btn-modern-primary {
    background: var(--df-gradient);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.55);
    color: #ffffff;
}

.btn-modern-nav-trial {
    background: #2563eb;
    color: #ffffff !important;
    padding: 0.5rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s;
}

.btn-modern-nav-trial:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* 懸浮客服浮動元件 (Floating Contact Widget) */
.floating-contact-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
}

.floating-contact-trigger {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.floating-contact-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.65);
}

.floating-contact-popover {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: 290px;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: none;
    flex-direction: column;
    gap: 10px;
    transform-origin: bottom right;
    animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-contact-popover.active {
    display: flex;
}

.floating-popover-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.floating-popover-item.line-item {
    background: #f0fdf4;
    border: 1px solid rgba(6, 199, 85, 0.2);
    color: #166534;
}

.floating-popover-item.line-item:hover {
    background: #dcfce7;
    transform: translateX(3px);
}

.floating-popover-item.whatsapp-item {
    background: #f0fdf4;
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #15803d;
}

.floating-popover-item.whatsapp-item:hover {
    background: #dcfce7;
    transform: translateX(3px);
}

.floating-popover-item.phone-item {
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #1e40af;
}

.floating-popover-item.phone-item:hover {
    background: #dbeafe;
    transform: translateX(3px);
}

.pulse-indicator {
    width: 9px;
    height: 9px;
    background-color: #06C755;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.7);
    animation: pulseWave 1.8s infinite;
}

@keyframes pulseWave {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(6, 199, 85, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); }
}

.modern-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 0;
    border-top: 1px solid #1e293b;
}

.modern-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.modern-footer a:hover {
    color: #ffffff;
}

/* 跨產業快速切換導航卡 (Cross-industry Switcher Grid) */
.other-industries-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.ind-switch-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.15rem;
    padding: 1.35rem 1rem 1.15rem;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-switch-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.ind-switch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
    text-decoration: none !important;
}

.ind-switch-card:hover::before {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.ind-switch-card.active-industry {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    border-color: #93c5fd;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
}

.ind-switch-card.active-industry::before {
    background: #2563eb;
}

.ind-switch-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ind-switch-card:hover .ind-switch-icon {
    transform: scale(1.12) rotate(3deg);
}

.ind-switch-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.ind-switch-card:hover .ind-switch-title {
    color: #2563eb;
    text-decoration: none !important;
}

.ind-switch-subtitle {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.45;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ind-switch-card:hover .ind-switch-subtitle {
    color: #475569;
    text-decoration: none !important;
}

/* 確保卡片內部任何 a 標籤都不會有下底線干擾 */
a.ind-switch-card, a.ind-switch-card:hover, a.ind-switch-card:focus, a.ind-switch-card * {
    text-decoration: none !important;
}

/* Mockup 樣式微調 */
.mockup-item-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

