/* 继承原有的样式 */
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu { display: none; }


/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: #f9fafb;
    color: #2e517e;
}

.mobile-menu-submenu {
    background-color: #f9fafb;
}

.mobile-menu-submenu .mobile-menu-item {
    padding-left: 2rem;
    border-bottom: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 14px;
}

.mobile-menu-toggle-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle-btn:hover {
    color: #d1d5db;
}

/* Menu icon animation */
.menu-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: currentColor;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

.menu-icon.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-icon.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}


/* Blog Card Hover Effects */
.blog-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(45, 74, 123, 0.15);
}

.blog-card::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.5s;
    z-index: 1;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-card-image {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.blog-card-content {
    position: relative;
    z-index: 2;
}

.blog-card-title {
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover .blog-card-title {
    color: #2d4a7b;
}

.blog-card-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #2d4a7b, #efb828);
    transition: width 0.3s ease;
}

.blog-card:hover .blog-card-title::after {
    width: 100%;
}

/* 标签详情页头部样式 */
.tag-header {
    background: linear-gradient(135deg, #2d4a7b, #67c1df);
    color: white;
    position: relative;
    overflow: hidden;
}

.tag-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* 标签筛选按钮 */
.filter-button {
    transition: all 0.3s ease;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 74, 123, 0.15);
}

.filter-button.active {
    background-color: #2d4a7b;
    color: white;
}