/* Base Variables */
:root {
    --primary-color: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --accent-color: #43aecc;
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --bg-footer: #f6f6f6;
}

/* Reset & Base */
html, body { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: "Microsoft YaHei", "PingFang TC", Arial, sans-serif; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    padding-top: 0; 
}

/* Top Bar - Light background like reference */
.top-bar { 
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #333;
    padding: 12px 0; 
}

.logo-container { 
    display: flex; 
    align-items: center; 
}

.logo-container img { 
    height: 60px; 
    width: auto; 
}

/* Language & Font Selectors */
.language-selector, .font-selector { 
    display: inline-block; 
    margin-right: 15px; 
}

.lang-item { 
    display: inline-block; 
    margin-right: 10px; 
    cursor: pointer; 
    padding: 2px 6px; 
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #333;
}

.lang-item:hover {
    background-color: #007bff;
    color: white;
}

.lang-item.active { 
    background-color: #007bff;
    color: white;
}

.font-item { 
    display: inline-block; 
    margin-right: 10px; 
    cursor: pointer; 
    padding: 2px 6px; 
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #333;
}
.font-small {
  font-size: 0.875rem;
}

.font-medium {
  font-size: 1rem;
}

.font-large {
  font-size: 1.25rem;
}

.font-item:hover {
    background-color: #007bff;
    color: white;
}

.font-item.active { 
    background-color: #007bff;
    color: white;
}

/* Search Container */
.search-container {
    display: inline-block;
}

.search-container .form-control {
    width: 200px;
    border-radius: 4px;
}

/* Navbar - Reference style */
.navbar { 
    background-color: #43aecc; 
    padding: 0; 
}

.navbar-brand, .navbar-nav .nav-link { 
    color: #000000 !important; 
    padding: 15px 18px; 
    font-weight: 500; 
}

.navbar-nav .nav-link:hover { 
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.navbar-nav .nav-link.active { 
    background-color: rgba(0, 0, 0, 0.15);
}

.dropdown-menu { 
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dropdown-item { 
    padding: 10px 20px; 
    color: #000000 !important; 
}

.dropdown-item:hover { 
    background-color: #f8f9fa;
    color: #252223 !important; 
}

.dropdown:hover .dropdown-menu { 
    display: block; 
    margin-top: 0; 
}

/* Main Content */
main { 
    flex: 1 0 auto; 
}

/* Breadcrumb */
.breadcrumb { 
    background: transparent; 
    padding: 0; 
    margin-bottom: 1.5rem; 
}

.breadcrumb-item a { 
    color: var(--primary-color); 
    text-decoration: none; 
}

.breadcrumb-item a:hover { 
    text-decoration: underline; 
}

/* Cards */
.card { 
    border: none; 
    border-radius: 12px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); 
    transition: transform 0.2s, box-shadow 0.2s; 
}

.card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.12); 
}

.card-header { 
    border-radius: 12px 12px 0 0 !important; 
}

.card-header.bg-primary { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important; 
}

/* Buttons */
.btn-primary { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); 
    border: none; 
}

.btn-primary:hover { 
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%); 
}

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

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

/* Sitemap / Footer - Reference style */
.sitemap { 
    background-color: #f6f6f6; 
    color: #000000; 
    padding: 40px 0; 
}

.sitemap h5 { 
    color: #333; 
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px; 
}

.sitemap a { 
    color: #666; 
    text-decoration: none; 
    display: block; 
    margin-bottom: 8px; 
    transition: all 0.2s; 
}

.sitemap a:hover { 
    color: #333;
    text-decoration: underline;
}

.footer-links { 
    background-color: #f6f6f6; 
    padding: 20px 0; 
}

.footer-links a { 
    color: #000000; 
    margin-right: 20px; 
    text-decoration: none; 
    font-size: 0.9rem; 
}

.footer-links a:hover { 
    text-decoration: underline;
}

/* Copyright - Reference style (light background, not gradient) */
.copyright { 
    background-color: #f6f6f6;
    color: #000000; 
    text-align: center; 
    padding: 20px 0; 
}

.copyright p { 
    margin: 0; 
    font-size: 0.9rem; 
}

/* Badges */
.badge.bg-success { 
    background-color: var(--primary-color) !important; 
}

/* Animations */
@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

.animate-scroll { 
    animation: scroll 25s linear infinite; 
}

/* Carousel */
.carousel-item img { 
    width: 100%; 
    height: 520px; 
    object-fit: cover; 
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container img { 
        height: 40px; 
    }
    
    .sitemap { 
        padding: 30px 0; 
    }
    
    .sitemap h5 { 
        margin-top: 20px; 
    }
    
    .language-selector, .font-selector {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .search-container .form-control {
        width: 150px;
    }
    
    .carousel-item img {
        height: 300px;
    }
}

/* Specific fix for large screens */
@media (min-width: 1240px) {
    .btn-shop {
        margin-right: 30px;
    }
}
