/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #24292e;
    background-color: #ffffff;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(circle at 5% 20%, rgba(3, 102, 214, 0.03) 0%, transparent 800px),
                radial-gradient(circle at 95% 80%, rgba(3, 102, 214, 0.03) 0%, transparent 800px);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #0366d6;
    transition: color 0.2s, transform 0.2s;
}

a:hover {
    color: #0246a2;
}

/* 导航栏样式 */
.navbar {
    background-color: #0a1922;
    padding: 10px 0;
    color: white;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: bold;
    font-size: 1.4rem;
    color: white;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: white;
}

.search-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 0.9rem;
    width: 150px;
}

.search-box i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 5px;
}

/* 头部样式 */
.header-container {
    background-color: #f5f7fa;
    padding: 60px 0 40px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.header-container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(3, 102, 214, 0.3), transparent);
}

.header-content {
    max-width: 800px;
}

.site-title {
    font-size: 4rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-title i {
    color: #0366d6;
}

.tagline {
    font-size: 2.2rem;
    font-weight: 400;
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.3;
    max-width: 700px;
}

.version-badge {
    margin-top: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.whats-new {
    background-color: white;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: inline-block;
}

.version-info {
    color: #4a5568;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.version-info i {
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.secondary-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn:hover {
    background-color: #f9fafb;
    color: #111827;
}

.btn i {
    font-size: 1rem;
}

/* 描述部分样式 */
.description {
    margin-top: 40px;
    padding-bottom: 40px;
    font-size: 1.3rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 700px;
}

/* 应用层样式 */
.application-layer {
    background-color: #eef2f7;
    padding: 35px 0;
    text-align: center;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.application-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(3, 102, 214, 0.02), transparent);
}

.application-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.application-title i {
    color: #0366d6;
}

.application-description {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    color: #000;
}

/* 特性部分 */
.features-section {
    background-color: #f8fafc;
    padding: 40px 0 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(3, 102, 214, 0.03), transparent 70%);
    top: 10%;
    left: -150px;
    z-index: 0;
}

.features-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(3, 102, 214, 0.03), transparent 70%);
    bottom: 5%;
    right: -100px;
    z-index: 0;
}

.features-section .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex: 1;
    margin-bottom: 30px;
    width: 100%;
}

/* 当features前面有full-width卡片时，减少上方margin */
.feature-card.full-width + .features {
    margin-top: 0;
}

.feature-card {
    flex: 1;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 440px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-card.full-width {
    width: 100%;
    min-height: 100px;
    padding: 20px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card.full-width:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-card.full-width .feature-title {
    margin-bottom: 0;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
}

.feature-title i {
    color: #0366d6;
    font-size: 1.6rem;
    min-width: 30px;
    text-align: center;
}

.feature-description {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    flex-grow: 0;
    min-height: 100px;
    display: flex;
    align-items: flex-start;
    text-align: center;
    justify-content: center;
}

.feature-list {
    list-style-type: none;
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    /* 新增以下属性 */
    text-align: left;
    align-items: flex-start;
}

.feature-list li {
    min-height: 24px;
    display: flex;
    align-items: center;
    margin: 0;
}

.feature-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0366d6;
    font-weight: 600;
    padding: 5px 0;
    transition: all 0.2s ease;
    width: 100%;
    background-color: transparent;
    border: none;
    justify-content: flex-start;
    font-size: 1.05rem;
}

.feature-link i {
    color: #0366d6;
    min-width: 24px;
    text-align: center;
    font-size: 1.05rem;
}

.feature-link:hover {
    color: #0246a2;
    background-color: transparent;
    transform: translateX(5px);
}

/* 修改底部填充 */
.feature-card:first-child .feature-list,
.feature-card:last-child .feature-list {
    padding-bottom: 0;
}

/* 对中间卡片的特殊处理 */
.feature-card:nth-child(2) .feature-list {
    justify-content: flex-start;
}

/* 确保所有卡片中的列表项对齐 */
.feature-card .feature-list {
    padding-left: 0;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        width: 100%;
        min-height: unset;
        margin-bottom: 20px;
    }
    
    .feature-description {
        min-height: unset;
    }
    
    .site-title {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.6rem;
    }
    
    .feature-card:first-child .feature-list,
    .feature-card:last-child .feature-list {
        padding-bottom: 0;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 40px 0 30px;
    }
    
    .site-title {
        font-size: 2.4rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .action-buttons, 
    .secondary-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 模型分类部分 */
.model-categories {
    display: flex;
    justify-content: space-between;
    background-color: #f0f0f0;
    padding: 20px 0;
    margin-bottom: 30px;
}

/* 应用层面板 */
.application-panel {
    background-color: #2e51a3;
    color: white;
    padding: 25px 30px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
    text-align: center;
}

.application-panel .panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.application-panel .panel-description {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* 分类面板容器 */
.category-panels {
    display: flex;
    justify-content: space-between;
    gap: 0;
    background-color: #f0f0f0;
    border-radius: 0 0 5px 5px;
}

/* 面板通用样式 */
.panel {
    flex: 1;
    padding: 25px 15px;
    text-align: center;
    background-color: #f0f0f0;
    position: relative;
}

.panel:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #d0d0d0;
}

.panel .panel-title {
    font-size: 1.3rem;
    color: #2e51a3;
    margin-bottom: 20px;
    font-weight: 600;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* 分类面板特殊样式 */
.data-panel {
    background-color: #f0f0f0;
}

.model-panel {
    background-color: #f0f0f0;
}

.eval-panel {
    background-color: #f0f0f0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-panels {
        flex-direction: column;
    }
    
    .panel:not(:last-child)::after {
        content: none;
    }
    
    .panel:not(:last-child) {
        border-bottom: 1px solid #d0d0d0;
    }
}

/* 赞助商部分 */
.sponsors {
    background-color: #f6f8fa;
    padding: 50px 0;
    text-align: center;
}

.sponsors-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #0a1922;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.sponsor-item {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页脚样式 */
footer {
    background-color: #f5f7fa;
    padding: 20px 0;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.footer-links a {
    color: #6b7280;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #0366d6;
}

.footer-links i {
    margin-right: 5px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    margin: 0 2px;
    line-height: 25px;
    font-size: 12px;
    color: white;
    text-align: center;
}

/* 关于部分 */
.about-section {
    margin-top: 20px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.about-title i {
    color: #0366d6;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.tech-badge {
    background-color: #f0f7ff;
    color: #0366d6;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* 响应式调整 */
@media (max-width: 900px) {
    .about-description {
        font-size: 1rem;
    }
    
    .tech-stack {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .about-title {
        font-size: 1.5rem;
    }
    
    .tech-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* 所有特殊样式已删除，使用通用样式 */

.application-section {
    padding: 0;
    margin-bottom: 0;
    margin-top: 30px;
} 

/* 在文件最后添加以下内容 */
/* 子模块容器样式 */
.sub-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 2rem 0;
}

/* 子模块卡片样式 */
.sub-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    min-height: 280px;  /* 保持与主卡片相同高度 */
    transition: transform 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .sub-features {
        /* grid-template-columns: 1fr; */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sub-feature-card {
        min-height: auto;
        padding: 25px;
        min-width: 220px;
        flex: 1;
    }
}

/* 子模块标题 */
.sub-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #111827;
    text-align: center;
}

/* 子模块描述 */
.sub-feature-description {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
    hyphens: auto;
}

/* 添加图片样式 */
.feature-image {
    max-width: 100%;    /* 响应式宽度 */
    height: auto;       /* 保持比例 */
    margin: 15px 0;     /* 上下边距 */
    display: block;     /* 单独一行显示 */
    border-radius: 8px; /* 可选圆角 */
}

/* 如果希望图片居中 */
.feature-image {
    margin-left: auto;
    margin-right: auto;
}


.sub-feature-description {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    hyphens: auto;
    word-break: break-word;
}

/* Safari 兼容 */
@supports (-webkit-touch-callout: none) {
    .sub-feature-description {
        -webkit-text-align-last: justify;
        -webkit-hyphens: auto;
    }
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.parent-item {
    color: #2c3e50;
    font-weight: bold;
    padding: 5px 0;
}

.sub-feature-list {
    margin: 5px 0 10px 20px;
    padding-left: 0;
    list-style: none;
}

.sub-feature-link {
    display: block;
    padding: 3px 15px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.sub-feature-link:hover {
    color: #3498db;
    background-color: #f5f5f5;
    transform: translateX(5px);
}


.download-count-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0 0 0 8px;
    padding: 2px 6px;
    background-color: #f0f7ff;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    vertical-align: middle;
}

.download-icon {
    color: #0366d6;
    font-size: 0.9rem;
}

.download-count {
    font-size: 1rem;
    font-weight: 500;
    color: #0366d6;
}

.download-text {
    font-size: 0.8rem;
    color: #4b5563;
    font-weight: 400;
}

.features-section .container-fluid .feature-card {
  max-width: 1800px;   /* or whatever maximum width you prefer */
  width: 100%;         /* so it can shrink below 1200px */
  margin: 0 auto;      /* center in the viewport */
}
