/* ============================================
   紧急样式修复
   ============================================ */

/* 1. 核心优势标题增强对比度 */
.advantages-section .section-title {
    color: #0f172a !important;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advantages-section .section-subtitle {
    color: #475569 !important;
    font-weight: 500;
}

/* 2. 修复顶部导航和banner之间的空隙 */
.main-content {
    margin-top: 0 !important;
}

/* 首页Hero - 从顶部开始，需要为固定的header留出空间 */
/* top-bar约42px + header 80px = 122px，取130px确保不遮挡 */
.hero {
    margin-top: 0 !important;
    padding-top: 130px !important;
}

/* 滚动后Hero的padding调整（top-bar隐藏，只有header 80px） */
body.scrolled .hero {
    padding-top: 90px !important;
}

/* 3. 顶部导航栏固定浮动效果（包括top-bar） */

/* Top-bar固定在顶部 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    transition: all 0.3s ease;
}

/* Header固定在top-bar下方 */
/* top-bar实际高度约42px，所以header从top: 42px开始 */
.header {
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 10000;
    background: white;
    transition: all 0.3s ease;
}

/* 滚动时top-bar隐藏 */
body.scrolled .top-bar {
    transform: translateY(-100%);
}

/* 滚动时header移到顶部 */
body.scrolled .header {
    top: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* 确保header有阴影 */
.header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* 4. 优化底部备案信息 */
.footer-bottom {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
    margin-top: 0;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 50%, 
        transparent 100%
    );
}

.footer-bottom-content {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.footer-bottom-content p {
    margin: 8px 0;
    line-height: 1.8;
}

.footer-bottom a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #60a5fa;
}

.footer-bottom span {
    margin: 0 12px;
    color: rgba(148, 163, 184, 0.4);
}

/* 5. 优化核心优势背景和可见性 */
.advantages-section {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
    position: relative;
    z-index: 1;
    padding: 60px 0;
    min-height: 400px;
    visibility: visible;
    opacity: 1;
}

/* 确保section不会被遮挡 */
.section {
    position: relative;
    z-index: 1;
}

/* 6. 修复页面Banner的padding，确保不被遮挡 */
/* top-bar约42px + header 80px = 122px，再加上额外空间 */
.page-banner {
    padding-top: 150px !important;
    padding-bottom: 60px !important;
}

/* 滚动后page-banner的padding调整（top-bar隐藏） */
body.scrolled .page-banner {
    padding-top: 100px !important;
}

/* 6. 优化页脚整体 */
.footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    position: relative;
    overflow: hidden;
}

/* 页脚装饰 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* 7. 优化产品分类筛选 - 修复布局错位 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 25px;
    background: white;
    color: #1e3a8a;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* 8. 案例卡片优化 */
.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 9. 新闻卡片优化 */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 10. 联系我们模块优化 - 仅针对首页的蓝色背景section */
.contact-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: white !important;
    position: relative;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white !important;
}

.contact-section .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

.contact-section .contact-item {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    padding: 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    margin-bottom: 20px !important;
}

.contact-section .contact-item i {
    width: 50px !important;
    height: 50px !important;
    background: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    font-size: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.contact-section .contact-item h4 {
    color: #fbbf24 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

.contact-section .contact-item p {
    color: white !important;
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.contact-section .contact-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* 首页联系表单样式 */
.contact-section .contact-form-wrapper {
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.contact-section .contact-form-wrapper input,
.contact-section .contact-form-wrapper textarea {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    color: #1e293b !important;
    padding: 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.contact-section .contact-form-wrapper input::placeholder,
.contact-section .contact-form-wrapper textarea::placeholder {
    color: #94a3b8 !important;
}

.contact-section .contact-form-wrapper input:focus,
.contact-section .contact-form-wrapper textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background: white !important;
    outline: none !important;
}

.contact-section .contact-form-wrapper .btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: white !important;
    padding: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.contact-section .contact-form-wrapper .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* 独立联系我们页面的样式（白色背景，深色文字）*/
.contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important;
    gap: 40px !important;
    align-items: stretch !important;
}

.contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #1e3a8a;
    font-weight: 700;
}

.contact-info > p {
    margin-bottom: 20px !important;
}

.contact-items {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #1e3a8a;
    font-weight: 700;
}

.contact-form-wrapper > p {
    margin-bottom: 20px !important;
}

/* 独立联系页面的contact-item样式（白色背景卡片）*/
.contact-grid .contact-item {
    display: flex;
    gap: 16px;
    background: white;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.contact-items .contact-item:not(:last-child) {
    margin-bottom: 12px;
}

.contact-grid .contact-item i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-grid .contact-item h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #1e3a8a;
    font-weight: 700;
}

.contact-grid .contact-item p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 3px 0;
    line-height: 1.6;
}

.contact-grid .contact-item p:last-child {
    margin-bottom: 0;
}

.contact-grid .contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.12);
    border-color: #3b82f6;
}

/* 联系表单样式优化 - 紧凑版 */
.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    align-self: flex-start;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

/* 地图区域优化 */
.map-wrapper {
    margin-top: 30px;
}

/* 11. 响应式优化 */

/* 企业愿景部分美化 */
.vision-section {
    padding: 100px 0 !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.vision-wrapper {
    position: relative;
    z-index: 2;
}

/* 背景装饰形状 */
.vision-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.vision-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.vision-bg-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.vision-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    animation-delay: 2s;
}

.vision-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 愿景内容 */
.vision-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.vision-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.vision-icon i {
    font-size: 36px;
    color: #fbbf24;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.vision-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.vision-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.vision-lead {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.vision-items {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vision-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.vision-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.vision-item i {
    font-size: 24px;
    color: #fbbf24;
    flex-shrink: 0;
}

.vision-item span {
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
}

/* 响应式 */
@media (max-width: 768px) {
    /* 移动端top-bar完全隐藏 */
    .top-bar {
        display: none !important;
    }
    
    /* 移动端header固定在顶部 */
    .header {
        position: fixed !important;
        top: 0 !important;
    }
    
    /* 移动端hero和page-banner的padding */
    .hero {
        padding-top: 90px !important;
    }
    
    .page-banner {
        padding-top: 100px !important;
    }
    
    body.scrolled .hero,
    body.scrolled .page-banner {
        padding-top: 90px !important;
    }
    
    .top-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .top-info span {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding: 20px 15px;
    }
    
    .footer-bottom-content {
        font-size: 12px;
    }
    
    .footer-bottom span {
        margin: 0 5px;
    }
    
    /* 移动端filter-bar优化 */
    .filter-bar {
        padding: 15px;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* 企业愿景移动端优化 */
    .vision-section {
        padding: 60px 0 !important;
    }
    
    .vision-title {
        font-size: 32px;
    }
    
    .vision-lead {
        font-size: 22px;
    }
    
    .vision-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .vision-icon i {
        font-size: 28px;
    }
    
    .vision-item {
        padding: 15px 20px;
    }
    
    .vision-item span {
        font-size: 15px;
    }
    
    .vision-item:hover {
        transform: none;
    }
    
    /* 联系页面移动端优化 */
    .contact-grid,
    .contact-section .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .contact-info {
        padding-right: 0;
        order: 2;
    }

    .contact-form-wrapper {
        padding: 24px 18px;
        order: 1;
    }

    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .contact-info > p,
    .contact-form-wrapper > p {
        margin-bottom: 16px !important;
        font-size: 14px;
    }

    /* 联系方式四宫格 */
    .contact-items {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .contact-items .contact-item {
        margin-bottom: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 16px 12px !important;
        gap: 10px !important;
        aspect-ratio: 1 / 1 !important;
    }

    .contact-grid .contact-item i {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .contact-grid .contact-item h4 {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .contact-grid .contact-item p {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    textarea.form-control {
        min-height: 90px;
    }
    
    .contact-form .btn-primary {
        padding: 11px 28px;
        font-size: 14px;
        width: 100%;
    }
}

/* 12. 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 13. 优化各种卡片通用样式 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

/* 14. 按钮优化 */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-outline:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
