/* ============================================
   Hongtai Capsule Filler - Industrial B2B Website
   Capsule Filling Machine Specialist
   ============================================ */

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2438;
    --primary-light: #2d5a8a;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #f0f2f5;
    --border: #e0e0e0;
    --success: #27ae60;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --radius: 4px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: var(--primary-dark); color: #fff; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span { margin-right: 20px; }
.top-bar-left i, .top-bar-right i { margin-right: 6px; color: var(--accent); }
.top-bar-right a { color: #fff; }
.top-bar-right a:hover { color: var(--accent); }

/* Header */
.header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo h1 { font-size: 24px; color: var(--primary); font-weight: 700; letter-spacing: 1px; }
.logo span { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.nav { display: flex; align-items: center; }
.nav ul { display: flex; list-style: none; gap: 30px; }
.nav ul li { margin: 0 15px; }
.nav ul li:first-child { margin-left: 0; }
.nav ul li:last-child { margin-right: 0; }
.nav > a { margin: 0 15px; font-size: 14px; font-weight: 500; color: var(--text); position: relative; padding: 5px 0; }
.nav > a:first-child { margin-left: 0; }
.nav > a:last-child { margin-right: 0; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent); }
.header-right { display: flex; align-items: center; gap: 15px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--primary); }

/* Hero */
.hero { position: relative; height: 520px; display: flex; align-items: center; background: var(--primary); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center right; background-repeat: no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,49,97,0.95) 0%, rgba(11,49,97,0.88) 38%, rgba(11,49,97,0.35) 62%, rgba(11,49,97,0.05) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; color: #fff; }
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 15px; line-height: 1.2; }
.hero p { font-size: 18px; margin-bottom: 30px; opacity: 0.92; }
.hero-btns { display: flex; gap: 15px; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: var(--primary); margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 16px; }

/* Products Grid */
.products-section { padding: 80px 0; background: var(--bg-light); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-image { height: 280px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-light); padding: 15px; }
.product-image img { max-height: 100%; max-width: 100%; object-fit: contain; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-info { padding: 25px; }
.product-info h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.product-info p { color: var(--text-light); font-size: 14px; margin-bottom: 15px; }

/* Features */
.features-section { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { text-align: center; padding: 30px; }
.feature-item i { font-size: 40px; color: var(--accent); margin-bottom: 20px; }
.feature-item h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }

/* Trust Bar */
.trust-bar { background: var(--primary); color: #fff; padding: 50px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.trust-item h3 { font-size: 36px; color: var(--accent); margin-bottom: 5px; }

/* CTA */
.cta-section { padding: 80px 0; background: var(--bg-light); text-align: center; }
.cta-section h2 { font-size: 28px; color: var(--primary); margin-bottom: 15px; }

/* Footer */
.footer { background: var(--primary-dark); color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer h3, .footer h4 { margin-bottom: 20px; font-size: 16px; }
.footer p, .footer li { color: #aaa; font-size: 14px; line-height: 1.8; }
.footer ul { list-style: none; }
.footer a { color: #aaa; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: #777; font-size: 13px; }

/* Page Banner */
.page-banner { height: 280px; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; }
.page-banner h1 { font-size: 36px; margin-bottom: 10px; }
.breadcrumb { font-size: 14px; opacity: 0.8; }
.breadcrumb a:hover { color: var(--accent); }

/* Product Detail */
.product-detail { padding: 60px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-gallery { background: var(--bg-light); border-radius: var(--radius); padding: 40px; text-align: center; }
.product-gallery img { max-height: 400px; object-fit: contain; }
.product-meta h1 { font-size: 28px; color: var(--primary); margin-bottom: 15px; }
.product-meta .tag { display: inline-block; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; margin-bottom: 15px; }
.product-desc { color: var(--text-light); margin-bottom: 25px; }

/* Specs Table */
.specs-section { padding: 60px 0; background: var(--bg-light); }
.specs-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.specs-table th, .specs-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.specs-table th { background: var(--primary); color: #fff; font-weight: 600; }
.specs-table tr:hover { background: var(--bg-light); }

/* Features List */
.features-list { list-style: none; margin: 20px 0; }
.features-list li { padding: 8px 0; display: flex; align-items: center; gap: 10px; }
.features-list i { color: var(--success); font-size: 16px; }

/* FAQ */
.faq-item { background: #fff; border-radius: var(--radius); margin-bottom: 15px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { padding: 20px 25px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--primary); }
.faq-answer { padding: 0 25px 20px; color: var(--text-light); display: none; }
.faq-item.active .faq-answer { display: block; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 25px; }

/* Contact */
.contact-section { padding: 60px 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-info-item i { font-size: 20px; color: var(--accent); margin-top: 3px; }

/* Blog Article */
.blog-article { padding: 60px 0; }
.blog-article .container { max-width: 900px; }
.blog-article-header { margin-bottom: 30px; }
.blog-article-header h1 { font-size: 32px; color: var(--primary); margin-bottom: 15px; line-height: 1.3; }
.blog-article-meta { display: flex; gap: 20px; font-size: 14px; color: var(--text-muted); margin-bottom: 25px; }
.blog-article-meta .category { background: var(--primary-light); color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 12px; }
.blog-article-banner { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; }
.blog-article-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.blog-article-body h2 { font-size: 24px; color: var(--primary); margin-top: 35px; margin-bottom: 15px; }
.blog-article-body h3 { font-size: 20px; color: var(--primary); margin-top: 25px; margin-bottom: 10px; }
.blog-article-body p { margin-bottom: 18px; }
.blog-article-body ul, .blog-article-body ol { margin-bottom: 18px; padding-left: 25px; }
.blog-article-body li { margin-bottom: 8px; line-height: 1.7; }
.blog-article-body strong { color: var(--primary); }
.blog-article-body img { width: 100%; border-radius: var(--radius); margin: 20px 0; }
.blog-article-nav { display: flex; justify-content: space-between; padding: 30px 0; margin-top: 40px; border-top: 1px solid var(--border); }
.blog-article-nav a { font-weight: 500; color: var(--primary); }
.blog-cta-box { background: var(--bg-light); border-left: 4px solid var(--accent); padding: 25px 30px; margin: 30px 0; border-radius: var(--radius); }
.blog-cta-box h3 { color: var(--primary); margin-bottom: 8px; }
.blog-cta-box p { color: var(--text-light); margin-bottom: 0; }

/* Map */
#map { height: 400px; border-radius: var(--radius); margin-top: 30px; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { height: 460px; }
    .hero-bg { background-position: 70% center; }
    .hero-overlay { background: linear-gradient(180deg, rgba(11,49,97,0.92) 0%, rgba(11,49,97,0.80) 60%, rgba(11,49,97,0.92) 100%); }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
