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

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2c3e50;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c3e50;
    transition: width 0.3s ease;
}

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

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

/* 轮播图 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 图片暗化遮罩，让文字更清晰 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 120px;
    left: 60px;
    z-index: 2;
    color: #fff;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.slide-content p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
}

/* 轮播点 */
.dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* 服务热线 */
.hotline {
    position: fixed;
    bottom: 25px;
    right: 35px;
    z-index: 100;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.hotline span {
    font-size: 16px;
    color: #666;
}

.hotline strong {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
}

/* 底部备案信息 */
.icp-footer {
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.85);
}

.icp-footer a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.icp-footer a:hover {
    color: #666;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 20px;
    }

    .slide-content {
        left: 20px;
        bottom: 100px;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 15px;
    }

    .hotline {
        bottom: 40px;
        right: 15px;
        font-size: 14px;
        padding: 8px 14px;
    }

    .hotline strong {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }

    .slide-content h2 {
        font-size: 22px;
    }
}
