/* =========================================
   全局变量及基础重置 (CSS Variables & Reset)
========================================= */
/* 定义系统级颜色、间距等核心变量 */
:root {
    --primary: #FFB800; /* 主色调：亮橙黄色 */
    --primary-hover: #e0a200;
    --dark-bg: #101820; /* 深灰/黑色背景 */
    --darker-bg: #0a0f14;
    --light-bg: #f9fafb; /* 浅灰色背景 */
    --white: #ffffff;
    --text-white: #ffffff;
    --text-light-gray: #d1d5db;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 6px;
}

/* 消除默认内外边距，应用盒子模型 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   排版与通用类 (Typography & Utilities)
========================================= */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 800;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 中心容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: var(--white); }

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
}

.btn-outline:hover {
    background: var(--dark-bg);
    color: var(--white);
    border-color: var(--dark-bg);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* =========================================
   导航栏 (Navbar) - 与首页一致
========================================= */
.navbar-wrapper {
    background-color: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary);
    font-style: italic;
    letter-spacing: -2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-arrow { font-size: 0.6rem; }

.hamburger {
    display: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 移动端菜单下拉样式 */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--darker-bg);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.mobile-menu a:last-child {
    border-bottom: none;
    margin-top: 1rem;
}

/* =========================================
   横幅区 (Page Hero)
========================================= */
/* 此处高度专门调低，以区别于首页全屏效果 */
.page-hero {
    height: 45vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(16, 24, 32, 0.85), rgba(16, 24, 32, 0.75)), url('/images/Industrial-Factory.webp') center/cover no-repeat;
    text-align: center;
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 500;
}

/* =========================================
   产品分类网格 (Category Grid)
========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.card-body p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex: 1;
}

/* =========================================
   产品详情介绍 (Detailed Product Sections)
========================================= */
.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* 用于控制左文右图的翻转布局 */
.layout-reverse .product-info {
    order: -1;
}

.product-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    width: 100%;
    object-fit: cover;
}

.category-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-info h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
}

.product-info p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.specs-list {
    margin-bottom: 2.5rem;
}

.specs-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.specs-list i {
    color: var(--primary);
    margin-top: 0.3rem;
}

/* =========================================
   全球出口服务政策区 (Global Export Services)
========================================= */
.export-policy {
    background-color: var(--dark-bg);
    color: var(--text-light-gray);
    text-align: center;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.icon-header {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.export-policy h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.policy-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* 强调不提供安装服务的高亮警告框 */
.alert-box {
    background: rgba(255, 184, 0, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-radius: 0 4px 4px 0;
}

.alert-box i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.alert-box p {
    margin: 0;
    font-size: 1rem;
    color: var(--white);
}

.alert-box strong {
    color: var(--primary);
}

/* =========================================
   转化引导横幅 (CTA Banner)
========================================= */
.cta-banner {
    background-color: var(--primary);
    padding: 4rem 0;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-banner h3 {
    font-size: 2rem;
    color: var(--dark-bg);
}

.cta-banner .btn-primary {
    background-color: var(--dark-bg);
    color: var(--white);
}

.cta-banner .btn-primary:hover {
    background-color: var(--darker-bg);
}

/* =========================================
   页脚 (Footer) - 与首页一致
========================================= */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light-gray);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.brand-col .logo {
    margin-bottom: 1.5rem;
}

.brand-col p {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.mini-stats {
    display: flex;
    gap: 1.5rem;
}

.mini-stats div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-white);
}

.mini-stats i { color: var(--primary); font-size: 1.25rem; }

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul li a { font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--primary); }

.contact-details li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.875rem;
}
.contact-details i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-gray);
}
.social-links a:hover {
    background-color: var(--primary);
    color: var(--dark-bg);
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================
   响应式设计媒体查询 (Media Queries)
========================================= */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    /* 平板及以下隐藏主导航，显示汉堡菜单 */
    .nav-links, .nav-actions {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* 将左右交替布局改为垂直堆叠 */
    .grid-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* 重置右侧图文的反向顺序，保证移动端图片/标题顺序统一 */
    .layout-reverse .product-info {
        order: 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-flex {
        flex-direction: column;
        text-align: center;
    }

    .alert-box {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    /* 移动端调整网格为单列 */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   右侧悬浮联系侧边栏 (Floating Sidebar)
   ========================================== */

.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1px; /* 图标之间的细微缝隙 */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-item {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #111827; /* 默认深色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-item a {
    color: #ffffff;
    font-size: 24px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-item:not(.whatsapp):not(.telegram):not(.email):not(.back-to-top) i {
    color: #fff;
}

/* 按钮图标默认颜色 */
.sidebar-item i {
    color: #ffffff;
    font-size: 20px;
}

/* 鼠标悬浮时的品牌色高亮 */
.sidebar-item.whatsapp:hover { background-color: #25D366; } /* WhatsApp 绿 */
.sidebar-item.telegram:hover { background-color: #229ED9; } /* Telegram 蓝 */
.sidebar-item.email:hover { background-color: #FBBF24; }    /* 您的主题黄 */
.sidebar-item.back-to-top:hover { background-color: #4b5563; } /* 返回顶部灰色高亮 */

/* 悬浮提示框 (Tooltip) 的通用样式 */
.sidebar-tooltip {
    position: absolute;
    right: 60px; /* 从右侧往左弹出的距离 */
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* 弹性动画 */
    pointer-events: none; /* 防止遮挡鼠标 */
    z-index: 10000;
}

/* 鼠标移入时显示 Tooltip */
.sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* 带有二维码的提示框样式 */
.qr-tooltip {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-tooltip img {
    width: 120px; /* 二维码大小 */
    height: 120px;
    object-fit: contain;
}

.qr-tooltip span {
    font-size: 13px;
    font-weight: bold;
    color: #374151;
}

/* 纯文本提示框（邮箱）样式 */
.text-tooltip {
    background-color: #FBBF24; /* 匹配邮件悬浮主题色 */
    color: #111827;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 6px;
    white-space: nowrap; /* 保证邮箱不换行 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 文本提示框的小三角形箭头 */
.text-tooltip::after, .qr-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
}
.text-tooltip::after { border-color: transparent transparent transparent #FBBF24; }
.qr-tooltip::after { border-color: transparent transparent transparent #ffffff; }

/* ==========================================
   移动端优化 方案二：底部横向固定吸底
   ========================================== */
@media screen and (max-width: 768px) {
    /* 1. 彻底隐藏悬浮二维码和文字提示 */
    .sidebar-tooltip,
    .qr-tooltip,
    .text-tooltip {
        display: none !important;
    }

    /* 2. 将竖排改为底部横排，宽度100%吸底 */
    .floating-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 99999;
    }

    /* 3. 按钮平分底部宽度，增大点击区域 */
    .sidebar-item {
        flex: 1; /* 四个按钮各占 25% 宽度 */
        height: 55px;
        border-right: 1px solid rgba(255,255,255,0.1); /* 按钮之间的暗色分割线 */
    }

    .sidebar-item:last-child {
        border-right: none;
    }

    .sidebar-item i {
        font-size: 22px;
    }

    /* 为防止底部按钮遮挡网页最下方的内容，给手机端 body 增加底部内边距 */
    body {
        padding-bottom: 60px !important;
    }
}