/* =========================================
   全局变量及基础重置 (CSS Variables & Reset)
========================================= */
:root {
    --primary: #FBBF24; /* 亮黄色 / 橙黄色强调色 */
    --primary-hover: #D97706;
    --dark-bg: #101820; /* 深灰色/黑色工业背景 */
    --darker-bg: #0a0f14 ;
    --light-bg: #f3f4f6; /* 浅灰色背景 */
    --card-bg: #1f2937; /* 卡片深色背景 */
    --white: #ffffff;
    --text-white: #ffffff;
    --text-light-gray: #9ca3af;
    --text-dark: #111827;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
}

/* 基础重置 */
* {
    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; }

/* 基础排版与容器 */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }

.section-tag {
    display: inline-block;
    color: var(--primary-hover);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* 通用按钮 */
.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); color: var(--white); }
.btn-large { padding: 1rem 2.5rem; 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; }

/* =========================================
   页面横幅区 (Hero Section)
========================================= */
.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.85)), url('/about/img/about.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; text-transform: uppercase; }
.hero-content p { color: var(--primary); font-size: 1.25rem; font-weight: 500; }

/* =========================================
   公司故事区块 (Our Story / Who We Are)
========================================= */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
}

.story-text p {
    color: #4b5563;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.story-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary);
}

/* =========================================
   工程与制造能力区块 (Capabilities Section)
========================================= */
.capabilities-section {
    background-color: #0f161d;
    color: var(--white);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #696969;;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light-gray);
    font-size: 1.1rem;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.capability-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border-top: 3px solid var(--primary);
    transition: var(--transition);
}

.capability-card:hover {
    transform: translateY(-5px);
}

.capability-card .icon-box {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.capability-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.capability-card p {
    color: var(--text-light-gray);
    font-size: 0.95rem;
}

.capability-card em {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

/* =========================================
   核心价值观区块 (Core Values Section)
========================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.value-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.value-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--primary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--dark-bg);
}

.value-card p {
    color: #4b5563;
    font-size: 0.9rem;
}

/* =========================================
   引导转化区 (CTA Banner)
========================================= */
.cta-banner {
    background-color: var(--dark-bg);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-banner h3 { font-size: 1.8rem; color: var(--white); max-width: 70%; }

/* =========================================
   页脚 (Footer)
========================================= */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light-gray);
    padding-top: 4rem;
}

.footer-cta {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-text h2 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-btns {
    display: flex;
    gap: 1rem;
}

.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;
}

.legal-links .divider {
    margin: 0 0.5rem;
}
/* =========================================
   响应式设计 (Media Queries)
========================================= */
@media (max-width: 1024px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: block; }
    .story-grid { grid-template-columns: 1fr; gap: 2rem; }
    .capabilities-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-flex { flex-direction: column; text-align: center; }
    .cta-banner h3 { max-width: 100%; }
}

@media (max-width: 576px) {
    .values-grid { 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;
    }
}