body {
    font-family: 'Momo Trust Sans', 'Microsoft JhengHei', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
html {
    margin: 0;
    padding: 0;
}

/* Topnav 高度變量 */
:root {
    --topnav-height: 56px; /* Bootstrap navbar 默認高度 */
}

/* Top Banner Section - Hidden in new design */
.vsys-top-banner {
    display: none;
}

/* Section Container Classes */
.vsys-section-container {
    min-height: 100vh;
}

.vsys-section-container-padding {
    min-height: 100vh;
    padding: 40px 20px;
}

/* Home Section Container */
.vsys-home-container {
    width: 100%;
}

/* ===== New Minimalist Home Hero ===== */
.vsys-home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    padding-top: var(--topnav-height);
}

/* Mesh Gradient Background Layer */
.vsys-hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(107, 114, 128, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(75, 85, 99, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 60% 80%, rgba(107, 114, 128, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(55, 65, 81, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 90% 70%, rgba(31, 41, 55, 0.06) 0%, transparent 50%);
    animation: meshGlowShift 16s ease-in-out infinite alternate;
}

/* Secondary floating orb for depth */
.vsys-hero-glow::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(156, 163, 175, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    animation: meshOrbFloat1 12s ease-in-out infinite alternate;
}

.vsys-hero-glow::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(107, 114, 128, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: meshOrbFloat2 14s ease-in-out infinite alternate-reverse;
}

@keyframes meshGlowShift {
    0% {
        opacity: 1;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.85;
        filter: hue-rotate(8deg);
    }
    100% {
        opacity: 1;
        filter: hue-rotate(-5deg);
    }
}

@keyframes meshOrbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes meshOrbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -25px) scale(1.05); }
}

/* Subtle noise overlay for texture */
.vsys-home-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Hero Content */
.vsys-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 720px;
    padding: 0 24px;
}

/* Hero Header Title */
.vsys-hero-header {
    margin-bottom: 56px;
}

.vsys-hero-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}

/* Product Cards Grid */
.vsys-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Individual Product Card - Glassmorphism */
.vsys-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.vsys-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.06) 0%, rgba(75, 85, 99, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.vsys-product-card:hover {
    border-color: rgba(107, 114, 128, 0.20);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(107, 114, 128, 0.10), 0 4px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.85);
}

.vsys-product-card:hover::before {
    opacity: 1;
}

/* Product Icon */
.vsys-product-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(107, 114, 128, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.vsys-product-card:hover .vsys-product-icon {
    background: rgba(107, 114, 128, 0.10);
    transform: scale(1.05);
}

.vsys-product-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Product Info */
.vsys-product-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.vsys-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.vsys-product-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow */
.vsys-product-arrow {
    font-size: 0.85rem;
    color: #cbd5e1;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.vsys-product-card:hover .vsys-product-arrow {
    color: #6b7280;
    transform: translateX(3px);
}

/* About Section */
.vsys-about {
    padding: 0;
    display: block;
    position: relative;
    width: 100%;
    background: #ffffff;
    color: #1e293b;
    padding-top: var(--topnav-height);
}

/* About Banner */
.vsys-about-banner {
    width: 100%;
    overflow: hidden;
}

.vsys-about-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* About Content */
.vsys-about-content {
    padding: 64px 20px 80px;
}

.vsys-about > .container {
    position: relative;
    z-index: 1;
}

.vsys-slogan {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e293b;
}

.vsys-about-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.vsys-about-logo {
    height: auto;
    max-height: 32px;
    display: block;
}
.vsys-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* About Body Text */
.vsys-about-body {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.vsys-about-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 1.25rem;
}
.vsys-platforms {
    padding: 80px 0;
    background: #f8f9fa;
}
.platform-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.platform-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 20px;
}
.platform-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.platform-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}
.platform-desc {
    color: #64748b;
    font-size: 1rem;
}
.vsys-navbar {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 114, 128, 0.06);
}
@media (max-width: 768px) {
    .vsys-navbar {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.5) inset;
    }
}
/* 桌面端：vsysSidebar 默認隱藏 */
@media (min-width: 992px) {
    #vsysSidebar {
        display: none !important;
    }
    #vsysSidebarOverlay {
        display: none !important;
    }
}
@media (max-width: 991px) {
    .vsys-products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile: single column for product cards */
    .vsys-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .vsys-home-hero {
        min-height: calc(100vh - var(--topnav-height));
        min-height: 100dvh;
        padding-top: var(--topnav-height);
    }
    
    .vsys-hero-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .vsys-hero-header {
        margin-bottom: 40px;
    }
    
    .vsys-hero-title {
        font-size: 1.45rem;
    }
    
    .vsys-product-card {
        padding: 16px 20px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    /* Mobile: 确保 section container 完全居中 */
    .vsys-section-container.container {
        justify-content: center;
        display: flex;
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .vsys-section-container.container .row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .vsys-slogan {
        font-size: 2.5rem;
    }
    .vsys-subtitle {
        font-size: 1.2rem;
    }

    /* About section mobile */
    .vsys-about-banner-img {
        max-height: 240px;
    }
    .vsys-about-content {
        padding: 40px 16px 60px;
    }
    .vsys-about-body p {
        font-size: 0.95rem;
    }

    /* Form page header buttons - smaller on mobile */
    .d-flex.align-items-center.mb-4 > .btn,
    .d-flex.justify-content-between.align-items-center.mb-4 > .btn,
    .d-flex.justify-content-between.align-items-center.mb-4 > div > .btn,
    .d-flex.justify-content-between.align-items-center.mb-3 > div > .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}
