/* ========== Fallback styles (if Tailwind CDN fails) ========== */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; margin: 0; color: #1f2937; }
a { color: inherit; text-decoration: none; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.grid { display: grid; } .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hidden.md\:block { display: block; } .hidden.md\:flex { display: flex; } .md\:hidden { display: none; } }
@media (min-width: 1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gap-8 { gap: 2rem; } .gap-6 { gap: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-12 { padding-top: 3rem; padding-bottom: 3rem; } .py-16 { padding-top: 4rem; padding-bottom: 4rem; } .py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.text-sm { font-size: 0.875rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; } .text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; } .font-medium { font-weight: 500; }
.text-white { color: #fff; } .text-gray-300 { color: #d1d5db; } .text-gray-400 { color: #9ca3af; } .text-gray-500 { color: #6b7280; } .text-gray-600 { color: #4b5563; } .text-gray-700 { color: #374151; } .text-gray-800 { color: #1f2937; } .text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; } .text-blue-100 { color: #dbeafe; }
.bg-white { background-color: #fff; } .bg-gray-100 { background-color: #f3f4f6; } .bg-gray-50 { background-color: #f9fafb; } .bg-gray-900 { background-color: #111827; }
.bg-blue-50 { background-color: #eff6ff; } .bg-blue-600 { background-color: #2563eb; }
.rounded { border-radius: 0.25rem; } .rounded-lg { border-radius: 0.5rem; } .rounded-xl { border-radius: 0.75rem; } .rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); } .shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); } .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.border { border-width: 1px; } .border-gray-100 { border-color: #f3f4f6; } .border-gray-200 { border-color: #e5e7eb; } .border-gray-800 { border-color: #1f2937; }
.overflow-hidden { overflow: hidden; }
.sticky { position: sticky; } .top-0 { top: 0; } .z-50 { z-index: 50; }
.space-x-1 > * + * { margin-left: 0.25rem; } .space-x-3 > * + * { margin-left: 0.75rem; } .space-y-1 > * + * { margin-top: 0.25rem; } .space-y-2 > * + * { margin-top: 0.5rem; } .space-y-3 > * + * { margin-top: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-16 { margin-bottom: 4rem; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.p-6 { padding: 1.5rem; }
.w-full { width: 100%; } .h-full { height: 100%; } .h-10 { height: 2.5rem; } .h-48 { height: 12rem; } .h-56 { height: 14rem; }
.object-cover { object-fit: cover; }
.text-center { text-align: center; }
.block { display: block; } .inline-block { display: inline-block; }
.leading-relaxed { line-height: 1.625; }
.rounded-full { border-radius: 9999px; }
.transition { transition: all 0.15s ease; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* Product image fix */
/* Product image containers */
.h-56, .h-48, .h-80 { position: relative; overflow: hidden; display: block; }
.h-56 { height: 14rem; max-height: 14rem; }
.h-48 { height: 12rem; max-height: 12rem; }
.h-80 { height: 20rem; max-height: 20rem; }
.h-56 img, .h-48 img, .h-80 img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.max-w-4xl { max-width: 56rem; }
.fixed { position: fixed; } .left-0 { left: 0; } .right-0 { right: 0; }
.bg-gray-900 { background-color: #111827; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-blue-700 { --tw-gradient-from: #1d4ed8; --tw-gradient-to: #93c5fd; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-cyan-600 { --tw-gradient-to: #0891b2; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.rounded-2xl { border-radius: 1rem; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.bg-white\/95 { background-color: rgba(255,255,255,0.95); }
.text-primary-700 { color: #1d4ed8; } .text-primary-800 { color: #1e40af; } .text-primary-900 { color: #1e3a8a; }
.bg-primary-50 { background-color: #eff6ff; } .bg-primary-600 { background-color: #2563eb; } .bg-primary-700 { background-color: #1d4ed8; }
.from-primary-700 { --tw-gradient-from: #1d4ed8; }
.to-accent-700 { --tw-gradient-to: #0e7490; }
.from-primary-100 { --tw-gradient-from: #dbeafe; }
.to-accent-100 { --tw-gradient-to: #cffafe; }

/* Custom styles for 四川东江化工有限公司 */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Article content styling */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d5a8e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4a5568;
}

.article-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content ul li {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.article-content strong {
    color: #1e3a5f;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient {
    background: linear-gradient(135deg, #0c4a6e, #0369a1, #0891b2, #0c4a6e);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Category filter buttons */
.filter-btn {
    transition: all 0.2s ease;
}

.filter-btn.active {
    background-color: #0369a1;
    color: white;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0369a1, #0891b2);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
}

/* Form focus */
input:focus, textarea:focus {
    outline: none;
    border-color: #0369a1;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}
