/* 
 * Faifaifly Modern CSS (Rebuilt 2025)
 * Clean, Responsive, Mobile-First
 */

/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    --primary-color: #009d8c;
    --secondary-color: #50e3c2;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #eee;
    --white: #fff;
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: var(--header-height); /* Prevent content overlap fixed header if needed, but current header is static */
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =========================================
   2. Layout Utilities
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.clearfix {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.width100 { width: 100%; }
.bold { font-weight: bold; }
.displayBlock { display: block; }

/* =========================================
   3. Header & Navigation
   ========================================= */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logoBtn img {
    height: 50px;
    width: auto;
}

/* Desktop Nav */
.navDrop ul {
    display: flex;
    gap: 20px;
}

.navDrop a {
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
}

/* Mobile Nav (Hidden by default on desktop) */
.mobile-menu-icon, .mobile-nav-side { display: none; }

/* CTA Button */
.promotionWrap .promotion-noHead {
    display: flex;
    align-items: center;
    gap: 10px;
}

.addParameter {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
}
.addParameter:hover { color: var(--white); opacity: 0.9; }

/* Social Icons */
.nav-social, .nav-social-mobile {
    display: flex;
    gap: 10px;
}
.nav-social img { width: 24px; height: 24px; }

/* =========================================
   4. Banner (Swiper)
   ========================================= */
.top-slide { margin-bottom: 30px; }
.mobile-banner1 { display: none; } /* Hide mobile banner on desktop */

/* =========================================
   5. Main Content Layout (Grid/Flex)
   ========================================= */
.left-col {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
    padding-right: 30px;
}

.right-col {
    width: 320px;
    flex-shrink: 0;
}

/* Article Card (Index/Hotnews) */
.hotnews {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.hotnews .leftLogo {
    width: 200px;
    flex-shrink: 0;
    margin-right: 20px;
}

.hotnews .rightDes h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.hotnews .date {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

/* =========================================
   6. Sidebar Widgets
   ========================================= */
.side-widget {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.side-widget h3 {
    font-size: 16px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.side-product-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid transparent;
    padding: 5px;
    transition: all 0.3s;
}
.side-product-card:hover { border-color: var(--secondary-color); }

.side-product-card img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid var(--border-color);
}

/* =========================================
   7. Article Content (Typography)
   ========================================= */
.cmp-title h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-body-wrapper {
    font-size: 16px;
    color: #444;
}

.article-body-wrapper h2, 
.article-body-wrapper h3 {
    margin: 25px 0 15px;
    color: var(--primary-color);
}

.article-body-wrapper p { margin-bottom: 15px; }

/* Table Styles */
.article-body-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-body-wrapper th, .article-body-wrapper td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.article-body-wrapper th {
    background-color: var(--light-gray);
    font-weight: bold;
    white-space: nowrap;
}

/* =========================================
   8. Footer
   ========================================= */
.footer {
    background: #333;
    color: #999;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 50px;
}

/* =========================================
   9. Responsive Media Queries
   ========================================= */
@media (max-width: 768px) {
    /* Header */
    .navDrop, .nav-social, .promotionWrap { display: none; } /* Simplified mobile header for now */
    
    /* Mobile Menu (Checkbox Hack - simplified implementation) */
    .mobile-menu-icon { 
        display: block; 
        position: absolute; top: 20px; left: 20px; z-index: 10;
        width: 30px; height: 30px; opacity: 0; cursor: pointer;
    }
    #menu-label {
        display: block; position: absolute; top: 25px; left: 20px;
        width: 30px; height: 3px; background: #333;
        box-shadow: 0 8px 0 #333, 0 16px 0 #333;
    }
    
    /* Layout */
    .container.clearfix {
        flex-direction: column;
        padding: 0 20px;
    }
    .left-col, .right-col { width: 100%; padding-right: 0; }
    .right-col { margin-top: 30px; }
    
    /* Article Card */
    .hotnews { flex-direction: column; }
    .hotnews .leftLogo { width: 100%; margin-bottom: 15px; }
    .hotnews .leftLogo img { width: 100%; }
    
    /* Mobile Banner */
    .mobile-banner1 { display: block; }
    .top-slide { display: none; } /* Hide desktop banner */
}
