:root {
    --primary-color: #008ba3; /* Medical Teal/Blue */
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --accent-color: #ff8a8a; /* Softer Rose Red */
    --nav-height: 70px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

header.scrolled .logo {
    font-size: 20px;
}

header.scrolled .logo img {
    height: 32px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Products Section Layout (Desktop: Left Title, Right Content) */
.section {
    padding: 100px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.section-title-wrapper {
    flex: 0 0 25%; /* Desktop: 25% width */
    padding-right: 40px;
}

.section-content-wrapper {
    flex: 0 0 75%; /* Desktop: 75% width */
}

.section-title {
    text-align: left;
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    color: var(--primary-color);
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px 0 0; /* Left align underline */
}

/* Image Placeholders */
.product-img-placeholder {
    height: 240px;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 18px;
    border-radius: 12px;
    margin: 20px; 
    border: 2px dashed #e9ecef;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 10px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    text-align: center;
    padding-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.product-info {
    padding: 0 20px 20px;
}

.product-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 22px;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px; /* Increased from 15px */
    line-height: 1.6;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #e0f2f1 0%, #ffffff 100%);
    color: #2c3e50;
    padding: 100px 20px;
    text-align: center;
    margin-top: var(--nav-height);
}

.page-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-banner p {
    font-size: 22px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    padding: 20px;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: #cccccc;
    margin: 0 20px;
    font-size: 16px;
    transition: 0.3s;
}

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

.copyright {
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

.icp-info {
    color: #666;
    font-size: 12px;
    margin-top: 10px;
}

/* Utility Classes */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.w-100 { width: 100%; }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Enhanced Hero for Product Pages */
.product-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-hero-text h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ff8a8a, #ff9a9e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-hero-text p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-image-mockup {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

/* Feature Detail Section */
.feature-detail {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.feature-detail:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-detail-img {
    flex: 1;
    height: 350px;
    background: #f8f9fa;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.feature-detail-text {
    flex: 1;
}

.feature-detail-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 40px; /* Further increased horizontal padding */
    }

    .page-content-container {
        padding: 60px 40px; /* Further increased horizontal padding */
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background-color: #f9f9f9;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }

    .product-hero {
        padding: 100px 0 60px;
    }

    .product-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .product-hero-text h1 {
        font-size: 36px;
    }

    .hero-image-mockup {
        height: 300px;
    }

    .section {
        padding: 60px 0;
    }

    .section-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-title-wrapper {
        flex: 0 0 100%;
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .section-content-wrapper {
        flex: 0 0 100%;
        width: 100%;
    }

    .section-title {
        text-align: center;
        font-size: 28px;
    }

    .section-title::after {
        margin: 15px auto 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .feature-detail {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .feature-detail-img {
        width: 100%;
        height: 250px;
    }

    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }

    .workflow-step {
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
    }

    .workflow-step:last-child {
        margin-bottom: 0;
    }

    .page-banner {
        padding: 80px 20px;
    }
    
    .page-banner h1 {
        font-size: 32px;
    }
    
    .page-banner p {
        font-size: 16px;
    }

    .btn, .btn-outline {
        display: block;
        margin: 10px auto !important;
        width: 100%;
        max-width: 280px;
    }
}
