/* 整体背景 */
body {
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
}

/* Hero区域样式 */
.hero {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #EBF4FF 0%, #F5F8FF 50%, #ffffff 100%);
    overflow: hidden;
    margin-top: -1px;
    margin-bottom: 0;
    z-index: 1;
}

/* 动态背景图形 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(24, 144, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(54, 207, 201, 0.15) 0%, transparent 50%);
    animation: backgroundShift 25s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1.3) rotate(15deg);
    }
}

/* 浮动装饰元素 */
.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.dot {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #1890ff, #36cfc9);
    opacity: 0.2;
    animation: float 10s ease-in-out infinite;
}

.dot:nth-child(1) { width: 70px; height: 70px; top: 10%; left: 5%; animation-delay: 0s; }
.dot:nth-child(2) { width: 50px; height: 50px; top: 20%; right: 10%; animation-delay: -1s; }
.dot:nth-child(3) { width: 60px; height: 60px; bottom: 30%; left: 15%; animation-delay: -2s; }
.dot:nth-child(4) { width: 45px; height: 45px; bottom: 20%; right: 20%; animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(20deg); }
}

/* Hero内容样式 */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* 标语动画效果 */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    animation: fadeIn 1s ease forwards;
    color: #1e293b;  /* 使用统一的深色 */
}

/* 打字机效果容器 */
.typing-effect {
    display: inline-block;
    position: relative;
    color: #3b82f6;  /* 使用统一的蓝色强调色 */
    font-weight: 800;
}

/* 代码输入光标效果 */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #1890ff;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 粒子效果容器 - 完全重新定义 */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: visible;
}

/* 射线粒子 - 简化定义 */
.ray {
    position: absolute;
    height: 2px;
    background: #1890ff;
    opacity: 0;
    transform-origin: left center;
    z-index: 3;
}

/* 特殊高亮文字 - 简化 */
.highlight-text {
    position: relative;
    color: #1890ff;
    font-weight: bold;
    z-index: 5;
    display: inline-block;
}

/* 闪光效果动画 - 简化 */
@keyframes textFlash {
    0%, 100% { color: #1890ff; }
    50% { color: #ffffff; }
}

.text-flash {
    animation: textFlash 1.5s ease-out forwards;
}

/* 移除旧的粒子爆发效果 */
.particle-burst::before {
    display: none; /* 禁用旧效果 */
}

/* 中央光晕效果 */
.ray-burst::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(24, 144, 255, 0.3);
    transform: translate(-50%, -50%);
    z-index: 4;
    animation: centralGlow 0.8s ease-out forwards;
}

@keyframes centralGlow {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* 箭头动画效果 */
.arrow-animation {
    display: inline-block;
    position: relative;
    animation: arrowPulse 2s infinite;
    color: #36cfc9;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* 简单文字效果 */
.simple-text {
    background: linear-gradient(90deg, #36cfc9, #1890ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;  /* 使用统一的灰色 */
    margin-top: 1.5rem;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-subtitle .highlight {
    color: #3b82f6;  /* 使用统一的蓝色强调色 */
    font-weight: 800;
}

/* 搜索框样式优化 */
.hero-search {
    width: 90%;
    max-width: 900px;
    margin: 4rem auto 4rem;
    position: relative;
    z-index: 3;
}

.hero-search .search-input {
    width: 100%;
    height: 56px;
    padding: 0 25px;
    border: 1px solid rgba(24, 144, 255, 0.15);
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.hero-search .search-input:focus {
    outline: none;
    border-color: rgba(24, 144, 255, 0.3);
    box-shadow: 0 6px 24px rgba(24, 144, 255, 0.12);
}

.hero-search .search-btn {
    position: absolute;
    right: 6px;
    top: 8px;
    width: 80px;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search .hot-words {
    margin-top: 15px;
    text-align: center;
    color: rgba(0, 0, 0, 0.45);
    line-height: 2;
}

.hero-search .hot-words a {
    color: rgba(0, 0, 0, 0.55);
    margin: 0 12px;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-block;
}

/* 添加搜索框聚焦时的光晕效果 */
.hero-search::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(24, 144, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}

.hero-search:focus-within::after {
    opacity: 1;
}

/* 统计数字样式 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 5.5rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    min-width: 120px;
}

.hero-stats .number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1890ff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stats .label {
    font-size: 1rem;
    color: #666;
}

/* 合并热门API和最新API区域成一个整体模块 */
.api-section-wrapper {
    background: linear-gradient(180deg, #edf7ff 0%, #ffffff 100%); /* 蓝色调渐变 */
    padding: 40px 0 50px;
    position: relative;
    margin-top: 0;
}

/* 移除各个部分的单独背景 */
.section.pt-4,
.section.pt-5:nth-of-type(3) {
    background: transparent;
    padding: 0 0 30px;
    position: relative;
}

/* 最新API区域特殊处理 */
.section.pt-5:nth-of-type(3) {
    padding-top: 20px; /* 给两个区域之间一些间距 */
}

/* 移除之前的波浪过渡效果（在各部分之间） */
.section.pt-5:nth-of-type(2)::after,
.section.pt-5:nth-of-type(3)::before {
    display: none;
}

/* Hero区域与API区域之间的过渡效果保留 */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, #edf7ff); /* 过渡到API区域的颜色 */
    z-index: 2;
}

/* API区域与合作伙伴区域之间的过渡效果 */
.api-section-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(0deg, rgba(255,255,255,0.8), transparent);
    z-index: 1;
}

/* 保留合作伙伴区域样式 */
.partners {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    padding: 50px 0 40px; /* 增加上下内边距 */
}

/* 删除冗余样式，只保留产品页匹配的API卡片样式 */
.api-card, 
div.api-card, 
body .api-card {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 163px !important;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.api-card:hover, 
div.api-card:hover, 
body .api-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #1890ff;
}

.api-card .card-body,
div.api-card .card-body,
body .api-card .card-body {
    padding: 1rem;
    height: 100%;
    position: relative;
}

.api-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.api-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.api-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1f36;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-desc,
.api-card .api-desc,
div.api-card .api-desc,
body .api-card .api-desc {
    font-size: 12px !important;
    color: #666;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: auto;
    line-height: 1.5;
}

.api-meta,
.api-card .api-meta,
div.api-card .api-meta,
body .api-card .api-meta {
    font-size: 12px;
    color: #999;
    position: absolute;
    bottom: 15px !important;
    left: 1rem;
    display: flex !important;
    opacity: 1 !important;
    width: calc(100% - 2rem);
}

.api-meta i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

.api-badges {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.badge-hot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.badge-new {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.api-category {
    font-size: 0.75rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

/* 布局辅助类 */
.me-3 {
    margin-right: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-center {
    align-items: center !important;
}

.min-width-0 {
    min-width: 0 !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.d-block {
    display: block !important;
}

/* 栅格系统 */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-left: calc(var(--bs-gutter-x) * -0.5);
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    
    /* 产品页面卡片宽度调整 */
    .product-page .col-lg-4 {
        width: 33.33333%; /* 保持每行3个卡片，但让每个卡片都占更多空间 */
    }
    
    /* 让产品页的每行显示3个卡片，而不是4个 */
    .product-page .row {
        max-width: 1400px; /* 增加整个行容器的最大宽度 */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-page .col-md-6 {
        width: 33.33333%; /* 平板上每行3个卡片 */
    }
}

/* 移动端保持完整宽度 */
@media (max-width: 767px) {
    .product-page .col-12 {
        width: 100%;
    }
}

.col-12.col-md-6.col-lg-4 {
    padding: 0 12px;
    margin-bottom: 15px;
}

/* 查看更多链接样式 */
.view-more {
    color: #1890ff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.view-more:hover {
    color: #40a9ff;
    text-decoration: none;
}

.view-more .bi {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-more:hover .bi {
    transform: translateX(3px);
}

/* 调整标题大小 */
.section .title {
    font-size: 1.5rem !important;
    font-weight: 600;
}

/* 调整卡片上下间距 */
.section .row {
    margin-bottom: -10px;
}

/* 修改查看更多链接大小与标题匹配 */
.view-more {
    color: #1890ff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* 减少标题与内容的间距 */
.d-flex.justify-content-between.align-items-center.mb-4 {
    margin-bottom: 1rem !important;
}

/* 调整整体section内边距 */
.section.pt-5 {
    padding-top: 2rem !important;
}

/* 各个区域的渐变背景色 */

/* 热门API区域 */
.section.pt-5:nth-of-type(2) {
    background: linear-gradient(180deg, #edf7ff 0%, #ffffff 100%); /* 蓝色调 */
    padding: 40px 0 30px;
    position: relative;
    margin-top: 0; /* 移除负边距 */
}

/* 最新API区域 */
.section.pt-5:nth-of-type(3) {
    background: linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
    padding: 40px 0 30px;
    position: relative;
}

/* 合作伙伴区域 */
.partners {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    padding: 50px 0 40px; /* 增加上下内边距 */
}

/* 添加波浪过渡效果 */
.section.pt-5:nth-of-type(2)::before,
.section.pt-5:nth-of-type(3)::before,
.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
    z-index: 1;
}

/* 在区域之间添加平滑过渡 */
.section.pt-5:nth-of-type(2)::after,
.section.pt-5:nth-of-type(3)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(0deg, rgba(255,255,255,0.8), transparent);
    z-index: 1;
}

/* 调整内容容器，确保位于过渡效果之上 */
.section .container, .partners .container {
    position: relative;
    z-index: 2;
}

/* 使各个区域的背景色略有不同，增加层次感 */
.section.pt-5:nth-of-type(2) {
    background: linear-gradient(180deg, #edf7ff 0%, #ffffff 100%); /* 蓝色调 */
}

.section.pt-5:nth-of-type(3) {
    background: linear-gradient(180deg, #f0f7fa 0%, #ffffff 100%); /* 蓝灰色调 */
}

.partners {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%); /* 淡蓝色调 */
}

.api-empower {
    display: inline-block;
    color: #1e293b;  /* 使用统一的深色 */
    font-weight: 800;
}

.start-easy {
    display: inline-block;
    color: #1e293b;  /* 使用统一的深色 */
    font-weight: 800;
}

.highlight {
    color: #3b82f6;  /* 使用统一的蓝色强调色 */
    font-weight: 800;
    transition: color 0.3s ease;
}

.highlight:hover {
    color: #2563eb;  /* 悬停时稍深的蓝色 */
}

/* 移除旧的渐变动画 */
@keyframes gradientText {
    0%, 50%, 100% {
        color: currentColor;
    }
}

/* 更新标语样式 */
.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;  /* 使用统一的灰色 */
    margin-top: 1.5rem;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-subtitle .highlight {
    color: #3b82f6;  /* 使用统一的蓝色强调色 */
    font-weight: 800;
}

/* 更新打字机效果的颜色 */
.typing-effect {
    display: inline-block;
    position: relative;
    color: #3b82f6;  /* 使用统一的蓝色强调色 */
    font-weight: 800;
}

.hot-words-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.hot-words-title {
    margin-top: 15px;
    margin-right: 10px;
    color: rgba(0, 0, 0, 0.55);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-block;
}

.hot-words a {
    font-size: 14px;
    margin-right: 5px;
    text-decoration: none;
    color: #007bff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 20px;
    margin: 0;
}

.section-header a {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

/* 确保导航栏和下拉菜单在最上层 */
header.navbar {
    position: relative;
    z-index: 1000;
}

.dropdown-menu {
    z-index: 1001;
}

/* API Card Styles - 与产品页完全一致 */
.card.api-card {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    overflow: hidden;
    background: #fff;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card.api-card .card-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card.api-card .title.is-5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem !important;
}

.card.api-card .subtitle.api-description {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card.api-card .card-footer {
    border-top: none;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin-top: auto;
}

.card.api-card .tag {
    border-radius: 4px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}

.card.api-card .tag.is-info {
    background: #e6f7ff;
    color: #1890ff;
}

.card.api-card .tag.is-light {
    background: #f5f5f5;
    color: #666;
}

/* 确保外层布局正确 */
.columns.is-multiline {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: -0.75rem;
}

.column.is-one-third-desktop {
    padding: 0.75rem;
    flex: none;
    width: 33.3333%;
}

.column.is-half-tablet {
    padding: 0.75rem;
}

@media screen and (max-width: 1023px) {
    .column.is-half-tablet {
        flex: none;
        width: 50%;
    }
}

@media screen and (max-width: 768px) {
    .column.is-half-tablet {
        width: 100%;
    }
}

/* 为避免样式冲突，增加新的API卡片样式，与产品页完全一致 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.h-100 {
    height: 100% !important;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.title.is-5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem !important;
}

.subtitle.is-6 {
    font-size: 0.875rem;
    color: #6c757d;
}

.api-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-footer {
    background-color: transparent;
    border-top: none;
    padding: 0;
}

.mt-auto {
    margin-top: auto !important;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.tag.is-info {
    background-color: #e6f7ff;
    color: #1890ff;
}

.tag.is-light {
    background-color: #f8f9fa;
    color: #6c757d;
}

.ml-4 {
    margin-left: 1rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* 布局类 */
.column.is-4 {
    flex: none;
    width: 33.33333%;
    padding: 0.75rem;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.is-multiline {
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .column.is-4 {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .column.is-4 {
        width: 100%;
    }
}

/* 添加产品页的API卡片样式 */
.api-card {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 163px !important;
    background: #fff;
    margin-bottom: 10px; /* 减少底部间距 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    max-width: 100%; /* 确保卡片不超过容器宽度 */
}

.api-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #1890ff;
}

.api-card .card-body {
    padding: 1.2rem; /* 稍微增加内边距 */
}

.api-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

.api-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.api-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1f36;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

.api-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    height: 2.625rem;
}

.api-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
}

.api-meta i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

.api-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.badge-hot, .badge-new, .api-category {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.5;
}

.badge-hot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-new {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.api-category {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* 调整布局辅助类 */
.me-3 {
    margin-right: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-center {
    align-items: center !important;
}

.min-width-0 {
    min-width: 0 !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.d-block {
    display: block !important;
}

/* 栅格系统 */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: -12px;
    margin-left: -12px;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    
    /* 产品页面卡片宽度调整 */
    .product-page .col-lg-4 {
        width: 33.33333%; /* 保持每行3个卡片，但让每个卡片都占更多空间 */
    }
    
    /* 让产品页的每行显示3个卡片，而不是4个 */
    .product-page .row {
        max-width: 1400px; /* 增加整个行容器的最大宽度 */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-page .col-md-6 {
        width: 33.33333%; /* 平板上每行3个卡片 */
    }
}

/* 移动端保持完整宽度 */
@media (max-width: 767px) {
    .product-page .col-12 {
        width: 100%;
    }
}

.col-12.col-md-6.col-lg-4 {
    padding: 0 12px;
}

/* 查看更多链接样式 */
.view-more {
    color: #1890ff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.view-more:hover {
    color: #40a9ff;
    text-decoration: none;
}

.view-more .bi {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-more:hover .bi {
    transform: translateX(3px);
}

/* 调整标题大小 */
.section .title {
    font-size: 1.5rem !important;
    font-weight: 600;
}

/* 调整卡片上下间距 */
.section .row {
    margin-bottom: -10px;
}

/* 修改查看更多链接大小与标题匹配 */
.view-more {
    color: #1890ff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* 减少标题与内容的间距 */
.d-flex.justify-content-between.align-items-center.mb-4 {
    margin-bottom: 1rem !important;
}

/* 调整整体section内边距 */
.section.pt-5 {
    padding-top: 2rem !important;
}

/* 各个区域的渐变背景色 */

/* 热门API区域 */
.section.pt-5:nth-of-type(2) {
    background: linear-gradient(180deg, #edf7ff 0%, #ffffff 100%); /* 蓝色调 */
    padding: 40px 0 30px;
    position: relative;
    margin-top: 0; /* 移除负边距 */
}

/* 最新API区域 */
.section.pt-5:nth-of-type(3) {
    background: linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
    padding: 40px 0 30px;
    position: relative;
}

/* 合作伙伴区域 */
.partners {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    padding: 50px 0 40px; /* 增加上下内边距 */
}

/* 添加波浪过渡效果 */
.section.pt-5:nth-of-type(2)::before,
.section.pt-5:nth-of-type(3)::before,
.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
    z-index: 1;
}

/* 在区域之间添加平滑过渡 */
.section.pt-5:nth-of-type(2)::after,
.section.pt-5:nth-of-type(3)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(0deg, rgba(255,255,255,0.8), transparent);
    z-index: 1;
}

/* 调整内容容器，确保位于过渡效果之上 */
.section .container, .partners .container {
    position: relative;
    z-index: 2;
}

/* 使各个区域的背景色略有不同，增加层次感 */
.section.pt-5:nth-of-type(2) {
    background: linear-gradient(180deg, #edf7ff 0%, #ffffff 100%); /* 蓝色调 */
}

.section.pt-5:nth-of-type(3) {
    background: linear-gradient(180deg, #f0f7fa 0%, #ffffff 100%); /* 蓝灰色调 */
}

.partners {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%); /* 淡蓝色调 */
}

/* 产品页专用卡片样式调整 */
.product-page .api-card {
    max-width: none; /* 移除最大宽度限制 */
    width: 100%; /* 卡片占满整个列宽 */
    height: auto !important; /* 让高度自适应内容 */
    min-height: 180px; /* 设置最小高度，确保卡片足够高 */
}

/* 调整卡片内容区域的padding和大小 */
.product-page .api-card .card-body {
    padding: 1.5rem; /* 增加内边距 */
}

/* 增加产品页卡片标题的大小 */
.product-page .api-title {
    font-size: 1.15rem; /* 增加标题字体大小 */
    margin-bottom: 0.5rem; /* 增加标题下方间距 */
}

/* 增加产品页卡片描述的大小 */
.product-page .api-desc {
    font-size: 0.9rem !important; /* 增加描述字体大小 */
    line-height: 1.6;
    margin: 10px 0; /* 增加上下间距 */
    -webkit-line-clamp: 3; /* 允许显示更多行 */
    height: auto !important; /* 允许自适应高度 */
    min-height: 4.2rem; /* 设置最小高度 */
}

/* 调整产品页底部元数据的位置和大小 */
.product-page .api-meta {
    font-size: 0.8rem;
    position: relative !important; /* 改为相对定位 */
    bottom: auto !important; /* 移除固定底部位置 */
    margin-top: 1rem; /* 添加顶部间距 */
}

/* 调整产品页API图标大小 */
.product-page .api-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
}

/* 合作伙伴logo样式 */
.partner-logos img {
    max-width: 100%;  /* 图片可以占据容器的全部宽度 */
    width: auto;      /* 保持宽高比 */
    height: auto;
    min-height: 70px; /* 增加最小高度 */
    filter: grayscale(20%);
    opacity: 0.95;
    transition: all 0.3s ease-in-out;
    transform-origin: center center;
    object-fit: contain;
}

/* 合作伙伴logo悬停效果 */
.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2); /* 保持放大比例 */
}

/* 合作伙伴logo容器样式 - 大幅增加高度 */
.partner-logos .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px; /* 进一步增加内边距 */
    margin-bottom: 30px; /* 增加底部间距 */
    height: 150px; /* 大幅增加容器高度 */
    overflow: hidden;
    background-color: transparent;
    transition: transform 0.3s ease;
}

/* 合作伙伴区域样式 */
.partners {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    padding: 50px 0 40px; /* 增加上下内边距 */
}

/* 合作伙伴区域标题样式调整 */
.partners .section-header h2 {
    margin-bottom: 30px; /* 增加标题与内容的间距 */
    font-size: 1.8rem; /* 适当增加标题大小 */
}

/* 合作伙伴列布局调整，适应更大的图片 */
.partners .row {
    margin-left: -20px;
    margin-right: -20px;
}
