/* 主要样式文件 */

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

/* 导航链接 */
.nav-link {
    color: #4b5563;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.mobile-nav-link {
    color: #4b5563;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.3s;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: #2563eb;
}

/* 按钮样式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #2563eb;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #2563eb;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #2563eb;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* 章节标题样式 */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-divider {
    height: 4px;
    width: 60px;
    background-color: #2563eb;
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* 功能卡片 */
.feature-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: #6b7280;
    line-height: 1.6;
}

/* 亮点卡片 */
.highlight-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.highlight-image {
    height: 240px;
    overflow: hidden;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.05);
}

.highlight-content {
    padding: 1.5rem;
}

/* 新闻卡片 */
.news-card {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    padding-top: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.news-date {
    position: absolute;
    top: 0;
    left: 1.5rem;
    transform: translateY(-50%);
    background-color: #2563eb;
    border-radius: 0.5rem;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.news-month {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.news-day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

/* 滚动进度条 */
#progress-bar {
    width: 0;
    transition: width 0.1s;
}

/* 团队卡片 */
.team-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 学生卡片 */
.student-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.student-card img {
    transition: transform 0.5s ease;
}

.student-card:hover img {
    transform: scale(1.05);
}

/* 团队分类标签 */
.team-filter-btn {
    transition: all 0.3s ease;
}

.team-filter-btn:hover {
    background-color: #f0f7ff;
    color: #2563eb;
}

.team-filter-btn.active {
    background-color: #2563eb;
    color: white;
}

/* 社交媒体图标 */
.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #2563eb;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* 研究方向卡片 */
.research-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.research-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.research-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.research-desc {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.research-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.research-list li {
    color: #4b5563;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2563eb;
}

.research-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.3s ease;
}

.research-link:hover {
    color: #1d4ed8;
}

/* 项目卡片 */
.project-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 合作伙伴logo */
.partner-logo {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 论文筛选按钮 */
.publication-filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    background-color: white;
    color: #4b5563;
    transition: all 0.3s ease;
}

.publication-filter-btn:hover {
    background-color: #f0f7ff;
    color: #2563eb;
}

.publication-filter-btn.active {
    background-color: #2563eb;
    color: white;
}

/* 论文卡片 */
.publication-card {
    display: flex;
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.publication-year {
    flex-shrink: 0;
    width: 100px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
}

.publication-content {
    flex-grow: 1;
    padding: 1.5rem;
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.publication-journal {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
}

.publication-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.publication-tag {
    background-color: #f0f7ff;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.publication-links {
    display: flex;
    gap: 1rem;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.3s ease;
}

.publication-link i {
    margin-right: 0.5rem;
}

.publication-link:hover {
    color: #1d4ed8;
}

/* 专利卡片 */
.patent-card {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.patent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.patent-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: #f0f7ff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.patent-content {
    flex-grow: 1;
}

.patent-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.patent-info {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.patent-authors {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.patent-status {
    display: inline-block;
    background-color: #dcfce7;
    color: #16a34a;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* 获奖卡片 */
.award-card {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.award-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: #fef3c7;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.award-content {
    flex-grow: 1;
}

.award-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.award-desc {
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.award-year {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 技术转化卡片 */
.transform-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.transform-image {
    position: relative;
    overflow: hidden;
}

.transform-image img {
    transition: transform 0.5s ease;
}

.transform-card:hover .transform-image img {
    transform: scale(1.05);
}

.transform-content {
    padding: 1.5rem;
}

.transform-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.transform-desc {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.transform-year {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.transform-link {
    color: #2563eb;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s;
}

.transform-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 联系卡片 */
.contact-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.contact-info {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1d4ed8;
}

/* 表单样式 */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    ring: 2px;
    ring-color: #93c5fd;
    background-color: white;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

/* FAQ样式 */
.faq-item {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    background-color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.6;
}

.faq-answer ul {
    color: #6b7280;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* 地图容器 */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
}

.aspect-w-16 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 筛选按钮样式 */
.year-filter-btn, .type-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s ease;
}

.year-filter-btn:hover, .type-filter-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.year-filter-btn.active, .type-filter-btn.active {
    background-color: #2563eb;
    color: white;
} 
/* Full platform names remain readable in both languages. */
nav > .container > .flex { gap: 1rem; }
nav > .container > .flex > a:first-child {
    flex: 1 1 0;
    min-width: 0;
    font-size: clamp(0.875rem, 1.4vw, 1.125rem);
    line-height: 1.4;
}
nav [data-i18n="lab-name"] { overflow-wrap: anywhere; }
nav > .container > .flex > a:first-child > span:first-child,
nav > .container > .flex > div { flex-shrink: 0; }
nav .nav-link,
nav button { white-space: nowrap; }
body > header.pt-24 { padding-top: calc(var(--site-nav-height, 6rem) + 2rem); }
@media (min-width: 768px) and (max-width: 1279px) {
    nav > .container > .flex { flex-wrap: wrap; }
    nav > .container > .flex > a:first-child { flex-basis: 100%; }
    nav > .container > .flex > .md\:flex {
        width: 100%;
        justify-content: space-between;
    }
    nav > .container > .flex > .space-x-8 > * + * { margin-left: 0.75rem; }
}
