/* 佛山铭诺科技有限公司网站样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container, .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ======= 导航栏 ======= */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0066CC;
}

.logo-img {
    height: 66px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover { color: #0066CC; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066CC;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* 下拉菜单 */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1rem 0;
    z-index: 1001;
}
.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}
.dropdown-content a:hover {
    background: #f8f9fa;
    color: #0066CC;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ======= 主要内容区域 ======= */
/* Hero区域 */
.hero {
    height: 100vh;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}
.cta-button::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;
}
.cta-button:hover::before { left: 100%; }
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* 通用区块样式 */
.section { padding: 5rem 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #0066CC;
    border-radius: 2px;
}

/* 网格系统 */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 顶部加一个虚线边框 */
.grid-border {
    border-top: 1px dashed #CCCCCC;
    margin-top: 1rem;
    padding-top: 1rem;
}

/* 卡片组件 */
.card, .business-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.card:hover, .business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.business-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.card h3, .business-card h3 {
    color: #0066CC;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.business-card {
    padding: 2rem;
    text-align: center;
}
.business-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 核心优势 */
.contact-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.contact-info-item {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    border-right: 1px solid #eee;
}

@media (min-width: 768px) {
    .contact-info-item {
        flex: 1 1 calc(33.33% - 2rem);
        max-width: calc(33.33% - 2rem);
    }
}

@media (max-width: 768px) {
    .contact-info-item {
        flex: 1 1 100%;
        max-width: 100%;
        border-right: none;
    }
}

/* 统计数据 */
.stats {
    background: linear-gradient(135deg, #0066CC 0%, #1E88E5 100%);
    color: white;
    padding: 4rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 案例项目 */
.case-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.case-content { padding: 1.5rem; }
.case-content h3 {
    color: #0066CC;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.case-amount {
    font-weight: 700;
    color: #FF6B35;
    font-size: 1.1rem;
}
.case-category {
    background: #FF6B35;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 按钮系统 */
.button-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: #0066CC;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #0066CC;
}
.btn:hover {
    background: #0052A3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    background: transparent;
    color: #0066CC;
}
.btn-outline:hover {
    background: #0066CC;
    color: white;
}

/* 表单元素 */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066CC;
}

/* 时间线 */
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0066CC;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 50%;
}
.timeline-item:nth-child(odd) { 
    left: 0; 
    padding-right: 2rem; 
}
.timeline-item:nth-child(even) { 
    left: 50%; 
    padding-left: 2rem; 
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}
.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-left-color: white;
}
.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-right-color: white;
}

/* ======= 页脚 ======= */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 {
    margin-bottom: 1rem;
    color: #0066CC;
}
.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover { color: #0066CC; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    opacity: 0.7;
}

/* 联系信息优化 */
.contact-info-container .contact-info-item {
    border: none !important;
    padding: 1.5rem 0 !important;
}
.contact-info-container .contact-info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.contact-info-container .contact-info-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 辅助组件 */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0066CC;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    background: #0052A3;
    transform: translateY(-3px);
}

.filter-btn {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #0066CC;
    border: 2px solid #0066CC;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn.active, 
.filter-btn:hover {
    background: #0066CC;
    color: white;
}

/* 轮播图 */
.work-environment-slider {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}
.slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    will-change: transform;
}
.slide {
    flex: 0 0 auto;
    width: calc((100% - 3rem) / 3);
    min-width: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.scroll-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0, 102, 204, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.scroll-prev { left: 0.5rem; }
.scroll-next { right: 0.5rem; }
.scroll-btn:hover {
    opacity: 1;
    background: #0066CC;
}

/* ======= 响应式设计 ======= */
@media (max-width: 1024px) {
    .slide { width: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 2rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
        background: #f8f9fa;
    }
    .dropdown:hover .dropdown-content,
    .dropdown.open .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .slide { width: 100%; }

    .timeline::before { left: 20px; }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
    }
    .timeline-content::before {
        left: -20px !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .case-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item h3 { font-size: 2rem; }
}


/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}