:root {
    --primary-color: #2C3E50;    /* 深藍灰色 */
    --secondary-color: #3498DB;  /* 亮藍色 */
    --accent-color: #E74C3C;     /* 紅色點綴 */
    --text-color: #2C3E50;       /* 深色文字 */
    --light-gray: #ECF0F1;       /* 淺灰色 */
    --white: #ffffff;
    --light-blue: #F5F9FC;       /* 更淡的藍色背景 */
    --font-primary: 'Inter', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
    --font-secondary: 'Inter', 'Noto Serif SC', 'Noto Serif TC', 'Noto Serif JP', 'Noto Serif KR', serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-flag {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lang-flag:hover, .lang-flag:focus {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
    background: var(--light-blue);
}

.lang-flag.active {
    border: 2.5px solid var(--secondary-color);
    background: var(--light-blue);
    box-shadow: 0 0 12px var(--secondary-color);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navigation */
.main-nav {
    background-color: #22334a;
    padding: 0.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;  /* 保持原有的 z-index */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Nav Actions (右側功能區) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hero Section */
.hero.section-hero, .hero.section-hero * {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.10);
}
.hero-content h1, .hero-content p, .hero-content a {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.10);
}

.hero.section-hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../assets/images/banner.png') center/cover no-repeat;
    min-height: 640px;
    height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding: 3.5rem 2rem 3.5rem 2rem;
    background: rgba(20,30,40,0.32);
    border-radius: 18px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: none;
    backdrop-filter: blur(0.5px);
}

.hero-content h1 {
    font-size: 2.7rem;
    margin-bottom: 2.2rem;
    font-family: var(--font-secondary);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #22334a;
}

.hero-content p {
    font-size: 1.18rem;
    margin-bottom: 3.2rem;
    font-family: var(--font-primary);
    color: #2c3e50;
}

.hero-content .cta-button {
    background: #3a4a5d;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2.2rem;
    border-radius: 6px;
    transition: background 0.22s, box-shadow 0.22s;
    margin-top: auto;
    margin-bottom: 0;
}

.hero-content .cta-button:hover {
    background: #22334a;
    color: #fff;
    box-shadow: 0 4px 16px rgba(44,62,80,0.16);
}

/* Services Section */
.services-overview {
    padding: 4.5rem 0 4.5rem 0;
    background: var(--light-blue);
}

.services-overview h2 {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 2.1rem;
    color: #22334a;
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2.5rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.18s, border 0.18s;
    box-shadow: 0 2px 10px rgba(44,62,80,0.07);
    border: 1.5px solid #e3eaf3;
}

.service-card:hover {
    box-shadow: 0 6px 24px 0 rgba(44,62,80,0.13);
    border: 1.5px solid var(--secondary-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    font-family: var(--font-primary);
    color: var(--text-color);
    font-size: 1.08rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
}

.footer-section p, .footer-bottom {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--text-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        padding: 0.5rem 1rem;
        min-height: 0;
        height: auto;
    }
    .logo {
        gap: 0.5rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
    .mobile-menu-btn {
        display: flex !important;
        margin-left: 0.5rem;
    }
    .nav-links,
    .nav-links.active,
    .nav-links li,
    .nav-links a {
        background: #22334a !important;
        color: #fff !important;
    }
    .nav-links {
        min-height: 100vh;
        height: 100vh;
        width: 100vw;
        left: 0;
        right: 0;
        top: 0;
        position: fixed;
        z-index: 2000;
        display: none;
        flex-direction: column;
        padding: 2.5rem 0.5rem 1.5rem 0.5rem;
        box-shadow: none;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.15rem;
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid #2c3e50;
        text-align: left;
        transition: background 0.18s, color 0.18s;
        display: block;
    }
    .nav-links a:hover, .nav-links a:active, .nav-links a:focus {
        background: #2c3e50 !important;
        color: #4fc3f7 !important;
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .hero.section-hero {
        min-height: 520px;
        height: auto;
        align-items: center;
    }
    .hero-content {
        padding: 1.5rem 1rem 1.5rem 1rem;
        margin-top: 2.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.vision-mission {
    padding: 5rem 5%;
    background: var(--white);
}

.vision-mission .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vision-box, .mission-box, .team-box {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vision-box h2, .mission-box h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.team-expertise {
    padding: 5rem 5%;
    background: var(--light-gray);
}

.team-expertise .container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-expertise h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
}

.expertise-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.expertise-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.expertise-card ul {
    list-style: none;
    padding: 0;
}

.expertise-card ul li {
    margin: 0.5rem 0;
    color: var(--text-color);
}

/* Fade-in Animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero {
        height: 40vh;
    }
    .about-hero h1 {
        font-size: 2rem;
    }
    .vision-mission .container {
        grid-template-columns: 1fr;
    }
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Page Styles */
.services-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/services-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.service-section {
    padding: 5rem 5%;
}

.service-section:nth-child(even) {
    background: var(--light-gray);
}

.service-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.service-image {
    text-align: center;
}

.service-image i {
    font-size: 8rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

.cta-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 5%;
    text-align: center;
}

.cta-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-section .cta-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.cta-section .cta-button:hover {
    background: #2980b9;  /* 深一點的藍色 */
}

/* Responsive Design for Services Page */
@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-image {
        order: -1;
    }
    .service-image i {
        font-size: 6rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Contact Page Styles */
.contact-hero.section-hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../assets/images/banner.png') center/cover no-repeat;
    min-height: 420px;
    height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    position: relative;
}

.contact-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding: 3.5rem 2rem 3.5rem 2rem;
    background: rgba(20,30,40,0.32);
    border-radius: 18px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: none;
    backdrop-filter: blur(0.5px);
}

.contact-hero .hero-content h1, .contact-hero .hero-content p {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.10);
}

.contact-hero .hero-content h1 {
    font-size: 2.7rem;
    font-family: var(--font-secondary);
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 2.2rem;
}

.contact-hero .hero-content p {
    font-size: 1.18rem;
    margin-bottom: 3.2rem;
    font-family: var(--font-primary);
}

.contact-section {
    padding: 5rem 5%;
    background: var(--white);
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Contact Form Styles */
.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #2980b9;  /* 深一點的藍色 */
}

/* Map Container Styles */
.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

/* Contact Information Styles */
.contact-info {
    padding: 2rem;
}

.contact-info h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.social-links {
    margin-top: 3rem;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-hero {
        height: 30vh;
    }
    .contact-hero h1 {
        font-size: 2rem;
    }
}

/* Case Studies Page Styles */
.case-studies-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/case-studies-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.case-studies-grid {
    padding: 5rem 5%;
    background: var(--light-gray);
}

.case-study-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.case-study-image {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.case-study-image i {
    font-size: 4rem;
    color: var(--secondary-color);
}

.case-study-content {
    padding: 2rem;
}

.case-study-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.case-study-highlights {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.case-study-highlights li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.case-study-highlights li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Resources Page Styles */
.resources-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/resources-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.resources-content {
    padding: 5rem 5%;
    background: var(--light-gray);
}

.resources-section {
    margin-bottom: 4rem;
}

.resources-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-image {
    background: var(--primary-color);
    padding: 2rem;
    text-align: center;
}

.blog-image i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Whitepapers Grid */
.whitepapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.whitepaper-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.whitepaper-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.download-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.download-button:hover {
    background: #2980b9;  /* 深一點的藍色 */
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tool-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tool-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.tool-button:hover {
    background: #333;
}

/* Responsive Design for Case Studies and Resources Pages */
@media (max-width: 768px) {
    .case-study-card {
        grid-template-columns: 1fr;
    }
    .case-study-image {
        padding: 1rem;
    }
    .case-study-image i {
        font-size: 3rem;
    }
    .blog-grid,
    .whitepapers-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .case-studies-hero,
    .resources-hero {
        height: 40vh;
    }
}

/* Partners Page Styles */
.partners-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/partners-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.partners-section,
.certifications-section {
    padding: 5rem 5%;
}

.partners-section {
    background: var(--white);
}

.certifications-section {
    background: var(--light-gray);
}

.partners-grid,
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card,
.certification-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.partner-card:hover,
.certification-card:hover {
    transform: translateY(-5px);
}

.partner-card i,
.certification-card i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.partner-card h3,
.certification-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.partner-card p,
.certification-card p {
    color: var(--text-color);
}

/* Responsive Design for Partners Page */
@media (max-width: 768px) {
    .partners-hero {
        height: 40vh;
    }
    .partners-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

.custom-lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22334a;
    color: #fff;
    border: 1.2px solid #3a4a5d;
    border-radius: 8px;
    padding: 0.08rem 0.4rem 0.08rem 0.4rem;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.06);
    transition: border 0.18s, box-shadow 0.18s, background 0.18s;
    min-width: unset;
    height: 1.9rem;
    width: 2.6rem;
}

.lang-dropdown-toggle:focus, .lang-dropdown-toggle.active {
    border-color: #3498db;
    background: #2c3e50;
    box-shadow: 0 0 0 1.5px #3498db22;
}

.lang-caret {
    display: none !important;
}

.lang-dropdown-list {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 2px 10px rgba(44,62,80,0.10);
    min-width: unset;
    width: 2.6rem;
    z-index: 9999;
    padding: 0.12rem 0;
    border: 1px solid var(--light-gray);
}

.custom-lang-dropdown.open .lang-dropdown-list {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 4px;
    margin: 0.04rem 0;
}

.lang-option:hover, .lang-option.active {
    background: var(--light-blue);
    color: var(--secondary-color);
}

.lang-option .lang-flag {
    font-size: 1.15em;
}

@media (max-width: 768px) {
    .lang-dropdown-list {
        width: 2.2rem;
        right: 0;
    }
    .lang-dropdown-toggle {
        font-size: 1.05rem;
        padding: 0.05rem 0.2rem;
        height: 1.5rem;
        width: 2.2rem;
    }
}

/* --- Tech Stack Section Enhancements --- */
.techstack-group {
    margin-bottom: 3.5rem;
    padding-left: 2vw;
    padding-right: 2vw;
}
.techstack-group-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 2.2rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(52,152,219,0.08);
}
.homepage-tech-stack {
    background: linear-gradient(120deg, #f5faff 60%, #eaf6fb 100%);
    box-shadow: 0 4px 32px 0 rgba(52,152,219,0.07);
    border-radius: 18px;
    padding-bottom: 4rem;
}
.homepage-tech-stack .service-card {
    box-shadow: 0 2px 16px 0 rgba(52,152,219,0.10);
    border: 1.5px solid #e3eaf3;
    transition: box-shadow 0.2s, border 0.2s;
    background: #fff;
}
.homepage-tech-stack .service-card:hover {
    box-shadow: 0 6px 32px 0 rgba(52,152,219,0.18);
    border: 1.5px solid var(--secondary-color);
    background: #f5faff;
}
.homepage-tech-stack .tech-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--primary-color);
}
.homepage-tech-stack .tech-desc {
    font-size: 0.97rem;
    color: #3a4a5d;
    margin-top: 0.5rem;
    min-height: 2.2em;
}
.homepage-tech-stack .tech-logo {
    height: 2.5rem;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* 客戶推薦語 Testimonials Section */
.testimonials-section {
  margin: 3rem 0 2rem 0;
  padding: 0 1rem;
}
.testimonials-section h2 {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 2.1rem;
  color: #22334a;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 3rem;
}
.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: center;
}
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 1.25rem;
  min-width: 280px;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.testimonial-content {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #222;
}

/* 首頁各模塊專屬底色 */
.section-hero {
  background: linear-gradient(120deg, #eaf6fb 60%, #f7fafd 100%);
}
.section-services {
  background: #f5f9fc;
}
.section-cloud {
  background: #f0f4f8;
}
.section-tech {
  background: #f7f7fa;
}
.section-testimonials {
  margin-bottom: 0 !important;
  padding-bottom: 2.5rem;
}
.section-footer {
  margin-top: 0 !important;
  padding-top: 2.5rem;
}

/* Section 間隔統一，移除多餘空白 */
.section-hero,
.section-services,
.section-cloud,
.section-tech,
.section-testimonials {
  margin-bottom: 0;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.section-hero { padding-top: 0; }
.section-footer { margin-top: 0; padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* 移除 section 之間多餘 margin/padding */
.section-services, .section-cloud, .section-tech, .section-testimonials {
  margin-top: 0;
}

.contact-locations {
  margin-top: 2.5rem;
}
.contact-card {
  text-align: left;
  padding: 2.2rem 2rem 1.5rem 2rem;
  min-width: 280px;
  max-width: 420px;
  font-family: var(--font-primary);
  font-size: 1.08rem;
  color: #222;
  box-shadow: 0 2px 10px rgba(44,62,80,0.07);
  border: 1.5px solid #e3eaf3;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.contact-card .contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.1rem;
  font-family: var(--font-secondary);
  min-height: 2.2em;
}
.contact-card i {
  color: var(--secondary-color);
  margin-right: 0.5em;
}
.contact-card .contact-address {
  min-height: 8.4em;
  max-height: 8.4em;
  display: flex;
  align-items: flex-start;
  white-space: pre-line;
}
.contact-card .contact-email {
  min-height: 2.8em;
  max-height: 2.8em;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.contact-card .contact-phone {
  min-height: 2.8em;
  max-height: 2.8em;
  display: flex;
  align-items: flex-start;
}
.contact-card .map-container {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  margin-top: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  display: flex;
}
.contact-card .map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: none;
  display: block;
}
@media (max-width: 900px) {
  .services-grid.contact-locations {
    grid-template-columns: 1fr;
  }
  .contact-card {
    max-width: 100%;
  }
}

/* --- Contact Locations Equal Height & Bottom Map --- */
.services-grid.contact-locations {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 0 2rem;
  margin: 0 auto;
  max-width: 1600px;
}
.contact-card {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: 2rem;
}
.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
.contact-table tr {
  height: 2.5em;
  background: none;
}
.contact-table tr:not(:last-child) td {
  border-bottom: none;
}
.contact-label {
  width: 2.2em;
  vertical-align: middle;
  text-align: center;
  color: var(--secondary-color);
  font-size: 1.15em;
  padding-right: 0.3em;
}
.contact-value {
  padding-left: 0.5em;
  font-size: 1.08em;
  color: #222;
  vertical-align: middle;
}
.contact-map-cell {
  padding-top: 1rem;
}
.map-container {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 1200px) {
  .services-grid.contact-locations {
    flex-wrap: wrap;
  }
  .contact-card {
    flex: 1 1 300px;
  }
}
@media (max-width: 768px) {
  .services-grid.contact-locations {
    padding: 0 1rem;
  }
  .contact-card {
    flex: 1 1 100%;
  }
}

/* --- About Page Unified Card Section --- */
.about-cards {
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0 1.5rem;
}
.about-card {
  padding: 2.5rem 2rem;
  background: var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-family: var(--font-primary);
}
.about-card h2 {
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
  font-size: 2rem;
  font-weight: 800;
}
.about-card ul {
  font-size: 1.08rem;
  color: var(--text-color);
  margin-left: 1.2rem;
  line-height: 1.8;
}
.about-card p {
  font-size: 1.13rem;
  color: var(--text-color);
  line-height: 1.9;
}
.about-cards .about-card:last-child {
  margin-bottom: 3.5rem;
}
@media (max-width: 768px) {
  .about-cards {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  .about-card {
    padding: 1.3rem 0.7rem;
  }
  .about-card h2 {
    font-size: 1.3rem;
  }
  .about-cards .about-card:last-child {
    margin-bottom: 2rem;
  }
}

.contact-info-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-table .contact-value.address {
  min-height: 4.5em;
  display: block;
  vertical-align: top;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
.contact-table tr {
  background: none;
  height: auto; 
}
.contact-table tr:not(:last-child) td {
  border-bottom: none;
}
.contact-label {
  width: 2.2em;
  vertical-align: top;
  text-align: center;
  color: var(--secondary-color);
  font-size: 1.15em;
  padding-right: 0.3em;
  padding-top: 0.5em; 
}
.contact-value {
  padding-left: 0.5em;
  font-size: 1.08em;
  color: #222;
  word-break: break-word;
  vertical-align: top;
  padding-top: 0.3em; 
  line-height: 1.5; 
}

.contact-table .address-row .contact-value span {
  display: inline-block;
  min-height: 4.5em; /* Minimum height for address */
  max-height: 6em; /* Maximum height for address, adjust as needed */
  overflow-y: auto; /* Add scroll for overflow if necessary */
}

.contact-table .email-row .contact-value span {
  display: inline-block;
  min-height: 1.5em; /* Minimum height for email */
  max-height: 3em;
}

.contact-table .phone-row .contact-value span, 
.contact-table .phone-row .contact-value { /* Also target the td for empty phone numbers */
  display: inline-block;
  min-height: 1.5em; /* Minimum height for phone */
  max-height: 3em;
}

.contact-map-cell {
  height: 180px;
  padding: 1rem 0 0 0;
  vertical-align: bottom;
}
