/*
Theme Name: Enterprise Theme
Theme URI: https://example.com/enterprise-theme
Author: Your Name
Author URI: https://example.com
Description: A professional WordPress theme for businesses with complete templates for articles and products.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enterprise-theme
Tags: business, corporate, responsive, e-commerce, professional

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004c99;
}

/* Header styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navigation styles */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #0066cc;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main content styles */
.site-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-area {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 1;
}

/* Sidebar styles */
.sidebar {
    width: 300px;
}

.widget {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

/* Article styles */
article {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

/* Product styles */
.product {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 1rem;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #004c99;
    color: #fff;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Footer styles */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #555;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination .current {
    background-color: #0066cc;
    color: #fff;
}

/* Floating buttons styles */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.floating-button.phone {
    background-color: #25d366;
}

.floating-button.qq {
    background-color: #12b7f5;
}

.floating-button.wechat {
    background-color: #07c160;
}

.floating-button.chat {
    background-color: #0066cc;
}

/* Contact info popup */
.contact-popup {
    position: fixed;
    bottom: 90px;
    right: 2rem;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999;
    width: 250px;
}

.contact-popup.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    margin-right: 0.75rem;
    color: #0066cc;
    font-size: 1.2rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .main-navigation {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .content-area {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .site-content {
        padding: 0 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }
    
    .contact-popup {
        right: 1rem;
        width: calc(100% - 2rem);
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-button {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}