/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: #fff;
}

.layui-container {
    max-width: 1200px;
}

/* 导航栏样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .layui-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1E9FFF;
    font-size: 22px;
    font-weight: bold;
    margin-right: 40px;
}

.header .logo img {
    height: 30px;
    margin-right: 10px;
}

.header .layui-nav {
    background: transparent;
	flex: 1;
}

.header .layui-nav .layui-nav-item a {
    color: #333;
    font-size: 16px;
}

.header .layui-nav .layui-nav-item.layui-this a,
.header .layui-nav .layui-nav-item a:hover {
    color: #1E9FFF;
}

.header .layui-layout-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 轮播图样式 */
.layui-carousel {
    margin-bottom: 0;
}

.banner-item {
    height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* 半透明黑色遮罩，提高文字可读性 */
    z-index: 1;
}

.banner-item .layui-container {
    position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 20px;
}

.banner-item h2 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
	font-weight: bold;
}

.banner-item p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    max-width: 600px;
	font-weight: bold;
}

.banner-item .layui-btn {
    padding: 12px 40px;
    font-size: 18px;
    border-radius: 25px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    min-height: 50px;
}

/* 业务介绍样式 */
.business-intro {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #1E9FFF;
    margin-bottom: 20px;
    font-weight: 300;
}

.section-desc {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
}

/* business-card样式 */
.business-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.business-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E9FFF, #009688);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.business-icon .layui-icon {
    font-size: 36px;
    color: #fff;
}

.business-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.business-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.business-card .layui-btn {
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.business-card .layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 159, 255, 0.3);
}

/* 数据统计样式 */
.stats-section {
    padding: 80px 0;
    background: #f0f8ff; /* 浅蓝色背景 */
    border-radius: 10px; /* 添加圆角 */
    margin: 40px auto; /* 上下间距，左右自动居中 */
    max-width: 1200px; /* 限制最大宽度，与容器一致 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.stats-section .layui-container {
    max-width: 1200px;
}

.stats-item {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.stats-item:hover {
    transform: translateY(-5px); /* 悬停时轻微上移 */
}

.stats-item h3 {
    font-size: 48px;
    color: #1E9FFF;
    margin-bottom: 10px;
    font-weight: 300;
}

.stats-item p {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* 移除全局的layui-bg-gray背景色，避免冲突 */
.layui-bg-gray {
    background-color: transparent; /* 设置为透明，避免影响stats-section */
}

/* footer样式 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
    margin-top: 80px;
}


.footer .layui-bg-gray {
	background-color: #ECF8FF;
}


.footer .layui-container {
    max-width: 1200px;
}

.footer h3 {
    font-size: 20px;
    color: #1E9FFF;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer p {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer .layui-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .layui-footer-links li {
    margin-bottom: 10px;
}

.footer .layui-footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer .layui-footer-links a:hover {
    color: #1E9FFF;
}

.copyright {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 14px;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer .layui-col-md4 {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer h3 {
        font-size: 18px;
    }
    
    .footer p, .footer .layui-footer-links a {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 12px;
        padding-top: 15px;
        margin-top: 30px;
    }
}


/* API市场搜索栏样式 */
.api-search-section {
    background: linear-gradient(135deg, #1E9FFF 0%, #009688 100%);
    padding: 60px 0;
    color: white;
    margin-bottom: 40px;
}

.api-search-section .search-content {
    text-align: center;
}

.api-search-section h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.api-search-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #1E9FFF;
    border: none;
    padding: 0 25px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #009688;
}

.search-btn .layui-icon {
    font-size: 20px;
}

/* API分类导航样式 */
.api-category {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.api-category h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.api-category .layui-nav {
    background: white;
    border: none;
}

.api-category .layui-nav-item > a {
	background: white;
    color: #333 !important;
    font-size: 16px;
    padding: 12px 15px;
	border: none;
	align-items: center;
	justify-content: center;
}

.api-category .layui-nav-item.layui-this > a,
.api-category .layui-nav-item > a:hover {
    background-color: transparent;  /* 移除背景色 */
    color: #1E9FFF !important;     /* 保留蓝色文字 */
	border-bottom: 0.5px solid #f8f8f8 !important;
}

.api-category .layui-nav-child {
    background: white;
    border: none;
	align-items: center;
	justify-content: center;
}

.api-category .layui-nav-child dd a {
    color: #666 !important;
    font-size: 14px;
    padding: 12px 15px 12px 25px;  /* 修改padding，上下保持一致为12px */
    border-bottom: 0.5px solid #f5f5f5;
    background: white;
    display: flex;                 /* 使用flex布局 */
    align-items: center;           /* 垂直居中 */
    height: 40px;                  /* 设置固定高度 */
    line-height: 1;               /* 重置行高 */
}

.api-category .layui-nav-child dd.layui-this a,
.api-category .layui-nav-child dd a:hover {
    color: #1E9FFF !important;      /* 选中时文字为白色 */
    background-color: white !important;        /* 选中时背景为白色 */
    display: flex;                   /* 保持flex布局 */
    align-items: center;            /* 垂直居中 */
    height: 40px;                   /* 保持固定高度 */
    line-height: 1;                /* 重置行高 */
}

.api-category .layui-badge {
    float: right;
    margin-top: 2px;
}

/* API列表样式 */
.api-list {
    padding-left: 20px;
}

.api-category-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #1E9FFF;
}

.api-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #1E9FFF;
}

.api-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.api-card-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.api-card-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.api-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.api-meta span {
    display: flex;
    align-items: center;
}

.api-meta .layui-icon {
    margin-right: 5px;
    font-size: 14px;
}

.api-card-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.api-card-footer .layui-btn {
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .api-search-section h1 {
        font-size: 36px;
    }
    
    .api-search-section p {
        font-size: 16px;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-input {
        padding: 12px 20px;
    }
    
    .search-btn {
        padding: 12px 20px;
    }
    
    .api-list {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .api-category {
        margin-bottom: 0;
    }
}

/* 卡片样式 */
.project-list-item-desc .time {
	/* 确保覆盖原有样式 */
	display: inline-block;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
}
/* 增加API市场容器宽度 */
.layui-container.api-market-container {
	max-width: 1400px; /* 可以根据需要调整这个值 */
	width: 100%;
}

.project-list-item .project-list-item-text {
	color: #999;
}