/* style.css */
/* 基础动画和辅助样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1F2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 隐藏滚动条但保留功能 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 懒加载占位 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.lazy-image.loaded {
    opacity: 1;
}

/* 导航栏吸顶过渡 */
.navbar {
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 图片占位符背景 */
.img-placeholder {
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* 资质证书放大Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal.active .modal-content {
    transform: scale(1);
}

/* 卡片Hover平滑过渡 */
.hover-card {
    transition: all 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(198, 28, 44, 0.1), 0 4px 6px -2px rgba(198, 28, 44, 0.05);
}

/* 荣誉资质网格卡片 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.honor-item {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.honor-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C61C2C, #e84057);
}
.honor-item--wide {
    grid-column: span 2;
}
.honor-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #fff0f1, #ffe0e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(198,28,44,0.15);
    transition: all 0.3s ease;
}
.honor-icon {
    width: 28px;
    height: 28px;
    color: #C61C2C;
    stroke-width: 1.5;
}
.honor-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}
.honor-text strong {
    display: block;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.honor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(198,28,44,0.12);
    border-color: rgba(198,28,44,0.2);
}
.honor-item:hover .honor-icon-wrap {
    background: linear-gradient(135deg, #C61C2C, #e84057);
    border-color: transparent;
}
.honor-item:hover .honor-icon {
    color: #fff;
}
/* 统一业务卡片高亮 */
.highlight-card {
    border: 2px solid #C61C2C;
    position: relative;
    overflow: hidden;
}
.highlight-card::before {
    content: '核心业务';
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: #C61C2C;
    color: white;
    font-size: 0.75rem;
    padding: 4px 30px;
    transform: rotate(45deg);
    z-index: 10;
}

/* 标签切换平滑过渡 */
.tab-btn {
    transition: all 0.3s ease;
}
.tab-btn.active:not(.tab-underline) {
    background-color: #C61C2C;
    color: white;
    border-color: #C61C2C;
}

/* 下划线式标签 (用于案例页面等) */
.tab-underline.active {
    color: #C61C2C !important;
    border-bottom: 2px solid #C61C2C !important;
    background-color: transparent !important;
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Carousel 动画 */
@keyframes slideShow {
    0% { transform: scale(1); opacity: 1; }
    25% { transform: scale(1.05); opacity: 1; }
    33.33% { transform: scale(1.05); opacity: 0; }
    91.66% { transform: scale(1); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: slideShow 15s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }

/* 浮动咨询按钮 */
.floating-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(198, 28, 44, 0.3);
}

/* 成功案例高端卡片样式 */
.case-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
}

.case-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 40px 80px -15px rgba(41, 53, 63, 0.15), 0 20px 40px -20px rgba(0, 0, 0, 0.1);
    border-color: rgba(198, 28, 44, 0.3);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.case-card-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(198, 28, 44, 0.08), transparent 70%);
    z-index: 0;
}

.case-card-content {
    position: relative;
    z-index: 10;
}

.case-card-icon {
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.8);
}

.case-card:hover .case-card-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: #C61C2C;
    color: white;
}

/* 分类标签样式优化 */
.tab-btn-premium {
    position: relative;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #4B5563;
    transition: all 0.3s ease;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn-premium.active {
    background: #29353F;
    color: white;
    box-shadow: 0 12px 24px -6px rgba(41, 53, 63, 0.4);
    border-color: transparent;
}

.tab-btn-premium:not(.active):hover {
    color: #C61C2C;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}


/* 高级微动效 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}
.animate-pulse-soft {
    animation: pulse-soft 8s ease-in-out infinite;
}

/* 渐变文本裁剪优化 */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Entry Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
