* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
#header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    margin: 0;
    margin-right: 20px;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.company_name {
    font-size: 26px;
    background: linear-gradient(135deg, #409EFF 0%, #67C23A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    margin-right: 50px;
    font-weight: bold;
    letter-spacing: 2px;
}

.el-menu--horizontal {
    flex: 1;
    border-bottom: none !important;
    display: flex;
    justify-content: flex-end;
}

.el-menu-item {
    padding: 0 18px;
    height: 60px;
    line-height: 60px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.el-menu-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.el-menu-item:hover {
    background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
    color: #fff !important;
}

.el-menu-item.is-active {
    background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
    color: #fff !important;
    border-bottom: none;
}

.el-submenu {
    position: relative;
    margin: 0 2px;
}

.el-submenu__title {
    height: 60px;
    line-height: 60px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.el-submenu:hover > .el-submenu__title {
    background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
    color: #fff !important;
}

.el-submenu:hover > .el-menu--horizontal,
.el-submenu:hover > .el-menu--horizontal > .el-menu--popup {
    display: block !important;
}

.el-menu--horizontal .el-menu--popup {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    min-width: 180px;
    padding: 10px 0;
    animation: fadeIn 0.3s ease;
}

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

.el-menu--popup {
    display: none;
}

.el-submenu:hover > .el-menu--horizontal > .el-menu--popup,
.el-submenu:hover > .el-menu--popup {
    display: block !important;
}

.el-menu--popup .el-menu-item {
    height: 50px;
    line-height: 50px;
    margin: 0;
    border-radius: 0;
}

.el-menu--popup .el-menu-item:hover {
    background: #f0f7ff;
    color: #409EFF !important;
}

/* 主内容区 */
main {
    flex: 1;
    padding: 30px 50px;
}

.main-page {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.main-page h1 {
    font-size: 36px;
    background: linear-gradient(135deg, #303133 0%, #606266 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 2px;
}

.main-page h2 {
    font-size: 28px;
    color: #303133;
    margin: 50px 0 30px;
    text-align: center;
    position: relative;
}

.main-page h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #409EFF 0%, #67C23A 100%);
    border-radius: 2px;
}

.main-page h3 {
    font-size: 20px;
    color: #409EFF;
    margin-bottom: 15px;
}

.main-page p {
    color: #606266;
    line-height: 1.8;
    margin-bottom: 15px;
}

.el-row {
    margin-bottom: 20px;
}

.el-col-6 {
    width: 25%;
    float: left;
    padding: 0 15px;
}

.el-col-16 {
    width: 66.66667%;
    margin: 0 auto;
    float: none;
}

.el-col-offset-4 {
    margin-left: 16.66667%;
}

/* 服务卡片 - 设计、验证、制造、管理 */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(64, 158, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #409EFF 0%, #67C23A 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(64, 158, 255, 0.2);
    border-color: rgba(64, 158, 255, 0.3);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #409EFF 0%, #66b1ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(64, 158, 255, 0.3);
}

.service-card:nth-child(2) .icon {
    background: linear-gradient(135deg, #67C23A 0%, #85ce61 100%);
    box-shadow: 0 10px 30px rgba(103, 194, 58, 0.3);
}

.service-card:nth-child(3) .icon {
    background: linear-gradient(135deg, #E6A23C 0%, #ebb563 100%);
    box-shadow: 0 10px 30px rgba(230, 162, 60, 0.3);
}

.service-card:nth-child(4) .icon {
    background: linear-gradient(135deg, #F56C6C 0%, #f78989 100%);
    box-shadow: 0 10px 30px rgba(245, 108, 108, 0.3);
}

.service-card h3 {
    font-size: 22px;
    color: #303133;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    color: #909399;
    line-height: 1.8;
}

/* 产品分类区块 */
.product-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.product-category {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #ebeef5;
    transition: all 0.3s ease;
}

.product-category:hover {
    border-color: #409EFF;
    box-shadow: 0 10px 30px rgba(64, 158, 255, 0.1);
}

.product-category h3 {
    font-size: 18px;
    color: #303133;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #409EFF;
    position: relative;
}

.product-category h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #67C23A;
}

.product-category ul {
    list-style: none;
    padding: 0;
}

.product-category li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.product-category li:last-child {
    border-bottom: none;
}

.product-category li a {
    color: #606266;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.product-category li a::before {
    content: '→';
    margin-right: 10px;
    color: #409EFF;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.product-category li a:hover {
    color: #409EFF;
    padding-left: 5px;
}

.product-category li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* 联系我们按钮 */
.contact-us {
    display: inline-block;
    background: linear-gradient(135deg, #409EFF 0%, #67C23A 100%);
    color: #fff;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(64, 158, 255, 0.3);
    letter-spacing: 2px;
}

.contact-us:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(64, 158, 255, 0.4);
}

/* 页脚 */
#footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    padding: 40px 50px;
    margin-top: auto;
}

#footer .el-container {
    max-width: 1400px;
    margin: 0 auto;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.copyright-span {
    margin-right: 30px;
    display: inline-block;
    margin-bottom: 10px;
}

.copyright a {
    color: #409EFF;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #67C23A;
    text-decoration: underline;
}

/* 内容页面 */
.page-title {
    font-size: 32px;
    color: #303133;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #409EFF;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #67C23A;
}

.content-area {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #ebeef5;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(64, 158, 255, 0.15);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 25px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #303133;
}

.product-card p {
    color: #909399;
    font-size: 14px;
    line-height: 1.7;
}

/* 文章列表 */
.article-list {
    margin-top: 30px;
}

.article-item {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.article-item:hover {
    box-shadow: 0 10px 30px rgba(64, 158, 255, 0.1);
    border-left-color: #409EFF;
    transform: translateX(5px);
}

.article-item h3 {
    font-size: 20px;
    color: #303133;
    margin-bottom: 12px;
}

.article-item h3 a:hover {
    color: #409EFF;
}

.article-item .meta {
    color: #909399;
    font-size: 13px;
    margin-bottom: 12px;
}

.article-item .summary {
    color: #606266;
    line-height: 1.7;
}

/* 详情内容 */
.detail-content {
    line-height: 2;
    color: #606266;
    font-size: 15px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.detail-content h1, .detail-content h2, .detail-content h3 {
    margin: 30px 0 20px;
    color: #303133;
}

.detail-content p {
    margin-bottom: 20px;
}

.detail-content ul, .detail-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

/* 面包屑 */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 14px;
    color: #909399;
    padding: 15px 20px;
    background: #f5f7fa;
    border-radius: 8px;
}

.breadcrumb a {
    color: #409EFF;
}

.breadcrumb a:hover {
    color: #67C23A;
    text-decoration: underline;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 主图区域 */
.main-image-container {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 16px;
}

.main-image-container img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .service-cards,
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #header {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .company_name {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 20px;
    }

    .el-menu--horizontal {
        justify-content: center;
        flex-wrap: wrap;
    }

    main {
        padding: 20px;
    }

    .main-page {
        padding: 30px 20px;
    }

    .service-cards,
    .product-categories {
        grid-template-columns: 1fr;
    }

    .el-col-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .el-col-16 {
        width: 100%;
        margin: 0;
    }

    .el-col-offset-4 {
        margin-left: 0;
    }

    .content-area {
        padding: 30px 20px;
    }

    .copyright-span {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }
}
