/* 方案A：现代活力型字体配置 */
/* 全局字体 - Inter */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 标题字体 - Poppins */
h1, h2, h3, h4, h5, h6,
.text-3xl, .text-2xl, .text-xl, .text-lg {
    font-family: 'Poppins', sans-serif;
}

/* Logo - Poppins ExtraBold */
.logo, a[href="/"].text-2xl, a[href="/"].text-3xl,
header a[href="/"] {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 800;
}

/* 导航菜单 - Poppins SemiBold */
nav a, .nav-link {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
}

/* 按钮文字 - Poppins SemiBold */
button, .btn, [type="button"], [type="submit"] {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
}

/* 正文内容保持 Inter */
p, span, div:not([class*="font-"]), li, td, th {
    font-family: 'Inter', sans-serif;
}

/* 特殊情况：如果元素已经指定了 font-bold 等，保持 Poppins */
.font-bold, .font-semibold, .font-extrabold {
    font-family: 'Poppins', sans-serif;
}
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}
.nav-link:hover {
    color: #374151 !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    transform: translateY(-2px);
}
.nav-link.active {
    color: #374151 !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #8b5cf6, #ec4899, #8b5cf6);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}
.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 260px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    z-index: 1000;
    border: 1px solid rgba(229, 231, 235, 0.8);
    overflow: hidden;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
    overflow: hidden;
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    transition: width 0.3s ease;
}
.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
    padding-left: 1.5rem;
    color: #8b5cf6;
}
.dropdown-item:hover::before {
    width: 4px;
}
.dropdown-item i {
    margin-right: 0.5rem;
    width: 18px;
    text-align: center;
}

/* Enhanced header styles */
header {
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
@media (max-width: 768px) {
    .mobile-menu.active {
        display: block !important;
    }
    .mobile-dropdown-toggle.active i {
        transform: rotate(180deg) !important;
    }
    .mobile-dropdown-menu.active {
        display: block !important;
    }
    .mobile-dropdown-menu {
        display: none;
    }
}

/* Line clamp utility for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Font Awesome 图标显示优化 */
.fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 确保图标在容器中正确显示 */
i.fas, i.far, i.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Breadcrumb Navigation Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: #8b5cf6;
}
.breadcrumb .separator {
    color: #9ca3af;
    margin: 0 0.25rem;
}
.breadcrumb .current {
    color: #374151;
    font-weight: 500;
}

/* Breadcrumb Navigation Styles (New Schema.org Implementation) */
.breadcrumb-nav {
    padding: 1rem 0;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #9ca3af;
}

.breadcrumb-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #111827;
    font-weight: 500;
}

