/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --primary: #FFB800;
    --primary-hover: #e0a200;
    --dark-bg: #101820;
    --darker-bg: #0a0f14;
    --light-bg: #ffffff;
    --gray-bg: #f9fafb;
    --text-white: #ffffff;
    --text-light-gray: #d1d5db;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --border-color: rgba(255, 255, 255, 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(--light-bg);
    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;
}

.highlight {
    color: var(--primary);
}

.subtitle {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.125rem;
}

.center-action {
    text-align: center;
    margin-top: 3rem;
}

/* Buttons */
.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-outline {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
}

.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-outline-white {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-white);
}

.btn-outline-white:hover {
    background: var(--text-white);
    color: var(--dark-bg);
}

.btn-icon, .btn-outline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-icon {
    background-color: var(--primary);
    color: var(--dark-bg);
}

.btn-icon:hover {
    background-color: var(--primary-hover);
}

.btn-outline-icon {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.project-card:hover .btn-outline-icon {
    background-color: var(--primary);
    color: var(--dark-bg);
}

.w-100 {
    width: 100%;
}

/* Layout Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.align-center {
    align-items: center;
}

/* =========================================
   HEADER & NAVBAR
========================================= */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: rgba(16, 24, 32, 0.4);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 导航栏 logo：桌面 100px 高，移动端自适应缩小 */
.navbar .logo img {
    height: 100px;
    width: auto;
    max-width: none;
}

@media (max-width: 768px) {
    .navbar .logo img {
        height: 56px;
    }
}

.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: 1rem;
    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(--dark-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
========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(rgba(16, 24, 32, 0.8), rgba(16, 24, 32, 0.7)), url('/images/Highway-Noise-Control-Highway-Noise-Barriers.webp') center/cover no-repeat;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset for nav */
}

.hero-text h1 {
    color: var(--text-white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: var(--text-light-gray);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-bottom-bar {
    background: rgba(16, 24, 32, 0.8);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.flex-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-white);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text .title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.feature-text .desc {
    font-size: 0.75rem;
    color: var(--text-light-gray);
}

/* =========================================
   PRODUCTS SECTION
========================================= */
.products-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.product-card {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-light-gray);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* =========================================
   SOLUTIONS SECTION
========================================= */
.solutions-section {
    padding: 6rem 0;
    background-color: var(--gray-bg);
}

.solution-card {
    position: relative;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.solution-card .icon-box {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border-radius: var(--border-radius);
    z-index: 2;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(16,24,32,0.95), rgba(16,24,32,0.7), transparent);
    color: var(--text-white);
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.875rem;
    color: var(--text-light-gray);
    margin-bottom: 1rem;
}

.link-yellow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-yellow:hover {
    color: var(--text-white);
}

/* =========================================
   WHY CHOOSE US SECTION
========================================= */
.about-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text > p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1.25rem;
}

.list-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 184, 0, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.list-text strong {
    display: block;
    font-size: 1.125rem;
    color: var(--dark-bg);
    margin-bottom: 0.25rem;
}

.list-text p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.image-overlay-box {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.check-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.image-overlay-box strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 0.25rem;
}

.image-overlay-box p {
    color: var(--text-light-gray);
    font-size: 0.75rem;
}

/* Stats Bar below About */
.stats-bar {
    background-color: var(--dark-bg);
    padding: 4rem 0;
    margin-top: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-white);
}

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

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.stat-item .sub-label {
    font-size: 0.875rem;
    color: var(--text-light-gray);
}

/* =========================================
   PROJECTS SECTION
========================================= */
.projects-section {
    padding: 6rem 0;
    background-color: var(--gray-bg);
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(16,24,32,0.95), transparent);
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.project-info .category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.project-info .location {
    font-size: 0.75rem;
    color: var(--text-light-gray);
}

/* =========================================
   CONTACT & FORM SECTION
========================================= */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(16, 24, 32, 0.9), rgba(16, 24, 32, 0.9)), url('/images/Highway-Noise-Control-Highway-Noise-Barriers-1600w.webp') center/cover;
    color: var(--text-white);
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-text > p {
    color: var(--text-light-gray);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.125rem;
    flex-wrap: wrap;
}

.contact-info i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.contact-info .divider {
    width: 1px;
    height: 20px;
    background-color: var(--text-gray);
}

.contact-form-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.contact-form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.contact-form-card p {
    color: var(--text-light-gray);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 0.875rem;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form-card button {
    margin-top: 1rem;
}

/* =========================================
   FOOTER SECTION
========================================= */
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 {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.brand-col .logo img {
    width: 200px;
    height: auto;
}

.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 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: var(--text-light-gray);
    text-decoration: none;
    transition: var(--transition, color 0.3s ease);
}

.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;
    flex-shrink: 0;
}

.contact-details a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: var(--transition, color 0.3s ease);
}

.contact-details a:hover {
    color: var(--primary);
}

.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);
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
}

.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 a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: var(--transition, color 0.3s ease);
}

.legal-links a:hover {
    color: var(--primary);
}

.legal-links .divider {
    margin: 0 0.5rem;
    color: var(--border-color);
}

/* 响应式适配 */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
========================================= */
@media (max-width: 1024px) {
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .nav-links, .nav-actions {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .about-image .image-overlay-box {
        left: 50%;
        transform: translateX(-50%);
        bottom: -3rem;
        width: 90%;
    }

    .contact-form-card {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .flex-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        flex-direction: column;
    }

    .stats-bar .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-cta {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .contact-info .divider {
        display: none;
    }
}

/* ==========================================
   Floating Contact 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 {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    text-decoration: none;

    transition: all 0.3s ease;
}

/* 图标 */
.sidebar-item i {
    color: #ffffff;
    font-size: 20px;
}

/* ==========================================
   Hover Colors
   ========================================== */

.sidebar-item.whatsapp:hover {
    background-color: #25D366;
}

.sidebar-item.telegram:hover {
    background-color: #229ED9;
}

.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;
}

/* Hover 显示 Tooltip */
.sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateY(-50%) translateX(0);
}

/* ==========================================
   QR Code Tooltip
   ========================================== */

.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: 240px;
    height: 240px;
    object-fit: contain;

    max-width: none; /* 防止全局 img { max-width:100% } 导致弹窗塌缩 */
}

.qr-tooltip span {
    font-size: 13px;
    font-weight: 700;

    color: #374151;

    white-space: nowrap; /* 防止微信昵称被竖排 */
}

/* ==========================================
   Email Tooltip
   ========================================== */

.text-tooltip {
    background-color: #FBBF24;

    color: #111827;

    font-weight: 700;

    padding: 12px 16px;

    border-radius: 6px;

    white-space: nowrap;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tooltip 箭头 */
.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;
}

/* ==========================================
   Mobile
   ========================================== */

@media screen and (max-width: 768px) {

    /* 隐藏 Tooltip */
    .sidebar-tooltip,
    .qr-tooltip,
    .text-tooltip {
        display: none !important;
    }

    /* 底部固定 */
    .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;
    }

    /* 平均分配 */
    .sidebar-item {
        flex: 1;

        width: auto;
        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 {
        padding-bottom: 60px;
    }
}
/* ==========================================
   移动端优化 方案二：底部横向固定吸底
   ========================================== */
@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;
    }
}

/* =========================================
   HOMEPAGE (中文版) 新增区块样式
========================================= */

/* Section 2 噪声问题 */
.problems-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.problem-card {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-card .icon-circle {
    border-color: var(--primary);
    color: var(--primary);
    margin: 0 auto 1.25rem;
}

.problem-card h3 {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: var(--text-light-gray);
    font-size: 0.875rem;
}

/* Section 4 核心产品（图文两栏） */
.product-detail-grid {
    align-items: center;
}

.product-detail-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-detail-text .btn {
    margin-top: 1.5rem;
}

/* Section 5 工作原理 */
.how-section {
    padding: 6rem 0;
    background-color: var(--gray-bg);
}

.how-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1.25rem;
}

.how-step {
    background-color: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
}

.how-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.how-step h3 {
    font-size: 1.125rem;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.how-step p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.how-arrow {
    align-self: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.how-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
    max-width: 820px;
    margin: 2rem auto 0;
}

/* Section 6 应用场景 */
.applications-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.app-item,
.custom-item,
.qc-item {
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s;
}

.app-item:hover,
.custom-item:hover,
.qc-item:hover {
    transform: translateY(-4px);
}

.app-item {
    background-color: var(--gray-bg);
    color: var(--text-dark);
}

.app-item i,
.custom-item i,
.qc-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Section 8 定制 */
.custom-section {
    padding: 6rem 0;
    background-color: var(--gray-bg);
}

.custom-item {
    background-color: var(--dark-bg);
    color: var(--text-white);
}

/* Section 10 质量控制 */
.qc-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.qc-item {
    background-color: var(--gray-bg);
    color: var(--text-dark);
}

/* Section 11 FAQ */
.faq-section {
    padding: 6rem 0;
    background-color: var(--gray-bg);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list details {
    background-color: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius);
    padding: 0 1.5rem;
    margin-bottom: 0.875rem;
}

.faq-list summary {
    cursor: pointer;
    padding: 1.25rem 0;
    font-weight: 700;
    color: var(--dark-bg);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    flex-shrink: 0;
}

.faq-list details[open] summary::after {
    content: '\f077';
}

.faq-list details p {
    padding-bottom: 1.25rem;
    color: var(--text-gray);
}

/* 微信文字（页脚） */
.wx-note {
    color: var(--text-light-gray);
    font-size: 0.875rem;
}

.wx-note i {
    color: #07C160;
    margin-right: 0.35rem;
}

@media (max-width: 992px) {
    .how-flow {
        flex-direction: column;
    }

    .how-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {

    .app-grid.grid-4,
    .custom-grid.grid-4,
    .qc-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========== 首页 Section 12: CTA 横幅 ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: #fff;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cta-content {
    flex: 1 1 420px;
    min-width: 0;
}

.cta-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 0 1 auto;
}

@media (max-width: 768px) {
    .cta-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn {
        flex: 1;
        justify-content: center;
    }
}


/* ==========================================
   页脚微信悬停弹出二维码
   ========================================== */

.footer-wechat {
    position: relative;
}

.footer-wechat-trigger {
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.footer-qr-pop {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    z-index: 999;

    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid #e5e7eb;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;

    pointer-events: none;
}

.footer-qr-pop::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 28px;
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

.footer-wechat:hover .footer-qr-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.footer-qr-pop img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.footer-qr-pop span {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* 导航栏字号放大（与全站导航统一） */
.nav-actions .btn {
  font-size: 1rem;
}

/* =========================================
   技术文章区块（首页最新 3 篇）
========================================= */
.home-articles-section {
  padding: 5rem 0;
}

.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.home-article-card {
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.home-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.home-article-img {
  display: block;
  overflow: hidden;
}

.home-article-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-article-card:hover .home-article-img img {
  transform: scale(1.05);
}

.home-article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
}

.home-article-tag {
  background-color: rgba(255, 184, 0, 0.15);
  color: var(--primary-hover);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.75rem;
}

.home-article-content h3 {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.home-article-content h3 a {
  color: var(--text-dark);
}

.home-article-content h3 a:hover {
  color: var(--primary-hover);
}

.home-article-content p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-article-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-hover);
}

@media (max-width: 1024px) {
  .home-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-articles-grid {
    grid-template-columns: 1fr;
  }
}
