/* TQG Corporate Website - Flat Design Style */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary);
}

.lang-switch {
    background: var(--light);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s;
}

.lang-switch:hover {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-graphic svg {
    width: 70%;
    height: 70%;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background: var(--gradient);
    border-radius: 30px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
}

.about-text h2 {
    font-size: 38px;
    margin-bottom: 25px;
    color: var(--dark);
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
    margin-top: 5px;
}

/* Team Section */
.team {
    background: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar svg {
    width: 60%;
    height: 60%;
    fill: var(--white);
    opacity: 0.8;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--gray);
    font-size: 14px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 38px;
    margin-bottom: 25px;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.contact-item-text h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.contact-item-text p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

.contact-form {
    background: var(--light);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map Section */
.map-section {
    background: var(--light);
}

#map {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    margin-top: 40px;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-top: 15px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--secondary);
}

/* Page Header */
.page-header {
    background: var(--gradient);
    padding: 150px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Legal Pages */
.legal-content {
    padding: 80px 0;
}

.legal-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--dark);
}

.legal-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--dark);
}

.legal-content p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    color: var(--gray);
    margin: 15px 0 15px 30px;
    line-height: 2;
}

.legal-content .last-updated {
    background: var(--light);
    padding: 15px 25px;
    border-radius: 10px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Products Page */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    background: var(--gradient);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image svg {
    width: 100px;
    height: 100px;
    fill: var(--white);
}

.product-info {
    padding: 35px;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-info p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

/* Solutions Page */
.solutions-section {
    padding: 60px 0;
}

.solutions-section:nth-child(even) {
    background: var(--light);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-content.reverse {
    direction: rtl;
}

.solution-content.reverse > * {
    direction: ltr;
}

.solution-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.solution-text p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.solution-visual {
    background: var(--gradient);
    border-radius: 20px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-visual svg {
    width: 50%;
    height: 50%;
    fill: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-wrapper,
    .solution-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .solution-content.reverse {
        direction: ltr;
    }
}

@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: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 36px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}
