:root {
    --primary: #0f2444;
    --primary-light: #1a3a66;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 40px rgba(15, 36, 68, 0.08);
    --shadow-hover: 0 20px 60px rgba(15, 36, 68, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

/* Top Bar */
.top-badge-bar {
    font-size: 0.8rem;
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-badge-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.92;
}

.top-badge-bar .bi-check-circle {
    color: var(--accent);
}

/* Navbar */
.navbar {
    padding: 0;
    transition: var(--transition);
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--accent);
    margin-right: 0.4rem;
}

.navbar .nav-link {
    font-weight: 600;
    color: #334155;
    padding: 1.6rem 0.8rem !important;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 1.1rem;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

/* 去掉 Products 下拉按钮自带的三角形边框，避免和自定义下划线叠加成黑线 */
.navbar .dropdown-toggle::after {
    border: none;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    margin-top: 0;
}

.navbar .dropdown-item {
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: #334155;
}

.navbar .dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 36, 68, 0.25);
}

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

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
    color: var(--white) !important;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Hero */
.hero-carousel-item {
    height: 92vh;
    min-height: 680px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-light);
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,36,68,0.88) 0%, rgba(15,36,68,0.55) 60%, rgba(15,36,68,0.2) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    opacity: 0.92;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 3;
}

.carousel-indicators {
    z-index: 3;
    bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255,255,255,0.4);
    opacity: 1;
    transition: var(--transition);
    margin: 0 6px;
}

.carousel-indicators button.active {
    background-color: var(--accent);
    transform: scale(1.25);
}

.carousel-indicators button:hover {
    background-color: rgba(255,255,255,0.85);
}

/* Section Common */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h6 {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
}

.card-shadow {
    box-shadow: var(--shadow);
}

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

.card-img-top {
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Stats */
.stat-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.stat-card .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-card p {
    color: var(--gray);
    margin: 0;
    font-weight: 500;
}

/* Category Cards */
.category-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--accent);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.category-card:hover .icon-circle {
    background: var(--accent);
    color: var(--white);
    transform: rotateY(180deg);
}

/* Product Cards */
.product-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.product-card .img-wrap {
    overflow: hidden;
    position: relative;
    background: var(--light-gray);
    min-height: 200px;
}

.product-card .img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card img {
    transition: transform 0.6s ease;
}

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

/* About */
.about-img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img-wrap::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--accent);
    border-radius: var(--radius);
    z-index: -1;
}

.about-img-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    z-index: -1;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(249, 115, 22, 0.08);
    border-radius: 50%;
}

/* Client Logos / Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 4rem;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    font-weight: 700;
    color: var(--gray);
    opacity: 0.7;
    font-size: 1.1rem;
}

/* Certifications */
.cert-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

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

.cert-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.cert-card li a {
    color: var(--gray);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-card li a:hover {
    color: var(--accent);
}

/* Downloads */
.download-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    background: var(--white);
    transition: var(--transition);
    height: 100%;
}

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

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
}

footer h3,
footer h5 {
    color: var(--white);
}

footer a {
    color: rgba(255,255,255,0.75);
}

footer a:hover {
    color: var(--accent);
}

footer .social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

footer .social-icon:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

footer hr {
    border-color: rgba(255,255,255,0.15);
}

/* Float WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 100px;
    z-index: 998;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 140px 0 90px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-banner::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.04'%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");
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

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

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Product Detail */
.product-gallery {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-meta {
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.product-meta p {
    margin-bottom: 0.6rem;
    color: #334155;
}

.product-meta strong {
    color: var(--primary);
    min-width: 110px;
    display: inline-block;
}

/* Mobile */
@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }
    .navbar .nav-link {
        padding: 0.9rem 0 !important;
    }
    .navbar .nav-link::after {
        display: none;
    }
    .hero-carousel-item {
        height: 75vh;
        min-height: 500px;
    }
    .about-img-wrap::before,
    .about-img-wrap::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 50px 0;
    }
    .top-badge-bar {
        font-size: 0.7rem;
    }
    .top-badge-bar .d-flex.gap-4 {
        gap: 0.75rem !important;
    }
    .hero-content h1 {
        font-size: 1.9rem;
    }
}
