* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    background: #f9f9f9;
    height: 100vh;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 1.顶部标题栏 */
.page-header-top-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.page-header-top-bar-logo {
    height: 50px;
    padding: 0 50px;
}

.page-header-top-bar-slogan {
    color: #666;
    font-size: 16px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* 2.导航 */
.page-header-menu-bar {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.menu-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* 导航栏 sticky 效果 */
.page-header-menu-bar-sticky-nav {
    width: 100%;
    background-color: #0055aa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

/* 调整导航菜单项在sticky状态下的样式 */
.page-header-menu-bar-sticky-nav .page-header-menu-bar-nav-list {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    list-style: none;
}

.page-header-menu-bar-sticky-nav .page-header-menu-bar-nav-link {
    display: block;
    padding: 16px 24px;
    font-weight: normal;
    position: relative;
    font-size: 16px;
    color: white;
    transition: color 0.3s;
    text-wrap: nowrap;
}

/*菜单项后面图标*/
.nav-item-has-dropdown > a.page-header-menu-bar-nav-link.page-header-menu-bar-dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    opacity: 50%;
}

/*菜单项悬停样式*/
.page-header-menu-bar-nav-link:hover,
.page-header-menu-bar-nav-link.active {
    background: white;
    color: #0055aa;
}

/* 下拉菜单容器 */
.nav-item-has-dropdown {
    position: relative;
}

.page-header-menu-bar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    list-style: none;
    /*padding: 8px 0;*/
    margin: 0;
    opacity: 0;
    transform: translateX(-18%);
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

/*子菜单项*/
.nav-item-has-dropdown:hover .page-header-menu-bar-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.page-header-menu-bar-dropdown-menu a {
    text-align: center;
    display: block;
    color: #0055aa;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.2s;
}

.page-header-menu-bar-dropdown-menu a:hover {
    background: #0055aa;
    color: white;
    border-color: #0055aa;
    transform: translateX(0);
    border-radius: 5px 5px 5px 5px;
}

/*导航栏右侧*/
.header-right-section {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/*导航栏搜索框*/
.menu-search-container {
    position: relative;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    align-items: center;
}

.menu-search-input {
    width: 100%;
    padding: 8px 16px 8px 36px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s;
}

.menu-search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.menu-search-input:focus {
    background: rgba(255, 255, 255, 0.8);
    color: black;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.menu-search-input:focus::placeholder {
    opacity: 0;
}

.menu-search-button {
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transform: scale(1.2);
}

.menu-search-button:hover {
    transform: scale(1.5);
    transition: all 0.3s ease;
}

/*导航栏登录模块*/
.auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-link {
    color: white !important;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
}

.divider {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

/*3.轮播图*/
.carousel-image {
    opacity: 1;
    transition: opacity 0.5s ease;
    aspect-ratio: 3.2 / 1;
}

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片完整 */
    display: block;
}

.el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
}

.el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
}

/* 4.产品区 */

.text-top {
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 100px;
}

.text-top::before {
    content: attr(data-num);
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 100px;
    color: #0055aa;
    opacity: 0.1;
    z-index: 0;
}

.page1 {
    padding: 30px 0;
    background: #f9f9f9;
    width: 100%;
}

.index-area-main {
    width: 100%;
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: row;
}

.index-products-sidebar {
    display: flex;
    flex-direction: column;
    width: 200px;
    padding: 15px;
    gap: 10px;
}

.index-products-button {
    font-size: 16px;
    background: #0055aa;
    color: white;
    padding: 10px;
    border-radius: 5px;
    flex-wrap: wrap;
    cursor: pointer;
    width: 100%;
    text-align: center;
    border: 1px solid transparent;
}

.index-products-button:hover {
    background: white;
    color: #0055aa;
    border-color: #0055aa;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.index-products-button.active {
    background: #1a73e8;
    color: white;
}

.index-products-button.active:hover {
    background: white;
    color: #0055aa;
    border-color: #0055aa;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.index-products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 10px;
}

.index-products-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 0 8px 0;
    margin: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: auto;
    min-height: 230px;
}

.index-products-card:hover {
    transform: scale(1.02);
}

.index-products-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    padding: 5px;
}

.index-products-card-image:not(.lazy-load) {
    opacity: 1;
}

.index-products-card-name {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

/* 关于我们 */
.page2 {
    padding: 30px 0;
    width: 100%;
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e7ea 100%);
}

.index-about-content {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: auto;
}

.index-about-text {
    color: black;
    align-items: center;
    margin: 0 auto;
    font-size: 16px;
    width: 90%;
    line-height: 1.6;
    margin-bottom: 40px;
}

.index-about-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.index-about-services-item {
    position: relative;
    padding: 20px;
    min-height: 120px;
}

.index-about-services-item::before {
    content: attr(data-num);
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 100px;
    color: #0055aa;
    opacity: 0.1;
    z-index: 0;
}

.index-about-services-item h3 {
    font-size: 16px;
    color: #0055aa;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.index-about-services-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* 5.新闻 */

.index-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.index-news-card {
    /*background: #f9f9f9;*/
    padding: 20px;
}

.index-news-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #000;
}

.index-news-card .date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.index-news-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.page-footer {
    background: #f0f2f5;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    text-align: center;
}

.page-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /*max-width: 1200px;*/
    margin: 0 auto 20px;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 40px;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    font-size: 12px;
    gap: 20px;
    color: #666;
    width: 100%;
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 20px;
    text-wrap: nowrap;
}

/*!* 响应式优化 *!*/
/*@media (max-width: 1200px) {*/
/*    .page-header-top-bar-logo {*/
/*        height: 40px;*/
/*    }*/

/*    .page-header-menu-bar-sticky-nav {*/
/*        padding: 0 0;*/
/*    }*/

/*    .page-header-menu-bar-sticky-nav .page-header-menu-bar-nav-list {*/
/*        gap: 0;*/
/*    }*/
/*}*/

/*其他页面通用*/
.page3 {
    padding: 30px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.page-area-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-x: hidden;
    /*gap: 15px;*/
    overflow: hidden;
    min-height: 500px;
}

.page-area-main2 {
    display: flex;
    flex-direction: row;
}

.page-sidebar {
    display: flex;
    flex-direction: column;
    width: 200px;
    gap: 10px;
    padding: 15px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.page-content {
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

/* 限制内容宽度 */
.page-content h1 {
    padding: 26px 0;
    text-align: center;
}

.page-content p {
    max-width: 100%;
    font-size: 16px;
    text-indent: 2em;
    word-wrap: break-word; /* 长单词换行 */
    overflow-wrap: break-word; /* 长字符串换行 */
}
