/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #333;
    background-color: #f5f7fa;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部信息栏 */
.top-bar {
    background: #1a1a2e;
    color: #b0b0b0;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: #b0b0b0; margin-left: 15px; }
.top-bar a:hover { color: #fff; }

/* 导航栏样式 */
.header-main {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}
.logo-text {
    flex: 1;
    min-width: 0;
}
.logo-area img {
    height: 45px;
    width: auto;
}
.logo-text h1 {
    font-size: 20px;
    color: #1a1a2e;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.logo-text p {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
    word-break: break-all;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 0 0 auto;
}
.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-height: 70px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.nav-menu li a:hover,
.nav-menu li a.active {
    color: #409EFF;
    border-bottom-color: #409EFF;
}

/* 内容区域 */
.content {
    min-height: 500px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 轮播图样式 */
.banner-section {
    background: #1a1a2e;
}
.banner-section .el-carousel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}
.banner-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.banner-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}
.banner-text p {
    font-size: 18px;
    opacity: 0.9;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 700;
}
.section-title p {
    color: #888;
    font-size: 15px;
}
.section-title .line {
    width: 50px;
    height: 3px;
    background: #409EFF;
    margin: 15px auto 0;
}

/* 公司简介样式 */
.about-section {
    padding: 60px 0;
    background: #fff;
}
.about-content {
    display: flex;
    gap: 35px;
    align-items: center;
}
.about-text {
    flex: 1;
    min-width: 0;
}
.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a2e;
}
.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}
.about-image {
    flex-shrink: 0;
    width: 45% !important;
}
.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 高德地图容器 */
.amap-wrapper {
    width: 100%;
    max-width: 100%;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.amap-placeholder {
    width: 100%;
    max-width: 100%;
    height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #909399;
    text-align: center;
    padding: 20px;
    border: 1px dashed #dcdfe6;
    box-sizing: border-box;
}
.amap-placeholder p {
    margin: 8px 0 0;
    font-size: 13px;
}
.amap-container {
    width: 100%;
    max-width: 100%;
    height: 260px;
    border-radius: 8px;
    box-sizing: border-box;
}
.amap-nav-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #409EFF;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.amap-nav-btn:hover {
    background: #66b1ff;
    color: #fff;
}
.amap-nav-btn i {
    margin-right: 4px;
}

/* 产品展示样式 */
.product-section {
    padding: 60px 0;
    background: #f5f7fa;
}
.product-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    margin-bottom: 20px;
    color: inherit;
    text-decoration: none;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product-card .product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card .product-info {
    padding: 18px;
}
.product-card .product-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #1a1a2e;
}
.product-card .product-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 优势样式 */
.advantage-section {
    padding: 60px 0;
    background: #fff;
}
.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}
.advantage-item:hover {
    background: #f5f7fa;
}
.advantage-item .icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.advantage-item .icon-box i {
    font-size: 32px;
    color: #fff;
}
.advantage-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a2e;
}
.advantage-item p {
    font-size: 14px;
    color: #888;
}

/* 资讯列表样式 */
.news-section {
    padding: 60px 0;
    background: #f5f7fa;
}
.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
}
.news-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.news-item .news-img {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    overflow: hidden;
}
.news-item .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-item .news-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-item .news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a2e;
}
.news-item .news-info p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item .news-info .news-meta {
    margin-top: 12px;
    font-size: 13px;
    color: #aaa;
}

/* 页脚样式 */
.footer {
    background: #1a1a2e;
    color: #b0b0b0;
    padding: 50px 0 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}
.footer-col {
    flex: 1;
}
.footer-col h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}
.footer-col p,
.footer-col a {
    font-size: 14px;
    line-height: 2;
    color: #b0b0b0;
}
.footer-col a:hover {
    color: #409EFF;
}
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #888;
}
/* 页脚产品列表 */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.product-list span,
.product-list a {
    white-space: nowrap;
    line-height: 1.6;
    color: #b0b0b0;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}
.product-list a:hover {
    color: #409EFF;
}

/* 产品详情页 */
.detail-page {
    padding: 40px 0;
    background: #f5f7fa;
    min-height: 500px;
}
.detail-breadcrumb {
    margin-bottom: 20px;
}
.detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}
.detail-card h1 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 20px;
}
.detail-card .detail-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.detail-card .detail-content {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}
.detail-card .detail-content p {
    margin-bottom: 15px;
}
.detail-card .detail-content ul,
.detail-card .detail-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}
.detail-card .detail-content li {
    margin-bottom: 5px;
}

/* 列表页 */
.list-page {
    padding: 40px 0;
    background: #f5f7fa;
    min-height: 500px;
}
.list-filter {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* 关于我们页面 */
.about-page .about-intro {
    padding: 60px 0;
    background: #fff;
}
.about-page .timeline-section {
    padding: 60px 0;
    background: #f5f7fa;
}
.about-page .culture-section {
    padding: 60px 0;
    background: #fff;
}
.about-page .dynamic-section {
    padding: 60px 0;
    background: #f5f7fa;
}

/* 联系我们 */
.contact-page {
    padding: 40px 0;
    background: #f5f7fa;
    min-height: 500px;
}
.contact-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
}
.contact-info-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a2e;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info-item i {
    font-size: 20px;
    color: #409EFF;
    margin-right: 15px;
    margin-top: 3px;
}
.contact-info-item .label {
    font-size: 14px;
    color: #888;
    margin-bottom: 3px;
}
.contact-info-item .value {
    font-size: 15px;
    color: #333;
}
.contact-form-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
}

/* 动态列表 */
.dynamic-list-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
.dynamic-list-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.dynamic-list-item h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.dynamic-list-item p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dynamic-list-item .meta {
    margin-top: 10px;
    font-size: 13px;
    color: #aaa;
}

/* 移动端汉堡菜单按钮 */
.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}
.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端下拉菜单 */
.mobile-nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-direction: column;
    z-index: 99;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}
.mobile-nav-menu.open {
    max-height: 300px;
}
.mobile-nav-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}
.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background: #f0f9ff;
    color: #409EFF;
}
.mobile-nav-menu a:last-child {
    border-bottom: none;
}

/* 移动端悬浮咨询按钮 */
.float-consult-btn {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 998;
    background: linear-gradient(135deg, #67C23A 0%, #52a324 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(103, 194, 58, 0.4);
    cursor: pointer;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: floatPulse 2s ease-in-out infinite;
}
.float-consult-btn i {
    font-size: 16px;
}
.float-consult-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(103, 194, 58, 0.5);
}
@keyframes floatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    background: #409EFF;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(64,158,255,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 20px;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #66b1ff;
    box-shadow: 0 6px 16px rgba(64,158,255,0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .top-bar .container {
        justify-content: center;
        font-size: 12px;
    }
    .top-bar .container > span {
        display: none;
    }
    .header-main .container {
        min-height: 60px;
        padding: 0 15px;
        position: relative;
    }
    .logo-area img {
        height: 36px;
    }
    .logo-text h1 {
        font-size: 16px;
    }
    .logo-text p {
        font-size: 11px;
        line-height: 1.4;
        word-break: break-all;
    }
    .nav-menu {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .mobile-nav-menu {
        display: flex;
    }
    .banner-text h2 {
        font-size: 24px;
    }
    .banner-section .el-carousel {
        height: 280px !important;
    }
    .banner-section .el-carousel__container {
        height: 280px !important;
    }
    .about-content {
        flex-direction: column;
    }
    .about-image {
        width: 100% !important;
        max-width: 100%;
    }
    .amap-wrapper,
    .amap-placeholder,
    .amap-container {
        height: 220px;
    }
    .footer-content {
        flex-direction: column;
    }
    .news-item {
        flex-direction: column;
    }
    .news-item .news-img {
        width: 100%;
        height: 180px;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .float-consult-btn {
        display: flex;
    }
}
