/* ===== Global box model reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;  /* let width and height include padding and border */
}

/*** header -- START ***/

.site-header {
    background: #e4fafd;      
    padding: 10px 20px;      /* vertical horizontal */
}

.brand {
    display: flex;            /* align the logo and title */
    align-items: center;      /* align vertical center of logo and title*/
    gap: 12px;                /* the gap between logo and title */
}
  
.company-logo {
    height: 4.5em;
    width: auto;
}
  
.company-name {
    margin: 0;                /* delete the default margin of h1 */
    font-family: 'Lugrasimo', 'STKaiti', 'KaiTi', serif;
    font-size: 40px;          /* title's size */
    font-weight: bold;
    color: #111;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    line-height: 1.0;         /* vertical padding between content and others */
}
  
/*** header -- END ***/


/*** navigator -- START ***/

nav {
    overflow-x: auto;
}

nav ul {
    list-style-type: none;   /* delete the black dot of list */
    margin: 0;               /* delete the ul default margin and padding */
    padding: 0;
    background-color: #a4dfff;
    display: flex;           /* make the navigator horizontal */
    min-width: max-content;
}

nav ul li {
    flex: 0 0 auto;
}

/* primary links (words) */
nav ul li a {
    display: block;          /* make links from inline text to padding block, easy to click on */
    color: rgb(52, 52, 52); 
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;  /* delete the underline of text */
    font-size: 18px; 
}

/* the background color while hovering the mouse */
nav ul li a:hover {
    background-color: rgb(139, 143, 254);
}

/* secondary drop-down menu -- legacy system */
/* nav ul li ul {
    display: none;
    position: absolute;
    background-color: bisque;
    color: steelblue;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    float: none;
}    /* the dropdown menu would defaultly heritage father-elements' style, delete it to make it vetical */

/*** navigator -- END ***/


/*** intro-animation -- START ***/

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

#intro-screen {
    display: flex;                /* easy to align inside content */
    flex-direction: column;       /* place elements vertically, h1 is above of p */
    justify-content: center;      /* vertically center-aligned */
    align-items: center;          /* horizontally center-aligned */

    position: fixed;
    inset: 0;                     /* full screen */

    background-color: #000;     /* background color when failed loading image */
    color: #fff;
    z-index: 1000;                /* Ensure it covers everything */
    text-align: center;
    overflow: hidden;
}

#intro-image {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* Ensure image covers the screen */
    position: absolute;
    inset: 0;
    z-index: -2;                  /* Ensure image is the bottom layer */
}

#intro-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;                   /* dark overlay is on top of image */
    background: rgba(0, 0, 0, 0.3); 
}

#intro-card {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: min(92vw, 1000px);      /* responsive design for mobile */

    padding: 28px 36px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);  /* for IOS compatibility design */

    animation: introFadeUp 600ms  ease-out both;
}

#intro-brand {
    margin: 0 0 14px 0;            /* top right bottom left */
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.15;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);   /* hor ver blur-radius */
}

#intro-service {
    margin: 0;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#intro-hint {
    margin-top: 18px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.0.75);
    letter-spacing: 0.5px;
}

/* Keyframes for bounce animation */
@keyframes introFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/*** intro-animation -- END ***/


/*** body -- START ***/

body {
	background-color: rgb(255, 255, 255);
}

/*** about section -- START ***/
.about-section {
    padding: 40px 60px;
    text-align: center;
    background-color: #f7fbfc;
}
  
.about-section h2 {
    margin: 0 0 28px;
    font-size: 32px;
    color: #111;
}
  
.about-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
  
.about-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}
  
.about-btn.active,
.about-btn:hover {
    background-color: #0074b9;
    color: #fff;
}
  
.about-slider-wrapper {
    position: relative;
    width: min(100%, 125vh, 1280px);
    margin: 0 auto;
    overflow: hidden;
}
  
.about-slider {
    display: flex;
    transition: transform 0.5s ease;
}
  
.about-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
}
  
/* 图片自适应 */
.about-slide img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
  
/* 左右箭头 */
.slider-arrow-left,
.slider-arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}
  
.slider-arrow-left { left: 0; }
.slider-arrow-right { right: 0; }
  
/* 底部点 */
.about-dots {
    margin-top: 2px;
}
  
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #0074b9;
    margin: 0 6px;
    cursor: pointer;
}
  
.dot.active {
    background-color: #0074b9;
}

/*** services section -- END ***/

/*** services section -- START ***/

.services-section {
    padding: 48px 60px 64px;
    text-align: center;
}

.services-section h2 {
    margin: 0 0 28px;
    font-size: 32px;
    color: #111;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    aspect-ratio: 16 / 6.3;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background-color: #555;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.service-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.34);
    transition: background 220ms ease;
}

.service-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 86%;
    transform: translateY(18px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: transform 220ms ease;
}

.service-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.service-title-en {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}

.service-subtypes {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.is-active {
    transform: scale(1.025);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.service-card:hover .service-bg,
.service-card:focus-visible .service-bg,
.service-card.is-active .service-bg {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.service-card:hover .service-overlay,
.service-card:focus-visible .service-overlay,
.service-card.is-active .service-overlay {
    background: rgba(0, 0, 0, 0.48);
}

.service-card:hover .service-content,
.service-card:focus-visible .service-content,
.service-card.is-active .service-content {
    transform: translateY(-8px);
}

.service-card:hover .service-subtypes,
.service-card:focus-visible .service-subtypes,
.service-card.is-active .service-subtypes {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .service-content {
        transform: translateY(0);
    }

    .service-subtypes {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 820px) {
    .services-section {
        padding: 40px 20px 52px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        min-height: 210px;
        aspect-ratio: 16 / 8;
    }

    .service-title {
        font-size: 28px;
    }

    .service-title-en {
        font-size: 18px;
    }
}

/*** services section -- END ***/

/*** service detail page -- START ***/

.service-detail-page {
    background-color: #f7fbfc;
    padding: 42px 60px 64px;
}

.service-detail-hero {
    max-width: 1180px;
    margin: 0 auto 34px;
    text-align: center;
}

.service-detail-hero h2 {
    margin: 0 0 14px;
    font-size: 34px;
    color: #111;
}

.service-detail-hero p {
    max-width: 860px;
    margin: 0 auto;
    color: #4b5b66;
    font-size: 17px;
    line-height: 1.8;
}

.service-detail-section {
    max-width: 1180px;
    margin: 0 auto 36px;
    scroll-margin-top: 24px;
    border: 1px solid #cfe5ef;
    border-left: 6px solid #0074b9;
    background-color: #fff;
    box-shadow: 0 10px 24px rgba(0, 74, 120, 0.08);
}

.service-detail-section > h2 {
    margin: 0;
    padding: 18px 24px;
    color: #0c3b5f;
    font-size: 26px;
    line-height: 1.35;
    background-color: #e4fafd;
    border-bottom: 1px solid #cfe5ef;
}

.service-detail-table {
    display: grid;
}

.service-detail-row {
    display: grid;
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    min-height: 210px;
    border-bottom: 1px solid #d8e7ee;
}

.service-detail-row:last-child {
    border-bottom: 0;
}

.service-detail-media {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-right: 1px solid #d8e7ee;
    background-color: #fff;
}

.service-detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 28px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 200ms ease, transform 200ms ease;
}

.service-detail-media span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.52);
    background: rgba(0, 74, 120, 0.58);
    transition: opacity 200ms ease;
}

.service-detail-media:hover img,
.service-detail-media:focus-within img {
    opacity: 0.7;
    transform: scale(1.02);
    filter: blur(3px);
}

.service-detail-media:hover span,
.service-detail-media:focus-within span {
    opacity: 1;
}

.service-detail-copy {
    padding: 26px 30px;
}

.service-detail-copy h3 {
    margin: 0 0 12px;
    color: #0c3b5f;
    font-size: 24px;
    line-height: 1.35;
}

.service-detail-copy p {
    margin: 0 0 10px;
    color: #222;
    font-size: 17px;
    line-height: 1.9;
    text-indent: 2em;
}

.service-detail-copy p:last-child {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .service-detail-page {
        padding: 34px 20px 48px;
    }

    .service-detail-section {
        margin-bottom: 28px;
    }

    .service-detail-section > h2 {
        padding: 16px 18px;
        font-size: 23px;
    }

    .service-detail-row {
        grid-template-columns: 1fr;
    }

    .service-detail-media {
        min-height: 180px;
        border-right: 0;
        border-bottom: 1px solid #d8e7ee;
    }

    .service-detail-media span {
        font-size: 26px;
    }

    .service-detail-copy {
        padding: 22px 20px;
    }

    .service-detail-copy h3 {
        font-size: 22px;
    }

    .service-detail-copy p {
        font-size: 16px;
        line-height: 1.75;
    }
}

/*** service detail page -- END ***/

/*** contact section -- START ***/

.contact-section {
    padding: 48px 60px 64px;
    background-color: #f7fbfc;
}

.contact-section h2 {
    margin: 0 0 28px;
    text-align: center;
    font-size: 32px;
    color: #111;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 32px 40px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-addresses,
.contact-info,
.contact-wechat {
    min-width: 0;
}

.contact-addresses h3,
.contact-info h3,
.contact-wechat h3 {
    margin: 0 0 16px;
    font-size: 22px;
    color: #0c3b5f;
}

.contact-address {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #d8e7ee;
    border-left: 4px solid transparent;
    background-color: #fff;
    color: #1d1d1d;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.contact-address:hover,
.contact-address:focus-visible,
.contact-address.active {
    border-color: #8fcce8;
    border-left-color: #0074b9;
    background-color: #eef8fc;
    transform: translateX(4px);
}

.contact-office {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.contact-location {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.contact-map-panel {
    min-height: 390px;
    overflow: hidden;
    border: 1px solid #d8e7ee;
    background-color: #eef3f5;
}

.contact-map-panel iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    border: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
}

.contact-info a {
    width: fit-content;
    margin-bottom: 10px;
    color: #0b6090;
    font-size: 18px;
    line-height: 1.45;
    text-decoration: none;
}

.contact-info a:hover {
    color: #0074b9;
    text-decoration: underline;
}

.contact-info h3:not(:first-child) {
    margin-top: 22px;
}

.contact-wechat {
    padding: 24px 0;
}

.wechat-codes {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.wechat-codes img {
    width: min(42%, 220px);
    min-width: 160px;
    height: auto;
    border: 1px solid #d8e7ee;
    background-color: #fff;
}

@media (max-width: 860px) {
    .contact-section {
        padding: 40px 20px 52px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-map-panel,
    .contact-map-panel iframe {
        min-height: 320px;
    }

    .contact-info,
    .contact-wechat {
        padding: 0;
    }
}

/*** contact section -- END ***/

/*** body -- END ***/

/*** quick contact -- START ***/

.quick-contact {
    position: fixed;
    right: 20px;
    bottom: 96px;
    z-index: 900;
    display: grid;
    grid-template-rows: auto repeat(3, 78px);
    width: 78px;
    border: 1px solid rgba(70, 130, 180, 0.18);
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 55, 90, 0.14);
}

.quick-contact-title {
    margin: 0;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(70, 130, 180, 0.14);
    background-color: #e4fafd;
    color: steelblue;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.quick-contact-item {
    position: relative;
    display: block;
    width: 78px;
    height: 78px;
    border-bottom: 1px solid rgba(70, 130, 180, 0.14);
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.quick-contact-item:last-child {
    border-bottom: 0;
}

.quick-contact-item:hover,
.quick-contact-item:focus-visible {
    background-color: #eef8fc;
    box-shadow: inset 0 0 0 2px rgba(0, 116, 185, 0.2);
}

.quick-contact-wechat {
    background-image: url("../assets/wechat_icon.jpg");
}

.quick-contact-tel {
    background-image: url("../assets/tel_icon.jpg");
}

.quick-contact-email {
    background-image: url("../assets/email_icon.JPG");
}

.quick-contact-bubble {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);
    opacity: 0;
    visibility: hidden;
    transform: translate(10px, -50%);
    border: 1px solid rgba(70, 130, 180, 0.2);
    background-color: #fff;
    box-shadow: 0 10px 28px rgba(0, 55, 90, 0.16);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.quick-contact-bubble::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 14px;
    height: 14px;
    border-top: 1px solid rgba(70, 130, 180, 0.2);
    border-right: 1px solid rgba(70, 130, 180, 0.2);
    background-color: #fff;
    transform: translate(-7px, -50%) rotate(45deg);
}

.quick-contact-item:hover .quick-contact-bubble,
.quick-contact-item:focus-visible .quick-contact-bubble {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.quick-contact-qr {
    width: 196px;
    padding: 12px;
}

.quick-contact-qr img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

.quick-contact-text {
    z-index: 1;
    min-width: max-content;
    padding: 14px 18px;
    color: #0c3b5f;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .quick-contact {
        right: 12px;
        bottom: 18px;
        grid-template-rows: auto repeat(3, 58px);
        width: 58px;
    }

    .quick-contact-title {
        padding: 8px 3px;
        font-size: 12px;
    }

    .quick-contact-item {
        width: 58px;
        height: 58px;
    }

    .quick-contact-qr {
        width: 150px;
    }

    .quick-contact-text {
        padding: 11px 13px;
        font-size: 13px;
    }
}

/*** quick contact -- END ***/


/*** footer -- START ***/

footer {
    background-color: #e4fafd; 
    color: steelblue; 
    padding: 28px 48px 18px; 
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
    gap: 36px;
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
}

.footer-links {
    display: grid;
    grid-template-columns: minmax(120px, 0.75fr) minmax(260px, 1.25fr);
    gap: 28px;
}

.footer-column,
.footer-contact {
    min-width: 0;
}

.footer-column h3,
.footer-contact h3 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.3;
    color: steelblue;
}

.footer-column a,
.footer-contact a,
.footer-contact p {
    color: steelblue;
    font-size: 14px;
    line-height: 1.55;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin-bottom: 6px;
    text-decoration: none;
}

.footer-column:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    column-gap: 20px;
    align-content: start;
}

.footer-column:nth-child(2) h3 {
    grid-column: 1 / -1;
}

.footer-contact p {
    margin: 0 0 8px;
}

.footer-column a:hover,
.footer-contact a:hover {
    color: #0074b9;
    text-decoration: underline;
}

.footer-divider {
    width: 100%;
    height: 1px;
    margin: 14px 0;
    background-color: rgba(70, 130, 180, 0.25);
}

.footer-copyright {
    max-width: 1080px;
    margin: 20px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(70, 130, 180, 0.18);
    color: steelblue;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 820px) {
    footer {
        padding: 28px 20px 18px;
    }

    .footer-inner,
    .footer-links {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-column:nth-child(2) {
        grid-template-columns: 1fr;
    }
}


/* footer -- END */
