:root {
    --primary-color: #1c44b3;
    --secondary-color: #f8f9fa;
    --accent-color: #007bff;
    --link-color: #0077ff;
    --link-hover: #0056b3;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: #f0f2f5;
    padding: 2rem 0;
}

/* 盒式布局容器 */
.box-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
}

/* 初始导航栏 - 内嵌在盒子内 */
.navbar-inline {
    background: var(--primary-color);
    padding: 1.5rem 0; /* Adjusted from 1rem 0 to match demo */
    margin: 0;
    border-radius: 0;
}

/* 滚动时的吸顶导航栏 */
.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color) !important;
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    transition: all 0.3s ease;
    border-radius: 0;
}

.navbar-sticky.show {
    transform: translateY(0);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: white !important;
    flex-shrink: 1; /* Allow brand to shrink to prevent pushing toggler */
    min-width: 0; /* Important for flex-shrink to work correctly with long text */
}

.navbar-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 1rem;
    border-radius: 8px;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-main {
    font-size: 1.1rem; /* Adjusted to match demo */
    font-weight: bold;
    line-height: 1.2;
}

.company-sub {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.9;
    line-height: 1.1;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important; /* Adjusted to match demo */
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0;
}

.banner-image {
    width: 100%;
    height: auto;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 75%;
    max-width: 650px;
}

.hero-text-bg {
    background: rgba(0, 0, 0, 0.75);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
}

.hero-cta {
    margin-top: 2rem;
}

.btn-phone {
    white-space: nowrap; /* 防止按钮内文字换行 */
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(28, 68, 179, 0.4);
}

.btn-phone:hover {
    background: #0f2d7a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(28, 68, 179, 0.6);
}

.btn-phone i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 内容区域样式 */
.content-section {
    padding: 4rem 0;
}

.content-section.alt {
    background: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.product-card {
    background: white;
    border-radius: 12px; /* 恢复统一圆角 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative; /* 为标题背景定位 */
}

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

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow its container */
    background: #ffffff; /* White background */
    transition: transform 0.3s ease; /* 为悬停效果添加过渡 */
}
.product-card:hover .product-image {
    transform: scale(1.05); /* 图片放大效果 */
}

.product-image img {
    max-width: 100%; /* Ensure the image fits within the bounds */
    max-height: 100%; /* Ensure the image fits within the bounds */
    object-fit: contain; /* Ensure the image fits within the bounds without cropping, maintaining aspect ratio */
    display: block; /* Remove extra space below image */
}

.product-info {
    background: #666; /* 最终确认的灰色 */
    padding: 1rem; /* 调整内边距 */
    text-align: center;
}

.product-title {
    font-size: 1.1rem; /* 调整字体大小 */
    font-weight: bold;
    color: #ffffff; /* 白色文字 */
    margin: 0; /* 移除外边距 */
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--accent-color);
}

.news-content-area {
    flex-grow: 1;
    padding-right: 1.5rem;
}

.news-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    border: 1px solid #dee2e6; /* 更清晰的线框 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 2px; /* 内边距，让边框看起来更明显 */
}

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

.news-thumbnail i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.news-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 0.5rem;
}


.news-content {
    color: #666;
    line-height: 1.6;
}

/* Page Specific Styles from demo/about.html */

/* Banner Section */
.page-banner {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Image will be handled in the template with {% static %} */
/* .banner-image {
    width: 100%;
    height: auto;
    display: block;
} */


/* 面包屑 */
.breadcrumb-section {
    background: var(--secondary-color);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--link-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--link-hover);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 主内容区域 - 适合富文本渲染 */
.main-content {
    padding: 4rem 0;
}

.content-wrapper {
    padding: 0 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
    text-align: left;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem 0;
    text-align: left;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 2rem 0 1rem 0;
    text-align: left;
}

.article-content h4 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #555;
    margin: 1.5rem 0 1rem 0;
    text-align: left;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100% !important; /* Ensure images don't overflow their containers */
    width: auto !important; /* Force width to auto, so max-width takes effect */
    height: auto !important; /* Maintain aspect ratio */
    display: block; /* Ensures margin: auto works for centering */
    margin: 2rem auto; /* Centers the image horizontally */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 2rem;
    background: var(--secondary-color);
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content th,
.article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.article-content th {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.article-content tr:hover {
    background: rgba(28, 68, 179, 0.05);
}

/* Contact Page Specific Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.contact-form .btn-primary:hover {
    background-color: #0f2d7a;
    border-color: #0f2d7a;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.contact-info-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 25px; /* Fixed width for icon */
    text-align: center;
}

/* CTA广告条 - 与首页一致 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2d7a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
}

.footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 1rem;
    margin: 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-content {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #adb5bd;
}

@media (max-width: 768px) {
    .navbar-brand {
        max-width: calc(100% - 60px); /* Ensure it doesn't push the toggler */
    }

    .navbar-logo {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem; /* 减小Logo间距 */
    }

    /* 简化移动端公司名称样式，防止换行 */
    .company-main {
        font-size: 0.9rem; /* 调整字体大小以适应小屏幕 */
        white-space: nowrap; /* 强制不换行 */
        overflow: hidden; /* 隐藏溢出部分 */
        text-overflow: ellipsis; /* 溢出时显示省略号 */
    }

    .company-sub {
        font-size: 0.65rem; /* 减小副标题字号 */
        white-space: nowrap;
    }

    .hero-section {
        position: static;
        padding: 0;
    }

    .hero-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero-text-bg {
        background: #f0f2f5;
        color: #333;
        border-radius: 0;
        padding: 2rem 1.5rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
    }

    .hero-title,
    .hero-subtitle {
        color: #333;
    }

    body {
        padding: 1rem;
    }
    
    .box-container {
        border-radius: 15px;
    }
    
    .main-content {
        padding: 3rem 0;
    }
    
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .article-content h1 {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .company-sub {
        font-size: 0.6rem; /* 恢复显示并减小字号 */
        opacity: 0.8;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .news-item {
        flex-direction: column-reverse; /* 在移动端将图片放在内容下方 */
        padding: 1.5rem;
    }
    
    .news-content-area {
        padding-right: 0;
        margin-top: 1rem;
    }

    .news-thumbnail {
        width: 100%;
        height: 150px; /* 在移动端增加高度以获得更好的视觉效果 */
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    /* News List specific styles for mobile */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .news-thumbnail {
        height: 180px;
    }
}

/* News List Specific Styles */
.news-section {
    padding: 3rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.page-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--highlight-yellow, #ff8c00); /* Added fallback */
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-item {
    display: block; /* 确保是块级元素，用于实现上下布局 */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    padding: 0;
    margin: 0;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: inherit;
}

.news-grid .news-item .news-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    width: 100%;
    background: none;
    border-radius: 0;
}

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

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}

.news-content {
    padding: 1.5rem;
    line-height: 1.6; /* Reset from other styles */
}

.news-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页组件 */
.pagination-section {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination {
    --bs-pagination-color: var(--primary-color);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-focus-color: var(--primary-color);
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 0.2rem;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: rgba(28, 68, 179, 0.1);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* News Detail Specific Styles */
.article-section {
    padding: 3rem 0;
}

.article-container {
    padding: 0 2rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-align: center;
}

.article-content {
    max-width: none;
    padding: 0;
}

.article-image {
    display: block;
    width: auto; /* Changed to auto to respect natural width */
    max-width: 100%; /* Remains 100% for responsiveness, scales down if larger than container */
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6c757d;
    font-size: 1.2rem;
    margin: 2rem 0;
    border: 2px dashed #dee2e6;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.article-text h2 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--highlight-yellow);
}

.article-text h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-text ul, .article-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

.article-text blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-text strong {
    color: var(--primary-color);
    font-weight: bold;
}

/* 返回列表按钮 */
.back-to-list {
    text-align: center;
    margin: 2rem 0;
}

.btn-back {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-back:hover {
    background: var(--link-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(28, 68, 179, 0.3);
}

.btn-back i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-container {
        padding: 0 1rem;
    }
}

/* Homepage News Item Specific Styles */
.homepage-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    color: #333;
}

.homepage-news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.homepage-news-item .news-content-area {
    flex-grow: 1;
    padding-right: 1.5rem;
}

.homepage-news-item .news-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 0;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 3px;
}

.homepage-news-item .news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Inner radius for the image */
}

.homepage-news-item .news-thumbnail i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.homepage-news-item .news-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.homepage-news-item .news-content {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Ensure these styles don't get overridden on mobile for homepage items */
@media (max-width: 768px) {
    .homepage-news-item {
        flex-direction: row; /* Keep horizontal layout */
        padding: 1rem;
    }
    
    .homepage-news-item .news-content-area {
        padding-right: 1rem;
        margin-top: 0;
    }

    .homepage-news-item .news-thumbnail {
        width: 100px; /* Adjust size for mobile */
        height: 75px;
    }

    .homepage-news-item .news-title {
        font-size: 1rem;
    }

    .homepage-news-item .news-content {
        font-size: 0.85rem;
        color: #666;
    }
}

.product-card .product-title {
    text-align: center;
}

/* Contact Page Specific Styles for Rich Text Content */
.contact-page-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2:1 ratio for columns */
    gap: 3rem;
    align-items: flex-start;
}

.contact-details h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 20px;
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 0.2rem; /* Align icon with text */
}

.info-item a {
    color: var(--link-color);
    text-decoration: none;
}
.info-item a:hover {
    text-decoration: underline;
}

.wechat-qr {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.wechat-qr h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.wechat-qr p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Override global img styles specifically for the QR code */
.wechat-qr img {
    max-width: 180px !important; /* Set a fixed max-width */
    height: auto !important;
    display: inline-block !important; /* Override block and margin:auto */
    margin: 0 !important;
}

/* Responsive adjustments for contact page content */
@media (max-width: 768px) {
    .contact-page-content {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 2rem;
    }

    .wechat-qr {
        margin-top: 2rem;
    }
}

/* Extra small devices adjustments */
@media (max-width: 420px) {
    .company-main {
        font-size: 0.8rem; /* Further reduce font size */
    }
    .company-sub {
        font-size: 0.6rem;
    }
}
