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

:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #e6f0ff;
    --text-dark: #1a1a2e;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 102, 255, 0.2);
    --transition: all 0.3s ease;
    --z-carousel: 10;
    --z-floating: 100;
    --z-navbar: 200;
    --border-dark: #000000;
    --border-light: #dddddd;
    --bg-tab: #f5f5f5;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-text-dim: rgba(255, 255, 255, 0.5);
    --footer-border: rgba(255, 255, 255, 0.1);
    --indicator-bg: rgba(0, 102, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: var(--z-navbar);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switcher {
    display: flex;
    font-size: 14px;
    margin-left: 80px;
}

.lang-switcher .lang-btn {
    cursor: pointer;
}

.lang-switcher .lang-btn-separator {
    margin: 0 10px;
    color: var(--text-gray);
    font-weight: 500;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Carousel */
.hero-carousel {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-container {
    width: 100%;
}

.carousel-slides {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.carousel-content {
    margin-left: 60px;
}

.carousel-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.carousel-content h1 span {
    color: var(--primary-color);
}

.carousel-content p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.carousel-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 510px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-graphic-image {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: var(--z-carousel);
}

.carousel-arrow:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--indicator-bg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page */
.about-page {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
}

.about-page .introduction  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-page .introduction .left{
    flex-shrink: 0;
    width: 580px;
}

.about-page .introduction .left .company-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-page .introduction .right {
    margin-left: 40px;
}

.about-page .introduction .right .top {
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--border-dark);
}

.about-page .introduction .right .content {
    line-height: 1.9;
    text-indent: 2em;
    color: var(--text-gray);
}

.about-page .factoryshow {
    margin-top: 40px;
}

.about-page .factoryshow .top {
    margin-bottom: 40px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--border-dark);
}

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

.about-page .factoryshow .imgs img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Products Preview */
.products-preview {
    padding: 50px 0;
    background: var(--bg-light);
}

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

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.view-all {
    text-align: center;
}

/* Product Detail Page */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.product-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-detail-header h1 {
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-detail-header p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
}

.product-detail-images {
    width: min(600px, 100%);
    margin: 0 auto;
}

.product-detail-images .product-image {
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.product-detail-images .product-image + .product-image {
    margin-top: 20px;
}

.product-detail-images .product-image:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-detail-images .product-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Products Page */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.products-page {
    padding: 60px 0 100px;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-button {
    padding: 12px 24px;
    cursor: pointer;
    background-color: var(--bg-tab);
    border: none;
    border-bottom: 3px solid transparent;
    margin-right: 4px;
    font-size: 16px;
    white-space: nowrap;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-color: var(--primary-color);
}

.products-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.products-container {
    opacity: 0;
}

.products-container.initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.5s ease;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    background-color: var(--white);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.pagination button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    margin: 0 15px;
    color: var(--text-gray);
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-item {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    box-shadow: var(--shadow-hover);
}

.product-item-icon {
    height: 280px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.product-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-item p {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-item .btn {
    align-self: flex-start;
}

/* Contact Page */
.contact-page {
    padding: 200px 0 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-item-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.contact-item-text p {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

.map-wrapper {
    background: var(--white);
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.map-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.map-wrapper .map {
    margin-bottom: 20px;
    height: 400px;
}

.map-wrapper .map:last-child {
    margin-bottom: 0;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    color: var(--text-gray);
    font-size: 14px;
    gap: 12px;
}

.map-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 102, 255, 0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: mapSpin 0.8s linear infinite;
}

@keyframes mapSpin {
    to { transform: rotate(360deg); }
}

.map-placeholder--error {
    text-align: center;
}

.map-error-icon {
    font-size: 36px;
    margin-bottom: 4px;
}

.map-error-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.map-error-desc {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 16px;
}

.map-fallback-info {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.6;
}

.map-fallback-info strong {
    font-size: 14px;
}

.plla-wrapper .plla-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.robot-wrapper .robot-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand h3 span {
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--footer-text);
    font-size: 14px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
    font-size: 14px;
    transition: var(--transition);
    color: var(--footer-text);
}

.footer-links a {
    text-decoration: none;
    color: var(--footer-text);
    
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--footer-text-dim);
    font-size: 14px;
}

.flex-btn {
    width: 40px;
    height: 40px;
    /* background: transparent; */
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.flex-btn .icon {
    display: block;
    width: 30px;
    height: 30px;
}

.flex-btn-wrapper {
    position: fixed;
    right: 30px;
    bottom: 60px;
    z-index: var(--z-floating);
    display: flex;
    align-items: center;
}
 
.flex-btn-popup {
    position: absolute;
    right: 60px;
    bottom: 0;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.flex-btn-wrapper:hover .flex-btn-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
 
.flex-btn-qrcode {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}
 
.flex-btn-text {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .carousel-slide .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .carousel-content {
        margin-left: 0;
    }

    .carousel-content p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .carousel-image {
        aspect-ratio: 16/9;
    }

    .hero-graphic {
        max-width: 400px;
        height: 300px;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .about-page .introduction {
        display: block;
    }

    .about-page .introduction .left {
        width: 100%;
    }

    .about-page .introduction .right {
        margin-left: 0;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }
    
    .lang-switcher {
        position: absolute;
        top: 20px;
        right: 70px;
        margin: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .hero-carousel {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .carousel-content {
        margin-left: 0;
    }

    .carousel-content h1 {
        font-size: 32px;
    }

    .carousel-content p {
        font-size: 16px;
    }

    .hero-graphic {
        max-width: 300px;
        height: 250px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

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

    .products-page .products-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        gap: 12px;
    }

    .product-detail-container {
        padding: 80px 15px 20px;
    }

    .product-detail-header h1 {
        font-size: 2em;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

}

@media (max-width: 480px) {
    .carousel-content {
        margin-left: 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .product-item {
        padding: 25px;
    }

}