html {
    scroll-behavior: smooth;  /* 实现平滑滚动效果 */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}




/* ==========================================================================
   DESKTOP DEFAULT STYLES (For screens wider than 768px)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo sup {
    font-size: 0.7rem;
    vertical-align: top;
    position: relative;
    top: 0.3rem;
    margin-left: 1px;  
}

.nav-icon {
    height: 42px;
    width: auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;        /* Spacing between individual links */
    font-weight: 650;
    
    /* 🌟 MAGIC THING: Forces a minimum 40px gap between logo and the first button */
    margin-left: 40px; 
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-link:hover {
    color: #4a90e2;
    border-bottom: 2px solid #4a90e2;
}

.nav-cta {
    display: inline-block;
    color: white;
    background-color: #1d5fa8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 8px;
}

.nav-cta:hover {
    background-color: #3a7bc8;
}


/* ==========================================================================
   MOBILE STYLES (For screens 768px and smaller)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        padding: 10px 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0; 
    }

    .nav-logo {
        font-size: 1.2rem;
        flex-shrink: 0;
        margin-right: 15px; 
    }
    
    .nav-logo sup {
        font-size: 0.6rem;   /* smaller than desktop's 0.7rem */
        top: 0.15rem;         /* adjust vertical position for smaller logo */
    }
    
    .nav-icon {
        height: 34px;
    }

    .nav-menu {
        flex-grow: 1;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        gap: 20px; 
        padding: 5px 0 5px 25px; /* Pushes menu away from logo on mobile */
        
        /* Reset the desktop minimum distance constraint on mobile layout */
        margin-left: 0; 
        
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
        border-left: 1px solid rgba(0, 0, 0, 0.1); 
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-link, .nav-cta {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .nav-cta {
        padding: 6px 14px;
    }
}



/* ===== Hero 区域 ===== */
.hero {
    background: white;
    color: #1a1a1a;
    padding: 130px 60px 30px;
    display: flex;
    flex-direction: column-reverse; /* Adds this: Reverses the order so the image goes on top */
    align-items: center;
    justify-content: center; /* Changed from space-between to center */
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.hero-text {
    flex: 1.5;
    text-align: left;
}

.hero-text h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.4rem;   /* larger than the default ~1rem body text */
    font-weight: 500;
}

.hero-media {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-gif {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 00px;
}


/* ===== 主要内容区 ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px;
}

/* ===== 每个 section 的样式 ===== */
.section {
    background: white;
    padding: 50px 60px;
    margin: 30px auto;   /* was "30px 0" — auto centers it left/right */
    max-width: 1100px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    scroll-margin-top: 90px;
    box-sizing: border-box;
}

.section h2 {
    color: #1a1a1a;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.4rem;
}

.section p {
    font-size: 1.2rem;
    color: #1a1a1a;
}

.bold-RTP {
    font-weight: 650;
}

.section p.no-bold-first::first-letter {
    font-weight: normal;
}

.section-img {
    display: block;
    max-width: 65%;
    height: auto;
    margin: 20px auto 50px;
    border-radius: 20px;
}
/* ===== software image ===== */
.sw-img {
    display: block;
    max-width: 90%;
    height: auto;
    margin: 40px auto 50px;
    border-radius: 40px;
}

.section-video {
    display: block;
    max-width: 85%;
    height: auto;
    margin: 60px auto 50px;
    border-radius: 8px;
}


/* ===== 页脚 ===== */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 1.0rem;
    background-color: white;
    margin-top: 20px;
}

/* Style the TM symbol specifically inside the footer */
footer p sup {
    font-size: 0.6em;         /* Keeps it proportionally small inside the footer text */
    vertical-align: top;
    position: relative;
    top: 0.1rem;              /* Adjusts the height slightly to align with footer line height */
    margin-left: 1px;         /* Keeps the clean spacing away from the C */
}


/* Apply Arial to the entire form container and everything inside it */
.contact-form {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;   /* Stacks the label on top of the input box */
    align-items: flex-start;  /* Forces the label and box to align nicely to the left edge */
}

/* 1. Scale up the main field labels (Name, Email, etc.) */
.form-group label {
    font-size: 1.2rem;       
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;           
}

/* 2. Scale up the helper description text under Research Area */
.form-group small {
    font-size: 1.0rem !important; 
    color: #666;
    margin-bottom: 8px;
    font-family: Arial, Helvetica, sans-serif; /* Explicit fallback for small tags */
}

/* 3. Scale up the text inside the input fields and text box */

.form-group input, 
.form-group textarea {
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 1.2rem;       
    padding: 12px;         
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;           
    box-sizing: border-box; 
}

/* 3b. Apply resizing rules ONLY to the multi-line message box */
.form-group textarea {
    resize: vertical;       /* Locks width, allows vertical stretch */
    min-height: 150px;      /* Gives them a good starting box size */
    max-height: 400px;      /* Stops it from stretching too far down */
}

/* 4. Scale up the text inside your action buttons */
.form-buttons button {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 14px 20px;   /* wider */
    cursor: pointer;
}

/* Ruls for Contents */
.applications-grid {
    display: grid;
    /* Automatically creates a 2x2 layout on desktop, or 1 column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 0px 10px;       /* 40px spacing between rows, 50px between columns */
    width: 100%;
    box-sizing: border-box;
}

.product-list-wrapper {
    display: flex;
    justify-content: center;  /* Center the whole list block */
}

.product-list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 50px;   /* Horizontal spacing */
    row-gap: 10px;          /* Vertical spacing */
    margin-top: 0px;
    font-size: 1.2rem;
}

.content-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

.features-container {
    display: flex;
    justify-content: space-between;
    align-items: center;      /* Center image vertically with text */
    gap: 40px;
}

.features-text {
    flex: 1;
}

.features-image {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Keep image on the right */
    align-items: center;       /* Center image vertically */
}

.features-image img {
    width: 75%;
    height: auto;
    margin-right: 60px;
}

.why-answers {
    width: fit-content;     /* Make the list only as wide as its content */
    margin: 0 auto;         /* Center the whole list block */
    text-align: left;       /* Keep check marks aligned left */
}

.why-answers p {
    margin: 5px 0;
}


/* Keep your original desktop CSS exactly as it is, then add this at the bottom: */

@media (max-width: 768px) {
    .features-container {
        flex-direction: column;   /* Stack text and image vertically */
        gap: 20px;                /* Reduce the gap slightly for mobile screens */
    }

    .features-image {
        justify-content: center;  /* Center the image on mobile instead of sticking to the right */
    }

    .features-image img {
        width: 75%;              /* Let the image fill up to 100% of its container's width */
        max-width: 400px;         /* Prevents the image from getting too massive on larger phones */
        margin-right: 0;          /* Remove the desktop right margin so it stays centered */
    }
}


.downloads-main {
    padding-top: 80px;  /* Adjust this value as needed */
}