/*生态组件*/
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: #425066;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Banner 区域 */
.banner {
    min-height: 90vh;
    background: linear-gradient(rgba(66, 80, 102, 0.7), rgba(66, 80, 102, 0.7)),
    url("/static/index/pages/madong-saas/img/bg.png") bottom center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem 0;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 生态组件模块 */
.ecosystem-section {
    padding: 4rem 0;
    background-color: #fff;
}

.ecosystem-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ecosystem-section .section-header h2 {
    font-size: 2.5rem;
    color: #012970;
    margin-bottom: 1rem;
}

.ecosystem-section .section-header p {
    font-size: 1.125rem;
    color: #646464;
    max-width: 800px;
    margin: 0 auto;
}

/* 组件卡片列表 */
.ecosystem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* 单个组件卡片 */
.ecosystem-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(1, 41, 112, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(1, 41, 112, 0.12);
}

/* 组件图标 */
.card-icon {
    font-size: 2.5rem;
    color: #4154f1;
    margin-bottom: 1.5rem;
}

/* 组件标题与描述 */
.card-title {
    font-size: 1.5rem;
    color: #012970;
    margin-bottom: 0.75rem;
}

.card-desc {
    font-size: 1rem;
    color: #646464;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* 占满剩余空间，避免内容过短 */
}

/* 源码下载按钮组 */
.source-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* 下拉菜单基础样式 */
.dropdown-menu {
    min-width: 160px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #425066;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f1f3f9;
    color: #4154f1;
}

.dropdown-item.disabled {
    color: #adb5bd;
    pointer-events: none;
    background-color: transparent;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .ecosystem-list {
        grid-template-columns: 1fr;
    }

    .source-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 防止AOS动画元素的transform影响下拉菜单的定位基准 */
.ecosystem-card {
    transform: none !important;
}
