/* 强制显示内容（修复 GSAP 动画可能导致的隐形问题） */
.hero-title,
.hero-subtitle,
.hero-buttons,
.section-header,
.about-text,
.about-image,
.interactive-map-wrapper,
.filter-buttons,
.product-card,
.solution-card,
.coop-card,
.brand-item,
.contact-form-wrapper,
.contact-info-wrapper {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* 变量定义 */
:root {
    --color-bg: #000000;
    --color-bg-dark: #111827;
    --color-bg-light: #1f2937;
    --color-text-main: #ffffff;
    --color-text-muted: #9ca3af;
    --color-primary: #ffffff;
    --color-primary-inverse: #000000;
    --transition-base: all 0.3s ease;
}

/* 基础重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. 工具类 (Utilities)
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding-top: 0.5rem;
    padding-bottom: 5rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

.bg-black {
    background-color: var(--color-bg);
}

.bg-dark-gray {
    background-color: var(--color-bg-dark);
}

/* 分割线与标题通用 */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    text-align: center;
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.divider {
    width: 5rem;
    height: 4px;
    background-color: white;
    margin: 0 auto 1.5rem;
}

.section-desc {
    position: relative;
    text-align: center;
    color: var(--color-text-muted);
}

/* =========================================
   3. 按钮样式
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-inverse);
}

.btn-primary:hover {
    background-color: #e5e5e5;
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-inverse);
}

/* =========================================
   4. 导航栏 (Navbar)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    z-index: 50;
    padding: 1rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 2.5rem;
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-main);
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    color: #d1d5db;
}

/* 下拉菜单 */
.nav-item-group {
    position: relative;
    display: inline-block;
}

.nav-item-group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: var(--color-bg-dark);
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transform-origin: top left;
    transition: var(--transition-base);
    padding: 0.5rem 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.dropdown-menu a:hover {
    background-color: var(--color-bg-light);
    color: white;
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    height: 0;
    overflow: hidden;
    background-color: var(--color-bg-dark);
    transition: height 0.3s ease;
}

.mobile-menu.open {
    height: auto;
}

.mobile-menu-inner {
    padding: 1rem;
}

.mobile-link {
    display: block;
    padding: 0.75rem;
    font-weight: 500;
    color: white;
    border-radius: 0.375rem;
}

.mobile-link:hover {
    background-color: var(--color-bg-light);
}

.mobile-dropdown-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, black);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 16.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down-indicator a {
    color: white;
    font-size: 2rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }

    .hero-buttons {
        flex-direction: row;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 25%);
    }
}

/* =========================================
   6. 关于我们 (About & Stats)
   ========================================= */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item h3 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--color-text-muted);
}

.about-image img {
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .about-content-wrapper {
        flex-direction: row;
    }

    .about-text,
    .about-image {
        width: 50%;
    }
}

/* =========================================
   7. 左右布局 (Left-Right Layout)
   ========================================= */
.left-right-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .left-right-layout {
        flex-direction: row;
        gap: 4rem;
        align-items: center;
    }
}

.left-right-image,
.left-right-image-wrapper {
    flex: 1;
    min-width: 0;
}

.left-right-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 左右布局中的交互地图 */
.left-right-image-wrapper .interactive-map-wrapper {
    max-width: none;
    margin: 0;
}

.left-right-content {
    flex: 1;
    min-width: 0;
}

.left-right-content h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.divider-left {
    width: 5rem;
    height: 4px;
    background-color: white;
    margin: 0 0 1.5rem 0;
}

.section-desc-left {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* =========================================
   8. 交互式地图
   ========================================= */
.interactive-map-wrapper {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
}

.map-image {
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.interactive-point {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.interactive-point .point-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    animation: pulse 2s infinite;
}

.interactive-point:hover .point-icon {
    animation: none;
    transform: scale(1.2);
    transition: transform 0.3s;
}

.interactive-point .point-label {
    margin-top: 0.5rem;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.large.point-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
}

/* 地图点颜色 */
.color-blue {
    background-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.color-purple {
    background-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.color-red {
    background-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.color-green {
    background-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.color-yellow {
    background-color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.5);
}

.color-teal {
    background-color: #14b8a6;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.5);
}

.color-orange {
    background-color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
}

.color-cyan {
    background-color: #0891b2;
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.5);
}

.color-indigo {
    background-color: #4f46e5;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   9. 产品介绍 (核心布局与逻辑)
   ========================================= */

/* 筛选按钮 */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: var(--color-bg-light);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-btn:hover {
    background-color: #374151;
}

.filter-btn.active {
    background-color: white;
    color: black;
}

/* 产品网格容器 */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 移动端单列 */
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 产品卡片样式 */
.product-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 产品图片容器 */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 16rem;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* 产品遮罩层 */
.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

/* 产品文本信息 */
.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.75rem;
}

.product-info p {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
}

/* --- 核心筛选逻辑 (优先级最高) --- */

/* 1. 默认状态：隐藏第4个及之后的产品 */
.product-card:nth-child(n+4) {
    display: none;
}

/* 2. Show All 状态：显示所有卡片，但前提是它没被筛选掉 */
.product-grid.show-all .product-card:not(.is-filtered-out) {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

/* 3. 筛选排除状态：绝对隐藏（解决筛选与加载更多的冲突） */
.product-card.is-filtered-out {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   10. 产品案例 (Solutions & Marquee)
   ========================================= */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 滚动视口 */
.marquee-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 案例卡片通用样式 */
.solution-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;

    /* 适配滚动布局的固定宽度 */
    width: 420px;
    margin: 0 20px;
    flex-shrink: 0;
}

.solution-card:hover {
    transform: translateY(-15px);
    border-color: #fff;
    background: #222;
}

/* 案例图片 */
.solution-card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #2a2a2a;
}

.solution-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover img {
    transform: scale(1.1);
}

/* 案例卡片文本 */
.solution-card h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
}

.solution-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: normal;
}

/* 描述文字折叠效果 */
.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.link-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.link-with-icon:hover {
    color: #d1d5db;
}

/* =========================================
   11. 品牌展示
   ========================================= */
/* 品牌网格 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.brand-item {
    background-color: var(--color-bg-dark);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-placeholder {
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   12. 联系我们 (Contact)
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-form-wrapper {
    background-color: black;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--color-bg-light);
    border: 1px solid #374151;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: white;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--color-text-muted);
}

/* =========================================
   13. 页脚 (Footer)
   ========================================= */
.main-footer {
    padding: 3rem 0;
    background-color: black;
    border-top: 1px solid #374151;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    height: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--color-text-muted);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* =========================================
   14. 模态框 (Modals)
   ========================================= */
.modal,
.details-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.is-active,
.details-modal.is-active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--color-bg-dark);
    width: 90%;
    max-width: 56rem;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0.5rem;
    z-index: 110;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 针对弹窗（Modal）内部标题的深度美化 */
#product-modal-title {
    font-size: 2rem;
    /* 显著增大字号 */
    font-weight: 800;
    /* 极粗体 */
    color: #ffffff;
    /* 纯白文字 */
    line-height: 1.3;
    margin-bottom: 25px;
    /* 与下方图片的间距 */
    padding-left: 15px;
    /* 为左侧装饰条留空 */
    border-left: 6px solid #007bff;
    /* 蓝色主题装饰条，瞬间提升高级感 */
    letter-spacing: 1px;
    /* 增加字间距 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* 轻微阴影，防止背景干扰 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    #product-modal-title {
        font-size: 1.6rem;
        border-left-width: 4px;
    }
}

/* 针对弹窗（Modal）内部标题的深度美化 */
#solution-modal-title {
    font-size: 2rem;
    /* 显著增大字号 */
    font-weight: 800;
    /* 极粗体 */
    color: #ffffff;
    /* 纯白文字 */
    line-height: 1.3;
    margin-bottom: 25px;
    /* 与下方图片的间距 */
    padding-left: 15px;
    /* 为左侧装饰条留空 */
    border-left: 6px solid #007bff;
    /* 蓝色主题装饰条，瞬间提升高级感 */
    letter-spacing: 1px;
    /* 增加字间距 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* 轻微阴影，防止背景干扰 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    #solution-modal-title {
        font-size: 1.6rem;
        border-left-width: 4px;
    }
}

.close-modal-btn,
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
}

.modal-body-padding {
    padding: 2.5rem;
}

/* 详情弹窗特定样式 */
.details-modal .modal-content {
    padding: 40px;
    border-radius: 24px;
    background: #1a1a1a;
    max-width: 650px;
}

#modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 20px 0;
    padding-left: 15px;
    border-left: 4px solid #007bff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#modal-icon {
    width: 100%;
    max-height: 350px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

#modal-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-text {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* =========================================
   15. 返回顶部按钮
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: white;
    color: black;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 90;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 图片网格容器 */
.contact-image-grid {
    display: flex;
    flex-direction: column;
    /* 垂直排列，如果想横向排列可改为 row */
    gap: 15px;
    /* 图片之间的间距 */
    margin-top: 20px;
}

/* 单个图片容器 */
.contact-image-item {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 图片样式 */
.contact-image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* 鼠标悬停效果 */
.contact-image-item:hover img {
    transform: scale(1.05);
    /* 悬停时稍微放大 */
}

/* 图片下方的文字标注（可选） */
.contact-image-item p {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    margin: 0;
    padding: 5px 10px;
    font-size: 13px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* 第三行容器：让版权和图片横向分布 */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    /* 版权在左，图片在右 */
    align-items: flex-end;
    /* 底部对齐 */
    margin-top: 15px;
}

/* 横向图片容器 */
.footer-image-horizontal {
    display: flex;
    /* 关键：让内部图片横向排列 */
    gap: 20px;
    /* 图片之间的间距 */
}

/* 单个图片项 */
.footer-img-item {
    text-align: center;
    position: relative;
    /* 必须设置，让文字相对于此容器定位 */
    text-align: center;
    width: 150px;
    cursor: pointer;
    margin: 0 20px;
    /* 0表示上下无边距，20px表示左右各有20px的间距，总间距就是40px */
    display: inline-block;
    /* 确保 margin 生效 */
    vertical-align: bottom;
}

.footer-img-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    /* 给二维码加个淡边框 */
    margin-bottom: 5px;
}

.footer-img-item span {
    display: block;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* 响应式调整：手机端改为上下堆叠 */
@media (max-width: 768px) {
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-image-horizontal {
        width: 100%;
        justify-content: flex-start;
    }
}

/* 悬停显示的文本样式 */
.tooltip-text {
    position: absolute;
    bottom: 110%;
    /* 出现在二维码上方（二维码高度+间距） */
    left: 50%;
    transform: translateX(-50%);
    /* 水平居中 */
    background-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    /* 初始隐藏 */
    visibility: hidden;
    transition: all 0.3s ease;
    /* 平滑过渡动画 */
    z-index: 10;
}

/* 绘制文字下方的小箭头 */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.8) transparent transparent transparent;
}

/* 鼠标悬停逻辑 */
.footer-img-item:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
    /* 悬停时稍微往上浮动一点，增加动态感 */
}

/* 二维码及标签基础样式 */
.footer-img-item img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.img-label {
    margin-top: 5px;
    font-size: 12px;
    color: #ffffff;
}

/* 保持横向排布 */
.footer-image-horizontal {
    display: flex;
    gap: 25px;
}

.footer-copyright {
    text-align: center;
    /* 使内部的 p 标签文字居中 */
    width: 100%;
    /* 确保容器占满全宽 */
    margin-top: 20px;
    /* 可选：与上方内容保持间距 */
}

.footer-copyright p {
    margin: 0;
    /* 清除 p 标签默认的外边距 */
    color: #999;
    /* 可选：调整版权文字颜色 */
    font-size: 14px;
    /* 可选：调整字号 */
}

/* 人工客服容器 */
.customer-service-box {
    position: relative;
    display: inline-block;
}

/* 悬停预览的小窗样式 */
.qr-hover-preview {
    position: absolute;
    bottom: 120%;
    /* 在按钮上方弹出 */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    z-index: 100;
}

.qr-hover-preview img {
    width: 120px;
    /* 二维码大小 */
    height: 120px;
    display: block;
}

.qr-hover-preview p {
    color: #333;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 0;
}

/* 箭头小三角 */
.qr-hover-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* 悬停触发显示 */
.customer-service-box:hover .qr-hover-preview {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-card:hover .product-info h3 {
    color: #007bff;
}

/* 限制正文描述的行数，避免抢了标题的风头 */
.product-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    /* 超过3行显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 按钮容器：实现右对齐 */
.modal-footer-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    /* 使按钮靠右 */
    margin-top: 20px;
    /* 与上方文字保持间距 */
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* 可选：加一条淡淡的分割线 */
}

/* 弹窗内按钮的特定样式 */
#modal-to-contact {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#modal-to-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* 针对 Chrome, Safari 和新版 Edge (WebKit 内核) */
::-webkit-scrollbar {
    display: none;
    /* 隐藏滚动条 */
}

/* 针对 Firefox */
* {
    scrollbar-width: none;
    /* 隐藏滚动条 */
}

/* 针对 IE 和旧版 Edge */
* {
    -ms-overflow-style: none;
    /* 隐藏滚动条 */
}