:root {
    --primary: #0d47a1;
    --primary-light: #1565c0;
    --primary-dark: #0a2e6e;
    --accent: #ffd54f;
    --accent-dark: #f9a825;
    --blue-50: #e3f2fd;
    --blue-100: #bbdefb;
    --blue-200: #90caf9;
    --blue-300: #64b5f6;
    --blue-400: #42a5f5;
    --blue-500: #2196f3;
    --blue-600: #1e88e5;
    --blue-700: #1976d2;
    --blue-800: #1565c0;
    --blue-900: #0d47a1;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-light: #7a7a9a;
    --bg-white: #ffffff;
    --bg-light: #f8faff;
    --bg-gray: #f0f4f8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-zh: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-en: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-zh);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

body.lang-en {
    font-family: var(--font-en);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.zh { display: inline-block; }
.en { display: none; }
body.lang-en .zh { display: none; }
body.lang-en .en { display: inline-block; }

body.lang-en p.zh,
body.lang-en p.en,
body.lang-en li.zh,
body.lang-en li.en,
body.lang-en span.zh,
body.lang-en span.en,
body.lang-en h3.zh,
body.lang-en h3.en,
body.lang-en h4.zh,
body.lang-en h4.en {
    display: block;
}

body.lang-en .zh { display: none !important; }
body.lang-en .en { display: inline-block !important; }

body.lang-en p.en,
body.lang-en li.en,
body.lang-en div.en,
body.lang-en span.en {
    display: block !important;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
}

.navbar.scrolled .nav-link::after {
    background: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.navbar.scrolled .lang-switch {
    background: var(--bg-gray);
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 14px;
    border-radius: 17px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.navbar.scrolled .lang-btn {
    color: var(--text-secondary);
}

.navbar.scrolled .lang-btn.active {
    background: var(--primary);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--text-primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(13, 71, 161, 0.7) 50%,
        rgba(10, 46, 110, 0.85) 100%
    ); */
}

.carousel-indicators {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.indicator:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 24px;
}

.carousel-btn.next {
    right: 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #0d47a1 30%, #1565c0 60%, #1976d2 80%, #0a2e6e 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(33, 150, 243, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 213, 79, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(25, 118, 210, 0.4) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 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.03'%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-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.3) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff000;
    margin-bottom: 24px;
    letter-spacing: 4px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    /* color: rgba(255, 255, 255, 0.85); */
    color: #fff000;
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.tag {
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    /* color: rgba(255, 255, 255, 0.9); */
    color: #fff000;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(249, 168, 37, 0.4);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 168, 37, 0.5);
}

.hero-btn svg {
    transition: transform var(--transition);
}

.hero-btn:hover svg {
    transform: translate(3px, -3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 20px;
    background: var(--blue-50);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--blue-400));
    border-radius: 2px;
    margin: 0 auto 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-main {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-highlight {
    background: linear-gradient(135deg, var(--blue-50), #e8f0fe);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.about-highlight p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.about-highlight strong {
    color: var(--primary);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--blue-400));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-project {
    margin-top: 60px;
}

.project-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.project-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.timeline-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-marker {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--blue-400));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.timeline-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-orgchart {
    margin-top: 60px;
    text-align: center;
}

.orgchart-img-wrap {
    display: inline-block;
    max-width: 100%;
    cursor: zoom-in;
}

.banner-img-wrap {
    margin-top: 24px;
    max-width: 100%;
}

.banner-img-wrap .banner-img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
}

.orgchart-img-wrap .orgchart-img {
    max-width: 100%;
    max-height: 600px;
}

.mat-group {
    margin-bottom: 48px;
}

.mat-group:last-child {
    margin-bottom: 0;
}

.mat-group-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid var(--cat-color, var(--primary));
}

.mat-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.mat-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: zoom-in;
    transition: all var(--transition);
}

.mat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}

.mat-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.mat-item:hover img {
    transform: scale(1.05);
}

.mat-item p {
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.qual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qual-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: zoom-in;
    transition: all var(--transition);
}

.qual-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}

.qual-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
    display: block;
    transition: transform var(--transition);
}

.qual-item:hover img {
    transform: scale(1.05);
}

.qual-item p {
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition);
    cursor: default;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}

.product-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.product-card:hover .product-icon {
    background: linear-gradient(135deg, var(--primary), var(--blue-400));
}

.product-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    transition: color var(--transition);
}

.product-card:hover .product-icon svg {
    color: white;
}

.product-img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-img {
    border-color: var(--blue-300);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.15);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-formula {
    font-size: 0.85rem;
    color: var(--blue-500);
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-info {
    display: contents;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--blue-400));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer {
    background: linear-gradient(180deg, #0a1628, #0d1b2a);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    border-radius: 4px;
}

.footer-logo div {
    display: flex;
    flex-direction: column;
}

.footer-logo strong {
    color: white;
    font-size: 1.1rem;
}

.footer-logo span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--blue-400));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .mat-items {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qual-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: var(--shadow-xl);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--text-primary);
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary);
        background: var(--blue-50);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .hero-title {
        letter-spacing: 2px;
    }

    .hero-tags {
        gap: 8px;
    }

    .tag {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-main {
        padding: 24px;
    }

    .project-timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .timeline-item {
        text-align: left;
        display: flex;
        gap: 20px;
        padding: 24px;
    }

    .timeline-marker {
        margin: 0;
        flex-shrink: 0;
    }

    .mat-items {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .qual-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .orgchart-img-wrap .orgchart-img {
        max-height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .product-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }

    .mat-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .qual-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .carousel-btn {
        display: none;
    }
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-caption {
    color: white;
    font-size: 1.1rem;
    margin-top: 20px;
    text-align: center;
    opacity: 0.9;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-btn.prev {
    left: 24px;
}

.lightbox-btn.next {
    right: 24px;
}

.product-card {
    cursor: pointer;
}

.product-img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .lightbox-btn {
        width: 44px;
        height: 44px;
    }

    .lightbox-btn.prev {
        left: 12px;
    }

    .lightbox-btn.next {
        right: 12px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .lightbox-content img {
        max-height: 65vh;
    }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.video-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--primary);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition), opacity var(--transition);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
    opacity: 0.9;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(13, 71, 161, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-icon svg {
    margin-left: 4px;
}

.video-card p {
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background var(--transition);
    z-index: 10;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
}

.video-modal-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: var(--radius-md);
    background: #000;
    outline: none;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .play-icon {
        width: 56px;
        height: 56px;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-content video {
        max-height: 50vh;
    }
}
