/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #1e3a8a; /* Navy Blue */
    --secondary-color: #d4af37; /* Champagne Gold */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --nav-height: 80px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: var(--nav-height);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* ==========================================================================
   NAVIGATION (FIXED & RESPONSIVE)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.nav-brand a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 40px;
    width: auto;
    border-radius: 50%; /* 如果您的logo是圆形的，这会让它看起来更好 */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--white);
    font-weight: 500;
}

.nav-menu li a:hover {
    color: var(--secondary-color);
}

/* CTA Button in Nav */
.btn-cta {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-cta:hover {
    background-color: #b3932e;
    transform: translateY(-2px);
}

/* Mobile Menu Checkbox Logic */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   BANNER SECTION
   ========================================================================== */
.hero-banner {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(30, 58, 138, 0.85));
    min-height: 35vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-banner h1 {
    color: var(--white);
    font-size: 3.5rem;
    max-width: 900px;
    margin-bottom: 1.5rem;
}

.hero-banner p {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    color: #f1f1f1;
}

/* ==========================================================================
   GRID LAYOUTS (PRODUCTS & ARTICLES)
   ========================================================================== */
.section-container {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   CERTIFICATES SECTION
   ========================================================================== */
.certificates-section {
    background-color: var(--white);
    padding: 4rem 5%;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: center;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* ==========================================================================
   FORMS & CTA
   ========================================================================== */
.inquiry-form-section {
    background-color: var(--light-bg);
    padding: 4rem 5%;
}

.inquiry-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.btn-submit {
    display: block;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    line-height: normal;
    box-sizing: border-box;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

/* ==========================================================================
   WHATSAPP FLOATING WIDGET
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    z-index: 9999;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.whatsapp-float svg {
    margin-top: 15px;
    fill: currentColor;
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   WHATSAPP CHAT WIDGET (Joinchat Style)
   ========================================================================== */
.wa-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.wa-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: wa-pulse 2s infinite;
    transition: transform 0.3s ease;
}

.wa-chat-button:hover {
    transform: scale(1.05);
}

.wa-chat-button svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 400px) {
    .wa-chat-widget {
        right: 10px;
        bottom: 10px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 5% 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--secondary-color);
}

.footer a {
    color: #ccc;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    .menu-icon {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(30, 58, 138, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: -1;
    }

    #menu-toggle:checked ~ .nav-menu {
        transform: translateY(0);
    }
    
    .nav-menu li.mobile-cta-order {
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-brand a {
        font-size: 1.1rem;
    }

    .hero-banner h1 {
        font-size: 2.2rem;
    }
    
    .section-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 3rem 10px;
    }
    
    p {
        text-align: left;
        text-indent: 0;
    }
}

/* ==========================================================================
   BREADCRUMB NAVIGATION
   ========================================================================== */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 5% 0;
    font-size: 0.92rem;
    color: #666;
}
.breadcrumb > .section-container {
    /* 卡片样式 —— 覆盖通用 .section-container 的 max-width 与 padding */
    max-width: 100%;
    padding: 0.85rem 1.4rem;
    margin: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    border-left: 4px solid var(--secondary-color);
}
/* 面包屑紧跟的主内容区去掉过多顶部留白 */
.breadcrumb + section.section-container,
.breadcrumb + main.section-container {
    padding-top: 1.5rem;
}
.breadcrumb + section.section-container .category-layout,
.breadcrumb + main.section-container .blog-layout {
    margin-top: 0;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.breadcrumb li:not(:last-child)::after {
    content: '\203A';
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1;
}
.breadcrumb a {
    color: var(--primary-color);
    padding: 0.3rem 0.55rem;
    border-radius: 5px;
    transition: all 0.25s ease;
    text-decoration: none;
}
.breadcrumb a:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}
.breadcrumb li[aria-current="page"] {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.3rem 0.55rem;
}
@media (max-width: 768px) {
    .breadcrumb {
        padding: 1rem 5% 0;
        font-size: 0.85rem;
    }
    .breadcrumb > .section-container {
        padding: 0.7rem 1rem;
    }
    .breadcrumb + section.section-container,
    .breadcrumb + main.section-container {
        padding-top: 1.25rem;
    }
}
