/* 重置默认样式，消除所有间隙 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* 统一导航栏样式 - 现代化玻璃态设计 */
.navbar-component {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 16px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 首页导航栏固定定位和隐藏显示效果 */
body.index-page .navbar-component {
    position: fixed;
    top: -100px;
}

body.index-page .navbar-component.visible {
    top: 0;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .navbar-container {
        padding: 0 2rem;
    }
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    height: 4rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 2rem;
    width: auto;
    margin-right: 0.5rem;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
    }
}

.navbar-nav a {
    color: #374151;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.navbar-nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.navbar-nav a:hover::before {
    opacity: 1;
}

.navbar-nav a.active {
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.navbar-nav a.active::before {
    opacity: 1;
}

.navbar-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.navbar-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.navbar-cta:hover::before {
    left: 100%;
}

.mobile-menu-button {
    display: flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-button:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.mobile-menu-button i {
    color: #3b82f6;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu {
    display: none;
}

.mobile-menu.show {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 20px 20px;
}

@media (min-width: 640px) {
    .mobile-menu-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.mobile-menu-content > * + * {
    margin-top: 0.25rem;
}

/* 导航图标样式 - 增强交互效果 */
.nav-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* SVG图标定义 - 添加悬停动画 */
.icon-home::before {
    content: "🏠";
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.icon-community::before {
    content: "👥";
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.icon-tutorial::before {
    content: "📚";
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.icon-external::before {
    content: "🔗";
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.icon-workflow::before {
    content: "⚡";
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* 现代化图标样式 - 使用CSS绘制，增强交互 */
.nav-icon-svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* 首页图标 */
.nav-icon-home {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.1L1 12h3v9h6v-6h4v6h6v-9h3L12 2.1z"/></svg>') no-repeat center;
    background-size: contain;
}

/* 社群图标 */
.nav-icon-community {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm4 18v-6h2.5l-2.54-7.63A1.5 1.5 0 0 0 18.54 7H16c-.8 0-1.54.37-2 1l-3.72 5.58L8.5 11.5C7.67 10.67 6.83 10 6 10s-1.67.67-2.5 1.5L1 14v8h2v-6.5l1.5-1.5L8 18v4h2v-4.5l2-2L14.5 22H20z"/></svg>') no-repeat center;
    background-size: contain;
}

/* 教学图标 */
.nav-icon-tutorial {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>') no-repeat center;
    background-size: contain;
}

/* 外链图标 */
.nav-icon-external {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></svg>') no-repeat center;
    background-size: contain;
}

/* 工作流图标 */
.nav-icon-workflow {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13 2.05v2.02c4.39.54 7.5 4.53 6.96 8.92A8 8 0 0 1 12 20c-4.42 0-8-3.58-8-8 0-1.57.46-3.03 1.24-4.26L6.7 6.29A10 10 0 0 0 2 12c0 5.52 4.48 10 10 10s10-4.48 10-10c0-5.18-3.95-9.45-9-9.95zM12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67V7z"/></svg>') no-repeat center;
    background-size: contain;
}

/* 图标悬停动画效果 */
.navbar-nav a:hover .nav-icon,
.navbar-nav a:hover .nav-icon-svg {
    transform: scale(1.15) rotate(5deg);
}

.navbar-nav a:hover .icon-home::before,
.navbar-nav a:hover .icon-community::before,
.navbar-nav a:hover .icon-tutorial::before,
.navbar-nav a:hover .icon-external::before,
.navbar-nav a:hover .icon-workflow::before {
    transform: scale(1.1) rotate(-3deg);
}

/* 移动端图标动画 */
.mobile-menu-content a:hover .nav-icon,
.mobile-menu-content a:hover .nav-icon-svg {
    transform: scale(1.1) translateX(3px);
}

/* 微交互动画关键帧 */
@keyframes iconBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

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

/* 活跃状态图标动画 */
.navbar-nav a.active .nav-icon,
.navbar-nav a.active .nav-icon-svg {
    animation: iconBounce 0.6s ease-in-out;
}

/* CTA按钮图标脉冲效果 */
.navbar-cta .nav-icon {
    animation: iconPulse 2s infinite;
}

.navbar-cta:hover .nav-icon {
    animation: none;
    transform: scale(1.1);
}

.mobile-menu-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-menu-content a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(5px);
}

.mobile-menu-content a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-content a:hover {
    color: #2563eb;
}

.mobile-menu-content a.active {
    color: #2563eb;
    font-weight: 600;
}

.mobile-menu-cta {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-menu-cta:hover {
    background-color: #1d4ed8;
}

/* 页面内容顶部间距设置 - 消除所有间隙 */
body {
    padding-top: 0;
    margin-top: 0;
}

/* 首页导航栏可隐藏，保持零间距 */
body.index-page {
    padding-top: 0;
    margin-top: 0;
}

/* 添加滚动效果 */
.navbar-component.scrolled {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* 现代化动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-component {
    animation: fadeInDown 0.6s ease-out;
}

/* 响应式字体大小 */
@media (max-width: 640px) {
    .navbar-title {
        font-size: 1.25rem;
    }
    
    .navbar-cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 响应式设计优化 */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-nav {
        gap: 1rem;
    }
    
    .navbar-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .navbar-cta {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 0.75rem;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-button:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.05);
    }
    
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .mobile-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-content {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 1rem;
        margin: 0.25rem 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 500;
    }
    
    .mobile-nav-link:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
        transform: translateX(4px);
    }
    
    .mobile-nav-link.active {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
        border-color: rgba(59, 130, 246, 0.4);
        color: #3b82f6;
    }
    
    .navbar-title {
        font-size: 1.25rem;
    }
    
    .navbar-logo {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 0.5rem;
    }
    
    .navbar-title {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        width: 24px;
        height: 24px;
        margin-right: 0.5rem;
    }
    
    .mobile-menu-content {
        padding: 1rem;
    }
    
    .mobile-nav-link {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .nav-icon-svg {
        width: 18px;
        height: 18px;
        margin-right: 0.75rem;
    }
}

@media (max-width: 360px) {
    .navbar-container {
        padding: 0 0.375rem;
    }
    
    .navbar-title {
        font-size: 1rem;
    }
    
    .navbar-logo {
        width: 22px;
        height: 22px;
    }
    
    .mobile-nav-link {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-icon-svg {
        width: 16px;
        height: 16px;
        margin-right: 0.5rem;
    }
}

/* 导航链接动画效果 */
.navbar-nav a {
    position: relative;
    overflow: hidden;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

/* 移动端菜单动画 */
.mobile-menu {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* 加载状态 */
.navbar-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 滚动时导航栏效果 */
.navbar-scrolled {
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.15), 0 2px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 无障碍访问 */
.navbar-nav a:focus,
.mobile-menu-button:focus,
.mobile-menu-content a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .navbar-component {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}