/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navigation - Same as products page */
.header {
    background: linear-gradient(90deg, #9BAFD9 0%, #B8C5E0 25%, #ffffff 50%, #B8C5E0 75%, #9BAFD9 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a3a52 0%, #2d5670 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    padding: 80px 20px 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #1a3a52;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #2d5670;
    margin-bottom: 30px;
}

.hero-features {
    margin-top: 40px;
}

.feature-item p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.8;
}

.feature-highlight {
    color: #1a8b7e;
    font-weight: 600;
}

.hero-illustration {
    animation: fadeInRight 1s ease-out;
}

.hero-illustration img {
    width: 100%;
    //max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cross-border Section */
.cross-border {
    background: #ffffff;
    padding: 80px 20px;
}

.section-title-light {
    font-size: 32px;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle-light {
    font-size: 18px;
    color: #555;
    margin-bottom: 60px;
    text-align: center;
}

.services-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

/* 3 cards row - centered */
.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 2 cards row - centered */
.services-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid #E8EEF5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.service-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #9BAFD9;
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    //padding: 10px;
}

.service-card h3 {
    color: #1a3a52;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

/* Products Preview Section */
.products-preview {
    padding: 80px 20px;
    background: #ffffff;
}

.section-header-main {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-main h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a3a52;
    padding: 15px 40px;
    background: linear-gradient(135deg, #9BAFD9 0%, #B8C5E0 100%);
    color: #2C3E50;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(155, 175, 217, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.product-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 10px;
}

.product-tags {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    padding: 80px 20px;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: rgb(0, 0, 0);
    margin-bottom: 40px;
}

.cta-button-main {
    display: inline-block;
    background: rgb(0, 0, 0);
    color: #1a8b7e;
    padding: 18px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-button-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Footer - Same as products page */
.footer {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5670 100%);
    color: white;
    padding: 50px 20px 30px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.footer-logo h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 16px;
    color: #B8C5E0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #B8C5E0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #9BAFD9;
}

.footer-social {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    line-height: 40px;
    text-align: center;
    margin: 0 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-illustration img {
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .nav-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .logo {
        grid-column: 1 / -1;
        justify-self: center;
        margin-bottom: 8px;
    }

    .nav-link {
        padding: 10px 20px;
        font-size: 14px;
        text-align: center;
    }

    /* Hero */
    .hero {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    /* Cross-border */
    .cross-border {
        padding: 50px 15px;
    }

    .section-title-dark {
        font-size: 24px;
    }

    .services-grid,
    .services-grid-3,
    .services-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 100%;
    }

    /* Products */
    .products-preview {
        padding: 50px 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header-main h2 {
        font-size: 28px;
        padding: 12px 30px;
    }

    /* CTA */
    .cta-section {
        padding: 50px 15px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-button-main {
        padding: 15px 40px;
        font-size: 18px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo {
        align-items: center;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-column {
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* Navigation - Horizontal scroll */
    .nav-items {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }

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

    .logo {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
        margin: 0;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
        width: auto;
    }

    /* Hero */
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .feature-item p {
        font-size: 14px;
    }

    /* Services */
    .services-grid,
    .services-grid-3,
    .services-grid-2 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .service-icon {
        width: 100px;
        height: 100px;
    }

    /* CTA */
    .cta-title {
        font-size: 20px;
    }

    .cta-button-main {
        width: 90%;
        max-width: 300px;
    }
}