/* 上海利钊机电设备有限公司 - 主样式文件 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.w-100{width: 100%;}
a{color: #000 ;text-decoration: none;}
.bg-primary{background-color: rgba(223, 21, 53, 0.9) !important}
.white h3,.white p{color: #fff;}
.footer p,.footer a{
    color: #fff;
}
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 400;
}

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

/* 改进的文字排版 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a252f;
}

p {
    margin-bottom: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.7;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(223, 21, 53, 0.1);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    color: #1a252f !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 600;
    margin: 0 .8rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.5rem 0 !important;
}

.navbar-nav .nav-link:hover {
    color: #df1535 !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #df1535, #ff4757);
    transition: width 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(223, 21, 53, 0.2);
}

/* Banner样式 */
.hero-banner {
   /* height: 100vh;*/
   /* background: url('../images//banner.jpg') center center/cover no-repeat;*/
  /*  display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;*/
}

/*.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}*/

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .slogan {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content .description {
    font-size: 1.2rem;
    color: #f8f9fa;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 产品名称卡片样式 */
.product-name-card {
    background: #ffffff;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-name-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: #df1535 !important;
}

.product-name-card h6 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.product-name-card:hover h6 {
    color: #df1535;
}

.product-name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(223, 21, 53, 0.05), transparent);
    transition: left 0.5s;
}

.product-name-card:hover::before {
    left: 100%;
}

.product-list h3 {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.product-list h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #df1535, #ff4757);
    border-radius: 2px;
}

/* 按钮样式 - 现代化设计 */
.btn-primary {
    background: linear-gradient(135deg, #df1535 0%, #ff4757 100%);
    border: none;
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(223, 21, 53, 0.3);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c41230 0%, #e63946 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(223, 21, 53, 0.4);
    color: white;
}

.btn-outline-primary {
    color: #df1535;
    border: 2px solid #df1535;
    background: transparent;
    padding: 13px 33px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #df1535 0%, #ff4757 100%);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-outline-primary:hover {
    color: white;
    border-color: #df1535;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(223, 21, 53, 0.4);
}

/* CTA区域样式 */
.cta-section {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

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

.card-header {
    background-color: #df1535;
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 1.5rem;
}

.card-title {
    color: #000;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 节标题样式 - 现代化设计 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a252f;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #df1535, #ff4757);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(223, 21, 53, 0.3);
}

.section-title .subtitle {
    font-size: 1.15rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* section间距优化 */
section {
    padding: 5rem 0;
}

section.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* 改进的文本样式 */
.text-center .lead {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: #6c757d;
    font-weight: 400;
}

/* 统计数字样式 */
.stats-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: #df1535;
    display: block;
}

.stats-label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* 合作伙伴样式 */
.partner-logo {
    height: 80px;
    object-fit: contain;
    border: 1px solid #999;
    width: 100%;
    padding: 10px;
    
}

.partner-logo:hover {
    filter: grayscale(0%);
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer h5 {
    color: #df1535;
    margin-bottom: 1rem;
}

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

.footer a:hover {
    color: #df1535;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {width: 80%}
    .navbar-brand img {width: 100%}
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .slogan {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
}

/* 动画效果 - 增强版 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* 滚动触发动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #df1535;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 鼠标悬停效果增强 */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 产品详情页样式 */
.product-detail {
    padding: 2rem 0;
}

.product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.product-specs {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.spec-item:last-child {
    border-bottom: none;
}

/* 新闻列表样式 */
.news-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.news-title {
    color: #000;
    font-weight: 600;
    margin: 0.5rem 0;
font-size: 16px;
}

.news-summary {
    color: #666;
    line-height: 1.6;
    font-size: 12px;
    min-height: 100px;
}

/* 检修图片展示样式 - 现代化设计 */
.repair-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(223, 21, 53, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 2rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.repair-image-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(223, 21, 53, 0.2);
}

.repair-image-card img {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    filter: brightness(0.95) contrast(1.1);
}

.repair-image-card:hover img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.2);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 2.5rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.repair-image-card:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay h6 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

/* 图片展示区域增强样式 */
.repair-image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(223, 21, 53, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.repair-image-card:hover::before {
    opacity: 1;
}

/* 特色大图样式 */
.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(223, 21, 53, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 2rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.featured-image:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(223, 21, 53, 0.25);
}

.featured-image img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(0.9) contrast(1.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-image:hover img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.25);
}

.featured-image .image-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 3rem 2rem 2rem;
}

.featured-image .image-overlay h6 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.featured-image .image-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .repair-image-card {
        margin-bottom: 1.5rem;
    }
    
    .repair-image-card img {
        height: 250px;
    }
    
    .repair-image-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .featured-image img {
        height: 300px;
    }
    
    .featured-image:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .featured-image .image-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .featured-image .image-overlay h6 {
        font-size: 1.2rem;
    }
}

/* 检修范围卡片样式 */
.scope-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.scope-icon {
    margin-bottom: 1.5rem;
}

.scope-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.scope-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.scope-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #df1535;
    font-weight: bold;
}

.scope-list li:last-child {
    border-bottom: none;
}

/* 检修流程样式 */
.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #df1535;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    margin: 2rem 0 1rem;
}

/* 技术优势样式 */
.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.advantage-icon {
    margin-right: 1.5rem;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.advantage-content h5 {
    margin-bottom: 1rem;
    color: white;
}

/* 常见问题样式 */
.problem-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.problem-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.problem-header h5 {
    margin: 0;
    color: #000;
}

.problem-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 服务案例样式 */
.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 1.5rem;
}

.case-content h5 {
    color: #000;
    margin-bottom: 1rem;
}

.case-results {
    margin-top: 1rem;
}

.case-results .badge {
    margin-bottom: 0.5rem;
}
