/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; line-height: 1.6; }
a { color: #333; text-decoration: none; }
a:hover { color: #e74c3c; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Top Bar */
.top-bar { background: #f5f5f5; padding: 10px 0; font-size: 12px; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-nav a { margin-left: 20px; color: #666; }

/* Header */
.header { padding: 20px 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo-text { font-size: 32px; font-weight: bold; color: #e74c3c; }
.search-box { flex: 1; max-width: 500px; margin: 0 40px; }
.search-box form { display: flex; }
.search-box input { flex: 1; padding: 12px 15px; border: 2px solid #e74c3c; border-radius: 4px 0 0 4px; outline: none; }
.search-box button { padding: 12px 30px; background: #e74c3c; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 4px; cursor: pointer; }
.btn-primary { background: #e74c3c; color: #fff; }

/* Nav */
.main-nav { background: #333; }
.main-nav .container { display: flex; }
.main-nav a { padding: 15px 25px; color: #fff; }
.main-nav a:hover, .main-nav a.active { background: #e74c3c; }

/* Banner */
.banner { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; padding: 60px 0; }
.banner h1 { font-size: 36px; margin-bottom: 15px; }
.banner p { font-size: 18px; opacity: 0.9; }
.banner-stats { display: flex; margin-top: 40px; }
.stat-item { text-align: center; margin-right: 60px; }
.stat-item .num { display: block; font-size: 36px; font-weight: bold; }
.stat-item .label { font-size: 14px; opacity: 0.8; }

/* Category */
.category-section { padding: 50px 0; background: #f9f9f9; }
.section-title { font-size: 24px; margin-bottom: 30px; text-align: center; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.category-item { background: #fff; padding: 30px 20px; text-align: center; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.category-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); transform: translateY(-5px); }
.category-icon { font-size: 40px; margin-bottom: 15px; }
.category-item h3 { margin-bottom: 10px; }

/* Section */
.section { padding: 50px 0; }
.product-grid, .company-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-item, .company-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.product-item:hover, .company-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.product-img, .company-logo { height: 180px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.product-img img, .company-logo img { max-width: 100%; max-height: 100%; }
.product-item h4, .company-item h4 { padding: 15px 15px 10px; font-size: 14px; }
.product-item h4 a, .company-item h4 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { padding: 0 15px 15px; color: #e74c3c; font-size: 18px; font-weight: bold; }
.business { padding: 0 15px 15px; color: #999; font-size: 12px; }

/* Footer */
.footer { background: #333; color: #fff; padding: 40px 0; margin-top: 50px; }
.footer-nav { text-align: center; margin-bottom: 20px; }
.footer-nav a { color: #fff; margin: 0 20px; }
.copyright { text-align: center; color: #999; font-size: 12px; }

/* No Data */
.no-data { text-align: center; padding: 50px; color: #999; }

/* Responsive */
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid, .company-grid { grid-template-columns: repeat(2, 1fr); }
}
