 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background: linear-gradient(to bottom, #e0f7e9, #f5f5f5);

}
ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
}
/* 导航栏样式 */
.header {
    background: #2c3e50; /* 绿色渐变 */
    color: white;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1300px;
  margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 8px;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
    margin: 0 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    transition: all 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover {
    background-color: #f5f7fa;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-buttons a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

.btn-register {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Banner区域样式 */
.banner {
    background: linear-gradient(135deg, #4CAF50 0%, #008ce6 100%);
    padding: 40px 5%;
    color: white;
    text-align: center;
    min-height: 580px;
    width: 100%;
    /* height: 100px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

.search-container {
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    min-width: 300px;
}

.search-btn {
    background: #eebc2b;
    color: rgb(26, 26, 26);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: bold;  
    font-size: 16px;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #3e8e41;
}

.platform-tags {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    font-weight: 600;
    gap: 15px;
    margin-top: 20px;
    
}

.platform-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    background: #e6ece630;
    transition: all 0.3s ease;
    border: 1px solid #e0f0e0;
    transition: all 0.3s;
}

.platform-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主要内容区域 - 修改为渐变背景 */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    border-radius: 8px;
}

/* 行业侧边栏样式 - 添加多级目录功能 */
.industry-sidebar {
    width: 280px;
    background: white;
    border-radius: 8px;
    padding: 20px  0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-right: 20px;
}

.industry-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4CAF50;
    padding-bottom: 10px;
    padding-left: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.industry-list {
    list-style: none;
}

.industry-list li {
    margin-bottom: 12px;
    position: relative;
}

.industry-list > li > a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 30px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}

.industry-list > li > a:hover {
    background: #f0f9eb;
    color: #4CAF50;
}

/* 二级目录样式 */
.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 278px;
    padding: 16px 8px 10px 0px;
    margin-top: 0;
    width: 900px;
    height: 541px;
    overflow: overlay;
    overflow: auto;
    z-index: 1;
    background: #fff;
    box-shadow: 0 10px 40px 0 rgba(153,153,153,.2);
    border-radius: 12px;
    border: 1px solid #ebeef5;
}

.industry-list li:hover .submenu {
    display: block;
}

.submenu li {
    margin: 0;
    display: flex;
}

.submenu a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    transition: all 0.3s;
}

.submenu a:hover {
    background: #f0f9eb;
    color: #4CAF50;
}
.submenu-level2 {
    min-width: 130px;
    font-weight: bold;
}
/* 三级目录样式 */
.submenu-level3 {
    /*position: absolute; */
    left: 100%;
    top: 0;
    background: white;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    border-radius: 4px;
    z-index: 11;
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    border-bottom: solid 1px #f0f3fa;
    padding: 6px 0;
}



.submenu-level3 a {
    padding: 6px 15px;
    font-size: 13px;
}

/* 功能卡片区域 */
.feature-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.card-img-title{
    color: #ffffff;
    background-color: #29292975;
    font-size: 24px;
    margin: auto;
    display: flex;
    justify-content: center;
    height: 100%;
    line-height: 100%;
    align-items: center;
}
.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   /*  background: rgba(0, 0, 0, 0.3);半透明黑色 */
}

.card-content {
    padding: 20px;
}
.logo span:first-child {
    color: #fff;
    }
    .logo span:last-child {
    color: #4CAF50;
    margin-left: 5px;
    }
.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 底部样式 - 修改为灰色 */
.footer {
    background: #063a1c;
    padding: 30px 5%;
    margin-top: 50px;
    text-align: center;
    color: #dfdfdf;
    font-size: 14px;
}
 /* 关键CSS代码 */
.industry-sidebar {
    position: relative; /* 为子菜单提供定位上下文 */
}

.industry-list > li {
    position: static; /* 使子菜单相对于侧边栏定位 */
}

.submenu {
    position: absolute;
    left: 100%; /* 子菜单位于父菜单右侧 */
    top: 0; /* 关键：子菜单顶部与侧边栏顶部对齐 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}

.submenu.active {
    opacity: 1;
    visibility: visible;
}
.submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.submenu.active {
    display: block; /* 保持原有的display属性 */
}