* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Header */
.header { background: #fff; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-top { background: #0066cc; color: #fff; padding: 8px 15px; font-size: 12px; display: flex; justify-content: space-between; }
.header-main { padding: 10px 15px; display: flex; align-items: center; gap: 10px; }
.logo { font-size: 20px; font-weight: bold; color: #0066cc; }
.logo span { font-size: 12px; color: #999; display: block; }
.search-box { flex: 1; display: flex; }
.search-box input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px 0 0 20px; font-size: 14px; }
.search-box button { padding: 10px 15px; background: #0066cc; color: #fff; border: none; border-radius: 0 20px 20px 0; cursor: pointer; }
.nav { background: #fff; border-top: 1px solid #eee; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav ul { display: flex; list-style: none; padding: 0 10px; }
.nav li { flex-shrink: 0; }
.nav a { display: block; padding: 12px 15px; color: #333; font-size: 14px; border-bottom: 2px solid transparent; }
.nav a.active, .nav a:hover { color: #0066cc; border-bottom-color: #0066cc; }

/* Main Content */
.main { padding: 70px 15px 80px; max-width: 800px; margin: 0 auto; }

/* Banner */
.banner { margin-bottom: 15px; border-radius: 8px; overflow: hidden; }
.banner img { width: 100%; height: auto; display: block; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.category-item { background: #fff; padding: 15px 5px; text-align: center; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.category-item .icon { font-size: 28px; margin-bottom: 5px; }
.category-item span { font-size: 12px; color: #666; display: block; }

/* Section */
.section { margin-bottom: 20px; }
.section-title { background: #fff; padding: 12px 15px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.section-title h2 { font-size: 16px; color: #333; }
.section-title a { font-size: 12px; color: #0066cc; }

/* News List */
.news-list { background: #fff; border-radius: 8px; overflow: hidden; }
.news-item { padding: 12px 15px; border-bottom: 1px solid #eee; display: flex; gap: 12px; }
.news-item:last-child { border-bottom: none; }
.news-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.news-item .info { flex: 1; min-width: 0; }
.news-item h3 { font-size: 14px; color: #333; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item p { font-size: 12px; color: #999; }
.news-item .date { color: #999; font-size: 11px; }

/* Products Grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.product-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.product-item img { width: 100%; height: 120px; object-fit: cover; }
.product-item .info { padding: 10px; }
.product-item h3 { font-size: 13px; color: #333; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-item .price { color: #ff6b00; font-weight: bold; font-size: 14px; }

/* Contact */
.contact-card { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 15px; }
.contact-card h3 { font-size: 18px; color: #333; margin-bottom: 15px; text-align: center; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; }
.contact-item:last-child { border-bottom: none; }
.contact-item .icon { width: 40px; height: 40px; background: #0066cc; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.contact-item .text { flex: 1; }
.contact-item .label { font-size: 12px; color: #999; }
.contact-item .value { font-size: 16px; color: #333; font-weight: 500; }

/* Footer */
.footer { background: #333; color: #fff; padding: 20px 15px; text-align: center; font-size: 12px; }
.footer a { color: #fff; }
.footer p { margin: 5px 0; }
.footer .beian { margin-top: 10px; color: #999; font-size: 11px; }

/* Tab Bar */
.tab-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000; }
.tab-item { flex: 1; padding: 8px 0; text-align: center; border-top: 2px solid transparent; }
.tab-item.active { color: #0066cc; border-top-color: #0066cc; }
.tab-item .icon { font-size: 20px; display: block; margin-bottom: 2px; }
.tab-item span { font-size: 11px; }

/* Article Page */
.article-header { background: #fff; padding: 15px; margin-bottom: 10px; border-radius: 8px; }
.article-header h1 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.article-meta { font-size: 12px; color: #999; }
.article-content { background: #fff; padding: 15px; border-radius: 8px; font-size: 15px; line-height: 1.8; }
.article-content p { margin-bottom: 15px; text-indent: 2em; }
.article-content h2 { font-size: 16px; margin: 20px 0 10px; }
.article-content ul { margin: 15px 0; padding-left: 25px; }
.article-content li { margin-bottom: 8px; }
.article-contact { background: #f0f7ff; padding: 15px; margin-top: 15px; border-radius: 8px; text-align: center; }

/* Form */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; color: #666; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.form-group textarea { height: 100px; resize: none; }
.btn { width: 100%; padding: 14px; background: #0066cc; color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; }

/* Breadcrumb */
.breadcrumb { padding: 10px 15px; background: #fff; font-size: 12px; color: #999; border-radius: 8px; margin-bottom: 10px; }
.breadcrumb a { color: #0066cc; }

/* Loading */
.loading { text-align: center; padding: 40px; color: #999; }

/* Hide scrollbar */
.nav ul::-webkit-scrollbar { display: none; }
