/* Desktop header keeps the original one-line layout. */
@media (min-width: 769px) {
    .header .container {
        max-width: 1200px;
        height: 64px;
        padding: 0 20px;
        flex-wrap: nowrap;
    }

    .nav {
        flex: 1 1 auto;
        min-width: 0;
        height: 100%;
        overflow: visible;
        background: transparent;
        border: 0;
    }

    .nav-link {
        height: auto;
        min-width: 0;
        padding: 6px 4px;
        border: 0;
        border-radius: 6px;
        box-shadow: none;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        background: transparent;
    }

    .nav-link:hover {
        color: #1890ff;
        background: #e6f7ff;
        box-shadow: none;
    }

    .nav-link.active {
        color: #1890ff;
        background: transparent;
        box-shadow: none;
    }

    .nav-dropdown {
        position: relative;
        min-width: 0;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: auto;
        min-width: 120px;
        max-width: none;
        max-height: none;
        overflow: visible;
        padding: 4px 0;
        margin-top: 8px;
        border: 0;
        border-radius: 8px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    }

    .dropdown-item {
        display: block;
        min-height: 0;
        padding: 8px 16px;
        border-radius: 0;
        font-size: 14px;
        line-height: 1.5;
        white-space: nowrap;
    }

    .header-right {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        margin-left: auto;
        gap: 12px;
    }

    .search-box {
        flex: 0 0 auto;
        width: auto;
        height: auto;
        margin: 0 16px 0 0;
        padding: 0 12px;
        border: 1px solid #d9d9d9;
        border-radius: 20px;
        background: transparent;
        box-shadow: none;
    }

    .search-input {
        display: block;
        flex: 0 0 auto;
        width: 180px;
        min-width: 180px;
        height: auto;
        padding: 8px 10px;
        font-size: 14px;
    }

    .search-btn {
        flex: 0 0 auto;
        width: auto;
        height: auto;
        margin-left: 0;
        padding: 5px;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: #8c8c8c;
        font-size: 16px;
        position: static;
    }

    .search-btn::before,
    .search-btn::after {
        content: none;
    }

    .article-card-new {
        min-height: 136px;
    }

    .article-card-new .article-content {
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .article-card-new .article-title {
        margin-top: 10px;
    }

    .article-card-new .article-meta {
        margin-bottom: 10px;
    }
}
