html,
body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
    overflow-x:hidden;
    font-family:Arial,sans-serif;
    color:white;
    background-color:black;
}

body{
    background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)),
url("../html/Image/back2-1.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;
}

.logo {
    position: fixed;
    top: 30px;  
    left: 40px; 
    z-index: 1000;
    transition: top 0.4s ease;
}

.logo img {
    width: 80px; 
    height: auto;
}

.navbar {
    position: fixed;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    padding: 6px 10px; 
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: top 0.4s ease;
}

.menu {
    display: flex;
    gap: 10px;  
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    padding: 10px 18px;  
    border-radius: 40px;
    position: relative; 
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 40px; 
}

.menu a:hover::before {
    opacity: 0.7; 
}

.menu .active {
    font-size: 15px;
    background: #B0B0B0;
    color: black;
    transform: scale(1.17);
}

* {
    box-sizing: border-box;
}

.service-page {
    width: 100%;
    padding: 20px 20px 40px;
}

.glass-card {
    display: block;
    width: 1020px;
    text-decoration: none;
    color: white;
    border-radius: 40px;
    padding: 18px 18px 20px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255,255,255,0.18);

    transition:
        transform 1s ease,
        opacity 1s ease,
        box-shadow 0.35s ease;

    opacity: 0;
}

/* 左边滑入 */
.slide-left {
    transform: translateX(-150px);
}

/* 右边滑入 */
.slide-right {
    transform: translateX(150px);
}

/* 出现 */
.glass-card.show {
    opacity: 1;
    transform: translateX(0);
}

.glass-card:hover {
    transform: translateY(-4px);
}

.glass-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 26px;
}

.glass-card-large .glass-image-wrap {
    height: 395px;
}

.glass-card-small .glass-image-wrap {
    height: 350px;
}

.glass-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-overlay h3 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
}

.glass-overlay p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 520px;
    color: rgba(255,255,255,0.92);
}

.glass-card:hover .glass-image-wrap img {
    transform: scale(1.04);
    filter: brightness(0.5);
}

.glass-card:hover .glass-overlay {
    opacity: 1;
}

.glass-content {
    padding: 18px 4px 4px;
}

.glass-content-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 28px;
}

.glass-content-1 {
    display: block;
}

.info-block h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.info-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
}

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

.footer {
    padding: 60px 40px 20px;
    background: black;
    z-index: 5;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section {
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.footer-logo { width: 19%; }
.footer-location { width: 30%; }
.footer-contact { width: 20%; }
.footer-social { width: 17%; }

.footer-logo img {
    width: 200px;
    cursor: pointer;
}

.footer-location h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-location p {
    line-height: 1.3;
    font-size: 13px;
}

.map-links a {
    color: #ccc;
    text-decoration: none;
}

.map-links a:hover {
    color: red;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 13px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: 0.3s;
}

.social-icons img {
    width: 28px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.social-icons a:hover img {
    filter: grayscale(0%);
}

.social-icons a:hover {
    color: #00ffcc;
}

.footer-location,
.footer-contact {
    position: relative;
}

.footer-location::after,
.footer-contact::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
}

.footer-bottom hr {
    border: 0;
    border-top: 1px solid #444;
    margin-bottom: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: #aaa;
}

@media (max-width: 1024px) {
    .navbar {
        right: 25px;
        max-width: calc(100vw - 140px);
    }

    .glass-card {
        width: 90%;
    }

    .footer{
        padding:60px 30px 20px;
    }

    .footer-container{
        flex-wrap:wrap;
        justify-content:center;
        gap:40px;
    }

    .footer-section{
        width:40% !important;
        padding:0;
    }

    .footer-location::after,
    .footer-contact::after{
        display:none;
    }

    .social-icons{
        align-items:center;
    }
}

@media (max-width: 768px) {

    body {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
    }

    .logo {
        top: 16px;
        left: 16px;
    }

    .logo img {
        width: 56px;
    }

    .navbar {
        top: 16px;
        left: 82px;
        right: 14px;
        padding: 8px 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .navbar::-webkit-scrollbar {
        display: none;
    }

    .menu {
        display: flex;
        gap: 8px;
        white-space: nowrap;
    }

    .menu a {
        flex-shrink: 0;
        font-size: 11px;
        padding: 8px 12px;
        text-align: center;
    }

    .menu .active {
        transform: scale(1.03);
    }

    .service-page {
        padding: 125px 16px 60px;
    }

    .glass-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 36px !important;
        border-radius: 26px;
        padding: 14px 14px 18px;
    }

    .glass-card-large .glass-image-wrap,
    .glass-card-small .glass-image-wrap {
        height: 220px;
        border-radius: 20px;
    }

    .glass-content-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .glass-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.35);
    }

    .glass-overlay h3 {
        font-size: 22px;
    }

    .glass-overlay p {
        font-size: 14px;
    }

    .footer{
        padding:50px 22px 20px;
    }

    .footer-container{
        flex-direction:column;
        align-items:center;
        gap:35px;
    }

    .footer-section{
        width:100% !important;
        padding:0;
    }

    .footer-logo img{
        width:140px;
    }

    .footer-location::after,
    .footer-contact::after{
        display:none;
    }

    .footer-location h3,
    .footer-contact h3,
    .footer-social h3{
        font-size:14px;
    }

    .footer-location p,
    .footer-contact p{
        font-size:12px;
        line-height:1.6;
    }

    .social-icons{
        align-items:center;
    }

    .social-icons a{
        font-size:13px;
    }

    .social-icons img{
        width:24px;
    }

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

    .footer-bottom p{
        font-size:12px;
    }
}