/* style.css - 荣朗防爆科技移动端优化版（完整修复版） */

:root {
    /* 工业风格配色方案 */
    --primary-steel: #2C3E50;          /* 钢铁深灰 - 主色调 */
    --secondary-steel: #34495E;        /* 中灰色 */
    --accent-orange: #E67E22;          /* 安全橙色 - 强调色 */
    --accent-yellow: #F1C40F;          /* 警示黄色 */
    --accent-red: #E74C3C;             /* 危险红色 */
    --light-gray: #ECF0F1;             /* 浅灰色背景 */
    --medium-gray: #7F8C8D;            /* 中灰色文字 */
    --dark-text: #2C3E50;              /* 深色文字 */
    --border-color: #BDC3C7;           /* 边框颜色 */
    --card-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    --card-shadow-hover: 0 8px 24px rgba(44, 62, 80, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --header-height: 80px;
    --mobile-header-height: 70px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
}

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

/* 加载层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-steel);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: white;
}

.loader-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-100 {
    transition-delay: 0.1s !important;
}

.animate-delay-200 {
    transition-delay: 0.2s !important;
}

.animate-delay-300 {
    transition-delay: 0.3s !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 主头部 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--primary-steel);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    height: var(--mobile-header-height);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-steel), var(--accent-orange));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    margin-right: 10px;
    border: 2px solid var(--accent-yellow);
}

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

.company-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.company-tagline {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

/* 导航容器 */
.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 移动端专用电话按钮 */
.phone-number.mobile-only {
    display: none;
}

/* 主导航 - 桌面端样式 */
.main-nav {
    transition: var(--transition);
}

.nav-primary {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-primary > li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link i {
    font-size: 11px;
    margin-left: 4px;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-en {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 3px;
    font-weight: 400;
}

/* 下拉菜单 - 桌面端 */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 240px;
    box-shadow: var(--card-shadow-hover);
    border-radius: var(--border-radius);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

/* 产品导航特殊样式 */
.main-nav .nav-primary > li:first-child + li .dropdown-content {
    min-width: 900px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    left: 0;
    transform: translateX(0);
}

.dropdown-section h4 {
    color: var(--primary-steel);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-orange);
}

.dropdown-section a {
    display: block;
    color: var(--medium-gray);
    text-decoration: none;
    padding: 6px 0;
    font-size: 13px;
    transition: var(--transition);
}

.dropdown-section a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

/* 电话按钮 */
.phone-number {
    display: flex;
    align-items: center;
    background: var(--accent-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-number:hover {
    background: #D35400;
    transform: translateY(-2px);
}

.phone-number i {
    margin-right: 6px;
    font-size: 16px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-top: var(--header-height);
}

/* 主视觉区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-steel) 0%, var(--secondary-steel) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    padding-right: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

#hero-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: white;
}

.hero-stats {
    display: flex;
    gap: 25px;
    margin: 25px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.hero-desc p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.hero-hotline {
    font-size: 15px;
    color: white;
}

.hero-hotline a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
}

.hero-hotline a:hover {
    text-decoration: underline;
}

.hero-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-industrial-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-industrial-image {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-orange);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    min-height: 44px;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: #D35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-steel);
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 30px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-outline:hover {
    background: var(--accent-orange);
    color: white;
}

/* 章节通用样式 */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    color: var(--primary-steel);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent-orange);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--medium-gray);
    max-width: 600px;
    margin: 15px auto 0;
    font-size: 16px;
    line-height: 1.6;
}

.section-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    font-size: 14px;
}

.section-link i {
    margin-left: 6px;
    transition: transform 0.3s;
}

.section-link:hover i {
    transform: translateX(3px);
}

/* 荣朗防爆专业生产厂家 */
.manufacturer-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.intro-block {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--accent-orange);
    transition: var(--transition);
    height: 100%;
}

.intro-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.intro-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-steel);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin-bottom: 20px;
}

.intro-block h3 {
    font-size: 18px;
    color: var(--primary-steel);
    margin-bottom: 15px;
}

.product-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.keyword-item {
    background: var(--light-gray);
    color: var(--primary-steel);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.feature-item i {
    color: var(--accent-orange);
    font-size: 16px;
}

/* 工程项目区 */
.projects-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.project-category {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.project-category:hover,
.project-category.active {
    background: var(--primary-steel);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.category-icon {
    font-size: 28px;
    color: var(--accent-orange);
    transition: var(--transition);
}

.project-category.active .category-icon,
.project-category:hover .category-icon {
    color: white;
}

.category-title {
    font-size: 15px;
    font-weight: 600;
}

.category-count {
    font-size: 13px;
    color: var(--medium-gray);
}

.project-category.active .category-count,
.project-category:hover .category-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 项目详情 */
.project-details-container {
    position: relative;
    min-height: 400px;
}

.project-detail {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.project-detail-header {
    background: var(--primary-steel);
    color: white;
    padding: 20px;
}

.project-detail-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-detail-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.9;
    flex-wrap: wrap;
}

.project-detail-meta i {
    margin-right: 5px;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 25px;
}

.project-detail-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

.project-detail-info h4 {
    color: var(--primary-steel);
    margin: 15px 0 8px;
    font-size: 16px;
}

.project-detail-info h4:first-child {
    margin-top: 0;
}

.project-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.product-tag {
    background: var(--light-gray);
    color: var(--primary-steel);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.project-detail-link {
    display: inline-block;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    font-size: 14px;
}

.project-detail-link:hover {
    text-decoration: underline;
}

/* 项目统计数据 */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-orange);
}

.stat-card .stat-number {
    font-size: 32px;
    color: var(--accent-orange);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--dark-text);
}

/* 产品展示区 */
.product-display-wrapper {
    margin-top: 30px;
}

.product-nav-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.product-nav-scroll::-webkit-scrollbar {
    height: 4px;
}

.product-nav-scroll::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 2px;
}

.product-nav-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 2px;
}

.product-nav {
    display: flex;
    gap: 10px;
    min-width: max-content;
    padding: 0 5px;
}

.product-nav-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    font-size: 15px;
    color: var(--dark-text);
    white-space: nowrap;
}

.product-nav-item:hover,
.product-nav-item.active {
    background: var(--primary-steel);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.product-nav-item i {
    font-size: 18px;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.product-image-display {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.product-image-container {
    display: none;
    position: relative;
}

.product-image-container.active {
    display: block;
}

.main-product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

.image-overlay h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.image-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* 产品列表 */
.product-list-container {
    display: none;
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.product-list-container.active {
    display: block;
}

.product-list h4 {
    font-size: 18px;
    color: var(--primary-steel);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
}

.product-items {
    margin-bottom: 20px;
}

.product-items li {
    margin-bottom: 10px;
    list-style: none;
    position: relative;
    padding-left: 15px;
}

.product-items li::before {
    content: '•';
    color: var(--accent-orange);
    position: absolute;
    left: 0;
}

.product-items a {
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    transition: var(--transition);
    padding: 5px 0;
    font-size: 14px;
}

.product-items a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.view-all i {
    margin-left: 6px;
    transition: transform 0.3s;
}

.view-all:hover i {
    transform: translateX(3px);
}

/* 技术中心 */
.tech-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tech-block {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.tech-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-orange);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-steel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 15px;
}

.tech-title {
    font-size: 18px;
    color: var(--primary-steel);
    margin-bottom: 12px;
}

.tech-desc {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

/* 认证与合作伙伴 */
.certifications,
.partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.cert-item,
.partner-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cert-item:hover,
.partner-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-orange);
}

.cert-icon {
    font-size: 32px;
    color: var(--accent-orange);
    margin-bottom: 12px;
    display: block;
}

.cert-item p,
.partner-item p {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 14px;
}

.partner-item i {
    font-size: 32px;
    color: var(--primary-steel);
    margin-bottom: 12px;
    display: block;
}

/* 问答板块 */
.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.faq-content {
    display: flex;
    flex-direction: column;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: var(--light-gray);
}

.faq-question:hover {
    background: rgba(44, 62, 80, 0.05);
}

.faq-question h4 {
    font-size: 15px;
    color: var(--primary-steel);
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--medium-gray);
    transition: transform 0.3s;
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 18px 18px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--medium-gray);
}

.faq-more {
    text-align: center;
    margin-top: 25px;
}

.faq-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.faq-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.faq-image-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.faq-image-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* 底部CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-steel) 0%, var(--secondary-steel) 100%);
    color: white;
    padding: 60px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-actions .btn i {
    margin-right: 8px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cta-features i {
    color: var(--accent-orange);
}

/* 页脚 */
.main-footer {
    background: var(--primary-steel);
    color: white;
    padding: 50px 0 25px;
    margin-top: auto;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-primary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-company-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-tagline {
    opacity: 0.8;
    font-size: 14px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.contact-item i {
    color: var(--accent-orange);
    margin-top: 2px;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.footer-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h5 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h5::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--accent-orange);
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

/* 页脚底部 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social span {
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.social-icon:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.6;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-steel);
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--medium-gray);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}

.modal-footer a {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
}

.wechat-qr {
    text-align: center;
    margin-bottom: 25px;
}

.wechat-qr img {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.wechat-qr figcaption {
    color: var(--medium-gray);
    font-size: 14px;
}

.wechat-info h4 {
    color: var(--primary-steel);
    margin-bottom: 15px;
    font-size: 16px;
}

.wechat-info ul {
    list-style: none;
}

.wechat-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--dark-text);
    font-size: 14px;
}

.wechat-info i {
    color: var(--accent-orange);
    margin-top: 2px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.back-to-top:hover {
    background: #D35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.4);
}

/* ==================== 响应式设计 ==================== */

/* 大屏幕（桌面端） */
@media (min-width: 993px) {
    .dropdown-content {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        min-width: 220px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-radius: var(--border-radius);
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        border: 1px solid var(--border-color);
    }

    .main-nav .nav-primary > li:nth-child(2) .dropdown-content {
        min-width: 900px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        left: 0;
        transform: translateX(0);
        padding: 25px;
    }

    .main-nav .nav-primary > li:nth-child(3) .dropdown-content {
        min-width: 220px;
        left: 50%;
        transform: translateX(-50%);
        display: block;
    }

    .main-nav .nav-primary > li:nth-child(4) .dropdown-content {
        min-width: 220px;
        left: 50%;
        transform: translateX(-50%);
        display: block;
    }

    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
    }

    .main-nav .nav-primary > li:nth-child(2):hover .dropdown-content {
        margin-top: 0;
    }

    .dropdown-content a {
        display: block;
        color: var(--medium-gray);
        text-decoration: none;
        padding: 8px 0;
        font-size: 14px;
        transition: var(--transition);
        border-bottom: 1px solid transparent;
    }

    .dropdown-content a:hover {
        color: var(--accent-orange);
        padding-left: 8px;
        border-bottom-color: var(--accent-orange);
    }

    .main-nav .nav-primary > li:nth-child(2) .dropdown-content a {
        padding: 6px 0;
        font-size: 13px;
        border-bottom: none;
    }

    .main-nav .nav-primary > li:nth-child(2) .dropdown-content a:hover {
        padding-left: 5px;
        border-bottom: none;
    }

    .dropdown-section h4 {
        color: var(--primary-steel);
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--accent-orange);
    }

    .dropdown-content {
        z-index: 1001;
    }
}

/* 平板和移动端（最大992px） */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .main-header {
        height: var(--mobile-header-height);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        width: 100%;
        background: var(--primary-steel);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.3s ease;
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .main-nav.active {
        max-height: calc(100vh - var(--mobile-header-height));
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }
    
    .nav-primary {
        flex-direction: column;
        padding: 20px;
        width: 100%;
        display: block;
    }
    
    .nav-primary > li {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 0;
        font-size: 16px;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
    }
    
    .nav-en {
        display: none;
    }
    
    .has-submenu .nav-link i.fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .has-submenu.active .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        min-width: 100%;
        margin: 10px 0 0 0;
        padding: 15px;
        display: none;
        border: none;
        border-radius: 6px;
    }
    .dropdown-content a{
        font-size: 14px;
        text-decoration: none;
   color: #fff;
        margin:0 5px;
    }
       .dropdown-content a:hover{
  
   color: var(--accent-orange);
    }
    .main-nav .nav-primary > li:first-child + li .dropdown-content {
        min-width: 100%;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-section h4 {
        color: white;
        border-bottom-color: rgba(255, 255, 255, 0.3);
        font-size: 14px;
    }
    
    .dropdown-section a {
        color: rgba(255, 255, 255, 0.9);
        font-size: 13px;
        padding: 8px 0;
    }
    
    .header-actions.desktop-only {
        display: none;
    }
    
    .phone-number.mobile-only {
        display: flex;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    #hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .faq-image.desktop-only {
        display: none;
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-secondary {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* 平板（最大768px） */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .manufacturer-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certifications,
    .partners {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-secondary {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* 手机（最大576px） */
@media (max-width: 576px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .company-tagline {
        font-size: 9px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    #hero-title {
        font-size: 24px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 0 0 calc(33.333% - 15px);
    }
    
    .hero-industrial-image {
        height: 250px;
    }
    
    .projects-categories {
        grid-template-columns: 1fr;
    }
    
    .project-category {
        padding: 12px;
    }
    
    .project-detail-header {
        padding: 15px;
    }
    
    .project-detail-title {
        font-size: 18px;
    }
    
    .project-detail-content {
        padding: 20px;
    }
    
    .project-detail-image img {
        height: 200px;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .main-product-image {
        height: 250px;
    }
    
    .image-overlay {
        padding: 15px;
    }
    
    .image-overlay h4 {
        font-size: 16px;
    }
    
    .tech-blocks {
        grid-template-columns: 1fr;
    }
    
    .certifications,
    .partners {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-contact {
        font-size: 13px;
    }
    
    .footer-column a {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav-link::after {
        display: none;
    }
    
    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }
    
    .btn:hover,
    .intro-block:hover,
    .tech-block:hover,
    .stat-card:hover,
    .product-nav-item:hover,
    .project-category:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        opacity: 0.9;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 10px 0;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .project-category,
    .product-nav-item {
        min-height: 44px;
    }
}

/* 打印样式 */
@media print {
    .main-header,
    .mobile-menu-btn,
    .hero-actions,
    .cta-section,
    .main-footer,
    .modal,
    .back-to-top {
        display: none !important;
    }
    
    .hero {
        margin-top: 0;
        padding: 20px 0;
        background: white !important;
        color: black !important;
    }
    
    #hero-title {
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* 辅助类 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .intro-block,
    .tech-block,
    .stat-card,
    .cert-item,
    .partner-item,
    .faq-item,
    .product-list-container,
    .project-detail {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .section-title,
    .intro-block h3,
    .tech-title,
    .project-detail-title,
    .product-list h4,
    .faq-question h4 {
        color: #e0e0e0;
    }
    
    .section-subtitle,
    .tech-desc,
    .faq-answer p,
    .product-items a {
        color: #b0b0b0;
    }
    
    .border-color {
        border-color: #444;
    }
}