/* ============================================
   Jinhu Hongtai Machinery - Industrial Website
   Tablet Press Machine B2B Export
   ============================================ */

: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;
}

/* For nav without ul/li */
.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;
}

.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: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    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.9;
}

.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 / Why Us */
.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 Page */
.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); }

/* Application / 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 Form */
.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 */
.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;
}

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 28px; }
    .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); }
}
