/* --- START: Self-hosted Fonts Definition --- */

/* roboto-regular - 400 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap; /* 非常重要：优化加载性能 */
  src: local(''),
       url('/fonts/roboto-v48-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('/fonts/roboto-v48-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* roboto-500 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local(''),
       url('/fonts/roboto-v48-latin-500.woff2') format('woff2'),
       url('/fonts/roboto-v48-latin-500.woff') format('woff');
}
/* roboto-700 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local(''),
       url('/fonts/roboto-v48-latin-700.woff2') format('woff2'),
       url('/fonts/roboto-v48-latin-700.woff') format('woff');
}

/* poppins-500 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local(''),
       url('/fonts/poppins-v23-latin-500.woff2') format('woff2'),
       url('/fonts/poppins-v23-latin-500.woff') format('woff');
}
/* poppins-600 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local(''),
       url('/fonts/poppins-v23-latin-600.woff2') format('woff2'),
       url('/fonts/poppins-v23-latin-600.woff') format('woff');
}
/* poppins-700 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local(''),
       url('/fonts/poppins-v23-latin-700.woff2') format('woff2'),
       url('/fonts/poppins-v23-latin-700.woff') format('woff');
}

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #34495e;
    --white-color: #ffffff;
    --success-color: #28a745;
    --whatsapp-color: #25d366;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    /* ▼▼▼ MODIFIED: Added flex properties to ensure footer is always at the bottom ▼▼▼ */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    /* ▼▼▼ MODIFIED: main content will grow to fill available space ▼▼▼ */
    flex: 1 0 auto; 
    /* Keep this padding for the fixed navbar */
    padding-top: 120px; 
}

/* 这是一个现代 CSS 属性，能极大减少布局偏移 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* 如果 HTML 里写了 width/height，这个属性会让浏览器自动计算比例 */
    /* 即使图片还没加载出来，位置也会留好 */
    aspect-ratio: attr(width) / attr(height); 
}

html {
    scroll-behavior: smooth;
}
.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
}

/* 
 * 为标题设置默认的字体大小以满足浏览器最佳实践。
 * 特别为<section>等元素内的h1指定大小，以避免未来浏览器渲染不一致，并解决Lighthouse警告。
*/
h1,
article h1,
aside h1,
nav h1,
section h1 {
    font-size: 3rem;
}
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }


h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}
.section-title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 3rem auto;
    border-radius: 2px;
}
section {
    padding: 60px 0;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .3s ease;
    text-align: center;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #004494;
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* --- Navigation (Shared) --- */
.navbar .logo {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin-left: 60px;
}

.navbar .logo img {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}
.navbar ul {
    list-style: none;
    display: flex;
}
.navbar ul li {
    margin-left: 25px;
}
.navbar ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color .3s ease;
    padding-bottom: 5px;
}
.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* --- Footer (Shared) --- */
/* ▼▼▼ MODIFIED: Removed .page-wrapper dependency ▼▼▼ */
footer {
    background: var(--dark-color);
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin: 0;
}

/* --- WhatsApp Button (Shared) --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, .25);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}
@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* --- STYLES FOR INDEX.HTML --- */

.hero {
    position: relative;
    height: 100vh;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background-color: var(--dark-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, .7);
    z-index: 0;
}


.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero .btn {
    margin: 0 10px;
}
#why-choose-us {
    background-color: var(--light-color);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 2rem;
}
.feature-card {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.feature-card svg {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: .5rem;
    color: var(--dark-color);
}
#product-catalog {
    text-align: center;
}
#product-catalog p {
    max-width: 600px;
    margin: 1rem auto 2rem auto;
    font-size: 1.1rem;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}
.app-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 1.2rem;
    object-fit: contain;
}
.app-item-title {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.4;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}
.contact-info p {
    margin-bottom: 1rem;
}
.contact-info p strong {
    color: var(--dark-color);
}
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}
.contact-form textarea {
    resize: vertical;
    height: 120px;
}
.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

/* --- START: Section Title Link Styling --- */

/* 
 * 这个规则专门针对 #why-choose-us 区块内的 h2 标题中的链接。
 * 它可以让链接看起来和普通标题一样。
*/
#why-choose-us h2 a {
    color: inherit; /* 关键：让链接继承 h2 标签的颜色 (var(--dark-color)) */
    text-decoration: none; /* 关键：移除下划线 */
    transition: color 0.3s ease; /* 为鼠标悬停效果添加平滑过渡 */
}


#why-choose-us h2 a:hover {
    color: var(--primary-color); /* 鼠标悬停时变为网站的主题色 */
}

/* --- END: Section Title Link Styling --- */


/* --- STYLES FOR PRODUCTS.HTML --- */
.page-header {
    padding-top: 40px; 
    padding-bottom: 40px;
    background-color: var(--light-color);
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: .5rem;
}
.product-category {
    margin-bottom: 50px;
}
.product-category h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.image-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.gallery-item {
    width: 220px;
    height: 220px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sticky-quote-btn {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 999;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4);
    animation: pulse-quote-btn 2s infinite;
}
.sticky-quote-btn:hover {
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.6);
    transform: translateY(-50%) scale(1.05);
}
.sticky-quote-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}
@keyframes pulse-quote-btn {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.08); box-shadow: 0 15px 35px rgba(0, 86, 179, 0.5); }
    100% { transform: translateY(-50%) scale(1); }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}
.modal-content {
    background: var(--white-color);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
    animation: fadeIn .3s ease-in-out;
}
.modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.close-button:hover {
    color: #333;
}
.modal-form .form-group {
    margin-bottom: 15px;
}
.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}
.modal-form textarea {
    resize: vertical;
    height: 100px;
}
.modal-form button {
    width: 100%;
    font-size: 1.1rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.contact-cta-mobile {
    display: none;
}

/* --- NEW: Form Status Message Style --- */
.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

/* --- ▼▼▼ START: THANKS.HTML 样式 ▼▼▼ --- */
.thank-you-section {
    padding: 150px 0;
}
.thank-you-content {
    text-align: center;
}
.thank-you-content svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    fill: var(--success-color);
}
.thank-you-content h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}
.thank-you-content .thank-you-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
}
.thank-you-content .btn {
    margin-top: 2rem;
}
/* --- ▲▲▲ END: THANKS.HTML 样式 ▲▲▲ --- */


/* --- ▼▼▼ START: ABOUT.HTML 样式 ▼▼▼ --- */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.about-intro-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.gallery-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    aspect-ratio: 1 / 1; 
}
.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-image-wrapper:hover img {
    transform: scale(1.05);
}
.about-intro-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}
.stats-section {
    background-color: var(--light-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}
.stat-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 10px;
}

/* New Logo Carousel Styles */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.logo-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}
.logo-carousel-container::before,
.logo-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.logo-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white-color), rgba(255,255,255,0));
}
.logo-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white-color), rgba(255,255,255,0));
}
.logo-carousel-track {
    display: flex;
    width: max-content; /* Let it be as wide as its content */
    animation: scroll 40s linear infinite; /* Adjust duration (40s) for speed */
}
.logo-carousel-container:hover .logo-carousel-track {
    animation-play-state: paused;
}
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px; /* Spacing between logos */
}
.partner-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
/* End of Logo Carousel Styles */

.cta-section {
    background-color: var(--dark-color);
    color: var(--white-color);
    text-align: center;
}
.cta-section h2 {
    color: var(--white-color);
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

--- START OF FILE style.css ---

/* (保留原有所有CSS代码) */

/* ... (你的现有CSS代码) ... */

/* --- START: ABOUT.HTML - Meet the Experts Section Styles --- */

.our-expertise-section { /* 应用于包含专家信息的整个section */
    padding: 60px 0;
    background-color: #f9f9f9;
}

.our-expertise-section .section-heading { /* 该section内H2标题的样式 */
    text-align: center;
}

.our-expertise-section .intro-paragraph { /* 标题下方段落的样式 */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto; /* 居中段落本身 */
}

.team-grid {
    display: flex;
    justify-content: center; /* **核心：将内部的flex item (team-member) 水平居中** */
    gap: 30px; /* 如果有多个团队成员卡片，它们之间的间距 */
    flex-wrap: wrap; /* 允许在小屏幕上自动换行 */
}

.team-member {
    text-align: center; /* 将团队成员卡片内部的内容 (图片、文字) 居中 */
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    max-width: 450px; /* **核心：限制团队成员卡片的最大宽度** */
    width: 100%; /* 确保它能占据可用空间，直到达到max-width */
    margin-top: 20px; /* 顶部间距 */
    /* 移除任何margin: auto; 如果之前有的话，因为它现在是flex item */
}

.team-member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px auto; /* 将图片本身居中 */
    object-fit: cover;
    display: block; /* 确保 margin: auto 对图片生效 */
}

.team-member-name {
    margin-bottom: 5px;
    font-size: 1.2em;
    color: var(--dark-color);
}

.team-member-title {
    margin: 0 0 10px 0;
    font-style: italic;
    color: #555;
    font-size: 0.95em;
}

.team-member-description {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* --- START: ABOUT.HTML - Our Facility Section Styles --- */
.our-facility-section {
    padding: 60px 0;
}

.our-facility-section .section-heading {
    text-align: center;
}

.our-facility-section .facility-description,
.our-facility-section .facility-address {
    text-align: center;
    max-width: 800px; /* 限制段落宽度以提高可读性 */
    margin: 0 auto 1.5rem auto; /* 居中段落本身 */
    line-height: 1.6;
}

.our-facility-section .facility-address {
    margin-bottom: 2rem; /* 在地址和地图之间增加一些间距 */
}

.our-facility-section .map-container {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center; /* 确保iframe在容器内居中 */
}
.our-facility-section .map-container iframe {
    max-width: 100%; /* 确保地图在任何屏幕上都不会超出 */
    height: 450px; /* 可以根据需要调整高度 */
    border-radius: 8px; /* 给地图也加圆角，保持风格一致 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* 增加阴影效果 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .team-member {
        max-width: 90%; /* 在小屏幕上，卡片可以占据更多宽度 */
    }
}

/* --- END: ABOUT.HTML - Meet the Experts Section Styles --- */

/* --- START: ABOUT.HTML - Our Facility Section Styles --- */
.our-facility-section {
    padding: 60px 0;
}

/* 核心修复：为这个 section 里的 .container 容器应用 text-align: center */
/* 这会让容器内所有的内联元素（比如我们的按钮）都水平居中 */
.our-facility-section .container {
    text-align: center;
}


.our-facility-section .facility-description,
.our-facility-section .facility-address {
    max-width: 800px; 
    margin: 0 auto 1.5rem auto; 
    line-height: 1.6;
}

.our-facility-section .facility-address {
    margin-bottom: 2rem; 
}

.our-facility-section .map-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.our-facility-section .map-container iframe {
    max-width: 100%; 
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* 核心修复：为按钮本身添加上边距，使其与地图分开 */
.our-facility-section .btn {
    margin-top: 20px;
}
/* --- END: ABOUT.HTML - Our Facility Section Styles --- */


/* --- ▲▲▲ END: ABOUT.HTML 样式 ▲▲▲ --- */

/*  QUALITY COMMITMENT SECTION (ABOUT PAGE)  */
.quality-commitment-section {
    background-color: var(--light-color); /* Fondo gris claro para separarla visualmente */
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* En escritorio, muestra 2 columnas */
    gap: 30px;
    margin-top: 2rem;
}

.commitment-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.commitment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.commitment-card img {
    height: 60px; /* Un poco más pequeños que en el home para dar más espacio al texto */
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.commitment-card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.commitment-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    flex-grow: 1; /* Permite que los párrafos crezcan para alinear los fondos de las tarjetas */
}

/* --- Responsive Styles (Shared) --- */
@media (max-width: 992px) {
    .feature-grid, .app-grid .certifications-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .about-intro-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .about-intro-text {
        order: -1; 
    }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 768px) {
    .navbar .container { 
        flex-direction: column; 
        align-items: center; 
    }
    .navbar .logo { 
        margin-bottom: 10px; 
    }
    .navbar .logo img {
        height: 50px;
    }
    .navbar ul { 
        padding: 10px 0;
        margin-left: 0;
    }
    .navbar ul li { 
        margin: 0 10px; 
    }

    .commitment-grid {
        grid-template-columns: 1fr; /* Cambia a una sola columna en móviles */
    }
    
    h2 { font-size: 2rem; }
    .hero { height: auto; padding: 150px 0 80px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero .btn { width: 80%; margin-bottom: 10px; }
    .feature-grid { grid-template-columns: 1fr; }
    
    .page-header { padding-top: 160px; }
    .page-header h1 { font-size: 2rem; }
    .image-gallery-grid { justify-content: center; }
    .gallery-item { width: 150px; height: 150px; }
    
    .sticky-quote-btn { display: none; }
    .contact-cta-mobile { display: block; text-align: center; padding: 40px 20px; background-color: var(--light-color); }

    .whatsapp-float { width: 50px; height: 50px; right: 20px; bottom: 20px; }

    .stat-number { font-size: 2.5rem; }
    .partner-logo img { max-height: 45px; }
    .logo-carousel-container::before,
    .logo-carousel-container::after {
        width: 50px;
    }
}
@media (max-width: 480px) {
    .app-grid .certifications-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .app-item-title { font-size: 0.9rem; }
    .gallery-item { width: calc(50% - 10px); height: auto; aspect-ratio: 1 / 1; }
    .about-intro-gallery { grid-template-columns: 1fr; } 
}

/* --- ▼▼▼ START: BLOG & ARTICLE STYLES ▼▼▼ --- */

/* --- START: Blog Search and Category Filter Styles --- */

.blog-controls {
    margin-bottom: 40px;
}

.blog-search-wrapper {
    margin-bottom: 25px;
}

#blog-search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#blog-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* 在桌面端居中按钮 */
}

/* MODIFIED FOR SEO: Styles for <a> tag buttons */
.category-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--light-color);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline for links */
    margin-bottom: 5px;
}

.category-btn:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: var(--dark-color);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
}

.no-results-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.2rem;
    color: #777;
    display: none; /* 默认隐藏 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-categories {
        justify-content: flex-start; /* 在移动端左对齐按钮 */
    }
}

/* --- END: Blog Search and Category Filter Styles --- */

/* Blog Listing Page (blog.html) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    display: block;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.3;
}
.blog-card-title a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}
.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

.read-more-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.read-more-link:hover {
    color: #004494;
}

/* 专为竖版文章图片（人像模式）设计的新样式 */
.article-featured-image.is-portrait {
    width: auto; /* 允许宽度自适应高度 */
    max-width: 500px; /* 限制最大宽度，防止在桌面端过大 */
    max-height: 80vh; /* 限制最大高度为视窗高度的80% */
    display: block; /* 确保 margin: auto 生效 */
    margin-left: auto; /* 水平居中图片 */
    margin-right: auto; /* 水平居中图片 */
    object-fit: contain; /* 确保整张图片都可见，不裁剪 */
}

/* 用于文章内嵌、需要居中的图片 (简写版) */
.article-content .article-inline-image {
    display: block;
    width: 70%;
    max-width: 500px;
    margin: 1.5rem auto; /* 上下1.5rem，左右自动均分 */
    border-radius: 8px;
    height: auto;
}

/* Single Article Page (article.html) */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    /* 修改 padding：移除了顶部的 60px，因为 main 已经处理了 */
    padding: 0 20px 60px; 
}
.article-header {
    margin-bottom: 30px;
    text-align: center;
}
.article-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}
.article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}
.article-featured-image {
    width: 100%;
    max-height: 450px;      /* Correct: Constrains the image height */
    object-fit: cover;      /* Correct: Makes the image look good */
    border-radius: 8px;
    margin-top: 20px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ... (Keep styles for .article-content h2, p, ul, etc.) ... */

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center; /* Correct: Centers the "Back" button */
}
.back-to-blog-link {
    font-weight: 600;
    color: var(--dark-color); /* Correct: Button is visible on white background */
    text-decoration: none;
    transition: color 0.3s ease;
}
.back-to-blog-link:hover {
    color: var(--primary-color);
}
/* --- ▲▲▲ END: BLOG & ARTICLE STYLES ▲▲▲ --- */

/*  how-to-indentify-material  */
/* 新增：文章内容中的表格样式 */
.article-table-container {
    margin: 2rem 0;
    overflow-x: auto; /* 在小屏幕上可以横向滚动 */
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden; /* 确保圆角生效 */
}
.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.article-content thead th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.85rem;
}
.article-content tbody tr:last-child td {
    border-bottom: none;
}
.article-content tbody tr:hover {
    background-color: #f9f9f9;
}
/* --- 新增：产品页面描述文字样式 --- */
.product-category p {
    max-width: 750px;       /* 1. 限制最大宽度，避免文字行过长，提升可读性 */
    margin: 1rem auto 2.5rem; /* 2. 设置外边距：上下增加间距，左右自动(auto)来居中整个文本块 */
    text-align: center;       /* 3. 文字内容居中对齐，与上方的H2标题保持一致 */
    font-size: 1.1rem;        /* 4. 稍微增大字体，让描述更清晰 (可选) */
    line-height: 1.7;         /* 5. 增加行高，让文字不那么拥挤 */
    color: var(--text-color); /* 6. 确保使用网站定义的标准文字颜色 */
}

/* 调整一下产品分类标题的下边距，为描述文字留出空间 */
.product-category h2 {
    margin-bottom: 0; /* 原来是20px，现在由p标签的margin-top来控制间距 */
}

.article-content a {
    color: var(--primary-color); /* 保持你网站的主题色 */
    text-decoration: underline;    /* 保留下划线，让用户知道这是链接 */
    font-weight: 500;          /* 可以稍微加粗一点 */
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--dark-color); /* 鼠标悬停时变色 */
}

.load-more-container {
    text-align: center;
    margin-top: 40px; /* Adds space between the grid and the button */
}

/* Optional: hide button by default, JS will show it if needed */
#loadMoreBtn {
    display: none;
}


html {
    scroll-padding-top: 140px; /* 偏移量 = 导航栏高度(120px) + 额外间距(20px) */
}

/* 用于文章内浮动图片的样式 */
.article-content .float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
    max-width: 150px; /* 限制logo的最大宽度，避免太大 */
}

/* 响应式调整：在小屏幕上取消浮动，让图片居中显示 */
@media (max-width: 580px) {
    .article-content .float-right {
        float: none;
        display: block;
        margin: 20px auto;
    }
    .article-content .article-inline-image {
        width: 100%; /* 在小屏幕上使用100%宽度 */
    }
}

/* CERTIFICATIONS SECTION STYLES  */
.certifications-section {
    background-color: var(--white-color); /* 使用白色背景与浅灰色块形成对比 */
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 桌面端显示4列 */
    gap: 30px; /* Logo之间的间距 */
    align-items: start;
    justify-content: center;
    margin-top: 2rem;
}

.certification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.certification-item img {
    height: 65px; /* 控制Logo的高度，宽度将自动缩放 */
    width: auto;
    margin-bottom: 15px; /* Logo和文字之间的距离 */
    object-fit: contain;
}

.certification-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

/* --- ▼▼▼ START: PRODUCT PAGE CERTIFICATION ICONS STYLES ▼▼▼ --- */

.product-cert-icons {
    display: flex; /* 使用flex布局使其水平排列 */
    justify-content: center; /* 居中对齐图标组 */
    align-items: center; /* 垂直居中 */
    gap: 20px; /* 图标之间的间距 */
    margin-top: 0.75rem; /* 向上移动，减少与标题的默认间距 */
}

.cert-icon-item img {
    height: 35px; /* 设置一个统一的、较小的高度，显得更精致 */
    width: auto;  /* 宽度自动适应，防止变形 */
    opacity: 0.8; /* 默认轻微半透明 */
    transition: opacity 0.3s ease, transform 0.3s ease; /* 添加平滑过渡效果 */
}

.cert-icon-item img:hover {
    opacity: 1; /* 鼠标悬停时完全不透明 */
    transform: scale(1.1); /* 轻微放大，增加交互感 */
}

.product-category-header {
    display: flex;
    flex-direction: column; /* 让标题和图标垂直堆叠 */
    align-items: center;    /* 居中对齐 */
    padding-bottom: 20px;   /* 在分隔线下方留出空间 */
    margin-bottom: 20px;  /* 替代原来 h2 的 margin-bottom */
    border-bottom: 2px solid #eee; /* 在这里应用分隔线！ */
}

/* --- ▲▲▲ END: PRODUCT PAGE CERTIFICATION ICONS STYLES ▲▲▲ --- */

/* --- ▼▼▼ START: PRIVACY POLICY FORCE OVERRIDE STYLES ▼▼▼ --- */

#privacy-content .article-content * {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1rem !important;
    color: var(--text-color) !important;
    background: transparent !important;
}

/* 现在，我们为特定元素（如标题、链接）重新设定样式，同样使用 !important */

#privacy-content .article-content h1,
#privacy-content .article-content h2,
#privacy-content .article-content h3 {
    font-family: 'Poppins', sans-serif !important;
    color: var(--dark-color) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

#privacy-content .article-content h1 { font-size: 2.2rem !important; }
#privacy-content .article-content h2 { font-size: 1.6rem !important; }
#privacy-content .article-content h3 { font-size: 1.3rem !important; }

/* 强制加粗标签（<b> 和 <strong>）只加粗，不改变字体 */
#privacy-content .article-content b,
#privacy-content .article-content strong {
    font-family: inherit !important; /* 继承父元素的字体 */
    color: var(--dark-color) !important; /* 颜色可以深一点以示强调 */
}

/* 强制链接使用您网站的品牌颜色 */
#privacy-content .article-content a {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

#privacy-content .article-content a:hover {
    color: var(--dark-color) !important;
}

/* 强制列表使用我们定义的样式 */
#privacy-content .article-content ul {
    list-style-type: disc !important;
    padding-left: 25px !important;
    margin-bottom: 1rem !important;
}
#privacy-content .article-content li {
    margin-bottom: 0.5rem !important;
}

/* 忽略Termly生成器使用的 bdt 标签的任何特定样式 */
#privacy-content .article-content bdt {
    font-family: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
}

/* --- START: Application Page Styles --- */

.application-category {
    padding-bottom: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid #f0f0f0; /* 分隔线，比产品页的分隔线更柔和 */
}

/* 最后一个分类不需要底部分隔线 */
.application-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.application-category h2 {
    text-align: left; /* 标题左对齐，而不是居中 */
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.application-category p {
    text-align: left;
    max-width: 800px; /* 限制段落宽度以提高可读性 */
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.application-cta {
    text-align: left;
    margin-top: 2.5rem; /* 按钮与图片网格的间距 */
}


/* 复用您已有的应用图片网格样式，这里无需重复添加，
   但如果之前的代码被删除了，请确保以下样式存在 */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 在大屏上提供更宽的图片空间 */
    gap: 25px;
}

.application-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.application-item img {
    width: 100%;
    height: 200px; /* 图片高度增加，使其更突出 */
    object-fit: cover;
    display: block;
}

.application-caption {
    padding: 15px 10px;
    font-size: 1rem; /* 标题文字稍大 */
    font-weight: 500;
    color: var(--text-color);
}


/* --- END: Application Page Styles --- */

.grecaptcha-badge { 
    /* 将 reCAPTCHA 标志向上移动，使其位于 WhatsApp 按钮的上方 */
    bottom: 110px !important; 
    }

/* --- Featured Article Icon Style --- */
/* Style the meta container to align the icon and text */
.blog-card.featured .blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px; /* Adds a small space between the icon and the text */
}

/* Style the icon itself */
.blog-card.featured .featured-icon {
    display: inline-block; /* 关键修复：强制图标作为行内块元素，防止其强制换行 */
    flex-shrink: 0;       /* 防止图标在空间不足时被压缩 */
    width: 25px;
    height: 25px;
    fill: #FF7B15;
    transform: translateY(-1px);
}


/* 1. 给父元素（卡片）创建一个定位环境 */
.app-item {
    position: relative; /* 这一行至关重要 */
}

/* 2. 创建一个“隐形”的链接层，让它覆盖整个父元素 */
.app-item .card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;  /* 确保它在最上层，可以被点击 */
    background-color: rgba(0,0,0,0); /* 完全透明 */
    /* 为了SEO，我们把文字藏起来，而不是不写 */
    text-indent: -9999px; 
    overflow: hidden;
}

/* --- START: Landing Page Header Fix --- */
/* 专门为着陆页的导航栏容器设置样式 */
.landing-page-header .container {
    display: flex;
    justify-content: space-between; /* 核心：让内部元素两端对齐 */
    align-items: center;
    width: 100%; /* 确保容器占满宽度 */
}
/* 专门为着陆页应用卡片内的图片设置样式 */
#applications .commitment-card img {
    width: 100%;                /* 图片宽度撑满卡片 */
    height: 200px;               /* 设置一个固定的高度 */
    object-fit: cover;           /* 自动裁剪并填充，不变形 */
    border-radius: 8px 8px 0 0;  /* 顶部两个角设置为圆角 */
    margin-bottom: 20px;         /* 增加图片和文字之间的距离 */
}

/* --- FAQ Accordion Styles --- */
.faq-accordion {
    max-width: 800px;
    margin: 2rem auto 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: var(--white-color);
    border: none;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-color);
}

.faq-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevents icon from shrinking */
    margin-left: 15px;
}

/* Style for when the FAQ is active/open */
.faq-item.active .faq-question {
    color: var(--primary-color);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #fafafa;
}

.faq-answer p {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
/* --- END: FAQ Accordion Styles --- */

/* --- FIX: Prevent Meta Text from Wrapping --- */
.blog-card-meta span {
    white-space: nowrap;      /* 关键：禁止文字换行 */
    overflow: hidden;         /* 可选但推荐：如果文字太长，则隐藏溢出部分 */
    text-overflow: ellipsis;  /* 可选但推荐：用省略号(...)表示被截断的文字 */
}

/* --- START: PRODUCT DETAIL PAGE STYLES --- */

.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem; /* Increased gap for better spacing */
    padding: 60px 0; /* Add padding to the top and bottom */
}

.product-images {
    flex: 1 1 50%;
    max-width: 50%;
}

.product-images .main-image {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    aspect-ratio: 1 / 1; /* Makes the image container a perfect square */
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
}

.thumbnail-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd; /* Softer border color */
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.thumbnail-gallery img:hover, .thumbnail-gallery img.active {
    border-color: var(--primary-color);
}

.product-info {
    flex: 1 1 40%; /* Slightly smaller flex-basis */
}

.product-info h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left; /* Align title to the left */
}

.product-price {
    font-size: 2rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.product-description {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-description ul {
    list-style-position: inside;
    padding-left: 10px;
}

.product-stock-level {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.product-stock-level strong {
    color: var(--dark-color);
    margin-right: 8px;
}

/* Responsive adjustments for the detail page */
@media (max-width: 768px) {
    .navbar .container { 
        flex-direction: column; 
        align-items: flex-start; /* 改为左对齐 */
        padding-left: 0;
        padding-right: 0;
    }
    
    .navbar .logo { 
        margin-left: 20px; /* Logo 左侧留点空隙 */
        margin-bottom: 5px; 
    }

    /* 让菜单在手机上横向滑动，而不是堆成一坨 */
    .navbar nav {
        width: 100%;
        overflow-x: auto; /* 允许横向滚动 */
        -webkit-overflow-scrolling: touch; /* 丝滑滚动 */
        padding-bottom: 5px; /* 隐藏滚动条及其丑陋的间距 */
    }

    .navbar ul { 
        display: flex;
        flex-wrap: nowrap; /* 禁止换行 */
        padding: 5px 20px; /* 左右留白 */
        margin-left: 0;
        width: max-content; /* 让宽度根据内容自动撑开 */
    }
    
    .navbar ul li { 
        margin: 0 15px 0 0; /* 只在右侧加间距 */
        flex-shrink: 0; /* 防止文字折行 */
    }
    
    /* 稍微把字号调大一点点方便手指点 */
    .navbar ul li a {
        font-size: 0.95rem; 
        white-space: nowrap;
    }
}

/* --- END: PRODUCT DETAIL PAGE STYLES --- */

/* --- START: PRODUCT DETAIL - FULL DETAILS SECTION --- */

.product-full-details {
    padding: 60px 0;
    background-color: var(--light-color); /* 使用浅灰色背景以区分 */
    border-top: 1px solid #e0e0e0;
}

.product-full-details h2 {
    text-align: left; /* 标题左对齐 */
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-full-details p {
    text-align: left;
    max-width: 800px; /* 限制段落宽度以提高可读性 */
    margin-bottom: 2.5rem;
}

.detail-gallery-grid {
    display: flex;
    flex-direction: column; /* Stacks images vertically */
    align-items: center;   /* Centers the column of images */
    gap: 25px;
}

.detail-gallery-item {
    width: 100%;
    max-width: 800px; /* Ensures images don't get too wide on large screens */
}

.detail-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-gallery-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* --- END: PRODUCT DETAIL - FULL DETAILS SECTION --- */

/* --- Styles for Clickable Product Gallery Items --- */

/* 1. Set up the container for the hover effect */
.gallery-item.clickable {
    position: relative; /* This is essential for the overlay positioning */
    cursor: pointer;
    overflow: hidden; /* Keeps the scaling effect contained */
}

/* 2. Style the link to cover the entire item */
.gallery-item.clickable a {
    display: block;
    position: relative;
    text-decoration: none;
}

/* 3. Create the overlay that appears on hover */
.gallery-item.clickable a::after {
    content: 'View Details'; /* The text you want to show */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    
    /* Center the text */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Animation setup */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* 4. A subtle zoom effect for the image on hover */
.gallery-item.clickable img {
    transition: transform 0.3s ease;
}

/* 5. Trigger the effects when the user hovers */
.gallery-item.clickable:hover img {
    transform: scale(1.05); /* Slightly zoom in the image */
}

.gallery-item.clickable:hover a::after {
    opacity: 1; /* Show the overlay */
}

/* --- Styles for the Finished Products CTA Banner --- */

/* Makes the entire banner a clickable, clean link */
.cta-banner-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Ensures the link takes up the full banner space */
}

.cta-banner {
    background-color: #f1f8ff; /* A light, attention-grabbing blue */
    border-left: 5px solid #007bff; /* A prominent blue left border */
    border-radius: 8px;
    padding: 20px 25px;
    margin: 2.5rem 0 1rem 0; /* Adds space above and below the banner */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease-in-out;
}

.cta-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
}

.cta-banner h4 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: #0056b3; /* A darker blue for the heading */
}

.cta-banner p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

.cta-banner p strong {
    color: #007bff; /* Highlight the key benefits */
}

/* --- Styles for the Homepage Featured Products Section --- */

/* Ensures the grid centers its items perfectly, which looks great for a single row */
#featured-finished-products .image-gallery-grid {
    justify-content: center;
}

/* --- START: Style for Featured Finished Products Title Link --- */

/* 
 * This rule specifically targets the link within the h2 of the 
 * #featured-finished-products section, making it look like the main title.
*/
#featured-finished-products h2 a {
    color: inherit;           /* Inherit the h2's color (var(--dark-color)) */
    text-decoration: none;    /* Remove the underline */
    transition: color 0.3s ease; /* Add a smooth transition for the hover effect */
}

/* 
 * Adds a hover effect, providing clear visual feedback that it's clickable.
*/
#featured-finished-products h2 a:hover {
    color: var(--primary-color); /* On hover, change to the site's primary color */
}

/* --- END: Style for Featured Finished Products Title Link --- */

/* --- START: Article Call-to-Action (CTA) Block Styles --- */

.article-cta-block {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 25px;
    background-color: var(--light-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 2.5rem 0; /* Adds space above and below the block */
    align-items: center;
}

.article-cta-block img {
    flex: 1 1 200px; /* Flex properties for responsiveness */
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.article-cta-block .cta-content {
    flex: 2 1 300px; /* Allows content to take more space */
}

.article-cta-block h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.article-cta-block p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.article-cta-block .btn {
    font-size: 1rem;
}

/* Responsive adjustments for the CTA block */
@media (max-width: 600px) {
    .article-cta-block {
        flex-direction: column; /* Stack image and content vertically on small screens */
        text-align: center;
    }

    .article-cta-block img {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* --- END: Article Call-to-Action (CTA) Block Styles --- */

/* --- GLOBAL FIX: Ensure all buttons inside articles have white text --- */
/* 修复：文章内的按钮强制使用白色字体，覆盖默认的蓝色链接样式 */
.article-content .btn-primary,
.article-content a.btn-primary {
    color: var(--white-color) !important; /* 强制白色 */
    text-decoration: none !important;     /* 去掉下划线 */
}

/* 确保鼠标悬停时也是白色 */
.article-content .btn-primary:hover,
.article-content a.btn-primary:hover {
    color: var(--white-color) !important;
}

/* --- START: MIL-SPEC WEBBING PAGE STYLES --- */

/* Page container for two-column layout */
.page-container {
    display: flex;
    flex-wrap: wrap; /* Allows sidebar to wrap on smaller screens */
    gap: 2rem;
    max-width: 1100px; /* Use the same max-width as your .container */
    margin: 0 auto;
    padding: 2rem 20px; /* Use the same side padding as your .container */
}

/* Main content area (left side) */
.main-content {
    flex: 3; /* Takes up more space */
    min-width: 300px; 
}

/* Sidebar (right side) */
.sidebar {
    flex: 1; /* Takes up less space */
    position: sticky;
    top: 140px; /* Sticks below your fixed navbar (120px height + 20px space) */
    align-self: flex-start; 
    border: 1px solid #eee;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px; /* Add rounded corners to match your site's style */
}

/* Styles for each specification block */
.spec-block {
    margin-bottom: 3rem;
}
.spec-block h2 {
    text-align: left; /* Align spec titles to the left */
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.spec-block ul {
    list-style: disc;
    padding-left: 20px;
    line-height: 1.8;
}

/* New style for the images inside each spec block */
.spec-image {
    display: block; /* Ensures margin auto works correctly */
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    /* This line is updated to center the image */
    margin: 0 auto 1.5rem auto; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}


/* Sidebar specific styles */
.sidebar h3 {
    text-align: left; /* Align sidebar titles to the left */
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.sidebar-nav li a {
    display: block;
    padding: 0.6rem 0.5rem; /* Add some padding for easier clicking */
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease;
    border-radius: 4px; /* Add slight rounding */
}
.sidebar-nav li a:hover {
    background-color: #e9e9e9;
}
.sidebar-nav li:last-child a {
    border-bottom: none; /* Remove border from the last item */
}

/* ▼▼▼ FIX: Style for the sidebar contact links ▼▼▼ */
.sidebar .contact-info p {
    margin-bottom: 1rem;
}
.sidebar .contact-info a {
    color: var(--text-color); /* Make the link color the same as normal text */
    text-decoration: none; /* Remove the underline */
    font-weight: normal; /* Ensure it's not bold */
}
.sidebar .contact-info a:hover {
    color: var(--primary-color); /* On hover, change to the primary color to show it's clickable */
    text-decoration: underline; /* Add underline on hover for clarity */
}


/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
    .page-container {
        flex-direction: column;
    }
    .sidebar {
        position: static; /* Unstick the sidebar */
        width: 100%;
        margin-top: 2rem;
    }
}

/* --- END: MIL-SPEC WEBBING PAGE STYLES --- */

/* --- START: Sidebar Dropdown Menu Styles --- */

.sidebar-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.sidebar-dropdown .dropdown-toggle:hover {
    background-color: #e9e9e9;
}

.sidebar-dropdown .dropdown-toggle span {
    color: var(--primary-color);
    font-weight: 500;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    fill: #555;
    transition: transform 0.3s ease;
}

.sidebar-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.dropdown-menu.open {
    max-height: 200px; /* Adjust as needed to fit all items */
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem; /* Indent sub-items */
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
}

.dropdown-menu li a:hover {
    background-color: #e9e9e9;
    color: var(--primary-color);
}
/* --- END: Sidebar Dropdown Menu Styles --- */


/* --- START: Sub-Type and Spec Table Styles --- */

.spec-subtype {
    margin-bottom: 1.5rem;
}

.spec-table {
    width: 100%;
    max-width: 500px; /* Limit table width */
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Note: this needs overflow:hidden to work perfectly */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.spec-table th, .spec-table td {
    padding: 12px 15px;
    text-align: left;
}

.spec-table thead th {
    background-color: #f7f7f7;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.spec-table tbody tr {
    border-top: 1px solid #e0e0e0;
}

.spec-table tbody td:first-child {
    font-weight: 500;
    color: #333;
    width: 30%; /* Give a fixed width to the label column */
}

/* --- END: Sub-Type and Spec Table Styles --- */

/* --- START: MIL-SPEC 4088 Sub-Type Image Layout --- */

/* 1. Turn the subtype container into a flexbox layout */
.spec-subtype {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    align-items: center; /* Vertically center the table and image */
    gap: 1.5rem; /* Space between the table and the image */
    margin-bottom: 2rem; /* A bit more space between each type */
}

/* 2. Define how the table should behave in the flex layout */
.spec-subtype .spec-table {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    margin: 0; /* Remove default margins if any */
}

/* 3. Style the new image next to the table */
.subtype-image {
    flex: 0 0 180px;       /* Do not grow or shrink, set a fixed base width of 180px */
    width: 180px;          /* Explicitly set the width */
    height: 180px;         /* Set a fixed height that's close to the table's height */
    object-fit: cover;     /* Crucial: This crops the image to fit the container without distorting it */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

/* 4. Responsive behavior for small screens */
@media (max-width: 650px) {
    .spec-subtype {
        flex-direction: column; /* Stack table and image vertically */
    }
    .subtype-image {
        order: -1; /* Display the image above the table on mobile */
        margin-bottom: 1rem;
        max-width: 300px; /* Allow image to be a bit bigger when stacked */
    }
}

/* --- END: MIL-SPEC 4088 Sub-Type Image Layout --- */

/* --- START: Image Lightbox Styles --- */

/* --- Lightbox Zoomable Image Styles --- */
.zoomable-image {
    cursor: zoom-in; /* 鼠标变成放大镜 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zoomable-image:hover {
    transform: scale(1.02); /* 鼠标悬停时轻微放大 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* 增加阴影增加层次感 */
}

/* Add a zoom-in cursor to all clickable images on the mil-spec page */
.main-content .spec-image, 
.main-content .subtype-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.main-content .spec-image:hover, 
.main-content .subtype-image:hover {
    transform: scale(1.03); /* Add a subtle hover effect */
}

/* The modal background */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Ensure it's on top of all other content */
    padding: 20px;
    animation: lightboxFadeIn 0.3s ease;
}

/* The enlarged image */
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* The close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: #bbb;
}

/* Simple fade-in animation */
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* --- END: Image Lightbox Styles --- */

/* --- START: LANDING PAGE ENHANCEMENT STYLES --- */

/* 1. Hero Image Styles */
.landing-hero-image {
    width: 100%;
    height: auto;
    max-height: 400px; /* Control the max height on large screens */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 2. Trust Badges Section */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.badge-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
}

.badge-text {
    font-weight: 500;
    color: var(--dark-color);
    line-height: 1.3;
}

/* 3. Common Applications Showcase Section */
.app-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.app-showcase-item {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    text-align: center;
    border: 1px solid #eee;
}

.app-showcase-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.app-showcase-caption {
    padding: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* 4. Responsive adjustments for these new sections */
@media (max-width: 900px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 500px) {
    .trust-badges-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* --- END: LANDING PAGE ENHANCEMENT STYLES --- */