/* ========================================
   MechPro - Premium Industrial Website
   ======================================== */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', -apple-system, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0056b3, #ff9900);
    border-radius: 4px;
}

/* ---------- Header ---------- */
.header-top {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255,255,255,0.9);
    padding: 10px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: rgba(255,255,255,0.9);
    opacity: 0.8;
}

.header-top a:hover {
    opacity: 1;
    color: #ff9900;
}

.top-left {
    display: flex;
    gap: 20px;
}

.top-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-right {
    display: flex;
    gap: 8px;
}

.top-right a {
    padding: 2px 8px;
    border-radius: 3px;
}

.top-right a:hover {
    background: rgba(255,255,255,0.1);
}

/* Main Header */
header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0056b3 0%, #ff9900 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.logo h1 {
    color: #1a1a2e;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center; /* 确保所有一级菜单项垂直居中 */
}

.nav-item {
    position: relative;
    padding: 10px 0;
    height: 100%; /* 让 nav-item 填满高度 */
    display: flex;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: #2c3e50;
    position: relative;
    padding: 8px 0;
    display: inline-block;
    white-space: nowrap; /* 防止菜单文字折行 */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0056b3, #ff9900);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0056b3;
}

/* Hero Slider Transition Styles */
.slide {
    transition: opacity 1.5s ease-in-out;
}
.slide.active {
    opacity: 1 !important;
}
.subnav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column; /* 强制子菜单垂直排列 */
}

.nav-item:hover .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.subnav a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: #475569;
    text-align: center; /* 子菜单文字居中对齐 */
    width: 100%; /* 确保填满容器 */
}

.subnav a::after {
    display: none;
}

.subnav a:hover {
    color: #ff9900;
    background: rgba(0, 86, 179, 0.05);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: #2c3e50;
}

/* 响应式导航适配 */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 0;
        align-items: stretch;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-item {
        flex-direction: column;
        padding: 0;
        height: auto;
    }
    
    .nav-links a {
        padding: 15px 30px;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        width: 100%;
        display: none; /* 默认隐藏子菜单 */
    }
    
    .nav-item:hover .subnav,
    .nav-item.active .subnav {
        display: flex; /* 点击或悬停时显示子菜单 */
    }
    
    .subnav a {
        padding-left: 50px;
        text-align: left;
    }
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 680px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 153, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 86, 179, 0.3) 0%, transparent 50%),
        linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.03) 49.5%, rgba(255,255,255,0.03) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(255,255,255,0.03) 49.5%, rgba(255,255,255,0.03) 50.5%, transparent 50.5%);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 153, 0, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.particle:nth-child(3) { left: 60%; top: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 80%; top: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 40%; top: 80%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 153, 0, 0.15);
    border: 1px solid rgba(255, 153, 0, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    color: #ff9900;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.hero-content h2 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-content h2 span {
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 36px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero Slider Navigation */
.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-nav dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav dot.active {
    background: #ff9900;
    transform: scale(1.2);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0056b3, #0077cc);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: #1a1a2e;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-orange {
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.4);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 153, 0, 0.5);
    color: #fff;
}

/* ---------- Section Styles ---------- */
.section {
    padding: 100px 0;
    background: #fff;
}

.section-bg {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.section-gray {
    background: #f1f5f9;
}

.section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.section-dark .section-title h2 {
    color: #fff;
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.7);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 38px;
    color: #1a1a2e;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #ff9900);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: #64748b;
    font-size: 16px;
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.section-header .section-title::after {
    left: 0;
    transform: none;
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #ff9900);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(255, 153, 0, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #0056b3, #ff9900);
}

.feature-card:hover .feature-icon span {
    filter: grayscale(0);
}

.feature-icon span {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.feature-card:hover .feature-icon span {
    filter: grayscale(0);
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.feature-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- About Section ---------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid #ff9900;
    border-radius: 20px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
}

.about-image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.about-image-placeholder span {
    font-size: 48px;
    margin-bottom: 16px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.about-text > p {
    color: #475569;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 36px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05), rgba(255, 153, 0, 0.05));
    border-radius: 12px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0056b3;
    line-height: 1;
}

.stat-number span {
    color: #ff9900;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
}

/* ---------- Products Section ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

.product-img {
    height: 220px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    overflow: hidden;
    position: relative;
}

.product-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.05) 100%);
    transition: all 0.3s ease;
}

.product-card:hover .product-img::after {
    background: linear-gradient(180deg, transparent 30%, rgba(0, 86, 179, 0.1) 100%);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}

.product-placeholder span {
    font-size: 32px;
    margin-bottom: 8px;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.product-info h4 a:hover {
    color: #0056b3;
}

.product-info p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff9900;
}

.product-link {
    color: #0056b3;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-link:hover {
    gap: 8px;
}

/* ---------- News Section ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: transparent;
}

.news-img {
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #0056b3, #0077cc);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-content h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1a1a2e;
    line-height: 1.4;
}

.news-content h4 a:hover {
    color: #0056b3;
}

.news-content p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0056b3;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    gap: 10px;
    color: #ff9900;
}

/* ---------- Stats Section ---------- */
.stats-section {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-box {
    text-align: center;
    color: #fff;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-box h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-box p {
    font-size: 16px;
    opacity: 0.8;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.1;
}

.cta-section::before {
    top: -200px;
    left: -200px;
    background: #ff9900;
}

.cta-section::after {
    bottom: -200px;
    right: -200px;
    background: #0056b3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

/* ---------- Contact Section ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.contact-info > p {
    color: #64748b;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0056b3, #0077cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.contact-text p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.contact-form h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #0056b3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

textarea.form-control {
    height: 140px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff9900, #ff6b35);
    border-radius: 2px;
}

.footer-col > p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.footer-logo h3 {
    color: #fff;
    font-size: 22px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '›';
    font-size: 18px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ff9900;
    padding-left: 16px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: #ff9900;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 400px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    margin-top: 60px;
}

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.page-header .container {
    position: relative;
    z-index: 10;
}

.page-header h1 {
    font-size: 44px;
    margin-bottom: 16px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.85;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

.breadcrumb a:hover {
    color: #ff9900;
}

/* ---------- Product Gallery ---------- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 20px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.1);
}

.gallery-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .gallery-zoom-hint {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-main:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: #0056b3;
    color: #fff;
}

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f1f5f9;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover {
    border-color: #94a3b8;
}

.thumbnail.active {
    border-color: #0056b3;
}

.thumbnail-placeholder {
    font-size: 32px;
    color: #94a3b8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
}

/* ---------- Product Detail ---------- */
.product-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-detail-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.product-detail-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-detail-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
    border-radius: 20px;
}

.product-detail-placeholder span {
    font-size: 64px;
    margin-bottom: 16px;
}

.product-detail-info h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.product-detail-info .category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(255, 153, 0, 0.1));
    color: #0056b3;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-detail-desc {
    margin-bottom: 30px;
    color: #475569;
    font-size: 15px;
}

.product-spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.product-spec-table th, .product-spec-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.product-spec-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1a1a2e;
    width: 30%;
}

.product-spec-table tr:last-child td {
    border-bottom: none;
}

.product-spec-table tr:hover td {
    background: #f8fafc;
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

/* Product Tabs */
.product-detail-tabs {
    margin-top: 60px;
}

.tab-buttons {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 28px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #0056b3;
}

.tab-btn.active {
    background: #fff;
    color: #0056b3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    color: #475569;
    line-height: 1.8;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.tab-content p {
    margin-bottom: 16px;
}

.tab-content ul {
    margin: 20px 0;
}

.tab-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.tab-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff9900;
    font-weight: bold;
}

.tab-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 12px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

/* ---------- News Detail ---------- */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.news-detail-header h1 {
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.news-detail-body {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.news-detail-body p {
    margin-bottom: 24px;
}

.news-detail-body h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 40px 0 20px;
}

.news-detail-body ul {
    margin: 20px 0 30px;
}

.news-detail-body li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.news-detail-body li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #0056b3;
}

.news-detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 16px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
}

.news-detail-image span {
    font-size: 64px;
    margin-bottom: 16px;
}

.news-detail-image p {
    font-size: 14px;
    margin-top: 12px;
    opacity: 0.7;
}

/* News Detail Layout with Sidebar */
.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.news-detail-main {
    min-width: 0;
}

/* News Detail Meta Top */
.news-detail-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.news-category-tag {
    background: linear-gradient(135deg, #0056b3, #0077cc);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.news-view-count {
    color: #94a3b8;
    font-size: 14px;
}

/* News Lead Paragraph */
.news-lead {
    font-size: 18px !important;
    color: #2c3e50 !important;
    font-weight: 500;
    line-height: 1.8 !important;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05), rgba(255, 153, 0, 0.05));
    border-radius: 12px;
    border-left: 4px solid #0056b3;
    margin-bottom: 30px !important;
}

/* Highlight Box */
.news-highlight-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    color: #fff;
}

.news-highlight-box h4 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.highlight-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.highlight-stat .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ff9900;
    margin-bottom: 8px;
}

.highlight-stat .stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* News Tags */
.news-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.news-tags span {
    font-weight: 600;
    color: #64748b;
}

.news-tags a {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.news-tags a:hover {
    background: #0056b3;
    color: #fff;
}

/* News Share */
.news-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.news-share span {
    font-weight: 600;
    color: #64748b;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.wechat { background: #07c160; color: #fff; }
.share-btn.weibo { background: #e6162d; color: #fff; }
.share-btn.copy { background: #64748b; color: #fff; }

/* News Navigation */
.news-detail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-prev, .nav-next {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.nav-prev:hover, .nav-next:hover {
    background: #fff;
    border-color: #0056b3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-prev span:first-child, .nav-next span:first-child {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.nav-prev span:last-child, .nav-next span:last-child {
    display: block;
    color: #1a1a2e;
    font-weight: 500;
    font-size: 14px;
}

.nav-next {
    text-align: right;
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.comments-section h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-count {
    font-size: 16px;
    color: #94a3b8;
    font-weight: normal;
}

.comment-form {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.comment-form h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.comment-form .btn {
    margin-top: 10px;
}

.comments-list {
    border-top: 1px solid #e2e8f0;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid #f1f5f9;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0056b3, #ff9900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-name {
    font-weight: 600;
    color: #1a1a2e;
}

.comment-time {
    font-size: 13px;
    color: #94a3b8;
}

.comment-content p {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.comment-reply {
    color: #0056b3;
    font-size: 13px;
    font-weight: 500;
}

.comment-reply:hover {
    color: #ff9900;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #0056b3, #ff9900);
}

/* Related Products */
.related-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-product-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.related-product-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.related-product-img {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.related-product-info h5 {
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.related-product-info span {
    font-size: 12px;
    color: #0056b3;
}

/* Hot News List */
.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hot-news-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.hot-number {
    font-size: 20px;
    font-weight: 700;
    color: #ff9900;
    width: 30px;
}

.hot-news-info h5 {
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 4px;
}

.hot-news-info span {
    font-size: 12px;
    color: #94a3b8;
}

/* Category List */
.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #0056b3;
    color: #fff;
}

.category-list a:hover .category-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.category-count {
    background: #e2e8f0;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #fff;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9900, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.sidebar-cta h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form .form-control {
    background: #f8fafc;
}

.news-detail-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.news-detail-nav a {
    color: #0056b3;
    font-weight: 500;
    font-size: 14px;
}

.news-detail-nav a:hover {
    color: #ff9900;
}

/* Related Products */
.related-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e2e8f0;
}

.related-section h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 30px;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0056b3, #ff9900);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.5);
}

/* ---------- Loading Animation ---------- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #f1f5f9;
    border-top-color: #0056b3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-cta, .newsletter-widget {
        grid-column: span 2;
    }
    
    .newsletter-section {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-section .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    
    .about-image {
        order: -1;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h2 {
        font-size: 40px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .news-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-cta, .newsletter-widget {
        grid-column: span 1;
    }
    
    .news-detail-nav {
        grid-template-columns: 1fr;
    }
    
    .highlight-stats {
        grid-template-columns: 1fr;
    }
    
    /* Product Gallery Responsive */
    .product-detail-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .main-image-container {
        height: 350px;
    }
    
    .gallery-nav {
        opacity: 1;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .header-top {
        display: none;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .features, .news-grid, .products-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .news-detail-container {
        padding: 30px 20px;
    }
    
    .news-detail-header h1 {
        font-size: 26px;
    }
    
    .product-detail-info h2 {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .news-detail-nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .main-image-container {
        height: 280px;
    }
    
    .product-detail-info h2 {
        font-size: 28px;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .stat-box h3 {
        font-size: 36px;
    }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* Products Filter */
.products-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, #0056b3, #0077cc);
    border-color: #0056b3;
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.page-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active {
    background: linear-gradient(135deg, #0056b3, #0077cc);
    border-color: #0056b3;
    color: #fff;
}

.page-btn.next {
    width: auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.section-header .section-title::after {
    left: 0;
    transform: none;
}

/* Related Products Grid */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* Newsletter Section */
.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    color: #fff;
}

.newsletter-content h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}

.newsletter-section .newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.newsletter-section .newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
}

.newsletter-section .newsletter-form .btn {
    white-space: nowrap;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.certification-item {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #ff9900;
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0056b3, #0077cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    margin: 0 auto 20px;
}

.certification-item h4 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.certification-item p {
    color: #64748b;
    font-size: 14px;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    margin-top: 0;
}

.map-section p {
    margin-bottom: 12px;
}
