@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root{
    --maincolor: #1a5f7a;
    --secondcolor: #f4a261;
    --thirdcolor: #e76f51;
    --textcolor: #2d3e50;
    --lightbg: #f8f9fa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #1a5f7a 0%, #2a8b9e 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

*{
    margin:0; 
    padding:0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body{
    font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--textcolor);
    background-color: var(--white);
}

/* SEO Friendly: Proper heading hierarchy */
h1 {
    font-size: 4.8rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

h2 {
    font-size: 3.6rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

/* Custom Scrollbar -不影响SEO */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lightbg);
}

::-webkit-scrollbar-thumb {
    background: var(--maincolor);
    border-radius: 4px;
}

/* Header - SEO friendly navigation */
header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 7%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Logo with proper semantic meaning */
.logo h1, .logo h3 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation - semantic nav element */
.navbar a{
    color: var(--textcolor);
    font-size: 1.5rem;
    margin: 0 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a:focus {
    color: var(--maincolor);
    outline: none;
}

/* Mobile menu */
#menu-bars{
    color: var(--textcolor);
    font-size: 2.5rem;
    cursor: pointer;
    display: none;
}

/* CTA Button */
.right-icons .btn{
    padding: 1.2rem 2.5rem;
    font-size: 1.4rem;
    background: var(--gradient);
    color: white;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.right-icons .btn:hover,
.right-icons .btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
    outline: none;
}

/* Hero Section - SEO important above fold */
.main-home{
    padding: 12rem 7% 6rem;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e8f0 100%);
    min-height: 100vh;
}

.home{
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.home .home-left-content{
    flex: 1 1 45rem;
}

.home-left-content span{
    font-size: 1.4rem;
    color: var(--maincolor);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
}

.home-left-content h2{
    font-size: 5rem;
    margin: 1.5rem 0;
    line-height: 1.2;
}

.home-left-content p{
    font-size: 1.6rem;
    line-height: 1.7;
    margin: 2rem 0;
}

/* Buttons - accessible */
.home-btn{
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-btn a{
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient);
    font-size: 1.5rem;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.homebtnsec{
    background: transparent !important;
    color: var(--maincolor) !important;
    border: 2px solid var(--maincolor) !important;
}

.homebtnsec:hover,
.homebtnsec:focus {
    background: var(--maincolor) !important;
    color: white !important;
}

.home .home-right-content{
    flex: 1 1 45rem;
    text-align: center;
}

.home .home-right-content img{
    width: 100%;
    max-width: 500px;
    height: auto;
    /* 图片优化 - SEO友好 */
}

/* Features Section */
.technology{
    padding: 5rem 7%;
}

.main-technology{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: -60px;
}

.inner-technology{
    flex: 1 1 280px;
    padding: 3rem;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.inner-technology:hover{
    transform: translateY(-5px);
}

.inner-technology i{
    font-size: 4rem;
    color: var(--maincolor);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.inner-technology h3{
    font-size: 2rem;
    margin: 1rem 0;
}

.inner-technology p{
    font-size: 1.4rem;
    line-height: 1.6;
    color: #666;
}

/* About Section - rich content SEO */
.main-about{
    padding: 6rem 7%;
    background: var(--lightbg);
}

.about-heading h2{
    text-align: center;
    font-size: 3.6rem;
    color: var(--maincolor);
    margin-bottom: 4rem;
}

.inner-main-about{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
}

.about-inner-content-left{
    flex: 1 1 40rem;
    text-align: center;
}

.about-inner-content-left img{
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-inner-content{
    flex: 1 1 45rem;
}

.about-right-content h3{
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.about-right-content p{
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.aboutbtn{
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--maincolor);
    font-size: 1.5rem;
    border-radius: 50px;
    color: var(--maincolor);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aboutbtn:hover,
.aboutbtn:focus {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* Services Section */
.our-service{
    padding: 6rem 7%;
}

.service-heading h2{
    text-align: center;
    font-size: 3.6rem;
    color: var(--maincolor);
    margin-bottom: 4rem;
}

.main-services{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.inner-services{
    flex: 1 1 280px;
    padding: 3rem 2rem;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.inner-services:hover{
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon{
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(26, 95, 122, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i{
    font-size: 3rem;
    color: var(--maincolor);
}

.inner-services h3{
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
}

.inner-services p{
    font-size: 1.4rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.inner-services button{
    background: var(--gradient);
    color: white;
    font-size: 1.3rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease;
}

.inner-services button:hover {
    transform: scale(1.05);
}

.inner-services button a {
    color: white;
    text-decoration: none;
}

/* Reviews Section - social proof SEO */
.main-review{
    padding: 6rem 7%;
    background: var(--lightbg);
}

.review-heading h2{
    text-align: center;
    font-size: 3.6rem;
    color: var(--maincolor);
    margin-bottom: 4rem;
}

.review-inner-content{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.review-box{
    flex: 1 1 300px;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.review-box:hover{
    transform: translateY(-5px);
}

.review-box img{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.review-stars{
    margin: 1rem 0;
}

.review-stars i{
    font-size: 1.6rem;
    color: var(--secondcolor);
}

.review-box h3{
    font-size: 1.8rem;
    margin: 1rem 0;
}

.review-box p{
    font-size: 1.4rem;
    line-height: 1.6;
    color: #666;
}

/* Footer - important for SEO */
.main-footer{
    padding: 5rem 7% 3rem;
    background: #1a2a3a;
}

.footer-inner{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-content{
    flex: 1 1 200px;
}

.footer-content h4{
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-content .link{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content .link a{
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-content .link a:hover,
.footer-content .link a:focus {
    color: var(--secondcolor);
    transform: translateX(5px);
}

/* Accessibility - skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--maincolor);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1001;
}

.skip-to-content:focus {
    top: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }
    
    header {
        padding: 1.5rem 4%;
    }
    
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
}

@media (max-width: 768px) {
    #menu-bars {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: white;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar a {
        display: block;
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
    }
    
    .navbar a:hover {
        background: var(--lightbg);
    }
    
    .home-left-content h2 {
        font-size: 3.5rem;
    }
    
    .main-technology {
        margin-top: 2rem;
    }
    
    .about-right-content h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    .home-left-content h2 {
        font-size: 2.8rem;
    }
    
    .home-btn {
        flex-direction: column;
    }
    
    .home-btn a {
        width: 100%;
        text-align: center;
    }
    
    .service-heading h2,
    .review-heading h2,
    .about-heading h2 {
        font-size: 2.8rem;
    }
}

/* Print styles - SEO friendly for printing */
@media print {
    header, .main-footer, .home-btn, .aboutbtn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}