/* style.css - 完全本地化，无外部字体依赖 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #0f172a;
    line-height: 1.5;
    min-height: 100vh;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* 玻璃态导航栏 */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.nav-link {
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    background: #eef2ff;
    color: #4f46e5;
}

/* Hero 区域 */
.hero-section {
    position: relative;
}
.badge-glow {
    background: rgba(99, 102, 241, 0.12);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.gradient-text {
    background: linear-gradient(120deg, #1e293b, #4f46e5, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}
.pill-stat {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* 渐变分割线 */
.gradient-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #4f46e5, #f97316);
    border-radius: 4px;
}

/* 网格列统一高度 */
.row.g-4 > [class*="col-"] {
    display: flex;
}

/* 卡片样式 - 高度宽度完全一致 */
.func-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.75rem;
    padding: 1.6rem 1.4rem;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.func-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}

/* 图标容器 */
.card-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #eef2ff, #ffffff);
    border-radius: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    color: #4f46e5;
    box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* Emoji 图标样式 */
.icon-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.func-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.func-card p {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.45;
    flex: 1;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f1f5f9;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    color: #334155;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    width: fit-content;
    flex-shrink: 0;
}

.card-action {
    border-top: 1px solid #eef2ff;
    padding-top: 1rem;
    margin-top: auto;
    flex-shrink: 0;
}

.launch-link {
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    cursor: pointer;
}

.func-card:hover .launch-link {
    gap: 10px;
}

/* 实验室卡片 */
.coming-card {
    opacity: 0.85;
    background: rgba(248, 250, 252, 0.8);
    min-height: 320px;
}

.coming-card .card-icon-wrapper {
    background: #eef2ff;
    color: #64748b;
}

.coming-card .launch-link {
    color: #5b6e8c;
}

/* 页脚 */
.social-icons a {
    color: #6c7a91;
    font-size: 1.25rem;
    transition: color 0.2s;
    text-decoration: none;
    margin: 0 0.5rem;
    display: inline-block;
}
.social-icons a:hover {
    color: #4f46e5;
}
.footer a {
    color: #4f46e5;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* Toast 提示 */
.custom-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    animation: fadeInUp 0.3s ease;
    max-width: 90%;
    text-align: center;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .func-card {
        padding: 1.2rem;
        min-height: 300px;
    }
    .func-card h3 {
        font-size: 1.25rem;
    }
    .hero-section .display-3 {
        font-size: calc(1.8rem + 3vw);
    }
    .badge-glow {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .func-card {
        min-height: 280px;
    }
}