@charset "utf-8";
/* TemplateMo 600 Prism Flux - Modified for KJ Bio-Tech */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-black: #0a0a0a;
    --carbon-dark: #121212;
    --carbon-medium: #1a1a1a;
    --carbon-light: #2a2a2a;
    --metal-dark: #3a3a3a;
    --metal-light: #4a4a4a;
    --accent-red: #ff3333;
    --accent-blue: #00a8ff;
    --accent-green: #00ff88;
    --accent-purple: #9945ff;
    --accent-cyan: #00ffff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-dim: #808080;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    background: var(--primary-black);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- 背景动画 --- */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
                repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
                linear-gradient(135deg, var(--primary-black) 0%, var(--carbon-dark) 50%, var(--primary-black) 100%);
    z-index: -2;
}
body::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 168, 255, 0.05) 2px, transparent 2px), linear-gradient(90deg, rgba(0, 168, 255, 0.05) 2px, transparent 2px);
    background-size: 150px 150px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
    opacity: 0.5;
}
@keyframes gridMove { 0% { transform: translate(0, 0); } 100% { transform: translate(150px, 150px); } }

/* --- Loading Screen --- */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--primary-black); display: flex; justify-content: center; align-items: center; z-index: 10000; transition: opacity 0.5s, visibility 0.5s; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-prism { width: 100px; height: 100px; position: relative; margin: 0 auto 30px; }
.prism-face { position: absolute; width: 100%; height: 100%; border: 2px solid transparent; animation: prismRotate 3s linear infinite; }
.prism-face:nth-child(1) { border-image: linear-gradient(45deg, var(--accent-red), var(--accent-blue)) 1; }
.prism-face:nth-child(2) { border-image: linear-gradient(45deg, var(--accent-blue), var(--accent-green)) 1; transform: rotate(60deg); animation-delay: 0.2s; }
.prism-face:nth-child(3) { border-image: linear-gradient(45deg, var(--accent-green), var(--accent-purple)) 1; transform: rotate(120deg); animation-delay: 0.4s; }
@keyframes prismRotate { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.2); } 100% { transform: rotate(360deg) scale(1); } }

/* --- Navigation --- */
.header { position: fixed; top: 0; width: 100%; background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 1000; transition: all 0.3s ease; }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; margin-right: 15px; position: relative; display: flex; align-items: center; justify-content: center; }
.logo-prism { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.prism-shape { width: 25px; height: 25px; transform: rotate(45deg); background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); animation: prismShine 3s ease-in-out infinite; }
@keyframes prismShine { 0%, 100% { filter: brightness(1); transform: rotate(45deg) scale(1); } 50% { filter: brightness(1.5); transform: rotate(45deg) scale(1.1); } }
.logo-text { font-size: 22px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.logo-text .prism { background: linear-gradient(135deg, #fff, var(--accent-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text .flux { color: var(--text-secondary); font-weight: 300; }

.nav-menu { display: flex; list-style: none; gap: 5px; align-items: center; }
.nav-menu a { color: var(--text-secondary); text-decoration: none; padding: 10px 20px; transition: all 0.3s; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent-cyan); transition: 0.3s; transform: translateX(-50%); }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-cyan); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 80%; }

.menu-toggle { display: none; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 25px; height: 2px; background: var(--accent-cyan); transition: 0.3s; }

/* --- Hero & Carousel --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 80px; position: relative; overflow: hidden; }
.carousel-container { width: 100%; max-width: 1400px; height: 600px; perspective: 1200px; position: relative; }
.carousel { width: 100%; height: 100%; transform-style: preserve-3d; position: relative; }
.carousel-item { position: absolute; width: 350px; height: 480px; left: 50%; top: 50%; transform-style: preserve-3d; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.card { width: 100%; height: 100%; background: linear-gradient(135deg, var(--carbon-medium), var(--carbon-dark)); border: 1px solid var(--metal-dark); border-radius: 15px; padding: 25px; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.6); display: flex; flex-direction: column; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); animation: scanline 3s linear infinite; }
@keyframes scanline { 0% { transform: translateY(0); } 100% { transform: translateY(480px); } }
.card-image { width: 100%; height: 180px; background: var(--carbon-dark); border-radius: 8px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--metal-dark); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.carousel-item:hover .card-image img { transform: scale(1.1); }
.card-title { font-size: 20px; color: var(--accent-cyan); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.card-description { color: var(--text-secondary); font-size: 13px; line-height: 1.6; flex-grow: 1; margin-bottom: 15px; }
.card-cta { padding: 10px 0; width: 100%; background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue)); border: none; border-radius: 20px; color: #fff; font-weight: bold; cursor: pointer; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; margin-top: auto; }
.carousel-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; z-index: 10; }
.carousel-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); font-size: 24px; cursor: pointer; transition: 0.3s; }
.carousel-btn:hover { background: var(--accent-cyan); color: #000; }

/* --- Page Content Styles --- */
.page-section { padding: 150px 30px 80px; max-width: 1200px; margin: 0 auto; flex: 1; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 42px; text-transform: uppercase; letter-spacing: 3px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }
.section-subtitle { color: var(--text-secondary); max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* Products List Style */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.product-card { background: rgba(26,26,26,0.6); border: 1px solid var(--metal-dark); border-radius: 15px; overflow: hidden; transition: 0.3s; }
.product-card:hover { border-color: var(--accent-cyan); transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1); }
.product-img-container { height: 200px; overflow: hidden; border-bottom: 1px solid var(--metal-dark); }
.product-img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .product-img-container img { transform: scale(1.1); }
.product-info { padding: 30px; }
.product-info h3 { color: var(--accent-cyan); margin-bottom: 15px; font-size: 20px; }
.product-info p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.highlight-text { color: var(--accent-green); font-weight: bold; text-shadow: 0 0 5px rgba(0,255,136,0.3); }

/* About Page Styles */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.about-text h3 { color: var(--accent-purple); font-size: 28px; margin-bottom: 20px; text-transform: uppercase; }
.about-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.about-img { border-radius: 20px; border: 1px solid var(--metal-dark); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.about-img img { width: 100%; display: block; }

/* Contact Page Styles (Updated for Vertical/Horizontal Center + QR) */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--metal-dark);
    display: flex;
    flex-direction: column;
    gap: 50px; /* Space between info list and social links */
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center; /* Horizontally center the items */
    width: 100%;
}

.contact-item { 
    display: flex; 
    flex-direction: column; /* Vertical stack: Icon top, Text bottom */
    align-items: center;    /* Horizontal Center */
    justify-content: center; /* Vertical Center */
    text-align: center;
    width: 100%;
}

.contact-icon { 
    width: 70px; 
    height: 70px; 
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 28px; 
    margin-bottom: 15px; /* Space between icon and text */
    color: #fff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    transition: transform 0.3s;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-text h4 {
    color: var(--accent-cyan);
    margin-bottom: 5px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Contact QR Section */
.contact-qr-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.qr-box {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--metal-dark);
    transition: 0.3s;
}
.qr-box:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}
.qr-box img {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: block;
}
.qr-box p {
    color: var(--text-secondary);
    font-size: 12px;
}

.social-links { 
    display: flex; 
    gap: 40px; 
    justify-content: center; 
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.social-btn { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-secondary); transition: 0.3s; }
.social-btn i { 
    margin-bottom: 15px; 
    background: rgba(255,255,255,0.05);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--metal-dark);
    transition: 0.3s;
}
.social-btn:hover i { transform: scale(1.1); border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0,255,255,0.2); }
.social-btn:hover { color: var(--accent-cyan); }

/* --- Floating Contact Box --- */
.floating-box { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.float-item { width: 50px; height: 50px; background: rgba(10,10,10,0.9); border: 1px solid var(--accent-cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: 0.3s; color: var(--accent-cyan); font-size: 20px; box-shadow: 0 0 15px rgba(0,255,255,0.2); }
.float-item:hover { background: var(--accent-cyan); color: #000; transform: scale(1.1); }
.float-popup { position: absolute; right: 65px; top: 50%; transform: translateY(-50%); background: #fff; padding: 10px; border-radius: 8px; width: 160px; text-align: center; opacity: 0; visibility: hidden; transition: 0.3s; box-shadow: 0 5px 20px rgba(0,0,0,0.5); pointer-events: none; }
.float-item:hover .float-popup { opacity: 1; visibility: visible; }
.float-popup img { width: 100%; height: auto; display: block; }
.float-popup p { color: #333; font-size: 12px; margin-top: 5px; font-weight: bold; font-family: sans-serif; }

/* Footer */
.footer { padding: 40px 30px; background: rgba(10,10,10,0.95); border-top: 1px solid var(--metal-dark); text-align: center; margin-top: auto; }
.footer-info { display: flex; flex-direction: column; gap: 10px; }
.footer-company { color: var(--accent-cyan); font-size: 18px; font-weight: bold; letter-spacing: 1px; }
.footer-details { color: var(--text-secondary); font-size: 14px; }
.footer-copyright { color: var(--text-dim); font-size: 12px; margin-top: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #000; flex-direction: column; padding: 20px; }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: flex; }
    .carousel-item { width: 280px; height: 400px; }
    .about-content { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 30px; }
    .contact-qr-section { gap: 20px; }
    .qr-box img { width: 100px; height: 100px; }
    .social-links { gap: 20px; }
    .floating-box { bottom: 20px; top: auto; right: 10px; transform: none; flex-direction: row; }
    .float-popup { bottom: 65px; top: auto; right: 0; transform: none; }
}